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
Go through the shopping cart and pack all packable items into bags
public void packBags() { GroceryBag[] packedBags = new GroceryBag[numItems]; int bagCount = 0; GroceryBag currentBag = new GroceryBag(); for (int i=0; i<numItems; i++) { GroceryItem item = (GroceryItem) cart[i]; if (item.getWeight() <= GroceryBag.MAX_WEIGHT) { if (!currentBag.canHold(item)) { packedBags[bagCount++] = currentBag; currentBag = new GroceryBag(); } currentBag.addItem(item); removeItem(item); i--; } } // Check this in case there were no bagged items if (currentBag.getWeight() > 0) packedBags[bagCount++] = currentBag; // Now create a new bag array which is just the right size pBags = new GroceryBag[bagCount]; for (int i=0; i<bagCount; i++) { pBags[i] = packedBags[i]; } // Add all grocery bags bag into cart for (int i = 0; i < bagCount; i++) { addItem(pBags[i]); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void doPack() {\n }", "public void doPack() {\n }", "public void doPack() {\n }", "public void doPack() {\n }", "public void doPack() {\n }", "public void doPack() {\n }", "public void fillBasket(_essentialGift[] esGifts, _utilityGift[] uGifts, _luxuryGift[] lGifts) {\r\n \r\n this.gbasket = new _giftBasket();\r\n esGifts = _staticFunctions.sortByCost(esGifts);\r\n uGifts = _staticFunctions.sortByCost(uGifts);\r\n lGifts = _staticFunctions.sortByCost(lGifts);\r\n \r\n int grlBudget = 0;\r\n \r\n switch(this.grlType){\r\n case \"The Chosy\":\r\n grlBudget = this.chGrlfrnd.Budget;\r\n break;\r\n case \"The Normal\":\r\n grlBudget = this.nGrlfrnd.Budget;\r\n break;\r\n case \"The Desperate\":\r\n grlBudget = this.dsGrlfrnd.Budget;\r\n break;\r\n }\r\n \r\n double prc = 0;\r\n int esIdx = 0;\r\n int uIdx = 0;\r\n int lIdx = 0;\r\n int eItIdx = 0;\r\n int uItIdx = 0;\r\n int lItIdx = 0;\r\n \r\n \r\n while(prc < grlBudget && (esIdx < _staticFunctions.length(esGifts) || uIdx < _staticFunctions.length(uGifts))){\r\n if((esIdx < _staticFunctions.length(esGifts) && uIdx >= _staticFunctions.length(uGifts))||\r\n (esIdx < _staticFunctions.length(esGifts) && uIdx < _staticFunctions.length(uGifts) && esGifts[esIdx].price/esGifts[esIdx].value < uGifts[uIdx].price/uGifts[uIdx].value)){\r\n this.gbasket.eItems[eItIdx] = esGifts[esIdx];\r\n prc += esGifts[esIdx].price;\r\n eItIdx++;\r\n esIdx++;\r\n }\r\n \r\n else if(uIdx < _staticFunctions.length(uGifts)){\r\n this.gbasket.uItems[uItIdx] = uGifts[uIdx];\r\n prc += uGifts[uIdx].price;\r\n uItIdx++;\r\n uIdx++;\r\n }\r\n \r\n }\r\n\r\n while(lIdx < _staticFunctions.length(lGifts) && prc < grlBudget){\r\n this.gbasket.lItems[lItIdx] = lGifts[lIdx];\r\n prc += lGifts[lIdx].price;\r\n lIdx++;\r\n lItIdx++;\r\n } \r\n \r\n if(lItIdx == 0 && ( lGifts[0].price <= (this.Budget - prc) ) ){\r\n this.gbasket.lItems[lItIdx] = lGifts[0]; \r\n }\r\n \r\n }", "@Override\n public void packageItem() {\n System.out.println(\"Fresh Produce packing : done\");\n }", "private void viewBackpack() {\n Item[] inventory = GameControl.getSortedInventoryList();\r\n \r\n System.out.println(\"\\n List of inventory Items\");\r\n System.out.println(\"Description\" + \"\\t\" + \r\n \"Required\" + \"\\t\" +\r\n \"In Stock\");\r\n \r\n // For each inventory item\r\n for (Item inventoryItem : inventory){\r\n // Display the description, the required amount and amount in stock\r\n System.out.println(InventoryItem.getType + \"\\t \" +\r\n InventoryItem.requiredAmount + \"\\t \" +\r\n InventoryItem.getQuantity);\r\n }\r\n \r\n }", "public List<Container> pack(Parcel parcel, Item[] items)\n {\n ArrayList<Container> candidates = new ArrayList<>();\n for (Container container : CONTAINERS)\n {\n PackItem[] packItems = new PackItem[items.length];\n for (int i = 0; i < items.length; i++)\n {\n Item item = items[i];\n Dimension dim = new Dimension(item.getWidth(), item.getHeight(), item.getLength());\n double weight = item.getWeight();\n packItems[i] = new PackItem(dim, weight);\n }\n\n Collection<Packing> packings = pack(container, packItems);\n if (packings == null)\n continue;\n\n if (packings.size() == 1)\n candidates.add(container);\n }\n\n return candidates;\n }", "private void checkoutNotEmptyBag() {\n\t\tSystem.out.println(\"Checking out \" + bag.getSize() + \" items.\");\n\t\tbag.print();\n\t\tDecimalFormat df = new DecimalFormat(\"0.00\");\n\t\tdouble salesPrice = bag.salesPrice();\n\t\tSystem.out.println(\"*Sales total: $\" + df.format(salesPrice));\n\t\tdouble salesTax = bag.salesTax();\n\t\tSystem.out.println(\"*Sales tax: $\" + df.format(salesTax));\n\t\tdouble totalPrice = salesPrice + salesTax;\n\t\tSystem.out.println(\"*Total amount paid: $\" + df.format(totalPrice));\n\t\tbag = new ShoppingBag(); // Empty bag after checking out.\n\t}", "public void doShopping(IBasket basket,IArchiveBasket archiveBasket);", "public void AddtoCart(int id){\n \n itemdb= getBooksById(id);\n int ids = id;\n \n for(Books k:itemdb){ \n System.out.println(\"Quantity :\"+k.quantity); \n if (k.quantity>0){\n newcart.add(ids);\n System.out.println(\"Added to cartitem list with bookid\"+ ids);\n setAfterBuy(ids);\n System.out.println(\"Quantity Updated\");\n setCartitem(newcart);\n System.out.println(\"setCartitem :\"+getCartitem().size());\n System.out.println(\"New cart :\"+newcart.size());\n test.add(k);\n }\n else{\n System.out.println(\"Quantity is not enough !\");\n }\n }\n setBookcart(test);\n }", "@Override\r\n\t\t\tpublic void itemClick(ItemClickEvent event) {\n\t\t\t\t\r\n\t\t\t\tSystem.out.println(\"buscar Objects\");\r\n\t\t\t\tidPack = (int) event.getItem().getItemProperty(\"IdPack\").getValue();\r\n\t\t\t\tbuscaObjectsByPacks((int) event.getItem().getItemProperty(\"IdPack\").getValue());\r\n\t\t\t\t\r\n\t\t\t}", "public static void main(String[] args) {\n Apple appleRp = new Apple(new BigDecimal(150.5), \"red\", Ripeness.RIPE, false);\n Banana bananaRp = new Banana(new BigDecimal(175.4), \"yellow\", Ripeness.RIPE, false);\n Orange orangeVerd = new Orange(new BigDecimal(200.0), \"yellow\", Ripeness.VERDANT, false);\n Orange orangeRp = new Orange(new BigDecimal(210.2), \"orange\", Ripeness.RIPE, false);\n Pear pearVerd = new Pear(new BigDecimal(180.9), \"green\", Ripeness.VERDANT, false);\n\n Carrot carrotRp = new Carrot(new BigDecimal(100.9), \"orange\", Ripeness.RIPE, false);\n Celery celeryVerd = new Celery(new BigDecimal(200.0), \"green\", Ripeness.VERDANT, false);\n Onion onionRp = new Onion(new BigDecimal(90.9), \"white\", Ripeness.RIPE, true);\n Potato potatoRp = new Potato(new BigDecimal(105.8), \"brown\", Ripeness.RIPE, false);\n\n // Main array of plants creation\n Plant[] basketContent = {carrotRp, orangeVerd, bananaRp, celeryVerd};\n\n // Extra array of plants creation\n Plant[] additionalBasketContent = {onionRp, appleRp, orangeRp, pearVerd, potatoRp};\n\n // Food processor creation\n FoodProcessor foodProcessor = new FoodProcessor();\n\n System.out.println(\" FRUITS&VEGETABLES\\n\\n\");\n\n // Total basket creation\n Basket basket = new Basket();\n\n // Filling the total basket by the main array of plants\n basket.put(basketContent);\n\n System.out.println(\"Basket contains:\");\n basket.printContent();\n System.out.println(\"\\nBasket weight: \" + basket.getBasketWeight() + \" g.\");\n\n // Extra basket creation\n Basket additionalBasket = new Basket();\n\n // Filling the extra basket by the extra array of plants\n additionalBasket.put(additionalBasketContent);\n\n // Combining total and extra baskets\n basket.put(additionalBasket);\n\n System.out.println(\"\\nBasket contains:\");\n basket.printContent();\n System.out.println(\"\\nBasket weight: \" + basket.getBasketWeight() + \" g.\");\n\n System.out.println(\"\\n\\n PEELING FRUITS:\\n\");\n\n // Weight of total basket\n BigDecimal oldBasketWeight = basket.getBasketWeight();\n System.out.println(\"Basket weight before fruits peeling: \" + oldBasketWeight.round(MathContext.DECIMAL32) + \" g.\");\n\n // Weight of all fruits in total basket\n BigDecimal oldFruitsWeight = basket.getFruitsWeight();\n System.out.println(\"Fruits weight before peeling: \" + oldFruitsWeight.round(MathContext.DECIMAL32) + \" g.\");\n\n // Extracting of all fruits from total basket\n Fruit[] fruitsToProcess = basket.extractAllFruits();\n\n // Weight of fruits after peeling\n BigDecimal newFruitsWeight = foodProcessor.peelItems(fruitsToProcess);\n System.out.println(\"Fruits weight after peeling: \" + newFruitsWeight.round(MathContext.DECIMAL32) + \" g.\");\n\n // Insertion of peeled fruits back to total basket\n basket.put(fruitsToProcess);\n BigDecimal newBasketWeight = basket.getBasketWeight();\n System.out.println(\"Basket weight after fruits peeling: \" + newBasketWeight.round(MathContext.DECIMAL32) + \" g.\");\n\n // Weight difference\n System.out.println(\"Weight difference: \" + (oldBasketWeight.subtract(newBasketWeight)).round(MathContext.DECIMAL32) + \" g.\");\n\n System.out.println(\"\\n\\n PEELING VEGETABLES:\\n\");\n\n // Current weight of total basket\n oldBasketWeight = basket.getBasketWeight();\n System.out.println(\"Basket weight before vegetables peeling: \" + oldBasketWeight.round(MathContext.DECIMAL32) + \" g.\");\n\n // Weight of all vegetables in total basket\n BigDecimal oldVegetablesWeight = basket.getVegetablesWeight();\n System.out.println(\"Vegetables weight before peeling: \" + oldVegetablesWeight.round(MathContext.DECIMAL32) + \" g.\");\n\n // Extracting of all vegetables from total basket\n Vegetable[] vegetablesToProcess = basket.extractAllVegetables();\n\n // Weight of vegetables after peeling\n BigDecimal newVegetablesWeight = new BigDecimal(0.0);\n\n try {\n newVegetablesWeight = foodProcessor.peelItems(vegetablesToProcess);\n } catch (IllegalArgumentException e) {\n System.out.println(e.getMessage());\n }\n\n System.out.println(\"Vegetables weight after peeling: \" + newVegetablesWeight.round(MathContext.DECIMAL32) + \" g.\");\n\n // Insertion of peeled vegetables back to total basket\n basket.put(vegetablesToProcess);\n newBasketWeight = basket.getBasketWeight();\n System.out.println(\"Basket weight after vegetables peeling: \" + newBasketWeight.round(MathContext.DECIMAL32) + \" g.\");\n\n // Weight difference\n System.out.println(\"Weight difference: \" + (oldBasketWeight.subtract(newBasketWeight)).round(MathContext.DECIMAL32) + \" g.\");\n\n System.out.println(\"\\n\\n CUTTING VEGETABLES:\\n\");\n\n // Current weight of total basket\n oldBasketWeight = basket.getBasketWeight();\n System.out.println(\"Basket weight before vegetables cutting: \" + oldBasketWeight.round(MathContext.DECIMAL32) + \" g.\");\n\n // Current weight of vegetables in total basket\n oldVegetablesWeight = basket.getVegetablesWeight();\n System.out.println(\"Vegetables weight before cutting: \" + oldVegetablesWeight.round(MathContext.DECIMAL32) + \" g.\");\n\n // Extracting of all vegetables from total basket\n vegetablesToProcess = basket.extractAllVegetables();\n\n try {\n // Weight of vegetables after cutting\n newVegetablesWeight = foodProcessor.cutAll(vegetablesToProcess);\n } catch (IllegalArgumentException e) {\n System.out.println(e.getMessage());\n }\n\n System.out.println(\"Vegetables weight after cutting: \" + newVegetablesWeight.round(MathContext.DECIMAL32) + \" g.\");\n\n // Insertion of cuted vegetables back to total basket\n basket.put(vegetablesToProcess);\n newBasketWeight = basket.getBasketWeight();\n System.out.println(\"Basket weight after vegetables cutting: \" + newBasketWeight.round(MathContext.DECIMAL32) + \" g.\");\n\n // Weight difference\n System.out.println(\"Weight difference: \" + (oldBasketWeight.subtract(newBasketWeight)).round(MathContext.DECIMAL32) + \" g.\");\n\n System.out.println(\"\\n\\n SLICING FRUITS:\\n\");\n\n // Current weight of total basket\n oldBasketWeight = basket.getBasketWeight();\n System.out.println(\"Basket weight before fruits slicing: \" + oldBasketWeight.round(MathContext.DECIMAL32) + \" g.\");\n\n // Current weight of fruits in total basket\n oldFruitsWeight = basket.getFruitsWeight();\n System.out.println(\"Fruits weight before slicing: \" + oldFruitsWeight.round(MathContext.DECIMAL32) + \" g.\");\n\n // Extracting of all fruits from total basket\n fruitsToProcess = basket.extractAllFruits();\n\n try {\n // Weight of fruits after slicing\n newFruitsWeight = foodProcessor.sliceAll(fruitsToProcess);\n } catch (IllegalArgumentException e) {\n System.out.println(e.getMessage());\n }\n\n System.out.println(\"Fruits weight after slicing: \" + newFruitsWeight.round(MathContext.DECIMAL32) + \" g.\");\n\n // Insertion of sliced fruits back to total basket\n basket.put(fruitsToProcess);\n newBasketWeight = basket.getBasketWeight();\n System.out.println(\"Basket weight after fruits slicing: \" + newBasketWeight.round(MathContext.DECIMAL32) + \" g.\");\n\n // Weight difference\n System.out.println(\"Weight difference: \" + (oldBasketWeight.subtract(newBasketWeight)).round(MathContext.DECIMAL32) + \" g.\");\n\n System.out.println(\"\\n\\n NEW PLANT SLICING\\n\");\n\n // New plant creation\n Potato potatoRpPink = new Potato(new BigDecimal(120.9), \"pink\", Ripeness.RIPE, false);\n\n // Insertion to the end of total basket\n basket.put(potatoRpPink);\n System.out.println(\"Basket contains:\");\n basket.printContent();\n System.out.println(\"\\nBasket weight: \" + basket.getBasketWeight() + \" g.\\n\");\n\n // Current weight of total basket\n oldBasketWeight = basket.getBasketWeight();\n\n // Extraction element from the end of total basket\n Plant lastInBasket = basket.extract(basket.getBasketContent().length - 1);\n\n // Weight of plant before slicing\n BigDecimal oldlastInBasketWeight = lastInBasket.getWeight();\n BigDecimal newLastInBasketWeight = new BigDecimal(0.0);\n\n System.out.println(lastInBasket);\n\n try {\n // Weight of plant after slicing\n newLastInBasketWeight = foodProcessor.slice(lastInBasket);\n } catch (IllegalArgumentException e) {\n newLastInBasketWeight = lastInBasket.getWeight();\n System.out.println(e.getMessage());\n }\n\n System.out.println(\"Plant weight after slicing: \" + newLastInBasketWeight + \" g.\");\n\n // Weight difference\n System.out.println(\"Weight difference: \" + (oldlastInBasketWeight.subtract(newLastInBasketWeight)).round(MathContext.DECIMAL32) + \" g.\");\n\n // Insertion of sliced plant back to total basket\n basket.put(lastInBasket);\n newBasketWeight = basket.getBasketWeight();\n System.out.println(\"Basket weight after last element slicing: \" + newBasketWeight.round(MathContext.DECIMAL32) + \" g.\");\n\n // Weight difference\n System.out.println(\"Weight difference: \" + (oldBasketWeight.subtract(newBasketWeight)).round(MathContext.DECIMAL32) + \" g.\");\n\n\n }", "public void popItems() {\n\t\t\n\t\tItemList.add(HPup);\n\t\tItemList.add(SHPup);\n\t\tItemList.add(DMGup);\n\t\tItemList.add(SDMGup);\n\t\tItemList.add(EVup);\n\t\tItemList.add(SEVup);\n\t\t\n\t\trandomDrops.add(HPup);\n\t\trandomDrops.add(SHPup);\n\t\trandomDrops.add(DMGup);\n\t\trandomDrops.add(SDMGup);\n\t\trandomDrops.add(EVup);\n\t\trandomDrops.add(SEVup);\n\t\t\n\t\tcombatDrops.add(SHPup);\n\t\tcombatDrops.add(SDMGup);\n\t\tcombatDrops.add(SEVup);\n\t}", "public void goFiniteShopping(ArrayList<Item> items){\n for (Item item : items){\n purchasePersonalItem(item);\n }\n }", "private void loadStartingInventory(){\n this.shelfList = floor.getShelf();\n Iterator<String> i = items.iterator();\n for (Shelf s : shelfList){\n while (s.hasFreeSpace()){\n s.addItem(i.next(), 1);\n }\n }\n }", "public void pourDrinks(ArrayList<String> drinks,ArrayList<Integer> quantities)\n {\n\n for(int i = 0; i < quantities.size(); i++){\n DrinkAndQuantity drink = new DrinkAndQuantity();\n Drink beverage = df.makeDrink(drinks.get(i));\n\n //after drink is made, update the inventory\n updateInventory(beverage, quantities.get(i));\n\n //update DrinkAndBeverage object\n drink.setDrink(beverage); \n drink.setQuantity(quantities.get(i));\n drinksAndQuantities.add(drink);\n }\n }", "public void getBackpack()\n {\n itemLimit = 3;\n haveBackpack = true;\n }", "@Override\n public void run() {\n int slotsUsed = 0;\n int potentialBananas = 0;\n RSItem[] items = Inventory.getAll();\n for (RSItem item : items) {\n // If this isn't a bone count it\n if (item.getID() < 6904 || item.getID() > 6907) {\n slotsUsed++;\n }\n else {\n // Item id bone amount\n // 6904 1\n // 6905 2\n // 6906 3\n // 6907 4\n potentialBananas += 1 + item.getID() - 6904;\n }\n }\n \n int slotsAvailable = 28 - slotsUsed;\n\n RSItem[] food = Inventory.find(1963);\n\n // If have bananas/peaches, deposit them, else collect bones\n if (food.length > 0) {\n // Heal and then deposit\n float eatHealth = m_settings.m_eatHealth * Skills.getActualLevel(SKILLS.HITPOINTS);\n float eatTo = m_settings.m_eatTo * Skills.getActualLevel(SKILLS.HITPOINTS);\n \n if (food.length > 0 && Skills.getCurrentLevel(SKILLS.HITPOINTS) < eatHealth) {\n // Eat\n while (food.length > 0 && Skills.getCurrentLevel(SKILLS.HITPOINTS) < eatTo) {\n food[0].click(\"Eat\");\n m_script.sleep(300, 600);\n food = Inventory.find(1963);\n }\n }\n else {\n // Deposit\n RSObject[] objs = Objects.findNearest(50, \"Food chute\");\n if (objs.length > 0) {\n while (!objs[0].isOnScreen()) {\n Walking.blindWalkTo(objs[0]);\n m_script.sleep(250);\n }\n objs[0].click(\"Deposit\");\n m_script.sleep(1200);\n }\n }\n }\n else {\n // If we have more than a full load of bananas worth of bones, cast bones to peaches\n if (potentialBananas >= slotsAvailable) {\n // Cast bones to peaches\n Magic.selectSpell(\"Bones to Bananas\");\n }\n else {\n // Collect bananas\n RSObject[] bonePiles = Objects.findNearest(10725, 10726, 10727, 10728);\n if (bonePiles.length > 0) {\n while (!bonePiles[0].isOnScreen()) {\n Walking.blindWalkTo(bonePiles[0]);\n m_script.sleep(250);\n }\n bonePiles[0].click(\"Grab\");\n m_script.sleep(150);\n }\n }\n }\n }", "private void initialiseBags() {\r\n\t\t//Player one bag\r\n\t\taddToBag1(GridSquare.Type.a, GridSquare.Type.VERTICAL_SWORD, GridSquare.Type.SHIELD, GridSquare.Type.VERTICAL_SWORD, GridSquare.Type.HORIZONTAL_SWORD);\r\n\t\taddToBag1(GridSquare.Type.b, GridSquare.Type.VERTICAL_SWORD, GridSquare.Type.EMPTY, GridSquare.Type.VERTICAL_SWORD, GridSquare.Type.HORIZONTAL_SWORD);\r\n\t\taddToBag1(GridSquare.Type.c, GridSquare.Type.SHIELD, GridSquare.Type.SHIELD, GridSquare.Type.SHIELD, GridSquare.Type.SHIELD);\r\n\t\taddToBag1(GridSquare.Type.d, GridSquare.Type.VERTICAL_SWORD, GridSquare.Type.EMPTY, GridSquare.Type.SHIELD, GridSquare.Type.EMPTY);\r\n\t\taddToBag1(GridSquare.Type.e, GridSquare.Type.EMPTY, GridSquare.Type.EMPTY, GridSquare.Type.EMPTY, GridSquare.Type.EMPTY);\r\n\t\taddToBag1(GridSquare.Type.f, GridSquare.Type.VERTICAL_SWORD, GridSquare.Type.SHIELD, GridSquare.Type.SHIELD, GridSquare.Type.HORIZONTAL_SWORD);\r\n\t\taddToBag1(GridSquare.Type.g, GridSquare.Type.VERTICAL_SWORD, GridSquare.Type.HORIZONTAL_SWORD, GridSquare.Type.VERTICAL_SWORD, GridSquare.Type.HORIZONTAL_SWORD);\r\n\t\taddToBag1(GridSquare.Type.h, GridSquare.Type.VERTICAL_SWORD, GridSquare.Type.EMPTY, GridSquare.Type.SHIELD, GridSquare.Type.SHIELD);\r\n\t\taddToBag1(GridSquare.Type.i, GridSquare.Type.EMPTY, GridSquare.Type.SHIELD, GridSquare.Type.EMPTY, GridSquare.Type.EMPTY);\r\n\t\taddToBag1(GridSquare.Type.j, GridSquare.Type.VERTICAL_SWORD, GridSquare.Type.SHIELD, GridSquare.Type.VERTICAL_SWORD, GridSquare.Type.SHIELD);\r\n\t\taddToBag1(GridSquare.Type.k, GridSquare.Type.VERTICAL_SWORD, GridSquare.Type.SHIELD, GridSquare.Type.EMPTY, GridSquare.Type.HORIZONTAL_SWORD);\r\n\t\taddToBag1(GridSquare.Type.l, GridSquare.Type.VERTICAL_SWORD, GridSquare.Type.EMPTY, GridSquare.Type.EMPTY, GridSquare.Type.EMPTY);\r\n\t\taddToBag1(GridSquare.Type.m, GridSquare.Type.VERTICAL_SWORD, GridSquare.Type.SHIELD, GridSquare.Type.SHIELD, GridSquare.Type.EMPTY);\r\n\t\taddToBag1(GridSquare.Type.n, GridSquare.Type.EMPTY, GridSquare.Type.SHIELD, GridSquare.Type.SHIELD, GridSquare.Type.EMPTY);\r\n\t\taddToBag1(GridSquare.Type.o, GridSquare.Type.VERTICAL_SWORD, GridSquare.Type.EMPTY, GridSquare.Type.VERTICAL_SWORD, GridSquare.Type.SHIELD);\r\n\t\taddToBag1(GridSquare.Type.p, GridSquare.Type.VERTICAL_SWORD, GridSquare.Type.EMPTY, GridSquare.Type.SHIELD, GridSquare.Type.HORIZONTAL_SWORD);\r\n\t\taddToBag1(GridSquare.Type.q, GridSquare.Type.VERTICAL_SWORD, GridSquare.Type.EMPTY, GridSquare.Type.EMPTY, GridSquare.Type.SHIELD);\r\n\t\taddToBag1(GridSquare.Type.r, GridSquare.Type.VERTICAL_SWORD, GridSquare.Type.SHIELD, GridSquare.Type.EMPTY, GridSquare.Type.SHIELD);\r\n\t\taddToBag1(GridSquare.Type.s, GridSquare.Type.EMPTY, GridSquare.Type.SHIELD, GridSquare.Type.EMPTY, GridSquare.Type.SHIELD);\r\n\t\taddToBag1(GridSquare.Type.t, GridSquare.Type.VERTICAL_SWORD, GridSquare.Type.EMPTY, GridSquare.Type.VERTICAL_SWORD, GridSquare.Type.EMPTY);\r\n\t\taddToBag1(GridSquare.Type.u, GridSquare.Type.VERTICAL_SWORD, GridSquare.Type.EMPTY, GridSquare.Type.EMPTY, GridSquare.Type.HORIZONTAL_SWORD);\r\n\t\taddToBag1(GridSquare.Type.v, GridSquare.Type.VERTICAL_SWORD, GridSquare.Type.SHIELD, GridSquare.Type.EMPTY, GridSquare.Type.EMPTY);\r\n\t\taddToBag1(GridSquare.Type.w, GridSquare.Type.VERTICAL_SWORD, GridSquare.Type.SHIELD, GridSquare.Type.SHIELD, GridSquare.Type.SHIELD);\r\n\t\taddToBag1(GridSquare.Type.x, GridSquare.Type.EMPTY, GridSquare.Type.SHIELD, GridSquare.Type.SHIELD, GridSquare.Type.SHIELD);\r\n\t\t\r\n\t\t//Player two bag\r\n\t\taddToBag2(GridSquare.Type.A, GridSquare.Type.VERTICAL_SWORD, GridSquare.Type.SHIELD, GridSquare.Type.VERTICAL_SWORD, GridSquare.Type.HORIZONTAL_SWORD);\r\n\t\taddToBag2(GridSquare.Type.B, GridSquare.Type.VERTICAL_SWORD, GridSquare.Type.EMPTY, GridSquare.Type.VERTICAL_SWORD, GridSquare.Type.HORIZONTAL_SWORD);\r\n\t\taddToBag2(GridSquare.Type.C, GridSquare.Type.SHIELD, GridSquare.Type.SHIELD, GridSquare.Type.SHIELD, GridSquare.Type.SHIELD);\r\n\t\taddToBag2(GridSquare.Type.D, GridSquare.Type.VERTICAL_SWORD, GridSquare.Type.EMPTY, GridSquare.Type.SHIELD, GridSquare.Type.EMPTY);\r\n\t\taddToBag2(GridSquare.Type.E, GridSquare.Type.EMPTY, GridSquare.Type.EMPTY, GridSquare.Type.EMPTY, GridSquare.Type.EMPTY);\r\n\t\taddToBag2(GridSquare.Type.F, GridSquare.Type.VERTICAL_SWORD, GridSquare.Type.SHIELD, GridSquare.Type.SHIELD, GridSquare.Type.HORIZONTAL_SWORD);\r\n\t\taddToBag2(GridSquare.Type.G, GridSquare.Type.VERTICAL_SWORD, GridSquare.Type.HORIZONTAL_SWORD, GridSquare.Type.VERTICAL_SWORD, GridSquare.Type.HORIZONTAL_SWORD);\r\n\t\taddToBag2(GridSquare.Type.H, GridSquare.Type.VERTICAL_SWORD, GridSquare.Type.EMPTY, GridSquare.Type.SHIELD, GridSquare.Type.SHIELD);\r\n\t\taddToBag2(GridSquare.Type.I, GridSquare.Type.EMPTY, GridSquare.Type.SHIELD, GridSquare.Type.EMPTY, GridSquare.Type.EMPTY);\r\n\t\taddToBag2(GridSquare.Type.J, GridSquare.Type.VERTICAL_SWORD, GridSquare.Type.SHIELD, GridSquare.Type.VERTICAL_SWORD, GridSquare.Type.SHIELD);\r\n\t\taddToBag2(GridSquare.Type.K, GridSquare.Type.VERTICAL_SWORD, GridSquare.Type.SHIELD, GridSquare.Type.EMPTY, GridSquare.Type.HORIZONTAL_SWORD);\r\n\t\taddToBag2(GridSquare.Type.L, GridSquare.Type.VERTICAL_SWORD, GridSquare.Type.EMPTY, GridSquare.Type.EMPTY, GridSquare.Type.EMPTY);\r\n\t\taddToBag2(GridSquare.Type.M, GridSquare.Type.VERTICAL_SWORD, GridSquare.Type.SHIELD, GridSquare.Type.SHIELD, GridSquare.Type.EMPTY);\r\n\t\taddToBag2(GridSquare.Type.N, GridSquare.Type.EMPTY, GridSquare.Type.SHIELD, GridSquare.Type.SHIELD, GridSquare.Type.EMPTY);\r\n\t\taddToBag2(GridSquare.Type.O, GridSquare.Type.VERTICAL_SWORD, GridSquare.Type.EMPTY, GridSquare.Type.VERTICAL_SWORD, GridSquare.Type.SHIELD);\r\n\t\taddToBag2(GridSquare.Type.P, GridSquare.Type.VERTICAL_SWORD, GridSquare.Type.EMPTY, GridSquare.Type.SHIELD, GridSquare.Type.HORIZONTAL_SWORD);\r\n\t\taddToBag2(GridSquare.Type.Q, GridSquare.Type.VERTICAL_SWORD, GridSquare.Type.EMPTY, GridSquare.Type.EMPTY, GridSquare.Type.SHIELD);\r\n\t\taddToBag2(GridSquare.Type.R, GridSquare.Type.VERTICAL_SWORD, GridSquare.Type.SHIELD, GridSquare.Type.EMPTY, GridSquare.Type.SHIELD);\r\n\t\taddToBag2(GridSquare.Type.S, GridSquare.Type.EMPTY, GridSquare.Type.SHIELD, GridSquare.Type.EMPTY, GridSquare.Type.SHIELD);\r\n\t\taddToBag2(GridSquare.Type.T, GridSquare.Type.VERTICAL_SWORD, GridSquare.Type.EMPTY, GridSquare.Type.VERTICAL_SWORD, GridSquare.Type.EMPTY);\r\n\t\taddToBag2(GridSquare.Type.U, GridSquare.Type.VERTICAL_SWORD, GridSquare.Type.EMPTY, GridSquare.Type.EMPTY, GridSquare.Type.HORIZONTAL_SWORD);\r\n\t\taddToBag2(GridSquare.Type.V, GridSquare.Type.VERTICAL_SWORD, GridSquare.Type.SHIELD, GridSquare.Type.EMPTY, GridSquare.Type.EMPTY);\r\n\t\taddToBag2(GridSquare.Type.W, GridSquare.Type.VERTICAL_SWORD, GridSquare.Type.SHIELD, GridSquare.Type.SHIELD, GridSquare.Type.SHIELD);\r\n\t\taddToBag2(GridSquare.Type.X, GridSquare.Type.EMPTY, GridSquare.Type.SHIELD, GridSquare.Type.SHIELD, GridSquare.Type.SHIELD);\r\n\t}", "private static boolean canPack(int bigCount, int smallCount, int goal) {\n\n//Check if all parameters are in valid range\n if (bigCount < 0 || smallCount < 0 || goal < 0)\n return false;\n\n int pack = 0;\n\n //While we haven't created a pack\n while (pack < goal) {\n //see if a big flour bag can fit in the package\n if (bigCount > 0 && (pack + 5) <= goal) {\n bigCount--;\n pack += 5;\n\n }\n //see there is a small flour bag left, to add to the package\n else if (smallCount > 0) {\n smallCount--;\n pack += 1;\n }\n //if a big bag won't fit (or doesnt exist) and we dont have enough small bags\n else\n return false;\n }\n return (pack == goal);\n }", "public void fillInventory(TheGroceryStore g);", "@Override\n\tpublic void addItems(Workspace workspace) {\n//\t\tSession currentSession = sessionFactory.getCurrentSession();\n//\t\tfor(Cart_items myCart : workspace.getCartItems()) {\t\n//\t\t\tcurrentSession.save(myCart);\n//\t\t}\n\t}", "public void withdrawAll() {\r\n for (int i = 0; i < container.capacity(); i++) {\r\n Item item = container.get(i);\r\n if (item == null) {\r\n continue;\r\n }\r\n int amount = owner.getInventory().getMaximumAdd(item);\r\n if (item.getCount() > amount) {\r\n item = new Item(item.getId(), amount);\r\n container.remove(item, false);\r\n owner.getInventory().add(item, false);\r\n } else {\r\n container.replace(null, i, false);\r\n owner.getInventory().add(item, false);\r\n }\r\n }\r\n container.update();\r\n owner.getInventory().update();\r\n }", "@Override\n\tpublic boolean placeOrder(ArrayList<CartItems> cart_items) {\n\t\tboolean b = false;\n\t\tif(checkStock.isAvailable(cart_items)) {\n\t\t\tb=true;\n\t\t}\n\t\treturn b;\n\t}", "public void loadTotsPack(Context context) {\n PlayerDAO playerDAO = new PlayerDAO(context);\n ArrayList<PackOpenerPlayer> totsPlayers = playerDAO.getTOTSPlayers();\n ArrayList<PackOpenerPlayer> otherPlayers = playerDAO.getNonTOTSPlayers();\n\n Collections.shuffle(totsPlayers);\n Collections.shuffle(otherPlayers);\n ArrayList<PackOpenerPlayer> tempPlayers = new ArrayList<>();\n //adding one tots player\n tempPlayers.add(totsPlayers.get(0));\n\n //adding other remaining players\n int counter = 0;\n boolean higherRatedPlayerIncluded = false;\n while (tempPlayers.size() < 9) {\n if (otherPlayers.get(counter).getRating() > 83) {\n if (!higherRatedPlayerIncluded) {\n tempPlayers.add(otherPlayers.get(counter));\n higherRatedPlayerIncluded = true;\n }\n } else {\n tempPlayers.add(otherPlayers.get(counter));\n }\n counter++;\n }\n Collections.sort(tempPlayers);\n packPlayers = new ArrayList<>(tempPlayers);\n }", "private void initialState() {\n forEach(item -> item.setInKnapsack(false));\n\n for (final Item item : this) {\n if (wouldOverpack(item)) {\n break;\n }\n item.switchIsKnapsack();\n }\n }", "public void displayCartContents() {\r\n for (int i = 0; i < numItems; i++) { // Checks all objects in the cart\r\n if ((cart[i].getContents() != \"\")) { // If not item\r\n System.out.println(cart[i].getDescription()); // Display bag description\r\n System.out.println(cart[i].getContents()); // Display contents of bag\r\n } else { // Else it must be item\r\n System.out.println(cart[i].getDescription()); // Display item description\r\n }\r\n }\r\n }", "public PerishableItem[] removePerishables() {\r\n // Check how many perishables items there are in total\r\n int perishableCount = 0;\r\n for (int i = 0; i < numItems; i++) { // Checks how many perishables in the cart (loose items)\r\n if (cart[i] instanceof PerishableItem) {\r\n perishableCount++;\r\n }\r\n }\r\n for (int i = 0; i < pBags.length; i++) { // Checks how many perishables in all the bags in the cart\r\n for (int j = 0; j < pBags[i].getNumItems(); j++) {\r\n if (pBags[i].getItems()[j] instanceof PerishableItem)\r\n perishableCount++;\r\n }\r\n }\r\n\r\n PerishableItem[] perishables = new PerishableItem[perishableCount];\r\n perishableCount = 0;\r\n // Assign any perishable item to 'perishables' variable and remove them from cart/packed bags\r\n for (int i = 0; i < numItems; i++) {\r\n if (cart[i] instanceof PerishableItem) { // Checks each item if its an instance of PerishableItem\r\n perishables[perishableCount++] = (PerishableItem) cart[i]; // Adds it to the perishables variable\r\n removeItem(cart[i]); // Removes it from the cart\r\n i--; // Checks the same element (Since its different now based on the removeItem function)\r\n }\r\n }\r\n for (int i = 0; i < pBags.length; i++) {\r\n PerishableItem[] perishablesInBags = pBags[i].unpackPerishables(); // Unpacks perishables from pbags and stores them into a variable\r\n for (int j = 0; j < perishablesInBags.length; j++) { // Loops through each item in perishablesInBags\r\n perishables[perishableCount++] = perishablesInBags[j]; // Assigns each item to the perishables variable\r\n }\r\n }\r\n return perishables; // Return the perishables items that were removed\r\n }", "public void dropBackpack()\n {\n itemLimit = 1;\n haveBackpack = false;\n }", "private void condenseShoppingCart()\n {\n for(int d = 0; d < PersistentData.ArryShoppingCartItemNo.size(); d++)\n {\n int numberofItems = 0;\n\n boolean itemNoAlreadyCondensed = false;\n if(CondensedShoppingCart.contains(PersistentData.ArryShoppingCartItemNo.get(d)))\n {\n itemNoAlreadyCondensed = true;\n }\n if(itemNoAlreadyCondensed == false)\n {\n for(int y = 0; y < PersistentData.ArryShoppingCartItemNo.size(); y++)\n {\n if(PersistentData.ArryShoppingCartItemNo.get(d) == PersistentData.ArryShoppingCartItemNo.get(y))\n {\n numberofItems++;\n }\n }\n CondensedShoppingCart.add(PersistentData.ArryShoppingCartItemNo.get(d));\n ShoppingCartItemQuantities.add(numberofItems);\n }\n }\n }", "public void mostrarCartasBazas(){\n int cont = 0;\n while(cont < cartasDeLaBaza.size()){\n System.out.println(cartasDeLaBaza.get(cont).toString());\n cont ++;\n }\n }", "@Override\n\tpublic void browseItems(Session session){\n\t\t//exception handling block\n\t\ttry{\n\t\t\tbrowseItem=mvc.browseItems(session);\n\t\t\t//displaying items from database\n\t\t\tSystem.out.println(\"<---+++---Your shopping items list here----+++--->\");\n\t\t\tSystem.out.println(\"ItemId\"+\" \"+\"ItemName\"+\" \"+\"ItemType\"+\" \"+\"ItemPrice\"+\" \"+\"ItemQuantity\");\n\t\t\tfor(int i = 0; i < browseItem.size(); i++) {\n\t System.out.println(browseItem.get(i)+\"\\t\"+\"\\t\");\n\t }\n\t System.out.println(\"<------------------------------------------------>\");\n\t\t}\n\t\tcatch(Exception e){\n\t\t\tSystem.out.println(\"Online Market App Exception- Browse Items: \" +e.getMessage());\n\t\t}\n\t}", "private void checkout() {\n\t\tif (bag.getSize() == 0) {\n\t\t\tSystem.out.println(\"Unable to check out, the bag is empty!\");\n\t\t} else {\n\t\t\tcheckoutNotEmptyBag();\n\t\t}\n\t}", "private void getItemsInBasket(){\n Disposable disposable = mViewModel.getItemsInBasket()\n .subscribeOn(Schedulers.io())\n .observeOn(AndroidSchedulers.mainThread())\n .doOnError(throwable -> Log.e(\"BasketFragment\",throwable.getMessage()))\n .subscribe(basketItems -> basketListAdapter.submitList(basketItems));\n mDisposable.add(disposable);\n }", "public void loadRarePlayersPack(Context context) {\n PlayerDAO playerDAO = new PlayerDAO(context);\n ArrayList<PackOpenerPlayer> players = playerDAO.getRarePlayers();\n\n Collections.shuffle(players);\n ArrayList<PackOpenerPlayer> tempPlayers = new ArrayList<>();\n int counter = 0;\n boolean higherRatedPlayerIncluded = false;\n while (tempPlayers.size() < 9) {\n if (players.get(counter).getRating() > 83) {\n if (!higherRatedPlayerIncluded) {\n tempPlayers.add(players.get(counter));\n higherRatedPlayerIncluded = true;\n }\n } else {\n tempPlayers.add(players.get(counter));\n }\n counter++;\n }\n Collections.sort(tempPlayers);\n packPlayers = new ArrayList<>(tempPlayers);\n }", "private void pushPurchases() {\n if (purchaseQueue.isEmpty()) {\n return;\n }\n\n if (!connected) {\n this.reconnectSupplier();\n }\n\n while (true) {\n synchronized (queueLock) {\n PurchaseRequest request = purchaseQueue.peek();\n if (request == null) {\n // finished pushing all buffered\n break;\n }\n\n boolean success = false;\n try {\n success = supplier.purchase(request);\n\n } catch (RemoteException e) {\n System.out.println(\"Unable to communicate with supplier to push request\");\n e.printStackTrace();\n connected=false;\n break;\n }\n\n // purchase either was successful, or denied by supplier, so remove it from buffer\n purchaseQueue.poll();\n if (!success) {\n request.failed();\n }\n }\n }\n }", "public static void main(String[] args) {\n\t\t\n\t\tItem[] itemArray = new Item[5];\n\t\titemArray[0] = new Item(\"Duster\", 20.0);\n\t\titemArray[1] = new Item(\"Pencil\", 10.0);\n\t\titemArray[2] = new Item(\"Stapler\", 75.5);\n\t\titemArray[3] = new Item(\"Sharpener\", 15.5);\n\t\titemArray[4] = new Item(\"Stencil\", 25.5);\n\t\t\n\t\tBag b1 = new Bag(\"VIP\", 5);\n\t\t\n\t\tint i = 0;\n\t\t\n\t\twhile (i < itemArray.length) {\n\t\t\tSystem.out.println(\"Adding item of index :\" + i + \"into bag now...\");\n\t\t\tb1.addItem(itemArray[i++]);\n\t\t}\n\t\t\n\t\tb1.printItems();\n\t\tb1.getTotal();\n\t}", "private void testShippingGoods(){\n\t\tItem []itemArray1 = warehouse.getProductsByID(\"\");\n\n\n\t\tItem[] itemArray = warehouse.shippingGoods(itemArray1);\n\t\tSystem.out.println(\"There are \" + itemArray.length + \" items\");\n\t\tfor(Item item: itemArray){\n\t\t\tItemImpl tmpItemImpl = new ItemImpl(item);\n\t\t\tSystem.out.println(tmpItemImpl.toString());\n\t\t}\n\t}", "public List<Item> pickBasketItems(Map<String, List<Item>> inventoryMap) {\n\t\tList<Item> bucketList = new ArrayList<Item>();\n\t\tint cost = 0;\t\n\n\t\tList<Item> inventoryItems = this.getAllItems(inventoryMap);\n\t\tinventoryItems.sort(new Comparator<Item>() {\n\n\t\t\t@Override\n\t\t\tpublic int compare(Item o1, Item o2) {\n\t\t\t\treturn o2.getRating()*o1.getPrice() - o1.getRating()*o2.getPrice();\n\t\t\t}\n\n\t\t});\n\t\tfor (Item item : inventoryItems) {\n\t\t\tif (cost == 50) {\n\t\t\t\tbreak;\n\t\t\t} else if (cost + item.getPrice() < 50) {\n\t\t\t\tbucketList.add(item);\n\t\t\t\tcost += item.getPrice();\n\t\t\t}\n\t\t}\n\t\treturn bucketList;\n\t}", "@Test\n\tpublic void testAddingItemsToShoppingCart() {\n\t\tShoppingCartAggregate shoppingCartAggregate = storeFrontService.getStoreFront()\n\t\t\t\t.getShoppingCounter(SHOPPING_COUNTER_NAME).get().startShoppingCart(CUSTOMER_NAME);\n\n\t\ttry {\n\t\t\tshoppingCartAggregate.addToCart(TestProduct.phone.getProductId(), new BigDecimal(1));\n\t\t\tshoppingCartAggregate.addToCart(TestProduct.phoneCase.getProductId(), new BigDecimal(2));\n\t\t} catch (InsufficientStockException e) {\n\t\t\tfail(\"Inventory check failed while adding a product in shopping cart\");\n\t\t}\n\n\t\tPurchaseOrderAggregate purchaseOrderAggregate = shoppingCartAggregate.checkoutCart();\n\t\tassertNotNull(purchaseOrderAggregate);\n\n\t\tPurchaseOrder purchaseOrder = purchaseOrderAggregate.getPurchaseOrder();\n\t\tassertNotNull(purchaseOrder);\n\n\t\tassertEquals(2, purchaseOrder.getOrderItems().size());\n\n\t\tassertEquals(ShoppingCart.CartStatus.CHECKEDOUT, shoppingCartAggregate.getShoppingCart().getCartStatus());\n\t}", "public void buyItem() {\n List<Gnome> cart = user.getCart();\n String message = \"\";\n List<Gnome> bought = shopFacade.buyGnomes(cart);\n if (!bought.isEmpty()) {\n message = bought.size() + \" items bought\";\n } else {\n message = \"Could not buy any items\";\n }\n userFacade.assignBought(user, bought);\n user.getCart().removeAll(bought);\n cart.removeAll(bought);\n userFacade.setCartToUser(user.getUsername(), cart);\n FacesMessage msg = new FacesMessage(FacesMessage.SEVERITY_INFO, \"Gnomes\", message);\n FacesContext.getCurrentInstance().addMessage(null, msg);\n }", "private void createFullPackOfCards()\r\n {\r\n // Todo\r\n\r\n // Using a for-loop, add all the Card instances to cards.\r\n for ( int i = 0; i < NOOFCARDSINFULLPACK; i ++) {\r\n addTopCard( new Card(i));\r\n }\r\n }", "private void requestBucks() {\n\n\t}", "public void loadMegaPlayersPack(Context context) {\n PlayerDAO playerDAO = new PlayerDAO(context);\n ArrayList<PackOpenerPlayer> players = playerDAO.getRarePlayers();\n\n Collections.shuffle(players);\n ArrayList<PackOpenerPlayer> tempPlayers = new ArrayList<>();\n int counter = 0;\n boolean higherRatedPlayerIncluded = false;\n while (tempPlayers.size() < 44) {\n if (players.get(counter).getRating() > 85) {\n if (!higherRatedPlayerIncluded) {\n tempPlayers.add(players.get(counter));\n higherRatedPlayerIncluded = true;\n }\n } else {\n tempPlayers.add(players.get(counter));\n }\n counter++;\n }\n Collections.sort(tempPlayers);\n packPlayers = new ArrayList<>(tempPlayers);\n }", "public Shopper() {\r\n cart = new Carryable[MAX_CART_ITEMS];\r\n numItems = 0;\r\n }", "public List<Box> packThings (List<Thing> things){\n List<Box> boxes = new ArrayList<Box>();\r\n \r\n for (Thing thing : things){\r\n Box box = new Box(boxesVolume); //creates new box with specified volume\r\n box.addThing(thing); //adds things to the Box\r\n boxes.add(box); //adds box to list of boxes\r\n }\r\n \r\n return boxes;\r\n }", "private void demoDeliverProducts()\n {\n System.out.println(\"\\nDelivering all the products\\n\");\n System.out.println(\"============================\");\n System.out.println();\n for(int id = 101; id <= 110; id++)\n {\n amount = generator.nextInt(20);\n manager.delivery(id, amount);\n }\n \n manager.printAllProducts();\n }", "private void createItems()\n {\n Item belt, nappies, phone, money, cigarretes, \n jacket, cereal, shoes, keys, comics, bra, \n bread, bowl, computer;\n\n belt = new Item(2,\"Keeps something from falling\",\"Belt\");\n nappies = new Item(7,\"Holds the unspeakable\",\"Nappies\");\n phone = new Item(4, \"A electronic device that holds every answer\",\"Iphone 10\");\n money = new Item(1, \"A form of currency\",\"Money\");\n cigarretes = new Item(2,\"It's bad for health\",\"Cigarretes\");\n jacket = new Item(3,\"Keeps you warm and cozy\", \"Jacket\");\n cereal = new Item(3, \"What you eat for breakfast\",\"Kellog's Rice Kripsies\");\n shoes = new Item(5,\"Used for walking\", \"Sneakers\");\n keys = new Item(2, \"Unlock stuff\", \"Keys\");\n comics = new Item(2, \"A popular comic\",\"Batman Chronicles\");\n bra = new Item(3,\"What is this thing?, Eeeewww\", \"Bra\");\n bread = new Item(6,\"Your best source of carbohydrates\",\"Bread\");\n bowl = new Item(4,\"where food is placed\",\"Plate\");\n computer = new Item(10,\"A computational machine\",\"Computer\");\n\n items.add(belt);\n items.add(nappies);\n items.add(phone);\n items.add(money);\n items.add(cigarretes);\n items.add(jacket);\n items.add(cereal);\n items.add(shoes);\n items.add(keys);\n items.add(comics);\n items.add(bra);\n items.add(bread);\n items.add(bowl);\n items.add(computer);\n }", "public static int checkout(Basket basket) {\n\t\tfor (Map.Entry<StockItem, Integer> item : basket.Items().entrySet()) {\n\t\t\tString itemName = item.getKey().getName();\n\t\t\tStockItem stockItem = stockList.get(itemName);\n\t\t\tif (stockItem == null) {\n\t\t\t\tSystem.out.println(\"We don't sell \" + itemName);\n\t\t\t\treturn 0;\n\t\t\t}\n\t\t\tstockList.sellStock(itemName);\n\t\t}\n\t\tbasket.clear();\n\t\treturn 0;\n\t}", "private void placeBombs() {\n\t\tfor (int i = 0; i < NUM_BOMBS; i++) {\n\t\t\tplaceBomb();\n\t\t}\n\t}", "public static void craft()\r\n\t{\r\n\t\tList<IRecipe> recipeList = CraftingManager.getInstance().getRecipeList();\r\n\t\tIterator<IRecipe> recipe = recipeList.iterator();\r\n\r\n\t\twhile (recipe.hasNext())\r\n\t\t{\r\n\t\t\tItemStack stack = recipe.next().getRecipeOutput();\r\n\r\n\t\t\tif (stack != null && stack.areItemsEqual(stack, new ItemStack(Blocks.STONEBRICK, 1, 0)))\r\n\t\t\t{\r\n\t\t\t\trecipe.remove();\r\n\t\t\t} else if (stack != null && stack.areItemsEqual(stack, new ItemStack(Blocks.END_BRICKS, 1, 0)))\r\n\t\t\t{\r\n\t\t\t\trecipe.remove();\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\t/**\r\n\t\t * Adds all the 2 by 2 crafting Recipes\r\n\t\t */\r\n\t\tcraft2by2(new ItemStack(Blocks.STONE, 1, 2), new ItemStack(BBBlocks.moreStones, 4, 1));\r\n\t\tcraft2by2(new ItemStack(Blocks.STONE, 1, 4), new ItemStack(BBBlocks.moreStones, 4, 3));\r\n\t\tcraft2by2(new ItemStack(Blocks.STONE, 1, 6), new ItemStack(BBBlocks.moreStones, 4, 5));\r\n\t\tcraft2by2(new ItemStack(BBBlocks.moreStones, 1, 6), new ItemStack(BBBlocks.moreStones, 4, 9));\r\n\t\tcraft2by2(new ItemStack(BBBlocks.moreStones, 1, 9), new ItemStack(BBBlocks.moreStones, 4, 8));\r\n\t\tcraft2by2(new ItemStack(BBBlocks.moreStones, 1, 10), new ItemStack(BBBlocks.moreStones, 4, 13));\r\n\t\tcraft2by2(new ItemStack(BBBlocks.moreStones, 1, 13), new ItemStack(BBBlocks.moreStones, 4, 12));\r\n\t\tcraft2by2(new ItemStack(Blocks.SANDSTONE, 1, 2), new ItemStack(BBBlocks.moreStones, 4, 14));\r\n\t\tcraft2by2(new ItemStack(BBBlocks.moreStones, 1, 8), new ItemStack(BBBlocks.cotswoldBricks, 4));\r\n\t\tcraft2by2(new ItemStack(Blocks.BRICK_BLOCK, 1), new ItemStack(BBBlocks.agedBricks, 4));\r\n\t\tcraft2by2(new ItemStack(BBBlocks.moreStones2, 1, 2), new ItemStack(BBBlocks.moreStones2, 4, 5));\r\n\t\tcraft2by2(new ItemStack(BBBlocks.moreStones2, 1, 5), new ItemStack(BBBlocks.moreStones2, 4, 4));\r\n\t\tcraft2by2(new ItemStack(BBBlocks.moreStones2, 1, 1), new ItemStack(BBBlocks.moreStones2, 4, 0));\r\n\t\tcraft2by2(new ItemStack(BBBlocks.moreStones, 1, 14), new ItemStack(BBBlocks.moreStones2, 4, 1));\r\n\t\tcraft2by2(new ItemStack(Blocks.RED_SANDSTONE, 1, 2), new ItemStack(BBBlocks.moreStones2, 4, 6));\r\n\t\tcraft2by2(new ItemStack(BBBlocks.moreStones2, 1, 6), new ItemStack(BBBlocks.moreStones2, 4, 9));\r\n\t\tcraft2by2(new ItemStack(BBBlocks.moreStones2, 1, 9), new ItemStack(BBBlocks.moreStones2, 4, 8));\r\n\t\tcraft2by2(new ItemStack(Blocks.NETHERRACK, 1), new ItemStack(BBBlocks.moreStones2, 4, 11));\r\n\t\tcraft2by2(new ItemStack(BBBlocks.moreStones2, 1, 11), new ItemStack(BBBlocks.moreStones2, 4, 10));\r\n\t\tcraft2by2(new ItemStack(Blocks.STONE), new ItemStack(BBBlocks.moreStones2, 4, 12));\r\n\t\tcraft2by2(new ItemStack(Blocks.END_STONE), new ItemStack(BBBlocks.moreStones2, 4, 13));\r\n\t\tcraft2by2(new ItemStack(BBBlocks.moreStones2, 1, 12), new ItemStack(Blocks.STONEBRICK, 4, 0));\r\n\t\tcraft2by2(new ItemStack(BBBlocks.moreStones2, 1, 13), new ItemStack(Blocks.END_BRICKS, 4, 0));\r\n\t\tcraft2by2(new ItemStack(BBBlocks.moreStones3, 1, 0), new ItemStack(BBBlocks.moreStones3, 4, 2));\r\n\t\tcraft2by2(new ItemStack(BBBlocks.moreStones3, 1, 2), new ItemStack(BBBlocks.moreStones3, 4, 1));\r\n\r\n\r\n\t\t/**\r\n\t\t * Adds all the stair Recipes\r\n\t\t */\r\n\t\tcraftStair(new ItemStack(BBBlocks.moreStones, 1, 0), new ItemStack(BBBlocks.cobbleGraniteStair, 4));\r\n\t\tcraftStair(new ItemStack(BBBlocks.moreStones, 1, 2), new ItemStack(BBBlocks.cobbleDioriteStair, 4));\r\n\t\tcraftStair(new ItemStack(BBBlocks.moreStones, 1, 4), new ItemStack(BBBlocks.cobbleAndesiteStair, 4));\r\n\t\tcraftStair(new ItemStack(BBBlocks.moreStones, 1, 7), new ItemStack(BBBlocks.cobbleLimestoneStair, 4));\r\n\t\tcraftStair(new ItemStack(BBBlocks.moreStones, 1, 11), new ItemStack(BBBlocks.cobbleMarbleStair, 4));\r\n\t\tcraftStair(new ItemStack(BBBlocks.moreStones, 1, 15), new ItemStack(BBBlocks.cobbleSandstoneStair, 4));\r\n\t\tcraftStair(new ItemStack(BBBlocks.moreStones2, 1, 3), new ItemStack(BBBlocks.cobbleBasaltStair, 4));\r\n\t\tcraftStair(new ItemStack(BBBlocks.moreStones2, 1, 7), new ItemStack(BBBlocks.cobbleRedsandstoneStair, 4));\r\n\t\tcraftStair(new ItemStack(BBBlocks.moreStones, 1, 1), new ItemStack(BBBlocks.brickGraniteStair, 4));\r\n\t\tcraftStair(new ItemStack(BBBlocks.moreStones, 1, 3), new ItemStack(BBBlocks.brickDioriteStair, 4));\r\n\t\tcraftStair(new ItemStack(BBBlocks.moreStones, 1, 5), new ItemStack(BBBlocks.brickAndesiteStair, 4));\r\n\t\tcraftStair(new ItemStack(BBBlocks.moreStones, 1, 8), new ItemStack(BBBlocks.brickLimestoneStair, 4));\r\n\t\tcraftStair(new ItemStack(BBBlocks.moreStones, 1, 12), new ItemStack(BBBlocks.brickMarbleStair, 4));\r\n\t\tcraftStair(new ItemStack(BBBlocks.moreStones2, 1, 0), new ItemStack(BBBlocks.brickSandstoneStair, 4));\r\n\t\tcraftStair(new ItemStack(BBBlocks.moreStones2, 1, 4), new ItemStack(BBBlocks.brickBasaltStair, 4));\r\n\t\tcraftStair(new ItemStack(BBBlocks.moreStones2, 1, 8), new ItemStack(BBBlocks.brickRedsandstoneStair, 4));\r\n\t\tcraftStair(new ItemStack(BBBlocks.moreStones2, 1, 10), new ItemStack(BBBlocks.brickNetherrackStair, 4));\r\n\t\tcraftStair(new ItemStack(BBBlocks.cotswoldBricks, 1), new ItemStack(BBBlocks.brickCotswoldStair, 4));\r\n\t\tcraftStair(new ItemStack(BBBlocks.agedBricks, 1), new ItemStack(BBBlocks.brickAgedbrickStair, 4));\r\n\t\tcraftStair(new ItemStack(Blocks.END_BRICKS, 1), new ItemStack(BBBlocks.brickEndstoneStair, 4));\r\n\t\tcraftStair(new ItemStack(Blocks.RED_NETHER_BRICK, 1), new ItemStack(BBBlocks.brickRednetherStair, 4));\r\n\t\tcraftStair(new ItemStack(BBBlocks.moreStones3, 1, 1), new ItemStack(BBBlocks.brickAcheriteStair, 4));\r\n\r\n\t\t/**\r\n\t\t * Adds all the slab Recipes\r\n\t\t */\r\n\t\tcraftSlab(BBBlocks.cobbleAndesiteSlab);\r\n\t\tcraftSlab(BBBlocks.cobbleGraniteSlab);\r\n\t\tcraftSlab(BBBlocks.cobbleDioriteSlab);\r\n\t\tcraftSlab(BBBlocks.cobbleMarbleSlab);\r\n\t\tcraftSlab(BBBlocks.cobbleLimestoneSlab);\r\n\t\tcraftSlab(BBBlocks.cobbleSandstoneSlab);\r\n\t\tcraftSlab(BBBlocks.cobbleBasaltSlab);\r\n\t\tcraftSlab(BBBlocks.cobbleRedsandstoneSlab);\r\n\t\tcraftSlab(BBBlocks.brickAndesiteSlab);\r\n\t\tcraftSlab(BBBlocks.brickGraniteSlab);\r\n\t\tcraftSlab(BBBlocks.brickDioriteSlab);\r\n\t\tcraftSlab(BBBlocks.brickMarbleSlab);\r\n\t\tcraftSlab(BBBlocks.brickLimestoneSlab);\r\n\t\tcraftSlab(BBBlocks.brickSandstoneSlab);\r\n\t\tcraftSlab(BBBlocks.brickBasaltSlab);\r\n\t\tcraftSlab(BBBlocks.brickRedsandstoneSlab);\r\n\t\tcraftSlab(BBBlocks.brickRednetherSlab);\r\n\t\tcraftSlab(BBBlocks.brickEndstoneSlab);\r\n\t\tcraftSlab(BBBlocks.brickNetherrackSlab);\r\n\t\tcraftSlab(BBBlocks.brickCotswoldSlab);\r\n\t\tcraftSlab(BBBlocks.brickAgedbrickSlab);\r\n\t\tcraftSlab(BBBlocks.brickAcheriteSlab);\r\n\t\t\r\n\t\t/**\r\n\t\t * Other Crafting Recipes\r\n\t\t */\r\n\t\tGameRegistry.addRecipe(new ShapelessOreRecipe(new ItemStack(BBBlocks.moreStones2, 16, 14), new Object[] { Blocks.CLAY, \"sand\", Blocks.GRAVEL, Items.WATER_BUCKET}));\r\n\t\tNBTTagCompound concreteTag = new NBTTagCompound();\r\n\t\tconcreteTag.setInteger(\"color\", 16777215);\r\n\t\tItemStack concreteStack = new ItemStack(BBBlocks.concreteDyeable, 8, 0);\r\n\t\tconcreteStack.setTagCompound(concreteTag);\r\n\t\tGameRegistry.addRecipe(concreteStack, new Object[] { \"###\", \"#O#\", \"###\", '#', new ItemStack(BBBlocks.moreStones2, 1, 15), 'O', Items.PAPER });\r\n\t\tGameRegistry.addRecipe(new RecipesConcreteDyeable());\r\n\t\tGameRegistry.addRecipe(new RecipesConcreteTiles());\r\n\t\tGameRegistry.addRecipe(new RecipesConcreteDyeable.RecipeDuplicateConcrete());\r\n\t\tGameRegistry.addRecipe(new ShapelessOreRecipe(new ItemStack(BBBlocks.overgrowth, 8),new Object[] { \"treeLeaves\", \"treeLeaves\"}));\r\n\r\n\t\t/**\r\n\t\t * Adds all the smelting Recipes\r\n\t\t */\r\n\t\tsmelt(new ItemStack(BBBlocks.moreStones, 1, 0), new ItemStack(Blocks.STONE, 1, 1));\r\n\t\tsmelt(new ItemStack(BBBlocks.moreStones, 1, 2), new ItemStack(Blocks.STONE, 1, 3));\r\n\t\tsmelt(new ItemStack(BBBlocks.moreStones, 1, 4), new ItemStack(Blocks.STONE, 1, 5));\r\n\t\tsmelt(new ItemStack(BBBlocks.moreStones, 1, 7), new ItemStack(BBBlocks.moreStones, 1, 6));\r\n\t\tsmelt(new ItemStack(BBBlocks.moreStones, 1, 11), new ItemStack(BBBlocks.moreStones, 1, 10));\r\n\t\tsmelt(new ItemStack(BBBlocks.moreStones, 1, 15), new ItemStack(BBBlocks.moreStones, 1, 14));\r\n\t\tsmelt(new ItemStack(BBBlocks.moreStones2, 1, 3), new ItemStack(BBBlocks.moreStones2, 1, 2));\r\n\t\tsmelt(new ItemStack(BBBlocks.moreStones2, 1, 7), new ItemStack(BBBlocks.moreStones2, 1, 6));\r\n\t\tsmelt(new ItemStack(BBBlocks.moreStones2, 1, 14), new ItemStack(BBBlocks.moreStones2, 1, 15));\r\n\r\n\t}", "@Override\n public void fill(ArrayList<Package> warehousePackages) {\n int diffCounter = 0;\n int checkOnce = -1;\n boolean checkTwice = false;\n boolean sameI = false;\n int overWeight = 0;\n while (!isFull() && (warehousePackages.size() - overWeight) > 0) {\n for (int i = 0; i < warehousePackages.size(); i++) {\n sameI = false;\n int destination = warehousePackages.get(i).getDestination().getZipCode();\n int difference = Math.abs(destination - this.getZipDest());\n if (difference <= diffCounter + 10 && difference >= diffCounter) {\n if (!(warehousePackages.get(i).getWeight() +\n getCurrentWeight() > getMaxWeight())) {\n addPackage(warehousePackages.get(i));\n setCurrentWeight(getCurrentWeight() + warehousePackages.get(i).getWeight());\n warehousePackages.remove(i);\n sameI = true;\n break;\n } else {\n overWeight += 1;\n }\n }\n }\n if (!sameI) {\n diffCounter += 10;\n }\n }\n\n\n }", "public void loadPrimePlayersPack(Context context) {\n PlayerDAO playerDAO = new PlayerDAO(context);\n ArrayList<PackOpenerPlayer> players = playerDAO.get82PlusRatedPlayers();\n Collections.shuffle(players);\n ArrayList<PackOpenerPlayer> tempPlayers = new ArrayList<>();\n int counter = 0;\n boolean higherRatedPlayerIncluded = false;\n while (tempPlayers.size() < 8) {\n if (players.get(counter).getRating() > 83) {\n if (!higherRatedPlayerIncluded) {\n tempPlayers.add(players.get(counter));\n higherRatedPlayerIncluded = true;\n }\n } else {\n tempPlayers.add(players.get(counter));\n }\n counter++;\n }\n Collections.sort(tempPlayers);\n packPlayers = new ArrayList<>(tempPlayers);\n }", "protected void prepareBasket(final Basket basket) throws CommunicationException\r\n\t{\r\n\r\n\t\tsapLogger.entering(\"setUpBasket()\");\r\n\r\n\t\ttry\r\n\t\t{\r\n\t\t\tif (basket.isUpdateMissing())\r\n\t\t\t{\r\n\t\t\t\tbasket.update();\r\n\t\t\t}\r\n\t\t\t// if necessary, read items and shiptos from backend to\r\n\t\t\t// ensure consistent data for the order\r\n\t\t\tbasket.read();\r\n\r\n\t\t}\r\n\r\n\t\tfinally\r\n\t\t{\r\n\t\t\tsapLogger.exiting();\r\n\t\t}\r\n\r\n\t}", "private void updatePool(Vector sold){\r\n\t\tfor(int i = 0; i < sold.size(); i++){\r\n\t\t\tthis.marketPool.addElement((Bird) sold.elementAt(i));\r\n\t\t}\r\n\t}", "@SuppressWarnings(\"unused\")\n\tpublic void shift() {\n\t\tint totalItems = 0;\n\t\tint highestSlot = 0;\n\t\tfor (int i = 0; i < summonedFamiliar.storeCapacity; i++) {\n\t\t\tif (burdenedItems[i] != 0) {\n\t\t\t\ttotalItems++;\n\t\t\t\tif (highestSlot <= i) {\n\t\t\t\t\thighestSlot = i;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tfor (int i = 0; i <= highestSlot; i++) {\n\t\t\tif (burdenedItems[i] == 0) {\n\t\t\t\tboolean stop = false;\n\t\t\t\tfor (int k = i; k <= highestSlot; k++) {\n\t\t\t\t\tif (burdenedItems[k] != 0 && !stop) {\n\t\t\t\t\t\tint spots = k - i;\n\t\t\t\t\t\tfor (int j = k; j <= highestSlot; j++) {\n\t\t\t\t\t\t\tburdenedItems[j - spots] = burdenedItems[j];\n\t\t\t\t\t\t\tstop = true;\n\t\t\t\t\t\t\tburdenedItems[j] = 0;\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}", "public void loadPremiumPlayersPack(Context context) {\n PlayerDAO playerDAO = new PlayerDAO(context);\n ArrayList<PackOpenerPlayer> players = playerDAO.get81PlusRatedPlayers();\n\n Collections.shuffle(players);\n ArrayList<PackOpenerPlayer> tempPlayers = new ArrayList<>();\n int counter = 0;\n boolean higherRatedPlayerIncluded = false;\n while (tempPlayers.size() < 8) {\n if (players.get(counter).getRating() > 83) {\n if (!higherRatedPlayerIncluded) {\n tempPlayers.add(players.get(counter));\n higherRatedPlayerIncluded = true;\n }\n } else {\n tempPlayers.add(players.get(counter));\n }\n counter++;\n }\n Collections.sort(tempPlayers);\n packPlayers = new ArrayList<>(tempPlayers);\n }", "@Override\r\n\t\t\tpublic void buttonClick(com.vaadin.ui.Button.ClickEvent event) {\n\t\t\t\t\r\n\t\t\t\tbuscarPacks();\r\n\t\t\t}", "public void barajarCartas()\n {\n for (int posicionActual = 0; posicionActual < mazo.size(); posicionActual++) {\n Carta carta1 = mazo.get(0);\n Random aleatorio = new Random();\n int posicionAleatoria = aleatorio.nextInt(mazo.size());\n mazo.set(posicionActual, mazo.get(posicionAleatoria));\n mazo.set(posicionAleatoria, carta1);\n }\n }", "@Override\n\t\t\t\tpublic void onClick(View v) {\n\t\t\t\t\tint tempPosition = 0;\n\t\t\t\t\tfor (ItemCart btem : arrCart) {\n\t\t\t\t\t\tif (btem.getItem().getId().equals(item.getId())) {\n\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\ttempPosition++;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tlistener.clickAddQuantities(tempPosition,\n\t\t\t\t\t\t\tarrCart.get(tempPosition));\n\t\t\t\t}", "@Override\n\t\t\t\tpublic void onClick(View v) {\n\t\t\t\t\tint tempPosition = 0;\n\t\t\t\t\tfor (ItemCart btem : arrCart) {\n\t\t\t\t\t\tif (btem.getItem().getId().equals(item.getId())) {\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\ttempPosition++;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tlistener.clickAddTopping(tempPosition,\n\t\t\t\t\t\t\tarrCart.get(tempPosition));\n\t\t\t\t}", "@Test \n\tpublic void testAddItemToBasket() throws Exception {\n\t\tBBBRequest request = BBBRequestFactory.getInstance().createAddBasketItemRequest(BOOK_BASKET_ITEM_ISBN);\n\t\t\n\t\tString expectedUrl = AccountHelper.constructUrl(BBBRequestFactory.getInstance().getHostBasket(), PATH_MY_BASKETS_ITEMS);\n\t\tassertEquals(expectedUrl, request.getUrl());\n\t\t\n\t\tBBBResponse response = BBBRequestManager.getInstance().executeRequestSynchronously(request);\n\t\t\n\t\tif(response.getResponseCode() != HttpURLConnection.HTTP_OK) {\n\t\t\tfail(\"Error: \"+response.toString());\n\t\t}\n\t}", "boolean isValidForBasket(Collection<Item> items);", "public List<CartItem> getAllcartitem();", "public void basketWeave() {\n DrawingPanel win = new DrawingPanel(WIDTH, HEIGHT);\n java.awt.Graphics g = win.getGraphics();\n win.setTitle(\"Basket Weave\");\n win.setLocation(10, 10);\n for(int y = -5; y < HEIGHT; y += 80) {\n for(int x = -5; x < WIDTH; x += 80) {\n basketDraw(x, y, g);\n }\n for(int x = -45; x < WIDTH; x += 80) {\n basketDraw(x, y+40, g);\n }\n }\n }", "public List<BusinessObject> getItems(Package pkg);", "public void addItemsToCart() throws InterruptedException {\n\n\t\tJavascriptExecutor js = (JavascriptExecutor) driver; // using JavascriptExecutor class to scroll down to the\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// page\n\t\tWebElement TopDeals = driver.findElement(By.xpath(\"/html/body/div[4]/div/div/div[3]/div/h1/span\")); // TopDeals\n\t\t// To avoid staleElementException\n\t\tfor (int i = 0; i <= 2; i++) {\n\t\t\ttry {\n\t\t\t\tjs.executeScript(\"arguments[0].scrollIntoView();\", TopDeals); // scrolling till TopDeals element visible\n\t\t\t\tbreak;\n\t\t\t} catch (Exception e) {\n\n\t\t\t\te.getMessage();\n\t\t\t}\n\t\t}\n\t\t// Adding 1st element to the cart\n\t\tWebElement crownbrocli = driver.findElement(\n\t\t\t\tBy.xpath(\"//*[@id=\\\"add-to-cart-button-cart-service-add-item-26487-homepage-collection\\\"]\"));\n\t\tcrownbrocli.click();\n\n\t\tActions actions = new Actions(driver); // now use action class to move cursor to another element so that we can\n\t\t\t\t\t\t\t\t\t\t\t\t// add another element\n\t\t // Adding 2nd Element to the cart\n\t\tWebElement apples = driver.findElement(\n\t\t\t\tBy.xpath(\"//*[@id=\\\"add-to-cart-button-cart-service-add-item-25982-homepage-collection\\\"]\"));\n\t\tactions.moveToElement(apples);\n\t\tapples.click();\n\n\t\t// Adding 3rd element to the cart\n\t\tWebElement tomatoes = driver.findElement(\n\t\t\t\tBy.xpath(\"//*[@id=\\\"add-to-cart-button-cart-service-add-item-254884-homepage-collection\\\"]\"));\n\t\tactions.moveToElement(tomatoes).click(); // Adding 3rd element to the cart\n\n\n\t\t// Adding 4rd element to the cart\n\t\tWebElement salmonFillet= driver.findElement(\n\t\t\t\tBy.xpath(\"//*[@id=\\\"add-to-cart-button-cart-service-select-item-weight-22454-homepage-collection\\\"]\"));\n\t\tactions.moveToElement(salmonFillet).click(); \n Select salmonWeight = new Select(salmonFillet); //to choose particular weight use Select Class\n\t\tsalmonWeight.selectByVisibleText(\"0.75 lbs\"); \n\n\t\t/*WebElement ChickenBreast = driver.findElement(\n\t\t\t\tBy.xpath(\"//*[@id=\\\"add-to-cart-button-cart-service-add-item-265709-homepage-collection\\\"]\"));\n//(\"//*[@id=\\\"add-to-cart-button-cart-service-add-item-265709-homepage-collection\\\"]\n\t\tactions.moveToElement(ChickenBreast).click(); // Adding 4th element to the cart\n*/\n\t}", "public void loadTOTWPlayersPack(Context context) {\n PlayerDAO playerDAO = new PlayerDAO(context);\n ArrayList<PackOpenerPlayer> totwPlayers = playerDAO.getTOTWPlayers();\n ArrayList<PackOpenerPlayer> otherPlayers = playerDAO.getNonTOTWPlayers();\n\n Collections.shuffle(totwPlayers);\n Collections.shuffle(otherPlayers);\n ArrayList<PackOpenerPlayer> tempPlayers = new ArrayList<>();\n //adding one totw player\n tempPlayers.add(totwPlayers.get(0));\n\n //adding other remaining players\n int counter = 0;\n boolean higherRatedPlayerIncluded = false;\n while (tempPlayers.size() < 9) {\n if (otherPlayers.get(counter).getRating() > 82) {\n if (!higherRatedPlayerIncluded) {\n tempPlayers.add(otherPlayers.get(counter));\n higherRatedPlayerIncluded = true;\n }\n } else {\n tempPlayers.add(otherPlayers.get(counter));\n }\n counter++;\n }\n Collections.sort(tempPlayers);\n packPlayers = new ArrayList<>(tempPlayers);\n }", "public static void main(String[] args) {\n List<ProductCatalog> productCatalog = new ArrayList<>();\n var apple = new Product(new FruitProduct(\"apple\"));\n var grapes = new Product(new FruitProduct(\"grapes\"));\n var peaches = new Product(new FruitProduct(\"peaches\"));\n productCatalog.add(new ProductCatalog(apple,3, 2,0.2));\n productCatalog.add(new ProductCatalog(grapes,5,2,0.5));\n productCatalog.add(new ProductCatalog(peaches,7,0,0));\n var cart = new ShoppingCart();\n cart.setProductCatalogueList(productCatalog);\n cart.addItem(\"apple\",3);\n /*\n cart.setProductCatalogue(\"apple\",3);\n cart.setProductCatalogue(\"grapes\",5);\n cart.setProductCatalogue(\"peaches\",7);\n */\n //cart1.forEach((cart) -> invoice(cart));\n }", "@Test(expected = InsufficientStockException.class)\n\tpublic void testInventoryCheckOnAddingItemsToShoppingCart() throws InsufficientStockException {\n\t\tShoppingCartAggregate shoppingCartAggregate = storeFrontService.getStoreFront()\n\t\t\t\t.getShoppingCounter(SHOPPING_COUNTER_NAME).get().startShoppingCart(CUSTOMER_NAME);\n\n\t\tBigDecimal orderQuantity = TestProductInventory.iphoneInventory.getAvailableStock().add(new BigDecimal(1));\n\t\tshoppingCartAggregate.addToCart(TestProduct.phone.getProductId(), orderQuantity);\n\n\t}", "Checkout getCheckout(List<Item> items) throws CheckoutProcessingException;", "public void createItem()\n {\n \n necklace_red = new Item (\"Red Necklace\",\"This is a strange red necklace\");\n poolroom.addItem(necklace_red);\n \n // items in dancing room // \n gramophone = new Item (\"Gramophone\",\"This is a nice gramophone but without disk\");\n candelar = new Item(\"Candelar\",\"This candelar gives light and is really beautiful\");\n dancingroom.addItem(gramophone);\n dancingroom.addItem(candelar);\n \n //items in hall //\n potion2HP = new Potion(\"Potion 2 HP\",\"This potion gives 2 HP to the player\",2);\n hall.addItem(potion2HP);\n \n //items in corridor //\n halberd = new Weapon(\"Halberd\",\"This the statut halberd. It was not a really good idea to take it\",4,60);\n corridor.addItem(halberd);\n \n // items in bathroom //\n potion6HP = new Potion(\"Potion6HP\",\"This potions gives 6 HP to the player\",6);\n bathroom.addItem(potion6HP);\n \n // items in guestbedroom //\n Exit exit_from_corridor_to_bedroom = new Exit(\"south\",corridor,false, null);\n bedroomkey = new Keys(\"Bedroom key\",\"This key opens the master bedroom door\",exit_from_corridor_to_bedroom);\n guestbedroom.addItem(bedroomkey);\n \n // items in kitchen // \n set_of_forks_and_knives = new Weapon(\"Set of forks and knives\",\"This weapon is a set of silver forks and silver knives\",2,40);\n kitchen.addItem(set_of_forks_and_knives);\n \n // items in bedroom //\n Item disk = new Item(\"Disk\",\"This disk can be used with the gramophone\");\n bedroom.addItem(disk);\n \n Potion potion3HP = new Potion (\"Potion3HP\",\"This potions gives 3 HP to the player\",3);\n bedroom.addItem(potion3HP);\n \n Item money = new Item(\"Money\",\"You find 60 pounds\");\n bedroom.addItem(money);\n \n // items in the library //\n Item book = new Item(\"Book\",\"The title book is 'The best human friend : the cat'\");\n library.addItem(book);\n \n // items in laboratory //\n Exit exit_from_corridor_to_attic = new Exit(\"up\",corridor,false, null);\n Keys attickey = new Keys(\"Attic key\",\"This key is a shaped bone from a squeletor\", exit_from_corridor_to_attic); \n laboratory.addItem(attickey);\n \n Item construction_drawing = new Item(\"Construction drawing\",\"You find construction drawings. Mr Taylor planed to dig really deeply to the east of the gardener hut\");\n laboratory.addItem(construction_drawing);\n \n //items in garden //\n Weapon fork = new Weapon(\"Fork\",\"This fork is green and brown\",3,50);\n garden.addItem(fork);\n \n Potion apple = new Potion(\"Apple\",\"This apples gives you 2 HP\",2);\n garden.addItem(apple);\n \n // items in gardenerhut //\n \n Item pliers = new Item(\"Pliers\",\"You can cut a chain with this object\");\n gardenerhut.addItem(pliers);\n \n Item ritual_cape = new Item(\"Ritual cape\",\"You find a black ritual cape. It is very strange !\");\n gardenerhut.addItem(ritual_cape);\n \n Item necklace_black_1 = new Item(\"Necklace\",\"You find a very strange necklace ! It is a black rond necklace with the same symbol than in the ritual cape\");\n gardenerhut.addItem(necklace_black_1);\n \n //items in anteroom //\n \n Potion potion4HP = new Potion(\"Potion4HP\",\"This potion gives 4 HP to the player\",4);\n anteroom.addItem(potion4HP);\n \n Weapon sword = new Weapon(\"Sword\",\"A really sharp sword\",6,70);\n anteroom.addItem(sword);\n // items in ritual room //\n \n Item red_ritual_cape = new Item(\"Red ritual cape\", \"This is a ritual cape such as in the gardener hut but this one is red. There are some blond curly hairs\");\n ritualroom.addItem(red_ritual_cape);\n \n Item black_ritual_cape_1 = new Item(\"Black ritual cape\",\"This is a black ritual cape\");\n ritualroom.addItem(black_ritual_cape_1);\n \n Item black_ritual_cape_2 = new Item (\"Black ritual cape\",\"Another black ritual cape\");\n ritualroom.addItem(black_ritual_cape_2);\n \n }", "private static void viewItems() {\r\n\t\tdisplayShops();\r\n\t\tint shopNo = getValidUserInput(scanner, shops.length);\r\n\t\tdisplayItems(shopNo);\r\n\t\tSystem.out.println();\r\n\t\tSystem.out.println(\" Please enter the ID of the element to add to cart. \\\"0\\\" for exit\");\r\n\t\tSystem.out.println();\r\n\t\tint productNo = getValidUserInput(scanner, shops[shopNo].getAllSales().length + 1);\r\n\t\tif (productNo > 0) {\r\n\t\t\tProduct productToBeAdd = shops[shopNo].getAllSales()[productNo - 1];\r\n\t\t\tSystem.out.println();\r\n\t\t\tSystem.out.print(\" Please enter the number of the item you would like to buy: \");\r\n\t\t\tint numberOfTheItems = getUserIntInput();\r\n\t\t\tcart.addProduct(productToBeAdd, numberOfTheItems);\r\n\t\t}\r\n\t\tSystem.out.println();\r\n\t\tSystem.out.println(\" Purchase done, going back to the menu.\");\r\n\t\tSystem.out.println();\r\n\t}", "@Override\r\n \tprotected void startProcess() {\n \t\tfor(int i = 0; i < inventoryStacks.length - 1; i++) {\r\n \t\t\tif(inventoryStacks[i] != null) {\r\n \t\t\t\tticksToProcess = (int)(TileEntityFurnace.getItemBurnTime(inventoryStacks[i]) * GENERATOR_TO_FURNACE_TICK_RATIO);\r\n \t\t\t\tdecrStackSize(i, 1);\r\n \t\t\t\tburning = true;\r\n \t\t\t}\r\n \t\t}\r\n \t}", "public synchronized void pdp_AddToBag() throws Exception {\n\n\t\t// Code to remove focus from zoomed image on page load\n\t\tif (!Utils.isDeviceMobile()) {\n\t\t\tActions actions = new Actions(driver);\n\t\t\tactions.moveToElement(productPrice()).build().perform();\n\t\t}\n\n\t\tutils.scrollToViewElement(driver, pdp_btn_AddToBag());\n\n\t\t// Handling Pop-Up that sometimes over shadows the ADD TO BAG button in mobile\n\t\tif (Utils.isDeviceMobile())\n\t\t\thandleBounceXOnPDP();\n\n\t\tpdp_btn_AddToBag().click();\n\t\t// Thread.sleep(3000);\n\n\t\tif (!utils.brand.equals(\"LGFP\"))\n\t\t\tAssert.assertTrue(utils.isElementPresent(driver, \"PDP_continueShopping\"),\n\t\t\t\t\t\"Item Added To Bag modal not displayed in mobile\");\n\t}", "public ShoppingCart() {\n\t\t_items = new ArrayList<Product>();\n\t}", "public void shoppingOnSauceLabs(){\n waitElement(backpack_product);\n click(backpack_product);\n waitElement(buttonAddToCart);\n click(buttonAddToCart);\n waitElement(iconShoppingCart);\n click(iconShoppingCart);\n click(buttonCheckOut);\n }", "public void prepareBillOfMaterialsForCurrentItem() {\n newItemsToAdd = new ArrayList<>();\n InventoryBillOfMaterialItem iBom = new InventoryBillOfMaterialItem(getCurrent());\n InventoryBillOfMaterialItem.setBillOfMaterialsListForItem(getCurrent(), iBom);\n }", "@Override\n\tpublic void execute(GamePlayer player, PBMessage packet, Guild guild, GuildMemberInfo memberInfo) throws Exception {\n\n\t\tIterator<GuildWarehouseItemInfo> iterator = guild.getItemMap().values().iterator();\n\t\t\n\t\tGuildWarehouseRespMsg.Builder respMsg = GuildWarehouseRespMsg.newBuilder();\n\t\trespMsg.setAction(GuildWarehouseAction.STOCK);\n\t\t\n\t\tint count = 0;\n\t\tboolean hasStartPkg = false;\n\t\twhile(iterator.hasNext()){\n\t\t\tGuildWarehouseItemInfo item = iterator.next();\n\t\t\tGuildWarehouseItemInfoMsg.Builder itemMsg = GuildWarehouseItemInfoMsg.newBuilder();\n\t\t\titemMsg.setItemTempId(item.getItemTempId());\n\t\t\titemMsg.setAmount(item.getAmount());\n\t\t\trespMsg.addItem(itemMsg);\n\t\t\tcount ++;\n\t\t\t\n\t\t\tif(count%200 == 0 && iterator.hasNext()){\n\t\t\t\tif(count <= 200){\n\t\t\t\t\tsendListMsg(player, 0, respMsg);\n\t\t\t\t\thasStartPkg = true;\n\t\t\t\t}else{\n\t\t\t\t\tsendListMsg(player, 1, respMsg);\n\t\t\t\t}\n\t\t\t\trespMsg = GuildWarehouseRespMsg.newBuilder();\n\t\t\t}\n\t\t}\n\t\tif(hasStartPkg == false){\n\t\t\tsendListMsg(player, 0, respMsg);\n\t\t\trespMsg = GuildWarehouseRespMsg.newBuilder();\n\t\t}\n\t\t\n\t\tsendListMsg(player, 2, respMsg);\n\t}", "public void buyItem(int id, int q)\n\t{\n\t\t/* If the player isn't shopping, in a normal shop */\n\t\tif(m_currentShop == null)\n\t\t{\n\t\t\t/* First, check if the player can afford this */\n\t\t\tint price = GameServer.getServiceManager().getItemDatabase().getItem(id).getPrice();\n\t\t\tif(m_money - q * price >= 0)\n\t\t\t{\n\t\t\t\t/* Finally, if the item is in stock, buy it */\n\n\t\t\t\tm_money = m_money - q * price;\n\t\t\t\tm_bag.addItem(id, q);\n\t\t\t\tupdateClientMoney();\n\t\t\t\t/* Let player know he bought the item. */\n\t\t\t\tServerMessage message = new ServerMessage(ClientPacket.BOUGHT_ITEM);\n\t\t\t\tmessage.addInt(GameServer.getServiceManager().getItemDatabase().getItem(id).getId());\n\t\t\t\tgetSession().Send(message);\n\t\t\t\t/* Update player inventory. */\n\t\t\t\tServerMessage update = new ServerMessage(ClientPacket.UPDATE_ITEM_TOT);\n\t\t\t\tupdate.addInt(GameServer.getServiceManager().getItemDatabase().getItem(id).getId());\n\t\t\t\tupdate.addInt(q);\n\t\t\t\tgetSession().Send(update);\n\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\t/* Return You have no money, fool! */\n\t\t\t\tServerMessage message = new ServerMessage(ClientPacket.NOT_ENOUGH_MONEY);\n\t\t\t\tgetSession().Send(message);\n\t\t\t}\n\t\t\treturn;\n\t\t}\n\t\tif(m_bag.hasSpace(id))\n\t\t{\n\t\t\t/* First, check if the player can afford this */\n\t\t\tif(m_money - q * m_currentShop.getPriceForItem(id) >= 0)\n\t\t\t{\n\t\t\t\t/* Finally, if the item is in stock, buy it */\n\t\t\t\tif(m_currentShop.buyItem(id, q))\n\t\t\t\t{\n\t\t\t\t\tm_money = m_money - q * m_currentShop.getPriceForItem(id);\n\t\t\t\t\tm_bag.addItem(id, q);\n\t\t\t\t\tupdateClientMoney();\n\t\t\t\t\t/* Let player know he bought the item. */\n\t\t\t\t\tServerMessage message = new ServerMessage(ClientPacket.BOUGHT_ITEM);\n\t\t\t\t\tmessage.addInt(GameServer.getServiceManager().getItemDatabase().getItem(id).getId());\n\t\t\t\t\tgetSession().Send(message);\n\t\t\t\t\t/* Update player inventory. */\n\t\t\t\t\tServerMessage update = new ServerMessage(ClientPacket.UPDATE_ITEM_TOT);\n\t\t\t\t\tupdate.addInt(GameServer.getServiceManager().getItemDatabase().getItem(id).getId());\n\t\t\t\t\tupdate.addInt(1);\n\t\t\t\t\tgetSession().Send(update);\n\t\t\t\t}\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\t/* Return You have no money, fool! */\n\t\t\t\tServerMessage message = new ServerMessage(ClientPacket.NOT_ENOUGH_MONEY);\n\t\t\t\tgetSession().Send(message);\n\t\t\t}\n\t\t}\n\t\telse\n\t\t{\n\t\t\t/* Send You cant carry any more items! */\n\t\t\tServerMessage message = new ServerMessage(ClientPacket.POCKET_FULL);\n\t\t\tgetSession().Send(message);\n\t\t}\n\t}", "private void updateItems()\n\t{\t\n\t\tupdatePizzaTypes(items);\n\t\tupdateSidesTypes(items);\n\t\tupdateDrinksTypes(items);\n\t}", "public void calculateCost() {\n \tdouble costToShipPack;\n \tint numOfPacks = 1;\n \t\n \tfor(Package p: this.packages) {\n \t\tcostToShipPack = 3 + (p.calcVolume() - 1);\n \t\tthis.totalAmounts.put(\"Package \"+numOfPacks, costToShipPack);\n \t\tnumOfPacks++;\n \t}\n \t\n }", "@ForgeSubscribe\n \tpublic void onLivingUpdate(LivingUpdateEvent event) {\n \t\t\n \t\tEntityLivingBase entity = event.entityLiving;\n \t\tEntityPlayer player = ((entity instanceof EntityPlayer) ? (EntityPlayer)entity : null);\n \t\tItemStack backpack = ItemBackpack.getBackpack(entity);\n \t\t\n \t\tPropertiesBackpack backpackData;\n \t\tif (backpack == null) {\n \t\t\t\n \t\t\tbackpackData = EntityUtils.getProperties(entity, PropertiesBackpack.class);\n \t\t\tif (backpackData == null) return;\n \t\t\t\n \t\t\t// If the entity is supposed to spawn with\n \t\t\t// a backpack, equip it with one.\n \t\t\tif (backpackData.spawnsWithBackpack) {\n \t\t\t\t\n \t\t\t\tItemStack[] contents = null;\n \t\t\t\tif (entity instanceof EntityFrienderman) {\n \t\t\t\t\tbackpack = new ItemStack(BetterStorage.enderBackpack);\n \t\t\t\t\t((EntityLiving)entity).setEquipmentDropChance(3, 0.0F); // Remove drop chance for the backpack.\n \t\t\t\t} else {\n \t\t\t\t\tbackpack = new ItemStack(BetterStorage.backpack, 1, RandomUtils.getInt(120, 240));\n \t\t\t\t\tItemBackpack backpackType = (ItemBackpack)Item.itemsList[backpack.itemID];\n \t\t\t\t\tif (RandomUtils.getBoolean(0.15)) {\n \t\t\t\t\t\t// Give the backpack a random color.\n \t\t\t\t\t\tint r = RandomUtils.getInt(32, 224);\n \t\t\t\t\t\tint g = RandomUtils.getInt(32, 224);\n \t\t\t\t\t\tint b = RandomUtils.getInt(32, 224);\n \t\t\t\t\t\tint color = (r << 16) | (g << 8) | b;\n \t\t\t\t\t\tbackpackType.func_82813_b(backpack, color);\n \t\t\t\t\t}\n \t\t\t\t\tcontents = new ItemStack[backpackType.getColumns() * backpackType.getRows()];\n \t\t\t\t\t((EntityLiving)entity).setEquipmentDropChance(3, 1.0F); // Set drop chance for the backpack to 100%.\n \t\t\t\t}\n \t\t\t\t\n \t\t\t\t// If the entity spawned with enchanted armor,\n \t\t\t\t// move the enchantments over to the backpack.\n \t\t\t\tItemStack armor = entity.getCurrentItemOrArmor(CurrentItem.CHEST);\n \t\t\t\tif (armor != null && armor.isItemEnchanted()) {\n \t\t\t\t\tNBTTagCompound compound = new NBTTagCompound();\n \t\t\t\t\tcompound.setTag(\"ench\", armor.getTagCompound().getTag(\"ench\"));\n \t\t\t\t\tbackpack.setTagCompound(compound);\n \t\t\t\t}\n \t\t\t\t\n \t\t\t\tif (contents != null) {\n \t\t\t\t\t// Add random items to the backpack.\n \t\t\t\t\tInventoryStacks inventory = new InventoryStacks(contents);\n \t\t\t\t\t// Add normal random backpack loot\n \t\t\t\t\tWeightedRandomChestContent.generateChestContents(\n \t\t\t\t\t\t\tRandomUtils.random, randomBackpackItems, inventory, 20);\n \t\t\t\t\t// With a chance of 10%, add some random dungeon loot\n \t\t\t\t\tif (RandomUtils.getDouble() < 0.1) {\n \t\t\t\t\t\tChestGenHooks info = ChestGenHooks.getInfo(ChestGenHooks.DUNGEON_CHEST);\n \t\t\t\t\t\tWeightedRandomChestContent.generateChestContents(\n \t\t\t\t\t\t\t\tRandomUtils.random, info.getItems(RandomUtils.random), inventory, 5);\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\tItemBackpack.setBackpack(entity, backpack, contents);\n \t\t\t\tbackpackData.spawnsWithBackpack = false;\n \t\t\t\t\n \t\t\t} else {\n \t\t\t\t\n \t\t\t\t// If the entity doesn't have a backpack equipped,\n \t\t\t\t// but still has some backpack data, drop the items.\n \t\t\t\tif (backpackData.contents != null) {\n \t\t\t\t\tfor (ItemStack stack : backpackData.contents)\n \t\t\t\t\t\tWorldUtils.dropStackFromEntity(entity, stack, 1.5F);\n \t\t\t\t\tbackpackData.contents = null;\n \t\t\t\t}\n \t\t\t\t\n \t\t\t}\n \t\t\t\n \t\t\treturn;\n \t\t\t\n \t\t} else backpackData = ItemBackpack.getBackpackData(entity);\n \t\t\n \t\tbackpackData.prevLidAngle = backpackData.lidAngle;\n \t\tfloat lidSpeed = 0.2F;\n \t\tif (ItemBackpack.isBackpackOpen(entity))\n \t\t\tbackpackData.lidAngle = Math.min(1.0F, backpackData.lidAngle + lidSpeed);\n \t\telse backpackData.lidAngle = Math.max(0.0F, backpackData.lidAngle - lidSpeed);\n \t\t\n \t\tString sound = Block.soundSnowFootstep.getStepSound();\n \t\t// Play sound when opening\n \t\tif ((backpackData.lidAngle > 0.0F) && (backpackData.prevLidAngle <= 0.0F))\n \t\t\tentity.worldObj.playSoundEffect(entity.posX, entity.posY, entity.posZ, sound, 1.0F, 0.5F);\n \t\t// Play sound when closing\n \t\tif ((backpackData.lidAngle < 0.2F) && (backpackData.prevLidAngle >= 0.2F))\n \t\t\tentity.worldObj.playSoundEffect(entity.posX, entity.posY, entity.posZ, sound, 0.8F, 0.3F);\n \t\t\n \t}", "protected Basket makeBasket() {\n\t\treturn new Basket();\n\t}", "public String[] fetchPackList()\n {\n dbObj=new dbFlashCards(userId);\n return dbObj.fetchAllPacks();\n \n }", "public static void main(String[] args) {\n Scanner scanner = new Scanner(System.in);\n List<Shape> shapes = new ArrayList<>();\n //System.out.println(\"Please enter the bin capacity\");\n Shape container = new Shape();\n container.containerPrompt();\n container.containerVolume();\n int binCapacity = container.containerVolume();\n //insert three items here\n System.out.println(\"How many cubes do want to store: 1, 2 or 3 \");\n int choice = scanner.nextInt();\n while (choice-- >0){\n Shape object = new Shape();\n object.objectPrompt();\n shapes.add(object);\n\n /*\n object.objectVolume();\n int one = object.containerVolume();*/\n }\n\n /*switch (choice){\n case 1:\n Shape shape1 = new Shape();\n shape1.objectPrompt();\n shape1.objectVolume();\n int one = shape1.containerVolume();\n break;\n case 2:\n Shape shape2 = new Shape();\n shape2.objectPrompt();\n shape2.objectVolume();\n int two = shape2.containerVolume();\n\n Shape shape3 = new Shape();\n shape3.objectPrompt();\n shape3.objectVolume();\n int one = shape1.containerVolume();\n break;\n\n case 3:\n Shape shape1 = new Shape();\n shape1.objectPrompt();\n shape1.objectVolume();\n int one = shape1.containerVolume();\n break;\n default:\n }*/\n List<Integer> items=new ArrayList<>();\n\n for (Shape shape: shapes){\n items.add(shape.containerVolume());\n System.out.println(shape.containerVolume());\n }\n\n\n\n //List<Integer> items = Arrays.asList(shapes.get(0).containerVolume());\n //insert the bin capacity\n // int binCapacity = 5;\n CheckBin algorithm = new CheckBin(items, binCapacity);\n algorithm.solvingBinPackingProblem();\n algorithm.showResults();\n // System.out.println(\"This is after committing\");\n\n\n }", "public void takeItemsFromChest() {\r\n currentRoom = player.getCurrentRoom();\r\n for (int i = 0; i < currentRoom.getChest().size(); i++) {\r\n player.addToInventory(currentRoom.getChest().get(i));\r\n currentRoom.getChest().remove(i);\r\n }\r\n\r\n }", "public void loadDB(){\n ////////////// Code that builds stores with their items lists and builds carts /////////////////////////////////////////////////////////////\n ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////\n sampleData = new HashMap<>(); //Make 1 hashmap per store (each has that store's items)\n //storeB_Data = new HashMap<>(); //Hashmap that has items of store B\n\n //Add new item to HashMap of items\n sampleData.put(\"026229211706\", new InventoryItem(1.99, \"Notebook\", \"http://www.ryman.co.uk/media/catalog/product/0/3/0399030007.jpg\", \"Others\",\"026229211706\"));\n sampleData.put(\"096619756803\", new InventoryItem(2.99, \"Water Bottle\", \"http://www.ryman.co.uk/media/catalog/product/0/3/0399030007.jpg\", \"Others\",\"096619756803\"));\n sampleData.put(\"9781491962299\", new InventoryItem(4.99, \"Machine Learning\", \"http://www.ryman.co.uk/media/catalog/product/0/3/0399030007.jpg\", \"Others\",\"9781491962299\"));\n sampleData.put(\"1297432524354\", new InventoryItem(4.99, \"Item\", \"http://www.ryman.co.uk/media/catalog/product/0/3/0399030007.jpg\", \"Others\",\"1297432524354\"));\n sampleData.put(\"857263004111\", new InventoryItem(79.99, \"Trendy Jacket\", \"http://www.ryman.co.uk/media/catalog/product/0/3/0399030007.jpg\", \"Others\",\"857263004111\"));\n\n listOfAllItems.add(new CartItem(3.99,\"Toy\",\"http://www.pngmart.com/files/4/Plush-Toy-PNG-Transparent-Image.png\",\"Others\",\"1\",1));\n listOfAllItems.add(new CartItem(3.99,\"Toy\",\"http://www.pngmart.com/files/4/Plush-Toy-PNG-Transparent-Image.png\",\"Others\",\"1\",1));\n listOfAllItems.add(new CartItem(3.99,\"Toy\",\"http://www.pngmart.com/files/4/Plush-Toy-PNG-Transparent-Image.png\",\"Others\",\"1\",1));\n listOfAllItems.add(new CartItem(3.99,\"Toy\",\"http://www.pngmart.com/files/4/Plush-Toy-PNG-Transparent-Image.png\",\"Others\",\"1\",1));\n listOfAllItems.add(new CartItem(3.99,\"Toy\",\"http://www.pngmart.com/files/4/Plush-Toy-PNG-Transparent-Image.png\",\"Others\",\"1\",1));\n listOfAllItems.add(new CartItem(49.99,\"Hands On Machine Learning\",\"https://m.media-amazon.com/images/S/aplus-media/vc/11714e04-b1a6-439d-9482-87e757822f94.jpg\",\"Others\",\"1\",1));\n\n //This data will be populated into instance objects on each scan and \"add to cart\" /////////////////////////////\n //LAST INPUT (in this case, 1) IS THE QUANTITY. SHOULD BE SET TO WHATEVER IS ASSIGNED FROM THE DIALOGUE BOX\n //CartItem notebook = new CartItem(sampleData.get(\"026229212703\").getPrice(), sampleData.get(\"026229212703\").getName(), sampleData.get(\"026229212703\").getImage(), sampleData.get(\"026229212703\").getSalesTaxGroup(), sampleData.get(\"026229212703\").getItemKey(), 1);\n //CartItem water = new CartItem(sampleData.get(\"096619756803\").getPrice(), sampleData.get(\"096619756803\").getName(), sampleData.get(\"096619756803\").getImage(), sampleData.get(\"096619756803\").getSalesTaxGroup(), sampleData.get(\"096619756803\").getItemKey(), 1);\n //CartItem mints = new CartItem(sampleData.get(\"030242940017\").getPrice(), sampleData.get(\"030242940017\").getName(), sampleData.get(\"030242940017\").getImage(), sampleData.get(\"030242940017\").getSalesTaxGroup(), sampleData.get(\"030242940017\").getItemKey(), 1);\n ////////////////////////////////////////////////////////////////////////////////////////////////////////////////\n\n //CartListOfItems cart = new CartListOfItems();\n //cart.addToCart(notebook);\n //cart.addToCart(toyCar);\n }", "public void printCart() {\n\t\tSystem.out.println(\"Items currently in the cart: \\n\");\n\t\tfor (int i =0; i < currentSize; i ++) {\n\t\t\tSystem.out.println(\"Item \" + i + \":\\n\" + Cart[i]);\n\t\t}\n\t}", "private ItemStack[] getItemStack() {\n\n ItemStack[] stack = new ItemStack[54];\n int i = 0;\n // get the player's messages\n TVMResultSetInbox rs = new TVMResultSetInbox(plugin, uuid, start, 44);\n if (rs.resultSet()) {\n List<TVMMessage> messages = rs.getMail();\n for (TVMMessage m : messages) {\n // message\n ItemStack mess;\n if (m.isRead()) {\n mess = new ItemStack(Material.BOOK, 1);\n } else {\n mess = new ItemStack(Material.WRITABLE_BOOK, 1);\n }\n ItemMeta age = mess.getItemMeta();\n age.setDisplayName(\"#\" + (i + start + 1));\n String from = plugin.getServer().getOfflinePlayer(m.getWho()).getName();\n age.setLore(Arrays.asList(\"From: \" + from, \"Date: \" + m.getDate(), \"\" + m.getId()));\n mess.setItemMeta(age);\n stack[i] = mess;\n i++;\n }\n }\n\n int n = start / 44 + 1;\n // page number\n ItemStack page = new ItemStack(Material.BOWL, 1);\n ItemMeta num = page.getItemMeta();\n num.setDisplayName(\"Page \" + n);\n num.setCustomModelData(119);\n page.setItemMeta(num);\n stack[45] = page;\n // close\n ItemStack close = new ItemStack(Material.BOWL, 1);\n ItemMeta win = close.getItemMeta();\n win.setDisplayName(\"Close\");\n win.setCustomModelData(1);\n close.setItemMeta(win);\n stack[46] = close;\n // previous screen (only if needed)\n if (start > 0) {\n ItemStack prev = new ItemStack(Material.BOWL, 1);\n ItemMeta een = prev.getItemMeta();\n een.setDisplayName(\"Previous Page\");\n een.setCustomModelData(120);\n prev.setItemMeta(een);\n stack[48] = prev;\n }\n // next screen (only if needed)\n if (finish > 44) {\n ItemStack next = new ItemStack(Material.BOWL, 1);\n ItemMeta scr = next.getItemMeta();\n scr.setDisplayName(\"Next Page\");\n scr.setCustomModelData(116);\n next.setItemMeta(scr);\n stack[49] = next;\n }\n // read\n ItemStack read = new ItemStack(Material.BOWL, 1);\n ItemMeta daer = read.getItemMeta();\n daer.setDisplayName(\"Read\");\n daer.setCustomModelData(121);\n read.setItemMeta(daer);\n stack[51] = read;\n // delete\n ItemStack del = new ItemStack(Material.BOWL, 1);\n ItemMeta ete = del.getItemMeta();\n ete.setDisplayName(\"Delete\");\n ete.setCustomModelData(107);\n del.setItemMeta(ete);\n stack[53] = del;\n\n return stack;\n }", "private void demoSellProducts()\n {\n System.out.println(\"\\nSelling all the products\\n\");\n System.out.println(\"============================\");\n System.out.println();\n for(int id = 101; id <= 110; id++)\n {\n amount = generator.nextInt(20);\n manager.sellProduct(id, amount);\n }\n \n manager.printAllProducts();\n }", "public void run() {\n\t\tSystem.out.println(\"Let's start shopping!\");\n\t\tScanner in = new Scanner(System.in);\n\t\tString input = in.nextLine();\n\t\twhile (!input.equals(\"Q\")) {\n\t\t\tString[] separatedInput = input.split(\" \");\n\t\t\tdoOperation(separatedInput);\n\t\t\tinput = in.nextLine();\n\t\t}\n\n\t\tif (bag.getSize() != 0) {\n\t\t\tcheckoutNotEmptyBag();\n\t\t}\n\n\t\tSystem.out.println(\"Thanks for shopping with us!\");\n\t\tin.close();\n\t}", "public void bake() {\n baked = true;\n\n this.registerItemsEffective();\n\n // Remove capability constructors for capabilities that are not initialized.\n removeNullCapabilities(capabilityConstructorsTile, capabilityConstructorsTileSuper, null);\n removeNullCapabilities(capabilityConstructorsEntity, capabilityConstructorsEntitySuper, null);\n removeNullCapabilities(capabilityConstructorsItem, capabilityConstructorsItemSuper, capabilityConstructorsItemInstance);\n\n // Bake all collections\n capabilityConstructorsTileSuper = ImmutableList.copyOf(capabilityConstructorsTileSuper);\n capabilityConstructorsEntitySuper = ImmutableList.copyOf(capabilityConstructorsEntitySuper);\n capabilityConstructorsItemSuper = ImmutableList.copyOf(capabilityConstructorsItemSuper);\n\n }", "public void fillBombs()\r\n {\r\n for (int i = 0; i < gameBoard.BOMB_COUNT; i++)\r\n {\r\n Cell tempCell = new Cell(true);\r\n tempCell.makeBomb();\r\n initBombClick(tempCell);\r\n gameBoard.bombList.add(tempCell);\r\n }\r\n for (int j = gameBoard.BOMB_COUNT; j < (gameBoard.BOARD_WIDTH * gameBoard.BOARD_WIDTH); j++)\r\n {\r\n Cell tempCell = new Cell(false);\r\n initEmptyClick(tempCell);\r\n gameBoard.bombList.add(tempCell);\r\n }\r\n Collections.shuffle(gameBoard.bombList);\r\n }", "public void barajar(){\n Random ale = new Random();\n if(CARTAS_BARAJA == getNumCartas()){\n for(int i = 0; i < 777; i ++){\n int valor = ale.nextInt(40);\n Carta carta = cartasBaraja.get(valor);\n cartasBaraja.set(valor, cartasBaraja.get(0));\n cartasBaraja.set(0, carta);\n }\n }\n }", "public ShoppingCart() {\n\t\tmaxSize = 3;\n\t\tCart = new Item[maxSize];\n\t\tcurrentSize = 0;\n\t}", "public void run() {\n Scanner sc=new Scanner(System.in);\n int numOfBox=sc.nextInt();\n int handCap=sc.nextInt();\n int boxCap=sc.nextInt();\n int numOfQuery=sc.nextInt();\n _boxes.add(new Box(0,handCap));\n for(int i=1;i<=numOfBox;i++){\n _boxes.add(new Box(i,boxCap));\n }\n for(int j=0;j<numOfQuery;j++){\n String query=sc.next();\n if(query.equals(\"purchase\")){\n String name=sc.next();\n int value=sc.nextInt();\n int boxNum=0;\n Item item=new Item(name,value);\n _items.add(item);\n for(int k=0;k<_boxes.size();k++){\n if(_boxes.get(k).getCapacity()>_boxes.get(k).getSize()){\n boxNum=k;\n _boxes.get(k).deposit(item);\n item.setLocation(_boxes.get(k));\n break;\n\n }\n }\n if(boxNum==0){\n System.out.println(\"item \"+name+\" is now being held\");\n }\n else{\n System.out.println(\"item \"+name+\" has been deposited to box \"+boxNum);\n } \n }\n if(query.equals(\"deposit\")){\n boolean hasfound=false;\n String name=sc.next();\n for(int i=0;i<_items.size();i++){\n if(_items.get(i).getName().equals(name)){\n hasfound=true;\n Item item=_items.get(i);\n if(item.getLocation().getNumber()!=0){\n System.out.println(\"item \"+name+\" is already in storage\");\n }\n else{\n for(int a=1;a<_boxes.size();a++){\n if(_boxes.get(a).getCapacity()>_boxes.get(a).getSize()){\n int boxNum=a;\n _boxes.get(a).deposit(item);\n _boxes.get(0).withdraw(item);\n item.setLocation(_boxes.get(a));\n System.out.println(\"item \"+name+\" has been deposited to box \"+boxNum);\n break;\n }\n }\n }\n break; \n }\n }\n if(hasfound==false){\n System.out.println(\"item \"+name+\" does not exist\");\n } \n }\n if(query.equals(\"withdraw\")){\n boolean hasfound=false;\n String name=sc.next();\n for(int i=0;i<_items.size();i++){\n if(_items.get(i).getName().equals(name)){\n hasfound=true;\n Item item=_items.get(i);\n if(item.getLocation().getNumber()==0){\n System.out.println(\"item \"+name+\" is already being held\");\n }\n else{\n if(_boxes.get(0).isFull()){\n System.out.println(\"cannot hold any more items\");\n }\n else{\n Box location=item.getLocation();\n location.withdraw(item);\n _boxes.get(0).deposit(item);\n item.setLocation(_boxes.get(0));\n System.out.println(\"item \"+name+\" has been withdrawn\");\n } \n }\n break; \n \n }\n } \n if(hasfound==false){\n System.out.println(\"item \"+name+\" does not exist\");\n }\n }\n if(query.equals(\"location\")){\n String name=sc.next();\n boolean hasfound=false;\n for(int i=0;i<_items.size();i++){\n if(_items.get(i).getName().equals(name)){\n hasfound=true;\n Item item=_items.get(i);\n if(item.getLocation().getNumber()==0){\n System.out.println(\"item \"+name+\" is being held\");\n }\n else{\n int num=item.getLocation().getNumber();\n System.out.println(\"item \"+name+\" is in box \"+num);\n } \n break; \n }\n \n }\n if(hasfound==false){\n System.out.println(\"item \"+name+\" does not exist\");\n } \n }\n if(query.equals(\"valuable\")){\n ArrayList<String> itemName=new ArrayList<String>();\n int highest=0;\n for(int i=0;i<_items.size();i++){\n if(_items.get(i).getValue()>highest){\n highest=_items.get(i).getValue();\n }\n \n }\n for(int b=0;b<_items.size();b++){\n if(_items.get(b).getValue()==highest){\n itemName.add(_items.get(b).getName());\n }\n }\n Collections.sort(itemName);\n System.out.println(itemName.get(0));\n } \n\n } \n }" ]
[ "0.5973502", "0.5973502", "0.5973502", "0.5973502", "0.5973502", "0.5973502", "0.59111345", "0.5864222", "0.57706153", "0.5763422", "0.57380605", "0.573366", "0.5688911", "0.56713986", "0.5637375", "0.56320065", "0.5630955", "0.5617837", "0.5607803", "0.5562172", "0.55400443", "0.55275506", "0.55080277", "0.5502157", "0.5481085", "0.5474635", "0.54699093", "0.5460191", "0.54358953", "0.54314", "0.54152906", "0.54075956", "0.54072064", "0.54023737", "0.53985924", "0.5398159", "0.5395968", "0.5381987", "0.5378512", "0.5371992", "0.53692955", "0.5363864", "0.5360339", "0.53548694", "0.5347437", "0.53462964", "0.53381765", "0.5332083", "0.53047276", "0.52988213", "0.5246952", "0.52467036", "0.52440673", "0.5241473", "0.5228908", "0.5213054", "0.520758", "0.5206911", "0.52048326", "0.51758575", "0.51678365", "0.5161741", "0.5161593", "0.5157796", "0.51470435", "0.5140663", "0.51406294", "0.5127825", "0.5114796", "0.5114684", "0.51110834", "0.51093686", "0.51074284", "0.5103643", "0.5100828", "0.5100372", "0.50868493", "0.508525", "0.5079753", "0.50766677", "0.5075458", "0.507031", "0.5063276", "0.5062172", "0.50578064", "0.5057733", "0.5053696", "0.50510865", "0.5050633", "0.5042207", "0.5041619", "0.50368863", "0.50237006", "0.50210387", "0.5019954", "0.5008167", "0.5007035", "0.5002456", "0.49860233", "0.4978948" ]
0.79697967
0
Display contents of the cart in a specific way depending on what it is (bag or item)
public void displayCartContents() { for (int i = 0; i < numItems; i++) { // Checks all objects in the cart if ((cart[i].getContents() != "")) { // If not item System.out.println(cart[i].getDescription()); // Display bag description System.out.println(cart[i].getContents()); // Display contents of bag } else { // Else it must be item System.out.println(cart[i].getDescription()); // Display item description } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static void viewCart() {\r\n\t\tSystem.out.println(\"******************************************************************************************\");\r\n\t\tSystem.out.println();\r\n\t\tSystem.out.println(\" The items in your cart\");\r\n\t\tSystem.out.println();\r\n\t\tSystem.out.println(\" Name |Price |Count\");\r\n\t\tfor (Map.Entry<Product, Integer> productCountPair: cart.getCartProductsEntries()) {\r\n\t\t\tStringBuilder productName = generatePaddings(productCountPair.getKey().getName(), PRODUCT_NAME_LENGTH);\r\n\t\t\tStringBuilder price = generatePaddings(convertCentToDollar(productCountPair.getKey().getPriceInCent()), PRICE_LENGTH);\r\n\t\t\tSystem.out.println(\" \" + productName + \"|\" + price + \"|\" + productCountPair.getValue());\r\n\t\t}\r\n\t\tSystem.out.println();\r\n\t\tSystem.out.println(\" Total price: \" + convertCentToDollar(cart.totalPriceInCent()));\r\n\t\tSystem.out.println();\r\n\t\tdisplayCartMenu();\r\n\t}", "public void printCart() {\n\t\tSystem.out.println(\"Items currently in the cart: \\n\");\n\t\tfor (int i =0; i < currentSize; i ++) {\n\t\t\tSystem.out.println(\"Item \" + i + \":\\n\" + Cart[i]);\n\t\t}\n\t}", "public void display() {\r\n System.out.println(\" Cart Information \" + System.lineSeparator() +\r\n \"=========================\" + System.lineSeparator() +\r\n \"Customer ID: \" + getCustID() + System.lineSeparator() + \r\n \"Cart Total: \" + getTotal()+ System.lineSeparator());\r\n items.display();\r\n }", "public void displayCart() {\n\t\tSystem.out.println(cart.toString());\n\t}", "private void viewBackpack() {\n Item[] inventory = GameControl.getSortedInventoryList();\r\n \r\n System.out.println(\"\\n List of inventory Items\");\r\n System.out.println(\"Description\" + \"\\t\" + \r\n \"Required\" + \"\\t\" +\r\n \"In Stock\");\r\n \r\n // For each inventory item\r\n for (Item inventoryItem : inventory){\r\n // Display the description, the required amount and amount in stock\r\n System.out.println(InventoryItem.getType + \"\\t \" +\r\n InventoryItem.requiredAmount + \"\\t \" +\r\n InventoryItem.getQuantity);\r\n }\r\n \r\n }", "@Override\n\tpublic void printCart() {\n\n\t\tint nSize = cartList.size();\n\t\tint intSum = 0;\n\n\t\tSystem.out.println(\"===================================================\");\n\t\tSystem.out.println(\"구매자\\t 상품명 수량\\t 단가\\t 합계\");\n\t\tSystem.out.println(\"---------------------------------------------------\");\n\n\t\tint i = 0;\n\t\tfor (i = 0; i < nSize; i++) {\n\t\t\tSystem.out.print(cartList.get(i).getUserName() + \"\\t \");\n\t\t\tSystem.out.print(cartList.get(i).getProductName() + \"\\t \");\n\t\t\tSystem.out.print(cartList.get(i).getQty() + \"\\t \");\n\t\t\tSystem.out.print(cartList.get(i).getPrice() + \"\\t \");\n\t\t\tSystem.out.println(cartList.get(i).getTotal() + \"\\t\");\n\n\t\t\tintSum += cartList.get(i).getTotal();\n\t\t}\n\n\t\tSystem.out.println(\"---------------------------------------------------\");\n\t\tSystem.out.printf(\"합계\\t%d가지\\t\\t\\t%d\\n\", i, intSum);\n\n\t}", "private void display() {\n\t\tif (bag.getSize() == 0) {\n\t\t\tSystem.out.println(\"The bag is empty!\");\n\t\t} else {\n\t\t\tSystem.out.println(\"**You have \" + bag.getSize() + \" items in the bag.\");\n\t\t\tbag.print();\n\t\t\tSystem.out.println(\"**End of list\");\n\t\t}\n\t}", "private void cart() {\n\t\tboolean back = false;\n\t\twhile (!back) {\n\t\t\tSystem.out.println(\"1.Display Cart\");\n\t\t\tSystem.out.println(\"2.Remove Product From Cart\");\n\t\t\tSystem.out.println(\"3.Edit Product in Cart\");\n\t\t\tSystem.out.println(\"4.Checkout\");\n\t\t\tSystem.out.println(\"5.Back\");\n\t\t\tSystem.out.println(\"Enter Your Choice:-\");\n\t\t\tchoice = getValidInteger(\"Enter Your Choice :-\");\n\t\t\tswitch (choice) {\n\t\t\tcase 1:\n\t\t\t\tCartController.getInstance().displayCart();\n\t\t\t\tbreak;\n\t\t\tcase 2:\n\t\t\t\tremoveProduct();\n\t\t\t\tbreak;\n\t\t\tcase 3:\n\t\t\t\teditProduct();\n\t\t\t\tbreak;\n\t\t\tcase 4:\n\t\t\t\tcheckout();\n\t\t\t\tbreak;\n\t\t\tcase 5:\n\t\t\t\tback = true;\n\t\t\t\tbreak;\n\t\t\tcase 6:\n\t\t\t\tSystem.out.println(\"Enter Correct Choice :-\");\n\t\t\t}\n\t\t}\n\t}", "public static void viewCart() {\n click(CART_BUTTON);\n click(VIEW_CART_BUTTON);\n }", "public void displayAll() {\r\n \t Item currentItem;\r\n \t \r\n \t System.out.println(\"-----BOOKS-----\");\r\n \t for(int i=0; i<items.size(); i++) {\r\n \t currentItem = items.get(i);\r\n \t \t //This next line checks if the current item is a book.\r\n \t if(currentItem.getItemType() == Item.ItemTypes.BOOK) \r\n \t System.out.println(currentItem.toString());\r\n \t }\r\n \t \t\r\n \t System.out.println(\"-----MAGAZINES-----\");\r\n \t for(int i=0; i<items.size(); i++) {\r\n \t currentItem = items.get(i);\r\n \t \t //This next line checks if the current item is a magazine.\r\n \t if(currentItem.getItemType() == Item.ItemTypes.MAGAZINE)\r\n \t System.out.println(currentItem.toString());\r\n \t }\r\n\r\n }", "private static String displayItemFromBag(String[] inventory, String option){\r\n String itemToDoAction;\r\n int counter = 1;\r\n if(option.equals(\"Equip\")){\r\n for(int i = 0; i < inventory.length; i++){\r\n if(inventory[i].equals(\"Short Sword\") || inventory[i].equals(\"Leather Helmet\") || inventory[i].equals(\"Leather Chest Plate\")\r\n || inventory[i].equals(\"Long Sword\") || inventory[i].equals(\"Great Sword\") || inventory[i].equals(\"Iron Helmet\") \r\n ||inventory[i].equals(\"Iron Chest Plate\") || inventory[i].equals(\"Iron Boots\") || inventory[i].equals(\"Iron Gloves\")){\r\n System.out.println(\"\\t\" + counter + \") \" + inventory[i]);\r\n counter++;\r\n }\r\n }\r\n System.out.println(\"\\t\" + counter + \") Exit\");\r\n itemToDoAction = getUserInput(\"Which item would you like to equip? \\n(Type the name of the item) \");\r\n }else if(option.equals(\"Sell\")){\r\n for(int i = 0; i < inventory.length; i++){\r\n if(inventory[i].equals(\"Short Sword\") || inventory[i].equals(\"Leather Helmet\") || inventory[i].equals(\"Leather Chest Plate\")\r\n || inventory[i].equals(\"Long Sword\") || inventory[i].equals(\"Great Sword\") || inventory[i].equals(\"Iron Helmet\") \r\n ||inventory[i].equals(\"Iron Chest Plate\") || inventory[i].equals(\"Iron Boots\") || inventory[i].equals(\"Iron Gloves\")){\r\n System.out.println(\"\\t\" + counter + \") \" + inventory[i]);\r\n counter++;\r\n }\r\n }\r\n System.out.println(\"\\t\" + counter + \") Exit\");\r\n itemToDoAction = getUserInput(\"Which item would you like to sell? \\n(Type the name of the item) \");\r\n }else if(option.equals(\"Use\")){\r\n System.out.println(\"we here\");\r\n for(int i = 0; i < inventory.length; i++){\r\n if(inventory[i].equals(\"Healing Potion\") || inventory[i].equals(\"Greater Healing Potion\") || inventory[i].equals(\"Scroll of Fireball\")){\r\n System.out.println(\"\\t\" + counter + \") \" + inventory[i]);\r\n counter++;\r\n }\r\n }\r\n System.out.println(\"\\t\" + counter + \") Exit\");\r\n itemToDoAction = getUserInput(\"Which item would you like to use? \\n(Type the name of the item) \");\r\n }else{\r\n itemToDoAction = \"\";\r\n }\r\n return itemToDoAction;\r\n }", "private static void displayBag(String[] bag){\r\n for(int i=0; i<bag.length; i++){\r\n //Checks to see if slots 4, 8, or 12 are empty\r\n if((i == 4 || i == 8 || i == 12) && bag[i].equals(\"\")){\r\n System.out.print(\"\\n| \");\r\n System.out.print(\"-\");\r\n System.out.print(\" |\");\r\n //Checks if there is an item in slots 4, 8, or 12\r\n }else if (i == 4 || i == 8 | i == 12){\r\n System.out.print(\"\\n| \");\r\n System.out.print(bag[i]);\r\n System.out.print(\" |\");\r\n //Checks if all other slots are empty\r\n }else if(bag[i].equals(\"\")){\r\n System.out.print(\"| \");\r\n System.out.print(\"-\");\r\n System.out.print(\" |\");\r\n //All other slots have an item and is printed out\r\n }else{\r\n System.out.print(\"| \");\r\n System.out.print(bag[i]);\r\n System.out.print(\" |\");\r\n }\r\n }\r\n }", "private static void viewItems() {\r\n\t\tdisplayShops();\r\n\t\tint shopNo = getValidUserInput(scanner, shops.length);\r\n\t\tdisplayItems(shopNo);\r\n\t\tSystem.out.println();\r\n\t\tSystem.out.println(\" Please enter the ID of the element to add to cart. \\\"0\\\" for exit\");\r\n\t\tSystem.out.println();\r\n\t\tint productNo = getValidUserInput(scanner, shops[shopNo].getAllSales().length + 1);\r\n\t\tif (productNo > 0) {\r\n\t\t\tProduct productToBeAdd = shops[shopNo].getAllSales()[productNo - 1];\r\n\t\t\tSystem.out.println();\r\n\t\t\tSystem.out.print(\" Please enter the number of the item you would like to buy: \");\r\n\t\t\tint numberOfTheItems = getUserIntInput();\r\n\t\t\tcart.addProduct(productToBeAdd, numberOfTheItems);\r\n\t\t}\r\n\t\tSystem.out.println();\r\n\t\tSystem.out.println(\" Purchase done, going back to the menu.\");\r\n\t\tSystem.out.println();\r\n\t}", "public void ViewCart() {\r\n\t\tthis.ViewCart.click();\r\n\t}", "public static void printCart(User currentUser) {\r\n\t\tSystem.out.println(\"\\n Cart\\n\");\r\n\t\tMap<Long, Integer> userCart = currentUser.getCart();\r\n\t\tif (userCart.size() == 0) {\r\n\t\t\tSystem.out.println(\"Your cart is empty...\");\r\n\t\t} else {\r\n\t\t\tSystem.out.format(\"%5s\\t%10s\\t%10s\\t%5s\\n\", \"Id\", \"Name\", \"Quantity\", \"Price\");\r\n\t\t\tfor (Long id : userCart.keySet()) {\r\n\t\t\t\tFruit fruit = fruits.get(id);\r\n\t\t\t\tdouble price = fruit.getPrice() * userCart.get(id);\r\n\t\t\t\tSystem.out.format(\"%5s\\t%10s\\t%10s\\t%5s\\n\", id, fruit.getName(), userCart.get(id), price);\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public interface CartView {\n\tvoid showState(int state);\n\n\tLifecycleTransformer<List<StoreInfoBean>> bindLife();\n\n\tvoid showCart(List<StoreInfoBean> groups);\n\n\tvoid showGood(RecomGoodModel goodModel);\n\n\tvoid deteleGood(boolean result);\n\n void postOrder();\n}", "@Override\n\tpublic void browseItems(Session session){\n\t\t//exception handling block\n\t\ttry{\n\t\t\tbrowseItem=mvc.browseItems(session);\n\t\t\t//displaying items from database\n\t\t\tSystem.out.println(\"<---+++---Your shopping items list here----+++--->\");\n\t\t\tSystem.out.println(\"ItemId\"+\" \"+\"ItemName\"+\" \"+\"ItemType\"+\" \"+\"ItemPrice\"+\" \"+\"ItemQuantity\");\n\t\t\tfor(int i = 0; i < browseItem.size(); i++) {\n\t System.out.println(browseItem.get(i)+\"\\t\"+\"\\t\");\n\t }\n\t System.out.println(\"<------------------------------------------------>\");\n\t\t}\n\t\tcatch(Exception e){\n\t\t\tSystem.out.println(\"Online Market App Exception- Browse Items: \" +e.getMessage());\n\t\t}\n\t}", "public void printInventory()\n { \n System.out.println();\n\n // Checks if the player has items.\n if(!(getPerson(PLAYER).getInventory().getItems().isEmpty())){\n System.out.println(\"In your backpack, you have:\");\n\n // Gets each item in the player's inventory.\n for(Item item: getPerson(PLAYER).getInventory().getItems()){\n System.out.print(item.getName() + \",\");\n }\n System.out.println();\n System.out.println(\"You are carrying \"+ getPerson(PLAYER).getWeight() + \"kg.\");\n }\n else{\n System.out.println(\"There are currently no items in your backpack.\");\n }\n System.out.println();\n }", "public void cart() {\n\t\tString s=dr.findElement(By.xpath(\"//*[@id=\\\"Cart\\\"]/form\")).getText();\r\n\t\tSystem.out.println(s);\r\n\t}", "public void showCart(int userId) {\n try {\n List<Cart> carts = cartService.getUserCarts(userId);\n System.out.println(\"\\n\"+Constants.DECOR+\"YOUR CART\"+Constants.DECOR_END);\n System.out.println(Constants.CART_HEADER);\n for(Cart cart : carts) {\n System.out.println(String.valueOf(userId)\n +\"\\t\\t\"+String.valueOf(cart.getCartId())+(\"\\t\\t\"+String.valueOf(cart.getProduct().getId())\n +\"\\t\\t\"+String.valueOf(cart.getQuantity())+\"\\t\\t\"+cart.getCreated()+\"\\t\\t\"+cart.getModified()));\n }\n } catch (CartException ex) {\n System.out.println(ex);\n } \n }", "public void printInventory()\n {\n System.out.println(\"Welcome to \" + storeName + \"! We are happy to have you here today!\");\n System.out.println(storeName + \" Inventory List\");\n System.out.println();\n \n System.out.println(\"Our Books:\");\n System.out.println(Book1.toString());\n System.out.println(Book2.toString());\n System.out.println(Book3.toString());\n System.out.println(Book4.toString());\n System.out.println(Book5.toString());\n \n System.out.println();\n \n System.out.println(\"Our Bevereges:\");\n System.out.println(Beverage1.toString());\n System.out.println(Beverage2.toString());\n System.out.println(Beverage3.toString());\n\n System.out.println();\n }", "public void mostrarCartasBazas(){\n int cont = 0;\n while(cont < cartasDeLaBaza.size()){\n System.out.println(cartasDeLaBaza.get(cont).toString());\n cont ++;\n }\n }", "private static void displayCartMenu() {\r\n\t\tSystem.out.println();\r\n\t\tSystem.out.println(\" Please make your choice, by entering the assigned number\");\r\n\t\tSystem.out.println();\r\n\t\tSystem.out.println(\" 1: Remove an item from the cart\");\r\n\t\tSystem.out.println(\" 2: Modify the number of a certain item in the cart\");\r\n\t\tSystem.out.println(\" 3: Checkout cart\");\r\n\t\tSystem.out.println(\" 0: Quit to main manu\");\r\n\t\tint value = getValidUserInput(scanner, 4);\r\n\t\tswitch (value) {\r\n\t\tcase 0:\r\n\t\t\tSystem.out.println();\r\n\t\t\tSystem.out.println(\" Going back to main menu\");\r\n\t\t\tSystem.out.println();\r\n\t\t\tbreak;\r\n\t\tcase 1:\r\n\t\t\tremoveItemFromCart();\r\n\t\t\tbreak;\r\n\t\tcase 2:\r\n\t\t\tmodifyItemNumberInCart();\r\n\t\t\tbreak; \r\n\t\tcase 3:\r\n\t\t\tcheckoutCart();\r\n\t\t\tbreak;\r\n\t\tdefault:\r\n\t\t\tbreak;\r\n\t\t}\t\r\n\t}", "private static void displayItems()\n {\n System.out.println(\"\\n\\tCurrent List of Products in the Store:\\n\");\n for(Sales s : store)\n System.out.println(s.toString());\n }", "DetailedCart generateDetailedCart(Cart cart);", "public String getCartItem() {\n\t\tMobileElement el = driver.findElement(By.xpath(\"//android.view.View[@resource-id='\" + cart + \"']\"));\n\t\tList<MobileElement> els = el.findElements(By.className(\"android.view.View\"));\n\t\treturn els.get(3).getText();\n\t}", "private void display(){\n out.println(\"\\n-STOCK EXCHANGE-\");\n out.println(\"Apple - Share Price: \" + game.apple.getSharePrice() + \" [\" + game.apple.top() + \"]\");\n out.println(\"BP - Share Price: \" + game.bp.getSharePrice() + \" [\" + game.bp.top() + \"]\");\n out.println(\"Cisco - Share Price: \" + game.cisco.getSharePrice() + \" [\" + game.cisco.top() + \"]\");\n out.println(\"Dell - Share Price: \" + game.dell.getSharePrice() + \" [\" + game.dell.top() + \"]\");\n out.println(\"Ericsson - Share Price: \" + game.ericsson.getSharePrice() + \" [\" + game.ericsson.top() + \"]\");\n\n out.println(\"\\n-PLAYERS-\");\n// System.out.println(playerList.toString());\n for (Player e : playerList) {\n if (e.equals(player)) {\n out.println(e.toString() + \" (you)\");\n } else {\n out.println(e.toString());\n }\n }\n }", "@GetMapping(\"/show-cart\")\r\n\tpublic List<Cart> showCart() throws CartEmptyException {\r\n\t\tlog.info(\"showCart -Start\");\r\n\t\t//Cart cart = null;\r\n\t\tList<Cart> cart;\r\n\t\tcart = service.getAllCartItems(1);\r\n\t\tint total=0;\r\n\t\tif(cart.size()==0)\r\n\t\t{\r\n\t\t\treturn null;\r\n\t\t}\r\n\t\tfor(Cart carts:cart)\r\n\t\t{\r\n\t\t\ttotal+=carts.getMenuItem().getPrice();\r\n\t\t}\r\n\t System.out.println(\"*************************************************\"+total);\r\n\t\tlog.info(\"showCart -End\");\r\n\t\treturn cart;\r\n\r\n\t}", "public void list(){\n //loop through all inventory items\n for(int i=0; i<this.items.size(); i++){\n //print listing of each item\n System.out.printf(this.items.get(i).getListing()+\"\\n\");\n }\n }", "private void checkoutNotEmptyBag() {\n\t\tSystem.out.println(\"Checking out \" + bag.getSize() + \" items.\");\n\t\tbag.print();\n\t\tDecimalFormat df = new DecimalFormat(\"0.00\");\n\t\tdouble salesPrice = bag.salesPrice();\n\t\tSystem.out.println(\"*Sales total: $\" + df.format(salesPrice));\n\t\tdouble salesTax = bag.salesTax();\n\t\tSystem.out.println(\"*Sales tax: $\" + df.format(salesTax));\n\t\tdouble totalPrice = salesPrice + salesTax;\n\t\tSystem.out.println(\"*Total amount paid: $\" + df.format(totalPrice));\n\t\tbag = new ShoppingBag(); // Empty bag after checking out.\n\t}", "protected void updateCartInfoUI() {\n SharedPref.putCartitesmQty(getContext(), mCartInfo.getSummaryQty());\n this.updateCartTotal();\n// updateMenu();\n }", "public void show() {\r\n\t\tfor (Carta carta: baraja) {\r\n\t\t\tSystem.out.println(carta);\r\n\t\t}\r\n\t}", "private void loadInv() {\n\t\titem = Main.inventory.business.getAllBaked();\n\t\tString test = \"ID, Name, Amount, Price\\n\";\n\t\t//formatting for string to load into the screen\n\t\tfor(int i=0 ; i< item.size() ; i++) {\n\t\t\ttest += (i+1) + \" \" + item.get(i).getName() +\", \" \n\t\t\t\t\t+ item.get(i).getQuantity() + \n\t\t\t\t\t\", $\"+ Main.inventory.business.getItemCost(item.get(i).getName()) +\"\\n\";\n\t\t}\n\t\tthis.inv.setText(test);\n\t}", "public void showProducts() {\n\t\t\tfor(int i = 0; i < products.size(); i++) {\n\t\t\t\tif(products.get(i).quantity > 0) {\n\t\t\t\t\tSystem.out.println(alphabet.substring(i, i+1).toUpperCase() + \") \" + products.get(i).toString());\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tproducts.remove(i);\n\t\t\t\t}\n\t\t\t}\n\t\t}", "public void packBags() {\r\n GroceryBag[] packedBags = new GroceryBag[numItems];\r\n int bagCount = 0;\r\n\r\n GroceryBag currentBag = new GroceryBag();\r\n for (int i=0; i<numItems; i++) {\r\n GroceryItem item = (GroceryItem) cart[i];\r\n if (item.getWeight() <= GroceryBag.MAX_WEIGHT) {\r\n if (!currentBag.canHold(item)) {\r\n packedBags[bagCount++] = currentBag;\r\n currentBag = new GroceryBag();\r\n }\r\n currentBag.addItem(item);\r\n removeItem(item);\r\n i--;\r\n }\r\n }\r\n // Check this in case there were no bagged items\r\n if (currentBag.getWeight() > 0)\r\n packedBags[bagCount++] = currentBag;\r\n\r\n // Now create a new bag array which is just the right size\r\n pBags = new GroceryBag[bagCount];\r\n for (int i=0; i<bagCount; i++) {\r\n pBags[i] = packedBags[i];\r\n }\r\n\r\n // Add all grocery bags bag into cart\r\n for (int i = 0; i < bagCount; i++) {\r\n addItem(pBags[i]);\r\n }\r\n }", "public static void display(){\n \n //create an array : Remember positions\n //wheat= 0\n //Land = 1 \n //Population = 2\n \n String[] items = {\"Wheat\", \"Land\", \"Population\"};\n \n \n // call the crops object \n Crops theCrops = Game.getCrop();\n \n //get wheat\n int wheat = theCrops.getWheatInStore();\n \n //get land (acres)\n int acres = theCrops.getAcres();\n \n //get population \n \n int population = theCrops.getPopulation();\n \n //print results \n \n System.out.println(\"\\nInventory List:\");\n //wheat \n System.out.println(\"Wheat in Store:\" + wheat + \" bushels of \" + items[0]);\n //acres\n System.out.println(\"Acres of Land owned:\" + acres + \" acres of \" + items[1]);\n \n //population\n System.out.println(\"Current population:\" + population + \" people in the \" + items[2]);\n \n \n \n }", "@Override\n public String toString(){\n return \"\" + item.name + \" \" + item.price + \" Coins\";\n }", "@Override\n\t\t\t\tpublic void onClick(View v) {\n\t\t\t\t\tint tempPosition = 0;\n\t\t\t\t\tfor (ItemCart btem : arrCart) {\n\t\t\t\t\t\tif (btem.getItem().getId().equals(item.getId())) {\n\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\ttempPosition++;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tlistener.clickAddIntroduction(tempPosition,\n\t\t\t\t\t\t\tarrCart.get(tempPosition));\n\t\t\t\t}", "private static void checkoutCart() {\r\n\t\tint totalPrice = cart.totalPriceInCent();\r\n\t\tcart.checkoutCartProducts();\r\n\t\tSystem.out.println(\"******************************************************************************************\");\r\n\t\tSystem.out.println();\r\n\t\tSystem.out.println(\" The items in your cart is all cleared\");\r\n\t\tSystem.out.println();\r\n\t\tSystem.out.println(\" Total price to pay: \" + convertCentToDollar(totalPrice));\r\n\t\tSystem.out.println();\r\n\t}", "private void displayAll() {\n\t\tif(inventoryObject.totalNumCards() == 0) { // checks to see if there are 0 StockIndexCards\n\t\t\tSystem.out.println(\"The Inventory is empty\\n\");\n\t\t\tgetUserInfo();\n\t\t}\n\t\telse {\n\t\tSystem.out.println(inventoryObject.displayAll());\n\t\tgetUserInfo();\n\t\t}\n\t}", "public static void goToCart() {\n click(SHOPPING_CART_UPPER_MENU);\n }", "private static void displayBag(BagInterface<String> aBag)\n {\n System.out.println(\"The bag contains the following string(s):\");\n Object[] bagArray = aBag.toArray();\n for (int index = 0; index < bagArray.length; index++)\n {\n System.out.print(bagArray[index] + \" \");\n } // end for\n\n System.out.println();\n }", "public void Cart() {\r\n\t\tthis.cart.click();\r\n\t}", "@Override\n public void onClick(View v)\n {\n Card.addtoCard(new CardItem(content.get(position).getName(),\n content.get(position).getDescription(),\n content.get(position).getPrice(),(long) 1,\"None\",\n content.get(position).getPrice()));\n Toast.makeText(RecycleViewAdapter.this.mContext,\"Added to Cart\",Toast.LENGTH_LONG).show();\n }", "private void displayItem(){\n synchronized(this){\n for(ClientHandler client : clientArray){\n client.getOutput().println(\"\" + currentItem.getItem() +\n \" price starts at \" + currentItem.getStartingPrice() +\n \".\\n\");\n }\n }\n }", "private void checkout() {\n System.out.printf(\n \"Total + Tax %12s%n\", getTotal(cart)\n );\n }", "@Override\n public String toString(){\n if (myBasket.size() == 0) {\n System.out.println(\"No products yet.\");\n return null;\n }\n int i = 0;\n String string = \"List of products in basket: \\n\";\n for (Product product: myBasket.keySet())\n {\n i++;\n string = string + i + \")\\n\" + product.toString() + \"in basket: \" + myBasket.get(product) + \"\\n\";\n }\n return string;\n }", "public void cartMenu(int userId) {\n System.out.println(Constants.DECOR+\"WELCOME TO CART MENU\"+Constants.DECOR_END);\n int choice = InputUtil.getInt(Constants.CART_MENU);\n while(4 >= choice) {\n switch(choice) {\n case 1:\n showAllProducts();\n getCartProducts(userId);\n showCart(userId);\n break;\n\n case 2:\n removeCart(userId);\n showCart(userId);\n break;\n \n case 3:\n modifyCart(userId);\n showCart(userId);\n break;\n \n case 4:\n showCart(userId);\n break;\n\n }\n choice = InputUtil.getInt(Constants.CART_MENU);\n if(5 == choice) {\n showCart(userId);\n break;\n }\n } \n }", "@Override\r\n \tpublic String toString() {\n \t\tString itemString = \"\" + item.getTypeId() + ( item.getData().getData() != 0 ? \":\" + item.getData().getData() : \"\" );\r\n \t\t\r\n \t\t//saving the item price\r\n \t\tif ( !listenPattern )\r\n \t\t\titemString += \" p:\" + new DecimalFormat(\"#.##\").format(price);\r\n \t\t\r\n \t\t//saving the item slot\r\n \t\titemString += \" s:\" + slot;\r\n \t\t\r\n \t\t//saving the item slot\r\n \t\titemString += \" d:\" + item.getDurability();\r\n \t\t\r\n \t\t//saving the item amounts\r\n \t\titemString += \" a:\";\r\n \t\tfor ( int i = 0 ; i < amouts.size() ; ++i )\r\n \t\t\titemString += amouts.get(i) + ( i + 1 < amouts.size() ? \",\" : \"\" );\r\n \t\t\r\n \t\t//saving the item global limits\r\n \t\tif ( limit.hasLimit() ) \r\n \t\t\titemString += \" gl:\" + limit.toString();\r\n \t\t\r\n \t\t//saving the item global limits\r\n \t\tif ( limit.hasPlayerLimit() ) \r\n \t\t\titemString += \" pl:\" + limit.playerLimitToString();\r\n \t\t\r\n \t\t//saving enchantment's\r\n \t\tif ( !item.getEnchantments().isEmpty() ) {\r\n \t\t\titemString += \" e:\";\r\n \t\t\tfor ( int i = 0 ; i < item.getEnchantments().size() ; ++i ) {\r\n \t\t\t\tEnchantment e = (Enchantment) item.getEnchantments().keySet().toArray()[i];\r\n \t\t\t\titemString += e.getId() + \"/\" + item.getEnchantmentLevel(e) + ( i + 1 < item.getEnchantments().size() ? \",\" : \"\" );\r\n \t\t\t}\r\n \t\t}\r\n \t\t\r\n \t\t//saving additional configurations\r\n \t\tif ( stackPrice )\r\n \t\t\titemString += \" sp\";\r\n \t\tif ( listenPattern )\r\n \t\t\titemString += \" pat\";\r\n \t\t\r\n \t\treturn itemString;\r\n \t}", "public String getItemString() \r\n \t{\r\n \t\tString itemString = \"Regarde s'il y a des objets ici: \";\r\n \t\t\r\n \t\tif (!items.getHashMap().isEmpty())\r\n \t\t{\r\n \t\t\tSet<String> cles = items.getKeys();\r\n \t\t\tfor (String nom : cles) \r\n \t\t\t{\r\n \t\t\t\tif(nom != \"beamer\")\r\n \t\t\t\t{\r\n \t\t\t\t\tItem valeurs = items.getValue(nom);\r\n \t\t\t\t\titemString += \"\\n\" + valeurs.getDescriptionItem() + \" qui pèse \" + valeurs.toString() + \" kg\";\r\n \t\t\t\t}\r\n \t\t\t}\r\n \t\t}\r\n \t\telse\r\n \t\t{\r\n \t\t\titemString = \"Il n'y a pas d'objet ici\";\r\n \t\t}\r\n \t\t\r\n \r\n \t\r\n \t\t/********** L'ArrayList des potions **********/\r\n \t\titemString += \"\\n\";\r\n \t\tfor (int i = 0; i < potion.size(); i++) {\r\n \t\t\titemString += \"\\n\" + potion.get(i).getNomPotion();\r\n \t\t}\r\n \t\t/****************************************************************/\r\n \r\n \t\treturn itemString;\r\n \r\n \t}", "private void checkout() {\n\t\tif (!CartController.getInstance().isCartEmpty()) {\n\t\t\tSystem.out.println(\"Enter your Name :\");\n\t\t\tscan.nextLine();\n\t\t\tCartController.getInstance().generateBill(scan.nextLine());\n\t\t} else {\n\t\t\tSystem.out\n\t\t\t\t\t.println(\"\\n--------------No Product Available in Cart for Checkout-----------------\\n\");\n\t\t}\n\t}", "@Override\n public void printBill() {\n System.out.println(\"BILL FOR TABLE #\" + id);\n for (MenuItem item : bill.getItems()) {\n if (item.getPrice() == 0.0) {\n System.out.println(item.getQuantity() + \" \" + item.getName() + \": $\" + String.format(\"%.2f\", item.getTotal()) + \" Sent back because: \" + item.getComment() + \".\");\n } else {\n System.out.println(item.getQuantity() + \" \" + item.getName() + \": $\" + String.format(\"%.2f\", item.getTotal()));\n }\n for (Ingredient addedIng : item.getExtraIngredients()) {\n System.out.println(\"add \" + item.getQuantity() + \" \" + addedIng.getName() + \": $\" + String.format(\"%.2f\", addedIng.getPrice() * item.getQuantity()));\n }\n for (Ingredient removedIng : item.getRemovedIngredients()) {\n System.out.println(\"remove \" + item.getQuantity() + \" \" + removedIng.getName() + \": -$\" + String.format(\"%.2f\", removedIng.getPrice() * item.getQuantity()));\n }\n\n }\n System.out.println(\"Total: $\" + getBillPrice() + \"\\n\");\n }", "public String printGrabbedItems() {\n return \"Items in your inventory: \" + grabbedItems;\n }", "public void display_inventory() {\n\t\t// displays all identified crystals\n\t\tfor(int i = 0;i<maxInvSize;i++) {\n\t\t\tif(identifiedArray[i] != null) {\n\t\t\t\tcrystal_description(identifiedArray[i]);\n\t\t\t}\n\t\t}\n\t\t\n\t}", "@RequestMapping(method = RequestMethod.GET,value = \"/\")\n public String HomePage(Model model, HttpSession session){\n model.addAttribute(\"listBook\",bookService.books());\n\n ShoppingCart shoppingCart = (ShoppingCart) session.getAttribute(\"list-order\");\n\n if (shoppingCart != null){\n\n Set<CartItem> listCartItem = new HashSet<>();\n for (Long hashMapKey:shoppingCart.getItems().keySet()\n ) {\n CartItem cartItem = shoppingCart.getItems().get(hashMapKey);\n listCartItem.add(cartItem);\n System.out.println(\"quantity : \" + cartItem.getQuantity());\n System.out.println(\"size list cart : \" + listCartItem.size());\n }\n model.addAttribute(\"listCartItem\",listCartItem);\n }\n\n\n return \"homePage\";\n }", "public void printOrderItem(){\r\n\t\tSystem.out.print(this.quantity+\" x \"+this.menuItem.getName()+\" ---- \");\r\n\t\tSystem.out.printf(\"$%.2f\\n\",this.calculatePrice());\r\n\t}", "public synchronized String getItemDetails(){\n \tString s = \"\\n========================================\";\n \ts += \"\\nID: \"+ ID;\n \ts += \"\\nName: \"+ item_name;\n \ts += \"\\nStarting Price: \"+ start_price;\n \ts += \"\\nNumber Of bidders: \" + bids.size();\n \ts += \"\\n status: \" + status;\n\n \tif(status == \"open\"){\n \t\tif(last_bidder == null){\n \t\t\t\ts += \"\\nLast Bidder: No bids yet\";\n \t\t}else{\n \t\t\ts += \"\\n last_bidder: \"+ last_bidderName;\n \t\t}\n \t}else if(status == \"closed\"){\n \t\tif(last_bidder == null){\n \t\t\t\ts += \"\\nLast Bidder: Closed with No bids\";\n \t\t}else{\n \t\t\ts += \"\\n Won by: \"+ last_bidderName +\" at price of \"+ start_price;\n \t\t}\n \t}\n \ts += \"\\n========================================\";\n return s;\n }", "public String printPlayerInventory() {\r\n\t\t\tif(this.getPlayer().getInventory().getContent().isEmpty()) {\r\n\t\t\t\treturn \"You have no items in your inventory.\" + \"\\n\"\r\n\t\t\t\t\t\t+ \"You can carry \" + this.getPlayer().getCarryCapacity() + \" more units of weight. \\n\"\r\n\t\t\t\t\t\t+ \"You have \" + this.getPlayer().getGold() + \" gold.\";\t\r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\treturn \"Your \" + this.getPlayer().getInventory().printContent()\r\n\t\t\t\t+ \"You can carry \" + this.getPlayer().getCarryCapacity() + \" more units of weight. \\n\"\r\n\t\t\t\t\t\t+ \"You have \" + this.getPlayer().getGold() + \" gold.\";\t\t\t\t\r\n\t\t\t}\r\n\r\n\t\t}", "public String getItem()\n {\n // put your code here\n return \"This item weighs: \" + weight + \"\\n\" + description + \"\\n\";\n }", "@Override\n\tpublic List<Cart> viewMyCart() throws BusinessException {\n\t\treturn null;\n\t}", "private void ShowProductActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_ShowProductActionPerformed\n alert.setText(\"\");\n if (displayMgr.mainMgr.orderMgr.getCart().isEmpty())\n RowItem.setText(\"Add items to the cart first\");\n else {\n displayMgr.POU.addRowToTable();\n displayMgr.showProductScreen();\n }\n }", "public List<CartItem> getAllcartitem();", "public void showContentBought() {\n\n\t\tif (this.contentBought.size() == 0) {\n\t\t\tSystem.out.println(\"Nothing so far!\");\n\t\t\t\n\t\t} else {\n\t\t\tfor (int i = 0; i < this.contentBought.size(); i++) {\n\t\t\t\tSystem.out.println(this.contentBought.get(i).getName());\n\t\t\t}\n\t\t}\n\t}", "public void showInventory()\n\t{\n\t\tSystem.out.print(\"________________________________________________________\"\n\t\t\t+ \"__________________\\n\\n\");\n\t\tSystem.out.print(\"\\t\\t\\t\\tInventory\");\n\t\t\n\t\tfor (String s: inventory)\n\t\t{\n\t\t\tSystem.out.print(\"\\n\" + s);\n\t\t}\n\t\t\n\t\tSystem.out.print(\"\\n\\n[R] Return\\n\");\n\t\tSystem.out.print(\"________________________________________________________\"\n\t\t\t+ \"__________________\\n\\n\");\n\t\tSystem.out.print(\"Action: \");\n\t\t\n\t}", "public interface ICartView {\r\n void loadViewCart(List<Product> cart,List<String> list);\r\n void loadFailView();\r\n\r\n void removeItemCart(int position);\r\n\r\n void reloadView(int quantity, int position);\r\n\r\n}", "public String getDescription() {return \"Use an item in your inventory\"; }", "public String getShoppingCartAsString() {\n String result = \"\";\n for (Item item : cart.keySet()) {\n int count = cart.get(item);\n int price = count * item.getPriceInCents();\n result += count + \"x \" + item.getName() + \" = \" + price + \" cents\\n\";\n }\n return result;\n }", "private void displayBook() {\n NumberFormat formatter = NumberFormat.getCurrencyInstance();\n\n System.out.println(\"Book title: \" + getTitle());\n System.out.println(\"Book author: \" + getAuthor());\n System.out.println(\"Book description: \" + getDescription());\n System.out.println((\"The price is: \" + formatter.format(getPrice())));\n if (isInStock()) {\n System.out.println(\"Currently the book is in stock.\");\n }\n else {\n System.out.println(\"Currently the book is not in stock.\");\n }\n System.out.println();\n }", "private void updatePriceView() {\n int subTotal = 0;\n int cartQuantity = 0;\n int calculatedDiscount = 0;\n\n DecimalFormat decimalFormatter = new DecimalFormat(\"₹#,##,###.##\");\n\n for (CartItem cartItem : cartList) {\n cartQuantity += cartItem.getQuantity();\n subTotal += cartItem.getQuantity() * cartItem.getPrice();\n }\n\n switch (discountType) {\n case AMOUNT:\n calculatedDiscount = discount;\n break;\n case PERCENTAGE:\n calculatedDiscount = (subTotal * discount) / 100;\n break;\n }\n\n subTotalView.setText(decimalFormatter.format(subTotal));\n\n String count = \"(\" + cartQuantity;\n\n if (cartQuantity < 2) {\n count += \" Item)\";\n } else {\n count += \" Items)\";\n }\n\n textNumberItems.setText(count);\n discountView.setText(decimalFormatter.format(calculatedDiscount));\n total = subTotal - calculatedDiscount;\n totalView.setText(decimalFormatter.format(total));\n updateCartNotification(cartQuantity);\n }", "public void addToCart_process(View v) {\n\n addToCart_flag = true;\n // create string\n create_final_string_product();\n // function show message\n ToastMessage();\n // clear all data after adding product into cart\n clear_data();\n }", "private void basketData() {\n basketViewModel.setBasketListObj(selectedShopId);\n basketViewModel.getAllBasketList().observe(this, resourse -> {\n if (resourse != null) {\n basketViewModel.basketCount = resourse.size();\n if (resourse.size() > 0) {\n setBasketMenuItemVisible(true);\n } else {\n setBasketMenuItemVisible(false);\n }\n }\n });\n }", "@Override\n public void actionPerformed(ActionEvent e) {\n boolean found = false;\n //Checking addToCart Button\n for (int j = 0; j < MAX_NUMB_PRODUCTS; j++) {\n if (addToCartBtn[j] == null) {\n break;\n }\n if (e.getSource() == addToCartBtn[j]) {\n //Getting Product\n Product p = inventory.getProductAt(getFirstProductDisplayed() + j);\n found = true;\n //Update Total\n myShoppingCart.setTotal(p.getProductPrice());\n //Update JLabel\n getTotalLabel().setText(\"Total: $\" + String.valueOf(myShoppingCart.getTotal()));\n //Add to shopping Cart\n myShoppingCart.addProduct(new Product(p.getId(), p.getSellerName(), p.getProductName(), p.getInvoicePrice(), p.getProductPrice(), 1));\n }\n //Stop loop if the button was found\n if (found) {\n break;\n }\n }\n //Checking read Details\n if (!found) {\n for (int j = 0; j < MAX_NUMB_PRODUCTS; j++) {\n if (getProdBTN1(j) == null) {\n break;\n }\n if (e.getSource() == getProdBTN1(j)) {\n //Getting Product\n Product pDescription = inventory.getProductAt(getFirstProductDisplayed() + j);\n //Creating popup message\n createPOPUP(\"Product Description\", pDescription.toString());\n found = true;\n }\n //Stop loop if the button was found\n if (found) {\n break;\n }\n }\n }\n //Checking next Page button\n if (!found) {\n if (e.getSource() == nextPagebtn) {\n found = true;\n if (getLastProductDisplayed() != inventory.getSize()) {\n //Update the first Product displayed\n setFirstProductDisplayed(getLastProductDisplayed());\n //Update mainPanel\n mainPanel(\"Inventory\");\n previousPagebtn.setEnabled(true);\n } else {\n //Disable button if end of inventory\n nextPagebtn.setEnabled(false);\n }\n }\n }\n //Checking previous Page button\n if (!found) {\n if (e.getSource() == previousPagebtn) {\n found = true;\n if (getLastProductDisplayed() - MAX_NUMB_PRODUCTS != 0 && getLastProductDisplayed() - MAX_NUMB_PRODUCTS > 0) {\n //Update the first Product displayed\n setFirstProductDisplayed(getFirstProductDisplayed() - MAX_NUMB_PRODUCTS);\n //Update mainPanel\n mainPanel(\"Inventory\");\n //mainPanel.repaint();\n nextPagebtn.setEnabled(true);\n } else {\n //Disable button if start of inventory\n previousPagebtn.setEnabled(false);\n }\n }\n }\n //Checking checkout button\n if (!found) {\n if (e.getSource() == checkOutbtn) {\n //Update mainPanel\n mainPanel(\"Checkout\");\n found = true;\n }\n }\n //Checking for new Qty\n if (!found) {\n for (int j = 0; j < myShoppingCart.getSize(); j++) {\n if (j > myShoppingCart.getSize() || newQtyBtn[j] == null) {\n break;\n }\n if (e.getSource() == newQtyBtn[j]) {\n found = true;\n if (!\"\".equals(updateQuantity[j].getText())) {\n //Getting Product\n Product p = myShoppingCart.getProductAt(j);\n //New Quantity entered\n int newQTY = Integer.valueOf(updateQuantity[j].getText());\n \n //Update Total\n double Total = newQTY * p.getProductPrice();\n double newTotal = Total + (myShoppingCart.getTotal() - (p.getProductPrice() * p.getQuantity()));\n if (newQTY == 0) {\n //Delete product from shoppingCart\n myShoppingCart.removeProduct(j);\n myShoppingCart.resetTotal();\n myShoppingCart.setTotal(newTotal);\n System.out.println(\"Shopping Cart Total\" + newTotal);\n //Update JLabel\n getTotalLabel().setText(\"Total: $\" + String.valueOf(myShoppingCart.getTotal()));\n createPOPUP(\"Message\", \"Product Removed\");\n //Update mainPanel\n mainPanel(\"Shopping Cart\");\n } else {\n //Update new Quantity if possible\n int result = inventory.findProductQTY(p.getSellerName(), String.valueOf(p.getId()));\n System.out.println(\"Result in the inventory: \" + result);\n if (result != 0) {\n if (newQTY > result) {\n createPOPUP(\"ERROR\", \"New quantity exceeds the number of product found in the inventory\"\n + \"\\nNO MORE THAN: \" + result);\n updateQuantity[j].setText(\"\");\n } else {\n myShoppingCart.updateProductQTY(new Product(p.getId(), p.getSellerName(), p.getProductName(), p.getInvoicePrice(), p.getProductPrice(), newQTY));\n myShoppingCart.resetTotal();\n myShoppingCart.setTotal(newTotal);\n getTotalLabel().setText(\"Total: $\" + String.valueOf(myShoppingCart.getTotal()));\n //Update mainPanel\n mainPanel(\"Shopping Cart\");\n }\n }\n }\n } else {\n //Error message if textfield is empty\n createPOPUP(\"Message\", \"Please enter a new Quantity\");\n }\n }\n //Stop loop if the button was found\n if (found) {\n break;\n }\n }\n }\n\n //Checking submit order button\n if (!found) {\n if (e.getSource() == submitbtn) {\n if (!creditCardView.getFormCompleted()) {\n createPOPUP(\"Message\", \"Please Complete Credit Card Form\");\n } else {\n //Complete Order\n myShoppingCart.completeOrder(creditCardView.getName(), creditCardView.getCreditCard(), creditCardView.getExpirationDate(), creditCardView.getZIPCode());\n createPOPUP(\"Order Completed\", myShoppingCart.printReceipt());\n //Update Inventory\n myShoppingCart.getProductsBought().forEach((product) -> {\n inventory.updateInventory(\"Customer\", product);\n });\n //Clear myShoppingCart\n myShoppingCart.clearCart();\n myShoppingCart.resetTotal();\n getTotalLabel().setText(\"Total: $\" + String.valueOf(myShoppingCart.getTotal()));\n inventory = new ProductInventory();\n topButton.setText(\"Shopping Cart\");\n //Update mainPanel\n mainPanel(\"Inventory\");\n }\n }\n }\n }", "public boolean checkOut(boolean showMessage) {\n\t\tif(null==cart){\n\t\t\tcart = new Cart();\n\t\t}\n\t\t\n\t\tint total = 0;\n\t\tboolean success = false;\n\t\tString stringOfItems = cart.toString();\n\t\tif (stringOfItems.isEmpty()) {\n\t\t\tif(showMessage)\n\t\t\t\tJOptionPane.showMessageDialog(Main.getFrame(), \"Your Cart is Empty\",\n\t\t\t\t\t\t\"Warning\", JOptionPane.WARNING_MESSAGE);\n\t\t} else {\n\t\t\ttotal = supermarket.checkout(stringOfItems);\n\t\t\tcart.clearCart();\n\t\t\tcartLabel.setText(cart.size()+ \" items in your cart\");\n\t\t\tsuccess = true;\n\t\t\tif(showMessage)\n\t\t\t\tJOptionPane.showMessageDialog(Main.getFrame(),\n\t\t\t\t\t\tString.format(\"<html>Items Purchased: %s<br><br>Your total is: $%s</html>\"\n\t\t\t\t\t\t\t\t,stringOfItems, total), \"Total\",\n\t\t\t\t\t\tJOptionPane.INFORMATION_MESSAGE);\n\t\t}\n\t\treturn success;\n\t}", "@Override\n\tpublic void seeSoldItem() {\n\t\tShip selectedShip = game.getSelectedShip();\n\t\tHashMap<Goods, ArrayList<String>> soldItems = selectedShip.getSoldItems();\n\t\tint index = 1;\n\t\tSystem.out.println(\"Items that has been sold: \");\n\t\tfor (HashMap.Entry<Goods, ArrayList<String>> set: soldItems.entrySet()) {\n\t\t\tString name = set.getKey().getName();\n\t\t\tint quantity = set.getKey().getQuantitySold();\n\t\t\tSystem.out.println(\"(\" + index + \") Name: \" + name + \" Quantity: \" + quantity + \" Loaction it was sold: \" + set.getValue());\n\t\t\tindex++;\n\t\t\n\t\t}\n\t\tSystem.out.println(\"\\n\");\n\t\tboolean state = false;\n\t\twhile (state == false) {\n\t\t\tSystem.out.println(\"Choose your actions: \");\n\t\t\tSystem.out.println(\"(1) Go back!\");\n\t\t\ttry {\n\t\t\t\tint selectedAction = scanner.nextInt();\n\t\t\t\tif (selectedAction == 1) {\n\t\t\t\t\t\n\t\t\t\t\tstate = true;\n\t\t\t\t\tgame.seeShipSpec();\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tSystem.out.println(\"Please choose from actions above\");\n\t\t\t\t}\n\t\t\t} catch (Exception e) {\n\t\t\t\tSystem.out.println(INPUT_REQUIREMENTS);\n\t\t\t\tscanner.nextLine();\n\t\t\t}\n\t\t}\n\t}", "@GetMapping(value = \"/viewcart\")\n public ResponseEntity<List<CartProduct>> viewCart(final HttpSession session) {\n log.info(session.getId() + \" : Retrieving the cart to view\");\n Map<String, CartProduct> initialCart = (Map<String, CartProduct>) session.getAttribute(CART_SESSION_CONSTANT);\n ControllerUtils.checkEmptyCart(initialCart, session.getId());\n List<CartProduct> result = new ArrayList();\n\n for (String key : initialCart.keySet()) {\n result.add(initialCart.get(key));\n }\n return ResponseEntity.status(HttpStatus.OK).body(result);\n }", "@Override\n public View getView(int position, View view, ViewGroup viewGroup) {\n\n View vi = view;\n final int pos = position;\n if (vi == null) {\n\n viewHolder = new ViewHolder();\n\n vi = layoutInflater.inflate(R.layout.cart_new, null);\n viewHolder.imageview = (ImageView) vi.findViewById(R.id.imageView);\n viewHolder.cropname = (TextView) vi.findViewById(R.id.cropname);\n viewHolder.cropPrice = (TextView) vi.findViewById(R.id.cropPrice);\n viewHolder.cropQuantity = (TextView) vi.findViewById(R.id.cropQuantity);\n\n vi.setTag(viewHolder);\n } else {\n\n viewHolder = (ViewHolder) vi.getTag();\n }\n viewHolder.cropname.setText(cartArrayList.get(pos).getName());\n viewHolder.cropQuantity.setText(\"Quantity : \" + cartArrayList.get(pos).getQuantity());\n viewHolder.cropPrice.setText(\"Price : \" + cartArrayList.get(pos).getPrice());\n if(cartArrayList.get(pos).getName().toLowerCase().compareTo(\"wheat\")==0)\n viewHolder.imageview.setImageResource(R.drawable.wheat);\n\n if(cartArrayList.get(pos).getName().toLowerCase().compareTo(\"dal\")==0)\n viewHolder.imageview.setImageResource(R.drawable.dal);\n\n if(cartArrayList.get(pos).getName().toLowerCase().compareTo(\"sugarcane\")==0)\n viewHolder.imageview.setImageResource(R.drawable.sugarcane);\n\n if(cartArrayList.get(pos).getName().toLowerCase().compareTo(\"rice\")==0)\n viewHolder.imageview.setImageResource(R.drawable.rice);\n\n if(cartArrayList.get(pos).getName().toLowerCase().compareTo(\"corn\")==0)\n viewHolder.imageview.setImageResource(R.drawable.corn);\n\n\n\n\n return vi;\n }", "public void printInventory(){\n\t\tint i;\n\t\tint listSize = inventory.size();\n\t\tRoll temp;\n\t\tString outputText;\n\t\toutputText = \"Inventory Stocks Per Roll: \";\n\t\t//outputText = inventory.get(0).getRoll().getType() + \" Roll Current stock: \" + inventory.get(0).getStock();\n\t\tfor(i = 0; i < listSize; i++){\n\t\t\tif(i % 3 == 0){\n\t\t\t\toutputText = outputText + \"\\n\";\n\t\t\t}\n\t\t\toutputText = outputText + inventory.get(i).getRoll().getType() + \" : \" + inventory.get(i).getStock() + \" \";\n\t\t}\n\t\tSystem.out.println(outputText);\n\t\tthis.status = outputText;\n\t\tsetChanged();\n notifyObservers();\n\t}", "public void showDetails (Player player) {\r\n\t\tString \tc\t= Term.COLOR_INACTIVE.get();\r\n\t\t\r\n\t\t// Get the color\r\n\t\tif (getActivity() == Activity.SELL\t\t&& isActive())\r\n\t\t\tc\t= Term.COLOR_SELL.get();\r\n\t\t\r\n\t\telse if (getActivity() == Activity.BUY\t\t&& isActive())\r\n\t\t\tc\t= Term.COLOR_BUY.get();\r\n\t\t\r\n\t\telse if (getActivity() == Activity.EXCHANGE\t&& isActive())\r\n\t\t\tc\t= Term.COLOR_EXCHANGE.get();\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\tList<String>\tmessage\t= new ArrayList<String>();\r\n\t\t\t\t\t\tmessage.add(Term.INFO_1.get() + c + getActivity().toString() \t+ Term.INFO_2.get() + c +scs.formatCurrency(getPrice())\t\t+ Term.INFO_9.get() + c + getOwner());\r\n\t\t\r\n\t\tString \ttext\t= null;\r\n\t\tString\tname\t= getItemName();\r\n\t\t\r\n\t\tif (!isUnlimited()) {\r\n\t\t\tif (getActivity() == Activity.BUY)\r\n\t\t\t\ttext = getAmount()+ \"/\" + getMaxAmount();\r\n\t\t\telse\r\n\t\t\t\ttext = \"\" + getAmount();\r\n\t\t} else {\r\n\t\t\ttext = Term.INFO_UNLIMITED.get();\r\n\t\t}\r\n\t\t\r\n\t\tif (getItemStack().getType() == Material.WRITTEN_BOOK)\r\n\t\t\tname = getNBTStorage().getBookTitle();\r\n\t\t\r\n\t\tmessage.add(Term.INFO_4.get() + c + name\t\t\t\t+ Term.INFO_3.get() + c + text);\r\n//\t\t\t\t\t\tmessage.add(Term.INFO_4.get() + c + getItemName()\t\t\t\t+ Term.INFO_3.get() + c + (!isUnlimited() ? (getActivity() == Activity.BUY ? getMaxAmount() : getAmount()) : Term.INFO_UNLIMITED.get()));\r\n\t\t\r\n\t\tStringBuffer\tbuffer \t= new StringBuffer();\r\n\t\tString\t\t\tdelim\t= \"\";\r\n\t\r\n\t\tfor (Enchantment en : getEnchantments().keySet()) {\r\n\t\t\tint lvl\t= getEnchantments().get(en);\r\n\t\t\t\r\n\t\t\tbuffer.append(delim + en.getName() + \" lvl \" + lvl);\r\n\t\t\tdelim\t= \", \";\r\n\t\t}\r\n\t\t\r\n\t\tif (buffer.toString().length() > 0)\r\n\t\t\tmessage.add(Term.INFO_8.get() + c + buffer.toString());\r\n\t\t\r\n\t\tif (player.hasPermission(Properties.permAdmin))\r\n\t\t\tmessage.add(c + getSHA1());\r\n\t\t\r\n\t\tMessaging.mlSend(player, message);\r\n\t}", "public void purchaseCart (View view) {\n Utility.showMyToast(\"Purchasing now!\", this);\n\n // Also send an Analytics hit\n sendPurchaseHit();\n }", "public void buyItem() {\n List<Gnome> cart = user.getCart();\n String message = \"\";\n List<Gnome> bought = shopFacade.buyGnomes(cart);\n if (!bought.isEmpty()) {\n message = bought.size() + \" items bought\";\n } else {\n message = \"Could not buy any items\";\n }\n userFacade.assignBought(user, bought);\n user.getCart().removeAll(bought);\n cart.removeAll(bought);\n userFacade.setCartToUser(user.getUsername(), cart);\n FacesMessage msg = new FacesMessage(FacesMessage.SEVERITY_INFO, \"Gnomes\", message);\n FacesContext.getCurrentInstance().addMessage(null, msg);\n }", "@Override\n\tpublic void sendCartRequest() {\n\t\ttry {\n\t\t\tString result=\"\";\n\t\t\tif (this.servType.equals(SERVICE_TYPE_SOAP)){\n\t\t\t\tresult = server.getClientCart(clientId);\n\t\t\t} else {\n\t\t\t\tWebResource getCartService = service.path(URI_GETCART).path(String.valueOf(clientId));\n\t\t\t\tresult = getCartService.accept(MediaType.TEXT_XML).get(String.class);\n\t\t\t}\n\t\t\n\t\t\tArrayList<ItemObject> cart = XMLParser.parseToListItemObject(result);\n\t\t\tgui.setupCart(cart);\n\t\t} catch (ParserConfigurationException | SAXException | IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t} catch (ClientHandlerException ex){\n\t\t\tex.printStackTrace();\n\t\t\tsetOKDialog(\"Error\", \"The RESTFul server is not responding!!\");\n\t\t} catch (WebServiceException ex){\n\t\t\tex.printStackTrace();\n\t\t\tsetOKDialog(\"Error\", \"The SOAP-RPC server is not responding!!\");\n\t\t}\n\t}", "public StringBuffer getSkuDetail() {\n List<CheckoutCommerceItemBean> commerceItems;\n productsInfo.append(\"\");\n if (null != reviewOrderBean) {\n if (null != reviewOrderBean.getComponent()) {\n if (null != reviewOrderBean.getComponent()\n .getPaymentDetails()) {\n if (null != reviewOrderBean.getComponent()\n .getPaymentDetails().getCommerceItems()) {\n commerceItems = reviewOrderBean.getComponent()\n .getPaymentDetails().getCommerceItems();\n for (int i = 0; i < commerceItems.size(); i++) {\n\n productsInfo.append(commerceItems.get(i)\n .getCatalogRefId());\n productsInfo.append(\";\");\n /* sku quantity\n productsInfo.append(commerceItems.get(i)\n .getQuantity());\n productsInfo.append(\";\");*/\n productsInfo.append(String.format(\n \"%.2f\", Double.valueOf(commerceItems.get(i)\n .getAmount())));\n if (i != commerceItems.size() - 1) //avoid adding \"|\" at last product\n productsInfo.append(\"|\");\n\n }\n\n\n }\n }\n }\n }\n return productsInfo;\n }", "void examineItems(){\n\t\t\tif (!this.items.isEmpty())\n\t\t\t\tfor (int i = 0; i < this.items.size(); i++)\n\t\t\t\t\tSystem.out.print(this.items.get(i).itemName + \", \");\n\t\t}", "public void showPurchase(Client c1) {\n\t\tfor(Book book: c1.getBuyBookList()) {\n\t\t\tSystem.out.println(\"Liste des livres acheté : \\nTitre : \" \n\t\t+ book.getTitle() + \"\\nAuteur : \" + book.getAuthor() + \"\\n\");\n\t\t}\n\t}", "public void addToCartStatus(boolean isAddToCart) {\n mProductDetailsViewModel.addToCartTxt.set(\n isAddToCart ? ApplicationManager.getInstance().getString(R.string.pdpAddGoCart)\n : ApplicationManager.getInstance().getString(R.string.pdpAddToCart));\n }", "protected void processRequest(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n response.setContentType(\"text/html;charset=UTF-8\");\n\n String url = \"/WEB-INF/jspCaddy.jsp\";\n HttpSession session = request.getSession();\n\n //section1\n //section2\n //section...\n if (\"fillCart\".equals(request.getParameter(\"section\"))) {\n if (request.getParameter(\"fillCart\") != null) {\n BeanCart monPanier = (BeanCart) session.getAttribute(\"cart\");\n if (monPanier == null) {\n monPanier = new BeanCart();\n //session.setAttribute(\"panier\", monPanier);\n session.setAttribute(\"cart\", monPanier);\n }\n //request.setAttribute(\"panierVide\", monPanier.isEmpty());\n request.setAttribute(\"cartEmpty\", monPanier.isEmpty());\n// request.setAttribute(\"liste\", monPanier.list());\n request.setAttribute(\"list\", monPanier.list());\n\n url = \"/WEB-INF/jspCaddy.jsp\";\n }\n }\n\n //mécanisme d'affichage du caddy\n if (\"DisplayCaddy\".equals(request.getParameter(\"section\"))) { \n BeanCart monPanier = (BeanCart) session.getAttribute(\"cart\");\n \n if (monPanier == null) {\n monPanier = new BeanCart();\n session.setAttribute(\"cart\", monPanier);\n }\n url = \"/WEB-INF/jspCaddy.jsp\";\n request.setAttribute(\"cartEmpty\", monPanier.isEmpty());\n request.setAttribute(\"list\", monPanier.list());\n }\n\n if (\"caddy\".equals(request.getParameter(\"section\"))) {\n BeanCart monPanier = (BeanCart) session.getAttribute(\"cart\");\n if (monPanier == null) {\n monPanier = new BeanCart();\n session.setAttribute(\"cart\", monPanier);\n }\n// A partir de la page résultat (miniatures) ou de la page zoom\n if (request.getParameter(\"add\") != null) {\n \n monPanier.create(monPanier.testReturnBookFromIsbn(request.getParameter(\"add\")));\n }\n if (request.getParameter(\"inc\") != null) {\n System.out.println(\"ISBN du livre à incrémenter \" + request.getParameter(\"inc\"));\n Book bk01 = monPanier.testReturnBookFromIsbn(request.getParameter(\"inc\"));\n System.out.println(\"Objet book à incrémenter : \" + bk01);\n monPanier.inc(bk01);\n }\n if (request.getParameter(\"dec\") != null) {\n monPanier.dec(monPanier.testReturnBookFromIsbn(request.getParameter(\"dec\")));\n }\n if (request.getParameter(\"del\") != null) {\n monPanier.del(monPanier.testReturnBookFromIsbn(request.getParameter(\"del\")));\n }\n if (request.getParameter(\"clean\") != null) {\n monPanier.clean();\n }\n request.setAttribute(\"cartEmpty\", monPanier.isEmpty());\n request.setAttribute(\"list\", monPanier.list());\n if (\"book\".equals(request.getParameter(\"src\"))) {\n url = \"/WEB-INF/jspBook.jsp\";\n }\n if (\"search\".equals(request.getParameter(\"src\"))) {\n url = \"/WEB-INF/jspSearchResult.jsp\";\n }\n \n }\n\n request.getRequestDispatcher(url).include(request, response);\n }", "public String showItemInfo()\n {\n return \"The room has 1 \" + currentItem.getDescription() \n + \" weighted \" + currentItem.getWeight() + \" pounds\"; \n }", "public void printItems()\n {\n if (getItems().size()==0){\n System.out.println(\"There are no items in this room.\");\n }\n else{\n System.out.print(\"The item(s) in this room are: \");\n int i=0;\n while(i<getItems().size()){\n if(i<getItems().size()-1){\n System.out.print(getItems().get(i).getName()+\", \");\n }\n else{\n System.out.println(getItems().get(i).getName()+\".\");\n }\n i++;\n }\n }\n }", "public void printCarte() {\r\n\r\n\t\tSystem.out.println(\"Welcome to Yoyo-Restaurant <3\");\r\n\t\tSystem.out.println(\"\");\r\n\t\tSystem.out.println(\"-<3----<3----<3----<3----<3----<3----<3----<3----<3----<3\");\r\n\t\tSystem.out.println(\"Our Menu \");\r\n\t\tfor (Menu menu : items) {\r\n\t\t\tmenu.print();\r\n\t\t}\r\n\r\n\t}", "public void inventory() {\n\t\tList<Item> items = super.getItems();\n\n\t\tString retStr = \"Items: \";\n\t\tItem item;\n\t\tfor (int i = 0; i < items.size(); i++) {\n\t\t\titem = items.get(i);\n\t\t\tretStr += item.toString();\n\t\t\tif (i != items.size()-1)\n \t{\n\t\t\t\tretStr += \", \";\n \t}\n\t\t}\n\t\tretStr += \"\\nCapacity: \" + this.currentCapacity() + \"/\" + this.maxCapacity;\n\t\tSystem.out.println(retStr);\n\t}", "@Override\n protected void populateViewHolder(CartListHolder viewHolder, CartListGetData model, final int position) {\n itemid.add(model.getItemid());\n itemname.add(model.getItemname());\n itemprice.add(model.getItemprice());\n itmeimage.add(model.getImageid());\n viewHolder.setTitleName(model.getItemname());\n viewHolder.setPrice(model.getItemprice());\n //viewHolder.setPrice(model.getPrice());\n viewHolder.setImage(getApplicationContext(), model.getImageid());\n total = total + Float.parseFloat(model.getItemprice());\n tax = (total/100)*10;\n taxtext.setText(tax+\"\");\n pricetext.setText(total+\"\");\n totalcarttext.setText(String.valueOf(tax+total));\n System.out.println(\"count : \"+count++);\n }", "@Override\r\n\tpublic String toString() {\r\n\t\tStringBuilder builder = new StringBuilder();\r\n\t\tIterator entriesIterator = getEntries();\r\n\r\n\t\twhile(entriesIterator.hasNext()) {\r\n\t\t\tItem item = getCurrentItem(entriesIterator);\r\n\t\t\tbuilder.append(item.getItemDescription().toString());\r\n\t\t\taddNewLine(builder, \" | Quantity: \" + item.getQuantity().toString());\r\n\t\t}\r\n\r\n\t\taddNewLine(builder, \"Total: \" + total.getTotalPrice().toString());\r\n\t\taddNewLine(builder, \"VAT: \" + total.getTotalVAT().toString());\r\n\t\treturn builder.toString();\r\n\t}", "public void print(){\r\n\t\tint ListLength = this.promo.size();\r\n\t\tSystem.out.println(\"Type: \"+this.Type);\r\n\t\tSystem.out.println(\"Name: \"+this.name);\r\n\t\tSystem.out.println(\"Description: \"+this.description);\r\n\t\tSystem.out.printf(\"$%.2f\\n\", this.price);\r\n\t\tSystem.out.println(\"Featured dishes:\");\r\n\t\tfor (int i =0; i<ListLength; i++){\r\n\t\t\tSystem.out.print(\"\\t\"+(i+1) + \". \");\r\n\t\t\tSystem.out.println(this.promo.get(i).getName()); //print name of ala-carte item in promo array\r\n\t\t}\r\n\t\tSystem.out.println();\r\n\t}", "public ArrayList<Product> getCartContents() throws IOException, ClassNotFoundException {\n try {\n String fileName=userid+\"cart.txt\";\n File file=new File(fileName);\n if(file.exists()) {\n FileInputStream fis = new FileInputStream(fileName);//fileName);\n ObjectInputStream ois = new ObjectInputStream(fis);\n this.cartContents = (ArrayList<Product>) ois.readObject();\n }\n return cartContents;\n }\n catch(EOFException e)\n {\n System.out.println(\"Cart is empty.\");\n }\n return null;\n }", "public String PrintInventoryList()\r\n {\r\n String inventoryInformation = \"\";\r\n\r\n System.out.println(\"Inventory: \");\r\n //You may print the inventory details here\r\n for (Product product: productArrayList) // foreach loop to iterate through the ArrayList\r\n {\r\n // TODO: check if this code is right\r\n inventoryInformation += product.getId() + \" \" + product.getName() + \" \" +\r\n product.getCost() + \" \" + product.getQuantity() + \" \" + product.getMargin() + \"\\n\";\r\n }\r\n System.out.println(inventoryInformation);\r\n return inventoryInformation;\r\n }", "private void displayQuantity() {\n Log.d(\"Method\", \"displayQuantity()\");\n TextView quantityTextView = (TextView) findViewById(\n R.id.quantity_text_view);\n\n quantityTextView.setText(String.format(Locale.getDefault(), \"%d\", coffeeCount));\n displayTotal();\n }", "public void addChildToShoppingCart() {\n System.out.println(this.offerTable.getSelectionModel().getSelectedItem());\n // TODO [assignment_final] pridani aktualniho vyberu do kosiku\n // - pri pridani prvku do kosiku aktualizuji hodnotu \"budgetu\" v UI\n }", "public String takeChestItem(String itemName) {\r\n\t\t\tif(this.getCurrentChest().getItem(itemName) == null) {\r\n\t\t\t\treturn \"There is no \" + itemName + \" in \" + this.getCurrentChest().getName() + \".\";\r\n\t\t\t} else if (this.getCurrentChest().getItem(itemName).isRemovable() == false) {\r\n\t\t\t\treturn \"You cannot take this item.\";\r\n\t\t\t} else if (this.getPlayer().getCarryCapacity() < this.getCurrentChest().getItem(itemName).getWeight()) {\r\n\t\t\t\treturn \"This item is to heavy, drop some items you don't want to carry.\";\r\n\t\t\t}\r\n\t\t\telse if(this.getCurrentChest().getItem(itemName).getClassName().equals(\"game.Purse\")) {\r\n\t\t\t\tint gold = ((Purse)this.getCurrentChest().getItem(itemName)).getGold();\r\n\t\t\t\tthis.getPlayer().changeGold(((Purse)this.getCurrentChest().getItem(itemName)).getGold());\r\n\t\t\t\tthis.getCurrentChest().removeItem(itemName);\r\n\t\t\t\treturn \"You gain \" + gold + \" gold.\";\r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\tthis.handleIncQuestrelatedItem(this.getCurrentChest().getItem(itemName));\r\n\t\t\t\tthis.getPlayer().addItem(this.getCurrentChest().getItem(itemName));\r\n\t\t\t\tthis.getCurrentChest().removeItem(itemName);\r\n\t\t\t\treturn \"You take \" + itemName + \". \\n\"\r\n\t\t\t\t\t\t+ \"You can carry \" + this.getPlayer().getCarryCapacity() + \" more units of weight. \\n\"\r\n\t\t\t\t\t\t+ this.getCurrentChest().getName() + \" now contains: \"\r\n\t\t\t\t\t\t+ this.getCurrentChest().getContent().keySet().toString() + \".\";\r\n\t\t\t}\r\n\t\t}", "@GetMapping(\"/basket\")\n public String getBasket(HttpServletRequest request, Model model) {\n Map<Product, Integer> productsInBasket = basketService.getProductsInBasket(request);\n model.addAttribute(\"items\", productsInBasket);\n try {\n Client clientForView = clientService.getClientForView();\n model.addAttribute(\"addresses\", clientForView.getAddressList());\n model.addAttribute(\"client\", clientForView);\n model.addAttribute(\"addressesSelf\", orderService.getAllShops());\n } catch (ClassCastException ex) {\n logger.info(\"Not authorized attempt to go to the basket page\");\n }\n logger.info(\"Go to basket page\");\n return \"basket\";\n }", "private void checkSold(JComponent parent) {\n if (itemSelected.isSold()) {\n auctionItemList.removeItem(itemSelected);\n userItemList.removeItem(itemSelected);\n playSound();\n JOptionPane.showMessageDialog(parent, \"Congratulations on your purchase!\");\n updateJList();\n scrollPane.setViewportView(list);\n updateLabels();\n } else {\n JOptionPane.showMessageDialog(parent, \"Bid placed on \" + itemSelected.getItemName() + \"!\");\n currentBidLabel.setText(\"Current bid: $\" + itemSelected.getCurrentBid());\n }\n }" ]
[ "0.7080046", "0.6750297", "0.6709283", "0.67003196", "0.6574346", "0.6311363", "0.62271756", "0.60972804", "0.6077901", "0.6057336", "0.6021558", "0.6003099", "0.5965802", "0.5965053", "0.5957854", "0.59544635", "0.5950497", "0.589679", "0.58022785", "0.5785825", "0.5781019", "0.57776743", "0.57617944", "0.569306", "0.5689517", "0.5665489", "0.5649116", "0.56485903", "0.56143254", "0.5601265", "0.55752116", "0.5560523", "0.55563223", "0.5537304", "0.5521116", "0.5462797", "0.5462665", "0.5458427", "0.5457233", "0.545231", "0.5443864", "0.5442691", "0.54008055", "0.5398084", "0.53941363", "0.5387684", "0.53788215", "0.53704745", "0.5366985", "0.53656685", "0.53612816", "0.53532064", "0.534975", "0.5348022", "0.5341961", "0.5335767", "0.53334594", "0.5324777", "0.53123826", "0.53095853", "0.53084844", "0.53053665", "0.52987343", "0.52981913", "0.5269929", "0.5269812", "0.52688736", "0.52628374", "0.52554834", "0.52531946", "0.5249262", "0.5236337", "0.5230029", "0.52215266", "0.5219062", "0.5218902", "0.5192675", "0.51921976", "0.5184829", "0.518035", "0.5177761", "0.51776135", "0.51770097", "0.5172209", "0.5170951", "0.51620525", "0.51553345", "0.51499766", "0.5149001", "0.5141577", "0.5139773", "0.5138692", "0.51315445", "0.51286364", "0.512825", "0.51072514", "0.5101848", "0.5100971", "0.50977856", "0.508864" ]
0.8252036
0
Removes perishable items from cart
public PerishableItem[] removePerishables() { // Check how many perishables items there are in total int perishableCount = 0; for (int i = 0; i < numItems; i++) { // Checks how many perishables in the cart (loose items) if (cart[i] instanceof PerishableItem) { perishableCount++; } } for (int i = 0; i < pBags.length; i++) { // Checks how many perishables in all the bags in the cart for (int j = 0; j < pBags[i].getNumItems(); j++) { if (pBags[i].getItems()[j] instanceof PerishableItem) perishableCount++; } } PerishableItem[] perishables = new PerishableItem[perishableCount]; perishableCount = 0; // Assign any perishable item to 'perishables' variable and remove them from cart/packed bags for (int i = 0; i < numItems; i++) { if (cart[i] instanceof PerishableItem) { // Checks each item if its an instance of PerishableItem perishables[perishableCount++] = (PerishableItem) cart[i]; // Adds it to the perishables variable removeItem(cart[i]); // Removes it from the cart i--; // Checks the same element (Since its different now based on the removeItem function) } } for (int i = 0; i < pBags.length; i++) { PerishableItem[] perishablesInBags = pBags[i].unpackPerishables(); // Unpacks perishables from pbags and stores them into a variable for (int j = 0; j < perishablesInBags.length; j++) { // Loops through each item in perishablesInBags perishables[perishableCount++] = perishablesInBags[j]; // Assigns each item to the perishables variable } } return perishables; // Return the perishables items that were removed }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void removeAllCartItems(Cart cart) {\n\t\t\t\r\n\t\t}", "void removeCartItem(int cartItemId);", "public void clearCart() {\n this.items.clear();\n }", "@Override\n public void removeMenu(Items item) {\n int index = getCartIndex(item);\n if (index >= 0) {\n Items cartItem = mCartAdapter.getmCartItemsList().get(index);\n cartItem.setItemQuantity(cartItem.getItemQuantity() - 1);\n if (cartItem.getItemQuantity() == 0) {\n mCartAdapter.getmCartItemsList().remove(index);\n }\n// else {\n// mCartAdapter.getmCartItemsList().set(index, cartItem);\n// }\n item.setItemQuantity(item.getItemQuantity() - 1);\n updateCartMenu();\n } else { // Duplicate item available in cart\n Toast.makeText(OrderOnlineActivity.this, getResources().getString(R.string.multiple_customisation_error), Toast.LENGTH_LONG).show();\n }\n }", "public void removeFromCart(final Item item) {\n for (Item f : cart) {\n if (f.getName().equals(item.getName())) {\n if (\n f.getQuantity() == item.getQuantity()) {\n cart.remove(f);\n return;\n }\n f.setQuantity(f.getQuantity() - item.getQuantity());\n return;\n }\n }\n }", "private static void removeItemFromCart() {\r\n\t\tString itemName = getValidItemNameInput(scanner);\r\n\t\tfor (Iterator<Map.Entry<Product, Integer>> it = cart.getCartProductsEntries().iterator(); it.hasNext();){\r\n\t\t Map.Entry<Product, Integer> item = it.next();\r\n\t\t if( item.getKey().getName().equals(itemName) ) {\r\n\t\t\t it.remove();\r\n\t\t }\r\n\t\t}\r\n\t\tSystem.out.println();\r\n\t\tSystem.out.println(\" Item removed from the cart successfully\");\r\n\t\tSystem.out.println();\r\n\t}", "private void deleteCartAll() {\n cartTable.getItems().removeAll(componentsCart);\n\n //Clear ComponentsCart List\n componentsCart.clear();\n updateTotal();\n }", "@Override\n\tpublic boolean deleteShopCartItem(int cart) {\n\t\treturn false;\n\t}", "public void userClicksRemoveItemsFromCartButton() {\n UtilityHelper.waitUntilClickable(UnavailableItems_Modal_Button);\n UtilityHelper.click(UnavailableItems_Modal_Button);\n UtilityHelper.waitUntilElementNotVisible(UnavailableItems_Modal);\n }", "@Test\r\n\tpublic void remove_items() {\r\n//Go to http://www.automationpractice.com\r\n//Mouse hover on product one\r\n//Click 'Add to Cart'\r\n//Click 'Continue shopping' button\r\n//Verify Cart has text '1 Product'\r\n//Mouse hover over 'Cart 1 product' button\r\n//Verify product listed\r\n//Now mouse hover on another product\r\n//click 'Add to cart' button\r\n//Click on Porceed to checkout\r\n//Mouse hover over 'Cart 2 product' button\r\n//Verify 2 product listed now\r\n//click 'X'button for first product\r\n//Verify 1 product deleted and other remain\r\n\r\n\t}", "public void removeItem(Carryable g) {\r\n for (int i=0; i<numItems; i++) {\r\n if (cart[i] == g) {\r\n cart[i] = cart[numItems - 1];\r\n numItems -= 1;\r\n return;\r\n }\r\n }\r\n }", "public void removeItem(Product p) throws IOException {\n for(Product l: this.cartContents)\n System.out.println(l.getProductName());\n this.cartContents.remove(p);\n this.saveCart();\n }", "public void removeItemCart(int code) {\n\t\tfor (ItemCart itemCart : listItemcart) {\n\t\t\tif (itemCart.getP().getId() == code) {\n\t\t\t\tlistItemcart.remove(itemCart);\n\t\t\t}\n\t\t}\n\t}", "private void removeAllWeightBasedProduct(Product product){\n total-= cartItems.get(product.name).cost();\n noOfItems--;\n cartItems.remove(product.name);\n }", "@Test(groups = \"suite2-2\", dependsOnMethods = \"addItemToCart\")\n\tpublic void removeItemFromCart() {\n\n\t\tdriver.get(CART_URL);\n\n\t\tWebElement itemInCartMessage = driver\n\t\t\t\t.findElement(By\n\t\t\t\t\t\t.xpath(\"/HTML/BODY/DIV[@id=\\\"content\\\"]/DIV[@id=\\\"primary\\\"]/DIV[@id=\\\"checkout\\\"]/DIV[@id=\\\"checkout-header\\\"]/H1\"));\n\n\t\tassertEquals(itemInCartMessage.getText().trim().substring(0, 1), \"1\",\n\t\t\t\t\"1 item expected in cart\");\n\n\t\tWebElement clearButton = driver\n\t\t\t\t.findElement(By\n\t\t\t\t\t\t.xpath(\"/HTML/BODY/DIV[@id=\\\"content\\\"]/DIV[@id=\\\"primary\\\"]/DIV[@id=\\\"checkout\\\"]/FORM[1]/H2/SPAN[2]/A\"));\n\n\t\tclearButton.click();\n\n\t\tWebDriverWait wait = new WebDriverWait(driver, 10);\n\n\t\ttry {\n\t\t\twait.until(ExpectedConditions.presenceOfElementLocated(By\n\t\t\t\t\t.xpath(\"/HTML/BODY/DIV[@id=\\\"content\\\"]/DIV[@id=\\\"primary\\\"]/DIV[@id=\\\"checkout\\\"]/DIV[@id=\\\"newempty\\\"]/DIV\")));\n\t\t} catch (NoSuchElementException e) {\n\t\t\tfail(\"Cart should be empty\");\n\t\t}\n\t}", "@Override\n public void removeCart(Items cartItem) {\n cartItem.setItemQuantity(cartItem.getItemQuantity() - 1);\n if (cartItem.getItemQuantity() == 0) {\n mCartAdapter.getmCartItemsList().remove(cartItem);\n }\n Items menuItem = cartItem.getItemOriginalReference();\n menuItem.setItemQuantity(menuItem.getItemQuantity() - 1);\n updateCartMenu();\n }", "public static void removePickUpFromCart(Cart cart) {\n\n cart.setPickup(null);\n try {\n cart.save();\n } catch (ParseException e) {\n Log.e(\"CartHelper\", \"CartHelper unable to save cart\", e);\n }\n\n\n }", "@Override\n\tpublic boolean deleteShopCart(int cart) {\n\t\treturn false;\n\t}", "@SuppressWarnings(\"unused\")\n\tpublic void removeFromShoppingCart(BarcodedItem item, int quantity) {\n\t\t\n\t\tBarcodedProduct prod = ProductDatabases.BARCODED_PRODUCT_DATABASE.get(item.getBarcode());\n\t\t\n\t\ttry {\n\t\t\t\n\t\t\tfor (int j = 0; j < SHOPPING_CART_ARRAY.length; j++) {\n\t\t\t\tif (prod.getDescription().equals(SHOPPING_CART_ARRAY[j][0]) && \n\t\t\t\t\t\tInteger.toString(quantity).equals(SHOPPING_CART_ARRAY[j][1])) {\n\t\t\t\t\tSHOPPING_CART_ARRAY[j][0] = null;\n\t\t\t\t\tSHOPPING_CART_ARRAY[j][1] = null;\n\t\t\t\t\ttotalNumOfItems = totalNumOfItems - quantity;\n\t\t\t\t\tdecreaseTotalPayment(item, quantity);\n\t\t\t\t\tBARCODE_ARRAY[j] = null;\n\t\t\t\t\tBARCODEDITEM_ARRAY[j] = null;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t} \n\t\t} catch (NullPointerException e) {\n\t\t\tthrow new SimulationException(e);\n\t\t}\n\n\n\t}", "public void removeItem() {\r\n\t\tlog.info(\"Remove item\");\r\n\t\tsu.waitElementClickableAndClick(LocatorType.Xpath, CartSplitViewField.Remove.getName());\r\n\t}", "public void removeAllVariantBasedProduct(Product product){\n /*\n Using for loop because we want to delete all the variants of that particular product\n */\n for(Variant variant : product.variants){\n String key = product.name + \" \" + variant.name;\n if(cartItems.containsKey(key)){\n total-= cartItems.get(key).cost();\n noOfItems--;\n cartItems.remove(key);\n }\n }\n }", "public void removePoItems(int pid) throws Exception {\n String query = \"SELECT * FROM PO WHERE id=?\";\n try (Connection con = this.ds.getConnection();\n PreparedStatement p = con.prepareStatement(query);\n PreparedStatement p2 = con.prepareStatement(\"DELETE FROM POItem WHERE id = ?\")) {\n p.setInt(1, pid);\n ResultSet r = p.executeQuery();\n if (!r.next()) throw new Exception(\"Purchase Order doesn't exist.\");\n p2.setInt(1, pid);\n p2.executeUpdate();\n }\n }", "public static void removeItem(int id){\n\t\tif(!userCart.containsKey(id)){\n\t\t\tSystem.out.println(CartMessage.INVALID_ID);\n\t\t}\n\t\telse{\n\t\t\tuserCart.remove(id);\n\t\t\tSystem.out.println(CartMessage.ITEM_REMOVED);\n\t\t}\n\t}", "public void Clearcartitems(){\r\n\t\tclass Local {};\r\n\t\tReporter.log(\"TestStepComponent\"+Local.class.getEnclosingMethod().getName());\r\n\t\tReporter.log(\"TestStepInput:-\"+\"NA\");\r\n\t\tReporter.log(\"TestStepOutput:-\"+\"NA\");\r\n\t\tReporter.log(\"TestStepExpectedResult:- Items in the cart should be removed\");\r\n\t\ttry{\r\n\t\t\tif(!getText(locator_split(\"lnkShoppingCart\")).equalsIgnoreCase(\"0\")){\r\n\t\t\t\t//sleep(4000);\r\n\t\t\t\t//waitforElementVisible(locator_split(\"lnkShoppingCart\"));\r\n\t\t\t\tclick(locator_split(\"lnkShoppingCart\"));\r\n\t\t\t\tList<WebElement> elements = listofelements(By.linkText(getValue(\"Trash\")));\r\n\t\t\t\tfor(int i=0; i<elements.size(); i++){\r\n\t\t\t\t\tsleep(1000);\r\n\t\t\t\t\tclick(By.linkText(getValue(\"Trash\")));;\r\n\t\t\t\t\twaitForPageToLoad(70);\r\n\r\n\t\t\t\t}\r\n\t\t\t\tSystem.out.println(\"Items are removed from cart\");\r\n\t\t\t\tReporter.log(\"PASS_MESSAGE:- Items in the cart are removed\");\r\n\t\t\t}else{\r\n\t\t\t\tSystem.out.println(\"No items are present in the cart\");\r\n\t\t\t\tReporter.log(\"PASS_MESSAGE:- No Items are present in the cart\");\r\n\t\t\t}\r\n\t\t}\r\n\t\tcatch(Exception e){\r\n\t\t\tReporter.log(\"FAIL_MESSAGE:- Items in the cart are not removed\");\r\n\t\t\tthrow new NoSuchElementException(\"The element with \"\r\n\t\t\t\t\t+ elementProperties.getProperty(\"lnkShoppingCart\").toString().replace(\"By.\", \" \")+\" \"\r\n\t\t\t\t\t+ elementProperties.getProperty(\"returnByValue()\").toString().replace(\"By.\", \" \")+\" \"\r\n\t\t\t\t\t+ \" not found\");\r\n\r\n\t\t}\r\n\t}", "Cart deleteFromCart(String code, Long quantity, String userId);", "public String removeItem() {\n userFacade.printUsersCart(user);\n System.out.println(\"Item to be removed....\" + selectedItem.getName());\n //user.getCart().remove(selectedItem);\n userFacade.removeFromCart(user, selectedItem);\n System.out.println(\"Item to be removed....\" + selectedItem.getName());\n userFacade.printUsersCart(user);\n return \"\";\n }", "private void EmptyCartButtonActionPerformed(java.awt.event.ActionEvent evt) {\n cartModel.removeAllElements(); // dmoore57\n // updates list on form to show that all items have been removed from list\n CartList.setModel(cartModel); // dmoore57\n }", "public void checkout() {\n\t\t// checkout and reset the quantity in global product list\n\t\tfor (CartProduct product : Admin.products) {\n\t\t\ttry {\n\t\t\t\tfor (CartProduct cartProduct : cart.getProducts()) {\n\t\t\t\t\tif (product.getDescription().equals(cartProduct.getDescription())) {\n\t\t\t\t\t\tif(product.getQuantity() >= 1) {\n\t\t\t\t\t\t\tproduct.setQuantity(product.getQuantity() - 1); \n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t} catch (Exception e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t\tcart.deleteCart();\n\t}", "@Override\r\n\tpublic void sellItem(AbstractItemAPI item) {\n\t\titems.remove(item);\r\n\t\t\r\n\t}", "public void removeAllItems ();", "public void unRegAll(){\n \t\t\n \t\tfor(ShopItem shopItem : itemList){\n \t\t\t//TODO: process more then one item at the same time.\n \t\t\t/*\n \t\t\tint position = shopItem.getShopPosition().getSlot();\n \t\t\tif(processedPositions.contains(position))\n \t\t\t\tcontinue;\n \t\t\tprocessedPositions.add(position);\n \t\t\tint amount = getItemAmount(position);\n \t\t\t*/\n \t\t\tint amount = 1;\n \t\t\tgetOwner().getClient().sendPacket(Type.U_SHOP, \"unreg\", 1, shopItem.getShopPosition().getSlot(), amount);\n \t\t\t\n \t\t\t//int[] freePosition = getOwner().getInventory().getFreeSlots(shopItem.getItem(), -1);\n \t\t\t//InventoryPosition inventoryPosition = new InventoryPosition(freePosition[1],freePosition[2],freePosition[0]);\n \t\t\t//InventoryItem inventoryItem = new InventoryItem(shopItem.getItem(),\tinventoryPosition);\n \t\t\t//getOwner().getInventory().addInventoryItem(inventoryItem);\n \t\t\tInventoryItem inventoryItem = getOwner().getInventory().storeItem(shopItem.getItem(), -1);\n \t\t\tgetOwner().getClient().sendPacket(Type.INVEN, inventoryItem, getOwner().getClient().getVersion());\n \t\t}\n \t\titemList.clear();\n \t}", "@Override\r\n\tpublic void deleteItem() {\n\t\taPList.remove();\r\n\t}", "private void removeProdutos() {\n Collection<IProduto> prods = this.controller.getProdutos();\n for(IProduto p : prods) System.out.println(\" -> \" + p.getCodigo() + \" \" + p.getNome());\n System.out.println(\"Insira o codigo do produto que pretende remover da lista de produtos?\");\n String codigo = Input.lerString();\n // Aqui devia se verificar se o produto existe mas nao sei fazer isso.\n this.controller.removeProdutoControl(codigo);\n }", "protected abstract void removeItem();", "@Test\n public void testRemoveItem() throws Exception {\n \n System.out.println(\"RemoveItem\");\n \n /*ShoppingCart instance = new ShoppingCart();\n Product p1 = new Product(\"Galletas\", 1.2);\n Product p2 = new Product(\"Raton\", 85.6);\n Product p3 = new Product(\"Teclado\", 5.5);\n Product p4 = new Product(\"Monitor 4K\", 550.6);\n \n instance.addItem(p1);\n instance.addItem(p2);\n instance.addItem(p3);\n instance.addItem(p4);\n \n try{\n \n instance.removeItem(p1);\n \n } catch(Exception e){\n \n fail(\"No existe\");\n \n }*/\n \n /*---------------------------------------------*/\n \n ShoppingCart instance = new ShoppingCart();\n Product p1 = new Product(\"Galletas\", 1.2);\n \n instance.addItem(p1);\n \n try{\n \n instance.removeItem(p1);\n \n } catch(Exception e){\n \n assertTrue(instance.isEmpty());\n \n }\n \n }", "ShoppingBasket removeProductItem(Long shoppingBasketId, Long productItemId);", "public void removeTopProductFromCart() {\n\t\tWebElement result=null;\n\t\tString xpath=buildXPathToRemove(1);\n\t\tresult = selenium.findElement(By.xpath(xpath));\n\t\tresult.click();\n\t}", "@Override\r\n\tpublic void deleteProductionOrderItems(List<ProductionOrderItem> pois) {\n\t\tproductionOrderItemDao.deleteProductionOrderItems(pois);\r\n\t}", "public void emptyCart() {\n cart.clear();\n total = 0;\n }", "public void emptyArrayList_DeletedItemsFromShoppingCard() {\n listOfDeletedItemNameShoppingCart.clear();\n System.out.println(\" Clear Deleted Items stored in Shopping Cart Array List: \" + listOfDeletedItemNameShoppingCart);\n }", "public void removeAllItem() {\n orderList.clear();\n }", "@Override\n public void removeFromCart(Publication book) {\n if(shoppingCart.contains(book)){\n shoppingCart.remove(book);\n } else throw new NoSuchPublicationException();\n }", "public void clear() {\r\n myShoppingCart = new HashMap<Item, BigDecimal>();\r\n }", "ResponseEntity<Cart> removeCartItem(CartFormData formData);", "public void remove(int index){\n if (myBasket.size() == 0)\n System.out.println(\"List is empty.\");\n int i = 0 ;\n boolean isFound = false;\n Product toRemove = null;\n for (Product product: myBasket.keySet())\n {\n i++;\n if (i == index && myBasket.get(product) > 0)\n {\n isFound = true;\n toRemove = product;\n break;\n\n }\n }\n if (!isFound)\n System.out.println(\"Sorry. Invalid index!\");\n\n // now , checking how many of this product is in the basket\n\n else if (myBasket.get(toRemove) > 1){\n System.out.println(\"How many of this product do you want to give back?\");\n Scanner scanner = new Scanner(System.in);\n int num = scanner.nextInt();\n if (num < myBasket.get(toRemove)) {\n totalCost -= toRemove.getPrice() * num;\n myBasket.replace(toRemove,myBasket.get(toRemove) - num);\n for (int j = 0 ; j < num ; j++)\n inventory.updateStock(toRemove , '+');\n }\n else {\n totalCost -= toRemove.getPrice() * myBasket.get(toRemove);\n myBasket.remove(toRemove);\n for (int j = 0 ; j < myBasket.get(toRemove) ; j++)\n inventory.updateStock(toRemove,'+');\n }\n System.out.println(\"Product removed.\");\n }\n\n // there is just one of this product in basket\n\n else {\n totalCost -= toRemove.getPrice();\n myBasket.remove(toRemove);\n System.out.println(\"Product removed.\");\n inventory.updateStock(toRemove , '+');\n }\n }", "public void removeEmptyItems(){\n\t\tfor(int i=0; i<currentOrder.getItems().size();i++){\n\t\t\tif(currentOrder.getItems().get(i).getQuantity()<=0){\n\t\t\t\tcurrentOrder.getItems().remove(i);\n\t\t\t\ti--;\n\t\t\t}\n\t\t}\n\t}", "public void deleteBasketItem(String sku) { \n Iterator<BasketItem> iter = basketItems.iterator();\n \n while(iter.hasNext()) {\n BasketItem basketItem = (BasketItem) iter.next();\n if(basketItem.getVariant().getSku().equals(sku)) {\n iter.remove();\n }\n }\n }", "public void removeProduct(Product item) {\n inventory.remove(item);\n }", "public void deleteCarts() {\n SQLiteDatabase db = this.getWritableDatabase();\n // Delete All Rows\n db.delete(TABLE_CART, null, null);\n db.close();\n\n Log.d(TAG, \"Deleted all cart info from sqlite\");\n }", "public void testNormalRemoveItem()\r\n throws Exception\r\n {\r\n try\r\n {\r\n SCOMapTests.checkRemove(pmf,\r\n HashMap1.class,\r\n ContainerItem.class);\r\n }\r\n finally\r\n {\r\n clean(HashMap1.class);\r\n clean(ContainerItem.class);\r\n }\r\n }", "@Override\n\tpublic void removeItem(Session session){\n\t\ttry{\n\t\t\tSystem.out.print(\"*--------------Remove Items here--------------*\\n\");\n\t\t\t//scanner class allows the admin to enter his/her input\n\t\t\tScanner scanner = new Scanner(System.in);\n\t\t\t//read input item id\n\t\t\tSystem.out.print(\"Enter Item Id to delete the item: \");\n\t\t\tint itemId = scanner.nextInt();\n\n\t\t\t//pass these input items to client controller\n\t\t\tsamp=mvc.removeItem(session,itemId);\n\t\t\tSystem.out.println(samp);\n\t\t}\n\t\tcatch(Exception e){\n\t\t\tSystem.out.println(\"Online Market App- Remove Items Exception: \" +e.getMessage());\n\t\t}\n\t}", "public void removeCart(int userId) {\n try {\n int cartId = InputUtil.getInt(\"Enter cart Id : \");\n Cart cart = cartService.getCart(cartId);\n cartService.checkUserCart(cart,userId);\n cartService.removeCart(cartId);\n System.out.println(Constants.DECOR+\"CART REMOVED : \"+String.valueOf(cartId)+Constants.DECOR_END);\n } catch (CartException ex) {\n System.out.println(ex);\n } \n }", "private void removeItem(int item) {\n\t\tboolean flag = false;\r\n\t\tfor(int i=0; i<index; i++) {\r\n\t\t\tif(products[i].getTag() == item) {\r\n\t\t\t\t\r\n\t\t\t\tSystem.out.println(\"없어진 상품:\"+products[i].toString());\r\n\t\t\t\tproducts[i] = null;\r\n\t\t\t\tindex--;\r\n\t\t\t\tflag = true;\r\n\t\t\t}\r\n\t\t}\r\n\t\tif(flag == false)\r\n\t\t\tSystem.out.println(\"해당하는 상품이 없습니다.\");\r\n\t}", "public static void removeProduct(Scanner input) {\n\n\t\tif (basket.isEmpty()) {\n\t\t\tSystem.out.println(\"No products in you basket yet.\");\n\t\t\treturn;\n\t\t} else {\n\n\t\t\tSystem.out.println(\"In your basket you have:\");\n\n\t\t\tshowBasket();\n\n\t\t\tSystem.out.println(\"Enter the ID of the product you don't want.\");\n\n\t\t\tint productId = productValidation(input, basket);\n\n\t\t\tint productQuantity = 0;\n\n\t\t\tif (basket.get(productId).getQuantity() > 1) {\n\n\t\t\t\tSystem.out.printf(\"You have more than one %s.%n\", basket.get(productId).getName());\n\t\t\t\tSystem.out.println(\"Press 1 to remove all or 2 to remove some.\");\n\n\t\t\t\tif (TwoOptiosValidation.check(input) == 1) {\n\t\t\t\t\tbasket.remove(productId);\n\t\t\t\t} else {\n\t\t\t\t\tSystem.out.println(\"How many would you like to remove?\");\n\t\t\t\t\tproductQuantity = quantityValidation(input, productId, basket);\n\t\t\t\t\tif (productQuantity == basket.get(productId).getQuantity()) {\n\t\t\t\t\t\tbasket.remove(productId);\n\t\t\t\t\t} else {\n\t\t\t\t\t\tbasket.get(productId).setQuantity(basket.get(productId).getQuantity() - productQuantity);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tbasket.remove(productId);\n\t\t\t}\n\n\t\t\tProductsList.cancelOrder(productId, productQuantity);\n\n\t\t\tSystem.out.println(\"Done\");\n\n\t\t}\n\n\t\tSystem.out.println();\n\n\t}", "public void removeOrder(){\n foods.clear();\n price = 0;\n }", "private void removeEnchantRecipe() {\n Iterator<Recipe> it = Bukkit.recipeIterator();\n\n while (it.hasNext()) {\n Recipe res = it.next();\n\n if (res.getResult().getType() == ENCHANT_TABLE.getType()) {\n it.remove();\n }\n }\n }", "@Override\n\tpublic void delete(Iterable<? extends Basket> arg0) {\n\t\t\n\t}", "public void removeTotalItem(String item) {\n\n String toDelete = KEY_EXERCISE + \"=?\";\n String[] deleteArguments = new String[] {item};\n db.delete(DATABASE_TABLE_TOTAL, toDelete, deleteArguments);\n }", "private void removeProduct() {\n\t\tif (!CartController.getInstance().isCartEmpty()) {\n\t\t\tSystem.out.println(\"Enter Product Id - \");\n\t\t\tint productId = getValidInteger(\"Enter Product Id - \");\n\t\t\twhile (!CartController.getInstance().isProductPresentInCart(\n\t\t\t\t\tproductId)) {\n\t\t\t\tSystem.out.println(\"Enter Valid Product Id - \");\n\t\t\t\tproductId = getValidInteger(\"Enter Product Id - \");\n\t\t\t}\n\t\t\tCartController.getInstance().removeProductFromCart(productId);\n\t\t} else {\n\t\t\tDisplayOutput.getInstance().displayOutput(\n\t\t\t\t\t\"\\n-----Cart Is Empty----\\n\");\n\t\t}\n\t}", "public void clearItems(){\n items.clear();\n }", "void removeProduct(Product product);", "public void popItems() {\n\t\t\n\t\tItemList.add(HPup);\n\t\tItemList.add(SHPup);\n\t\tItemList.add(DMGup);\n\t\tItemList.add(SDMGup);\n\t\tItemList.add(EVup);\n\t\tItemList.add(SEVup);\n\t\t\n\t\trandomDrops.add(HPup);\n\t\trandomDrops.add(SHPup);\n\t\trandomDrops.add(DMGup);\n\t\trandomDrops.add(SDMGup);\n\t\trandomDrops.add(EVup);\n\t\trandomDrops.add(SEVup);\n\t\t\n\t\tcombatDrops.add(SHPup);\n\t\tcombatDrops.add(SDMGup);\n\t\tcombatDrops.add(SEVup);\n\t}", "public void setArrayListOfItemsToBeDeletedViaNotificationModal() {\n List<WebElement> itemsToBeRemoved = UnavailableItems_Modal.findElements(By.xpath(\".//*[@class='mjr-product-name']\"));\n for (WebElement item : itemsToBeRemoved) {\n listOfDeletedItemNameShoppingCart.add(UtilityHelper.elementGetText(item));\n }\n }", "public void removeGroceryItem(String item){\n int position = findItem(item);\n if(position > 0)\n myGrocery.remove(position);\n }", "public void clearItems(){\n\t\tinnerItemShippingStatusList.clear();\n\t}", "private void suppressionCartes () {\r\n\t\tfor (int i = 0; i < 5; i++) {\r\n\t\t\tcartes.put(i, new JVide(carte_lg, carte_ht));\r\n\t\t}\r\n\t\tthis.formerTable();\r\n\t}", "void removePizza(Pizza p) {\n pizzas.remove(p);\n }", "public void deleteallCart() {\n db = helper.getWritableDatabase();\n db.execSQL(\"delete from \" + DatabaseConstant.TABLE_NAME_CART);\n db.close();\n }", "@Test\n void deletePermanentlyTest() {\n Product product = new Product(\"Apple\", 10, 4);\n shoppingCart.addProducts(product.getName(), product.getPrice(), product.getQuantity());\n //when deletes four apples\n boolean result = shoppingCart.deleteProducts(product.getName(), 4);\n //then basket does not contain any apple\n int appleNb = shoppingCart.getQuantityOfProduct(\"Apple\");\n assertTrue(result);\n assertEquals(0, appleNb);\n }", "public void removeAllItems() {\n mPapers.clear();\n notifyDataSetChanged();\n }", "private void remove(GroceryItem itemObj, String itemName, double itemPrice) {\n\t\tif (!bag.remove(itemObj)) {\n\t\t\tSystem.out.println(\"Unable to remove, this item is not in the bag.\");\n\t\t} else {\n\t\t\tSystem.out.println(itemName + \" \" + itemPrice + \" removed.\");\n\t\t}\n\t}", "@RequestMapping(method=RequestMethod.DELETE, value = \"/item\", produces = \"application/json\")\n public void clearItems()\n {\n this.itemRepository.clearItems();\n }", "public void RemoveproductCartSaucedemo() {\n\t\t\t\t\tdriver.findElement(RemoveProduct).click();\n\t\t\n\t\t\t\t}", "@Override\r\n public void uncall() {\r\n Player player = MbPets.getInstance().getServer().getPlayer(getOwner());\r\n if (player != null) {\r\n if (getEntity().getInventory().getDecor() != null) {\r\n if (player.getInventory().firstEmpty() >= 0) {\r\n player.getInventory().addItem(getEntity().getInventory().getDecor());\r\n } else {\r\n player.getWorld().dropItemNaturally(player.getLocation(),\r\n getEntity().getInventory().getDecor());\r\n }\r\n }\r\n }\r\n super.uncall();\r\n }", "public void deleteAllItineraryItems() {\n\t\tmEditor.clear();\n\t\tmEditor.commit();\n\t}", "void removeList(ShoppingList _ShoppingList);", "public void removeItem(Item item) {\r\n for (Iterator<Item> it = inventoryItems.iterator(); it.hasNext(); ) {\r\n Item i = it.next();\r\n if (i.getId() == item.getId()) {\r\n i.setCount(i.getCount() - 1);\r\n }\r\n if (i.getCount() <= 0) {\r\n it.remove();\r\n }\r\n }\r\n }", "public static void emptyCart() {\n click(SHOPPING_CART_UPPER_MENU);\n click(REMOVE_FROM_CART_BUTTON);\n Browser.driver.navigate().refresh();\n }", "public void deletePromo() {\n\t\tviewPromoPackage();\n\t\t\n\t\tScanner dlSC = new Scanner(System.in);\n\t\tpp.clear();\n\t\t\n\t\tboolean checkRemove = true;\n\t\tboolean isRunning = true;\n\t\t\n\t\twhile (isRunning) {\n\t\t\tdo \n\t\t\t{\n\t\t\t\ttry {\n\t\t\t\t\t// Get data contents from saved file\n\t\t\t\t\tFileInputStream fis = new FileInputStream(\"promoData\");\n\t\t ObjectInputStream ois = new ObjectInputStream(fis);\n\t\t \n\t\t pp = (ArrayList<PromotionalPackage>) ois.readObject();\n\t\t \n\t\t ois.close();\n\t\t fis.close();\n\t\t \n\t\t System.out.println(\"Promotional Package to Delete (-1 to Complete):\");\n\t\t \t\tString promoPackID = dlSC.next();\n\t\t \n\t\t checkRemove = pp.removeIf(menuItem -> menuItem.getPackageID().equals(promoPackID.toUpperCase()));\n\t\t \n\t\t if (promoPackID.equals(\"-1\")) {\n\t\t\t\t\t\tisRunning = false;\n\t\t\t\t\t\tbreak;\n\t\t }\n\t\t \n\t\t if (checkRemove) {\n\t\t \ttry {\n\t\t \tFileOutputStream fos = new FileOutputStream(\"promoData\");\n\t\t \t\t\t\tObjectOutputStream oos = new ObjectOutputStream(fos);\n\t\t \t\t\t\toos.writeObject(pp);\n\t\t \t\t\t\toos.close();\n\t\t \t\t\t\tfos.close();\n\t\t }\n\t\t catch (IOException e) {\n\t\t \t\t\tSystem.out.println(\"Failed to delete promotion!\");\n\t\t \t\t\treturn;\n\t\t \t\t}\n\t\t \tbreak;\n\t\t }\n\t\t \n\t\t checkRemove = false;\n\t\t System.out.println(\"Promo Package not found. Please try again!\");\n\t\t\t\t} \n\t\t\t\tcatch (IOException e) {\n\t\t\t\t\tSystem.out.println(\"No promotions to delete!\");\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\tcatch (ClassNotFoundException c) {\n\t\t\t\t\tc.printStackTrace();\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t}\n\t\t\twhile (!checkRemove);\n\t\t}\n\t\t\n\t}", "public void removePowerUp(List<CardPower> cost)\n {\n cardPower.removeAll(cost);\n }", "public void dropItems() {\n\t\tlocation.getChunk().load();\n\t\tArrays.stream(inventory.getContents())\n\t\t\t.filter(ItemStackUtils::isValid)\n\t\t\t.forEach((item) -> location.getWorld().dropItemNaturally(location, item));\n\t\tinventory.clear();\n\t}", "public void removeItem(Item theItem) {\n\t\tinventory.remove(theItem);\t\n\t}", "@Test\r\n\tpublic void test_9and10_DeleteItemFromWishList() throws Exception {\n\t\tdriver.findElement(By.name(\"submit.deleteItem\")).click();\r\n\t\tThread.sleep(3000);\r\n\t\t\r\n\t\t// check whether the item exists on g-items removed class\r\n\t\tboolean itemExists = false;\r\n\t\t\r\n\t\t// create an array of product titles under g-item-sortable removed\r\n\t\t// get the product title in this list and compare it with selected item\r\n\t\tList<WebElement> productTitles = driver.findElements(By.xpath(\"//div[@id='g-items']//div[@class = 'a-section a-spacing-none g-item-sortable g-item-sortable-removed']/div/div[1]\"));\r\n\t\tfor(WebElement productTitle : productTitles) {\r\n\t\t\t// compare selected item and any item in wish list\r\n\t\t\t// try to find selected item in the list of removed items\r\n\t\t\tString listedItem = productTitle.getText();\r\n\t\t\tif (listedItem.equals(selectedItem)) {\r\n\t\t\t\titemExists = true;\r\n\t\t\t\tSystem.out.println(selectedItem + \" is deleted from wish list\");\r\n\t\t\t\tAssert.assertTrue(itemExists);\t\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public void remove(Item item) {\r\n \t\tfor (ShoppingList list : shoppingLists)\r\n \t\t\tremoveItemFromList(item, list);\r\n \t\tpersistenceManager.remove(item);\r\n \r\n \t}", "private void autoship(World world, EntityPlayer player, List<ItemStack> list) {\n Iterator<ItemStack> it = list.iterator();\n while (it.hasNext()) {\n ItemStack stack = it.next();\n if (BlockStorage.hasShippedItem(world, player, stack)) {\n it.remove();\n }\n }\n }", "public void removeItem(int id);", "public void validate_remainingItem_ShoppingCart() {\n System.out.println(\"List of remaining items ===>> \" + listOfShoppingCardItem);\n System.out.println(\"List of Deleted items =====>> \" + listOfDeletedItemNameShoppingCart);\n Assert.assertTrue(!(listOfShoppingCardItem.containsAll(listOfDeletedItemNameShoppingCart)));\n }", "public final void consume(Player player, Collection<ItemStack> items)\n\t{\n\t\tInventoryHelper.remove(player, items);\n\t}", "public void clearCart(String username) {\n SQLiteDatabase db = dButils.getWritableDatabase();\n db.execSQL(\"delete from \" + Cart.TABLE + \" where \" + Cart.KEY_username + \" =\" + username);\n }", "public void Remove_button() {\n\t\tProduct product = (Product) lsvProduct.getSelectionModel().getSelectedItem();\n\t\tif (product!=null) {\n\t\t\tint ind = lsvProduct.getSelectionModel().getSelectedIndex();\n\t\t\tcart.removeProduct(product);\n\t\t\tcart.removePrice(ind);\n\t\t\tcart.removeUnit(ind);\n\t\t}\n\t\tthis.defaultSetup();\n\t}", "@Override\n public void onBindViewHolder(final ShoppingCartViewHolder holder, final int position) {\n final CartObject item = cartList.get(position);\n holder.mName.setText(item.getmName());\n holder.mPrice.setText(\"$\" + item.getmPrice());\n holder.mQuantity.setText(String.valueOf(item.getmQuantity()));\n holder.mPlantImage.setImageResource(item.getmImage());\n\n // Log.d(KEY, cartList.size()+ \"this is the size of the cartlist upon being bound to the shopping cart\");\n\n // total += helper.getQuantityFromTable(item) * item.getmPrice();\n// holder.mRemove.setOnClickListener(new View.OnClickListener() {\n// @Override\n// public void onClick(View view) {\n// //this should remove from recyclerview and table\n// removeByPosition(holder.getAdapterPosition());\n//\n// // Log.d(KEY, \"removeItemByPosition removed item from recyclerview from sc adapter\");\n// Toast.makeText(mContext, \"Adios, \" + item.getmName() + \"!\", Toast.LENGTH_SHORT).show();\n// }\n// });\n holder.mIncrement.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View view) {\n // total += helper.getQuantityFromTable(item) * item.getmPrice();\n helper.increaseQty(item);\n holder.mQuantity.setText(String.valueOf(String.valueOf(helper.getQuantityFromTable(item))));\n holder.mPrice.setText(\"$\" + getNewPrice(item, holder));\n// holder.mTotal.setText(\"$\"+total);\n\n }\n });\n holder.mDecrement.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View view) {\n\n helper.decreaseQty(item);\n holder.mQuantity.setText(String.valueOf(helper.getQuantityFromTable(item)));\n holder.mPrice.setText(\"$\" + getNewPrice(item, holder));\n// holder.mTotal.setText(\"$\"+total);\n // total = total + holder.mPrice.getText();\n\n //this is a dialog for when the qty gets to 0 so that it's not just an empty activity\n if (cartList.size()==0){\n AlertDialog.Builder builder = new AlertDialog.Builder(mContext);\n builder.setPositiveButton(\"ok\", null)\n .setTitle(R.string.empty_cart_dialog_title)\n .setMessage(\"Your cart is now empty. Add some plants?\");\n final AlertDialog dialog = builder.create();\n dialog.show();\n dialog.getButton(DialogInterface.BUTTON_POSITIVE).setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View view) {\n if(mContext instanceof ShoppingCartActivity ){\n ((ShoppingCartActivity)mContext).finish();\n }\n\n }\n });\n }\n\n }\n });\n\n }", "@DeleteMapping(value = { \"\", \"/cart/delete/all\" })\n\tpublic @NotNull ShoppingCartDto clearAllCartItems() {\n\t\tLOGGER.info(\"ShoppingCartRestController.clearAllCartItems() invocation started\");\n\t\treturn theShoppingCartService.emptyCart();\n\t}", "public void removeProductFromWishlist(ProductItem product, User user) {\n this.removeProductFromWishlist(product, this.getWishlistByUser(user));\r\n }", "public void removeFromCart(String user, int code){\n NodoAvl tmp = searchNode(user);\n tmp.carrito.deleteNode(code);\n }", "public void hapusItem(Item objItem) {\n arrItem.remove(objItem); //buang item\n }", "public void depositeAll(Player player) {\n\t\tInventory inventory = player.inventory;\n\t\tif (inventory.isEmpty()) {\n\t\t\tplayer.message(\"There is nothing in your inventory to deposit!\");\n\t\t\treturn;\n\t\t}\n\t\tfor (int index = 0; index < inventory.size(); index++) {\n\t\t\tItem item = inventory.get(index);\n\n\t\t\tif (item == null || !item.isTradeable()) {\n\t\t\t\tcontinue;\n\t\t\t}\n\n\t\t\tthis.item_containers.get(player).add(item);\n\t\t\tinventory.remove(item, index, false);\n\t\t}\n\t\tinventory.refresh();\n\t\tupdateOfferComponents();\n\t}", "public boolean deletePlayerItem(PlayerItem playerItem);", "@Override\n public void deleteItem(P_CK t) {\n \n }", "public void clearPurchaseList()\r\n\t{\r\n\t\tm_purechaseList.clear();\r\n\t}", "public static void removePromotion(Cart cart, Promotion promotion) throws Exception {\n\n for (ProductPriceRow row : cart.productPrice) {\n row.setPriceAfterDiscount(row.getProduct().getPrice());\n row.setVendorPayment(row.getProduct().getPrice());\n }\n cart.promotions.remove(promotion);\n calculateTotal(cart);\n cart.save();\n\n }" ]
[ "0.7322364", "0.70135254", "0.6890343", "0.6780111", "0.6772657", "0.6769626", "0.6537365", "0.65097624", "0.64368385", "0.6433085", "0.63897395", "0.63328", "0.6294323", "0.6290974", "0.62772775", "0.62637895", "0.6251414", "0.61742514", "0.6120424", "0.61084175", "0.6079321", "0.6056733", "0.60207206", "0.60099894", "0.6008901", "0.60052603", "0.59446496", "0.59252423", "0.5909993", "0.5905682", "0.58621186", "0.585565", "0.584382", "0.5835566", "0.58247894", "0.57905", "0.5789388", "0.5785793", "0.57820225", "0.5770767", "0.57522184", "0.57471377", "0.57452106", "0.5735861", "0.5727376", "0.57190967", "0.5708743", "0.5706563", "0.56928307", "0.56901926", "0.5677749", "0.5674625", "0.5672677", "0.56695604", "0.5663229", "0.5652275", "0.5644496", "0.5643878", "0.5642135", "0.56403303", "0.5630383", "0.5620619", "0.56169605", "0.56082165", "0.5606582", "0.5605798", "0.559892", "0.5588752", "0.5585356", "0.55839694", "0.55831295", "0.5581806", "0.5581243", "0.55761975", "0.55743784", "0.5573844", "0.5571925", "0.5571816", "0.5570484", "0.5569125", "0.5560029", "0.5532907", "0.5525858", "0.55240047", "0.5522061", "0.5513163", "0.55121493", "0.550712", "0.55055034", "0.5502674", "0.5486998", "0.54702276", "0.5461297", "0.5459225", "0.5455282", "0.54519856", "0.5450696", "0.5447518", "0.54462355", "0.54205114" ]
0.73003685
1
Spring Data repository for the Municipio entity.
@SuppressWarnings("unused") @Repository public interface MunicipioRepository extends JpaRepository<Municipio, Long> { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Repository\npublic interface IProvinceRepository extends JpaRepository <ProvinceEntity, Integer> {\n\n /**\n *\n * <p>Return the provinces searches by country and ordened by name.\n *\n * @return Return the province list.\n * */\n List<ProvinceEntity> findAllByCountry (CountryEntity country);\n\n ProvinceEntity findByName (String name);\n}", "@Repository\npublic interface DistrictCountryRepository extends JpaRepository<DistrictCountry, String> {\n}", "public interface UniversidadRepository extends CrudRepository<Universidad,String> {\n\n List<Universidad> findAll();\n\n}", "@Repository\npublic interface ICountryRepository extends JpaRepository<Country, String> {\n\n Country findByCode(String code);\n}", "@Repository\npublic interface ContinentRepository extends CrudRepository<Continent, Long> {\n public Continent findByContinentNameThai(String continentNameThai);\n public Continent findByContinentNameEnglish(String continentNameEnglish);\n\n}", "@Repository\npublic interface CityRepository extends JpaRepository<City, Long> {\n}", "public interface CidadeRepository extends JpaRepository<Cidade, Long> {\n\t\n\tList<Cidade> findByEstadoCodigo(Long estadoCodigo);\n}", "@Repository\npublic interface UsuarioRepository extends JpaRepository<EUsuario, Long> {\n\t\n\t/**\n\t * Buscar por ID\n\t * \n\t * @param usuarioId\n\t * @return EUsuario\n\t */\n\tpublic EUsuario findById(long usuarioId);\n\t\n\t/**\n\t * Buscar por nome ou parcial\n\t * \n\t * @param nome\n\t * @return List<EUsuario>\n\t */\n\tpublic List<EUsuario> findByNome(String nome);\n\t\n\t/**\n\t * Buscar por login\n\t * \n\t * @param login\n\t * @return EUsuario\n\t */\n\tpublic EUsuario findByLogin(String login);\n\t\n\t/**\n\t * Buscar por Cargo\n\t * \n\t * @param cargo\n\t * @return List<EUsuario>\n\t */\n\tpublic List<EUsuario> findByCargo(String cargo);\n\t\n\t/**\n\t * Buscar por Nivel de Acesso\n\t * \n\t * @param nivelAcesso\n\t * @return List<EUsuario>\n\t */\n\tpublic List<EUsuario> findByNivelAcesso(int nivelAcesso);\n\t\n\t/**\n\t * Executa query no banco\n\t * \n\t * @param query\n\t * @return List<EUsuario>\n\t */\n\t@Query(\"SELECT u FROM EUsuario u WHERE u.nome LIKE :query\")\n\tpublic List<EUsuario> findByQuery(@Param(\"query\") String query);\n\t\n}", "@Repository\npublic interface UsuariosPerfilRepository extends JpaRepository<UsuarioPerfil, Integer> {\n\n\tUsuario findByUsername(String username);\t\n\n}", "public interface CategoriaMaterialData extends JpaRepository<CategoriaMaterial, Integer> {\n List<CategoriaMaterial> findByNomeContaining(String nome);\n}", "@Repository\npublic interface DistrictRepository extends JpaRepository<District, Long> {}", "public interface CityRepository extends JpaRepository<CityEntity, Long>{\n}", "public interface MedicamentRepository extends JpaRepository< Medicament, Long > {\n\n List< Medicament > findByName( String name );\n\n}", "public interface ProvinceRepository extends MongoRepository<Province, String> {\n\n}", "public interface CountryRepository extends CrudRepository<Country, Integer> {\r\n\r\n}", "@Repository\npublic interface RespostaRepository extends CrudRepository<Resposta, Long> {}", "@Repository\npublic interface CountryDAO extends JpaRepository<Country, Integer> {\n\n /**\n * This method is used to get all countries.\n *\n * @return List\n * @see Country\n */\n @Query(\"select c from Country c order by c.name\")\n List<Country> getAllCountries();\n\n}", "@Repository\npublic interface ClienteRepository extends JpaRepository<Cliente, String>{\n\n}", "@Component\r\npublic interface CategoriiRepository extends JpaRepository<Categorie, Long> {\r\n Categorie findByNume(String categorie);\r\n}", "public interface IRespuestaInformeRepository extends JpaRepository<RespuestaInforme, RespuestaInformeId> {\n \n /**\n * Recupera las respuestas de un informe dado.\n * \n * @param informe seleccionado\n * @return lista de respuestas\n */\n List<RespuestaInforme> findByInforme(Informe informe);\n \n}", "public interface MediaTypeRepository extends JpaRepository<MediaType, Long> {\n}", "public interface UrnaRepository extends JpaRepository<Urna, Long>{\r\n Urna findByCandidato(String id);\r\n Urna findByEleitor(String id);\r\n \r\n}", "@Repository\npublic interface PersonaRepository extends JpaRepository<Persona, Integer> {\n \n}", "@Repository\npublic interface ProdutoRepository extends JpaRepository<Produto, Integer>{\n \t\n}", "public interface AdUnitDistrictRepository extends JpaRepository<AdUnitDistrict, Long> {\n\n \n}", "@Repository\npublic interface LocationRepository extends JpaRepository<Location, Long> {\n}", "public interface LabelRepository extends JpaRepository<Label, String> {\n}", "@SuppressWarnings(\"unused\")\n@Repository\npublic interface MarcaRepository extends JpaRepository<Marca, Long> {\n\n}", "@Repository\npublic interface ModelRepository extends JpaRepository<Citire, Long>{\n}", "@ResponseBody\n @RequestMapping(\n value = { \"\" },\n method = {RequestMethod.GET},\n produces = {\"application/json;charset=UTF-8\"})\n public List<Map<String, Object>> listMunicipios() {\n return municipioService.listMunicipios();\n }", "@SuppressWarnings(\"unused\")\n@Repository\npublic interface CategorieRessourcesRepository extends JpaRepository<CategorieRessources, Long> {\n}", "public interface PegawaiRepository extends JpaRepository<Pegawai, Long> {\n\n\n}", "public interface ModeloRepository extends CrudRepository<Modelo, Long> {\n}", "public interface MovieRepository extends JpaRepository<Movie, Long> {\n Movie findByTitle(String title);\n}", "@Repository\npublic interface CountryRepository extends JpaRepository<Country, CountryId> {\n\n Optional<Country> findByCountryName(CountryName countryName);\n\n}", "public interface DistrictRepository extends PagingAndSortingRepository<District, Long>{\n Iterable<District> findAllByCountry(Country country);\n}", "public void setMunicipio(String municipio) {\n this.municipio = municipio;\n }", "public interface MovieRepository extends JpaRepository<MoviePo,Integer> {\n\n @Query(\"select m.identifier from MoviePo m\")\n List<String> findIdentifier();\n\n MoviePo findByIdentifier(String identifier);\n\n}", "@Repository\npublic interface LocationRepository extends CrudRepository<Location, Long> {\n\n}", "public interface CompraRepository extends JpaRepository<Compra,Long> {\n\n}", "public interface MasterSyncLanguageRepository extends BaseRepository<MasterLanguage, String> {\n\n\t\n\n}", "public interface RimWideRepository extends JpaRepository<RimWide, Long> {\n}", "public String getMunicipio() {\n return municipio;\n }", "public interface CategoryRepository extends JpaRepository<Category, Long> {\n}", "@SuppressWarnings(\"unused\")\n//@Repository\n@CrossOrigin(\"http://localhost:4200\")\n@RepositoryRestResource(collectionResourceRel = \"adresses\", path = \"adresses\")\npublic interface AdresseRepository extends JpaRepository<Adresse, Long> {\n\n}", "@SuppressWarnings(\"unused\")\n@Repository\npublic interface CountriesRepository extends JpaRepository<Countries,Long> {\n \n}", "@Repository\npublic interface MedicalAidRepository extends JpaRepository<MedicalAid, String> {\n\n}", "@Repository\npublic interface LocoRepository extends CrudRepository<Loco, Integer> {\n}", "@Repository\npublic interface LandUriRepository extends CrudRepository<LandUri, Long>{\n}", "public interface MetaRepository extends CrudRepository<Meta,Long> {\n}", "public interface MetaRepository extends JpaRepository<T_metas, Integer> {\n\n}", "public interface NucleoRepository extends CrudRepository<NucleoDB,Long>{\n\n\n}", "public interface LocationRepository extends CrudRepository<Location, Integer> {\n\n}", "public interface CustomerRepository extends JpaRepository<Customer,Long> {\r\n public Customer findByNumberID(String numberID);\r\n public List<Customer> findByLastName(String lastName);\r\n public List<Customer> findByRegion(Region region);\r\n}", "@SuppressWarnings(\"unused\")\n@Repository\npublic interface RefGeoCommuneRepository extends JpaRepository<RefGeoCommune, Long> {\n}", "@Repository\npublic interface ItemPedidoRepository extends JpaRepository<ItemPedido, Integer> {\n}", "@SuppressWarnings(\"unused\")\n@Repository\npublic interface TipoObraRepository extends JpaRepository<TipoObra, Long> {\n}", "@Repository\npublic interface EditorRepository extends JpaRepository<Editor, Long> {\n}", "public interface CategoryRepository extends JpaRepository<Category, Integer> {\n}", "public interface RoleRepository extends JpaRepository<Role,Long> {\n\n /**\n * Adnotacja Query - Spring Data dzięki adnotacji udostępnia możliwość definiowania zapytania.\n * Dodatkowa metoda findByName - wyszukuje rekord w bazie danych na podstawie nazwy roli.\n */\n @Query(\"SELECT r FROM Role r WHERE r.name = ?1\")\n public Role findByName(String name);\n}", "@Repository\npublic interface StatusRepository extends IRepository<Status, String> {\n\n}", "public interface CompanyRepository extends JpaRepository<Company, String> {\n Company findByName(String name);\n}", "public interface PessoaRepository extends JpaRepository<Pessoa, Long>{\n\n List<Pessoa> pessoas = new ArrayList<>();\n\n Optional<Pessoa> findByCpf(String cpf);\n\n Optional<Pessoa> findByTelefones(String ddd, String numero);\n\n Pessoa findByCodigo(Long codigo);\n\n Pessoa findByNome(String nome);\n}", "@Repository\npublic interface TableRegionRepository extends JpaRepository<TableRegion, Long> {\n\n List<TableRegion> findAll();\n\n TableRegion findById(Long id);\n\n TableRegion findByTrMark(int mark);\n}", "@Repository\npublic interface AtletaRepository extends JpaRepository<Atleta, Long> {\n\n}", "@Repository\npublic interface CategoryRepository extends JpaRepository<Category,Long> {\n\n\n\n}", "@Repository\npublic interface OrganizationMapper extends BaseMapper<Organization> {\n\n\n// Integer getCountForFindPageByName(Map<String, Object> map);\n//\n// List<Organization> findPageByName(Map<String, Object> map);\n\n List<Organization> findOrgByUser(String userId);\n\n List<Organization> findCountyIDByFaceID(long id);\n\n Organization findIdByName(String name);\n\n List<Organization> findYfByUser(Map<String, Object> map);\n\n}", "@Repository\npublic interface CityRepository extends JpaRepository<City,String> {\n\t@Query(nativeQuery = true,value = \"select c.city_id,c.city_name,p.province_id,p.province_name,c.id,p.id from city as c inner join province as p on c.province_id = p.province_id order by p.province_name desc limit ?,?\")\n\tList<City> findAllCities(@Param(\"pageNum\") int pageNum, @Param(\"pageSize\") int pageSize);\n\tList<City> findAllByProvince_ProvinceId(String provinceId);\n}", "public interface Projetos extends JpaRepository<Projeto,Long> {\n}", "public interface asalariadoRepository\r\nextends Repository<Asalariado,Integer> {\r\n void save(Asalariado asalariado);\r\n List<Asalariado> findAll();\r\n}", "@Repository\npublic interface MemberReadRepository extends JpaRepository<Member, String> {\n\tMember findById(String id);\n}", "public interface AddressRepository extends JpaRepository<InseeAddress, Long> {\n\t\n\tAddressDto findDtoById(Long id);\n\n\t@Query(value=\"SELECT l6 from address add \"\n\t\t\t+ \"INNER JOIN survey_unit su ON su.address_id = add.id \"\n\t\t\t+ \"WHERE su.id = ?1\", nativeQuery=true)\n\tString findLocationAndCityBySurveyUnitId(String idSurveyUnit);\n}", "public interface ParametrageAppliRepository extends CrudRepository<ParametresAppliDTO, Integer> {\n /**\n * This method will find an User instance in the database by its email.\n * Note that this method is not implemented and its working code will be\n * automatically generated from its signature by Spring Data JPA.\n */\n\n public ParametresAppliDTO findByTypeEnvironnement(int idTypeEnvironement);\n\n\n}", "@Repository\n\npublic interface ProcesoDAO extends JpaRepository<Proceso, Long> {\n\n}", "@SuppressWarnings(\"unused\")\n@Repository\npublic interface PmCorMeasureStatesRepository extends JpaRepository<PmCorMeasureStates, Long> {\n PmCorMeasureStates findByCode(String code);\n\n}", "@SuppressWarnings(\"unused\")\n@Repository\npublic interface JefaturaRepository extends JpaRepository<Jefatura, Long> {\n}", "@SuppressWarnings(\"unused\")\npublic interface SistemaRepository extends JpaRepository<Sistema, Long> {\n\n /**\n * Get list of systems by organizations\n *\n * @param organizacao\n * @return\n */\n List<Sistema> findAllByOrganizacao(Organizacao organizacao);\n\n @Query( value = \"SELECT count(*) FROM ANALISE WHERE sistema_id = ?1\", nativeQuery = true)\n public Integer quantidadeSistema(Long id);\n\n\n @Query( value = \"Select * FROM SISTEMA WHERE organizacao_id = ?1\", nativeQuery = true)\n public Set<Sistema> findAllSystemOrg(Long id);\n\n @EntityGraph(attributePaths = \"modulos\")\n Sistema findOne(Long id);\n\n}", "public interface OrganismeDAO extends CrudRepository<Organisme,Long> {\n Organisme findByemail (String email);\n\n}", "public interface DistrictRepository extends CrudRepository<District,Integer>{\n public List<District> findByCode(String name);\n public List<District> findByCity(City city);\n public Page<District> findByCity(City city, Pageable pageable);\n}", "@Repository\r\npublic interface RoleRepository extends JpaRepository<Role, Long> {\r\n // Query per ottenere un ruolo conoscendone il nome.\r\n Optional<Role> findByName(RoleName roleName);\r\n}", "public interface MemberDao extends JpaRepository<Member, Long>{\n}", "public interface ProfesorRepository extends CrudRepository<Profesor, Long> {\n List<Profesor> findAll();\n}", "@Repository\npublic interface ContactRepository extends JpaRepository<Contact, Long> {\n}", "public String getMunicipio(){\n return municipio;\n }", "@SuppressWarnings(\"unused\")\n@Repository\npublic interface PeopleRoleUserMappingRepository extends JpaRepository<PeopleRoleUserMapping,Long> {\n \n}", "@SuppressWarnings(\"unused\")\n@Repository\npublic interface LocationsRepository extends JpaRepository<Locations, Long> {\n\n}", "@SuppressWarnings(\"unused\")\n@Repository\npublic interface ContactoPessoaRepository extends JpaRepository<ContactoPessoa, Long> {\n\n}", "@SuppressWarnings(\"unused\")\n@Repository\npublic interface RespostaRepository extends JpaRepository<Resposta, Long> {\n}", "public interface ImagensEventoOnlineDestaqueRepository extends CrudRepository<ImagensEventoOnlineDestaque, Long> {\n\t\n\t@Query(\"select i from ImagensEventoOnlineDestaque i where i.id = :pid\")\n\tImagensEventoOnlineDestaque buscarPor(@Param(\"pid\") Long id);\n\n}", "@SuppressWarnings(\"unused\")\n@Repository\npublic interface ControlCambioRazonRepository extends JpaRepository<ControlCambioRazon, Long> {\n\n}", "@Repository\npublic interface ImaginationDao {\n void saveIma(Imagination imagination);\n List<Imagination> findAll();\n Imagination findOne();\n\n\n}", "@Repository\npublic interface IlceRepository extends JpaRepository<Ilce, Long> {\n\n Ilce findByKod(int kod);\n}", "interface NetworkRepository extends JpaRepository<Network, Long> {\n\n}", "@Repository\npublic interface RoleRepository extends JpaRepository<Role,Long> {\n\n Role findByName(String name);\n\n}", "@SuppressWarnings(\"unused\")\n@Repository\npublic interface CountryRepository extends JpaRepository<Country,Long> {\n Long countByCountryCode(Integer countryCode);\n Country findByCountryName(String countryName);\n}", "public interface PersonagemRepository extends MongoRepository<Personagem, String> {\n\n\t/**\n\t * Find by membro id.\n\t *\n\t * @param id the id\n\t * @return the list\n\t */\n\tpublic List<Personagem> findByMembroId(String id);\n\n\t/**\n\t * Find by membro id and classe.\n\t *\n\t * @param id the id\n\t * @param classe the classe\n\t * @return the list\n\t */\n\tpublic List<Personagem> findByMembroIdAndClasse(String id, String classe);\n\n\t/**\n\t * Find by membro id and ativo.\n\t *\n\t * @param membroId the membro id\n\t * @param ativo the ativo\n\t * @return the optional\n\t */\n\tpublic Optional<Personagem> findByMembroIdAndAtivo(String membroId, boolean ativo);\n\t\n\t\n\n}", "public interface LocationRepository extends CrudRepository<Location,Long>\n{\n // public Location findById(Long id);\n}", "public interface RepositorioPregunta extends MongoRepository<Pregunta, String> {\n List<Pregunta> findByTema(String tema);\n List<Pregunta> findByArea(String area);\n}", "@SuppressWarnings(\"unused\")\n@Repository\npublic interface CommuneRepository extends JpaRepository<Commune, Long> {\n\n @Query(value = \"SELECT cast(geom as varchar) geom FROM commune_geojson\", nativeQuery = true)\n Object getAllConvertToGeoJSON();\n\n Optional<Commune> findDistinctFirstByLibelleAndDeletedIsFalse(String libelle);\n Commune findTop1ByLibelleAndDeletedIsFalse(String libelle);\n Page<Commune> findCommunesByDeletedIsFalse(Pageable pageable);\n List<Commune> findAllByDeletedIsFalse();\n List<Commune> findAllByLibelleAndDeletedIsFalse(String libelle);\n}", "public interface AuthorityRepository extends JpaRepository<Authority, String> {\n}" ]
[ "0.65470994", "0.64517784", "0.6385331", "0.62526566", "0.62424105", "0.62114495", "0.6204916", "0.6199757", "0.6139633", "0.61193204", "0.6115746", "0.6104901", "0.6099902", "0.6092371", "0.6088453", "0.60326153", "0.6023982", "0.60237336", "0.59993416", "0.5997144", "0.5984742", "0.5969642", "0.59648687", "0.5949146", "0.594401", "0.5943315", "0.5943183", "0.59260124", "0.5916492", "0.5916388", "0.59054077", "0.59020954", "0.59008986", "0.58906406", "0.58729315", "0.58646655", "0.5861213", "0.5859169", "0.585571", "0.5839283", "0.5827256", "0.5815814", "0.5808816", "0.57987505", "0.5784838", "0.5780166", "0.57785994", "0.5772192", "0.57689875", "0.57685447", "0.5766382", "0.57639205", "0.57615316", "0.5760839", "0.57602674", "0.5758792", "0.5749104", "0.57487476", "0.57458913", "0.57365304", "0.57362014", "0.57255054", "0.5721446", "0.57195175", "0.57182133", "0.5718142", "0.57172084", "0.5713651", "0.5712733", "0.5708137", "0.5705568", "0.5703027", "0.57009983", "0.5698993", "0.5697854", "0.56915617", "0.5688769", "0.5684203", "0.56805694", "0.5679894", "0.5671031", "0.5663457", "0.56595314", "0.56555647", "0.56509537", "0.5650921", "0.5649936", "0.56497204", "0.5648543", "0.5647904", "0.5644821", "0.56440246", "0.56432205", "0.5641213", "0.56407326", "0.5630895", "0.56274843", "0.562678", "0.5625292", "0.56248826" ]
0.6991269
0
Gets original standard out.
public static synchronized PrintStream getStdOut() { return sysOut; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "InputStream getStdout();", "public static\n PrintStream out() {\n return Ansi.out;\n }", "public static AnsiPrintStream out() {\n initStreams();\n return (AnsiPrintStream) out;\n }", "public static PrintStream out() {\n return System.out;\n }", "public String lastOutput() throws IOException {\n stream.flush();\n os.flush();\n return os.asString();\n }", "String getOutput();", "static public PrintStream getPrintStream() {\n \t return out;\n }", "public static PrintStream sysOut() {\n return system_out;\n }", "void resetOutput(){\n\t\tSystem.setOut(oldOut);\n\t}", "public String getOutput() {\n myLock.lock();\n try {\n return myOutput.toString();\n }\n finally {\n myLock.unlock();\n }\n }", "java.lang.String getOutput();", "public TestOut getOutput() {\n\treturn(output);\n }", "public String getOutput() {\r\n return innerStream.getString();\r\n }", "public String getOutput() {\n return output.toString();\n }", "public FakeStandardOutput() throws UnsupportedEncodingException {\r\n super(new StringOutputStream(), true, \"UTF8\");\r\n innerStream = (StringOutputStream) super.out;\r\n }", "@After\n\tpublic void restoreStreams() {\n\t\tSystem.setOut(originalOut);\n\t}", "public String getOutput() {\n return output;\n }", "public static String getStdOut(Process p) throws IOException\n {\n return IOUtils.toString(p.getInputStream());\n }", "static PrintStream outputStream() {\n return System.err;\n }", "public String getLocalOutput(){\r\n\t\treturn this.localOutput;\r\n\t}", "public PrintStream getPrintStream() {\n\t\treturn _out;\n\t}", "public String getOutputString()\n\t{\n\t\treturn outputString;\n\t}", "void redirectOutput() {\n Process process = _vm.process();\n _errThread = new StreamRedirectThread(\"error reader\", process.getErrorStream(), System.err);\n _outThread = new StreamRedirectThread(\"output reader\", process.getInputStream(), System.out);\n _errThread.start();\n _outThread.start();\n }", "@After\n public void returnOutStream() { //\n System.setOut(System.out);\n }", "public String getResult() {\n\t\treturn bashCommand.getStdOutString();\n\t}", "@AutoEscape\n\tpublic String getStd();", "public abstract PrintStream getOutputStream();", "public static synchronized PrintStream getStdErr() {\n return sysErr;\n }", "@After\n\tpublic void backOutput() {\n\t\tSystem.setOut(this.stdout);\n\t}", "void output(OUT out) throws IOException;", "public PrintStream getConsoleOutputPrintStream() {\r\n\t\treturn new PrintStream(new ConsoleOutputStream());\r\n\t}", "public String getOutput() {\n\t\treturn results.getOutput() ;\n\t}", "public ConsoleOutputWrapper() {\n fCurrent = ConsoleUtils.getDefault().getConsole();\n }", "public String getText(){\n return this.sOut.toString();\n }", "public Output getOutput() {\n\t\treturn output;\n\t}", "@Before\n public void changeOutStream() {\n PrintStream printStream = new PrintStream(outContent);\n System.setOut(printStream);\n }", "@Override\n\tpublic void GetOut() {\n\t\t\n\t}", "public Output getOutput() {\n\t\treturn OutputFactory.of(outputFile.toPath());\n\t}", "public abstract InputStream stdout();", "public String getOutput() throws TavernaException, ProcessException{\n if (outputFile == null){\n return saveOutput();\n }\n try {\n return runner.getOutput();\n } catch (InterruptedException ex) {\n throw new TavernaException (\"Workflow was interrupted.\", ex);\n }\n }", "private void redirectSystemStreams() {\r\n\t\tOutputStream out = new OutputStream() {\r\n\t\t\t@Override\r\n\t\t\tpublic void write(int b) throws IOException {\r\n\t\t\t\tupdateTextArea(String.valueOf((char) b));\r\n\t\t\t}\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic void write(byte[] b, int off, int len) throws IOException {\r\n\t\t\t\tupdateTextArea(new String(b, off, len));\r\n\t\t\t}\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic void write(byte[] b) throws IOException {\r\n\t\t\t\twrite(b, 0, b.length);\r\n\t\t\t}\r\n\t\t};\r\n\r\n\t\tSystem.setOut(new PrintStream(out, true));\r\n\t\tSystem.setErr(new PrintStream(out, true));\r\n\t}", "public void setOut(PrintStream out);", "public StreamResult getOutput() {\n return output;\n }", "@Before\n\tpublic void loadOutput() {\n\t\tSystem.setOut(new PrintStream(this.out));\n\t}", "public GetConsoleOutputResponse getConsoleOutput(GetConsoleOutput getConsoleOutput) {\n \t\treturn null;\r\n \t}", "public void wrap() {\n if (fSavedOut != null) {\n return;\n }\n fSavedOut = System.out;\n fSavedErr = System.err;\n final IOConsoleOutputStream out = fCurrent.newOutputStream();\n out.setColor(ConsoleUtils.getDefault().getBlack()); \n \n System.setOut(new PrintStream(out));\n final IOConsoleOutputStream err = fCurrent.newOutputStream();\n err.setColor(ConsoleUtils.getDefault().getRed()); \n \n System.setErr(new PrintStream(err));\n }", "public void turnOnSystemOutput(){\n if(originalSystemOut == null){\n originalSystemOut = System.out;\n System.setOut(new PrintStream(generalStream));\n //will cause CSS hang up\n// System.setIn(console.getInputStream());\n }\n }", "public String getoutputString() {\r\n\t\treturn outputString;\r\n\t}", "protected void finalizeSystemOut() {}", "public static String getStdErr(Process p) throws IOException\n {\n return IOUtils.toString(p.getErrorStream());\n }", "@AfterClass\n public static void finalise()\n {\n System.setOut(SYSTEM_OUT_ORIGINAL);\n }", "String getFileOutput();", "public String getOutput(){\r\n // add assembly code to outputFile\r\n outputFile.append(assemblyCode.getOutputFile());\r\n \r\n // add a line spaces so the reader of the output file can determine\r\n // that a new assembly code sequence has started\r\n outputFile.append(System.lineSeparator());\r\n outputFile.append(\"************\");\r\n outputFile.append(System.lineSeparator());\r\n \r\n // return outputFile to a String\r\n return outputFile.toString();\r\n }", "public static void RedirectOutput() {\t\n\t\ttry {\n\t\t\tPrintStream out = new PrintStream(new FileOutputStream(\"ybus.txt\"));\n\t\t\tSystem.setOut(out); //Re-assign the standard output stream to a file.\n\t\t} catch (FileNotFoundException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "@Override\r\n\tpublic OutputStream getOutStream() {\n\t\treturn outStreamServer;\r\n\t}", "String diagnosticsOutput();", "public PrintStream getPrintStream() {\n\t\treturn new PrintStream(new TextAreaOutputStream());\n\t}", "public java.lang.String getOutput() {\n java.lang.Object ref = output_;\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 output_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public abstract InputStream stderr();", "public static AnsiPrintStream err() {\n initStreams();\n return (AnsiPrintStream) err;\n }", "@Override\n public String toString() {\n ByteArrayOutputStream bs = new ByteArrayOutputStream();\n PrintStream out = new PrintStream(bs);\n output(out, \"\");\n return bs.toString();\n }", "public static PrintStream sysErr() {\n return system_err;\n }", "public static\n PrintStream err() {\n return Ansi.err;\n }", "public java.lang.String getOutput() {\n java.lang.Object ref = output_;\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 output_ = s;\n return s;\n }\n }", "public abstract Object getOutput ();", "public List<String> getOutput() {\n List<String> toRet = new ArrayList<String>();\n String line = processLinesOut_.poll();\n while (line != null) {\n toRet.add(line);\n line = processLinesOut_.poll();\n }\n return toRet;\n }", "public String getZoneOut() {\n\t\treturn zoneOut.get();\n\t}", "public IOConsole getConsole() {\n return fConsole;\n }", "public void printAsOriginal (PrintWriter out){\r\n\t\tint inCount = 0, outCount = 0, undefCount=0, count;\r\n\t\tint numAttributes = Attributes.getNumAttributes();\r\n\t\tfor (count=0; count<numAttributes; count++){\r\n\t\t\tAttribute at = Attributes.getAttribute(count);\r\n\t\t\tswitch(at.getDirectionAttribute()){\r\n\t\t\tcase Attribute.INPUT:\r\n\t\t\t\tprintAttribute(out, Instance.ATT_INPUT, inCount, at.getType());\r\n\t\t\t\tinCount++;\r\n\t\t\t\tbreak;\r\n\t\t\tcase Attribute.OUTPUT:\r\n\t\t\t\tprintAttribute(out, Instance.ATT_OUTPUT, outCount, at.getType());\r\n\t\t\t\toutCount++;\r\n\t\t\t\tbreak;\r\n\t\t\tcase Attribute.DIR_NOT_DEF:\r\n\t\t\t\tprintAttribute(out, Instance.ATT_NONDEF, undefCount, at.getType());\r\n\t\t\t\tundefCount++;\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t\tif (count+1 <numAttributes) out.print(\",\");\r\n\t\t}\r\n\t}", "public String ReadLine() {\n\tString s = childStdout.Readline();\n\treturn s;\n }", "public long getOutBytes() {\n return outBytes.get();\n }", "public Object getOutputTarget()\n/* */ {\n/* 101 */ return this._writer;\n/* */ }", "Output createOutput();", "private void loadOutput(InputStream in) throws IOException\r\n\t{\r\n\t\tlogger.debug(\"Begin: \"+getClass().getName()+\":loadOutput()\");\t\r\n\t\tStringBuffer sb=new StringBuffer();\r\n\t\tint c;\r\n\t\twhile((c=in.read())!= -1) \r\n\t\t{\t\t \r\n\t\t\tsb.append((char)c);\r\n\t\t}\t \r\n\t\toutput=sb.toString();\t\t\r\n\t\tlogger.debug(\"output is : \"+output);\r\n\t\tlogger.debug(\"Begin: \"+getClass().getName()+\":loadOutput()\");\t\r\n\t}", "public PrintWriter getSocketOut() {\n\t\treturn socketOut;\n\t}", "static final void flushSystemOut()\n {\n PrintStream out = sysOut;\n if (out != null)\n {\n try\n {\n out.flush();\n }\n catch (Error e) {}\n catch (RuntimeException e) {}\n }\n }", "public void executeOUT(){\n\t\tint asciiVal = mRegisters[0].getValue();\n\t\tchar toPrint = (char)asciiVal;\n\t\tSystem.out.print(toPrint);\n\t}", "InputStream getStderr();", "private PrintStream getOutput(String name) {\n try {\n return new PrintStream(new File(name));\n } catch (IOException excp) {\n throw error(\"could not open %s\", name);\n }\n }", "public String out() {\n if (this.implicitMain) {\n this.parse(\"main\");\n }\n Object main = parsedBlocks.get(\"main\");\n if (main == null) {\n throw new IllegalStateException(\"'main' block not parsed\");\n }\n return (main.toString());\n }", "public static PrintStream err() {\n return System.err;\n }", "public static long getBytesOut() {\n return bytesOut;\n }", "OutputStream getOutputStream();", "private static void execWithOutput(String[] cmd)\n throws IOException\n {\n Process p = Runtime.getRuntime().exec(cmd);\n StreamRedirector errRedirector = new StreamRedirector(p.getErrorStream(), System.err);\n errRedirector.start();\n StreamRedirector outRedirector = new StreamRedirector(p.getInputStream(), System.out);\n outRedirector.start();\n }", "static final void setSystemOut(\n PrintStream out) /* hard-coded method signature */\n {\n sysOut = out;\n }", "public String toString() {\n\t\treturn getOriginalInput();\n\t}", "OutputStream getOutputStream()\n {\n return outputStream;\n }", "public final String toString() {\n\t\tStringWriter write = new StringWriter();\n\t\tString out = null;\n\t\ttry {\n\t\t\toutput(write);\n\t\t\twrite.flush();\n\t\t\tout = write.toString();\n\t\t\twrite.close();\n\t\t} catch (UnsupportedEncodingException use) {\n\t\t\tuse.printStackTrace();\n\t\t} catch (IOException ioe) {\n\t\t\tioe.printStackTrace();\n\t\t}\n\t\treturn (out);\n\t}", "public final PrintStream getInputStream() {\n return inputStream;\n }", "public String getStd_Base();", "private void sout() {\n\t\t\n\t}", "private void _debugSystemOutAndErr() {\n try {\n File outF = new File(System.getProperty(\"user.home\") +\n System.getProperty(\"file.separator\") + \"out.txt\");\n FileWriter wo = new FileWriter(outF);\n final PrintWriter outWriter = new PrintWriter(wo);\n File errF = new File(System.getProperty(\"user.home\") +\n System.getProperty(\"file.separator\") + \"err.txt\");\n FileWriter we = new FileWriter(errF);\n final PrintWriter errWriter = new PrintWriter(we);\n System.setOut(new PrintStream(new edu.rice.cs.util.OutputStreamRedirector() {\n public void print(String s) {\n outWriter.print(s);\n outWriter.flush();\n }\n }));\n System.setErr(new PrintStream(new edu.rice.cs.util.OutputStreamRedirector() {\n public void print(String s) {\n errWriter.print(s);\n errWriter.flush();\n }\n }));\n }\n catch (IOException ioe) {}\n }", "public Object getCallOutput() {\n\t\treturn null;\n\t}", "public double getStdReading(){\n return this.mFarm.getStdReading();\n }", "public PrintStreamCommandOutput()\n {\n this( System.out );\n }", "public String getOutputValue() {\n// System.out.println(\"geting output value from connection\");\n// System.out.println(\"out:\" + ncOutput.getName() + \" in:\" + ncInput.getName() );\n return _output.getOutputValue();\n }", "TemplateOutputStream getOutput();", "protected PrintStream getPrintStream(File fOut)\n {\n try\n {\n OutputStream os = new FileOutputStream(fOut, true);\n return new PrintStream(new BufferedOutputStream(os));\n }\n catch (FileNotFoundException e)\n {\n // This error will never occur. The file will be created.\n throw ensureRuntimeException(e);\n }\n }", "public String getActiveOutput()\n\t{\n\t\treturn \"hdb\";\n\t}", "public Output<T> output() {\n return output;\n }" ]
[ "0.6789304", "0.6577965", "0.6513975", "0.64582527", "0.64557713", "0.643661", "0.6432638", "0.6397038", "0.6367268", "0.6283183", "0.62506634", "0.62468016", "0.622334", "0.6219019", "0.62032104", "0.6157037", "0.6154807", "0.6153772", "0.6112329", "0.61101407", "0.6093665", "0.6086112", "0.60796463", "0.60643214", "0.60532933", "0.6023574", "0.6021137", "0.6008128", "0.5969256", "0.59593564", "0.5920089", "0.59158313", "0.5870272", "0.5870089", "0.5854003", "0.5842603", "0.5835628", "0.5827596", "0.58200955", "0.5817225", "0.58050334", "0.5794553", "0.5787133", "0.5759638", "0.5727356", "0.5716048", "0.56620264", "0.56605065", "0.5659899", "0.5602448", "0.5563124", "0.55534023", "0.55291647", "0.5527273", "0.55070865", "0.550689", "0.5498101", "0.54927737", "0.5491215", "0.54896075", "0.54866856", "0.5477359", "0.5477261", "0.5472129", "0.5467129", "0.54642487", "0.54611284", "0.54521966", "0.54356074", "0.5402154", "0.54002976", "0.53990775", "0.5397565", "0.53927344", "0.5368171", "0.5366611", "0.5357051", "0.535133", "0.5338543", "0.53292555", "0.5326565", "0.53225714", "0.5321517", "0.5310358", "0.5305954", "0.5292499", "0.52916", "0.5275345", "0.52730846", "0.5264802", "0.52530175", "0.5252285", "0.5240674", "0.5239184", "0.5235138", "0.5225614", "0.5220421", "0.52168083", "0.52132505", "0.5194575" ]
0.6940086
0
Gets original standard error.
public static synchronized PrintStream getStdErr() { return sysErr; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public final String getError(){\n return lastKnownError;\n }", "java.lang.String getError();", "java.lang.String getError();", "java.lang.String getError();", "java.lang.String getErr();", "public Object getError() {\n\t\treturn error;\n\t}", "public java.lang.String getError() {\n return localError;\n }", "public java.lang.String getError() {\n return localError;\n }", "public java.lang.String getError() {\n return localError;\n }", "public InputStream getErrorStrean(){\n return this.mErrStream;\n }", "public java.lang.String getError() {\n return error;\n }", "public Error getError() {\r\n\t\treturn error;\r\n\t}", "public String getError() {\r\n\t\tString error = _error;\r\n\t\t_error = null;\r\n\t\treturn error;\r\n\t}", "public String getError() {\r\n\t\treturn error;\r\n\t}", "public String getError() {\n\t\treturn error;\n\t}", "public String getError() {\n\t\treturn error;\n\t}", "public Object getError() {\n return error;\n }", "public CoreASMError getError() {\n\t\treturn error;\n\t}", "public synchronized double getError()\n {\n final String funcName = \"getError\";\n\n if (debugEnabled)\n {\n dbgTrace.traceEnter(funcName, TrcDbgTrace.TraceLevel.API);\n dbgTrace.traceExit(funcName, TrcDbgTrace.TraceLevel.API, \"=%f\", currError);\n }\n\n return currError;\n }", "public RuntimeException getError() {\n if (errors.size() > 0) {\n return errors.get(0);\n }\n return null;\n }", "public java.lang.String getErr() {\n java.lang.Object ref = err_;\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 err_ = s;\n }\n return s;\n }\n }", "public String getError() {\n\treturn mistake;\n }", "public String getError() throws IOException {\n String line = \"\";\n StringBuffer buffer = new StringBuffer();\n BufferedReader in = new BufferedReader(new InputStreamReader(\n httpConnection.getErrorStream()));\n while ((line = in.readLine()) != null) {\n buffer.append(line + \"\\n\");\n }\n in.close();\n return buffer.toString();\n }", "public double getLastError() {\n return lastError;\n }", "public String getError() {\n return writeResult.getError();\n }", "public java.lang.String getErr() {\n java.lang.Object ref = err_;\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 err_ = s;\n }\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public InputStream getErrorStream() {\n return _combinedErrorStream;\n }", "@Override\n @Nullable\n public Exception getError() {\n return error;\n }", "public java.lang.String getError() {\n java.lang.Object ref = error_;\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 error_ = s;\n return s;\n }\n }", "public java.lang.String getError() {\n java.lang.Object ref = error_;\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 error_ = s;\n }\n return s;\n }\n }", "public String getError() {\n return error;\n }", "public String getError() {\n return error;\n }", "public String getError() {\n return error;\n }", "public String getError() {\n return error;\n }", "public TCodeRep getErr() {\n return err;\n }", "public java.lang.String getError() {\n java.lang.Object ref = error_;\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 error_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public String ReadErrorLine() {\n\treturn childStderr.Readline();\n }", "public java.lang.String getError() {\n java.lang.Object ref = error_;\n if (!(ref instanceof java.lang.String)) {\n java.lang.String s = ((com.google.protobuf.ByteString) ref)\n .toStringUtf8();\n error_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "com.google.protobuf.ByteString\n getErrBytes();", "public String getError() {\n return error != null ? error : \"An unknown error occurred.\";\n }", "com.google.protobuf.ByteString\n getErrorBytes();", "com.google.protobuf.ByteString\n getErrorBytes();", "@Nullable public Throwable error() {\n return err;\n }", "public static String getStdErr(Process p) throws IOException\n {\n return IOUtils.toString(p.getErrorStream());\n }", "public int getError() {\n return error;\n }", "java.lang.String getErrmsg();", "Object getFailonerror();", "Object getFailonerror();", "public String getErrorString()\n\t{\n\t\treturn errorString;\n\t}", "public String getError() {\r\n if (scriptError == null) return \"\";\r\n return scriptError;\r\n }", "com.google.protobuf.ByteString\n getErrorBytes();", "public Throwable getOriginalException()\n/* 28: */ {\n/* 29:56 */ return this.originalE;\n/* 30: */ }", "InputStream getStderr();", "public String getErrorString()\r\n\t{\r\n\t\t\r\n\t\treturn ERROR_STRING;\r\n\t}", "public static PrintStream sysErr() {\n return system_err;\n }", "public Map getError() {\n return this.error;\n }", "public static PrintStream err() {\n return System.err;\n }", "public com.google.protobuf.ByteString\n getErrBytes() {\n java.lang.Object ref = err_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n err_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "String getCauseException();", "public String getERR_MSG() {\n return ERR_MSG;\n }", "public String getError() {\n return errMsg;\n }", "public com.google.protobuf.ByteString\n getErrorBytes() {\n java.lang.Object ref = error_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b =\n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n error_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public ErrorCode error() {\n return new ErrorCode(alert.getError());\n }", "public String getError() throws DeviceException {\n \t\ttry {\n \t\t\tString errorCode = controller.caget(errChannel);\n \t\t\treturn \"Error Code \" + errorCode + \" : \" + lookupErrorCode(errorCode);\n \t\t} catch (Throwable e) {\n \t\t\tthrow new DeviceException(\"failed to get error code from robot\", e);\n \t\t}\n \t}", "public static String getLastLrcErrorMsg() {\n String str = new String(mLrcErrorMsg);\n return str;\n }", "public com.google.protobuf.ByteString\n getErrorBytes() {\n java.lang.Object ref = error_;\n if (ref instanceof java.lang.String) {\n com.google.protobuf.ByteString b =\n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n error_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public com.google.protobuf.ByteString\n getErrBytes() {\n java.lang.Object ref = err_;\n if (ref instanceof java.lang.String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n err_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public com.google.protobuf.ByteString\n getErrorBytes() {\n java.lang.Object ref = error_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n error_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public String errorSource() {\n return this.errorSource;\n }", "ExternalCompiler.ErrorExpression getErrorExpression () {\n return errorExpression;\n }", "public java.lang.String getErrorMsg() {\r\n return localErrorMsg;\r\n }", "public ManagementError error() {\n return this.error;\n }", "public Throwable getReason() { return err; }", "public java.lang.String getErrmsg() {\n java.lang.Object ref = errmsg_;\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 errmsg_ = s;\n }\n return s;\n }\n }", "public com.google.protobuf.ByteString\n getErrorBytes() {\n java.lang.Object ref = error_;\n if (ref instanceof java.lang.String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n error_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public java.lang.String getErrmsg() {\n java.lang.Object ref = errmsg_;\n if (!(ref instanceof java.lang.String)) {\n java.lang.String s = ((com.google.protobuf.ByteString) ref)\n .toStringUtf8();\n errmsg_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public protodef.b_error.info getError() {\n return error_ == null ? protodef.b_error.info.getDefaultInstance() : error_;\n }", "public protodef.b_error.info getError() {\n return error_ == null ? protodef.b_error.info.getDefaultInstance() : error_;\n }", "@Override\n\tpublic String getLastError() throws emException, TException {\n\t\treturn null;\n\t}", "public Optional<SpreadsheetError> error() {\n final Optional<Object> value = this.value();\n\n final Object maybeValue = this.value()\n .orElse(null);\n return maybeValue instanceof SpreadsheetError ?\n Cast.to(value) :\n SpreadsheetFormula.NO_ERROR;\n }", "public String getErrorMsg() {\n return this.emsg;\n }", "public WorldUps.UErr getError(int index) {\n return error_.get(index);\n }", "public String error();", "public int error() {\n return this.error;\n }", "public static\n PrintStream err() {\n return Ansi.err;\n }", "public String errorMessage()\n {\n return new String(errorMessageAsBytes());\n }", "public XyzError getError() {\n return this.error;\n }", "@DISPID(97)\r\n\t// = 0x61. The runtime will prefer the VTID if present\r\n\t@VTID(95)\r\n\tjava.lang.String stdErrLogFilename();", "public String getErrorMessage() {\r\n String toReturn = recentErrorMessage;\r\n\r\n return toReturn;\r\n }", "public java.lang.String getErrorInfo() {\n java.lang.Object ref = errorInfo_;\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 errorInfo_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public java.lang.String getErrorInfo() {\n java.lang.Object ref = errorInfo_;\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 errorInfo_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public java.lang.String getErrorInfo() {\n java.lang.Object ref = errorInfo_;\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 errorInfo_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public java.lang.String getErrorInfo() {\n java.lang.Object ref = errorInfo_;\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 errorInfo_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public java.lang.String getErrDisc () {\r\n\t\treturn errDisc;\r\n\t}", "public java.lang.String getErrorInfo() {\n java.lang.Object ref = errorInfo_;\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 errorInfo_ = s;\n return s;\n }\n }", "public java.lang.String getErrorInfo() {\n java.lang.Object ref = errorInfo_;\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 errorInfo_ = s;\n return s;\n }\n }", "public java.lang.String getErrorInfo() {\n java.lang.Object ref = errorInfo_;\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 errorInfo_ = s;\n return s;\n }\n }", "public java.lang.String getErrorInfo() {\n java.lang.Object ref = errorInfo_;\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 errorInfo_ = s;\n return s;\n }\n }", "int getErrcode();", "public static AnsiPrintStream err() {\n initStreams();\n return (AnsiPrintStream) err;\n }" ]
[ "0.7066817", "0.7009579", "0.7009579", "0.7009579", "0.6942041", "0.67879206", "0.674672", "0.674672", "0.674672", "0.66652834", "0.6648468", "0.6636885", "0.6616588", "0.6608915", "0.6604362", "0.6604362", "0.65907973", "0.6572566", "0.6531661", "0.6531286", "0.65137786", "0.6510241", "0.6497215", "0.64807266", "0.64624727", "0.6459474", "0.6433623", "0.6432627", "0.6431017", "0.64241356", "0.6422065", "0.6422065", "0.6422065", "0.6422065", "0.6398749", "0.6398195", "0.6383572", "0.6375557", "0.6367658", "0.63319194", "0.63301504", "0.63301504", "0.63301367", "0.632378", "0.6301474", "0.6297461", "0.62566245", "0.62566245", "0.6248198", "0.62213355", "0.6207694", "0.6205486", "0.6182374", "0.6159924", "0.6105923", "0.6067881", "0.6064721", "0.60520786", "0.60248935", "0.6023452", "0.60098666", "0.59990305", "0.5998901", "0.5993808", "0.5986213", "0.5983475", "0.5981934", "0.59677666", "0.59573686", "0.5941446", "0.5937046", "0.5934591", "0.59276414", "0.5913261", "0.5912726", "0.59062326", "0.5893006", "0.5893006", "0.58926266", "0.5891762", "0.58812356", "0.58804226", "0.58655834", "0.58651024", "0.5858097", "0.58577406", "0.5853332", "0.5846958", "0.5837209", "0.58337355", "0.58337355", "0.58337355", "0.58337355", "0.5826731", "0.5823192", "0.5823192", "0.5823192", "0.5823192", "0.58140796", "0.58136547" ]
0.6435117
26
Acquires output stream for logging tests.
public static synchronized GridTestPrintStream acquireOut() { // Lazy initialization is required here to ensure that parent // thread group is picked off correctly by implementation. if (testOut == null) testOut = new GridTestPrintStream(sysOut); if (outCnt == 0) System.setOut(testOut); outCnt++; return testOut; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void openOutputStream() {\n\t\tPrintStreamManagement.openOutputStream();\n\t}", "@Before\n\tpublic void setUpStreams() {\n\t\tSystem.setOut(new PrintStream(outContent));\n\t}", "@Before\n public void changeOutStream() {\n PrintStream printStream = new PrintStream(outContent);\n System.setOut(printStream);\n }", "public static void setLogStream(PrintStream log) {\n out = log;\n }", "@After\n public void returnOutStream() { //\n System.setOut(System.out);\n }", "public abstract PrintStream getOutputStream();", "private void closeOutputStream() {\n\t\tPrintStreamManagement.closeOutputStream();\n\t}", "@Before\n\tpublic void loadOutput() {\n\t\tSystem.setOut(new PrintStream(this.out));\n\t}", "public static\n void hookSystemOutputStreams() {\n out();\n err();\n }", "public void testSetOutputStream_AfterClose() {\n ByteArrayOutputStream aos = new ByteArrayOutputStream();\n MockStreamHandler h = new MockStreamHandler(aos, new MockFormatter());\n\n LogRecord r = new LogRecord(Level.INFO, \"testSetOutputStream_Normal\");\n h.publish(r);\n assertSame(r, CallVerificationStack.getInstance().pop());\n assertTrue(CallVerificationStack.getInstance().empty());\n h.flush();\n assertEquals(\"MockFormatter_Head\" + \"testSetOutputStream_Normal\", aos\n .toString());\n h.close();\n\n ByteArrayOutputStream aos2 = new ByteArrayOutputStream();\n h.setOutputStream(aos2);\n assertEquals(\"MockFormatter_Head\" + \"testSetOutputStream_Normal\"\n + \"MockFormatter_Tail\", aos.toString());\n r = new LogRecord(Level.INFO, \"testSetOutputStream_Normal2\");\n h.publish(r);\n assertSame(r, CallVerificationStack.getInstance().pop());\n assertTrue(CallVerificationStack.getInstance().empty());\n h.flush();\n assertEquals(\"MockFormatter_Head\" + \"testSetOutputStream_Normal2\", aos2\n .toString());\n assertEquals(\"MockFormatter_Head\" + \"testSetOutputStream_Normal\"\n + \"MockFormatter_Tail\", aos.toString());\n }", "@AfterClass\n public static void finalise()\n {\n System.setOut(SYSTEM_OUT_ORIGINAL);\n }", "private void setupWriter() {\n output = new StringWriter();\n writer = new PrintWriter(output);\n }", "synchronized static void initStreams()\n {\n if ( !initialized )\n {\n out = ansiStream(true);\n err = ansiStream(false);\n initialized = true;\n }\n }", "OutputStream getOutputStream()\n {\n return outputStream;\n }", "public interface StdLogOutput {\n\n /**\n * The default {@link StdLogOutput}, which logs to stdout.\n */\n public static class DefaultLogOutput implements StdLogOutput {\n\n @Override\n public void log(String msg) {\n System.out.println(msg);\n }\n\n @Override\n public void log(Throwable error) {\n error.printStackTrace();\n }\n\n @Override\n public void close() {\n }\n }\n\n /**\n * @param msg\n * the message to log.\n */\n public void log(String msg);\n\n /**\n * @param error\n * a {@link Throwable} whose stack trace should be logged.\n */\n public void log(Throwable error);\n\n /**\n * Closes this instance.\n */\n public void close();\n}", "@After\n\tpublic void restoreStreams() {\n\t\tSystem.setOut(originalOut);\n\t}", "public void setOut(PrintStream out);", "public static void setup() {\n\t\toutputs.add(new Console.stdout());\n\t}", "private Output() {}", "public void testSetOutputStream_null() {\n MockStreamHandler h = new MockStreamHandler(\n new ByteArrayOutputStream(), new SimpleFormatter());\n try {\n h.setOutputStream(null);\n fail(\"Should throw NullPointerException!\");\n } catch (NullPointerException e) {\n // expected\n }\n }", "static PrintStream outputStream() {\n return System.err;\n }", "public void set_log_stream(Writer strm) {\r\n stream = strm;\r\n }", "OutputStream getOutputStream();", "@Before\n public void setup(){\n output = new TestingOutputInterface();\n mLogic = new Logic(output);\n \n System.err.flush();\n System.out.flush();\n myOut = new ByteArrayOutputStream();\n myErr = new ByteArrayOutputStream();\n System.setOut(new PrintStream(myOut));\n System.setErr(new PrintStream(myErr));\n }", "public void logStreams() {\n logger.debug(\"error stream:\");\n logStream(this.bufferedErrorStream, false);\n logger.debug(\"input stream:\");\n logStream(this.bufferedInputStream, true);\n }", "public void setLogStream(OutputStream stream) {\n\t\tcloseLogHandler();\n\t\tlogHandler = new StreamHandler(stream, L2pLogger.getGlobalConsoleFormatter());\n\t\tlogHandler.setLevel(Level.ALL);\n\t\tlogger.addHandler(logHandler);\n\t}", "private void ensureOpen() throws IOException {\n if (out == null) {\n throw new IOException(\n/* #ifdef VERBOSE_EXCEPTIONS */\n/// skipped \"Stream closed\"\n/* #endif */\n );\n }\n }", "@Override\n protected void initiateStream() {\n // Execute the test by calling its processStream() entry point\n // and recording how long it takes to run.\n List<List<SearchResults>> results = RunTimer\n .timeRun(this::processStream, TAG);\n\n // Print the results of the test.\n printResults(TAG, results);\n }", "public OutputStream getOutputStream() throws IOException {\n \t\t \tOutputStream stream = new RSuiteOutputStream();\r\n \t\t \r\n \t\t \tClassLoader saved = Thread.currentThread().getContextClassLoader();\r\n\t\t\ttry {\r\n\t\t\t\t Thread.currentThread().setContextClassLoader(this.getClass().getClassLoader());\r\n\t\t\t\t \r\n\t\t\t\t log.println(\"CREATED RSUITE OUTPUT STREAM.\");\t\t\t\t \r\n\t\t\t\t log.println(\"RETURNING RSUITE OUTPUT STREAM TO OXYGEN...\");\r\n\t\t\t}\r\n\t\t\tcatch(Throwable t){\r\n\t\t\t\tif (log != null) t.printStackTrace(log);\r\n\t\t\t}\r\n\t\t\tfinally{\r\n\t\t\t\tThread.currentThread().setContextClassLoader(saved);\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\treturn stream;\r\n\t\t}", "public void turnOnSystemOutput(){\n if(originalSystemOut == null){\n originalSystemOut = System.out;\n System.setOut(new PrintStream(generalStream));\n //will cause CSS hang up\n// System.setIn(console.getInputStream());\n }\n }", "public void testFlush_NoOutputStream() {\n StreamHandler h = new StreamHandler();\n h.flush();\n }", "public static void setLog(java.io.OutputStream out)\n {\n logNull = (out == null);\n UnicastServerRef.callLog.setOutputStream(out);\n }", "public void testSetOutputStream_Normal() {\n ByteArrayOutputStream aos = new ByteArrayOutputStream();\n MockStreamHandler h = new MockStreamHandler(aos, new MockFormatter());\n\n LogRecord r = new LogRecord(Level.INFO, \"testSetOutputStream_Normal\");\n h.publish(r);\n assertSame(r, CallVerificationStack.getInstance().pop());\n assertTrue(CallVerificationStack.getInstance().empty());\n h.flush();\n assertEquals(\"MockFormatter_Head\" + \"testSetOutputStream_Normal\", aos\n .toString());\n\n ByteArrayOutputStream aos2 = new ByteArrayOutputStream();\n h.setOutputStream(aos2);\n assertEquals(\"MockFormatter_Head\" + \"testSetOutputStream_Normal\"\n + \"MockFormatter_Tail\", aos.toString());\n r = new LogRecord(Level.INFO, \"testSetOutputStream_Normal2\");\n h.publish(r);\n assertSame(r, CallVerificationStack.getInstance().pop());\n assertTrue(CallVerificationStack.getInstance().empty());\n h.flush();\n assertEquals(\"MockFormatter_Head\" + \"testSetOutputStream_Normal2\", aos2\n .toString());\n assertEquals(\"MockFormatter_Head\" + \"testSetOutputStream_Normal\"\n + \"MockFormatter_Tail\", aos.toString());\n }", "public void testClose_NoOutputStream() {\n StreamHandler h = new StreamHandler();\n h.close();\n }", "public OutputStream getOutputStream();", "public static synchronized GridTestPrintStream acquireErr() {\n // Lazy initialization is required here to ensure that parent\n // thread group is picked off correctly by implementation.\n if (testErr == null)\n testErr = new GridTestPrintStream(sysErr);\n\n if (errCnt == 0)\n System.setErr(testErr);\n\n errCnt++;\n\n return testErr;\n }", "public void testPublish_NoOutputStream() {\n StreamHandler h = new StreamHandler();\n LogRecord r = new LogRecord(Level.INFO, \"testPublish_NoOutputStream\");\n h.publish(r);\n\n h.setLevel(Level.WARNING);\n h.publish(r);\n\n h.setLevel(Level.CONFIG);\n h.publish(r);\n\n r.setLevel(Level.OFF);\n h.setLevel(Level.OFF);\n h.publish(r);\n }", "public StreamResult getOutput() {\n return output;\n }", "protected void finalizeSystemOut() {}", "@Test\n public void testWriteToStream() throws Exception {\n System.out.println(\"writeToStream\");\n FileOutputStream output = new FileOutputStream(\"tmp.log\");\n String data = \"abc\";\n boolean expResult = true;\n boolean result = IOUtil.writeToStream(output, data);\n assertEquals(expResult, result);\n result = IOUtil.writeToStream(output, null);\n assertEquals(false, result);\n\n }", "protected void instrumentIO()\r\n {\r\n // Clear out all the stream history stuff\r\n tcIn = null;\r\n tcOut = null;\r\n tcInBuf = null;\r\n\r\n // Make sure these are history-wrapped\r\n SystemIOUtilities.out();\r\n SystemIOUtilities.err();\r\n\r\n // First, make sure the original System.in gets captured, so it\r\n // can be restored later\r\n SystemIOUtilities.replaceSystemInContents(null);\r\n\r\n // The previous line actually replaced System.in, but now we'll\r\n // \"replace the replacement\" with one that uses fail() if it\r\n // has no contents.\r\n System.setIn(new MutableStringBufferInputStream((String)null)\r\n {\r\n protected void handleMissingContents()\r\n {\r\n fail(\"Attempt to access System.in before its contents \"\r\n + \"have been set\");\r\n }\r\n });\r\n }", "static public PrintStream getPrintStream() {\n \t return out;\n }", "public void setOutputStream(OutputStream outputStream) {\n this.outputStream = outputStream;\n }", "void redirectOutput() {\n Process process = _vm.process();\n _errThread = new StreamRedirectThread(\"error reader\", process.getErrorStream(), System.err);\n _outThread = new StreamRedirectThread(\"output reader\", process.getInputStream(), System.out);\n _errThread.start();\n _outThread.start();\n }", "public ServletOutputStreamMock() {\n\t\tthis(new ByteArrayOutputStream());\n\t}", "public void setupLogging() {\n\t\ttry {\n\t\t\t_logger = Logger.getLogger(QoSModel.class);\n\t\t\tSimpleLayout layout = new SimpleLayout();\n\t\t\t_appender = new FileAppender(layout,_logFileName+\".txt\",false);\n\t\t\t_logger.addAppender(_appender);\n\t\t\t_logger.setLevel(Level.ALL);\n\t\t\tSystem.setOut(createLoggingProxy(System.out));\n\t\t}\n\t\tcatch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "public interface OutputStrategy {\n\n\tpublic OutputStream getOutputStream(Config config);\n\tpublic void close();\n}", "public void testPublish_AfterClose() throws Exception {\n Properties p = new Properties();\n p.put(\"java.util.logging.StreamHandler.level\", \"FINE\");\n LogManager.getLogManager().readConfiguration(\n EnvironmentHelper.PropertiesToInputStream(p));\n\n ByteArrayOutputStream aos = new ByteArrayOutputStream();\n StreamHandler h = new StreamHandler(aos, new MockFormatter());\n assertSame(h.getLevel(), Level.FINE);\n LogRecord r = new LogRecord(Level.INFO, \"testPublish_NoFormatter\");\n assertTrue(h.isLoggable(r));\n h.close();\n assertFalse(h.isLoggable(r));\n h.publish(r);\n h.flush();\n assertEquals(\"MockFormatter_HeadMockFormatter_Tail\", aos.toString());\n }", "static public void setPrintStream( PrintStream out ) {\n \t Debug.out = out;\n }", "InputStream getStdout();", "void setupFileLogging();", "@Test\n public void localAction_stdoutIsReported() throws Exception {\n if (OS.getCurrent() == OS.WINDOWS) {\n return;\n }\n write(\n \"BUILD\",\n \"genrule(\",\n \" name = 'foo',\",\n \" srcs = [],\",\n \" outs = ['out/foo.txt'],\",\n \" cmd = 'echo my-output-message > $@',\",\n \")\",\n \"genrule(\",\n \" name = 'foobar',\",\n \" srcs = [':foo'],\",\n \" outs = ['out/foobar.txt'],\",\n \" cmd = 'cat $(location :foo) && touch $@',\",\n \" tags = ['no-remote'],\",\n \")\");\n RecordingOutErr outErr = new RecordingOutErr();\n this.outErr = outErr;\n\n buildTarget(\"//:foobar\");\n waitDownloads();\n\n assertOutputContains(outErr.outAsLatin1(), \"my-output-message\");\n }", "@Override\n public boolean isUseInOutLogging() {\n return true;\n }", "public abstract InputStream stdout();", "protected final void setOutputStream(LoggedDataOutputStream outputStream) {\n if (this.outputStream == outputStream) return ;\n if (this.outputStream != null) {\n try {\n this.outputStream.close();\n } catch (IOException ioex) {/*Ignore*/}\n }\n this.outputStream = outputStream;\n }", "@Override\n public void init() throws Exception {\n // allocate a new logger\n Logger logger = Logger.getLogger(\"processinfo\");\n\n // add some extra output channels, using mask bit 6\n try {\n outputStream = new FileOutputStream(filename);\n logger.addOutput(new PrintWriter(outputStream), new BitMask(MASK.APP));\n } catch (Exception e) {\n LoggerFactory.getLogger(TcpdumpReporter.class).error(e.getMessage());\n }\n\n }", "@After\n public void tearDown() {\n System.out.flush();\n System.setOut(originalPrintStream);\n log.log(Level.INFO, \"\\n\" + bout.toString());\n }", "public void setOutput(TestOut output) {\n\tthis.output = output;\n\tsuper.setOutput(output);\n }", "public synchronized void setOutputStream(OutputStream stream) {\n\tthis.outputStream = stream;\n\t//Debug.out(\"AudioCapture.setOutputStream(): output stream: \" + this.outputStream);\n\tif (this.outputStream == null && thread != null) {\n\t thread.terminate();\n\t thread = null;\n\t}\n }", "public void setOutputStream(OutputStream out) {\n this.output = out;\n }", "protected OutputStream _createDataOutputWrapper(DataOutput out)\n/* */ {\n/* 1520 */ return new DataOutputAsStream(out);\n/* */ }", "public interface OutputStreamFactory {\n\n /**\n * Create an output stream for file location.\n * String that represents file location should be relative path, '/' is a delimiter.\n *\n * @param location sting that contains relative file location\n *\n * @return new stream instance\n */\n OutputStream createStream(String location);\n}", "public static void generate(Stream stream, PrintStream output) {\n generate(SparseStream.fromStream(stream, Ownership.None), output);\n }", "@Test\n public void testOutputCsvStream() throws Throwable {\n testOutputCSV(true);\n }", "private void setupCollector() {\n outList = new ArrayList<>();\n }", "@Test\n public void shouldLogMessage() {\n ILogger logger = new SysoutLogger();\n logger.log(\"hello\");\n assertThat(outContent.toString(), is(\"hello\" + System.getProperty(\"line.separator\")));\n }", "protected OutputStream getOutputStream() throws IOException {\n if (caller.FRAMES.equals(caller.format)){\n return new ByteArrayOutputStream();\n } else {\n return new FileOutputStream(new File(caller.toDir, \"junit-noframes.html\"));\n }\n }", "private void open()\n {\n try\n {\n // Found how to append to a file here \n //http://stackoverflow.com/questions/1625234/how-to-append-text-to-an-existing-file-in-java\n r = new PrintWriter( new BufferedWriter(new FileWriter(filePath, true)));\n }\n catch( IOException e )\n {\n r = null;\n UI.println(\"An error occored when operning stream to the log file.\\n This game wont be logged\");\n Trace.println(e);\n }\n }", "OutputStream getOutputStream() throws IOException;", "private void initializeConsole()\n {\n final ConsolePrintStream consolePrintStream = new ConsolePrintStream(this.informationMessage);\n System.setOut(consolePrintStream.getPrintStream());\n }", "public Writer get_log_stream() {\r\n return stream;\r\n }", "protected abstract OutputStream getStream() throws IOException;", "@After\n public void tearDown(){\n final String standardOutput = myOut.toString();\n final String standardError = myErr.toString();\n assertEquals(\"You used 'System.out' in your assignment, This is not allowed.\",true, standardOutput.length() == 0);\n assertEquals(\"You used 'System.err' in your assignment, This is not allowed.\",true, standardError.length() == 0);\n System.err.flush();\n System.out.flush();\n System.setOut(new PrintStream(new FileOutputStream(FileDescriptor.out)));\n System.setErr(new PrintStream(new FileOutputStream(FileDescriptor.err)));\n }", "@Test\n public void testWriteToPrintWriter() throws Exception {\n System.out.println(\"writeToPrintWriter\");\n PrintWriter output = new PrintWriter(\"tmp.log\");\n String data = \"abc\";\n boolean expResult = true;\n boolean result = IOUtil.writeToPrintWriter(output, data);\n assertEquals(expResult, result);\n result = IOUtil.writeToPrintWriter(output, null);\n assertEquals(false, result);\n\n }", "@After\n public void tearDown() {\n System.out.flush();\n }", "protected StreamPrintService(OutputStream out) {\n this.outStream = out;\n }", "private void setupStreams() throws IOException {\n\t\toutput = new ObjectOutputStream(Connection.getOutputStream());\n\t\toutput.flush();\n\t\tinput = new ObjectInputStream(Connection.getInputStream()); \n\t\tshowMessage(\"\\n Streams have successfully connected.\");\n\t}", "public NullPrintStream()\r\n\t{\r\n\t\tsuper(System.out);\r\n\t}", "@Test\n public void testWorkerIO_doesWrapSystemStreams() throws Exception {\n InputStream originalInputStream = System.in;\n PrintStream originalOutputStream = System.out;\n PrintStream originalErrorStream = System.err;\n\n // Swap in the test streams to assert against\n ByteArrayInputStream byteArrayInputStream = new ByteArrayInputStream(new byte[0]);\n System.setIn(byteArrayInputStream);\n PrintStream outputBuffer = new PrintStream(new ByteArrayOutputStream(), true);\n System.setOut(outputBuffer);\n System.setErr(outputBuffer);\n\n try (outputBuffer;\n byteArrayInputStream;\n WorkRequestHandler.WorkerIO io = WorkRequestHandler.WorkerIO.capture()) {\n // Assert that the WorkerIO returns the correct wrapped streams and the new System instance\n // has been swapped out with the wrapped one\n assertThat(io.getOriginalInputStream()).isSameInstanceAs(byteArrayInputStream);\n assertThat(System.in).isNotSameInstanceAs(byteArrayInputStream);\n\n assertThat(io.getOriginalOutputStream()).isSameInstanceAs(outputBuffer);\n assertThat(System.out).isNotSameInstanceAs(outputBuffer);\n\n assertThat(io.getOriginalErrorStream()).isSameInstanceAs(outputBuffer);\n assertThat(System.err).isNotSameInstanceAs(outputBuffer);\n } finally {\n // Swap back in the original streams\n System.setIn(originalInputStream);\n System.setOut(originalOutputStream);\n System.setErr(originalErrorStream);\n }\n }", "public LoggedDataOutputStream getOutputStream() {\n return outputStream;\n }", "static final void flushSystemOut()\n {\n PrintStream out = sysOut;\n if (out != null)\n {\n try\n {\n out.flush();\n }\n catch (Error e) {}\n catch (RuntimeException e) {}\n }\n }", "static final void setSystemOut(\n PrintStream out) /* hard-coded method signature */\n {\n sysOut = out;\n }", "private void logOutputFile(TestInfo test, ITestInvocationListener listener)\n throws DeviceNotAvailableException {\n File resFile = null;\n InputStreamSource outputSource = null;\n\n try {\n resFile = mTestDevice.pullFileFromExternal(mOutputFile);\n if (resFile != null) {\n // Save a copy of the output file\n CLog.d(\"Sending %d byte file %s into the logosphere!\",\n resFile.length(), resFile);\n outputSource = new FileInputStreamSource(resFile);\n listener.testLog(String.format(\"result-%s.txt\", test.mTestName), LogDataType.TEXT,\n outputSource);\n\n // Parse the results file and post results to test listener\n parseOutputFile(test, resFile, listener);\n }\n } finally {\n FileUtil.deleteFile(resFile);\n StreamUtil.cancel(outputSource);\n }\n }", "public final OutputStream getOutputStream() {\n return outputStream;\n }", "public void turnOffSystemOutput() {\n if (originalSystemOut != null) {\n System.setOut(originalSystemOut);\n originalSystemOut = null;\n\n // WARNING: It is not possible to reconfigure the logger here! This\n // method is called in the UI thread, so reconfiguring the logger\n // here would mean that the UI thread waits for the logger, which\n // could cause a deadlock.\n }\n }", "public WriteLogger( )\n {\n this.logfilename = null;\n\n this.logfile = null;\n this.out = null;\n }", "@NotNull OutputStream openOutputStream() throws IOException;", "public void start() {\n PrintStream printStream = new PrintStream(output, true) {\n @Override\n public void close() {\n super.close();\n stop();\n }\n };\n //Redirect the System.Err and System.out to the new PrintStream that was created\n System.setErr(printStream);\n System.setOut(printStream);\n running = true;\n flushThread.start();\n }", "public void logToXML( Resource output ) {\r\n\t\ttry( OutputStream out = output.newOutputStream() ) {\r\n\t\t\tlogToXML( out );\r\n\t\t} catch( IOException e ) {\r\n\t\t\tthrow new FatalIOException( e );\r\n\t\t}\r\n\t}", "@BeforeClass\n public static void setupClass() {\n build = System.getenv(\"BUILD\");\n \n File logFile = new File(LOG_FILE);\n if(!logFile.exists()) {\n System.out.println(\"Creating log file\");\n try {\n logFile.createNewFile();\n System.out.println(\"Created log file: \" + logFile.getPath());\n } catch (IOException e) {\n System.out.println(e.getMessage());\n //e.printStackTrace();\n }\n }\n \n try {\n FileHandler fileHandler = new FileHandler(logFile.getPath());\n fileHandler.setFormatter(new LogFormatter());\n LOGGER.addHandler(fileHandler);\n \n } catch (SecurityException e) {\n System.out.println(e.getMessage());\n //e.printStackTrace();\n } catch (IOException e) {\n System.out.println(e.getMessage());\n //e.printStackTrace();\n }\n \n LOGGER.setUseParentHandlers(false);\n \n }", "public static void RedirectOutput() {\t\n\t\ttry {\n\t\t\tPrintStream out = new PrintStream(new FileOutputStream(\"ybus.txt\"));\n\t\t\tSystem.setOut(out); //Re-assign the standard output stream to a file.\n\t\t} catch (FileNotFoundException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "void initializeLogging();", "public static OutputStream nullOutput() {\n if(nullOut == null) {\n nullOut = new NullOutputStream();\n }\n return nullOut;\n }", "public void testPublish_Null_NoOutputStream() {\n StreamHandler h = new StreamHandler();\n h.publish(null);\n // regression test for Harmony-1279\n MockFilter filter = new MockFilter();\n h.setLevel(Level.FINER);\n h.setFilter(filter);\n LogRecord record = new LogRecord(Level.FINE, \"abc\");\n h.publish(record);\n // verify that filter.isLoggable is not called, because there's no\n // associated output stream.\n assertTrue(CallVerificationStack.getInstance().empty());\n }", "protected void openStream ()\n {\n stream = Util.stream (entry, \"Holder.java\");\n }", "public final PrintStream getInputStream() {\n return inputStream;\n }", "public void setOutput(String output) { this.output = output; }", "public abstract void printToStream(PrintStream stream);", "public void setLogWriter(PrintWriter out) throws ResourceException {\n log.finest(\"setLogWriter()\");\n logwriter = out;\n }", "public void setTomopitchOutput() {\n if (dialog == null) {\n return;\n }\n TomopitchLog log = new TomopitchLog(manager, axisID);\n if (!setParameters(log)) {\n openTomopitchLog();\n }\n }" ]
[ "0.72059107", "0.6715195", "0.64192706", "0.62655276", "0.6138219", "0.60192174", "0.59534806", "0.5933762", "0.5872618", "0.5782252", "0.57775784", "0.5767355", "0.5760742", "0.5693966", "0.56815976", "0.56351244", "0.5610747", "0.5595481", "0.5590012", "0.5583382", "0.5553279", "0.5552355", "0.5507031", "0.5484387", "0.5462048", "0.5447581", "0.54458016", "0.5442483", "0.5432109", "0.54264355", "0.5421879", "0.5407108", "0.5405148", "0.5402578", "0.53908104", "0.5384596", "0.5367889", "0.53575283", "0.5345109", "0.53342116", "0.533415", "0.53310406", "0.532525", "0.53066146", "0.5303311", "0.5301666", "0.5297303", "0.5280311", "0.5276205", "0.5262641", "0.5262534", "0.5261237", "0.525277", "0.5233699", "0.52323616", "0.521421", "0.5204948", "0.5202346", "0.5195249", "0.5185211", "0.51808494", "0.51794314", "0.51773596", "0.5172802", "0.5167377", "0.5164123", "0.5160569", "0.5151689", "0.51397794", "0.51383257", "0.513808", "0.51311064", "0.5128584", "0.5125422", "0.511858", "0.5117335", "0.51073426", "0.5101477", "0.5096672", "0.50905627", "0.508839", "0.50777537", "0.5076062", "0.5068838", "0.5067185", "0.5064869", "0.505977", "0.505192", "0.5051412", "0.5048111", "0.5037179", "0.5036063", "0.5035798", "0.5032364", "0.5031424", "0.50288385", "0.5028691", "0.50280577", "0.5024021", "0.50185734" ]
0.6409513
3
Acquires output stream for logging errors in tests.
public static synchronized GridTestPrintStream acquireErr() { // Lazy initialization is required here to ensure that parent // thread group is picked off correctly by implementation. if (testErr == null) testErr = new GridTestPrintStream(sysErr); if (errCnt == 0) System.setErr(testErr); errCnt++; return testErr; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void openOutputStream() {\n\t\tPrintStreamManagement.openOutputStream();\n\t}", "@Before\n\tpublic void setUpStreams() {\n\t\tSystem.setOut(new PrintStream(outContent));\n\t}", "static PrintStream outputStream() {\n return System.err;\n }", "private void ensureOpen() throws IOException {\n if (out == null) {\n throw new IOException(\n/* #ifdef VERBOSE_EXCEPTIONS */\n/// skipped \"Stream closed\"\n/* #endif */\n );\n }\n }", "public static\n void hookSystemOutputStreams() {\n out();\n err();\n }", "public static void setLogStream(PrintStream log) {\n out = log;\n }", "@Before\n public void changeOutStream() {\n PrintStream printStream = new PrintStream(outContent);\n System.setOut(printStream);\n }", "private void closeOutputStream() {\n\t\tPrintStreamManagement.closeOutputStream();\n\t}", "public interface StdLogOutput {\n\n /**\n * The default {@link StdLogOutput}, which logs to stdout.\n */\n public static class DefaultLogOutput implements StdLogOutput {\n\n @Override\n public void log(String msg) {\n System.out.println(msg);\n }\n\n @Override\n public void log(Throwable error) {\n error.printStackTrace();\n }\n\n @Override\n public void close() {\n }\n }\n\n /**\n * @param msg\n * the message to log.\n */\n public void log(String msg);\n\n /**\n * @param error\n * a {@link Throwable} whose stack trace should be logged.\n */\n public void log(Throwable error);\n\n /**\n * Closes this instance.\n */\n public void close();\n}", "void redirectOutput() {\n Process process = _vm.process();\n _errThread = new StreamRedirectThread(\"error reader\", process.getErrorStream(), System.err);\n _outThread = new StreamRedirectThread(\"output reader\", process.getInputStream(), System.out);\n _errThread.start();\n _outThread.start();\n }", "public abstract InputStream stderr();", "public abstract PrintStream getOutputStream();", "synchronized static void initStreams()\n {\n if ( !initialized )\n {\n out = ansiStream(true);\n err = ansiStream(false);\n initialized = true;\n }\n }", "public void logStreams() {\n logger.debug(\"error stream:\");\n logStream(this.bufferedErrorStream, false);\n logger.debug(\"input stream:\");\n logStream(this.bufferedInputStream, true);\n }", "@After\n public void tearDown(){\n final String standardOutput = myOut.toString();\n final String standardError = myErr.toString();\n assertEquals(\"You used 'System.out' in your assignment, This is not allowed.\",true, standardOutput.length() == 0);\n assertEquals(\"You used 'System.err' in your assignment, This is not allowed.\",true, standardError.length() == 0);\n System.err.flush();\n System.out.flush();\n System.setOut(new PrintStream(new FileOutputStream(FileDescriptor.out)));\n System.setErr(new PrintStream(new FileOutputStream(FileDescriptor.err)));\n }", "public void testSetOutputStream_null() {\n MockStreamHandler h = new MockStreamHandler(\n new ByteArrayOutputStream(), new SimpleFormatter());\n try {\n h.setOutputStream(null);\n fail(\"Should throw NullPointerException!\");\n } catch (NullPointerException e) {\n // expected\n }\n }", "@After\n public void returnOutStream() { //\n System.setOut(System.out);\n }", "private void _debugSystemOutAndErr() {\n try {\n File outF = new File(System.getProperty(\"user.home\") +\n System.getProperty(\"file.separator\") + \"out.txt\");\n FileWriter wo = new FileWriter(outF);\n final PrintWriter outWriter = new PrintWriter(wo);\n File errF = new File(System.getProperty(\"user.home\") +\n System.getProperty(\"file.separator\") + \"err.txt\");\n FileWriter we = new FileWriter(errF);\n final PrintWriter errWriter = new PrintWriter(we);\n System.setOut(new PrintStream(new edu.rice.cs.util.OutputStreamRedirector() {\n public void print(String s) {\n outWriter.print(s);\n outWriter.flush();\n }\n }));\n System.setErr(new PrintStream(new edu.rice.cs.util.OutputStreamRedirector() {\n public void print(String s) {\n errWriter.print(s);\n errWriter.flush();\n }\n }));\n }\n catch (IOException ioe) {}\n }", "@AfterClass\n public static void finalise()\n {\n System.setOut(SYSTEM_OUT_ORIGINAL);\n }", "public void setErr(PrintStream err);", "@Before\n public void setup(){\n output = new TestingOutputInterface();\n mLogic = new Logic(output);\n \n System.err.flush();\n System.out.flush();\n myOut = new ByteArrayOutputStream();\n myErr = new ByteArrayOutputStream();\n System.setOut(new PrintStream(myOut));\n System.setErr(new PrintStream(myErr));\n }", "@Before\n\tpublic void loadOutput() {\n\t\tSystem.setOut(new PrintStream(this.out));\n\t}", "protected void finalizeSystemOut() {}", "public static synchronized GridTestPrintStream acquireOut() {\n // Lazy initialization is required here to ensure that parent\n // thread group is picked off correctly by implementation.\n if (testOut == null)\n testOut = new GridTestPrintStream(sysOut);\n\n if (outCnt == 0)\n System.setOut(testOut);\n\n outCnt++;\n\n return testOut;\n }", "public void testSetOutputStream_AfterClose() {\n ByteArrayOutputStream aos = new ByteArrayOutputStream();\n MockStreamHandler h = new MockStreamHandler(aos, new MockFormatter());\n\n LogRecord r = new LogRecord(Level.INFO, \"testSetOutputStream_Normal\");\n h.publish(r);\n assertSame(r, CallVerificationStack.getInstance().pop());\n assertTrue(CallVerificationStack.getInstance().empty());\n h.flush();\n assertEquals(\"MockFormatter_Head\" + \"testSetOutputStream_Normal\", aos\n .toString());\n h.close();\n\n ByteArrayOutputStream aos2 = new ByteArrayOutputStream();\n h.setOutputStream(aos2);\n assertEquals(\"MockFormatter_Head\" + \"testSetOutputStream_Normal\"\n + \"MockFormatter_Tail\", aos.toString());\n r = new LogRecord(Level.INFO, \"testSetOutputStream_Normal2\");\n h.publish(r);\n assertSame(r, CallVerificationStack.getInstance().pop());\n assertTrue(CallVerificationStack.getInstance().empty());\n h.flush();\n assertEquals(\"MockFormatter_Head\" + \"testSetOutputStream_Normal2\", aos2\n .toString());\n assertEquals(\"MockFormatter_Head\" + \"testSetOutputStream_Normal\"\n + \"MockFormatter_Tail\", aos.toString());\n }", "public void testClose_NoOutputStream() {\n StreamHandler h = new StreamHandler();\n h.close();\n }", "@After\n\tpublic void restoreStreams() {\n\t\tSystem.setOut(originalOut);\n\t}", "ProcessExecutor cloneWithOutputStreams(PrintStream stdOutStream, PrintStream stdErrStream);", "@Test\n public void localAction_stdoutIsReported() throws Exception {\n if (OS.getCurrent() == OS.WINDOWS) {\n return;\n }\n write(\n \"BUILD\",\n \"genrule(\",\n \" name = 'foo',\",\n \" srcs = [],\",\n \" outs = ['out/foo.txt'],\",\n \" cmd = 'echo my-output-message > $@',\",\n \")\",\n \"genrule(\",\n \" name = 'foobar',\",\n \" srcs = [':foo'],\",\n \" outs = ['out/foobar.txt'],\",\n \" cmd = 'cat $(location :foo) && touch $@',\",\n \" tags = ['no-remote'],\",\n \")\");\n RecordingOutErr outErr = new RecordingOutErr();\n this.outErr = outErr;\n\n buildTarget(\"//:foobar\");\n waitDownloads();\n\n assertOutputContains(outErr.outAsLatin1(), \"my-output-message\");\n }", "@Test\n public void localAction_stderrIsReported() throws Exception {\n if (OS.getCurrent() == OS.WINDOWS) {\n return;\n }\n write(\n \"BUILD\",\n \"genrule(\",\n \" name = 'foo',\",\n \" srcs = [],\",\n \" outs = ['out/foo.txt'],\",\n \" cmd = 'echo my-error-message > $@',\",\n \")\",\n \"genrule(\",\n \" name = 'foobar',\",\n \" srcs = [':foo'],\",\n \" outs = ['out/foobar.txt'],\",\n \" cmd = 'cat $(location :foo) >&2 && exit 1',\",\n \" tags = ['no-remote'],\",\n \")\");\n RecordingOutErr outErr = new RecordingOutErr();\n this.outErr = outErr;\n\n assertThrows(BuildFailedException.class, () -> buildTarget(\"//:foobar\"));\n\n assertOutputContains(outErr.errAsLatin1(), \"my-error-message\");\n }", "@Test\n public void shouldSuccedWithOneOuptutRedirection() {\n Template template = createTemplate(\"stdout\", \"file\");\n new OutputRedirectionTemplateValidator(\"stdout\").validate(template, new NullHeterogeneousRegistry());\n }", "public void setOut(PrintStream out);", "InputStream getStderr();", "public static synchronized PrintStream getStdErr() {\n return sysErr;\n }", "private void setupWriter() {\n output = new StringWriter();\n writer = new PrintWriter(output);\n }", "OutputStream getOutputStream()\n {\n return outputStream;\n }", "private Output() {}", "protected abstract OutputStream getStream() throws IOException;", "@Test\n public void testWorkerIO_doesWrapSystemStreams() throws Exception {\n InputStream originalInputStream = System.in;\n PrintStream originalOutputStream = System.out;\n PrintStream originalErrorStream = System.err;\n\n // Swap in the test streams to assert against\n ByteArrayInputStream byteArrayInputStream = new ByteArrayInputStream(new byte[0]);\n System.setIn(byteArrayInputStream);\n PrintStream outputBuffer = new PrintStream(new ByteArrayOutputStream(), true);\n System.setOut(outputBuffer);\n System.setErr(outputBuffer);\n\n try (outputBuffer;\n byteArrayInputStream;\n WorkRequestHandler.WorkerIO io = WorkRequestHandler.WorkerIO.capture()) {\n // Assert that the WorkerIO returns the correct wrapped streams and the new System instance\n // has been swapped out with the wrapped one\n assertThat(io.getOriginalInputStream()).isSameInstanceAs(byteArrayInputStream);\n assertThat(System.in).isNotSameInstanceAs(byteArrayInputStream);\n\n assertThat(io.getOriginalOutputStream()).isSameInstanceAs(outputBuffer);\n assertThat(System.out).isNotSameInstanceAs(outputBuffer);\n\n assertThat(io.getOriginalErrorStream()).isSameInstanceAs(outputBuffer);\n assertThat(System.err).isNotSameInstanceAs(outputBuffer);\n } finally {\n // Swap back in the original streams\n System.setIn(originalInputStream);\n System.setOut(originalOutputStream);\n System.setErr(originalErrorStream);\n }\n }", "protected void instrumentIO()\r\n {\r\n // Clear out all the stream history stuff\r\n tcIn = null;\r\n tcOut = null;\r\n tcInBuf = null;\r\n\r\n // Make sure these are history-wrapped\r\n SystemIOUtilities.out();\r\n SystemIOUtilities.err();\r\n\r\n // First, make sure the original System.in gets captured, so it\r\n // can be restored later\r\n SystemIOUtilities.replaceSystemInContents(null);\r\n\r\n // The previous line actually replaced System.in, but now we'll\r\n // \"replace the replacement\" with one that uses fail() if it\r\n // has no contents.\r\n System.setIn(new MutableStringBufferInputStream((String)null)\r\n {\r\n protected void handleMissingContents()\r\n {\r\n fail(\"Attempt to access System.in before its contents \"\r\n + \"have been set\");\r\n }\r\n });\r\n }", "public void testFlush_NoOutputStream() {\n StreamHandler h = new StreamHandler();\n h.flush();\n }", "public void set_log_stream(Writer strm) {\r\n stream = strm;\r\n }", "public interface OutputStreamFactory {\n\n /**\n * Create an output stream for file location.\n * String that represents file location should be relative path, '/' is a delimiter.\n *\n * @param location sting that contains relative file location\n *\n * @return new stream instance\n */\n OutputStream createStream(String location);\n}", "public abstract InputStream stdout();", "@Test\n public void shouldSucceedWithNoOutputRedirections() {\n Template template = createTemplate(\"file\", \"file\");\n new OutputRedirectionTemplateValidator(\"stdout\").validate(template, new NullHeterogeneousRegistry());\n }", "public PrintStreamCommandOutput( PrintStream output )\n {\n this( output, System.err );\n }", "@Test\n public void testOutputCsvStream() throws Throwable {\n testOutputCSV(true);\n }", "static final void flushSystemOut()\n {\n PrintStream out = sysOut;\n if (out != null)\n {\n try\n {\n out.flush();\n }\n catch (Error e) {}\n catch (RuntimeException e) {}\n }\n }", "OutputStream getOutputStream() throws IOException;", "protected OutputStream getOutputStream() throws IOException {\n if (caller.FRAMES.equals(caller.format)){\n return new ByteArrayOutputStream();\n } else {\n return new FileOutputStream(new File(caller.toDir, \"junit-noframes.html\"));\n }\n }", "public void turnOnSystemOutput(){\n if(originalSystemOut == null){\n originalSystemOut = System.out;\n System.setOut(new PrintStream(generalStream));\n //will cause CSS hang up\n// System.setIn(console.getInputStream());\n }\n }", "@Before\n\tpublic void setUp() throws Exception {\n\t\tSystem.setOut(new PrintStream(out));\n\t\tSystem.setErr(new PrintStream(err));\n\n\t}", "public void testPrintStackTracePrintStream() {\n Throwable th;\n ByteArrayOutputStream ba = new ByteArrayOutputStream(); \n PrintStream ps = new PrintStream(ba);\n th = prepareThrowables();\n th.printStackTrace(ps);\n assertEquals(\"incorrect info printed in stack trace\",\n printOutput, ba.toString());\n }", "public static void setup() {\n\t\toutputs.add(new Console.stdout());\n\t}", "public void logToXML( Resource output ) {\r\n\t\ttry( OutputStream out = output.newOutputStream() ) {\r\n\t\t\tlogToXML( out );\r\n\t\t} catch( IOException e ) {\r\n\t\t\tthrow new FatalIOException( e );\r\n\t\t}\r\n\t}", "@Test\n public void testWriteToStream() throws Exception {\n System.out.println(\"writeToStream\");\n FileOutputStream output = new FileOutputStream(\"tmp.log\");\n String data = \"abc\";\n boolean expResult = true;\n boolean result = IOUtil.writeToStream(output, data);\n assertEquals(expResult, result);\n result = IOUtil.writeToStream(output, null);\n assertEquals(false, result);\n\n }", "public static PrintStream sysErr() {\n return system_err;\n }", "private void redirectSystemStreams() {\r\n\t\tOutputStream out = new OutputStream() {\r\n\t\t\t@Override\r\n\t\t\tpublic void write(int b) throws IOException {\r\n\t\t\t\tupdateTextArea(String.valueOf((char) b));\r\n\t\t\t}\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic void write(byte[] b, int off, int len) throws IOException {\r\n\t\t\t\tupdateTextArea(new String(b, off, len));\r\n\t\t\t}\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic void write(byte[] b) throws IOException {\r\n\t\t\t\twrite(b, 0, b.length);\r\n\t\t\t}\r\n\t\t};\r\n\r\n\t\tSystem.setOut(new PrintStream(out, true));\r\n\t\tSystem.setErr(new PrintStream(out, true));\r\n\t}", "public StorageOutputStream(OutputStream o) throws Exception {\r\n\tout = o;\r\n}", "public static void setLog(java.io.OutputStream out)\n {\n logNull = (out == null);\n UnicastServerRef.callLog.setOutputStream(out);\n }", "public StreamResult getOutput() {\n return output;\n }", "protected void setUp() throws Exception {\n String workingDir = getWorkDirPath();\n new File(workingDir).mkdirs();\n File outputFile = new File(workingDir + \"/output.txt\");\n outputFile.createNewFile();\n File errorFile = new File(workingDir + \"/error.txt\");\n errorFile.createNewFile();\n PrintWriter outputWriter = new PrintWriter(new FileWriter(outputFile));\n PrintWriter errorWriter = new PrintWriter(new FileWriter(errorFile));\n org.netbeans.jemmy.JemmyProperties.setCurrentOutput(new org.netbeans.jemmy.TestOut(System.in, outputWriter, errorWriter));\n }", "static void mainTest(PrintWriter out) throws Exception {\n\t}", "static public void setPrintStream( PrintStream out ) {\n \t Debug.out = out;\n }", "@Test(expected = TooManyOutputRedirectionsException.class)\n public void shouldFailWithTwoOutputRedirections() {\n Template template = createTemplate(\"stdout\", \"stdout\");\n new OutputRedirectionTemplateValidator(\"stdout\").validate(template, new NullHeterogeneousRegistry());\n }", "OutputStream getOutputStream();", "public OutputStream getOutputStream() throws IOException {\n \t\t \tOutputStream stream = new RSuiteOutputStream();\r\n \t\t \r\n \t\t \tClassLoader saved = Thread.currentThread().getContextClassLoader();\r\n\t\t\ttry {\r\n\t\t\t\t Thread.currentThread().setContextClassLoader(this.getClass().getClassLoader());\r\n\t\t\t\t \r\n\t\t\t\t log.println(\"CREATED RSUITE OUTPUT STREAM.\");\t\t\t\t \r\n\t\t\t\t log.println(\"RETURNING RSUITE OUTPUT STREAM TO OXYGEN...\");\r\n\t\t\t}\r\n\t\t\tcatch(Throwable t){\r\n\t\t\t\tif (log != null) t.printStackTrace(log);\r\n\t\t\t}\r\n\t\t\tfinally{\r\n\t\t\t\tThread.currentThread().setContextClassLoader(saved);\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\treturn stream;\r\n\t\t}", "@After\n public void tearDown() {\n System.out.flush();\n System.setOut(originalPrintStream);\n log.log(Level.INFO, \"\\n\" + bout.toString());\n }", "public void setOutputStream(OutputStream outputStream) {\n this.outputStream = outputStream;\n }", "public void testSetOutputStream_Normal() {\n ByteArrayOutputStream aos = new ByteArrayOutputStream();\n MockStreamHandler h = new MockStreamHandler(aos, new MockFormatter());\n\n LogRecord r = new LogRecord(Level.INFO, \"testSetOutputStream_Normal\");\n h.publish(r);\n assertSame(r, CallVerificationStack.getInstance().pop());\n assertTrue(CallVerificationStack.getInstance().empty());\n h.flush();\n assertEquals(\"MockFormatter_Head\" + \"testSetOutputStream_Normal\", aos\n .toString());\n\n ByteArrayOutputStream aos2 = new ByteArrayOutputStream();\n h.setOutputStream(aos2);\n assertEquals(\"MockFormatter_Head\" + \"testSetOutputStream_Normal\"\n + \"MockFormatter_Tail\", aos.toString());\n r = new LogRecord(Level.INFO, \"testSetOutputStream_Normal2\");\n h.publish(r);\n assertSame(r, CallVerificationStack.getInstance().pop());\n assertTrue(CallVerificationStack.getInstance().empty());\n h.flush();\n assertEquals(\"MockFormatter_Head\" + \"testSetOutputStream_Normal2\", aos2\n .toString());\n assertEquals(\"MockFormatter_Head\" + \"testSetOutputStream_Normal\"\n + \"MockFormatter_Tail\", aos.toString());\n }", "public ServletOutputStreamMock() {\n\t\tthis(new ByteArrayOutputStream());\n\t}", "public static AnsiPrintStream err() {\n initStreams();\n return (AnsiPrintStream) err;\n }", "public static PrintStream err() {\n return System.err;\n }", "public OutputStream getOutputStream();", "public NullPrintStream()\r\n\t{\r\n\t\tsuper(System.out);\r\n\t}", "InputStream getStdout();", "void drain() {\n if (stdOutReader != null) {\n stdOutReader.drain();\n }\n if (stdErrReader != null) {\n stdErrReader.drain();\n }\n }", "@Override\n public void cleanup() throws Exception {\n outputStream.close();\n }", "private PrintStream getOutput(String name) {\n try {\n return new PrintStream(new File(name));\n } catch (IOException excp) {\n throw error(\"could not open %s\", name);\n }\n }", "protected OutputStream _createDataOutputWrapper(DataOutput out)\n/* */ {\n/* 1520 */ return new DataOutputAsStream(out);\n/* */ }", "public void onStreamError(Throwable throwable);", "public void shutdown() {\n try {\n this.writer.close();\n } catch (IOException e) {\n log.warn(i18n.getString(\"problemCloseOutput\", e), e);\n }\n }", "static public PrintStream getPrintStream() {\n \t return out;\n }", "public void setLogStream(OutputStream stream) {\n\t\tcloseLogHandler();\n\t\tlogHandler = new StreamHandler(stream, L2pLogger.getGlobalConsoleFormatter());\n\t\tlogHandler.setLevel(Level.ALL);\n\t\tlogger.addHandler(logHandler);\n\t}", "public OutputStream openOutputStream(String path) throws SystemException;", "public OutputStream getOutputStream() throws IOException;", "private static void ioProcess(final Process process) {\n\t\ttry (InputStream errorStream = process.getErrorStream(); BufferedReader br = new BufferedReader(new InputStreamReader(errorStream));) {\n\t\t\tString line;\n\t\t\twhile ((line = br.readLine()) != null) {\n\t\t\t\tSystem.out.println(\"[LOG] line = \" + line);\n\t\t\t}\n\t\t}\n\t\tcatch (IOException e) {\n\t\t\tthrow new UncheckedIOException(e);\n\t\t}\n\t}", "public void start() {\n PrintStream printStream = new PrintStream(output, true) {\n @Override\n public void close() {\n super.close();\n stop();\n }\n };\n //Redirect the System.Err and System.out to the new PrintStream that was created\n System.setErr(printStream);\n System.setOut(printStream);\n running = true;\n flushThread.start();\n }", "public FakeStandardOutput() throws UnsupportedEncodingException {\r\n super(new StringOutputStream(), true, \"UTF8\");\r\n innerStream = (StringOutputStream) super.out;\r\n }", "OutputStream getOutputStream() throws FileSystemException;", "public void testPublish_AfterClose() throws Exception {\n Properties p = new Properties();\n p.put(\"java.util.logging.StreamHandler.level\", \"FINE\");\n LogManager.getLogManager().readConfiguration(\n EnvironmentHelper.PropertiesToInputStream(p));\n\n ByteArrayOutputStream aos = new ByteArrayOutputStream();\n StreamHandler h = new StreamHandler(aos, new MockFormatter());\n assertSame(h.getLevel(), Level.FINE);\n LogRecord r = new LogRecord(Level.INFO, \"testPublish_NoFormatter\");\n assertTrue(h.isLoggable(r));\n h.close();\n assertFalse(h.isLoggable(r));\n h.publish(r);\n h.flush();\n assertEquals(\"MockFormatter_HeadMockFormatter_Tail\", aos.toString());\n }", "@Test\n public void testOutputDelimitedStream() throws Throwable {\n testOutputDelimited(true);\n }", "public void testPublish_NoOutputStream() {\n StreamHandler h = new StreamHandler();\n LogRecord r = new LogRecord(Level.INFO, \"testPublish_NoOutputStream\");\n h.publish(r);\n\n h.setLevel(Level.WARNING);\n h.publish(r);\n\n h.setLevel(Level.CONFIG);\n h.publish(r);\n\n r.setLevel(Level.OFF);\n h.setLevel(Level.OFF);\n h.publish(r);\n }", "@Test\n\tdefault void testAlllowedWritings() {\n\t\tperformStreamTest(stream -> {\n\t\t\tErrorlessTest.run(() -> stream.writeBytes(new byte[] { 42 }, 6));\n\t\t});\n\t}", "protected void finalizeSystemErr() {}", "protected void close() {\n\t\tif(sOutput != null) {\n\t\t\ttry {\n\t\t\t\tsOutput.close();\n\t\t\t} catch (IOException e) {\n\t\t\t\tSystem.err.println(\"error closing output stream\");\n\t\t\t}\n\t\t\t\n\t\t\tsOutput = null;\n\t\t}\n\t}", "protected final void setOutputStream(LoggedDataOutputStream outputStream) {\n if (this.outputStream == outputStream) return ;\n if (this.outputStream != null) {\n try {\n this.outputStream.close();\n } catch (IOException ioex) {/*Ignore*/}\n }\n this.outputStream = outputStream;\n }", "public static void generate(Stream stream, PrintStream output) {\n generate(SparseStream.fromStream(stream, Ownership.None), output);\n }", "public void close() {\n this.output = null;\n }", "public static void RedirectOutput() {\t\n\t\ttry {\n\t\t\tPrintStream out = new PrintStream(new FileOutputStream(\"ybus.txt\"));\n\t\t\tSystem.setOut(out); //Re-assign the standard output stream to a file.\n\t\t} catch (FileNotFoundException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}" ]
[ "0.6887635", "0.65770614", "0.64079195", "0.6357006", "0.6316759", "0.6069138", "0.606564", "0.59813493", "0.5903749", "0.5883602", "0.5883191", "0.58688015", "0.5865161", "0.58469224", "0.5766647", "0.57591695", "0.5720363", "0.57176995", "0.5701676", "0.56621814", "0.56476146", "0.56413126", "0.56220216", "0.5587901", "0.5575553", "0.5558073", "0.55497736", "0.5512976", "0.5508139", "0.5499006", "0.54970527", "0.5480706", "0.54729605", "0.5461863", "0.5448762", "0.544814", "0.5413252", "0.5404921", "0.5401415", "0.5360389", "0.53405607", "0.5339341", "0.5336655", "0.53099304", "0.5304011", "0.52978075", "0.5269577", "0.5269101", "0.5268599", "0.52610517", "0.5259278", "0.5252038", "0.52492714", "0.5246298", "0.52410764", "0.52400744", "0.5236819", "0.5230374", "0.5229848", "0.5229639", "0.52238786", "0.522095", "0.52087426", "0.52070713", "0.51904744", "0.5186359", "0.5184869", "0.5184364", "0.5181265", "0.517086", "0.5164238", "0.51634115", "0.51615703", "0.5160527", "0.5152216", "0.51459795", "0.5145326", "0.5142725", "0.51402473", "0.5129065", "0.5126596", "0.51257575", "0.51223874", "0.5120162", "0.51117", "0.50998825", "0.5089212", "0.50880647", "0.5083688", "0.50830704", "0.50828403", "0.50771683", "0.50751984", "0.50661695", "0.5059028", "0.5056245", "0.5051783", "0.5044485", "0.5035646", "0.50321376" ]
0.61334413
5
Releases standard out. If there are no more acquired standard outs, then it is reset to its original value.
public static synchronized void releaseOut() { outCnt--; if (outCnt == 0) System.setOut(sysOut); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void release() {\n output = null;\n super.release();\n }", "@After\n\tpublic void restoreStreams() {\n\t\tSystem.setOut(originalOut);\n\t}", "public void releaseOutput() {\n output.releaseStation();\n }", "private void closeOutputStream() {\n\t\tPrintStreamManagement.closeOutputStream();\n\t}", "protected void finalizeSystemOut() {}", "public void close() {\n this.output = null;\n }", "void resetOutput(){\n\t\tSystem.setOut(oldOut);\n\t}", "public static synchronized void releaseErr() {\n errCnt--;\n\n if (errCnt == 0)\n System.setErr(sysErr);\n }", "public void cancelStdInStream() {\n\t\tstdInLatch.countDown();\n\t\tif(pipeOut!=null) {\n\t\t\tlog.debug(\"Closing PipeOut\");\n\t\t\ttry { pipeOut.flush(); } catch (Exception e) {}\n\t\t\ttry { pipeOut.close(); } catch (Exception e) {}\n\t\t\tlog.debug(\"Closed PipeOut\");\n\t\t}\n\t\tpipeOut = null;\n\t\tif(pipeIn!=null) try { \n\t\t\tlog.debug(\"Closing PipeIn\");\n\t\t\tpipeIn.close(); \n\t\t\tlog.debug(\"Closed PipeIn\");\n\t\t} catch (Exception e) {}\n\t\tpipeIn = null;\t\t\n\t}", "void drain() {\n if (stdOutReader != null) {\n stdOutReader.drain();\n }\n if (stdErrReader != null) {\n stdErrReader.drain();\n }\n }", "public void close() {\n if (this.out == null) {\n return;\n }\n try {\n this.out.flush();\n this.out.close();\n this.out = null;\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "public void close() {\n try { out.flush(); } catch (Exception e) {}; // just to be sure\n \n cleanup();\n }", "@AfterClass\n public static void finalise()\n {\n System.setOut(SYSTEM_OUT_ORIGINAL);\n }", "protected void resetIO()\r\n {\r\n // Clear out all the stream history stuff\r\n tcIn = null;\r\n tcOut = null;\r\n tcInBuf = null;\r\n\r\n // Make sure these are history-wrapped\r\n SystemIOUtilities.out().clearHistory();\r\n SystemIOUtilities.err().clearHistory();\r\n SystemIOUtilities.restoreSystemIn();\r\n }", "@After\n\tpublic void backOutput() {\n\t\tSystem.setOut(this.stdout);\n\t}", "public void release()\r\n throws IOException\r\n {\r\n // nothing needs to be done\r\n }", "protected void close() {\n\t\tif(sOutput != null) {\n\t\t\ttry {\n\t\t\t\tsOutput.close();\n\t\t\t} catch (IOException e) {\n\t\t\t\tSystem.err.println(\"error closing output stream\");\n\t\t\t}\n\t\t\t\n\t\t\tsOutput = null;\n\t\t}\n\t}", "public void release() throws IOException;", "protected void releaseFromPrison() {\n\t\tisInPrison = false;\r\n\t\tnumberOfRound = 0;\r\n\t}", "protected void close()\n {\n out.close();\n }", "public void close() {\n try {\n out.close();\n } catch (java.io.IOException ioe) {\n }\n ;\n }", "@After\n public void returnOutStream() { //\n System.setOut(System.out);\n }", "@Override\n public void close() {\n try {\n out.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "public void close(){\r\n\t\tif(managedOutputSocket != null) managedOutputSocket.close();\r\n\t\tmanagedOutputSocket = null;\r\n\t\tsuper.close();\r\n\t}", "public void release()\r\n\t{\r\n\t\tsuper.release();\r\n\t\t_href = null;\r\n\t\t_box = null;\r\n\t\t_bracket = null;\r\n\t\t_bracketFont = null;\r\n\r\n\t}", "@Override\n\t\tpublic void close() throws IOException {\n\t\t\tout.close();\n\t\t}", "protected void releaseBuffer()\n {\n interlock.endReading();\n // System.out.println(\"endReading: 2\");\n }", "public final void release() {\n explicitlyLocked = false;\n byteBase.unlock();\n }", "public void close(){\n\t\ttry {\n\t\t\tout.close();\n\t\t\tout = null;\n\t\t}\n\t\tcatch (IOException e){\n\t\t\tSystem.out.println(\"Problem closing file.\");\n\t\t\tSystem.exit(0);\n\t\t}\n\t}", "@Override\n public void close() throws IOException\n {\n _out.close();\n }", "public void freeOutputPort(String terminal) {\n\t\toutputPortTerminals.remove(terminal);\n\t}", "@Override\n\t public synchronized void close() throws IOException {\n\t\tout.close();\n\t\topen = false;\n\t }", "static final void flushSystemOut()\n {\n PrintStream out = sysOut;\n if (out != null)\n {\n try\n {\n out.flush();\n }\n catch (Error e) {}\n catch (RuntimeException e) {}\n }\n }", "public static void close(OutputStream out) {\n\t\ttry {\n\t\t\tout.close();\n\t\t} catch (Exception exp) {\n\t\t\tthrow new RuntimeException(exp);\n\t\t}\n\t}", "@Before\n public void changeOutStream() {\n PrintStream printStream = new PrintStream(outContent);\n System.setOut(printStream);\n }", "public void releaseInput() {\n input.releaseStation();\n }", "static public void flushPrintStream() {\n \t out.flush();\n }", "static public void exit() {\n // We close our printStream ( can be a log so we do things properly )\n out.flush();\n System.exit(0);\n }", "protected StreamPrintService(OutputStream out) {\n this.outStream = out;\n }", "public void release() {\r\n return;\r\n }", "protected void cleanup() {\n try {\n if (_in != null) {\n _in.close();\n _in = null;\n }\n if (_out != null) {\n _out.close();\n _out = null;\n }\n if (_socket != null) {\n _socket.close();\n _socket = null;\n }\n } catch (java.io.IOException e) {\n }\n }", "void suspendOutput();", "@Override\n public void release() {\n }", "@Override\n public void cleanup() throws Exception {\n outputStream.close();\n }", "@Override\n public void release() {\n }", "public void close() {\n this.output.flush();\n this.output.close();\n }", "void output(OUT out) throws IOException;", "final void internalRelease() {\n if(!explicitlyLocked) {\n byteBase.unlock();\n }\n }", "@Override\n public void close() {\n try {\n stdIn.write(\"exit;\");\n stdIn.flush();\n } catch (IOException ioe) {\n // ignore\n } finally {\n silentlyCloseStdIn();\n }\n\n stdOut.interrupt();\n stdErr.interrupt();\n shell.destroy();\n }", "@Override\n public void close(){\n outObject = \"close-\";\n try {\n out.writeObject(outObject);\n } catch (IOException ex) {\n }\n }", "@Override\n\tpublic void release() {\n\t\t\n\t}", "public void close() throws Exception{\r\n\tout.close();\r\n}", "@Override\r\n\tpublic void release()\r\n\t{\n\t}", "@Override\n\tpublic void GetOut() {\n\t\t\n\t}", "static final void setSystemOut(\n PrintStream out) /* hard-coded method signature */\n {\n sysOut = out;\n }", "@Override\n\tpublic void release() {\n\t}", "public void closeStream() {\n output.close();\n input.close();\n }", "protected void shutdownOutput() throws IOException\n {\n if (fd == null) {\n throw new IOException(\"socket not created\");\n }\n\n try {\n Os.shutdown(fd, OsConstants.SHUT_WR);\n } catch (ErrnoException e) {\n throw e.rethrowAsIOException();\n }\n }", "public void shutdownOutput()\n throws IOException\n {\n throw new UnsupportedOperationException(\n \"The method shutdownOutput() is not supported in SSLSocket\");\n }", "private void outRestore() throws IOException {\n if (lastWriteOffset > 0) {\n outSeek(lastWriteOffset);\n lastWriteOffset = -1;\n }\n }", "@Override\n public void release() {\n \n }", "@Override\n\tpublic void release() {\n\t\tsuper.release();\n\t\t\n\t\tthis.privilegeCode = null;\n\t\tthis.controlId = null;\n\t\tthis.controlType = null;\n\t\tthis.desc = null;\n\t}", "@After\n public void tearDown() {\n System.out.flush();\n System.setOut(originalPrintStream);\n log.log(Level.INFO, \"\\n\" + bout.toString());\n }", "public void close(BitOutput out) throws IOException {\n\t\t// must code EOF to allow decoding to halt\n\t\tarithmeticEncoder.encode(ArithCodeModel.EOF, out);\n\t\t// to allow arithmetic encoder to output buffered bits\n\t\tarithmeticEncoder.close(out);\n\t}", "@Override\n\t public void onRelease() {\n\n\t }", "public void finalize() {\r\n byteBuffer2 = null;\r\n byteBuffer4 = null;\r\n byteBuffer8 = null;\r\n progressBar = null;\r\n tagBuffer = null;\r\n\r\n if (raFile != null) {\r\n\r\n try {\r\n raFile.close();\r\n } catch (final IOException ioe) {\r\n // Do nothing\r\n }\r\n }\r\n\r\n raFile = null;\r\n }", "@Override\n public void dispose(){\n if(handle <= 0) return;\n free(handle);\n handle = 0;\n }", "public static void end()\n {\n if(out!=null) {\n out.println(\"close \" + name);\n out.flush();\n }\n }", "@AfterAll\n\tstatic void afterAll() {\n\t\tinOut.resetSystem();\n\t}", "public void release() {\n\t\t\n\t}", "@Override\n\tpublic void release() {\n\n\t}", "@Override\n\tpublic void release() {\n\n\t}", "public static\n void hookSystemOutputStreams() {\n out();\n err();\n }", "public void setOut(PrintStream out);", "public void turnOffSystemOutput() {\n if (originalSystemOut != null) {\n System.setOut(originalSystemOut);\n originalSystemOut = null;\n\n // WARNING: It is not possible to reconfigure the logger here! This\n // method is called in the UI thread, so reconfiguring the logger\n // here would mean that the UI thread waits for the logger, which\n // could cause a deadlock.\n }\n }", "public void unpatchAfterRelease( AudioOutput output )\n\t{\n\t\tunpatchAfterRelease = true;\n\t\tthis.output = output;\n\t}", "void dispose() {\n resetInputConnection();\n }", "public void close()\n throws IOException\n {\n outstream.close();\n }", "public void release()\n\t{\n\t\t// System.out.println(usedBy.getName() + \": Releasing \" + toString());\n\t\tthis.usedBy = null;\n\t}", "public void cleanup() {\n sendBuffer(baos);\n shutdown();\n }", "@Override\n protected void releaseBuffer() {\n }", "@Override\n\tprotected void outFinish() {\n\n\t}", "final void internalReleaseNoCopy() {\n if(!explicitlyLocked) {\n byteBase.unlockNoCopy();\n }\n }", "public void release() {\r\n pageEL = null;\r\n params = null;\r\n super.release();\r\n }", "public void finalize() {\r\n printToLogFile = null;\r\n selectedFiles = null;\r\n }", "public static void closeIO()\r\n\t{\n\t\ttry\r\n\t\t{\r\n\t\t\tinStream.close();\r\n\t\t\toutStream.close();\r\n\t\t}\r\n\t\tcatch(IOException e)\r\n\t\t{\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}", "@Override\r\n\tpublic void release() {\n\r\n\t}", "private void sout() {\n\t\t\n\t}", "protected void clearOutEvents() {\n\t}", "protected void clearOutEvents() {\n\t}", "public void release() { \r\n\t remoteControlClient = null;\r\n\t }", "public void releaseOCR(){\n \tif(baseApi != null){ baseApi.end(); baseApi = null; } \n\t\tmState = State.UNINITIALIZED;\n }", "public void disposal() throws SystemException;", "public void turnOnSystemOutput(){\n if(originalSystemOut == null){\n originalSystemOut = System.out;\n System.setOut(new PrintStream(generalStream));\n //will cause CSS hang up\n// System.setIn(console.getInputStream());\n }\n }", "public final void releaseNoCopy() {\n explicitlyLocked = false;\n byteBase.unlockNoCopy();\n }", "@After\n public void tearDown(){\n final String standardOutput = myOut.toString();\n final String standardError = myErr.toString();\n assertEquals(\"You used 'System.out' in your assignment, This is not allowed.\",true, standardOutput.length() == 0);\n assertEquals(\"You used 'System.err' in your assignment, This is not allowed.\",true, standardError.length() == 0);\n System.err.flush();\n System.out.flush();\n System.setOut(new PrintStream(new FileOutputStream(FileDescriptor.out)));\n System.setErr(new PrintStream(new FileOutputStream(FileDescriptor.err)));\n }", "public void release() {\n }", "public synchronized void close() throws IOException {\n\t\t\tfinish();\n\t\t\tout.close();\n\t\t}", "public void close()\r\n\t\tthrows IOException\r\n\t{\r\n\t\tif (out != null)\r\n\t\t\tout.close();\r\n\r\n\t\tif (rnd != null)\r\n\t\t\trnd.close();\r\n\t}", "public void wrap() {\n if (fSavedOut != null) {\n return;\n }\n fSavedOut = System.out;\n fSavedErr = System.err;\n final IOConsoleOutputStream out = fCurrent.newOutputStream();\n out.setColor(ConsoleUtils.getDefault().getBlack()); \n \n System.setOut(new PrintStream(out));\n final IOConsoleOutputStream err = fCurrent.newOutputStream();\n err.setColor(ConsoleUtils.getDefault().getRed()); \n \n System.setErr(new PrintStream(err));\n }" ]
[ "0.7101051", "0.6824355", "0.67406833", "0.65976095", "0.659092", "0.65105283", "0.6460733", "0.62058485", "0.617525", "0.61507756", "0.61396784", "0.6104154", "0.6072058", "0.60654515", "0.6016736", "0.5964209", "0.592712", "0.58049256", "0.57896155", "0.5782497", "0.5751494", "0.5740131", "0.56845456", "0.56358916", "0.56078166", "0.5592837", "0.55906683", "0.55638605", "0.5562486", "0.55613655", "0.55505794", "0.5519066", "0.55058646", "0.54899603", "0.54732615", "0.54626435", "0.5453208", "0.5447668", "0.5436173", "0.54224133", "0.54191315", "0.54113024", "0.54095405", "0.53981197", "0.5385163", "0.53732365", "0.53718245", "0.5366593", "0.53627276", "0.53570443", "0.5356395", "0.53448284", "0.5338344", "0.533644", "0.5334614", "0.5333165", "0.532726", "0.5325204", "0.53175783", "0.5314572", "0.53140557", "0.5308436", "0.53033876", "0.52882075", "0.52869487", "0.5285461", "0.5281944", "0.5281077", "0.5278046", "0.52751565", "0.5270205", "0.5270205", "0.52624136", "0.52602416", "0.5246633", "0.52435035", "0.5240262", "0.5240224", "0.5239658", "0.5239115", "0.5234103", "0.52239543", "0.5220951", "0.5213561", "0.52126", "0.52111524", "0.5206988", "0.52052045", "0.52022827", "0.52022827", "0.5201914", "0.5200896", "0.5200717", "0.5195629", "0.5189799", "0.5174353", "0.5174169", "0.5172636", "0.51719874", "0.51713085" ]
0.80512476
0
Releases standard error. If there are no more acquired standard errors, then it is reset to its original value.
public static synchronized void releaseErr() { errCnt--; if (errCnt == 0) System.setErr(sysErr); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected void finalizeSystemErr() {}", "public void release() throws IOException;", "public void disposal() throws SystemException;", "@Override\n public void clearError() {\n\n }", "public void release()\r\n throws IOException\r\n {\r\n // nothing needs to be done\r\n }", "public void _release() {\n throw new NO_IMPLEMENT(reason);\n }", "public void resetRecentError() throws OXException {\n errorHandler.removeRecentException();\n }", "public void close(){\n\t\ttry{\n\t\t\tflush();\n\t\t\tse.close();\n\t\t}catch(IOException ioex){\n\t\t\tfailures = true;\n\t\t}\n\t}", "@Override\n public void release() {\n output = null;\n super.release();\n }", "public void terminate() {\n Queue<Throwable> q;\n if (this.wip.decrementAndGet() == 0) {\n Queue<Throwable> q2 = this.errors;\n if (q2 == null || q2.isEmpty()) {\n this.actual.onCompleted();\n return;\n }\n Throwable e = CompletableOnSubscribeMerge.collectErrors(q2);\n if (ONCE.compareAndSet(this, 0, 1)) {\n this.actual.onError(e);\n } else {\n RxJavaPlugins.getInstance().getErrorHandler().handleError(e);\n }\n } else if (!this.delayErrors && (q = this.errors) != null && !q.isEmpty()) {\n Throwable e2 = CompletableOnSubscribeMerge.collectErrors(q);\n if (ONCE.compareAndSet(this, 0, 1)) {\n this.actual.onError(e2);\n } else {\n RxJavaPlugins.getInstance().getErrorHandler().handleError(e2);\n }\n }\n }", "public void release() {\r\n return;\r\n }", "public void errorCleanUp(String strErr, boolean gcFlag) {\r\n\r\n if (gcFlag == true) {\r\n System.gc();\r\n }\r\n\r\n if (strErr != null) {\r\n displayError(strErr);\r\n }\r\n\r\n setCompleted(false);\r\n setThreadStopped(true);\r\n disposeProgressBar();\r\n\r\n if (destImage != null) {\r\n destImage.releaseLock();\r\n }\r\n }", "void errorFinal(Throwable t) {\n try {\n try {\n subscriber.onError(t);\n } catch (Throwable e) {\n Exceptions.handleUncaught(t);\n Exceptions.handleUncaught(Conformance.onErrorThrew(e));\n }\n } finally {\n // no need to remove ourselves from psm.\n terminate();\n }\n }", "public void terminate(final boolean error);", "public void releaseAndFailAll(Throwable cause)\r\n/* 36: */ {\r\n/* 37:70 */ releaseAndFailAll(this.channel, cause);\r\n/* 38: */ }", "public void onAbort() {\n releaseInitialRef.run();\n }", "public void release()\r\n\t{\r\n\t\tsuper.release();\r\n\t\t_href = null;\r\n\t\t_box = null;\r\n\t\t_bracket = null;\r\n\t\t_bracketFont = null;\r\n\r\n\t}", "@Override\n public void release() {\n }", "@Override\n public void release() {\n }", "@Override\n public void release() {\n \n }", "public void unsetErrors()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n get_store().remove_element(ERRORS$4, 0);\r\n }\r\n }", "@Override\n\tprotected void finalize() {\n\t\tif(refcount>0){\n\t\t\tprint(\"Error \"+refcount+\"Shared \"+id+\"objects in use\");\n\t\t}\n\t}", "@Override\n @Deprecated\n public void release() {\n close();\n }", "void reloadStandardErrorMessages();", "@Override\n\tpublic void release() {\n\t}", "public static void release() {\n\t}", "@Override\n\tpublic void release() {\n\t\t\n\t}", "public void clearErrorCount() {\n\t\terrorCount = 0;\n\t}", "public void reset() {\n this.errorNo = 0;\n this.errorStrings = \"\";\n }", "@Override\n public void dispose(){\n if(handle <= 0) return;\n free(handle);\n handle = 0;\n }", "@Override\n protected void doRelease() {\n if (mNativePtr != 0) {\n nativeRelease(mNativePtr);\n mNativePtr = 0;\n }\n }", "@Override\r\n\tpublic void release()\r\n\t{\n\t}", "protected void m1659a() {\n try {\n this.f1529q.b_();\n } catch (Throwable e) {\n this.f1513a.m261a(\"IOException releasing connection\", e);\n }\n this.f1529q = null;\n }", "@Override\n\tpublic void release() {\n\n\t}", "@Override\n\tpublic void release() {\n\n\t}", "void tryCleanup() throws Exception;", "public final void release() {\n explicitlyLocked = false;\n byteBase.unlock();\n }", "public void safeRelease() {\n\t\t// currently does nothing - subclasses may do something\n\t\tif (isDebugEnabled()) {\n\t\t\t// this used to do a toString() but that is bad for SafeArray\n\t\t\tdebug(\"SafeRelease: \" + this.getClass().getName());\n\t\t}\n\t}", "public void closed(Throwable t);", "public void release() {\n }", "public void unsetErrorcount()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n get_store().remove_attribute(ERRORCOUNT$4);\r\n }\r\n }", "public void release() throws JenaProviderException {\t\t\n\t}", "public void release() {\n\t\t\n\t}", "public void close() {\n this.output = null;\n }", "protected void finalize() throws Throwable {\n\t\tcleanup();\n\n\t\t//kill the scsynth\n\t\t_scsynthLauncher.killScsynth();\n\t\t\n\t\t// free the UDP port from JavaOSC\n\t\tif (_receiver != null)\n\t\t\t_receiver.close();\n\n\t}", "@Override\n public void close() {\n if (complete.compareAndSet(false, true)) {\n rc = BKException.Code.UnexpectedConditionException;\n writeSet.recycle();\n }\n entryImpl.close();\n }", "@Override\n public void cleanup() throws Exception {\n outputStream.close();\n }", "final void internalRelease() {\n if(!explicitlyLocked) {\n byteBase.unlock();\n }\n }", "private void basicReleaseLock() {\n if (logger.isTraceEnabled(LogMarker.DLS_VERBOSE)) {\n logger.trace(LogMarker.DLS_VERBOSE, \"[DLockToken.basicReleaseLock] releasing ownership: {}\",\n this);\n }\n\n leaseId = -1;\n lesseeThread = null;\n leaseExpireTime = -1;\n thread = null;\n recursion = 0;\n ignoreForRecovery = false;\n\n decUsage();\n }", "public void release() {\n }", "public void release() {\n if (this.compositeDisposable != null) {\n this.compositeDisposable.clear();\n }\n }", "protected abstract void cleanup() throws Throwable;", "@Override\r\n\tpublic void release() {\n\r\n\t}", "protected void release()\n {\n }", "protected void cleanup() {\n this.dead = true;\n this.overflow = null;\n this.headerBuffer = null;\n this.expectBuffer = null;\n this.expectHandler = null;\n this.unfragmentedBufferPool = null;\n this.fragmentedBufferPool = null;\n this.state = null;\n this.currentMessage = null;\n \n /*\n this.onerror = null;\n this.ontext = null;\n this.onbinary = null;\n this.onclose = null;\n this.onping = null;\n this.onpong = null;*/\n}", "public void releaseOCR(){\n \tif(baseApi != null){ baseApi.end(); baseApi = null; } \n\t\tmState = State.UNINITIALIZED;\n }", "public static void throwNewExceptionWithFinally(){\n try {\n throw new Error();\n } finally {\n throw new RuntimeException();\n }\n }", "@SuppressWarnings(\"unchecked\") \n /* #end */\n public void release()\n {\n buffers = (KType[][]) EMPTY;\n blockLen = 0;\n elementsCount = 0;\n }", "protected void releaseFromPrison() {\n\t\tisInPrison = false;\r\n\t\tnumberOfRound = 0;\r\n\t}", "public void release() throws SQLException\r\n\t{\r\n\t\tst.close();\r\n\t}", "public void tryTerminate() {\n if (wip.decrementAndGet() != 0) {\n return;\n }\n if (queue.isEmpty()) {\n completableSubscriber.onCompleted();\n } else {\n completableSubscriber.onError(CompletableOnSubscribeMerge.collectErrors(queue));\n }\n }", "public final void release() { \n native_release();\n }", "@Override\n\t public void onRelease() {\n\n\t }", "protected void closeNotSuccessful() {\n\t\tthis.writer.deblockQueue();\n\t}", "public final synchronized void reset() {\r\n\t\tunblocked = false;\r\n\t\tcancelled = null;\r\n\t\terror = null;\r\n\t\tlistenersInline = null;\r\n\t}", "void close() throws Exception;", "void close() throws Exception;", "public PrintStream semantError() {\n \tsemantErrors++;\n \treturn errorStream;\n }", "final void internalReleaseNoCopy() {\n if(!explicitlyLocked) {\n byteBase.unlockNoCopy();\n }\n }", "public void finalize() throws Throwable {\n close();\n }", "private void closeOutputStream() {\n\t\tPrintStreamManagement.closeOutputStream();\n\t}", "void setError();", "public void finalize() {\r\n byteBuffer2 = null;\r\n byteBuffer4 = null;\r\n byteBuffer8 = null;\r\n progressBar = null;\r\n tagBuffer = null;\r\n\r\n if (raFile != null) {\r\n\r\n try {\r\n raFile.close();\r\n } catch (final IOException ioe) {\r\n // Do nothing\r\n }\r\n }\r\n\r\n raFile = null;\r\n }", "public void release() { \r\n\t remoteControlClient = null;\r\n\t }", "public\n void close() throws ResourceException;", "public void release()\n {\n \n release_0(nativeObj);\n \n return;\n }", "@Override\n public void cleanup() {\n if (this.inputStream != null) {\n try {\n this.inputStream.close();\n }\n catch (IOException var1_1) {}\n }\n this.defaultFetcher.cleanup();\n }", "@Override\n\tpublic void release() {\n\t\tsuper.release();\n\t\t\n\t\tthis.privilegeCode = null;\n\t\tthis.controlId = null;\n\t\tthis.controlType = null;\n\t\tthis.desc = null;\n\t}", "public void release() {\n simConnection.doCommand(\"DynamicsSetGearValue DoneControlling\");\n }", "boolean documentFreeOfErrors();", "public void release() {\n nRelease(mNativeInstance);\n mNativeInstance = 0;\n }", "@Override\n\tpublic void adjustToError() {\n\t\t\n\t}", "@Override\n public void onComplete() {\n refCause.compareAndSet(null, DELIBERATE_EXCEPTION);\n }", "public static void reset()\r\n {\r\n errorCount = 0;\r\n warningCount = 0;\r\n }", "void close() throws Exception;", "public void finalize() throws Throwable {\n close();\n super.finalize();\n }", "public final void error(String error){\n lastKnownError = error;\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 }", "@Override\r\n\tprotected void finalize() throws Throwable {\n\t\tclose();\r\n\t\tsuper.finalize();\r\n\t}", "protected abstract void cleanup() throws IOException;", "private void error() {\n this.error = true;\n this.clients[0].error();\n this.clients[1].error();\n }", "public void release();", "public void release();", "protected abstract void deAllocateNativeResource();", "protected void resetIO()\r\n {\r\n // Clear out all the stream history stuff\r\n tcIn = null;\r\n tcOut = null;\r\n tcInBuf = null;\r\n\r\n // Make sure these are history-wrapped\r\n SystemIOUtilities.out().clearHistory();\r\n SystemIOUtilities.err().clearHistory();\r\n SystemIOUtilities.restoreSystemIn();\r\n }", "int release();", "void error(Throwable t) {\n t = Conformance.onNextThrew(t);\n try {\n try {\n subscriber.onError(t);\n } catch (Throwable e) {\n Exceptions.handleUncaught(t);\n Exceptions.handleUncaught(Conformance.onErrorThrew(e));\n }\n } finally {\n try {\n cancel();\n } catch (Throwable t3) {\n Exceptions.handleUncaught(Conformance.cancelThrew(t3));\n }\n }\n }", "void _release();", "public static synchronized void releaseOut() {\n outCnt--;\n\n if (outCnt == 0)\n System.setOut(sysOut);\n }", "@Override\n\tprotected void finalize() throws Throwable {\n\t\tclose();\n\t\tsuper.finalize();\n\t}" ]
[ "0.6224442", "0.5776003", "0.57136905", "0.5685556", "0.5648443", "0.5581583", "0.55357504", "0.5460251", "0.5457699", "0.54256475", "0.539019", "0.53714514", "0.5351561", "0.5325911", "0.5290676", "0.5235768", "0.52307093", "0.5207544", "0.52004504", "0.5174489", "0.5170928", "0.51548004", "0.51545346", "0.5151508", "0.5148719", "0.51486415", "0.5137195", "0.5127856", "0.5115546", "0.5113959", "0.5111799", "0.51082003", "0.509819", "0.5060812", "0.5060812", "0.5057543", "0.50499713", "0.504434", "0.5039282", "0.5037161", "0.5034923", "0.5020638", "0.5017246", "0.5000745", "0.49991643", "0.4994604", "0.49871618", "0.49800742", "0.497926", "0.49688426", "0.4965224", "0.4962555", "0.49556425", "0.49510887", "0.49224824", "0.4914685", "0.49027836", "0.48999918", "0.48997632", "0.48971865", "0.48943645", "0.48746467", "0.48659775", "0.48579022", "0.48571676", "0.4848646", "0.4848646", "0.48427853", "0.48403502", "0.4837052", "0.48244333", "0.48236883", "0.48218542", "0.4821428", "0.4820468", "0.48182234", "0.48178583", "0.4817281", "0.48149225", "0.48105758", "0.4809314", "0.47976482", "0.47963756", "0.4793751", "0.47908798", "0.47892156", "0.47786456", "0.47786012", "0.47784606", "0.47683522", "0.4767768", "0.47671488", "0.47671488", "0.47498694", "0.47278094", "0.47247338", "0.47240326", "0.47178808", "0.47145975", "0.47141626" ]
0.74310195
0
TODO Autogenerated method stub
@Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); requestWindowFeature(Window.FEATURE_NO_TITLE); this.setContentView(R.layout.snake); statusButton = (ImageButton)findViewById(R.id.status_button); statusButton.setBackgroundColor(Color.argb(0, 0, 0, 0)); // statusButton.setImageResource(R.drawable.start); statusButton.setOnClickListener(new OnClickListener() { @Override public void onClick(View v) { // TODO Auto-generated method stub if(snake.getstatus() == snake.READY) { return; } else if(snake.getstatus() == snake.RUNNING) { // statusButton.setText("start"); statusButton.setImageResource(R.drawable.start); snake.pause(); } else { // statusButton.setText("pause"); statusButton.setImageResource(R.drawable.pause); snake.start(); } } }); snake = (SnakeView)findViewById(R.id.snake); snake.scoreTextView = (TextView)findViewById(R.id.scoreTextView); snake.restTimeTextView = (TextView)findViewById(R.id.restTimeTextView); gestureDetector = new BuileGestureExt(this,new BuileGestureExt.OnGestureResult() { @Override public void onGestureResult(int direction) { if (snake.getstatus() == snake.READY) { snake.initNewGame(); statusButton.setImageResource(R.drawable.pause); return; } if(snake.getstatus() != snake.RUNNING) { return; } if (direction == BuileGestureExt.GESTURE_UP) { snake.addDirToQue(new Integer(snake.UP)); } else if (direction == BuileGestureExt.GESTURE_DOWN) { snake.addDirToQue(new Integer(snake.DOWN)); } else if (direction == BuileGestureExt.GESTURE_LEFT) { snake.addDirToQue(new Integer(snake.LEFT)); } else if (direction == BuileGestureExt.GESTURE_RIGHT) { snake.addDirToQue(new Integer(snake.RIGHT)); } } } ).Buile(); }
{ "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 onClick(View v) { if(snake.getstatus() == snake.READY) { return; } else if(snake.getstatus() == snake.RUNNING) { // statusButton.setText("start"); statusButton.setImageResource(R.drawable.start); snake.pause(); } else { // statusButton.setText("pause"); statusButton.setImageResource(R.drawable.pause); snake.start(); } }
{ "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
Con este metodo se agregaran elementos a nuestra cabeza
public void addPrimero(Object obj) { if (cabeza == null) { //Si la cabeza es nula, entoces se creará un nuevo nodo donde le pasaremos el valor de obj cabeza = new Nodo(obj); } else { //Si no es nula, signifa que el valor que se ingrese, pasara a ser la nueva cabeza Nodo temp = cabeza; //Metemos la cabeza en un nodo temporal Nodo nuevo = new Nodo(obj); //Creamos un nuevo nodo, que no está enlazado nuevo.enlazarSiguiente(temp); //Y el nuevo nodo lo enlazamos a el nodo Temp, que contenia el valor anterior de la otra cabeza cabeza = nuevo; //Y ahora le decimos que la cabeza sera nuevo } size++; //Cada vez que agreguemos un nuevo nodo el tamaño de nuestra lista tendra que aumentar }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void crearVehiculo() {\n\t\t\r\n\t}", "private void crearElementos() {\n\n\t\tRotonda rotonda1 = new Rotonda(new Posicion(400, 120), \"5 de octubre\");\n\t\tthis.getListaPuntos().add(rotonda1);\n\n\t\tCiudad esquel = new Ciudad(new Posicion(90, 180), \"Esquel\");\n\t\tthis.getListaPuntos().add(esquel);\n\n\t\tCiudad trelew = new Ciudad(new Posicion(450, 200), \"Trelew\");\n\t\tthis.getListaPuntos().add(trelew);\n\n\t\tCiudad comodoro = new Ciudad(new Posicion(550, 400), \"Comodoro\");\n\t\tthis.getListaPuntos().add(comodoro);\n\n\t\tCiudad rioMayo = new Ciudad(new Posicion(350, 430), \"Rio Mayo\");\n\t\tthis.getListaPuntos().add(rioMayo);\n\n\t\t// --------------------------------------------------------\n\n\t\tRutaDeRipio rutaRipio = new RutaDeRipio(230, 230, rotonda1, esquel);\n\t\tthis.getListaRuta().add(rutaRipio);\n\n\t\tRutaPavimentada rutaPavimentada1 = new RutaPavimentada(380, 100, trelew, comodoro);\n\t\tthis.getListaRuta().add(rutaPavimentada1);\n\n\t\tRutaPavimentada rutaPavimentada2 = new RutaPavimentada(800, 120, esquel, comodoro);\n\t\tthis.getListaRuta().add(rutaPavimentada2);\n\n\t\tRutaDeRipio rutaripio3 = new RutaDeRipio(380, 100, trelew, comodoro);\n\t\tthis.getListaRuta().add(rutaripio3);\n\n\t\tRutaEnConstruccion rutaConst1 = new RutaEnConstruccion(180, 70, rioMayo, comodoro);\n\t\tthis.getListaRuta().add(rutaConst1);\n\n\t\tRutaPavimentada rutaPavimentada3 = new RutaPavimentada(600, 110, rioMayo, esquel);\n\t\tthis.getListaRuta().add(rutaPavimentada3);\n\t}", "public creacionempresa() {\n initComponents();\n mostrardatos();\n }", "public static void instanciarCreencias() {\n\t\tfor(int i =0; i < GestorPartida.getContJugadores(); i++) {\n\t\t\t\n\t\t\tGestorPartida.jugadores[i].setCreencias(new Creencias(GestorPartida.jugadores, GestorPartida.objetoJugador, GestorPartida.objetoSala, i)); \n\t\t}\n\t}", "public void CrearNew(ActionEvent e) {\n List<Pensum> R = ejbFacade.existePensumID(super.getSelected().getIdpensum());\n if(R.isEmpty()){\n super.saveNew(e);\n }else{\n new Auxiliares().setMsj(3,\"PENSUM ID YA EXISTE\");\n }\n }", "@Override\r\n\tprotected void agregarObjeto() {\r\n\t\t// opcion 1 es agregar nuevo justificativo\r\n\t\tthis.setTitle(\"PROCESOS - PERMISOS INDIVIDUALES (AGREGANDO)\");\r\n\t\tthis.opcion = 1;\r\n\t\tactivarFormulario();\r\n\t\tlimpiarTabla();\r\n\t\tthis.panelBotones.habilitar();\r\n\t}", "Compuesta createCompuesta();", "com.synergyj.cursos.webservices.ordenes.XMLBFactura addNewXMLBFactura();", "private void addInstituicao() {\n\n if (txtNome.getText().equals(\"\")) {\n JOptionPane.showMessageDialog(null, \"Campo Nome Invalido\");\n txtNome.grabFocus();\n return;\n } else if (txtNatureza.getText().equals(\"\")) {\n JOptionPane.showMessageDialog(null, \"Campo Natureza Invalido\");\n txtNatureza.grabFocus();\n return;\n }\n if ((instituicao == null) || (instituicaoController == null)) {\n instituicao = new Instituicao();\n instituicaoController = new InstituicaoController();\n }\n instituicao.setNome(txtNome.getText());\n instituicao.setNatureza_administrativa(txtNatureza.getText());\n if (instituicaoController.insereInstituicao(instituicao)) {\n limpaCampos();\n JOptionPane.showMessageDialog(null, \"Instituicao Cadastrada com Sucesso\");\n }\n }", "public void crear() {\n con = new Conexion();\n con.setInsertar(\"insert into lenguajes_programacion (nombre, fecha_creacion, estado) values ('\"+this.getNombre()+\"', '\"+this.getFecha_creacion()+\"', 'activo')\");\n }", "private void registrar() {\n String nombre = txtNombre.getText();\n if (!nombre.trim().isEmpty()) {\n Alumno a = new Alumno();\n \n // cont++ , ++cont\n// contIds++;\n a.setNombre(nombre);\n a.setId(++contIds);\n \n listaAlumnos.add(a);\n\n lblCantidad.setText(\"Cantidad de nombres: \" + listaAlumnos.size());\n\n txtNombre.setText(null);\n txtNombre.requestFocus();\n // Actualiza la interfaz gráfica de la tabla\n tblNombres.updateUI();\n \n// int cont = 1;\n// System.out.println(\"------------------\");\n// System.out.println(\"Listado de alumnos\");\n// System.out.println(\"------------------\");\n// for (String nom : listaNombres) {\n// System.out.println(cont+\") \"+nom);\n// cont++;\n// }\n// System.out.println(\"------------------\");\n }\n }", "public void crearAutomovil(){\r\n automovil = new Vehiculo();\r\n automovil.setMarca(\"BMW\");\r\n automovil.setModelo(2010);\r\n automovil.setPlaca(\"TWS435\");\r\n }", "OperacionColeccion createOperacionColeccion();", "@Command\n\tpublic void nuevoAnalista(){\n\t\tMap<String, Object> parametros = new HashMap<String, Object>();\n\n\t\t//parametros.put(\"recordMode\", \"NEW\");\n\t\tllamarFormulario(\"formularioAnalistas.zul\", null);\n\t}", "protected void creaPagine() {\n Pagina pag;\n Pannello pan;\n\n try { // prova ad eseguire il codice\n\n /* crea la pagina e aggiunge campi e pannelli */\n pag = this.addPagina(\"generale\");\n\n pan = PannelloFactory.orizzontale(this);\n pan.add(Cam.data);\n pan.add(Cam.importo.get());\n pan.add(Cam.note.get());\n pag.add(pan);\n\n } catch (Exception unErrore) { // intercetta l'errore\n Errore.crea(unErrore);\n }// fine del blocco try-catch\n\n }", "protected void agregarUbicacion(){\n\n\n\n }", "public void newElemento(Elemento item, Carrito carrito){\n SQLiteDatabase db = helper.getWritableDatabase();\r\n\r\n // TODO: 12.- Mapeamos columnas con valores\r\n // Crea un nuevo mapa de valores, de tipo clave-valor, donde clave es nombre de columna\r\n ContentValues values = new ContentValues();\r\n values.put(ElementosContract.Entrada.COLUMNA_CARRITO_ID, carrito.getId());\r\n values.put(ElementosContract.Entrada.COLUMNA_NOMBRE_PRODUCTO, item.getNombreProducto());\r\n values.put(ElementosContract.Entrada.COLUMNA_PRECIO_PRODUCTO, item.getPrecioProducto());\r\n values.put(ElementosContract.Entrada.COLUMNA_CANTIDAD, item.getCantidad());\r\n\r\n // TODO: 13.- Insertamos fila\r\n // Inserta la nueva fila, regresando el valor de la primary key\r\n long newRowId = db.insert(ElementosContract.Entrada.NOMBRE_TABLA, null, values);\r\n\r\n // cierra conexión\r\n db.close();\r\n }", "Compleja createCompleja();", "public abstract Anuncio creaAnuncioIndividualizado();", "public void inserisci(NodoAlbero dove, String contenuto, String tipo){\n if (n_nodi == 0){\n root = new NodoAlbero(contenuto, null, tipo);\n n_nodi++;\n return;\n }\n //se il nodo padre non ha un figlio, lo creiamo\n if (dove.getFiglio() == null)\n dove.setFiglio(new NodoAlbero(contenuto, dove, tipo));\n //se ce ne ha già almeno uno, lo accodiamo agli altri figli\n else {\n NodoAlbero temp = dove.getFiglio();\n while (temp.getFratello() != null)\n temp = temp.getFratello();\n temp.setFratello(new NodoAlbero(contenuto, temp.getPadre(), tipo));\n }\n n_nodi++;\n }", "public void creaAziendaAgricola(){\n\t\tCantina nipozzano = creaCantina(\"Nipozzano\");\t\n\t\tBotte[] bottiNipozzano = new Botte[5+(int)(Math.random()*10)];\t\n\t\tfor(int i=0; i<bottiNipozzano.length; i++){\n\t\t\tbottiNipozzano[i] = creaBotte(nipozzano, i, (int)(Math.random()*10+1), tipologiaBotte[(int)(Math.random()*tipologiaBotte.length)]);\n\t\t}\t\t\n\t\tVigna mormoreto = creaVigna(\"Mormoreto\", 330, 25, EsposizioneVigna.sud, \"Terreni ricchi di sabbia, ben drenati. Discreta presenza di calcio. pH neutro o leggermente alcalino\");\n\t\tFilare[] filariMormoreto = new Filare[5+(int)(Math.random()*10)];\n\t\tfor(int i=0; i<filariMormoreto.length;i++){\n\t\t\tfilariMormoreto[i] = creaFilare(mormoreto, i, tipologiaFilare[(int)(Math.random()*tipologiaFilare.length)]);\n\t\t}\t\n\t\tVigna montesodi = creaVigna(\"Montesodi\", 400, 20, EsposizioneVigna.sud_ovest, \"Arido e sassoso, di alberese, argilloso e calcareo, ben drenato, poco ricco di sostanza organica\");\n\t\tFilare[] filariMontesodi = new Filare[5+(int)(Math.random()*10)];\n\t\tfor(int i=0; i<filariMontesodi.length;i++){\n\t\t\tfilariMontesodi[i] = creaFilare(montesodi, i, tipologiaFilare[(int)(Math.random()*tipologiaFilare.length)]);\n\t\t}\n\t\t/*\n\t\t * CANTINA: POMINO - VIGNETO BENEFIZIO\n\t\t */\n\t\t\n\t\tCantina pomino = creaCantina(\"Pomino\");\n\t\tBotte[] bottiPomino = new Botte[5+(int)(Math.random()*10)];\t\n\t\tfor(int i=0; i<bottiPomino.length; i++){\n\t\t\tbottiPomino[i] = creaBotte(pomino, i, (int)(Math.random()*10+1), tipologiaBotte[(int)(Math.random()*tipologiaBotte.length)]);\n\t\t}\n\t\tVigna benefizio = creaVigna(\"Benefizio\", 700, 9, EsposizioneVigna.sud_ovest, \"Terreni ricchi di sabbia, forte presenza di scheletro. Molto drenanti. Ricchi in elementi minerali. PH acido o leggermente acido.\");\n\t\tFilare[] filariBenefizio = new Filare[5+(int)(Math.random()*10)];\n\t\tfor(int i=0; i<filariBenefizio.length;i++){\n\t\t\tfilariBenefizio[i] = creaFilare(benefizio, i, tipologiaFilare[(int)(Math.random()*tipologiaFilare.length)]);\n\t\t}\n\t\t\n\t\taziendaAgricolaDAO.saveLuogo(nipozzano);\n\t\taziendaAgricolaDAO.saveLuogo(mormoreto);\n\t\taziendaAgricolaDAO.saveLuogo(montesodi);\n\t\t\n\t\taziendaAgricolaDAO.saveLuogo(pomino);\n\t\taziendaAgricolaDAO.saveLuogo(benefizio);\n\t\t\n\t\taziendaAgricolaDAO.saveResponsabile(responsabile(\"Giulio d'Afflitto\"));\n\t\taziendaAgricolaDAO.saveResponsabile(responsabile(\"Francesco Ermini\"));\n\n\t\t\n\t}", "com.soa.SolicitarCreditoDocument.SolicitarCredito addNewSolicitarCredito();", "@Override\n\tpublic boolean create(Eleve o) {\n\t\tmap.put(o.getId(),o);\n\t\treturn true;\n\t}", "public void newElement() {\r\n }", "private void criaInterface() {\n\t\tColor azul = new Color(212, 212, 240);\n\n\t\tpainelMetadado.setLayout(null);\n\t\tpainelMetadado.setBackground(azul);\n\n\t\tmetadadoLabel = FactoryInterface.createJLabel(10, 3, 157, 30);\n\t\tpainelMetadado.add(metadadoLabel);\n\n\t\tbotaoAdicionar = FactoryInterface.createJButton(520, 3, 30, 30);\n\t\tbotaoAdicionar.setIcon(FactoryInterface.criarImageIcon(Imagem.ADICIONAR));\n\t\tbotaoAdicionar.setToolTipText(Sap.ADICIONAR.get(Sap.TERMO.get()));\n\t\tpainelMetadado.add(botaoAdicionar);\n\n\t\tbotaoEscolha = FactoryInterface.createJButton(560, 3, 30, 30);\n\t\tbotaoEscolha.setIcon(FactoryInterface.criarImageIcon(Imagem.VOLTAR_PRETO));\n\t\tbotaoEscolha.setToolTipText(Sap.ESCOLHER.get(Sap.TERMO.get()));\n\t\tbotaoEscolha.setEnabled(false);\n\t\tpainelMetadado.add(botaoEscolha);\n\n\t\talterarModo(false);\n\t\tatribuirAcoes();\n\t}", "private void populaFaixaEtariaCat()\n {\n faixaEtariaCatDAO.insert(new FaixaEtariaCat(\"Até 15 anos\"));\n faixaEtariaCatDAO.insert(new FaixaEtariaCat(\"De 16 a 19 anos\"));\n faixaEtariaCatDAO.insert(new FaixaEtariaCat(\"De 20 a 30 anos\"));\n faixaEtariaCatDAO.insert(new FaixaEtariaCat(\"De 31 a 45 anos\"));\n faixaEtariaCatDAO.insert(new FaixaEtariaCat(\"De 46 a 60 anos\"));\n faixaEtariaCatDAO.insert(new FaixaEtariaCat(\"Mais de 60 anos\"));\n faixaEtariaCatDAO.insert(new FaixaEtariaCat(\"Todas as idades\"));\n\n }", "@FXML\r\n private void crearSolicitud() {\r\n try {\r\n //Carga la vista de crear solicitud rma\r\n FXMLLoader loader = new FXMLLoader();\r\n loader.setLocation(Principal.class.getResource(\"/vista/CrearSolicitud.fxml\"));\r\n BorderPane vistaCrear = (BorderPane) loader.load();\r\n\r\n //Crea un dialogo para mostrar la vista\r\n Stage dialogo = new Stage();\r\n dialogo.setTitle(\"Solicitud RMA\");\r\n dialogo.initModality(Modality.WINDOW_MODAL);\r\n dialogo.initOwner(primerStage);\r\n Scene escena = new Scene(vistaCrear);\r\n dialogo.setScene(escena);\r\n\r\n //Annadir controlador y datos\r\n ControladorCrearSolicitud controlador = loader.getController();\r\n controlador.setDialog(dialogo, primerStage);\r\n\r\n //Carga el numero de Referencia\r\n int numReferencia = DAORma.crearReferencia();\r\n\r\n //Modifica el dialogo para que no se pueda cambiar el tamaño y lo muestra\r\n dialogo.setResizable(false);\r\n dialogo.showAndWait();\r\n\r\n } catch (IOException e) {\r\n e.printStackTrace();\r\n }\r\n }", "com.soa.SolicitarServicioDocument.SolicitarServicio addNewSolicitarServicio();", "private void criaBotoes(){\n \tfor(int i=0; i<botao.length; i++){\n \tfor(int j=0;j<botao[i].length; j++){ \n \t\tbotao[i][j] = new JButton();\n \tpainel.add(botao[i][j]);\n \t}\n \n \t}\n\t}", "public Funcionalidad() {\n Cajero cajero1 = new Cajero(\"Pepe\", 2);\n empleados.put(cajero1.getID(), cajero1);\n Reponedor reponedor1 = new Reponedor(\"Juan\", 3);\n empleados.put(reponedor1.getID(), reponedor1);\n Producto producto1 = new Producto(\"Platano\", 10, 8);\n productos.add(producto1);\n Perecedero perecedero1 = new Perecedero(LocalDateTime.now(), \"Yogurt\", 10, 8);\n }", "public void creoVehiculo() {\n\t\t\n\t\tAuto a= new Auto(false, 0);\n\t\ta.encender();\n\t\ta.setPatente(\"saraza\");\n\t\ta.setCantPuertas(123);\n\t\ta.setBaul(true);\n\t\t\n\t\tSystem.out.println(a);\n\t\t\n\t\tMoto m= new Moto();\n\t\tm.encender();\n\t\tm.frenar();\n\t\tm.setManubrio(true);\n\t\tm.setVelMax(543);\n\t\tm.setPatente(\"zas 241\");\n\t\tVehiculo a1= new Auto(true, 0);\n\t\ta1.setPatente(\"asd 423\");\n\t\t((Auto)a1).setBaul(true);\n\t\t((Auto)a1).setCantPuertas(15);\n\t\tif (a1 instanceof Auto) {\n\t\t\tAuto autito= (Auto) a1;\n\t\t\tautito.setBaul(true);\n\t\t\tautito.setCantPuertas(531);\n\t\t\t\n\t\t}\n\t\tif (a1 instanceof Moto) {\n\t\t\tMoto motito=(Moto) a1;\n\t\t\tmotito.setManubrio(false);\n\t\t\tmotito.setVelMax(15313);\n\t\t\t\n\t\t\t\n\t\t}\n\t\tif (a1 instanceof Camion) {\n\t\t\tCamion camioncito=(Camion) a1;\n\t\t\tcamioncito.setAcoplado(false);\n\t\t\tcamioncito.setPatente(\"ge\");\n\t\t\t\n\t\t\t\n\t\t}\n\t\tVehiculo a2= new Moto();\n\t\tSystem.out.println(a2);\n\t\ta1.frenar();\n\t\t\n\t\tArrayList<Vehiculo>listaVehiculo= new ArrayList<Vehiculo>();\n\t\tlistaVehiculo.add(new Auto(true, 53));\n\t\tlistaVehiculo.add(new Moto());\n\t\tlistaVehiculo.add(new Camion());\n\t\tfor (Vehiculo vehiculo : listaVehiculo) {\n\t\t\tSystem.out.println(\"clase:\" +vehiculo.getClass().getSimpleName());\n\t\t\tvehiculo.encender();\n\t\t\tvehiculo.frenar();\n\t\t\tSystem.out.println(\"=======================================\");\n\t\t\t\n\t\t}\n\t}", "private void creaPannelli() {\n /* variabili e costanti locali di lavoro */\n Pannello pan;\n\n try { // prova ad eseguire il codice\n\n /* pannello date */\n pan = this.creaPanDate();\n this.addPannello(pan);\n\n /* pannello coperti */\n PanCoperti panCoperti = new PanCoperti();\n this.setPanCoperti(panCoperti);\n this.addPannello(panCoperti);\n\n\n /* pannello placeholder per il Navigatore risultati */\n /* il navigatore vi viene inserito in fase di inizializzazione */\n pan = new PannelloFlusso(Layout.ORIENTAMENTO_ORIZZONTALE);\n this.setPanNavigatore(pan);\n this.addPannello(pan);\n\n\n } catch (Exception unErrore) { // intercetta l'errore\n Errore.crea(unErrore);\n } // fine del blocco try-catch\n\n }", "public static void creaHidatoAutomaticament()\n {\n ControladorVista.mostraCreacioHidatoAutomatica();\n }", "private void crearVista() {\n\t\tVista vista = Vista.getInstancia();\n\t\tvista.addObservador(this);\n\n\t}", "public void crearAtracciones(){\n \n //Añado atracciones tipo A\n for (int i = 0; i < 4 ; i++){\n Atraccion atraccion = new A();\n atracciones.add(atraccion);\n }\n //Añado atracciones tipo B\n for (int i = 0; i < 6 ; i++){\n Atraccion atraccion = new B();\n atracciones.add(atraccion);\n }\n //Añado atracciones tipo C\n for (int i = 0; i < 4 ; i++){\n Atraccion atraccion = new C();\n atracciones.add(atraccion);\n }\n //Añado atracciones tipo D\n for (int i = 0; i < 3 ; i++){\n Atraccion atraccion = new D();\n atracciones.add(atraccion);\n }\n //Añado atracciones tipo E\n for (int i = 0; i < 7 ; i++){\n Atraccion atraccion = new E();\n atracciones.add(atraccion);\n }\n \n }", "public void crear(Tarea t) {\n t.saveIt();\n }", "private void crearObjetos() {\n // crea los botones\n this.btnOK = new CCButton(this.OK);\n this.btnOK.setActionCommand(\"ok\");\n this.btnOK.setToolTipText(\"Confirmar la Operación\");\n \n this.btnCancel = new CCButton(this.CANCEL);\n this.btnCancel.setActionCommand(\"cancel\");\n this.btnCancel.setToolTipText(\"Cancelar la Operación\");\n \n // Agregar los eventos a los botones\n this.btnOK.addActionListener(this);\n this.btnCancel.addActionListener(this);\n }", "private void añadirEnemigo() {\n\t\t\n\t\tif(enemigo.isVivo()==false){\n\t\t\tint k;\n\t\t\tk = (int)(Math.random()*1000)+1;\n\t\t\tif(k<=200){\n\t\t\t\tif(this.puntuacion<10000){\n\t\t\t\t\tenemigo.setTipo(0);\n\t\t\t\t\tenemigo.setVivo(true);\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\tenemigo.setTipo(1);\n\t\t\t\t\tenemigo.setVivo(true);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "public void insertarCargo() {\n ContentValues values = new ContentValues();\n for (int i = 0; i <= 3; i++) {\n values.put(\"NOMBRE_CARGO\", \"nombre \" + i);\n values.put(\"DESCRIPCION_CARGO\", \"Descripcion \" + i);\n db.insert(\"CARGO\", null, values);\n }\n }", "protected abstract M createNewElement();", "public void crearNodos()\n\t{\n\t\tfor(List<String> renglon: listaDeDatos)\n\t\t{\n\t\t\tPersona persona = new Persona(Integer.parseInt(renglon.get(1)), Integer.parseInt(renglon.get(2))); //crea la persona\n\t\t\t\n\t\t\tNodo nodo = new Nodo(Integer.parseInt(renglon.get(0)), 0, 0, false); //crea el nodo con id en posicion 1\n\t\t\t\n\t\t\tnodo.agregarPersona(persona);\n\t\t\tlistaNodos.add(nodo);\n\t\t}\n\t\t\n\t}", "Secuencia createSecuencia();", "Operacion createOperacion();", "public void agregar_Alinicio(int elemento){\n inicio=new Nodo(elemento, inicio);// creando un nodo para que se inserte otro elemnto en la lista\r\n if (fin==null){ // si fin esta vacia entonces vuelve al inicio \r\n fin=inicio; // esto me sirve al agregar otro elemento al final del nodo se recorre al inicio y asi sucesivamnete\r\n \r\n }\r\n \r\n }", "public void crearDisco( ){\r\n boolean parameter = true;\r\n String artista = panelDatos.darArtista( );\r\n String titulo = panelDatos.darTitulo( );\r\n String genero = panelDatos.darGenero( );\r\n String imagen = panelDatos.darImagen( );\r\n\r\n if( ( artista.equals( \"\" ) || titulo.equals( \"\" ) ) || ( genero.equals( \"\" ) || imagen.equals( \"\" ) ) ) {\r\n parameter = false;\r\n JOptionPane.showMessageDialog( this, \"Todos los campos deben ser llenados para crear el disco\" );\r\n }\r\n if( parameter){\r\n boolean ok = principal.crearDisco( titulo, artista, genero, imagen );\r\n if( ok )\r\n dispose( );\r\n }\r\n }", "public void insertar() {\r\n if (vista.jTNombreempresa.getText().equals(\"\") || vista.jTTelefono.getText().equals(\"\") || vista.jTRFC.getText().equals(\"\") || vista.jTDireccion.getText().equals(\"\")) {\r\n JOptionPane.showMessageDialog(null, \"Faltan Datos: No puedes dejar cuadros en blanco\");//C.P.M Verificamos si las casillas esta vacia si es asi lo notificamos\r\n } else {//C.P.M de lo contrario prosegimos\r\n modelo.setNombre(vista.jTNombreempresa.getText());//C.P.M mandamos las variabes al modelo \r\n modelo.setDireccion(vista.jTDireccion.getText());\r\n modelo.setRfc(vista.jTRFC.getText());\r\n modelo.setTelefono(vista.jTTelefono.getText());\r\n \r\n Error = modelo.insertar();//C.P.M Ejecutamos el metodo del modelo \r\n if (Error.equals(\"\")) {//C.P.M Si el modelo no regresa un error es que todo salio bien\r\n JOptionPane.showMessageDialog(null, \"Se guardo exitosamente la configuracion\");//C.P.M notificamos a el usuario\r\n vista.dispose();//C.P.M y cerramos la vista\r\n } else {//C.P.M de lo contrario \r\n JOptionPane.showMessageDialog(null, Error);//C.P.M notificamos a el usuario el error\r\n }\r\n }\r\n }", "public boolean crear(String nombre, String apellido, String cedula) {\n Cliente cliente = new Cliente(generarId(), nombre, apellido, cedula); // Creo un nuevo cliente\n return datos.add(cliente); // Agrego a mi lista de datos\n }", "ParqueaderoEntidad agregar(ParqueaderoEntidad parqueadero);", "void create_MB(String nombre){\n if (Globales.UltimoIndiceMailbox == 6){\r\n PantallaError pe = new PantallaError(\"Ya hay 6 buzones (mailbox) en ejecución, no puede crear más.\");\r\n }\r\n else{\r\n Mailbox mb = new Mailbox(\"MB\"+nombre);\r\n Globales.mails[Globales.UltimoIndiceMailbox]=mb;\r\n //System.out.println(\"Globales.mails[\"+Globales.UltimoIndiceMailbox+\"] = \"+Globales.mails[Globales.UltimoIndiceMailbox].nombre);\r\n Globales.UltimoIndiceMailbox++;\r\n //System.out.println(\"creó el mb: \"+mb.nombre+\" y lo insertó el el arreglo global de mb\");\r\n }\r\n }", "private void nuevoJuego() { \n\n objJuegoTresEnRaya = new JuegoTresEnRaya();\n objJuegoTresEnRaya.addObserver(this);\n objJuegoTresEnRaya.setQuienComienza(JuegoTresEnRaya.JUGADOR);\n objJuegoTresEnRaya.setQuienJuega(JuegoTresEnRaya.JUGADOR);\n \n }", "public Elemento crearElementos(String contenido) {\n\t\tTitulo unTitulo = new Titulo();\n\t\tSubTitulo unSubTitulo = new SubTitulo();\n\t\tImagen unaImagen = new Imagen();\n\t\tSeccion unaSeccion = new Seccion();\n\t\tLista unaLista = new Lista();\n\t\tTextoPlano textoPlano = new TextoPlano();\n\n\t\t// Se agregan los elementos a la cadena\n\t\tthis.setSiguiente(unTitulo);\n\t\tunTitulo.setSiguiente(unSubTitulo);\n\t\tunSubTitulo.setSiguiente(unaImagen);\n\t\tunaImagen.setSiguiente(unaSeccion);\n\t\tunaSeccion.setSiguiente(unaLista);\n\t\tunaLista.setSiguiente(textoPlano);\n\n\t\tElemento elemento = this.siguiente.crearElemento(contenido);\n\n\t\treturn elemento;\n\t}", "public void agregarNodo(Nodo nuevo){\n agregarNodoRec(root, nuevo);//la primera vez inicia en la raiz \n }", "public void crearPersona(){\r\n persona = new Persona();\r\n persona.setNombre(\"Jose\");\r\n persona.setCedula(12345678);\r\n }", "public void iniciar() {\n\t\tcrearElementos();\n\t\tcrearVista();\n\n\t}", "private void controladorNuevoColectivo(Controlador controlador){\n this.contNuevoColectivo = controlador.getNuevoColectivo();\n nuevoColectivo.setControlCreateCollective(contNuevoColectivo);\n }", "@Override\n\tpublic Boolean creaListaElettorale(String elezione, String nomeLista, String sindaco, String simbolo,\n\t\t\tArrayList<String> componenti) {\n\t\t\n\t\t//creo la lista\n\t\tLista nuovaLE = new Lista(elezione, sindaco, nomeLista, simbolo, componenti);\n\t\t\n\t\t//carico la lista delle liste elettorali\n\t\tArrayList<Lista> listaListeElettorali = listaListeElettorali();\n\n\t\t//aggiungo alla lista delle liste elettorali la nuova lista creata\n\t\tlistaListeElettorali.add(nuovaLE);\n\t\t\n\t\t//memorizzo la lista creata nel db\n\t\tmemorizzaListaElettorale(listaListeElettorali);\n\n\t\treturn true;\n\t\n\t}", "private void creaModuloMem() {\n /* variabili e costanti locali di lavoro */\n ArrayList<Campo> campi = new ArrayList<Campo>();\n ModuloRisultati modulo;\n Campo campo;\n\n try { // prova ad eseguire il codice\n\n campo = CampoFactory.intero(Campi.Ris.codicePiatto.getNome());\n campi.add(campo);\n\n campo = CampoFactory.testo(Campi.Ris.nomePiatto.getNome());\n campo.setVisibileVistaDefault();\n campo.setTitoloColonna(\"piatto\");\n campo.setToolTipLista(\"nome del piatto\");\n campo.decora()\n .etichetta(\"nome del piatto\"); // le etichette servono per il dialogo ricerca\n campo.setLarghezza(250);\n campi.add(campo);\n\n campo = CampoFactory.testo(Campi.Ris.categoria.getNome());\n campo.setVisibileVistaDefault();\n campo.setTitoloColonna(\"categoria\");\n campo.setToolTipLista(\"categoria del piatto\");\n campo.setLarghezza(80);\n campi.add(campo);\n\n campo = CampoFactory.intero(Campi.Ris.quanteVolte.getNome());\n campo.setVisibileVistaDefault();\n campo.setLarghezza(80);\n campo.setTitoloColonna(\"quante volte\");\n campo.setToolTipLista(\n \"quante volte questo piatto è stato offerto nel periodo analizzato\");\n campo.decora().etichetta(\"quante volte\");\n campi.add(campo);\n\n campo = CampoFactory.intero(Campi.Ris.quantiCoperti.getNome());\n campo.setVisibileVistaDefault();\n campo.setTitoloColonna(\"coperti\");\n campo.setToolTipLista(\"numero di coperti che avrebbero potuto ordinare\");\n campo.decora().etichetta(\"n. coperti\");\n campo.setLarghezza(80);\n campi.add(campo);\n\n campo = CampoFactory.intero(Campi.Ris.quanteComande.getNome());\n campo.setVisibileVistaDefault();\n campo.setTitoloColonna(\"comande\");\n campo.setToolTipLista(\"numero di comande effettive\");\n campo.decora().etichetta(\"n. comande\");\n campo.setLarghezza(80);\n campo.setTotalizzabile(true);\n campi.add(campo);\n\n campo = CampoFactory.percentuale(Campi.Ris.gradimento.getNome());\n campo.setVisibileVistaDefault();\n campo.setTitoloColonna(\"gradimento\");\n campo.setToolTipLista(\n \"percentuale di gradimento (è il 100% se tutti i coperti potenziali lo hanno ordinato)\");\n campo.decora().etichetta(\"% gradimento\");\n campo.setLarghezza(80);\n campi.add(campo);\n\n modulo = new ModuloRisultati(campi);\n setModuloRisultati(modulo);\n\n\n } catch (Exception unErrore) { // intercetta l'errore\n Errore.crea(unErrore);\n } // fine del blocco try-catch\n\n }", "@Override\n\tpublic void nuevo() {\n\n\t}", "public void domicilioAgregar() {\r\n\t\tlog.info(\"Domicilio agregar \" + nuevoDomici.getDomicilio());\r\n\t\tboolean verifica = false;\r\n\t\tmensaje = null;\r\n\t\tnuevoDomici.setTbTipoCasa(objTipoCasaService.findTipoCasa(Tipocasanuevo));\r\n\t\tnuevoDomici.setDomicilio(domicilio);\r\n\t\tnuevoDomici.setReferencia(referencia);\r\n\t\tnuevoDomici.setTbUbigeo(objUbigeoService.findUbigeo(idUbigeo));\r\n\t\tlog.info(\"TIPO-CASA-NUEVO--->\"+nuevoDomici.getTbTipoCasa().getIdtipocasa());\r\n\t\tnuevoDomici.setNuevoD(1);\r\n\t\t//aqui ponfo el ID-Domicilio a la lista Domicilio temporalmente.\r\n\t\tnuevoDomici.setIddomiciliopersona(0);\r\n\t\tnuevoDomici.setTbEstadoGeneral(objEstadoGeneralService.findEstadogeneral(15));\r\n\t\t\r\n\t\tfor (int i = 0; i < DomicilioPersonaList.size(); i++) {\r\n\t\t\tlog.info(\" \"+ DomicilioPersonaList.get(i).getDomicilio() + \" \" + nuevoDomici.getDomicilio());\r\n\t\t\tif (DomicilioPersonaList.get(i).getDomicilio().equals(nuevoDomici.getDomicilio())) {\r\n\t\t\t\tverifica = false;\r\n\t\t\t\tmensaje = \"el Domicilio ya se encuentra registrado en la lista de domiclio cliente\";\r\n\t\t\t\tbreak;\r\n\t\t\t}else {\r\n\t\t\t\tverifica = true;\r\n\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\tif (DomicilioPersonaList.size() == 0) {\r\n\t\t\t\tverifica = true;\r\n\t\t\t\t}\r\n\t\t\tif (verifica) {\r\n\t\t\t\tnuevoDomici.setItem(\"Por Agregar\");\r\n\t\t\t\tDomicilioPersonaList.add(nuevoDomici);\r\n\t\t\t\tlog.info(\"se agrego \"+ nuevoDomici.getDomicilio());\r\n\t\t\t\t}\r\n\t\t\tif (mensaje != null) {\r\n\t\t\t\tmsg = new FacesMessage(FacesMessage.SEVERITY_FATAL,\r\n\t\t\t\tConstants.MESSAGE_ERROR_FATAL_TITULO, mensaje);\r\n\t\t\t\tFacesContext.getCurrentInstance().addMessage(null, msg);\r\n\t\t\t\t}\r\n\t\t\tnuevoDomici = new DomicilioPersonaSie();\r\n\t\t}", "private void populaObjetivoCat()\n {\n objetivoCatDAO.insert(new ObjetivoCat(\"Hipertrofia\", \"weight\"));\n objetivoCatDAO.insert(new ObjetivoCat(\"Saude\", \"apple\"));\n objetivoCatDAO.insert(new ObjetivoCat(\"Emagrecer\", \"gloves\"));\n }", "private void insertData() {\n compra = factory.manufacturePojo(CompraVentaEntity.class);\n compra.setId(1L);\n compra.setQuejasReclamos(new ArrayList<>());\n em.persist(compra);\n\n for (int i = 0; i < 3; i++) {\n QuejasReclamosEntity entity = factory.manufacturePojo(QuejasReclamosEntity.class);\n entity.setCompraVenta(compra);\n em.persist(entity);\n data.add(entity);\n compra.getQuejasReclamos().add(entity);\n }\n }", "@Command\n public void nuevaMateria() {\n\t\t\n\t\tWindow window = (Window)Executions.createComponents(\n \"/WEB-INF/include/Mantenimiento/Materias/vtnMaterias.zul\", null, null);\n window.doModal();\n }", "public CrearQuedadaVista() {\n }", "private void inicializarcomponentes() {\n Comunes.cargarJList(jListBecas, becasFacade.getTodasBecasVigentes());\n \n }", "private void colocar(){\n setLayout(s);\n eleccion = new BarraEleccion(imagenes,textos);\n eleccion.setLayout(new GridLayout(4,4));\n eleccion.setBorder(BorderFactory.createTitledBorder(\n BorderFactory.createBevelBorder(5), \"SELECCIONA EL MAGUEY\",\n TitledBorder.CENTER, TitledBorder.TOP,new Font(\"Helvetica\",Font.BOLD,15),Color.WHITE));\n eleccion.setFondoImagen(imgFond);\n etqAlcohol = new JLabel(\"SELECCIONA EL GRADO DE ALCOHOL\");\n etqAlcohol.setFont(new Font(\"Helvetica\", Font.BOLD, 14));\n etqAlcohol.setForeground(Color.WHITE);\n alcohol = new JComboBox<>();\n etqTipo = new JLabel(\"SELECCIONA EL TIPO DE MEZCAL\");\n etqTipo.setFont(new Font(\"Helvetica\", Font.BOLD, 14));\n etqTipo.setForeground(Color.WHITE);\n tipo = new JComboBox<>();\n btnRegistrar = new JButton();\n btnRegistrar.setFont(new Font(\"Sylfaen\", Font.BOLD, 17));\n btnRegistrar.setText(\"Registrar\");\n btnRegistrar.setHorizontalAlignment(SwingConstants.CENTER);\n btnRegistrar.setActionCommand(\"registrar\");\n add(eleccion);\n add(etqAlcohol);\n add(alcohol);\n add(etqTipo);\n add(tipo);\n add(btnRegistrar);\n iniciarVistas();\n }", "private void ReservarCita(String horaini,String horafin)\n {\n progressDialog=new ProgressDialog(HorasCitasActivity.this);\n progressDialog.setTitle(\"Agregado horario\");\n progressDialog.setMessage(\"cargando...\");\n progressDialog.show();\n progressDialog.setCancelable(false);\n String key = referenceehoras.push().getKey();\n\n // para gaurar el nodo Citas\n // sadfsdfsdfsd1212sdss\n Horario objecita =new Horario(key,idespecialidad,horaini,horafin,nombreespecialidad );\n //HorarioAtencion\n // reference=FirebaseDatabase.getInstance().getReference(\"HorarioAtencion\");\n // referenceCitas= FirebaseDatabase.getInstance().getReference(\"CitasReservadas\").child(user_id);\n referenceehoras.child(key).setValue(objecita).addOnCompleteListener(new OnCompleteListener<Void>() {\n @Override\n public void onComplete(@NonNull Task<Void> task) {\n if (task.isSuccessful()){\n Toast.makeText(HorasCitasActivity.this, \"Agregado\", Toast.LENGTH_SHORT).show();\n progressDialog.dismiss();\n }\n }\n }).addOnFailureListener(new OnFailureListener() {\n @Override\n public void onFailure(@NonNull Exception e) {\n Toast.makeText(HorasCitasActivity.this, \"Error :\" +e.getMessage(), Toast.LENGTH_SHORT).show();\n\n }\n });\n }", "private void addCoche(ClickEvent clickEvent) throws NotFoundExcept {\r\n\t\tCocheDTO cocheDTO = new CocheDTO();\r\n\t\taddCocheSetValues(cocheDTO);\r\n\t\tcocheService.create(cocheDTO);\r\n\t\taddCocheEraseFields();\r\n\t\tthis.refresh(clickEvent);\r\n\t}", "public void initForAddNew() {\r\n\r\n\t}", "private void btnAgregarActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnAgregarActionPerformed\n \n camino=null;\n \n int status = fileChooser.showOpenDialog (null);\n if (status == JFileChooser.APPROVE_OPTION){\n File selectedFile = fileChooser.getSelectedFile();\n camino = selectedFile.getAbsolutePath();\n }\n else{ \n if (status == JFileChooser.CANCEL_OPTION){\n System.out.println(\"CANCELAR\");\n }\n \n }\n try {\n cancion.agregarCancion(camino);\n } catch (IOException ex) {\n Logger.getLogger(biblioteca.class.getName()).log(Level.SEVERE, null, ex);\n } catch (UnsupportedTagException ex) {\n Logger.getLogger(biblioteca.class.getName()).log(Level.SEVERE, null, ex);\n } catch (InvalidDataException ex) {\n Logger.getLogger(biblioteca.class.getName()).log(Level.SEVERE, null, ex);\n }\n String[] test = cancion.mostrarCancion(i);\n lista.addElement(\" \"+test[0]);\n libCancion.setModel(lista);\n i++;\n }", "public void crearEntidad() throws EntidadNotFoundException {\r\n\t\tif (validarCampos(getNewEntidad())) {\r\n\t\t\tif (validarNomNitRepetidoEntidad(getNewEntidad())) {\r\n\t\t\t\tFacesContext.getCurrentInstance().addMessage(null,\r\n\t\t\t\t\t\tnew FacesMessage(FacesMessage.SEVERITY_WARN, \"Advertencia: \", \"Nombre, Nit o Prejifo ya existe en GIA\"));\r\n\t\t\t} else {\r\n\t\t\t\tif (entidadController.crearEntidad(getNewEntidad())) {\r\n\t\t\t\t\tmensajeGrow(\"Entidad Creada Satisfactoriamente\", getNewEntidad());\r\n\t\t\t\t\tRequestContext.getCurrentInstance().execute(\"PF('entCrearDialog').hide()\");\r\n\t\t\t\t\tsetNewEntidad(new EntidadDTO());\r\n\t\t\t\t\tresetCodigoBUA();\r\n\t\t\t\t} else {\r\n\t\t\t\t\tmensajeGrow(\"Entidad No Fue Creada\", getNewEntidad());\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tlistarEntidades();\r\n\t\t\t// newEntidad = new EntidadDTO();\r\n\t\t\t// fechaActual();\r\n\t\t}\r\n\r\n\t}", "public void creaAddebitiGiornalieri(AddebitoFissoPannello pannello,\n int codConto,\n Date dataInizio,\n Date dataFine) {\n /* variabili e costanti locali di lavoro */\n boolean continua = true;\n Modulo modAddFisso;\n ArrayList<CampoValore> campiFissi;\n Campo campoQuery;\n CampoValore campoVal;\n ArrayList<WrapListino> lista;\n ArrayList<AddebitoFissoPannello.Riga> righeDialogo = null;\n int quantita;\n\n try { // prova ad eseguire il codice\n\n modAddFisso = this.getModulo();\n campiFissi = new ArrayList<CampoValore>();\n\n /* recupera dal dialogo il valore obbligatorio del conto */\n if (continua) {\n campoQuery = modAddFisso.getCampo(Addebito.Cam.conto.get());\n campoVal = new CampoValore(campoQuery, codConto);\n campiFissi.add(campoVal);\n }// fine del blocco if\n\n /* recupera dal dialogo il pacchetto di righe selezionate */\n if (continua) {\n righeDialogo = pannello.getRigheSelezionate();\n }// fine del blocco if\n\n /* crea il pacchetto delle righe di addebito fisso da creare */\n if (continua) {\n\n /* traverso tutta la collezione delle righe selezionate nel pannello */\n for (AddebitoFissoPannello.Riga riga : righeDialogo) {\n lista = ListinoModulo.getPrezzi(riga.getCodListino(),\n dataInizio,\n dataFine,\n true,\n false);\n quantita = riga.getQuantita();\n for (WrapListino wrapper : lista) {\n this.creaAddebitoFisso(codConto, dataInizio, wrapper, quantita);\n }\n } // fine del ciclo for-each\n }// fine del blocco if\n\n } catch (Exception unErrore) { // intercetta l'errore\n Errore.crea(unErrore);\n }// fine del blocco try-catch\n\n }", "public void construirSegundoSetDeDominiosReglaCompleja() {\n\n\t\tlabeltituloSeleccionDominios = new JLabel();\n\n\t\tcomboDominiosSet2ReglaCompleja = new JComboBox(dominio);// creamos el Segundo combo,y le pasamos un array de cadenas\n\t\tcomboDominiosSet2ReglaCompleja.setSelectedIndex(0);// por defecto quiero visualizar el Segundo item\n\t\titemscomboDominiosSet2ReglaCompleja = new JComboBox();// creamo el segundo combo, vacio\n\t\titemscomboDominiosSet2ReglaCompleja.setEnabled(false);// //por defecto que aparezca deshabilitado\n\n\t\tlabeltituloSeleccionDominios.setText(\"Seleccione el Segundo Dominio de regla compleja\");\n\t\tpanelDerecho.add(labeltituloSeleccionDominios);\n\t\tlabeltituloSeleccionDominios.setBounds(30, 30, 50, 20);\n\t\tpanelDerecho.add(comboDominiosSet2ReglaCompleja);\n\t\tcomboDominiosSet2ReglaCompleja.setBounds(100, 30, 150, 24);\n\t\tpanelDerecho.add(itemscomboDominiosSet2ReglaCompleja);\n\t\titemscomboDominiosSet2ReglaCompleja.setBounds(100, 70, 150, 24);\n\n\t\tpanelDerecho.setBounds(10, 50, 370, 110);\n\n\t\t/* Creamos el objeto controlador, para manejar los eventos */\n\t\tControlDemoCombo controlDemoCombo = new ControlDemoCombo(this);\n\t\tcomboDominiosSet2ReglaCompleja.addActionListener(controlDemoCombo);// agregamos escuchas\n\n\t}", "private void creerMethode() {\n if (estValide()) {\n methode = new Methode();\n methode.setNom(textFieldNom.getText());\n methode.setVisibilite(comboBoxVisibilite.getValue());\n methode.setType(comboBoxType.getValue());\n ArrayList<Parametre> temp = new ArrayList<>();\n for (Parametre parametre : parametreListView.getItems())\n temp.add(parametre);\n methode.setParametres(temp);\n close();\n }\n }", "private void insertData() {\n\n cliente = factory.manufacturePojo(ClienteEntity.class);\n em.persist(cliente);\n for (int i = 0; i < 3; i++) {\n FormaPagoEntity formaPagoEntity = factory.manufacturePojo(FormaPagoEntity.class);\n formaPagoEntity.setCliente(cliente);\n em.persist(formaPagoEntity);\n data.add(formaPagoEntity);\n }\n }", "public void agregarAlInicio( int elemento ) {\n\t\tif( !estaVacia() ) {\n\t\t\tinicio = new NodoDoble(elemento, inicio, null);\n\t\t\tinicio.siguiente.anterior = inicio;\n\t\t} else {\n\t\t\tinicio = fin = new NodoDoble(elemento);\n\t\t}\n\t}", "public void crearClase() {\r\n\t\tsetClase(3);\r\n\t\tsetTipoAtaque(3);\r\n\t\tsetArmadura(15);\r\n\t\tsetModopelea(0);\r\n\t}", "public void almacenoDatos(){\n BaseDatosSecundaria administrador= new BaseDatosSecundaria(this);\n SQLiteDatabase bdsecunadaria= administrador.getWritableDatabase();\n _valuesPedido.put(\"Producto\", this._productoNombre);\n _valuesPedido.put(\"Precio\",this._productoPrecio);\n _valuesPedido.put(\"Cantidad\",this._etAdquirir.getText().toString());\n _valuesPedido.put(\"Vendedor\",this.username);\n _valuesPedido.put(\"Id_Producto\",this._productoId);\n bdsecunadaria.insert(\"DATOS\",null,this._valuesPedido);\n bdsecunadaria.close();\n }", "public void AddReliquias(){\n DLList reliquias = new DLList();\n reliquias.insertarInicio(NombreReliquia); \n }", "private void aumentaCapacidade(){\n\t\tif(this.tamanho == this.elementos.length){\n\t\t\tObject[] elementosNovos = new Object[this.elementos.length*2];\n\t\t\tfor(int i =0; i<this.elementos.length;i++){\n\t\t\t\telementosNovos[i]=this.elementos[i];\n\t\t\t}\n\t\t\tthis.elementos=elementosNovos;\n\t\t}\n\t}", "private void agregarComponentes() {\n JButton botonEstudiante = new JButton(\"Estudiante\");\r\n JButton botonDocente = new JButton(\"Docente\");\r\n JButton botonEquipo = new JButton(\"Equipo\");\r\n\r\n botonEstudiante.addActionListener(new OyenteListaEstudiante(this));\r\n botonDocente.addActionListener(new OyenteListaDocente(this));\r\n botonEquipo.addActionListener(new OyenteListaEquipo(this));\r\n\r\n // crea objeto Box para manejar la colocación de areaConsulta y\r\n // botonEnviar en la GUI\r\n Box boxNorte = Box.createHorizontalBox();\r\n boxNorte.add(botonDocente);\r\n boxNorte.add(botonEstudiante);\r\n boxNorte.add(botonEquipo);\r\n\r\n // crea delegado de JTable para modeloTabla\r\n tablaDatosIngresdos = new JTable();\r\n add(boxNorte, BorderLayout.NORTH);\r\n\r\n add(new JScrollPane(tablaDatosIngresdos), BorderLayout.CENTER);\r\n\r\n }", "ParqueaderoEntidad agregar(String nombre);", "void insertar_cabeceraMatriz(Nodo_B nuevo){\n \n if(this.primero == null){\n this.primero = nuevo;\n this.ultimo = nuevo;\n \n this.size++;\n }else{\n \n if(nuevo.getValor() < this.primero.getValor()){\n nuevo.siguiente = this.primero;\n this.primero.anterior = nuevo;\n this.primero = nuevo;\n this.size++;\n }else if(nuevo.getValor() > this.ultimo.getValor()){\n this.ultimo.siguiente = nuevo;\n nuevo.anterior = this.ultimo;\n this.ultimo = nuevo;\n this.size++;\n }else{\n Nodo_B pivote = this.primero;\n \n while(pivote != null){\n if(nuevo.getValor() < pivote.getValor()){\n nuevo.siguiente = pivote;\n nuevo.anterior = pivote.anterior;\n pivote.anterior.siguiente = nuevo;\n pivote.anterior = nuevo;\n this.size++;\n break;\n }else if(nuevo.getValor() == pivote.getValor()){\n System.out.print(\"ya hay un valor con este codigo registrado\");\n break;\n }else{\n pivote = pivote.siguiente;\n }\n }\n }\n }\n // JOptionPane.showMessageDialog(null, \"salio del metodo insertar cabecera con el pais :\"+nuevo.nombreDestino);\n }", "@Override\n\tpublic void crearNuevaPoblacion() {\n\t\t/* Nos quedamos con los mejores individuos. Del resto, cruzamos la mitad, los mejores,\n\t\t * y el resto los borramos.*/\n\t\tList<IIndividuo> poblacion2 = new ArrayList<>();\n\t\tint numFijos = (int) (poblacion.size()/2);\n\t\t/* Incluimos el 50%, los mejores */\n\t\tpoblacion2.addAll(this.poblacion.subList(0, numFijos));\n\t\t\n\t\t/* De los mejores, mezclamos la primera mitad \n\t\t * con todos, juntandolos de forma aleatoria */\n\t\tList<IIndividuo> temp = poblacion.subList(0, numFijos+1);\n\t\tfor(int i = 0; i < temp.size()/2; i++) {\n\t\t\tint j;\n\t\t\tdo {\n\t\t\t\tj = Individuo.aleatNum(0, temp.size()-1);\n\t\t\t}while(j != i);\n\t\t\t\n\t\t\ttry {\n\t\t\t\tpoblacion2.addAll(cruce(temp.get(i), temp.get(j)));\n\t\t\t} catch (CruceNuloException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t\t\n\t\t//this.poblacion.clear();\n\t\tthis.poblacion = poblacion2;\n\t}", "private void inizia() throws Exception {\n this.setAllineamento(Layout.ALLINEA_CENTRO);\n this.creaBordo(\"Coperti serviti\");\n\n campoPranzo=CampoFactory.intero(\"a pranzo\");\n campoPranzo.setLarghezza(60);\n campoPranzo.setModificabile(false);\n campoCena=CampoFactory.intero(\"a cena\");\n campoCena.setLarghezza(60);\n campoCena.setModificabile(false);\n campoTotale=CampoFactory.intero(\"Totale\");\n campoTotale.setLarghezza(60); \n campoTotale.setModificabile(false);\n\n this.add(campoPranzo);\n this.add(campoCena);\n this.add(campoTotale);\n }", "private void azzeraInsertForm() {\n\t\tviewInserimento.getCmbbxTipologia().setSelectedIndex(-1);\n\t\tviewInserimento.getTxtFieldDataI().setText(\"\");\n\t\tviewInserimento.getTxtFieldValore().setText(\"\");\n\t\tviewInserimento.getTxtFieldDataI().setBackground(Color.white);\n\t\tviewInserimento.getTxtFieldValore().setBackground(Color.white);\n\t}", "private void insertar() {\n try {\n cvo.setNombre_cliente(vista.txtNombre.getText());\n cvo.setApellido_cliente(vista.txtApellido.getText());\n cvo.setDireccion_cliente(vista.txtDireccion.getText());\n cvo.setCorreo_cliente(vista.txtCorreo.getText());\n cvo.setClave_cliente(vista.txtClave.getText());\n cdao.insertar(cvo);\n vista.txtNombre.setText(\"\");\n vista.txtApellido.setText(\"\");\n vista.txtDireccion.setText(\"\");\n vista.txtCorreo.setText(\"\");\n vista.txtClave.setText(\"\");\n JOptionPane.showMessageDialog(null, \"Registro Ingresado\");\n } catch (Exception e) {\n JOptionPane.showMessageDialog(null, \"Debe ingresar Datos para guardar registro!\");\n }\n }", "public void iniciarUI()\n\t{\n\t\tDefaultTableModel model = new DefaultTableModel(columnas, 1);\n\t\tpasabordos = new JTable(model);\n\n\t\tvuelos = new JComboBox();\n\t\tllenarVuelos();\n\t\t\n\t\tVuelo v = (Vuelo) vuelos.getSelectedItem();\n\t\tif(v!=null)\n\t\t{\n\t\t\tllenarPasabordos(v.getId());\n\t\t}\n\n\t}", "public void crearmedico(Medico medicoSelec) {\n\t\tmedicoMapper.crearmedico(medicoSelec);\n\t}", "public void insertarcola(){\n Cola_banco nuevo=new Cola_banco();// se declara nuestro metodo que contendra la cola\r\n System.out.println(\"ingrese el nombre que contendra la cola: \");// se pide el mensaje desde el teclado\r\n nuevo.nombre=teclado.next();// se ingresa nuestro datos por consola yse almacena en la variable nombre\r\n if (primero==null){// se usa una condicional para indicar si primer dato ingresado es igual al null\r\n primero=nuevo;// se indica que el primer dato ingresado pasa a ser nuestro dato\r\n primero.siguiente=null;// se indica que el el dato ingresado vaya al apuntador siguente y que guarde al null\r\n ultimo=nuevo;// se indica que el ultimo dato ingresado pase como nuevo en la cabeza de nuestro cola\r\n }else{// se usa la condicon sino se cumple la primera\r\n ultimo.siguiente=nuevo;//se indica que ultimo dato ingresado apunte hacia siguente si es que hay un nuevo dato ingresado y que vaya aser el nuevo dato de la cola\r\n nuevo.siguiente=null;// se indica que el nuevo dato ingresado vaya y apunete hacia siguente y quees igual al null\r\n ultimo=nuevo;// se indica que el ultimo dato ingresado pase como nuevo dato\r\n }\r\n System.out.println(\"\\n dato ingresado correctamente\");// se imprime enl mensaje que el dato ha sido ingresado correctamente\r\n}", "public void insereInicio(String elemento) {\n No novoNo = new No(elemento, ini);\n ini = novoNo;\n }", "protected void inicializar(){\n kr = new CreadorHojas(wp);\n jPanel1.add(wp,0); // inserta el workspace en el panel principal\n wp.insertarHoja(\"Hoja 1\");\n //wp.insertarHoja(\"Hoja 2\");\n //wp.insertarHoja(\"Hoja 3\");\n }", "public void inserir(Comentario c);", "Documento createDocumento();", "public void inizializza() {\n Navigatore nav;\n Portale portale;\n\n super.inizializza();\n\n try { // prova ad eseguire il codice\n\n Modulo modulo = getModuloRisultati();\n modulo.inizializza();\n// Campo campo = modulo.getCampoChiave();\n// campo.setVisibileVistaDefault(false);\n// campo.setPresenteScheda(false);\n// Vista vista = modulo.getVistaDefault();\n// vista.getElement\n// Campo campo = vista.getCampo(modulo.getCampoChiave());\n\n\n\n /* aggiunge il Portale Navigatore al pannello placeholder */\n nav = this.getNavigatore();\n portale = nav.getPortaleNavigatore();\n this.getPanNavigatore().add(portale);\n\n } catch (Exception unErrore) { // intercetta l'errore\n Errore.crea(unErrore);\n }// fine del blocco try-catch\n\n }", "private void inicializarUsuarios(){\n usuarios = new ArrayList<Usuario>();\n Administrador admin=new Administrador();\n admin.setCodigo(1);\n admin.setApellidos(\"Alcaide Gomez\");\n admin.setNombre(\"Juan Carlos\");\n admin.setDni(\"31000518Z\");\n admin.setPassword(\"admin\");\n admin.setCorreo(\"[email protected]\");\n admin.setDireccion(\"Sebastian Garrido 54\");\n admin.setNacimiento(new Date(1991, 12, 29));\n admin.setNacionalidad(\"España\");\n admin.setCentro(\"Centro\");\n admin.setSexo(\"Varon\");\n admin.setDespacho(\"301\");\n usuarios.add(admin);\n \n JefeServicio js=new JefeServicio();\n js.setCodigo(2);\n js.setApellidos(\"Gutierrez Cazorla\");\n js.setNombre(\"Ruben\");\n js.setDni(\"75895329k\");\n js.setPassword(\"admin\");\n js.setCorreo(\"[email protected]\");\n js.setDireccion(\"Sebastian Garrido 54\");\n js.setNacimiento(new Date(1991, 12, 29));\n js.setNacionalidad(\"España\");\n js.setCentro(\"Centro\");\n js.setSexo(\"Varon\");\n js.setDespacho(\"301\");\n \n usuarios.add(js);\n \n \n Ciudadano c =new Ciudadano();\n c.setCodigo(3);\n c.setApellidos(\"Moreno\");\n c.setNombre(\"Maria\");\n c.setDni(\"123\");\n c.setPassword(\"123\");\n c.setCorreo(\"[email protected]\");\n c.setDireccion(\"Sebastian Garrido 54\");\n c.setNacimiento(new Date(1992, 01, 12));\n c.setCentro(\"Teatinos\");\n c.setNacionalidad(\"España\");\n c.setSexo(\"Mujer\");\n c.setTelefono(\"999\");\n usuarios.add(c);\n \n //--Administrativos--\n Administrativo a =new Administrativo();\n a.setCodigo(4);\n a.setApellidos(\"Fernández\");\n a.setNombre(\"Salva\");\n a.setDni(\"1234\");\n a.setPassword(\"1234\");\n a.setCorreo(\"[email protected]\");\n a.setDireccion(\"Sebastian Garrido 54\");\n a.setNacimiento(new Date(1991, 9, 29));\n a.setNacionalidad(\"España\");\n a.setSexo(\"Hombre\");\n a.setCentro(\"Centro\");\n usuarios.add(a);\n \n Tecnico tec=new Tecnico();\n tec.setCodigo(5);\n tec.setApellidos(\"Alcaide Gomez\");\n tec.setNombre(\"Juan Carlos\");\n tec.setDni(\"tecnico\");\n tec.setPassword(\"tecnico\");\n tec.setCorreo(\"[email protected]\");\n tec.setDireccion(\"Sebastian Garrido 54\");\n tec.setNacimiento(new Date(1991, 12, 29));\n tec.setNacionalidad(\"España\");\n tec.setCentro(\"Centro\");\n tec.setSexo(\"Varon\");\n tec.setDespacho(\"301\");\n tec.setTelefono(\"664671040\");\n tec.setEspecialidad(\"Maltrato\");\n tec.setTfijo(957375546);\n \n usuarios.add(tec);\n \n }", "VentanaPrincipal(InterfazGestorFF principal, InterfazEsquema estructura) {\n initComponents();\n setTitle(BufferDeRegistro.titulo);\n this.principal=principal;\n this.estructura=estructura;\n cargar_campos(); \n cargar_menu_listados();\n \n botones=new javax.swing.JButton[]{\n jBAbrirSGFF,jBActualizarRegistro,jBAyuda,jBBorrarRegistro,\n jBComenzarConsulta,jBGuardarSGFF,jBGuardarSGFF,jBImportarSGFF,\n jBInsertarRegistro,jBIrAlHV,jBIrAlHijo,\n jBIrAlPV,jBIrAlPadre,jBNuevaFicha,jBRegistroAnterior,jBRegistroSiguiente,jBSSGFF,jBCaracteres, jBAccInv, jBListar\n };\n combos=new javax.swing.JComboBox[]{\n jCBArchivos, jCBHijos, jCBPadresV, jCBHijosV\n };\n abrir(false);//Pongo en orden la barra de herramientas\n \n }", "private void criaCabecalho() {\r\n\t\tJLabel cabecalho = new JLabel(\"Cadastro de Homem\");\r\n\t\tcabecalho.setHorizontalAlignment(SwingConstants.CENTER);\r\n\t\tcabecalho.setFont(new Font(\"Arial\", Font.PLAIN, 16));\r\n\t\tcabecalho.setForeground(Color.BLACK);\r\n\t\tcabecalho.setBounds(111, 41, 241, 33);\r\n\t\tpainelPrincipal.add(cabecalho);\r\n\t}", "public void create() {\r\n for(int i=0; i< 50; i++){\r\n long id = (new Date()).getTime();\r\n Benefit newBeneficio = new Benefit();\r\n newBeneficio.setId(\"\"+id); \r\n newBeneficio.setCategory(\"almacenes \"+id);\r\n newBeneficio.setDescription(\"description \"+id);\r\n newBeneficio.setDiscount(i);\r\n newBeneficio.setStart_date(\"start_date \"+id);\r\n newBeneficio.setEnd_date(\"end_date \"+id);\r\n newBeneficio.setReview(\"review \"+id);\r\n newBeneficio.setTitle(\"title \"+id);\r\n newBeneficio.setLogo(\"logo \"+id);\r\n newBeneficio.setTwitter(\"twitter \"+id);\r\n newBeneficio.setFacebook(\"facebook \"+id);\r\n newBeneficio.setUrl(\"url \"+ id);\r\n \r\n Address address = new Address();\r\n address.setCity(\"Santiago \"+ id);\r\n address.setCountry(\"Santiago \"+ id);\r\n address.setLine_1(\"Linea 1 \"+ id);\r\n address.setLine_2(\"Linea 2 \"+ id);\r\n address.setLine_3(\"Linea 3 \"+ id);\r\n address.setPostcode(\"\" + id);\r\n address.setState(\"Region Metropolitana \"+ id);\r\n \r\n Location location = new Location();\r\n double[] cordenadas = {-77.99283,-33.9980};\r\n location.setCoordinates(cordenadas);\r\n location.setDistance(5.445);\r\n location.setType(\"Point\");\r\n \r\n Lobby lobby = new Lobby();\r\n lobby.setHours(\"HORA \"+ + id);\r\n \r\n newBeneficio = service.persist(newBeneficio);\r\n LOGGER.info(newBeneficio.toString());\r\n }\r\n }", "@FXML\n public void insereCidade(){\n try{ \t\n \tif(txtNome.getText().equals(\"\"))\n \t\tthrow new NullPointerException();\n \t\n \tif(txtNome.getText().matches(\".*\\\\d+.*\"))\n \t\tthrow new TemNumeroException();\n \t\n \tif(txtUf.getSelectionModel().isEmpty())\n \t\tthrow new NullPointerException();\n\n \tCidade c = new Cidade();\n \tc.setNome(txtNome.getText());\n \tc.setUf(txtUf.getSelectionModel().getSelectedItem());\n \tc.insere(conn);\n \tattTblCidade();\n \tlimpaCidade();\n \tMensagens.msgInformacao(\"Parabéns\",\"Cidade cadastrada com sucesso\");\n \t\n \t}catch (TemNumeroException e){\n \t\tMensagens.msgErro(\"FALHA\",\"O campo destacado não pode conter números\"); \n \t\t}catch (NullPointerException e){\n \t\t\tMensagens.msgErro(\"FALHA\",\"Preencha todos os campos\"); \n \t}catch (Exception e) {\n \t\te.printStackTrace();\n \t}\n }", "public ingresarBiblioteca() {\n initComponents();\n this.nombreUsuario.setText(usuariosID[0].getNombre());\n this.Picture.setFont(new java.awt.Font(\"Dialog\", java.awt.Font.PLAIN,10));\n usuario.insertarInicio(this.nombreUsuario.getText()/*, carpeta*/);\n usuario.obtenerNodo(0).getArchivo().insertarFinal(\"GENERAL\");//carpeta.insertarFinal(\"GENERAL\");\n }" ]
[ "0.7068178", "0.69562924", "0.6724811", "0.66763294", "0.6581988", "0.6563245", "0.6521003", "0.6476318", "0.6423391", "0.6421367", "0.6410217", "0.6402288", "0.6344725", "0.6328836", "0.62593615", "0.6259209", "0.6251021", "0.6249307", "0.62441635", "0.6233203", "0.6198178", "0.6186461", "0.6184612", "0.61845785", "0.61795986", "0.6174887", "0.61534584", "0.61509275", "0.61487275", "0.6142858", "0.6129706", "0.6127298", "0.61241007", "0.61128306", "0.6107378", "0.60822266", "0.6076678", "0.606881", "0.60672116", "0.6063106", "0.6061627", "0.6045925", "0.6026805", "0.60262454", "0.60253704", "0.60068196", "0.60030824", "0.60016984", "0.59882534", "0.5985893", "0.5981654", "0.5979134", "0.59758514", "0.5973619", "0.59731036", "0.59704554", "0.59672624", "0.5965878", "0.59529144", "0.59512776", "0.59492093", "0.5935499", "0.5935187", "0.5932868", "0.5930736", "0.59295774", "0.5924581", "0.59182376", "0.59150887", "0.5914088", "0.59132683", "0.5907539", "0.59057176", "0.5898197", "0.5895552", "0.5886448", "0.58795637", "0.5879009", "0.58784467", "0.58741105", "0.5874105", "0.58675325", "0.5867485", "0.58603895", "0.58534515", "0.5839481", "0.5835232", "0.5834411", "0.5834056", "0.58337677", "0.5826531", "0.5825655", "0.58242995", "0.5809549", "0.5801075", "0.57933134", "0.57929116", "0.57922107", "0.57892925", "0.5787117" ]
0.61216366
33
punto de la bas(partida y retorno)
public static void main(String[] args) { Punto puntoini = new Punto(0,-12.045916, -75.195270,0.0); TSPHeuristica tsp = new TSPHeuristica(); System.out.println("mosgtrando valores inciales "); tsp.mostratPuntosHeuristica(getPuntos()); //Ruta ruta = tsp.getRuta(puntoini, getPuntos()); List<Punto> puntos = tsp.getRuta(puntoini, getPuntos()); System.out.println(" puntos ordenanos "); tsp.mostratPuntosHeuristica(puntos); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private byte[] processData(String peticion) {\n\t\t\n\t\tString respuesta = \"\";\n\t\t\n\t\tswitch (peticion) {\n\t\t\t\n\t\t\tcase \"noticias\": respuesta = \"¡Por fin la vacuna ya está en España!\"; break;\n\t\t\tcase \"hora\": respuesta = getFecha(); break;\n\t\t\tcase \"aleatorio\": respuesta = Double. toString(Math.random()*10); break;\n\t\t\tcase \"cerrar\": respuesta = \"Adios\"; break;\n\t\t\tcase \"cerrarServidor\": respuesta = \"Adios\"; break;\t\t\t\n\t\t\tdefault: respuesta = \"petición desconocida\";\n\t\t}\n\t\t\n\t\treturn respuesta.getBytes();\n\t}", "private void cargarFichaLepra_convivientes() {\r\n\r\n\t\tMap<String, Object> parameters = new HashMap<String, Object>();\r\n\t\tparameters.put(\"codigo_empresa\", codigo_empresa);\r\n\t\tparameters.put(\"codigo_sucursal\", codigo_sucursal);\r\n\t\tparameters.put(\"nro_identificacion\", tbxNro_identificacion.getValue());\r\n\t\tparameters.put(\"fecha_actual\", new Date());\r\n\r\n\t\t// log.info(\"parameters\" + parameters);\r\n\t\tseguimiento_control_pqtService.setLimit(\"limit 25 offset 0\");\r\n\r\n\t\t// log.info(\"parameters>>>>\" + parameters);\r\n\t\tBoolean fecha_tratamiento = seguimiento_control_pqtService\r\n\t\t\t\t.existe_fecha_fin_tratamiento(parameters);\r\n\t\t// log.info(\"fecha_tratamiento>>>>\" + fecha_tratamiento);\r\n\r\n\t\tif (fecha_tratamiento) {\r\n\t\t\tMap<String, Object> parametros = new HashMap<String, Object>();\r\n\t\t\tparametros.put(\"nro_identificacion\",\r\n\t\t\t\t\tadmision_seleccionada.getNro_identificacion());\r\n\t\t\tparametros.put(\"nro_ingreso\",\r\n\t\t\t\t\tadmision_seleccionada.getNro_ingreso());\r\n\t\t\tparametros.put(\"estado\", admision_seleccionada.getEstado());\r\n\t\t\tparametros.put(\"codigo_administradora\",\r\n\t\t\t\t\tadmision_seleccionada.getCodigo_administradora());\r\n\t\t\tparametros.put(\"id_plan\", admision_seleccionada.getId_plan());\r\n\t\t\tparametros.put(IVias_ingreso.ADMISION_PACIENTE,\r\n\t\t\t\t\tadmision_seleccionada);\r\n\t\t\tparametros.put(IVias_ingreso.OPCION_VIA_INGRESO,\r\n\t\t\t\t\tOpciones_via_ingreso.REGISTRAR);\r\n\t\t\ttabboxContendor.abrirPaginaTabDemanda(false,\r\n\t\t\t\t\tIRutas_historia.PAGINA_CONTROL_CONVIVIENTES_LEPRA,\r\n\t\t\t\t\tIRutas_historia.LABEL_CONTROL_CONVIVIENTES_LEPRA,\r\n\t\t\t\t\tparametros);\r\n\t\t}\r\n\t}", "@Override\n\tpublic void preparar() {\n\t\tSystem.out.println(\"massa, presunto, queijo, calabreza e cebola\");\n\t\t\n\t}", "public static void MostrarPerroSegunCodigo( Perro BaseDeDatosPerros[]){\n int codigo;\r\n System.out.println(\"Ingrese el codigo del perro del cual decea saber la informacion\");\r\n codigo=TecladoIn.readLineInt();\r\n System.out.println(\"____________________________________________\");\r\n System.out.println(\"El nombre del Dueño es: \"+BaseDeDatosPerros[codigo].getNombreDuenio());\r\n System.out.println(\"El telefono del Dueño es :\"+BaseDeDatosPerros[codigo].getTelefonoDuenio());\r\n System.out.println(\"____________________________________________\");\r\n \r\n }", "public void recibir_estado_partida(){\n\n }", "public String cargarDatos()\r\n/* 137: */ {\r\n/* 138:163 */ limpiar();\r\n/* 139:164 */ return \"\";\r\n/* 140: */ }", "private void cargarFichaLepra_discapacidades() {\r\n\r\n\t\tMap<String, Object> parameters = new HashMap<String, Object>();\r\n\t\tparameters.put(\"codigo_empresa\", codigo_empresa);\r\n\t\tparameters.put(\"codigo_sucursal\", codigo_sucursal);\r\n\t\tparameters.put(\"nro_identificacion\", tbxNro_identificacion.getValue());\r\n\t\tparameters.put(\"fecha_actual\", new Date());\r\n\r\n\t\t// log.info(\"parameters\" + parameters);\r\n\t\tseguimiento_control_pqtService.setLimit(\"limit 25 offset 0\");\r\n\r\n\t\t// log.info(\"parameters>>>>\" + parameters);\r\n\t\tBoolean fecha_tratamiento = seguimiento_control_pqtService\r\n\t\t\t\t.existe_fecha_fin_tratamiento(parameters);\r\n\t\t// log.info(\"fecha_tratamiento>>>>\" + fecha_tratamiento);\r\n\r\n\t\tif (fecha_tratamiento) {\r\n\t\t\tMap<String, Object> parametros = new HashMap<String, Object>();\r\n\t\t\tparametros.put(\"nro_identificacion\",\r\n\t\t\t\t\tadmision_seleccionada.getNro_identificacion());\r\n\t\t\tparametros.put(\"nro_ingreso\",\r\n\t\t\t\t\tadmision_seleccionada.getNro_ingreso());\r\n\t\t\tparametros.put(\"estado\", admision_seleccionada.getEstado());\r\n\t\t\tparametros.put(\"codigo_administradora\",\r\n\t\t\t\t\tadmision_seleccionada.getCodigo_administradora());\r\n\t\t\tparametros.put(\"id_plan\", admision_seleccionada.getId_plan());\r\n\t\t\tparametros.put(IVias_ingreso.ADMISION_PACIENTE,\r\n\t\t\t\t\tadmision_seleccionada);\r\n\t\t\tparametros.put(IVias_ingreso.OPCION_VIA_INGRESO,\r\n\t\t\t\t\tOpciones_via_ingreso.REGISTRAR);\r\n\t\t\ttabboxContendor.abrirPaginaTabDemanda(false,\r\n\t\t\t\t\tIRutas_historia.PAGINA_VALORACION_DISCAPACIDADES_LEPRA,\r\n\t\t\t\t\tIRutas_historia.LABEL_VALORACION_DISCAPACIDADES_LEPRA,\r\n\t\t\t\t\tparametros);\r\n\t\t}\r\n\t}", "private byte[] datosInicio() {\n\tbyte comando = 1;\n\tbyte borna = (byte) sens.getNum_borna();\n\tbyte parametro1 = 0;\n\tbyte parametro2 = 0;\n\tbyte parametro3 = 0;\n\tbyte checksum = (byte) (comando + borna + parametro1 + parametro2 + parametro3);\n\n\t// Duermo para que le de tiempo a generar el puerto\n\ttry {\n\t Thread.sleep(IrrisoftConstantes.DELAY_SENSOR_RUN);\n\t} catch (InterruptedException e1) {\n\t if (logger.isErrorEnabled()) {\n\t\tlogger.error(\"Hilo interrumpido: \" + e1.getMessage());\n\t }\n\t}\n\n\tif (logger.isInfoEnabled()) {\n\t logger.info(\"Churro_Anemometro = \" + comando + \", \" + borna + \", \"\n\t\t + parametro1 + \", \" + parametro2 + \", \" + parametro3 + \", \"\n\t\t + checksum);\n\t}\n\n\tchurro[0] = comando;\n\tchurro[1] = borna;\n\tchurro[2] = parametro1;\n\tchurro[3] = parametro2;\n\tchurro[4] = parametro3;\n\tchurro[5] = checksum;\n\n\tif (!serialcon.serialPort.isOpened()) {\n\t SerialPort serialPort = new SerialPort(\n\t\t serialcon.serialPort.getPortName());\n\t serialcon.setSerialPort(serialPort);\n\t serialcon.conectaserial(sens.getNum_placa());\n\t}\n\n\treturn churro;\n }", "public String[] requisicaoPassageiros() {\n\t\tConector con = new Conector();\r\n\t\tString params[] = new String[1];\r\n\t\tString resultado;\r\n\t\tString passageiros[];\r\n\r\n\t\tparams[0] = \"op=7\";\r\n\r\n\t\tresultado = con.sendHTTP(params);\r\n\r\n\t\tpassageiros = resultado.split(\";\");\r\n\r\n\t\treturn passageiros;\r\n\t}", "private void solicitaPecas(String nomeArquivoTorrent) throws UnknownHostException {\n\n try {\n\n // Passo 1 - Envia uma mensagem p ip do ArqTorrent com #+nomeArqTorrent\n ipServidor = getEnderecoRastreador(nomeArquivoTorrent);\n InetAddress enderecoServidor = InetAddress.getByName(ipServidor);\n String nomeArqOriginal = \"#\" + retornaNomeArq(nomeArquivoTorrent);\n DatagramPacket pacoteRequisicao = new DatagramPacket((nomeArqOriginal).getBytes(), nomeArqOriginal.length(), enderecoServidor, porto);\n soqueteCliente.send(pacoteRequisicao);\n\n //Recebe como resposta os pares que possuem alguma peça daquele arquivo\n DatagramPacket pacoteResposta = new DatagramPacket(new byte[256], 256);\n soqueteCliente.receive(pacoteResposta);\n String dadosResposta = new String(pacoteResposta.getData()).trim();\n System.out.println(\"Dados resposta: \" + dadosResposta);\n String[] ipPares = dadosResposta.split(\"-\");\n //System.out.println(\"Quantidade:\" +ipPares.length);\n\n\n //ARRUMAR ISSO DEPOIS\n String nomeArqePecas = \"$\" + retornaNomeArq(nomeArquivoTorrent)+\"/0-30\";\n DatagramPacket pacoteRequisicaoPecas = new DatagramPacket((nomeArqePecas).getBytes(), nomeArqePecas.length(), enderecoServidor, porto);\n soqueteCliente.send(pacoteRequisicaoPecas);\n\n System.out.println(\"nome: \"+nomeArqOriginal);\n Path path = Paths.get(nomeArqOriginal);\n\n File arquivoDados = path.toFile();\n RandomAccessFile arq = new RandomAccessFile(arquivoDados,\"rw\");\n int i=0;\n while(i<30){\n DatagramPacket peca = new DatagramPacket(new byte[1000], 1000);\n soqueteCliente.receive(peca);\n\n System.out.println(peca);\n String g = Metadados.geraChave(peca.getData());\n System.out.println(i + \"> \" + g);\n // writePeca(i,peca.getData(),arq);\n i++;\n }\n\n\n\n //DatagramPacket pacoteResposta = new DatagramPacket(new byte[25600], 25600);\n //soqueteCliente.receive(pacoteResposta);\n clienteTerminou = true;\n } catch (IOException e) {\n // TODO Auto-generated catch block\n e.printStackTrace();\n } catch (NoSuchAlgorithmException e) {\n e.printStackTrace();\n }\n\n }", "public ReformaTributariaOutput getComporConv(boolean comportamiento, ReformaTributariaInput reformaTributaria)throws Exception {\n Connection conn = null;\n CallableStatement call = null;\n int inComportamiento=0; \n int inTipoConvenio=0;\n int inEmbargo=0;\n int inPyme=0;\n String ContextoAmbienteParam = null;\n ReformaTributariaOutput reformaTributariaOut = new ReformaTributariaOutput();\n try {\n\n conn = this.getConnection();\n String beneficio = this.getBeneficio();\n \n System.out.println(\"Estoy adentro con parametro beneficio---------------------->\"+beneficio);\n \n if (beneficio.equalsIgnoreCase(\"S\")){\n\t if (reformaTributaria.getContextoAmbienteParam().endsWith(\"CNV_INTRA\")){\n\t \t ContextoAmbienteParam=\"CNV_INTRA\";\n\t }else{\n\t \t ContextoAmbienteParam=\"CNV_BENEFICIO_INTER\";\n\t }\n }else{\n \t ContextoAmbienteParam=reformaTributaria.getContextoAmbienteParam(); \n }\n //Deudas que forman parte de la propuesta, pero no son propias del contribuyente\n /*\n --------------------------------------------------------------\n ------- Las variables determinantes --------------------\n ------- para condiciones de convenios --------------------\n --------------------------------------------------------------\n ------- v_tipo_valor\n ------- v_tipo_convenio\n ------- v_comportamiento\n ------- v_embargo\n ------- v_canal\n --------------------------------------------------------------\n -------------------------------------------------------------- \n */\n if (comportamiento){\n \t inComportamiento=1;\n }else{\n \t inComportamiento=2;\n }\n \n //String parametros=reformaTributaria.pagoTotalConvenio()+\";\"+reformaTributaria.comportamiento()+\";\"+reformaTributaria.garantia()+\";\"+reformaTributaria.canal();\n String parametros=reformaTributaria.pagoTotalConvenio()+\";\"+reformaTributaria.comportamiento()+\";\"+reformaTributaria.garantia();\n \n //System.out.println(\"tipo reforma condonacion--->\"+reformaTributaria.getCodConvenios());\n //System.out.println(\"***************************estoy en comportamiento****************************************\");\n //System.out.println(\"reformaTributaria.garantia()--->\"+reformaTributaria.garantia());\n //System.out.println(\"param getComporConv---> \"+parametros);\n //call = conn.prepareCall(\"{call PKG_REFORMA_TRIBUTARIA.consulta_tabla_valores_conv(?,?,?,?,?,?)}\");\n call = conn.prepareCall(\"{call PKG_REFORMA_TRIBUTARIA.consulta_tabla_valores_conv(?,?,?,?,?,?,?,?)}\");\n call.setLong(1,inComportamiento);/*tipo comporamiento � condonaci�n */\n call.setString(2,parametros);/*tipo convenio */\n call.registerOutParameter(3, OracleTypes.INTEGER);/*max_cuotas*/\n call.registerOutParameter(4, OracleTypes.INTEGER);/*min_pie*/\n call.registerOutParameter(5, OracleTypes.INTEGER);/*por_condonacion*/ \n call.registerOutParameter(6, OracleTypes.INTEGER);/*error*/ \n /*se agrega nueva forma de servicio*/\n if (reformaTributaria.getCodConvenios()!=null){//si no es nulo quiere decir que es transitoria\n \t call.setLong(7,reformaTributaria.getCodConvenios().intValue());/*codigo condonacion si es transitoria*/\n }else{//si es null quiere decir que es convenio permanente\n \t call.setNull(7, OracleTypes.INTEGER);\n }\n //call.setString(8,reformaTributaria.getContextoAmbienteParam());/*ambiente Intranet � internet*/ \n System.out.println(\"ContextoAmbienteParam---> \"+ContextoAmbienteParam);\n call.setString(8,ContextoAmbienteParam);/*ambiente Intranet � internet*/\n call.execute();\n \n int maxCuotas = Integer.parseInt(call.getObject(3).toString());\n int minCuotaContado = Integer.parseInt(call.getObject(4).toString());\n \n\n int codError = Integer.parseInt(call.getObject(6).toString());\n \n reformaTributariaOut.setCodError(new Integer(codError));\n reformaTributariaOut.setMaxCuota(new Integer(maxCuotas));\n reformaTributariaOut.setMinCuotaContado(new Integer(minCuotaContado));\n call.close(); \n \n }catch (Exception e) {\n \te.printStackTrace();\n \t//throw new RemoteException(\"No tiene valor de comportamiento convenios:\" + e.getMessage());\n }\n finally{\n this.closeConnection();\n }\n\t\treturn reformaTributariaOut;\n }", "public String getObtieneParametrosReformaTribu()throws Exception {\n Connection conn = null;\n CallableStatement call = null;\n String result = new String();\n\n try {\n\n conn = this.getConnection();\n\n //Deudas que forman parte de la propuesta, pero no son propias del contribuyente\n call = conn.prepareCall(\"{? =call PKG_OBTIENE_PARAM.obtieneParametroReformaTribu}\");\n call.registerOutParameter(1, OracleTypes.VARCHAR);\n call.execute();\n\n result = call.getObject(1).toString();\n \n call.close(); \n \n }catch (Exception e) {\n e.printStackTrace();\n }\n finally{\n this.closeConnection();\n }\n\t\treturn result;\n }", "private AtualizarContaPreFaturadaHelper parserRegistroTipo2(String linha) {\r\n\t\tAtualizarContaPreFaturadaHelper retorno = new AtualizarContaPreFaturadaHelper();\r\n\r\n\t\tInteger index = 0;\r\n\r\n\t\t// Tipo de registro\r\n\t\tretorno.tipoRegistro = linha.substring(index, index + REGISTRO_TIPO);\r\n\t\tindex += REGISTRO_TIPO;\r\n\t\tSystem.out.println(\"Tipo de Retorno: \" + retorno.tipoRegistro);\r\n\r\n\t\t// Matricula do imovel\r\n\t\tretorno.matriculaImovel = linha.substring(index, index\r\n\t\t\t\t+ MATRICULA_IMOVEL);\r\n\t\tindex += MATRICULA_IMOVEL;\r\n\t\tSystem.out.println(\"Matricula do Imovel: \" + retorno.matriculaImovel);\r\n\r\n\t\t// Codigo da Categoria\r\n\t\tretorno.codigoCategoria = linha.substring(index, index\r\n\t\t\t\t+ REGISTRO_TIPO_2_CODIGO_CATEGORIA);\r\n\t\tindex += REGISTRO_TIPO_2_CODIGO_CATEGORIA;\r\n\r\n\t\t// Codigo da Subcategoria\r\n\t\tretorno.codigoSubCategoria = linha.substring(index, index\r\n\t\t\t\t+ REGISTRO_TIPO_2_CODIGO_SUBCATEGORIA);\r\n\t\tindex += REGISTRO_TIPO_2_CODIGO_SUBCATEGORIA;\r\n\r\n\t\t// Valor faturado agua\r\n\t\tretorno.valorFaturadoAgua = linha.substring(index, index\r\n\t\t\t\t+ REGISTRO_TIPO_2_VALOR_FATURADO_AGUA);\r\n\t\tindex += REGISTRO_TIPO_2_VALOR_FATURADO_AGUA;\r\n\r\n\t\t// Consumo faturado de agua\r\n\t\tretorno.consumoFaturadoAgua = linha.substring(index, index\r\n\t\t\t\t+ REGISTRO_TIPO_2_CONSUMO_FATURADO_AGUA);\r\n\t\tindex += REGISTRO_TIPO_2_CONSUMO_FATURADO_AGUA;\r\n\r\n\t\t// Valor tarifa minima de agua\r\n\t\tretorno.valorTarifaMinimaAgua = linha.substring(index, index\r\n\t\t\t\t+ REGISTRO_TIPO_2_VALOR_TARIFA_MINIMA_AGUA);\r\n\t\tindex += REGISTRO_TIPO_2_VALOR_TARIFA_MINIMA_AGUA;\r\n\r\n\t\t// Consumo Minimo de Agua\r\n\t\tretorno.consumoMinimoAgua = linha.substring(index, index\r\n\t\t\t\t+ REGISTRO_TIPO_2_CONSUMO_MINIMO_AGUA);\r\n\t\tindex += REGISTRO_TIPO_2_CONSUMO_MINIMO_AGUA;\r\n\r\n\t\t// Valor faturado esgoto\r\n\t\tretorno.valorFaturadoEsgoto = linha.substring(index, index\r\n\t\t\t\t+ REGISTRO_TIPO_2_VALOR_FATURADO_ESGOTO);\r\n\t\tindex += REGISTRO_TIPO_2_VALOR_FATURADO_ESGOTO;\r\n\r\n\t\t// Consumo faturado de esgoto\r\n\t\tretorno.consumoFaturadoEsgoto = linha.substring(index, index\r\n\t\t\t\t+ REGISTRO_TIPO_2_CONSUMO_FATURADO_ESGOTO);\r\n\t\tindex += REGISTRO_TIPO_2_CONSUMO_FATURADO_ESGOTO;\r\n\r\n\t\t// Valor tarifa minima de esgoto\r\n\t\tretorno.valorTarifaMinimaEsgoto = linha.substring(index, index\r\n\t\t\t\t+ REGISTRO_TIPO_2_VALOR_TARIFA_MINIMA_ESGOTO);\r\n\t\tindex += REGISTRO_TIPO_2_VALOR_TARIFA_MINIMA_ESGOTO;\r\n\r\n\t\t// Consumo Minimo de esgoto\r\n\t\tretorno.consumoMinimoEsgoto = linha.substring(index, index\r\n\t\t\t\t+ REGISTRO_TIPO_2_CONSUMO_MINIMO_ESGOTO);\r\n\t\tindex += REGISTRO_TIPO_2_CONSUMO_MINIMO_ESGOTO;\r\n\t\t\r\n\t\t// Consumo Minimo de esgoto \r\n\t\t/*\r\n\t\tretorno.subsidio = linha.substring(index + 2, index\r\n\t\t\t\t+ REGISTRO_TIPO_2_SUBSIDIO_AGUA_PARA);\r\n\t\tindex += REGISTRO_TIPO_2_SUBSIDIO_AGUA_PARA;\r\n\t\t*/\r\n\t\treturn retorno;\r\n\t}", "protected String cargarDatosPartoBB(String url, String username,\n String password) throws Exception {\n try {\n getDatosPartoBB();\n if(mDatosPartoBB.size()>0){\n saveDatosPartoBB(Constants.STATUS_SUBMITTED);\n // La URL de la solicitud POST\n final String urlRequest = url + \"/movil/datospartobb\";\n DatosPartoBB[] envio = mDatosPartoBB.toArray(new DatosPartoBB[mDatosPartoBB.size()]);\n HttpHeaders requestHeaders = new HttpHeaders();\n HttpAuthentication authHeader = new HttpBasicAuthentication(username, password);\n requestHeaders.setContentType(MediaType.APPLICATION_JSON);\n requestHeaders.setAuthorization(authHeader);\n HttpEntity<DatosPartoBB[]> requestEntity =\n new HttpEntity<DatosPartoBB[]>(envio, requestHeaders);\n RestTemplate restTemplate = new RestTemplate();\n restTemplate.getMessageConverters().add(new StringHttpMessageConverter());\n restTemplate.getMessageConverters().add(new MappingJacksonHttpMessageConverter());\n // Hace la solicitud a la red, pone la vivienda y espera un mensaje de respuesta del servidor\n ResponseEntity<String> response = restTemplate.exchange(urlRequest, HttpMethod.POST, requestEntity,\n String.class);\n // Regresa la respuesta a mostrar al usuario\n if (!response.getBody().matches(\"Datos recibidos!\")) {\n saveDatosPartoBB(Constants.STATUS_NOT_SUBMITTED);\n }\n return response.getBody();\n }\n else{\n return \"Datos recibidos!\";\n }\n } catch (Exception e) {\n Log.e(TAG, e.getMessage(), e);\n saveDatosPartoBB(Constants.STATUS_NOT_SUBMITTED);\n return e.getMessage();\n }\n\n }", "private static DocumentoType[] getDocumentoTypeFromBPSDettaglioCartellaResponse( DettaglioCartellaAvvisoResponse response) {\r\n\t\t \r\n\t\tit.equitalia.dettagliocartellaavviso.wsdl.DocumentoType bpelDocumentoType = response.getCartellaAvviso().getDocumento();\r\n\t\t \r\n\t\tDocumentoType[] result = new DocumentoType[1];\r\n \t \r\n \t\tDocumentoType documentoType = new DocumentoType(); \r\n \t\tresult[0] = documentoType;\r\n\r\n \t\tIdentificativoDocumentoType identificativoDocumentoType = new IdentificativoDocumentoType();\r\n \t\tidentificativoDocumentoType.setTipoDocumento(bpelDocumentoType.getIdDocumento().getTipoDocumento() );\t\t//DATATYPEID=1 \tDescrizione\r\n \t\tidentificativoDocumentoType.setNumeroDocumento(bpelDocumentoType.getIdDocumento().getNumeroDocumento() );\t //DATATYPEID=2 \t\tN° Cartella \r\n \t\tdocumentoType.setIdDocumento(identificativoDocumentoType);\r\n \t\t\r\n \t\tit.equitalia.gestorefascicolows.dati.EnteType[] enti = new it.equitalia.gestorefascicolows.dati.EnteType[bpelDocumentoType.getEnte().length];\r\n \t\t \r\n \t\t \r\n \t\tfor (int iEnte = 0; iEnte < bpelDocumentoType.getEnte().length; iEnte++) {\r\n \t\t\tEnteType enteType = new EnteType();\r\n \t\tenteType.setDescrizione(bpelDocumentoType.getEnte()[iEnte].getDescrizione()); \t//DATATYPEID=3 \t\tEnte\r\n \t\tenti[iEnte] = enteType;\r\n\t\t}\r\n \t\t\r\n \t\tdocumentoType.setEnte(enti);\r\n\r\n \t\tdocumentoType.setDataNotifica(bpelDocumentoType.getDataNotifica()) ; //DATATYPEID=4 \t\t\tData Notifica\r\n \t\tdocumentoType.setImportoTotaleDocumento(bpelDocumentoType.getImportoTotaleDocumento().doubleValue()) ; //DATATYPEID=5 \t\tImporto Iniziale\r\n \t\tdocumentoType.setImportoInizialeTributi(bpelDocumentoType.getImportoInizialeTributi().doubleValue()) ; //DATATYPEID=6 \t\tImporto a ruolo\r\n \t\tdocumentoType.setImportoTotaleCompensi(bpelDocumentoType.getImportoTotaleCompensi().doubleValue()); // DATATYPEID=7 \t\tCompensi entro le scadenze\r\n \t\tdocumentoType.setImportoTotaleNotifica(bpelDocumentoType.getImportoTotaleNotifica().doubleValue()); //DATATYPEID=8 \t\tDiritti di Notifica\r\n\r\n \t\tdocumentoType.setImportoResiduoDocumento(bpelDocumentoType.getImportoResiduoDocumento().doubleValue()); // DATATYPEID=9 \t\tImporto da Pagare \r\n \t\tdocumentoType.setImportoResiduoTributi(bpelDocumentoType.getImportoResiduoTributi().doubleValue()); // DATATYPEID=10 \t\tImporti a ruolo residui\r\n \t\tdocumentoType.setImportoResiduoCompensi(bpelDocumentoType.getImportoResiduoCompensi().doubleValue()); //DATATYPEID=11 \t\tCompensi oltre le scadenze\r\n \t\tdocumentoType.setImportoResiduoNotifica(bpelDocumentoType.getImportoResiduoNotifica().doubleValue()); // DATATYPEID=12 \t\tDiritti di Notifica\r\n \t\tdocumentoType.setImportoInteressiMora(bpelDocumentoType.getImportoInteressiMora().doubleValue()); // DATATYPEID=13 \t\tInteressi di mora\r\n \t\tdocumentoType.setImportoSpeseProcedure(bpelDocumentoType.getImportoSpeseProcedure().doubleValue()); //DATATYPEID=14 \t\tSpese di Procedura\r\n \t\tdocumentoType.setImportoAltreSpese(bpelDocumentoType.getImportoAltreSpese().doubleValue()); \t\t\t\t//DATATYPEID=15 \t\tAltre Spese\r\n \t\tdocumentoType.setFlagSospensione(bpelDocumentoType.getFlagSospensione()); //DATATYPEID=16 \t\tSospensioni\r\n \t\tdocumentoType.setFlagSgravio(bpelDocumentoType.getFlagSgravio()); // DATATYPEID=17 \t\tSgravi\r\n \t\tdocumentoType.setFlagRateazione(bpelDocumentoType.getFlagRateazione()); //DATATYPEID=18 \t\tRateazioni\r\n \t\tdocumentoType.setFlagProcedura(bpelDocumentoType.getFlagProcedura()); //DATATYPEID=19 \t\tProcedure \r\n \t\t\r\n \t\tdocumentoType.setNumeroRav( bpelDocumentoType.getNumeroRav() ); \t\t//DATATYPEID=12 \t\tNumero RAV \r\n \r\n \tdocumentoType.setRObjectId(\"-\") ;\t\t//DATATYPEID=91 \t\t\r\n \t\tdocumentoType.setStatoPdf(CartellaDAOImpl.STATO_DOCUMENTUM_NON_RICHIESTO) ;\t\t//DATATYPEID=92 \t\t\r\n \t\tdocumentoType.setStatoRelate(CartellaDAOImpl.STATO_DOCUMENTUM_NON_RICHIESTO) ;\t\t//DATATYPEID=93 \t\t \r\n \t\t\r\n \t\r\n\t\treturn result ;\r\n\t\r\n\t}", "private static void etapa2Urna() {\n\t\t\n\t\tint opcaoNumero = 0;\n\n\t\tdo {\n\t\t\t\n\t\t\tSystem.out.println();\n\t\t\t\n\t\t\tSystem.out.println(\"Votação\");\n\t\t\tSystem.out.println(\"1 - Votar\");\n\t\t\tSystem.out.println(\"2 - Justificar ausencia\");\n\t\t\tSystem.out.println(\"Digite o número da etapa ou -1 para sair: \");\n\t\t\t\n\t\t\ttry {\n\t\t\n\t\t\t\topcaoNumero = Integer.parseInt(br.readLine());\n\t\t\n\t\t\t\tswitch( opcaoNumero ) {\n\t\t\n\t\t\t\tcase 1: \n\t\t\t\t\t// Abrir Etapa 1: Configurar Urna\n\t\t\t\t\tlimparConsole();\n\t\t\t\t\trealizarVotacao();\n\t\t\t\t\tbreak;\n\t\t\t\t\t\n\t\t\t\tcase 2: \n\t\t\t\t\t// Abrir Etapa 2: Realizar Votacao na Urna\n\t\t\t\t\tlimparConsole();\n\t\t\t\t\tSystem.out.println(\"Insira o numero do seu titulo de eleitor\");\n\t\t\t\t\tint tituloEleitor = Integer.parseInt(br.readLine());\n\t\t\t\t\turna.justificarVoto(tituloEleitor);\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\n\t\t\t} catch(IOException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\t\n\t\t\tSystem.out.println();\n\t\t\n\t\t}while(opcaoNumero != -1);\n\t}", "private AtualizarContaPreFaturadaHelper parserRegistroTipo1(String linha) {\r\n\t\tAtualizarContaPreFaturadaHelper retorno = new AtualizarContaPreFaturadaHelper();\r\n\r\n\t\tInteger index = 0;\r\n\r\n\t\t// Tipo de registro\r\n\t\tretorno.tipoRegistro = linha.substring(index, index + REGISTRO_TIPO);\r\n\t\tindex += REGISTRO_TIPO;\r\n\r\n\t\t// Matricula do imovel\r\n\t\tretorno.matriculaImovel = linha.substring(index, index\r\n\t\t\t\t+ MATRICULA_IMOVEL);\r\n\t\tindex += MATRICULA_IMOVEL;\r\n\r\n\t\t// Tipo de medição\r\n\t\tretorno.tipoMedicao = linha.substring(index, index\r\n\t\t\t\t+ REGISTRO_TIPO_1_TIPO_MEDICAO);\r\n\t\tindex += REGISTRO_TIPO_1_TIPO_MEDICAO;\r\n\r\n\t\t// Ano e mes do faturamento\r\n\t\tretorno.anoMesFaturamento = Util.formatarMesAnoParaAnoMes(linha\r\n\t\t\t\t.substring(index, index + REGISTRO_TIPO_1_ANO_MES_FATURAMENTO));\r\n\t\tindex += REGISTRO_TIPO_1_ANO_MES_FATURAMENTO;\r\n\r\n\t\t// Numero da conta\r\n\t\tretorno.numeroConta = linha.substring(index, index\r\n\t\t\t\t+ REGISTRO_TIPO_1_NUMERO_CONTA);\r\n\t\tindex += REGISTRO_TIPO_1_NUMERO_CONTA;\r\n\r\n\t\t// Codigo do Grupo de faturamento\r\n\t\tretorno.codigoGrupoFaturamento = linha.substring(index, index\r\n\t\t\t\t+ REGISTRO_TIPO_1_CODIGO_GRUPO_FATURAMENTO);\r\n\t\tindex += REGISTRO_TIPO_1_CODIGO_GRUPO_FATURAMENTO;\r\n\r\n\t\t// Codigo da rota\r\n\t\tretorno.codigoRota = linha.substring(index, index\r\n\t\t\t\t+ REGISTRO_TIPO_1_CODIGO_ROTA);\r\n\t\tindex += REGISTRO_TIPO_1_CODIGO_ROTA;\r\n\r\n\t\t// Codigo da leitura do hidrometro\r\n\t\tretorno.leituraHidrometro = linha.substring(index, index\r\n\t\t\t\t+ REGISTRO_TIPO_1_LEITURA_HIDROMETRO);\r\n\t\tindex += REGISTRO_TIPO_1_LEITURA_HIDROMETRO;\r\n\r\n\t\t// Anormalidade de Leitura\r\n\t\tretorno.anormalidadeLeitura = linha.substring(index, index\r\n\t\t\t\t+ REGISTRO_TIPO_1_ANORMALIDADE_LEITURA);\r\n\t\tindex += REGISTRO_TIPO_1_ANORMALIDADE_LEITURA;\r\n\r\n\t\t// Data e Hora Leitura\r\n\t\tretorno.dataHoraLeituraHidrometro = linha.substring(index, index\r\n\t\t\t\t+ REGISTRO_TIPO_1_DATA_HORA_LEITURA);\r\n\t\tindex += REGISTRO_TIPO_1_DATA_HORA_LEITURA;\r\n\r\n\t\t// Indicador de Confirmacao\r\n\t\tretorno.indicadorConfirmacaoLeitura = linha.substring(index, index\r\n\t\t\t\t+ REGISTRO_TIPO_1_INDICADOR_CONFIRMACAO_LEITURA);\r\n\t\tindex += REGISTRO_TIPO_1_INDICADOR_CONFIRMACAO_LEITURA;\r\n\r\n\t\t// Leitura do Faturamento\r\n\t\tretorno.leituraFaturamento = linha.substring(index, index\r\n\t\t\t\t+ REGISTRO_TIPO_1_LEITURA_FATURAMENTO);\r\n\t\tindex += REGISTRO_TIPO_1_LEITURA_FATURAMENTO;\r\n\r\n\t\t// Consumo Medido no mes\r\n\t\tretorno.consumoMedido = linha.substring(index, index\r\n\t\t\t\t+ REGISTRO_TIPO_1_CONSUMO_MEDIDO);\r\n\t\tindex += REGISTRO_TIPO_1_CONSUMO_MEDIDO;\r\n\r\n\t\t// Consumo a ser cobrado\r\n\t\tretorno.consumoASerCobradoMes = linha.substring(index, index\r\n\t\t\t\t+ REGISTRO_TIPO_1_CONSUMO_A_SER_COBRADO_MES);\r\n\t\tindex += REGISTRO_TIPO_1_CONSUMO_A_SER_COBRADO_MES;\r\n\r\n\t\t// Consumo rateio agua\r\n\t\tretorno.consumoRateioAgua = linha.substring(index, index\r\n\t\t\t\t+ REGISTRO_TIPO_1_CONSUMO_RATEIO_AGUA);\r\n\t\tindex += REGISTRO_TIPO_1_CONSUMO_RATEIO_AGUA;\r\n\r\n\t\t// Valor rateio agua\r\n\t\tretorno.valorRateioAgua = linha.substring(index, index\r\n\t\t\t\t+ REGISTRO_TIPO_1_VALOR_RATEIO_AGUA);\r\n\t\tindex += REGISTRO_TIPO_1_VALOR_RATEIO_AGUA;\r\n\r\n\t\t// Consumo rateio esgoto\r\n\t\tretorno.consumoRateioEsgoto = linha.substring(index, index\r\n\t\t\t\t+ REGISTRO_TIPO_1_CONSUMO_RATEIO_ESGOTO);\r\n\t\tindex += REGISTRO_TIPO_1_CONSUMO_RATEIO_ESGOTO;\r\n\r\n\t\t// Valor rateio esgoto\r\n\t\tretorno.valorRateioEsgoto = linha.substring(index, index\r\n\t\t\t\t+ REGISTRO_TIPO_1_VALOR_RATEIO_ESGOTO);\r\n\t\tindex += REGISTRO_TIPO_1_VALOR_RATEIO_ESGOTO;\r\n\r\n\t\t// Tipo de consumo\r\n\t\tretorno.tipoConsumo = linha.substring(index, index\r\n\t\t\t\t+ REGISTRO_TIPO_1_TIPO_CONSUMO);\r\n\t\tindex += REGISTRO_TIPO_1_TIPO_CONSUMO;\r\n\r\n\t\t// Anormalidade de consumo\r\n\t\tretorno.anormalidadeConsumo = linha.substring(index, index\r\n\t\t\t\t+ REGISTRO_TIPO_1_ANORMALIDADE_CONSUMO);\r\n\t\tindex += REGISTRO_TIPO_1_ANORMALIDADE_CONSUMO;\r\n\r\n\t\t// Indicador de emissao de conta\r\n\t\tretorno.indicacaoEmissaoConta = linha.substring(index, index\r\n\t\t\t\t+ REGISTRO_TIPO_1_INDICACAO_EMISSAO_CONTA);\r\n\t\tindex += REGISTRO_TIPO_1_INDICACAO_EMISSAO_CONTA;\r\n\r\n\t\t// Inscricao\r\n\t\tString inscricao = \"\";\r\n\t\tinscricao = linha.substring(index, index + REGISTRO_TIPO_1_INSCRICAO);\r\n\t\tformatarInscricao(retorno, inscricao);\r\n\t\tindex += REGISTRO_TIPO_1_INSCRICAO;\r\n\r\n\t\t// Indicador Geração da conta\r\n\t\tretorno.indicadorGeracaoConta = linha.substring(index, index\r\n\t\t\t\t+ REGISTRO_TIPO_1_INDICADOR_GERACAO_CONTA);\r\n\t\tindex += REGISTRO_TIPO_1_INDICADOR_GERACAO_CONTA;\r\n\r\n\t\t// consumo imóveis vinculados\r\n\t\tretorno.consumoImoveisVinculados = linha.substring(index, index\r\n\t\t\t\t+ REGISTRO_TIPO_1_CONSUMO_IMOVEIS_VINCULADOS);\r\n\t\tindex += REGISTRO_TIPO_1_CONSUMO_IMOVEIS_VINCULADOS;\r\n\r\n\t\t// anormalidade de faturamento\r\n\t\tretorno.anormalidadeFaturamento = linha.substring(index, index\r\n\t\t\t\t+ REGISTRO_TIPO_1_ANORMALIDADE_FATURAMENTO);\r\n\t\tindex += REGISTRO_TIPO_1_ANORMALIDADE_FATURAMENTO;\r\n\r\n\t\t// Id Cobrança Documento\r\n\t\tretorno.idCobrancaDocumento = linha.substring(index, index\r\n\t\t\t\t+ REGISTRO_TIPO_1_COBRANCA_DOCUMENTO);\r\n\t\tindex += REGISTRO_TIPO_1_NUMERO_CONTA;\r\n\r\n\t\t// Codigo da leitura do hidrometro anterior\r\n\t\tretorno.leituraHidrometroAnterior = linha.substring(index, index\r\n\t\t\t\t+ REGISTRO_TIPO_1_LEITURA_HIDROMETRO_ANTERIOR);\r\n\t\tindex += REGISTRO_TIPO_1_LEITURA_HIDROMETRO_ANTERIOR;\r\n\r\n\t\t\r\n\t\tif (linha.length() > 200) {\r\n\t\t\t// Latitude\r\n\t\t\tretorno.latitude = linha.substring( index, index + REGISTRO_TIPO_1_LATITUDE );\r\n\t\t\tindex += REGISTRO_TIPO_1_LATITUDE;\r\n\r\n\t\t\t// Longitude\r\n\t\t\tretorno.longitude = linha.substring( index, index + REGISTRO_TIPO_1_LONGITUDE );\r\n\t\t\t index += REGISTRO_TIPO_1_LONGITUDE;\r\n\r\n\t\t\t// Versão do IS\r\n\t\t\tretorno.numeroVersao = linha.substring(index, index\t+ REGISTRO_TIPO_1_NUMERO_VERSAO);\r\n\t\t\tindex += REGISTRO_TIPO_1_NUMERO_VERSAO;\r\n\r\n\t\t} else {\r\n\t\t\t// Latitude\r\n\t\t\tretorno.latitude = \"0\";\r\n\r\n\t\t\t// Longitude\r\n\t\t\t retorno.longitude = \"0\";\r\n\r\n\t\t\t// Versão do IS\r\n\t\t\tretorno.numeroVersao = linha.substring(index, index\t+ REGISTRO_TIPO_1_NUMERO_VERSAO);\r\n\t\t\tindex += REGISTRO_TIPO_1_NUMERO_VERSAO;\r\n\r\n\t\t}\r\n\r\n\t\treturn retorno;\r\n\t}", "public void cargarConceptoRetencion()\r\n/* 393: */ {\r\n/* 394: */ try\r\n/* 395: */ {\r\n/* 396:387 */ this.listaConceptoRetencionSRI = this.servicioConceptoRetencionSRI.getConceptoListaRetencionPorFecha(this.facturaProveedorSRI.getFechaRegistro());\r\n/* 397: */ }\r\n/* 398: */ catch (Exception e)\r\n/* 399: */ {\r\n/* 400:390 */ addErrorMessage(getLanguageController().getMensaje(\"msg_error_cargar_datos\"));\r\n/* 401: */ }\r\n/* 402: */ }", "private void cargarFichaLepra_control() {\r\n\r\n\t\tMap<String, Object> parameters = new HashMap<String, Object>();\r\n\t\tparameters.put(\"codigo_empresa\", codigo_empresa);\r\n\t\tparameters.put(\"codigo_sucursal\", codigo_sucursal);\r\n\t\tparameters.put(\"nro_identificacion\", tbxNro_identificacion.getValue());\r\n\r\n\t\tficha_inicio_lepraService.setLimit(\"limit 25 offset 0\");\r\n\r\n\t\t// log.info(\"parameters>>>>\" + parameters);\r\n\t\tBoolean ficha_inicio = ficha_inicio_lepraService\r\n\t\t\t\t.existe_paciente_lepra(parameters);\r\n\t\t// log.info(\"ficha_inicio>>>>\" + ficha_inicio);\r\n\r\n\t\tif (ficha_inicio) {\r\n\t\t\tMap<String, Object> parametros = new HashMap<String, Object>();\r\n\t\t\tparametros.put(\"nro_identificacion\",\r\n\t\t\t\t\tadmision_seleccionada.getNro_identificacion());\r\n\t\t\tparametros.put(\"nro_ingreso\",\r\n\t\t\t\t\tadmision_seleccionada.getNro_ingreso());\r\n\t\t\tparametros.put(\"estado\", admision_seleccionada.getEstado());\r\n\t\t\tparametros.put(\"codigo_administradora\",\r\n\t\t\t\t\tadmision_seleccionada.getCodigo_administradora());\r\n\t\t\tparametros.put(\"id_plan\", admision_seleccionada.getId_plan());\r\n\t\t\tparametros.put(IVias_ingreso.ADMISION_PACIENTE,\r\n\t\t\t\t\tadmision_seleccionada);\r\n\t\t\tparametros.put(IVias_ingreso.OPCION_VIA_INGRESO,\r\n\t\t\t\t\tOpciones_via_ingreso.REGISTRAR);\r\n\t\t\ttabboxContendor.abrirPaginaTabDemanda(false,\r\n\t\t\t\t\tIRutas_historia.PAGINA_SEGUIMIENTO_TRATAMIENTO_LEPRA,\r\n\t\t\t\t\tIRutas_historia.LABEL_SEGUIMIENTO_TRATAMIENTO_LEPRA,\r\n\t\t\t\t\tparametros);\r\n\t\t}\r\n\t}", "protected String cargarVisitaTerrenoParticipante(String url, String username,\n String password) throws Exception {\n try {\n if(mVisitasTerrenoP.size()>0){\n // La URL de la solicitud POST\n final String urlRequest = url + \"/movil/visitasterrenoparti\";\n VisitaTerrenoParticipante[] envio = mVisitasTerrenoP.toArray(new VisitaTerrenoParticipante[mVisitasTerrenoP.size()]);\n HttpHeaders requestHeaders = new HttpHeaders();\n HttpAuthentication authHeader = new HttpBasicAuthentication(username, password);\n requestHeaders.setContentType(MediaType.APPLICATION_JSON);\n requestHeaders.setAuthorization(authHeader);\n HttpEntity<VisitaTerrenoParticipante[]> requestEntity =\n new HttpEntity<VisitaTerrenoParticipante[]>(envio, requestHeaders);\n RestTemplate restTemplate = new RestTemplate();\n restTemplate.getMessageConverters().add(new StringHttpMessageConverter());\n restTemplate.getMessageConverters().add(new MappingJacksonHttpMessageConverter());\n // Hace la solicitud a la red, pone la vivienda y espera un mensaje de respuesta del servidor\n ResponseEntity<String> response = restTemplate.exchange(urlRequest, HttpMethod.POST, requestEntity,\n String.class);\n return response.getBody();\n }\n else{\n return \"Datos recibidos!\";\n }\n } catch (Exception e) {\n Log.e(TAG, e.getMessage(), e);\n return e.getMessage();\n }\n }", "public String cargarDatos()\r\n/* 514: */ {\r\n/* 515:540 */ return null;\r\n/* 516: */ }", "public String getRetorno(){\n return retorno;\n }", "private String leerRespuestaApi(InputStream stream) throws IOException {\n //NECESITAMOS UN LECTOR DEL FLUJO\n BufferedReader buffer = new BufferedReader(new InputStreamReader(stream));\n //TENEMOS QUE LEER EL FLUJO Y PONER UN SEPARADOR DE ENTER\n //ENTRE LAS LINEAS\n String linea = \"\";\n //UN STRINGBUFFER SIRVE PARA LEER CONTENIDO MUY GRANDE\n StringBuffer data = new StringBuffer();\n //EL SEPARADOR DE ENTER DE CADA LINEA\n String separador = \"\";\n //MIENTRAS QUE EXISTAN LINEAS EN EL XML, DENTRO BUCLE\n while ((linea = buffer.readLine()) != null) {\n //AÑADIMOS EL CONTENIDO DE DATOS A DATA\n data.append(separador + linea);\n separador = \"\\n\";\n }\n //RECUPERAMOS LOS DATOS COMO STRING\n String response = data.toString();\n return response;\n }", "private void cargarFichaLepra_inicio() {\r\n\t\tMap<String, Object> parametros = new HashMap<String, Object>();\r\n\t\tparametros.put(\"nro_identificacion\",\r\n\t\t\t\tadmision_seleccionada.getNro_identificacion());\r\n\t\tparametros.put(\"nro_ingreso\", admision_seleccionada.getNro_ingreso());\r\n\t\tparametros.put(\"estado\", admision_seleccionada.getEstado());\r\n\t\tparametros.put(\"codigo_administradora\",\r\n\t\t\t\tadmision_seleccionada.getCodigo_administradora());\r\n\t\tparametros.put(\"id_plan\", admision_seleccionada.getId_plan());\r\n\t\tparametros.put(IVias_ingreso.ADMISION_PACIENTE, admision_seleccionada);\r\n\t\tparametros.put(IVias_ingreso.OPCION_VIA_INGRESO,\r\n\t\t\t\tOpciones_via_ingreso.REGISTRAR);\r\n\t\ttabboxContendor.abrirPaginaTabDemanda(false,\r\n\t\t\t\tIRutas_historia.PAGINA_INICIO_TRATAMIENTO_LEPRA,\r\n\t\t\t\tIRutas_historia.LABEL_INICIO_TRATAMIENTO_LEPRA, parametros);\r\n\t}", "private Retorno( )\r\n {\r\n val = null;\r\n izq = null;\r\n der = null;\r\n\r\n }", "private void getArquivo()\n {\n /*** Obtem o conteudo do pacote através do diretorio ***/\n File file = new File(caminho_origem);\n if (file.isFile())\n {\n try\n {\n /*** Lê o pacote e põe em um array de bytes ***/\n DataInputStream diStream = new DataInputStream(new FileInputStream(file));\n long len = (int) file.length();\n if (len > Utils.tamanho_maximo_arquivo)\n {\n System.out.println(Utils.prefixo_cliente + Utils.arquivo_muito_grande);\n System.exit(0);\n }\n Float numero_pacotes_ = ((float)len / Utils.tamanho_util_pacote);\n int numero_pacotes = numero_pacotes_.intValue();\n int ultimo_pacote = (int) len - (Utils.tamanho_util_pacote * numero_pacotes);\n int read = 0;\n /***\n 1500\n fileBytes[1500]\n p[512]\n p[512]\n p[476]len - (512 * numero_pacotes.intValue())\n ***/\n byte[] fileBytes = new byte[(int)len];\n while (read < fileBytes.length)\n {\n fileBytes[read] = diStream.readByte();\n read++;\n }\n int i = 0;\n int pacotes_feitos = 0;\n while ( pacotes_feitos < numero_pacotes)\n {\n byte[] mini_pacote = new byte[Utils.tamanho_util_pacote];\n for (int k = 0; k < Utils.tamanho_util_pacote; k++)\n {\n mini_pacote[k] = fileBytes[i];\n i++;\n }\n Pacote pacote_ = new Pacote();\n pacote_.setConteudo(mini_pacote);\n this.pacotes.add(pacote_);\n pacotes_feitos++;\n }\n byte[] ultimo_mini_pacote = new byte[ultimo_pacote];\n int ultimo_indice = ultimo_mini_pacote.length;\n for (int j = 0; j < ultimo_mini_pacote.length; j++)\n {\n ultimo_mini_pacote[j] = fileBytes[i];\n i++;\n }\n byte[] ultimo_mini_pacote2 = new byte[512];\n System.arraycopy(ultimo_mini_pacote, 0, ultimo_mini_pacote2, 0, ultimo_mini_pacote.length);\n for(int h = ultimo_indice; h < 512; h++ ) ultimo_mini_pacote2[h] = \" \".getBytes()[0];\n Pacote pacote_ = new Pacote();\n pacote_.setConteudo(ultimo_mini_pacote2);\n this.pacotes.add(pacote_);\n this.janela = new HashMap<>();\n for (int iterator = 0; iterator < this.pacotes.size(); iterator++) janela.put(iterator, new Estado());\n } catch (Exception e)\n {\n System.out.println(Utils.prefixo_cliente + Utils.erro_na_leitura);\n System.exit(0);\n }\n } else\n {\n System.out.println(Utils.prefixo_cliente + Utils.arquivo_inexistente);\n System.exit(0);\n }\n }", "public static List<Parte> partesTFC(){\n List <Parte> partes=new ArrayList<>();\n Conexion.conectar();\n String sql = \"call ppartes.partesTC (?)\";\n \n try {\n CallableStatement cs = Conexion.getConexion().prepareCall(sql);\n \n \n \n cs.registerOutParameter(1, OracleTypes.CURSOR);\n cs.execute();\n \n ResultSet rs = (ResultSet) cs.getObject(1);\n while (rs.next()){\n Parte p = new Parte();\n p.setFecha(rs.getString(\"fecha\"));\n p.setKmInicial(rs.getBigDecimal(\"kmInicial\"));\n p.setKmFinal(rs.getBigDecimal(\"kmFinal\"));\n p.setGastoPeaje(rs.getBigDecimal(\"gastosPeaje\")); \n p.setGastoDietas(rs.getBigDecimal(\"gastosDietas\"));\n p.setGastoCombustible(rs.getBigDecimal(\"gastosCombustible\"));\n p.setGastoVarios(rs.getBigDecimal(\"otrosGastos\"));\n p.setIncidencias(rs.getString(\"incidencias\"));\n p.setEstado(rs.getString(\"estado\"));\n p.setValidado(rs.getString(\"validado\"));\n p.setHorasExtras(rs.getBigDecimal(\"horasExtras\"));\n p.setIdTrabajador(rs.getBigDecimal(\"TRABAJADORES_ID\"));\n p.setNotasAdministrativas(rs.getString(\"notasAdministrativas\"));\n partes.add(p);\n }\n \n rs.close();\n cs.close();\n Conexion.desconectar();\n return partes;\n } catch (SQLException ex) {\n JOptionPane.showMessageDialog(null, \"No se puede efectuar la conexión, hable con el administrador del sistema\" + ex.getMessage());\n }\n return null;\n }", "public int cuantosParrafos() \r\n\t{\r\n\t\tString respuesta = JOptionPane.showInputDialog(\"cuantas estrofas quiere\");\r\n\t\tint respuesta1 = Integer.parseInt(respuesta);\r\n\t\treturn respuesta1;\r\n\t}", "private static CartelleAvvisiResponseType getBPSCartelleResponse( Fascicolo fascicolo) throws Exception {\n\t\t\r\n\t\tCartellaAvvisiRequestType bpCartelleRequest = new CartellaAvvisiRequestType(); \r\n\t\tbpCartelleRequest.setTipologiaRichiesta(MessagesClass.getMessage(\"TIPOLOGIA_DOCUMENTI_TUTTI\").trim()) ;\t \r\n\t\tbpCartelleRequest.setCodiceFiscale(fascicolo.getAnagrafica().getCodiceFiscale().trim());\r\n\t\t//il tipo documento (cartella od avviso), viene lasciato vuoto in modo da caricare entrambe le tipologie\r\n\t\t//bpCartelleRequest.setTipoDocumento(null); \r\n\t\t\r\n\t\t//inizio modifiche Agosto\r\n\t\tDateFormat dateFormat = new SimpleDateFormat(\"yyyy/MM/dd HH:mm:ss\"); \r\n\t\tDate dataAttuale = new Date(); \r\n\t\tlogger.debug(dateFormat.format(dataAttuale)); \r\n\t\tbpCartelleRequest.setDataRichiesta(dataAttuale );\r\n\t\t//fine modifiche Agosto\r\n\t\t\r\n\t\treturn getBPSCartelleResponse(bpCartelleRequest);\r\n\t}", "public static List<Parte> partesTFF(String fechaIni, String fechaFin){\n List <Parte> partes=new ArrayList<>();\n Conexion.conectar();\n String sql = \"call ppartes.partesTFF (?,?,?)\";\n \n try {\n CallableStatement cs = Conexion.getConexion().prepareCall(sql);\n \n cs.setString(1, fechaIni);\n cs.setString(2, fechaFin);\n cs.registerOutParameter(3, OracleTypes.CURSOR);\n cs.execute();\n \n ResultSet rs = (ResultSet) cs.getObject(3);\n while (rs.next()){\n Parte p = new Parte();\n p.setFecha(rs.getString(\"fecha\"));\n p.setKmInicial(rs.getBigDecimal(\"kmInicial\"));\n p.setKmFinal(rs.getBigDecimal(\"kmFinal\"));\n p.setGastoPeaje(rs.getBigDecimal(\"gastosPeaje\")); \n p.setGastoDietas(rs.getBigDecimal(\"gastosDietas\"));\n p.setGastoCombustible(rs.getBigDecimal(\"gastosCombustible\"));\n p.setGastoVarios(rs.getBigDecimal(\"otrosGastos\"));\n p.setIncidencias(rs.getString(\"incidencias\"));\n p.setEstado(rs.getString(\"estado\"));\n p.setValidado(rs.getString(\"validado\"));\n p.setHorasExtras(rs.getBigDecimal(\"horasExtras\"));\n p.setIdTrabajador(rs.getBigDecimal(\"TRABAJADORES_ID\"));\n p.setNotasAdministrativas(rs.getString(\"notasAdministrativas\"));\n partes.add(p);\n }\n \n rs.close();\n cs.close();\n Conexion.desconectar();\n return partes;\n } catch (SQLException ex) {\n JOptionPane.showMessageDialog(null, \"No se puede efectuar la conexión, hable con el administrador del sistema\" + ex.getMessage());\n }\n return null;\n }", "public Instrucoes2op(){\n\t\tmmm1 = super.BitsModoDeEnderecamento();\t// pega os bits do endereçamento do primeiro operando\n\t\tmmm2 = super.BitsModoDeEnderecamento();\t// pega os bits do endereçamento do segundo operando \n\t\trrr1 = \"\";\n\t\trrr2 = \"\";\t\n\t}", "public String cargarDatos()\r\n/* 109: */ {\r\n/* 110:119 */ return null;\r\n/* 111: */ }", "protected byte[] buildResponse() {\n final Object[] fields = {\n messageType(),\n request,\n errorDescription\n };\n\n final byte[] resposta = new byte[1];\n final byte[] codigo = new byte[1];\n final byte[] numeroDeBytes = new byte[1];\n final byte[] dados = new byte[numeroDeBytes[0]];\n\n\n return resposta;\n }", "private void datosVehiculo(boolean esta_en_revista) {\n\t\ttry{\n\t\t\t String Sjson= Utils.doHttpConnection(\"http://datos.labplc.mx/movilidad/vehiculos/\"+placa+\".json\");\n\t\t\t JSONObject json= (JSONObject) new JSONTokener(Sjson).nextValue();\n\t\t\t JSONObject json2 = json.getJSONObject(\"consulta\");\n\t\t\t JSONObject jsonResponse = new JSONObject(json2.toString());\n\t\t\t JSONObject sys = jsonResponse.getJSONObject(\"tenencias\");\n\t\t\t \n\t\t\t if(sys.getString(\"tieneadeudos\").toString().equals(\"0\")){\n\t\t\t \tautoBean.setDescripcion_tenencia(getResources().getString(R.string.sin_adeudo_tenencia));\n\t\t\t \tautoBean.setImagen_teencia(imagen_verde);\n\t\t\t }else{\n\t\t\t \tautoBean.setDescripcion_tenencia(getResources().getString(R.string.con_adeudo_tenencia));\n\t\t\t \tautoBean.setImagen_teencia(imagen_rojo);\n\t\t\t \tPUNTOS_APP-=PUNTOS_TENENCIA;\n\t\t\t }\n\t\t\t \n\t\t\t JSONArray cast = jsonResponse.getJSONArray(\"infracciones\");\n\t\t\t String situacion;\n\t\t\t boolean hasInfraccion=false;\n\t\t\t for (int i=0; i<cast.length(); i++) {\n\t\t\t \tJSONObject oneObject = cast.getJSONObject(i);\n\t\t\t\t\t\t try {\n\t\t\t\t\t\t\t situacion = (String) oneObject.getString(\"situacion\");\n\t\t\t\t\t\t\t if(!situacion.equals(\"Pagada\")){\n\t\t\t\t\t\t\t\t hasInfraccion=true;\n\t\t\t\t\t\t\t }\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t } catch (JSONException e) { \n\t\t\t\t\t\t\t DatosLogBean.setDescripcion(Utils.getStackTrace(e));\n\t\t\t\t\t\t }\n\t\t\t }\n\t\t\t if(hasInfraccion){\n\t\t\t \t autoBean.setDescripcion_infracciones(getResources().getString(R.string.tiene_infraccion));\n\t\t\t\t \tautoBean.setImagen_infraccones(imagen_rojo);\n\t\t\t\t \tPUNTOS_APP-=PUNTOS_INFRACCIONES;\n\t\t\t }else{\n\t\t\t \t autoBean.setDescripcion_infracciones(getResources().getString(R.string.no_tiene_infraccion));\n\t\t\t\t autoBean.setImagen_infraccones(imagen_verde);\n\t\t\t }\n\t\t\t JSONArray cast2 = jsonResponse.getJSONArray(\"verificaciones\");\n\t\t\t if(cast2.length()==0){\n\t\t\t \t autoBean.setDescripcion_verificacion(getResources().getString(R.string.no_tiene_verificaciones));\n\t\t\t\t\t autoBean.setImagen_verificacion(imagen_rojo);\n\t\t\t\t\t PUNTOS_APP-=PUNTOS_VERIFICACION;\n\t\t\t }\n\t\t\t\t\t Date lm = new Date();\n\t\t\t\t\t String lasmod = new SimpleDateFormat(\"yyyy-MM-dd\").format(lm);\n\t\t\t\t\t SimpleDateFormat formatter = new SimpleDateFormat(\"yyyy-MM-dd\");\n\t\t\t\t\tBoolean yaValide=true;\n\t\t\t\t for (int i=0; i<cast2.length(); i++) {\n\t\t\t\t \tJSONObject oneObject = cast2.getJSONObject(i);\n\t\t\t\t\t\t\t try {\n\t\t\t\t\t\t\t\t\tif(!esta_en_revista&&yaValide){\n\t\t\t\t\t\t\t\t\t\t autoBean.setMarca((String) oneObject.getString(\"marca\"));\n\t\t\t\t\t\t\t\t\t\t autoBean.setSubmarca((String) oneObject.getString(\"submarca\"));\n\t\t\t\t\t\t\t\t\t\t autoBean.setAnio((String) oneObject.getString(\"modelo\"));\n\t\t\t\t\t\t\t\t\t\t \n\t\t\t\t\t\t\t\t\t\t autoBean.setDescripcion_revista(getResources().getString(R.string.sin_revista));\n\t\t\t\t\t\t\t\t\t\t autoBean.setImagen_revista(imagen_rojo);\n\t\t\t\t\t\t\t\t\t\t \n\t\t\t\t\t\t\t\t\t\t Calendar calendar = Calendar.getInstance();\n\t\t\t\t\t\t\t\t\t\t int thisYear = calendar.get(Calendar.YEAR);\n\t\t\t\t\t\t\t\t\t\t \n\t\t\t\t\t\t\t\t\t\t if(thisYear-Integer.parseInt(autoBean.getAnio())<=10){\n\t\t\t\t\t\t\t\t\t\t\t autoBean.setDescripcion_vehiculo(getResources().getString(R.string.carro_nuevo)+\" \"+getResources().getString(R.string.Anio)+\" \"+autoBean.getAnio());\n\t\t\t\t\t\t\t\t\t\t\t autoBean.setImagen_vehiculo(imagen_verde);\n\t\t\t\t\t\t\t\t\t\t }else{\n\t\t\t\t\t\t\t\t\t\t\t autoBean.setDescripcion_vehiculo(getResources().getString(R.string.carro_viejo)+\" \"+getResources().getString(R.string.Anio)+\" \"+autoBean.getAnio());\n\t\t\t\t\t\t\t\t\t\t\t autoBean.setImagen_vehiculo(imagen_rojo);\n\t\t\t\t\t\t\t\t\t\t\t PUNTOS_APP-=PUNTOS_ANIO_VEHICULO;\n\t\t\t\t\t\t\t\t\t\t }\n\t\t\t\t\t\t\t\t\t\t yaValide=false;\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t Date date1 = formatter.parse(lasmod);\n\t\t\t\t\t\t\t\t Date date2 = formatter.parse(oneObject.getString(\"vigencia\").toString());\n\t\t\t\t\t\t\t\t int comparison = date2.compareTo(date1);\n\t\t\t\t\t\t\t\t if((comparison==1||comparison==0)&&!oneObject.getString(\"resultado\").toString().equals(\"RECHAZO\")){\n\t\t\t\t\t\t\t\t\t autoBean.setDescripcion_verificacion(getResources().getString(R.string.tiene_verificaciones)+\" \"+oneObject.getString(\"resultado\").toString());\n\t\t\t\t\t\t\t\t\t autoBean.setImagen_verificacion(imagen_verde); \n\t\t\t\t\t\t\t\t\t hasVerificacion=true;\n\t\t\t\t\t\t\t\t\t break;\n\t\t\t\t\t\t\t\t }else{\n\t\t\t\t\t\t\t\t\t autoBean.setDescripcion_verificacion(getResources().getString(R.string.no_tiene_verificaciones));\n\t\t\t\t\t\t\t\t\t autoBean.setImagen_verificacion(imagen_rojo);\n\t\t\t\t\t\t\t\t\t hasVerificacion=false;\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\n\t\t\t\t\t\t\t } catch (JSONException e) { \n\t\t\t\t\t\t\t\t DatosLogBean.setDescripcion(Utils.getStackTrace(e));\n\t\t\t\t\t\t\t } catch (ParseException e) {\n\t\t\t\t\t\t\t\t DatosLogBean.setDescripcion(Utils.getStackTrace(e));\n\t\t\t\t\t\t\t}\n\t\t\t\t }\n\t\t\t\t if(!hasVerificacion){\n\t\t\t\t \t PUNTOS_APP-=PUNTOS_VERIFICACION;\n\t\t\t\t }\n\t\t\t \n\t\t\t}catch(JSONException e){\n\t\t\t\tDatosLogBean.setDescripcion(Utils.getStackTrace(e));\n\t\t\t}\n\t\t\n\t}", "public static List<Parte> partesTFA(){\n List <Parte> partes=new ArrayList<>();\n Conexion.conectar();\n String sql = \"call ppartes.partesTA (?)\";\n \n try {\n CallableStatement cs = Conexion.getConexion().prepareCall(sql);\n \n \n \n cs.registerOutParameter(1, OracleTypes.CURSOR);\n cs.execute();\n \n ResultSet rs = (ResultSet) cs.getObject(1);\n while (rs.next()){\n Parte p = new Parte();\n p.setFecha(rs.getString(\"fecha\"));\n p.setKmInicial(rs.getBigDecimal(\"kmInicial\"));\n p.setKmFinal(rs.getBigDecimal(\"kmFinal\"));\n p.setGastoPeaje(rs.getBigDecimal(\"gastosPeaje\")); \n p.setGastoDietas(rs.getBigDecimal(\"gastosDietas\"));\n p.setGastoCombustible(rs.getBigDecimal(\"gastosCombustible\"));\n p.setGastoVarios(rs.getBigDecimal(\"otrosGastos\"));\n p.setIncidencias(rs.getString(\"incidencias\"));\n p.setEstado(rs.getString(\"estado\"));\n p.setValidado(rs.getString(\"validado\"));\n p.setHorasExtras(rs.getBigDecimal(\"horasExtras\"));\n p.setIdTrabajador(rs.getBigDecimal(\"TRABAJADORES_ID\"));\n p.setNotasAdministrativas(rs.getString(\"notasAdministrativas\"));\n partes.add(p);\n }\n \n rs.close();\n cs.close();\n Conexion.desconectar();\n return partes;\n } catch (SQLException ex) {\n JOptionPane.showMessageDialog(null, \"No se puede efectuar la conexión, hable con el administrador del sistema\" + ex.getMessage());\n }\n return null;\n }", "public void obtener() {\r\n \t\r\n \tif (raiz!=null)\r\n {\r\n int informacion = raiz.dato;\r\n raiz = raiz.sig;\r\n end = raiz;\r\n System.out.println(\"Obtenemos el dato de la cima: \"+informacion);\r\n }\r\n else\r\n {\r\n System.out.println(\"No hay datos en la pila\");\r\n }\r\n }", "protected String cargarObsequioGeneral(String url, String username,\n String password) throws Exception {\n try {\n if(mObsequiosGeneral.size()>0){\n // La URL de la solicitud POST\n final String urlRequest = url + \"/movil/obsequiosgen\";\n ObsequioGeneral[] envio = mObsequiosGeneral.toArray(new ObsequioGeneral[mObsequiosGeneral.size()]);\n HttpHeaders requestHeaders = new HttpHeaders();\n HttpAuthentication authHeader = new HttpBasicAuthentication(username, password);\n requestHeaders.setContentType(MediaType.APPLICATION_JSON);\n requestHeaders.setAuthorization(authHeader);\n HttpEntity<ObsequioGeneral[]> requestEntity =\n new HttpEntity<ObsequioGeneral[]>(envio, requestHeaders);\n RestTemplate restTemplate = new RestTemplate();\n restTemplate.getMessageConverters().add(new StringHttpMessageConverter());\n restTemplate.getMessageConverters().add(new MappingJacksonHttpMessageConverter());\n // Hace la solicitud a la red, pone la vivienda y espera un mensaje de respuesta del servidor\n ResponseEntity<String> response = restTemplate.exchange(urlRequest, HttpMethod.POST, requestEntity,\n String.class);\n return response.getBody();\n }\n else{\n return \"Datos recibidos!\";\n }\n } catch (Exception e) {\n Log.e(TAG, e.getMessage(), e);\n return e.getMessage();\n }\n }", "protected String cargarRecepcionBHCs(String url, String username,\n String password) throws Exception {\n try {\n getRecepcionBHCs();\n if(mRecepcionBHCs.size()>0){\n saveRecepcionBHCs(Constants.STATUS_SUBMITTED);\n // La URL de la solicitud POST\n final String urlRequest = url + \"/movil/bhcs\";\n RecepcionBHC[] envio = mRecepcionBHCs.toArray(new RecepcionBHC[mRecepcionBHCs.size()]);\n HttpHeaders requestHeaders = new HttpHeaders();\n HttpAuthentication authHeader = new HttpBasicAuthentication(username, password);\n requestHeaders.setContentType(MediaType.APPLICATION_JSON);\n requestHeaders.setAuthorization(authHeader);\n HttpEntity<RecepcionBHC[]> requestEntity =\n new HttpEntity<RecepcionBHC[]>(envio, requestHeaders);\n RestTemplate restTemplate = new RestTemplate();\n restTemplate.getMessageConverters().add(new StringHttpMessageConverter());\n restTemplate.getMessageConverters().add(new MappingJacksonHttpMessageConverter());\n // Hace la solicitud a la red, pone la vivienda y espera un mensaje de respuesta del servidor\n ResponseEntity<String> response = restTemplate.exchange(urlRequest, HttpMethod.POST, requestEntity,\n String.class);\n // Regresa la respuesta a mostrar al usuario\n if (!response.getBody().matches(\"Datos recibidos!\")) {\n saveRecepcionBHCs(Constants.STATUS_NOT_SUBMITTED);\n }\n return response.getBody();\n }\n else{\n return \"Datos recibidos!\";\n }\n } catch (Exception e) {\n Log.e(TAG, e.getMessage(), e);\n saveRecepcionBHCs(Constants.STATUS_NOT_SUBMITTED);\n return e.getMessage();\n }\n\n }", "private void cargarTarjetaTuberculosis() {\r\n\t\tMap<String, Object> parametros = new HashMap<String, Object>();\r\n\t\tparametros.put(\"nro_identificacion\",\r\n\t\t\t\tadmision_seleccionada.getNro_identificacion());\r\n\t\tparametros.put(\"nro_ingreso\", admision_seleccionada.getNro_ingreso());\r\n\t\tparametros.put(\"estado\", admision_seleccionada.getEstado());\r\n\t\tparametros.put(\"codigo_administradora\",\r\n\t\t\t\tadmision_seleccionada.getCodigo_administradora());\r\n\t\tparametros.put(\"id_plan\", admision_seleccionada.getId_plan());\r\n\t\tparametros.put(IVias_ingreso.ADMISION_PACIENTE, admision_seleccionada);\r\n\t\tparametros.put(IVias_ingreso.OPCION_VIA_INGRESO,\r\n\t\t\t\tOpciones_via_ingreso.REGISTRAR);\r\n\t\ttabboxContendor.abrirPaginaTabDemanda(false,\r\n\t\t\t\tIRutas_historia.PAGINA_HC_TUBERCULOSIS,\r\n\t\t\t\tIRutas_historia.LABEL_HC_TUBERCULOSIS, parametros);\r\n\t}", "private List<PreDocumentoEntrata> ricercaSinteticaPreDocumentoEntrata() {\n\t\tRicercaSinteticaPreDocumentoEntrataResponse resRSPD = ricercaSinteticaPreDocumentoEntrata(0);\t\t\n\t\tList<PreDocumentoEntrata> result = resRSPD.getPreDocumenti();\n\t\t\n\t\tfor(int i = 1; i < resRSPD.getTotalePagine(); i++) {\t\t\t\n\t\t\tresRSPD = ricercaSinteticaPreDocumentoEntrata(i);\n\t\t\tresult.addAll(resRSPD.getPreDocumenti());\t\t\t\n\t\t}\n\t\treturn result;\n\t}", "protected String getAbreviaturaProceso(Constantes.PROCESOS proc) throws Exception{\n\t\treturn getParametro(proc.getCodValor());\r\n\t}", "private static RataType[] getRataTypeFromBPSDettaglioCartellaResponse( DettaglioCartellaAvvisoResponse response) {\r\n\t\tRataType[] result = new RataType[0];\r\n\t\t\r\n\t\t\r\n\t\t//inizio modifica FASCICOLO_2.1 \r\n\t\tif (response.getCartellaAvviso().getPianoRateOrigine()!=null ) {\r\n\t\t\tit.equitalia.dettagliocartellaavviso.wsdl.RataType[] rate = response.getCartellaAvviso().getPianoRateOrigine();\r\n\t\t\t\r\n\t\t\tresult = new RataType[rate.length];\r\n\t\t\t\r\n\t\t\tfor (int i = 0; i < rate.length; i++) {\r\n\t\t\t\tit.equitalia.dettagliocartellaavviso.wsdl.RataType rataResponse = rate[i];\r\n\t\t\t\t\r\n\t\t\t\tRataType rata = new RataType();\r\n\r\n\t\t\t\trata.setProgressivoRata(rataResponse.getProgressivoRata() );\r\n\t\t\t\trata.setDataScadenza(rataResponse.getDataScadenza());\r\n\t\t\t\trata.setImportoRata(rataResponse.getImportoRata().doubleValue()) ;\r\n\t\t\t\trata.setNumeroRav(rataResponse.getNumeroRav()) ;\r\n\t\t\t\trata.setStatoRata(rataResponse.getStatoRata() ) ; \r\n\t\t\t\t\r\n\t\t\t\tresult[i] = rata;\r\n\t\t\t}\r\n\t\t}\r\n\t\t//fine modifica FASCICOLO_2.1\r\n\t\t \r\n\t\treturn result;\r\n\t}", "public String agregarDetalleFacturaSRI()\r\n/* 405: */ {\r\n/* 406:401 */ this.servicioFacturaProveedorSRI.cargarDetalleRetencion(this.facturaProveedorSRI, null, null);\r\n/* 407: */ \r\n/* 408:403 */ return \"\";\r\n/* 409: */ }", "protected String cargarTempPbmcs(String url, String username,\n String password) throws Exception {\n try {\n getTempPbmcs();\n if(mTempPbmcs.size()>0){\n saveTempPbmcs(Constants.STATUS_SUBMITTED);\n // La URL de la solicitud POST\n final String urlRequest = url + \"/movil/tpbmcs\";\n TempPbmc[] envio = mTempPbmcs.toArray(new TempPbmc[mTempPbmcs.size()]);\n HttpHeaders requestHeaders = new HttpHeaders();\n HttpAuthentication authHeader = new HttpBasicAuthentication(username, password);\n requestHeaders.setContentType(MediaType.APPLICATION_JSON);\n requestHeaders.setAuthorization(authHeader);\n HttpEntity<TempPbmc[]> requestEntity =\n new HttpEntity<TempPbmc[]>(envio, requestHeaders);\n RestTemplate restTemplate = new RestTemplate();\n restTemplate.getMessageConverters().add(new StringHttpMessageConverter());\n restTemplate.getMessageConverters().add(new MappingJacksonHttpMessageConverter());\n // Hace la solicitud a la red, pone la vivienda y espera un mensaje de respuesta del servidor\n ResponseEntity<String> response = restTemplate.exchange(urlRequest, HttpMethod.POST, requestEntity,\n String.class);\n // Regresa la respuesta a mostrar al usuario\n if (!response.getBody().matches(\"Datos recibidos!\")) {\n saveTempPbmcs(Constants.STATUS_NOT_SUBMITTED);\n }\n return response.getBody();\n }\n else{\n return \"Datos recibidos!\";\n }\n } catch (Exception e) {\n Log.e(TAG, e.getMessage(), e);\n saveTempPbmcs(Constants.STATUS_NOT_SUBMITTED);\n return e.getMessage();\n }\n\n }", "byte[] getResult();", "public static String[] Lectura(Socket Entrada){\n String[] retorno=null;\n try {\n BufferedReader Lector = new BufferedReader(new InputStreamReader(Entrada.getInputStream()));\n String Texto = Lector.readLine();\n if (RevisionFormato.Format(Texto, \"~\")) {\n retorno = Texto.split(\"~\");\n }\n else{\n }\n }\n catch (Exception e){\n\n }\n return retorno;\n }", "public String agregarDetalleIVAFacturaSRI()\r\n/* 418: */ {\r\n/* 419:421 */ this.servicioFacturaProveedorSRI.cargarDetalleIVARetencion(this.facturaProveedorSRI, null);\r\n/* 420: */ \r\n/* 421:423 */ return \"\";\r\n/* 422: */ }", "private void escoger(){\n partida.escoger(ficha1,ficha2);\n ficha1=null;\n ficha2=null;\n this.ok=partida.ok;\n }", "public List<String> pot(ReportePlazaDTO reportePlazaDTO) {\n List<CustomOutputFile> lista = new ArrayList<CustomOutputFile>();\n List<String> listaString = new ArrayList<String>();\n\n String qnaCaptura = reportePlazaDTO.getQnaCaptura();\n String qnaCaptura2 = \"\";\n\n if (new Integer(qnaCaptura) % 2 == 0) {\n qnaCaptura2 = String.valueOf((new Integer(qnaCaptura) - 1));\n } else {\n qnaCaptura2 = qnaCaptura;\n }\n\n\n if (reportePlazaDTO.getOrigen().equalsIgnoreCase(\"e\")) {\n\n lista = \n super.persistence().get(QueryTdPlazaDAO.class).findBypotEscenario(qnaCaptura);\n listaString.add(\"ID del Cargo,Nombre del Cargo\");\n } else if (reportePlazaDTO.getOrigen().equalsIgnoreCase(\"i\")) {\n lista = \n super.persistence().get(QueryTdPlazaDAO.class).findBypotInmueble(qnaCaptura);\n listaString.add(\"Id Domicilio,Calle,Número Exterior,Número Interior,Colonia,Municipio,Estado/Entidad Fef.,País,Código Postal,Tipo de Oficina\");\n } else if (reportePlazaDTO.getOrigen().equalsIgnoreCase(\"a\")) {\n lista = \n super.persistence().get(QueryTdPlazaDAO.class).findBypotAltas(qnaCaptura, \n qnaCaptura2);\n listaString.add(\"ID del Servidor Público,Nombre,Primer Apellido,Segundo Apellido,Tipo Vacancia,Telefono Directo,Conmutador,Extensión,Fax,Email,ID Domicilio,Nivel de Puesto,Id del Cargo,ID del Cargo Superior,Nivel_Jerarquico\");\n } else if (reportePlazaDTO.getOrigen().equalsIgnoreCase(\"b\")) {\n lista = \n super.persistence().get(QueryTdPlazaDAO.class).findBypotBajas(qnaCaptura, \n qnaCaptura2);\n listaString.add(\"ID del Servidor Público\");\n } else if (reportePlazaDTO.getOrigen().equalsIgnoreCase(\"d\")) {\n lista = \n super.persistence().get(QueryTdPlazaDAO.class).findBypotDirectorio(qnaCaptura, \n qnaCaptura2);\n listaString.add(\"Unidad,RFC,ID del Servidor Público,Nombre,Primer Apellido,Segundo Apellido,Tipo Vacancia,Telefono Directo,Conmutador,Extensión,Fax,Email,ID Domicilio,Nivel de Puesto,Id del Cargo,ID del Cargo Superior,Nivel_Jerarquico\");\n } else if (reportePlazaDTO.getOrigen().equalsIgnoreCase(\"r\")) {\n lista = \n super.persistence().get(QueryTdPlazaDAO.class).findBypotRemuneraciones(qnaCaptura, \n qnaCaptura2);\n listaString.add(\"Id Puesto,Nombre,Tipo,SubTipo,Sueldo Base,Compensación Garantizada, Total Bruto, Total Neto,Nombre 01 Remuneracion,Monto 01 Remuneracion,Nombre 02 Remuneracion,Monto 02 Remuneracion,Nombre 03 Remuneracion,Monto 03 Remuneracion,Nombre 04 Remuneracion,Monto 04 Remuneracion,Nombre 05 Remuneracion,Monto 05 Remuneracion,Nombre 06 Remuneracion,Monto 06 Remuneracion,Nombre 07 Remuneracion,Monto 07 Remuneracion,Nombre 08 Remuneracion,Monto 08 Remuneracion,Nombre 09 Remuneracion,Monto 09 Remuneracion,Nombre 10 Remuneracion,Monto 10 Remuneracion,Nombre 11 Remuneracion,Monto 11 Remuneracion,Nombre 12 Remuneracion,Monto 12 Remuneracion,Nombre 13 Remuneracion,Monto 13 Remuneracion,Nombre 14 Remuneracion,Monto 14 Remuneracion,Nombre 15 Remuneracion,Monto 15 Remuneracion,Institucional,Colectivo de Retiro,Gastos Médicos,Separación Individualizado,Riesgos de Trabajo,Nombre Otros Seguros 1,Monto Otros Seguros 1,Nombre Otros Seguros 2,Monto Otros Seguros 2,Nombre Otros Seguros 3,Monto Otros Seguros 3,Nombre Otros Seguros 4,Monto Otros Seguros 4,Nombre Otros Seguros 5,Monto Otros Seguros 5,Nombre Otros Seguros 6,Monto Otros Seguros 6,Nombre Otros Seguros 7,Monto Otros Seguros 7,Nombre Otros Seguros 8,Monto Otros Seguros 8,Nombre Otros Seguros 9,Monto Otros Seguros 9,Nombre Otros Seguros 10,Monto Otros Seguros 10,Nombre Otros Seguros 11,Monto Otros Seguros 11,Nombre Otros Seguros 12,Monto Otros Seguros 12,Nombre Otros Seguros 13,Monto Otros Seguros 13,Nombre Otros Seguros 14,Monto Otros Seguros 14,Nombre Otros Seguros15,Monto Otros Seguros 15,Prima Vacacional,Primas de Antigüedad,Gratificación de Fin de Año,Pagas de Defunción,Ayuda para Despensa,Vacaciones,Nombre Prest. Econom 1,Monto Prest. Econom 1,Nombre Prest. Econom 2,Monto Prest. Econom 2,Nombre Prest. Econom 3,Monto Prest. Econom 3,Nombre Prest. Econom 4,Monto Prest. Econom 4,Nombre Prest. Econom 5,Monto Prest. Econom 5,Nombre Prest. Econom 6,Monto Prest. Econom 6,Nombre Prest.Econom 7,Monto Prest. Econom 7,Nombre Prest. Econom 8,Monto Prest. Econom 8,Nombre Prest. Econom 9,Monto Prest. Econom 9,Nombre Prest. Econom 10,Monto Prest. Econom 10,Nombre Prest. Econom 11,Monto Prest. Econom 11,Nombre Prest. Econom 12,Monto Prest. Econom 12,Nombre Prest. Econom 13,Monto Prest. Econom 13,Nombre Prest. Econom 14,Monto Prest. Econom 14,Nombre Prest. Econom 15,Monto Prest. Econom 15,Asistencia Legal,Asignación de Vehículo y/o Apoyo Económico ,Equipo de Telefonía Celular,Gastos de Alimentación,Nombre Prest. Inherentes al Puesto 1,Monto Prest. Inherentes al Puesto 1,Nombre Prest. Inherentes al Puesto 2,Monto Prest. Inherentes al Puesto 2,Nombre Prest. Inherentes al Puesto 3,Monto Prest. Inherentes al Puesto 3,Nombre Prest. Inherentes al Puesto 4,Monto Prest. Inherentes al Puesto 4,Nombre Prest. Inherentes al Puesto 5,Monto Prest. Inherentes al Puesto 5,Nombre Prest. Inherentes al Puesto 6,Monto Prest. Inherentes al Puesto 6,Nombre Prest. Inherentes al Puesto 7,Monto Prest. Inherentes al Puesto 7,Nombre Prest. Inherentes al Puesto 8,Monto Prest. Inherentes al Puesto 8,Nombre Prest. Inherentes al Puesto 9,Monto Prest. Inherentes al Puesto 9,Nombre Prest. Inherentes al Puesto 10,Monto Prest. Inherentes al Puesto 10,Nombre Prest. Inherentes al Puesto 11,Monto Prest. Inherentes al Puesto 11,Nombre Prest. Inherentes al Puesto 12,Monto Prest. Inherentes al Puesto 12,Nombre Prest. Inherentes al Puesto 13,Monto Prest. Inherentes al Puesto 13,Nombre Prest. Inherentes al Puesto 14,Monto Prest. Inherentes al Puesto 14,Nombre Prest. Inherentes al Puesto 15,Monto Prest. Inherentes al Puesto 15,ISSSTE / IMSS,FOVISSSTE / INFONAVIT,SAR,Nombre 01 Prest.Seg Social,Monto 01 Prest.Seg Social,Nombre 02 Prest.Seg Social,Monto 02 Prest.Seg Social,Nombre 03 Prest.Seg Social,Monto 03 Prest.Seg Social,Nombre 04 Prest.Seg Social,Monto 04 Prest.Seg Social,Nombre 05 Prest.Seg Social,Monto 05 Prest.Seg Social,Nombre 06 Prest.Seg Social,Monto 06 Prest.Seg Social,Nombre 07 Prest.Seg Social,Monto 07 Prest.Seg Social,Nombre 08 Prest.Seg Social,Monto 08 Prest.Seg Social,Nombre 09 Prest.Seg Social,Monto 09 Prest.Seg Social,Nombre 10 Prest.Seg Social,Monto 10 Prest.Seg Social,Nombre 11 Prest.Seg Social,Monto 11 Prest.Seg Social,Nombre 12 Prest.Seg Social,Monto 12 Prest.Seg Social,Nombre 13 Prest.Seg Social,Monto 13 Prest.Seg Social,Nombre 14 Prest.Seg Social,Monto 14 Prest.Seg Social,Nombre 15 Prest.Seg Social,Monto 15 Prest.Seg Social,Préstamos,Becas,Indemnizaciones,Nombre Otro Tipo Incentivo 01,Monto. Otro Tipo Incentivo 01,Nombre Otro Tipo Incentivo 02,Monto. Otro Tipo Incentivo 02,Nombre Otro Tipo Incentivo 03,Monto. Otro Tipo Incentivo 03,Nombre Otro Tipo Incentivo 04,Monto. Otro Tipo Incentivo 04,Nombre Otro Tipo Incentivo05,Monto. Otro Tipo Incentivo 05,Nombre Otro Tipo Incentivo 06,Monto. Otro Tipo Incentivo 06,Nombre Otro Tipo Incentivo 07,Monto. Otro Tipo Incentivo 07,Nombre Otro Tipo Incentivo 08,Monto. Otro Tipo Incentivo 08,Nombre Otro Tipo Incentivo 09,Monto. Otro Tipo Incentivo 09,Nombre Otro Tipo Incentivo 10,Monto. Otro Tipo Incentivo10,Nombre Otro Tipo Incentivo 11,Monto. Otro Tipo Incentivo 11,Nombre Otro Tipo Incentivo 12,Monto. Otro Tipo Incentivo12,Nombre Otro Tipo Incentivo 13,Monto. Otro Tipo Incentivo 13,Nombre Otro Tipo Incentivo 14,Monto. Otro Tipo Incentivo 14,Nombre Otro Tipo Incentivo 15,Monto. Otro Tipo Incentivo 15\");\n } else if (reportePlazaDTO.getOrigen().equalsIgnoreCase(\"f\")) {\n lista = \n super.persistence().get(QueryTdPlazaDAO.class).findBypotFuncion((reportePlazaDTO.getQnaCaptura().substring(0, \n 4)));\n listaString.add(\"Identificador de la Facultad,Fundamento Legal,Documento Registrado,Unidad Administrativa,Nombre de la Unidad Administrativa\");\n } else if (reportePlazaDTO.getOrigen().equalsIgnoreCase(\"s\")) {\n lista = \n super.persistence().get(QueryTdPlazaDAO.class).findBypotEstadistico(qnaCaptura);\n listaString.add(\"NIVEL,G,H,HH,I,J,K,L,M,N,O,Total\");\n }\n\n if (lista != null) {\n for (CustomOutputFile row: lista) {\n listaString.add(row.getRegistro());\n }\n } else\n listaString = null;\n return listaString;\n\n }", "private String[] condicionGeneral(String condicion) {\n String retorno[] = new String[2];\n try {\n String[] simbolos = {\"<=\", \">=\", \"==\", \"!=\", \"<\", \">\"};\n String simbolo = \"0\";\n\n if (condicion.length() > 3) {\n condicion = condicion.substring(1, condicion.length());\n for (int i = 0; i < simbolos.length; i++) {//selecciona el simbolo de la condicion\n if (condicion.contains(simbolos[i])) {\n simbolo = simbolos[i];\n break;\n }\n }\n if (simbolo.equals(\"0\")) {\n retorno[0] = \"0\";\n retorno[1] = \"mala construcción de la sentencia.\";\n } else {\n String var[] = condicion.split(simbolo);\n if (var.length == 2) {\n if (esNumero(var[0])) {\n if (esNumero(var[1])) {\n retorno[0] = \"1\";\n retorno[1] = \"\";\n } else {\n if (var[1].matches(\"[a-zA-Z]*\")) { //comprueba que solo contenga letas \n byte aux = 0;\n\n for (int i = 0; i < codigo.size(); i++) {\n if (var[1].equals(codigo.get(i).toString())) {\n aux++;\n }\n }\n if (aux > 0) {\n retorno[0] = \"1\";\n retorno[1] = \"\";\n } else {\n retorno[0] = \"0\";\n retorno[1] = \"no se reconoce la variable \" + var[1] + \".\";\n }\n } else {\n retorno[0] = \"0\";\n retorno[1] = \"mala construcción de la sentencia.\";\n }\n }\n } else {\n if (var[0].matches(\"[a-zA-Z]*\")) { //comprueba que solo contenga letras \n byte aux = 0;\n for (int i = 0; i < codigo.size(); i++) {\n if (var[0].equals(codigo.get(i).toString())) {\n aux++;\n }\n }\n if (aux > 0) {\n if (esNumero(var[1])) {\n retorno[0] = \"1\";\n retorno[1] = \"\";\n } else {\n if (var[0].matches(\"[a-zA-Z]*\")) { //comprueba que solo contenga letas \n aux = 0;\n\n for (int i = 0; i < codigo.size(); i++) {\n if (var[1].equals(codigo.get(i).toString())) {\n aux++;\n }\n }\n if (aux > 0) {\n retorno[0] = \"1\";\n retorno[1] = \"\";\n } else {\n retorno[0] = \"0\";\n retorno[1] = \"no se reconoce la variable \" + var[1] + \".\";\n }\n } else {\n retorno[0] = \"0\";\n retorno[1] = \"mala construcción de la sentencia.\";\n }\n }\n } else {\n retorno[0] = \"0\";\n retorno[1] = \"no se reconoce la variable \" + var[0] + \".\";\n }\n } else {\n retorno[0] = \"0\";\n retorno[1] = \"mala construcción de la sentencia.\";\n }\n\n }\n } else {\n retorno[0] = \"0\";\n retorno[1] = \"mala construcción de la sentencia.\";\n }\n }\n } else {\n retorno[0] = \"0\";\n retorno[1] = \"mala construcción de la sentencia.\";\n }\n\n\n\n } catch (Exception e) {\n System.out.println(\"Error en condicion \" + e.getClass());\n } finally {\n return retorno;\n }\n }", "public List<Object[]> getRetencionesAnuladas(int mes, int anio, int idOrganizacion, Sucursal sucursalFP, Sucursal sucursalRetencion, PuntoDeVenta puntoVentaRetencion, String orden, TipoComprobanteSRI tipoComprobante)\r\n/* 125: */ {\r\n/* 126:175 */ StringBuilder sql = new StringBuilder();\r\n/* 127: */ \r\n/* 128:177 */ sql.append(\" SELECT a.fechaEmisionDocumento, f.fechaRegistro, f.fechaEmision, CONCAT(f.establecimiento,'-',f.puntoEmision,'-',f.numero), f.identificacionProveedor, \");\r\n/* 129: */ \r\n/* 130:179 */ sql.append(\" \\t'', f.montoIva*0, f.montoIva*0, f.montoIva*0, '', '', \");\r\n/* 131: */ \r\n/* 132:181 */ sql.append(\" \\tCONCAT(a.establecimiento,'-',a.puntoEmision,'-',a.numeroDesde), f.montoIva*0, f.montoIva*0, f.montoIva*0, f.nombreProveedor, \");\r\n/* 133: */ \r\n/* 134:183 */ sql.append(\"\\tf.montoIva*0, f.montoIva*0, '', a.autorizacion, f.fechaRegistro, f.autorizacion, '', 'ANULADO', f.idFacturaProveedorSRI,'' \");\r\n/* 135:184 */ sql.append(\" FROM AnuladoSRI a, FacturaProveedorSRI f \");\r\n/* 136:185 */ sql.append(\" WHERE a.documentoRelacionado = f.idFacturaProveedorSRI \");\r\n/* 137:186 */ sql.append(\" AND a.tipoComprobanteSRI = :tipoComprobante \");\r\n/* 138:187 */ sql.append(\" AND a.anio = :anio AND a.mes = :mes \");\r\n/* 139:188 */ sql.append(\" AND a.idOrganizacion = :idOrganizacion \");\r\n/* 140:189 */ if (sucursalFP != null) {\r\n/* 141:190 */ sql.append(\" AND f.idSucursal = :idSucursal \");\r\n/* 142: */ }\r\n/* 143:192 */ if (sucursalRetencion != null) {\r\n/* 144:193 */ sql.append(\" AND a.establecimiento = :sucursalRetencion \");\r\n/* 145: */ }\r\n/* 146:195 */ if (puntoVentaRetencion != null) {\r\n/* 147:196 */ sql.append(\" AND a.puntoEmision = :puntoVentaRetencion \");\r\n/* 148: */ }\r\n/* 149:198 */ Query query = this.em.createQuery(sql.toString());\r\n/* 150:199 */ query.setParameter(\"mes\", Integer.valueOf(mes));\r\n/* 151:200 */ query.setParameter(\"anio\", Integer.valueOf(anio));\r\n/* 152:201 */ query.setParameter(\"idOrganizacion\", Integer.valueOf(idOrganizacion));\r\n/* 153:202 */ query.setParameter(\"tipoComprobante\", tipoComprobante);\r\n/* 154:203 */ if (sucursalFP != null) {\r\n/* 155:204 */ query.setParameter(\"idSucursal\", Integer.valueOf(sucursalFP.getId()));\r\n/* 156: */ }\r\n/* 157:206 */ if (sucursalRetencion != null) {\r\n/* 158:207 */ query.setParameter(\"sucursalRetencion\", sucursalRetencion.getCodigo());\r\n/* 159: */ }\r\n/* 160:209 */ if (puntoVentaRetencion != null) {\r\n/* 161:210 */ query.setParameter(\"puntoVentaRetencion\", puntoVentaRetencion.getCodigo());\r\n/* 162: */ }\r\n/* 163:213 */ return query.getResultList();\r\n/* 164: */ }", "protected String cargarTempRojoBhcs(String url, String username,\n String password) throws Exception {\n try {\n getTempRojoBhcs();\n if(mTempRojoBhcs.size()>0){\n saveTempRojoBhcs(Constants.STATUS_SUBMITTED);\n // La URL de la solicitud POST\n final String urlRequest = url + \"/movil/trojos\";\n TempRojoBhc[] envio = mTempRojoBhcs.toArray(new TempRojoBhc[mTempRojoBhcs.size()]);\n HttpHeaders requestHeaders = new HttpHeaders();\n HttpAuthentication authHeader = new HttpBasicAuthentication(username, password);\n requestHeaders.setContentType(MediaType.APPLICATION_JSON);\n requestHeaders.setAuthorization(authHeader);\n HttpEntity<TempRojoBhc[]> requestEntity =\n new HttpEntity<TempRojoBhc[]>(envio, requestHeaders);\n RestTemplate restTemplate = new RestTemplate();\n restTemplate.getMessageConverters().add(new StringHttpMessageConverter());\n restTemplate.getMessageConverters().add(new MappingJacksonHttpMessageConverter());\n // Hace la solicitud a la red, pone la vivienda y espera un mensaje de respuesta del servidor\n ResponseEntity<String> response = restTemplate.exchange(urlRequest, HttpMethod.POST, requestEntity,\n String.class);\n // Regresa la respuesta a mostrar al usuario\n if (!response.getBody().matches(\"Datos recibidos!\")) {\n saveTempRojoBhcs(Constants.STATUS_NOT_SUBMITTED);\n }\n return response.getBody();\n }\n else{\n return \"Datos recibidos!\";\n }\n } catch (Exception e) {\n Log.e(TAG, e.getMessage(), e);\n saveTempRojoBhcs(Constants.STATUS_NOT_SUBMITTED);\n return e.getMessage();\n }\n\n }", "public void Get() { ob = ti.Get(currentrowi, \"persoana\"); ID = ti.ID; CNP = ob[0]; Nume = ob[1]; Prenume = ob[2]; }", "public void analizarRespuestasPrueba(ArrayList respuestas, Candidato candidatoactual, Prueba tipopruebaactual, Convocatoria convocatoriaactual, ArrayList rolesactuales, Resultado resultadoactual)\r\n\t{\r\n\t\t//se elimina el permiso asignado al candidato al terminar de presentar la prueba.\r\n\t\tPermiso permisocandidato = null;\r\n\t\ttry \r\n\t\t{\r\n\t\t\tConector conector = new Conector();\r\n\t\t\tconector.iniciarConexionBaseDatos();\r\n\t\t\tpermisocandidato = PermisoBD.buscarCandidato(candidatoactual.getIdcandidato(), conector);\r\n\t\t\tconector.terminarConexionBaseDatos();\r\n\t\t}\r\n\t\tcatch (Exception e)\r\n\t\t{\r\n\t\t\tJOptionPane.showMessageDialog(this,\"Error al conectar con la Base de Datos.\",\"Error\", JOptionPane.ERROR_MESSAGE,new ImageIcon(\"./images/IconosInterfaz/error.PNG\"));\r\n\t\t}\r\n\t\tif(permisocandidato != null)\r\n\t\t{\r\n\t\t\ttry \r\n\t\t\t{\r\n\t\t\t\tConector conector = new Conector();\r\n\t\t\t\tconector.iniciarConexionBaseDatos();\r\n\t\t\t\tPermisoBD.eliminar(permisocandidato.getIdpermiso(), conector);\r\n\t\t\t\tconector.terminarConexionBaseDatos();\r\n\t\t\t}\r\n\t\t\tcatch (Exception e)\r\n\t\t\t{\r\n\t\t\t\tJOptionPane.showMessageDialog(this,\"Error al conectar con la Base de Datos.\",\"Error\", JOptionPane.ERROR_MESSAGE,new ImageIcon(\"./images/IconosInterfaz/error.PNG\"));\r\n\t\t\t}\r\n\t\t}\r\n\t\t//se calcula los puntajes, luego se analizan estos puntajes para determinar las observaciones, para finalmente almacenar los resultados de la prueba candidato\r\n\t\tmotorinferencia.calcularPuntajesTodasLasEscalas(respuestas);\r\n\t\tmotorinferencia.calcularPuntajeRoles(rolesactuales);\r\n\t\tmotorinferencia.calcularPuntajeResultadoPrueba(resultadoactual, rolesactuales);\r\n\t\tmotorinferencia.determinarObservacionesResultadoPrueba();\r\n\t\tmotorinferencia.almacenarResultadoPruebaCandidato(candidatoactual, tipopruebaactual, convocatoriaactual);\r\n\t}", "public static Perro CargarPerro(int capPerro) {\n boolean condicion = false;\r\n int razaPerro, diaIngreso, mesIngreso, anioIngreso, diasDeEstadia;\r\n char generoPerro;\r\n String nombrePerro, nombreCliente, numCliente;\r\n Perro nuevoPerro;\r\n Fecha fechaIngreso;\r\n nuevoPerro = new Perro(codPerro);\r\n System.out.println(\"Ingrese el nombre del perro\");\r\n nombrePerro = TecladoIn.readLine();\r\n nuevoPerro.setNombre(nombrePerro);\r\n\r\n do {\r\n System.out.println(\"Ingrese el Genero de perro : Macho(M),Hembra (H)\");\r\n generoPerro = TecladoIn.readLineNonwhiteChar();\r\n\r\n if (ValidacionDeGenero(generoPerro)) {\r\n nuevoPerro.setGenero(generoPerro);\r\n condicion = true;\r\n } else {\r\n System.out.println(\"Ingrese un Genero Correcto: Macho('M') o Hembra ('H')\");\r\n System.out.println(\".......................................................\");\r\n condicion = false;\r\n }\r\n } while (condicion != true);\r\n\r\n condicion = false;\r\n\r\n do {\r\n MenuRaza();\r\n razaPerro = TecladoIn.readLineInt();\r\n if ((razaPerro > 0) && (razaPerro < 13)) {\r\n nuevoPerro.setRaza(TiposDeRaza(razaPerro - 1));\r\n condicion = true;\r\n } else {\r\n System.out.println(\"Ingrese una raza Correcta del 1 al 12.\");\r\n System.out.println(\".........................................\");\r\n condicion = false;\r\n }\r\n\r\n } while (condicion != true);\r\n condicion = false;\r\n\r\n do {\r\n System.out.println(\"Ingrese una fecha.\\n\"\r\n + \"Ingrese Dia: \");\r\n diaIngreso = TecladoIn.readInt();\r\n System.out.println(\"Ingrese el Mes: \");\r\n mesIngreso = TecladoIn.readLineInt();\r\n System.out.println(\"Ingrese el año: \");\r\n anioIngreso = TecladoIn.readInt();\r\n if (Validaciones.esValidoDatosFecha(diaIngreso, mesIngreso, anioIngreso)) {\r\n fechaIngreso = new Fecha(diaIngreso, mesIngreso, anioIngreso);\r\n nuevoPerro.setFechaIngreso(fechaIngreso);\r\n condicion = true;\r\n } else {\r\n System.out.println(\"Ingrese Una Fecha Correcta: Dia/Mes/Año\");\r\n System.out.println(\"...........................................\");\r\n }\r\n } while (condicion != true);\r\n condicion = false;\r\n\r\n do {\r\n System.out.println(\"Ingrese la Cantidad de estadia:\");\r\n diasDeEstadia = TecladoIn.readLineInt();\r\n if (diasDeEstadia > 0) {\r\n nuevoPerro.setCantDias(diasDeEstadia);\r\n System.out.println(\"Ingrese el Nombre y Apellido del Cliente\");\r\n nombreCliente = TecladoIn.readLine();\r\n nuevoPerro.setNombreDuenio(nombreCliente);\r\n System.out.println(\"Ingrese Numero de telefono\");\r\n numCliente = TecladoIn.readLine();\r\n nuevoPerro.setTelefonoDuenio(numCliente);\r\n codPerro++;\r\n condicion = true;\r\n\r\n } else {\r\n System.out.println(\"Ingrese una cantidad de dias mayor a 0\");\r\n System.out.println(\".........................................\");\r\n condicion = false;\r\n }\r\n\r\n } while (condicion != true);\r\n\r\n return nuevoPerro;\r\n }", "private CapitoloUscitaGestione ricercaCapitoloUscitaGestione() {\n\t\tRicercaPuntualeCapitoloUGest ricercaPuntualeCapitoloUGest = new RicercaPuntualeCapitoloUGest();\n\t\tricercaPuntualeCapitoloUGest.setAnnoEsercizio(req.getCapitoloUPrev().getAnnoCapitolo());\n\t\tricercaPuntualeCapitoloUGest.setAnnoCapitolo(req.getCapitoloUPrev().getAnnoCapitolo());\n\t\tricercaPuntualeCapitoloUGest.setNumeroCapitolo(req.getCapitoloUPrev().getNumeroCapitolo());\n\t\tricercaPuntualeCapitoloUGest.setNumeroArticolo(req.getCapitoloUPrev().getNumeroArticolo());\n\t\tricercaPuntualeCapitoloUGest.setNumeroUEB(req.getCapitoloUPrev().getNumeroUEB());\n\t\tricercaPuntualeCapitoloUGest.setStatoOperativoElementoDiBilancio(req.getCapitoloUPrev().getStatoOperativoElementoDiBilancio());\n\n\t\tRicercaPuntualeCapitoloUscitaGestione ricercaPuntualeCapitoloUscitaGestione = new RicercaPuntualeCapitoloUscitaGestione();\n\t\tricercaPuntualeCapitoloUscitaGestione.setEnte(req.getEnte());\n\t\tricercaPuntualeCapitoloUscitaGestione.setRichiedente(req.getRichiedente());\n\t\tricercaPuntualeCapitoloUscitaGestione.setRicercaPuntualeCapitoloUGest(ricercaPuntualeCapitoloUGest);\n\t\tricercaPuntualeCapitoloUscitaGestione.setDataOra(new Date());\n\t\t\t\t\t\n\t\tRicercaPuntualeCapitoloUscitaGestioneResponse ricercaPuntualeCapitoloUscitaGestioneResponse = executeExternalService(ricercaPuntualeCapitoloUscitaGestioneService,ricercaPuntualeCapitoloUscitaGestione);\n\t\treturn ricercaPuntualeCapitoloUscitaGestioneResponse.getCapitoloUscitaGestione();\n\t}", "com.rpg.framework.database.Protocol.ResponseCode getResult();", "com.rpg.framework.database.Protocol.ResponseCode getResult();", "com.rpg.framework.database.Protocol.ResponseCode getResult();", "com.rpg.framework.database.Protocol.ResponseCode getResult();", "com.rpg.framework.database.Protocol.ResponseCode getResult();", "public static List<Parte> partesTFI(BigDecimal idT, String fechaIni, String fechaFin){\n List <Parte> partes=new ArrayList<>();\n Conexion.conectar();\n String sql = \"call ppartes.partesTFI (?,?,?,?)\";\n \n try {\n CallableStatement cs = Conexion.getConexion().prepareCall(sql);\n cs.setBigDecimal(1, idT);\n cs.setString(2, fechaIni);\n cs.setString(3, fechaFin);\n cs.registerOutParameter(4, OracleTypes.CURSOR);\n cs.execute();\n \n ResultSet rs = (ResultSet) cs.getObject(4);\n while (rs.next()){\n Parte p = new Parte();\n p.setFecha(rs.getString(\"fecha\"));\n p.setKmInicial(rs.getBigDecimal(\"kmInicial\"));\n p.setKmFinal(rs.getBigDecimal(\"kmFinal\"));\n p.setGastoPeaje(rs.getBigDecimal(\"gastosPeaje\")); \n p.setGastoDietas(rs.getBigDecimal(\"gastosDietas\"));\n p.setGastoCombustible(rs.getBigDecimal(\"gastosCombustible\"));\n p.setGastoVarios(rs.getBigDecimal(\"otrosGastos\"));\n p.setIncidencias(rs.getString(\"incidencias\"));\n p.setEstado(rs.getString(\"estado\"));\n p.setValidado(rs.getString(\"validado\"));\n p.setHorasExtras(rs.getBigDecimal(\"horasExtras\"));\n p.setIdTrabajador(rs.getBigDecimal(\"TRABAJADORES_ID\"));\n p.setNotasAdministrativas(rs.getString(\"notasAdministrativas\"));\n partes.add(p);\n }\n \n rs.close();\n cs.close();\n Conexion.desconectar();\n return partes;\n } catch (SQLException ex) {\n JOptionPane.showMessageDialog(null, \"No se puede efectuar la conexión, hable con el administrador del sistema\" + ex.getMessage());\n }\n return null;\n }", "public void recargarDatos( ) {\n\t\tPAC_SHWEB_PROVEEDORES llamadaProv = null;\n\t\ttry {\n\t\t\tllamadaProv = new PAC_SHWEB_PROVEEDORES(service.plsqlDataSource.getConnection());\n\t\t} catch (SQLException e1) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te1.printStackTrace();\n\t\t}\n\t\tHashMap respuestaCom = null;\n\n\t\ttry {\n\t\t\trespuestaCom = llamadaProv.ejecutaPAC_SHWEB_PROVEEDORES__F_COMUNICADOS_EXPEDIENTE(\n\t\t\t\t\tUI.getCurrent().getSession().getAttribute(\"user\").toString(),\n\t\t\t\t\tUI.getCurrent().getSession().getAttribute(\"origen\").toString(),\n\t\t\t\t\tnew BigDecimal(UI.getCurrent().getSession().getAttribute(\"expediente\").toString())\n\t\t\t\t\t);\n\t\t\t\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\t\n\t\t\n\t\t// Mostramos el estado del expediente\n\t\tPAC_SHWEB_PROVEEDORES llamada = null;\n\t\ttry {\n\t\t\tllamada = new PAC_SHWEB_PROVEEDORES(service.plsqlDataSource.getConnection());\n\t\t} catch (SQLException e1) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te1.printStackTrace();\n\t\t}\n\t\tHashMap respuesta = null;\n\t\ttry {\n\t\t\trespuesta = llamada.ejecutaPAC_SHWEB_PROVEEDORES__F_ESTADO_EXPEDIENTE(\n\t\t\t\t\tUI.getCurrent().getSession().getAttribute(\"user\").toString(),\n\t\t\t\t\tnew BigDecimal(UI.getCurrent().getSession().getAttribute(\"expediente\").toString())\n\t\t\t\t\t);\n\t\t\t\n\t\t\tMap<String, Object> retorno = new HashMap<String, Object>(respuesta);\n\n\t\t\tUI.getCurrent().getSession().setAttribute(\"estadoExpediente\",retorno.get(\"ESTADO\").toString());\n\t\t\t\n\t\t\tprovPantallaConsultaExpedienteInicial.setCaption(\"GESTIÓN DEL EXPEDIENTE Nº \" + UI.getCurrent().getSession().getAttribute(\"expediente\")\n\t\t\t\t\t+ \" ( \" + \n\t\t\t\t\tUI.getCurrent().getSession().getAttribute(\"estadoExpediente\") + \" ) \");\n\t\t\t\n\t\t\t\n\t\t} catch (Exception e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\n\t\t}\t\n\t\t\n\t\t// Maestro comunicados\n\n\t\tWS_AMA llamadaAMA = null;\n\t\ttry {\n\t\t\tllamadaAMA = new WS_AMA(service.plsqlDataSource.getConnection());\n\t\t} catch (SQLException e1) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te1.printStackTrace();\n\t\t}\n\t\tHashMap respuestaMaestro = null;\n\t\t\n\t\t//System.out.println(\"Llamammos maestro comunicados: \" + UI.getCurrent().getSession().getAttribute(\"tipousuario\").toString().substring(1,1));;\n\t\ttry {\n\t\t\t// pPUSUARIO, pORIGEN, pTPCOMUNI, pTPUSUARIO, pESTADO)\n\t\t\t\n\t\t\trespuestaMaestro = llamadaAMA.ejecutaWS_AMA__MAESTRO_COMUNICADOS(\n\t\t\t\t\tUI.getCurrent().getSession().getAttribute(\"user\").toString(),\n\t\t\t\t\tUI.getCurrent().getSession().getAttribute(\"origen\").toString(),\n\t\t\t\t\tnull,\n\t\t\t\t\tUI.getCurrent().getSession().getAttribute(\"tipousuario\").toString().substring(1,1),\n\t\t\t\t\tUI.getCurrent().getSession().getAttribute(\"estadoExpediente\").toString()\n\t\t\t\t\t);\t\t\t\n\n\t\t\t\n\t\t\tMap<String, Object> retornoMaestro = new HashMap<String, Object>(respuestaMaestro);\n\t\t\tList<Map> valorMaestro = (List<Map>) retornoMaestro.get(\"COMUNICADOS\");\n\t\t\tUI.getCurrent().getSession().setAttribute(\"comunicadosExpediente\",valorMaestro);\n\n\t\t\t\n\t\t} catch (Exception e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t\tUI.getCurrent().getSession().setAttribute(\"comunicadosExpediente\",null);\n\t\t}\n\t\t\n\t\t// \t\n\t\t\n\t\t\n\t\t// Validamos si tenemos que mostrar el bot�n de cerrar expediente\n\t\t\n\t\t/*if ( !ValidarComunicado.EsValido(\"CA\") && !ValidarComunicado.EsValido(\"FT\") ) {\n\t\t\tprovPantallaConsultaExpedienteInicial.provDatosDetalleExpediente.btCerrarExpediente.setVisible(false);\n\t\t}\n\t\telse {\n\t\t\tprovPantallaConsultaExpedienteInicial.provDatosDetalleExpediente.btCerrarExpediente.setVisible(true);\n\n\t\t\t\n\t\t\t\n\t\t}*/\n\t\t// Mostramos botonera de cerrar expediente\n\t\t// Validamos si tenemos que mostrar el bot�n de cerrar expediente\n\t\t\n\n\t}", "@Override\n protected Integer doInBackground(String... params) {\n int _retorno = 0;\n try{\n this.so=new SoapObject(NAMESPACE, METHOD_NAME);\n this.so.addProperty(\"id_interno\", params[0]);\n this.so.addProperty(\"rutas_cargadas\", params[1]);\n this.so.addProperty(\"fecha_movil\", params[2]);\n this.so.addProperty(\"hora_movil\", params[3]);\n this.sse=new SoapSerializationEnvelope(SoapEnvelope.VER11);\n this.sse.dotNet=true;\n this.sse.setOutputSoapObject(this.so);\n this.htse=new HttpTransportSE(URL);\n this.htse.call(SOAP_ACTION, this.sse);\n this.response=(SoapPrimitive) this.sse.getResponse();\n\n /**Inicio de tratamiento de la informacion recibida**/\n if(response.toString()==null) {\n _retorno = -1;\n }else if(response.toString().isEmpty()){\n _retorno = -2;\n }else{\n String informacion[] = response.toString().split(\"\\\\n\");\n if(informacion[0].equals(\"1\")){\n if(informacion.length>1){\n for(int i=1;i<informacion.length;i++){\n this.FcnInformacion.CargarTrabajo(informacion[i],\"\\\\|\", i);\n this.onProgressUpdate(i*100/informacion.length);\n _retorno = 1;\n }\n }else{\n _retorno = 2;\n }\n }else if(informacion[0].equals(\"-1\")){\n _retorno = -3;\n }else if(informacion[0].equals(\"-2\")){\n _retorno = -4;\n }\n }\n }catch (IOException e) {\n e.printStackTrace();\n _retorno = -5;\n }catch (Exception e) {\n e.toString();\n _retorno = -6;\n }finally{\n if(this.htse != null){\n this.htse.reset();\n try {\n this.htse.getServiceConnection().disconnect();\n } catch (IOException e) {\n e.printStackTrace();\n _retorno = -7;\n }\n }\n }\n return _retorno;\n }", "private static void etapa3Urna() {\n\t\t\n\t\turna.contabilizarVotosPorCandidato(enderecoCandidatos);\n\t\t\n\t}", "public List<String> pntremuneracion(ReportePlazaDTO reportePlazaDTO) {\n List<CustomOutputFile> lista = new ArrayList<CustomOutputFile>();\n List<String> listaString = new ArrayList<String>();\n\n String qnaCaptura = reportePlazaDTO.getQnaCaptura();\n String qnaCaptura2 = \"\";\n\n if (new Integer(qnaCaptura) % 2 == 0) {\n qnaCaptura2 = String.valueOf((new Integer(qnaCaptura) - 1));\n } else {\n qnaCaptura2 = qnaCaptura;\n }\n\n lista = \n super.persistence().get(QueryTdPlazaDAO.class).findBypntRemuneracion(qnaCaptura, \n qnaCaptura2);\n listaString.add(\"Tipo de integrante del sujeto obligado,Clave o nivel del puesto,Denominación del puesto,Denominación del cargo,Área de adscripción,Nombre completo del servidor público y/o toda persona que desempeñe un empleo cargo o comisión y/o ejerzan actos de autoridad,Sexo,Remuneración mensual bruta,Remuneración mensual neta,Percepciones adicionales en efectivo,Percepciones adicionales en especie,Periodicidad,Ingresos,Sistemas de compensación,Periodicidad,Gratificaciones,Periodicidad,Primas,Periodicidad,Comisiones,Periodicidad,Dietas,Periodicidad,Bonos,Periodicidad,Estímulos,Periodicidad,Apoyos económicos,Periodicidad,Prestaciones económicas,Prestaciones en especie,Periodicidad,Otro tipo de percepción,Fec valida,Area responsable,Año,Fec actualiza,Nota\");\n\n if (lista != null) {\n for (CustomOutputFile row: lista) {\n listaString.add(row.getRegistro());\n }\n } else\n listaString = null;\n return listaString;\n\n }", "public TransmitirResponse transmitirPago(TransmitirPagoRequest tramitePagoRequest) {\r\n\t\ttry {\r\n\t\t\tSystem.out.println(\"======================\");\r\n\t\t\tSystem.out.println(\"Inicio: transmitirPago\");\r\n\r\n\t\t\t//1: Se recupera el CDA pagado\r\n\t\t\tBeanTasa tasa = new BeanTasa(); \r\n\t\t\ttasa.setCda(tramitePagoRequest.getCda());\r\n\t\t\ttasa.setMontoPago(tramitePagoRequest.getMonto());\r\n\t\t\ttasa.setFechaPago(tramitePagoRequest.getFechaPago());\r\n\r\n\t\t\t//2: Se actualiza el pago de la Tasa\r\n\t\t\tServicioTasa servicioTasa = new ServicioTasa();\r\n\t\t\tservicioTasa.pagarTasa(tasa);\r\n\r\n\t\t\t//3: Según el CDA pagado, se obtiene la orden y otros datos importantes\r\n\t\t\tBeanFormato formato = new BeanFormato();\r\n\t\t\tServicioOrden servicioOrden = new ServicioOrden();\r\n\t\t\tBeanOrden orden = servicioOrden.buscarOrdenPorCda(tasa.getCda());\r\n\t\t\torden = servicioOrden.buscarOrdenPorOrdenId(orden.getOrdenId(), formato);\r\n\t\t\tBeanTce tce = servicioOrden.buscarTcePorOrdenId(orden.getOrdenId());\r\n\t\t\tBeanMto mto = servicioOrden.buscarMtoVigentePorOrdenId(orden.getOrdenId());\r\n\t\t\tBeanFormatoEntidad formatoEntidad = servicioOrden.buscarFormatoEntidadPorFormato(formato.getFormato(), mto);\r\n\t\t\tBeanAdjunto adjunto = servicioOrden.buscarAdjuntoPorMto(mto);\r\n\t\t\tBeanUsuario usuarioSolicitante = servicioOrden.buscarUsuarioSolicitantePorMto(mto);\r\n\r\n\t\t\t// 2.1: Registrar estado traza 4: Pago Recibido\r\n\t\t\tBeanTraza traza = new BeanTraza();\r\n\t\t\ttraza.setEstadoTraza(4);\r\n\t\t\ttraza.setDe(4);\r\n\t\t\ttraza.setPara(3);\r\n\t\t\tservicioOrden.registrarTraza(tce, mto, null, null, traza);\r\n\r\n\t\t\t//5: Genera la SUCE\r\n\t\t\tServicioSuce servicioSuce = new ServicioSuce();\r\n\t\t\tBeanSuce suce = servicioSuce.generarSuce(orden);\r\n\r\n\t\t\t//6: Se genera el nuevo MTO\r\n\t\t\t//TODO generar nuevo mto, incluye registrar otra vez la orden\r\n\r\n\t\t\t//7: Se transmite la SUCE\r\n\t\t\tservicioSuce.transmitirSuceHaciaEntidad(formato, orden, suce, formatoEntidad, adjunto, usuarioSolicitante.getRuc());\r\n\r\n\t\t\t// 2.1: Registrar estado traza 5: Suce generada\r\n\t\t\ttraza = new BeanTraza();\r\n\t\t\ttraza.setEstadoTraza(5);\r\n\t\t\ttraza.setDe(3);\r\n\t\t\ttraza.setPara(2);\r\n\t\t\tservicioOrden.registrarTraza(tce, mto, null, null, traza);\r\n\r\n\t\t\t//8: Transmitir SUCE a Usuario\r\n\t\t\t//TODO Transmitir SUCE a Usuario\r\n\r\n\t\t\tSystem.out.println(\"Fin\");\r\n\t\t\tSystem.out.println(\"======================\");\r\n\r\n\t\t\tTransmitirResponse res = new TransmitirResponse();\r\n\t\t\tres.setCodigo(suce.getSuce()+\"\");\r\n\t\t\tres.setTexto(\"Exito\");\r\n\t\t\treturn res;\r\n\t\t} catch (Exception e) {\r\n\t\t\te.printStackTrace();\r\n\r\n\t\t\tTransmitirResponse res = new TransmitirResponse();\r\n\t\t\tres.setCodigo(\"ERR\");\r\n\t\t\tres.setTexto(\"Error\");\r\n\t\t\treturn res;\r\n\t\t}\r\n\t}", "private void SubirFotoUsuario(byte[] bDatos, String nombre)\n {\n // Si no hay datos, salimos\n if (bDatos == null)\treturn ;\n\n // Establecemos los parametros\n RequestParams params = new RequestParams();\n params.put(\"archivo\", new ByteArrayInputStream(bDatos), \"imagen.jpg\");\n params.put(\"directorio\", \"Usuarios\");\n params.put(\"nombre\", nombre);\n\n // Realizamos la petición\n cliente.post(getActivity(), Helpers.URLApi(\"subirimagen\"), params, new AsyncHttpResponseHandler() {\n @Override\n public void onSuccess(int statusCode, Header[] headers, byte[] responseBody) {\n // Obtenemos el objeto JSON\n JSONObject objeto = Helpers.ResponseBodyToJSON(responseBody);\n\n // Si está OK\n if (objeto.isNull(\"Error\"))\n {\n // Si tenemos el Google Play Services\n if (GCMRegistrar.checkPlayServices(getActivity()))\n // Registramos el ID del Google Cloud Messaging\n GCMRegistrar.registrarGCM(getActivity());\n\n // Abrimos la ventana de los ofertas\n Helpers.LoadFragment(getActivity(), new Ofertas(), \"Ofertas\");\n }\n else\n {\n try {\n // Mostramos la ventana de error\n Helpers.MostrarError(getActivity(), objeto.getString(\"Error\"));\n }\n catch (Exception ex) { }\n }\n }\n\n @Override\n public void onFailure(int statusCode, Header[] headers, byte[] responseBody, Throwable error) {\n // Mostramos la ventana de error\n Helpers.MostrarError(getActivity(), getString(R.string.failuploadphoto));\n }\n });\n }", "public VOUsuario obtenerdatosUsuario(String[] val, String[] tipo) throws RemoteException {\n VOUsuario usu = null;\n if(tipo.length==val.length)\n try {\n FileReader fr = new FileReader(datos);\n BufferedReader entrada = new BufferedReader(fr);\n String s;\n String texto[]=new String[11];\n\n int n, l=0;\n int campo[]=new int[tipo.length];\n boolean encontrado=false;\n for(int i=0; i<tipo.length; i++) {\n if(tipo[i].compareTo(\"id\")==0) campo[i]=0;\n if(tipo[i].compareTo(\"nombre\")==0) campo[i]=4;\n if(tipo[i].compareTo(\"apellido\")==0) campo[i]=5;\n if(tipo[i].compareTo(\"nomuser\")==0) campo[i]=1;\n if(tipo[i].compareTo(\"email\")==0) campo[i]=7;\n if(tipo[i].compareTo(\"rut\")==0) campo[i]=6;\n if(tipo[i].compareTo(\"pass\")==0) campo[i]=3;\n }\n while((s = entrada.readLine()) != null && !encontrado) {\n texto=s.split(\" \");\n int j=0;\n boolean seguir=true;\n while(j<campo.length && seguir) {\n if(texto[campo[j]].toLowerCase().compareTo(val[j].toLowerCase())!=0) {\n seguir=false;\n j++;\n } else {\n j++;\n }\n }\n if(seguir) {\n encontrado=true;\n }\n l++;\n }\n if(encontrado) {\n int area[] = new int[texto[10].split(\"-\").length];\n String ar[]=texto[10].split(\"-\");\n for(int i=0; i<area.length; i++) {\n area[i]=Integer.parseInt(ar[i]);\n }\n usu=new VOUsuario(\n texto[0],\n texto[1],\n this.quitaGuiones(texto[2]),\n texto[3],\n this.quitaGuiones(texto[4]),\n this.quitaGuiones(texto[5]),\n this.quitaGuiones(texto[6]),\n this.quitaGuiones(texto[7]),\n this.quitaGuiones(texto[8]),\n this.quitaGuiones(texto[9]),\n area);\n entrada.close();\n }\n } catch (FileNotFoundException e) {\n System.err.println(\"FileStreamsTest: \" + e);\n } catch (IOException e) {\n System.err.println(\"FileStreamsTest: \" + e);\n }\n return usu;\n }", "private static void benvenuto() {\n\t\tUtilityIO.header(MSG_BENVENUTO, SIMBOLO_MESSAGGIO_BENV_USCITA);\n\t\tSystem.out.println();\n\t\t\n\t}", "public static String montaPalavra(byte[] letras) {\n\n\t\t// 1º defino charset\n\t\tCharset iso88591charset = Charset.forName(\"ISO-8859-1\");\n\t\t// 2º montagem da palavra\n\t\tString palavra = new String(letras, iso88591charset);\n\n\t\treturn palavra;// retorna palavra montada\n\n\t}", "private AtualizarContaPreFaturadaHelper parserRegistroTipo3(String linha) {\r\n\t\tAtualizarContaPreFaturadaHelper retorno = new AtualizarContaPreFaturadaHelper();\r\n\r\n\t\tInteger index = 0;\r\n\r\n\t\t// Tipo de registro\r\n\t\tretorno.tipoRegistro = linha.substring(index, index + REGISTRO_TIPO);\r\n\t\tindex += REGISTRO_TIPO;\r\n\r\n\t\t// Matricula do imovel\r\n\t\tretorno.matriculaImovel = linha.substring(index, index\r\n\t\t\t\t+ MATRICULA_IMOVEL);\r\n\t\tindex += MATRICULA_IMOVEL;\r\n\r\n\t\t// Codigo da Categoria\r\n\t\tretorno.codigoCategoria = linha.substring(index, index\r\n\t\t\t\t+ REGISTRO_TIPO_3_CODIGO_CATEGORIA);\r\n\t\tindex += REGISTRO_TIPO_3_CODIGO_CATEGORIA;\r\n\r\n\t\t// Codigo da Subcategoria\r\n\t\tretorno.codigoSubCategoria = linha.substring(index, index\r\n\t\t\t\t+ REGISTRO_TIPO_3_CODIGO_SUBCATEGORIA);\r\n\t\tindex += REGISTRO_TIPO_3_CODIGO_SUBCATEGORIA;\r\n\r\n\t\t// Consumo faturado de agua\r\n\t\tretorno.consumoFaturadoAguaFaixa = linha.substring(index, index\r\n\t\t\t\t+ REGISTRO_TIPO_3_CONSUMO_FATURADO_AGUA_FAIXA);\r\n\t\tindex += REGISTRO_TIPO_3_CONSUMO_FATURADO_AGUA_FAIXA;\r\n\r\n\t\t// Valor tarifa minima de agua\r\n\t\tretorno.valorFaturadoAguaFaixa = linha.substring(index, index\r\n\t\t\t\t+ REGISTRO_TIPO_3_VALOR_FATURADO_AGUA_FAIXA);\r\n\t\tindex += REGISTRO_TIPO_3_VALOR_FATURADO_AGUA_FAIXA;\r\n\r\n\t\t// Limite Inicial do Consumo na Faixa\r\n\t\tretorno.limiteInicialConsumoFaixa = linha.substring(index, index\r\n\t\t\t\t+ REGISTRO_TIPO_3_LIMITE_INICIAL_CONSUMO_FAIXA);\r\n\t\tindex += REGISTRO_TIPO_3_LIMITE_INICIAL_CONSUMO_FAIXA;\r\n\r\n\t\t// Limite Final do consumo na Faixa\r\n\t\tretorno.limiteFinalConsumoFaixa = linha.substring(index, index\r\n\t\t\t\t+ REGISTRO_TIPO_3_LIMITE_FINAL_CONSUMO_FAIXA);\r\n\t\tindex += REGISTRO_TIPO_3_LIMITE_FINAL_CONSUMO_FAIXA;\r\n\r\n\t\t// Valor da Tarifa Agua na Faixa\r\n\t\tretorno.valorTarifaAguaFaixa = linha.substring(index, index\r\n\t\t\t\t+ REGISTRO_TIPO_3_VALOR_TARIFA_AGUA_FAIXA);\r\n\t\tindex += REGISTRO_TIPO_3_VALOR_TARIFA_AGUA_FAIXA;\r\n\r\n\t\t// Valor da Tarifa Esgoto na Faixa\r\n\t\tretorno.valorTarifaEsgotoFaixa = linha.substring(index, index\r\n\t\t\t\t+ REGISTRO_TIPO_3_VALOR_TARIFA_ESGOTO_FAIXA);\r\n\t\tindex += REGISTRO_TIPO_3_VALOR_TARIFA_ESGOTO_FAIXA;\r\n\r\n\t\t// Consumo faturado de esgoto\r\n\t\tretorno.consumoFaturadoEsgotoFaixa = linha.substring(index, index\r\n\t\t\t\t+ REGISTRO_TIPO_3_CONSUMO_FATURADO_ESGOTO_FAIXA);\r\n\t\tindex += REGISTRO_TIPO_3_CONSUMO_FATURADO_ESGOTO_FAIXA;\r\n\r\n\t\t// Valor tarifa minima de agua\r\n\t\tretorno.valorFaturadoEsgotoFaixa = linha.substring(index, index\r\n\t\t\t\t+ REGISTRO_TIPO_3_VALOR_FATURADO_ESGOTO_FAIXA);\r\n\t\tindex += REGISTRO_TIPO_3_VALOR_FATURADO_ESGOTO_FAIXA;\r\n\r\n\t\treturn retorno;\r\n\t}", "@Override\r\n protected Codigos doInBackground(Void... voids) {\n try {\r\n\r\n FormBody.Builder formBuilder = new FormBody.Builder()\r\n .add(\"usuarioId\", usuarioId)\r\n .add(\"ubicaciones\", jsonLocalizador);\r\n\r\n RequestBody formBody = formBuilder.build();\r\n Request request = new Request.Builder()\r\n .url(RestUrl.REST_ACTION_GUARDAR_UBICACION)\r\n .post(formBody)\r\n .build();\r\n\r\n Response response = client.newCall(request).execute();\r\n respuesta = response.body().string();\r\n Gson gson = new Gson();\r\n String jsonInString = respuesta;\r\n return codigo = gson.fromJson(jsonInString, Codigos.class);\r\n\r\n }catch (Exception e){\r\n e.printStackTrace();\r\n if(e.getMessage().contains(\"Failed to connect to\")){\r\n codigo = new Codigos();\r\n codigo.setCodigo(1);\r\n return codigo;\r\n }else{\r\n codigo = new Codigos();\r\n codigo.setCodigo(404);\r\n return codigo;\r\n }\r\n }\r\n }", "private static void grabarYllerPaciente() {\r\n\t\tPaciente paciente = new Paciente(\"Juan\", \"Garcia\", \"65\", \"casa\", \"2\", \"1998\");\r\n\t\tPaciente pacienteDos = new Paciente(\"MArta\", \"Garcia\", \"65\", \"casa\", \"3\", \"1998\");\r\n\t\tPaciente pacienteTres = new Paciente(\"MAria\", \"Garcia\", \"65\", \"casa\", \"4\", \"1998\");\r\n\t\tString ruta = paciente.getIdUnico();\r\n\t\tString rutaDos = pacienteDos.getIdUnico();\r\n\t\tString rutaTres = pacienteTres.getIdUnico();\r\n\t\tDTO<Paciente> dtoPacienteDos = new DTO<>(\"src/Almacen/\" + rutaDos + \".dat\");\r\n\t\tDTO<Paciente> dtoPaciente = new DTO<>(\"src/Almacen/\" + ruta + \".dat\");\r\n\t\tDTO<Paciente> dtoPacienteTres = new DTO<>(\"src/Almacen/\" + rutaTres + \".dat\");\r\n\t\tif (dtoPaciente.grabar(paciente) == true) {\r\n\r\n\t\t\tSystem.out.println(paciente.getNombre() + \" grabado\");\r\n\t\t}\r\n\t\t;\r\n\t\tif (dtoPacienteDos.grabar(pacienteDos) == true) {\r\n\r\n\t\t\tSystem.out.println(pacienteDos.getNombre() + \" grabado\");\r\n\t\t}\r\n\t\t;\r\n\t\tif (dtoPacienteTres.grabar(pacienteTres) == true) {\r\n\t\t\tSystem.out.println(pacienteTres.getNombre() + \" grabado\");\r\n\t\t}\r\n\t\t;\r\n\t\tPaciente pacienteLeer = dtoPaciente.leer();\r\n\t\tSystem.out.println(pacienteLeer);\r\n\t\tSystem.out.println(pacienteLeer.getNombre());\r\n\t}", "public void enviarValoresCabecera(){\n }", "protected String cargarEnfermedadCronica(String url, String username,\n String password) throws Exception {\n try {\n if(mEnfermedades.size()>0){\n // La URL de la solicitud POST\n final String urlRequest = url + \"/movil/enfermedadescro\";\n EnfermedadCronica[] envio = mEnfermedades.toArray(new EnfermedadCronica[mEnfermedades.size()]);\n HttpHeaders requestHeaders = new HttpHeaders();\n HttpAuthentication authHeader = new HttpBasicAuthentication(username, password);\n requestHeaders.setContentType(MediaType.APPLICATION_JSON);\n requestHeaders.setAuthorization(authHeader);\n HttpEntity<EnfermedadCronica[]> requestEntity =\n new HttpEntity<EnfermedadCronica[]>(envio, requestHeaders);\n RestTemplate restTemplate = new RestTemplate();\n restTemplate.getMessageConverters().add(new StringHttpMessageConverter());\n restTemplate.getMessageConverters().add(new MappingJacksonHttpMessageConverter());\n // Hace la solicitud a la red, pone la vivienda y espera un mensaje de respuesta del servidor\n ResponseEntity<String> response = restTemplate.exchange(urlRequest, HttpMethod.POST, requestEntity,\n String.class);\n return response.getBody();\n }\n else{\n return \"Datos recibidos!\";\n }\n } catch (Exception e) {\n Log.e(TAG, e.getMessage(), e);\n return e.getMessage();\n }\n }", "private static void getInfos(String ligne) throws IOException {\n String[] info = ligne.split(\" \");\n nbVideo = Integer.parseInt(info[0]);\n nbEndpoint = Integer.parseInt(info[1]);\n nbDescri = Integer.parseInt(info[2]);\n nbCache = Integer.parseInt(info[3]);\n tailleCache = Integer.parseInt(info[4]);\n }", "public String getPuntoEmision()\r\n/* 124: */ {\r\n/* 125:207 */ return this.puntoEmision;\r\n/* 126: */ }", "private void getTiempo() {\n\t\ttry {\n\t\t\tStringBuilder url = new StringBuilder(URL_TIME);\n\t\t\tHttpGet get = new HttpGet(url.toString());\n\t\t\tHttpResponse r = client.execute(get);\n\t\t\tint status = r.getStatusLine().getStatusCode();\n\t\t\tif (status == 200) {\n\t\t\t\tHttpEntity e = r.getEntity();\n\t\t\t\tInputStream webs = e.getContent();\n\t\t\t\ttry {\n\t\t\t\t\tBufferedReader reader = new BufferedReader(\n\t\t\t\t\t\t\tnew InputStreamReader(webs, \"iso-8859-1\"), 8);\n\t\t\t\t\tStringBuilder sb = new StringBuilder();\n\t\t\t\t\tString line = null;\n\t\t\t\t\twhile ((line = reader.readLine()) != null) {\n\t\t\t\t\t\tsb.append(line + \"\\n\");\n\t\t\t\t\t}\n\t\t\t\t\twebs.close();\n\t\t\t\t\tSuperTiempo = sb.toString();\n\t\t\t\t} catch (Exception e1) {\n\t\t\t\t\tLog.e(\"log_tag\",\n\t\t\t\t\t\t\t\"Error convirtiendo el resultado\" + e1.toString());\n\t\t\t\t}\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "private List<String[]> trovaPazienti(Long idMedico) {\r\n\r\n\t\t\tLog.i(\"trovaPazienti\", \"fase iniziale\");\r\n\r\n\t\t\tSoapObject request = new SoapObject(getString(R.string.NAMESPACE),\r\n\t\t\t\t\t\"trovaPazienti\");\r\n\t\t\trequest.addProperty(\"idMedico\", idMedico);\r\n\r\n\t\t\tSoapSerializationEnvelope envelope = new SoapSerializationEnvelope(\r\n\t\t\t\t\tSoapEnvelope.VER10);\r\n\t\t\tenvelope.setAddAdornments(false);\r\n\t\t\tenvelope.implicitTypes = true;\r\n\t\t\tenvelope.setOutputSoapObject(request);\r\n\r\n\t\t\tHttpTransportSE androidHttpTransport = new HttpTransportSE(\r\n\t\t\t\t\tgetString(R.string.URL));\r\n\r\n\t\t\tandroidHttpTransport.debug = true;\r\n\r\n\t\t\tList<String[]> pazienti = new ArrayList<String[]>();\r\n\r\n\t\t\ttry {\r\n\t\t\t\tString soapAction = \"\\\"\" + getString(R.string.NAMESPACE)\r\n\t\t\t\t\t\t+ \"trovaPazienti\" + \"\\\"\";\r\n\t\t\t\tandroidHttpTransport.call(soapAction, envelope);\r\n\r\n\t\t\t\tLog.i(\"trovaPazienti\", \"inviata richiesta\");\r\n\r\n\t\t\t\tSoapPrimitive response = (SoapPrimitive) envelope.getResponse();\r\n\r\n\t\t\t\tLog.i(\"trovaPazienti\", \"ricevuta risposta\");\r\n\r\n\t\t\t\tString responseData = response.toString();\r\n\r\n\t\t\t\tJSONObject obj = new JSONObject(responseData);\r\n\r\n\t\t\t\tLog.i(\"response\", obj.toString());\r\n\r\n\t\t\t\tJSONArray arr = obj.getJSONArray(\"mieiPazienti\");\r\n\r\n\t\t\t\tfor (int i = 0; i < arr.length(); i++) {\r\n\t\t\t\t\tString[] paziente = new String[2];\r\n\t\t\t\t\tJSONObject objPaz = new JSONObject(arr.getString(i));\r\n\t\t\t\t\tpaziente[0] = objPaz.get(\"idPaziente\").toString();\r\n\t\t\t\t\tpaziente[1] = objPaz.get(\"nome\").toString() + \" \"\r\n\t\t\t\t\t\t\t+ objPaz.get(\"cognome\").toString();\r\n\t\t\t\t\tpazienti.add(paziente);\r\n\t\t\t\t}\r\n\r\n\t\t\t} catch (Exception e) {\r\n\t\t\t\tLog.e(\"WS Error->\", e.toString());\r\n\t\t\t}\r\n\t\t\treturn pazienti;\r\n\t\t}", "@Override\n\tpublic DatosEnc obtenerDatos(DatosEnc datos) {\n\t\tConnection con = null;\n\t\tCallableStatement stmt = null;\n//\t\tPreparedStatement ps = null;\n\t\tResultSet rs = null;\n\t\ttry{\n//\t\t\tcon = new ConectarDB().getConnection();\n//\t\t\tString query = \"select * from pv_cotizaciones_det where no_cotizacion = ?\";\n//\t\t\tps = con.prepareStatement(query);\n//\t\t\tps.setString(1, datos.getNoDocumento());\n//\t\t\trs = ps.executeQuery();\n//\t\t\texiste=0;\n//\t\t\twhile(rs.next()){\n//\t\t\t\tif(rs.getString(\"no_cotizacion\") == null){\n//\t\t\t\t\texiste=0;\n//\t\t\t\t}else if(rs.getString(\"no_cotizacion\").equals(datos.getNoDocumento())){\n//\t\t\t\t\texiste=1;\n//\t\t\t\t}\n//\t\t\t}\n//\t\t\tcon.close();\n//\t\t\tps.close();\n//\t\t\trs.close();\n//\t\t\tif(existe==0){\n\t\t\t\tcon = new ConectarDB().getConnection();\n\t\t\t\tstmt = con.prepareCall(\"{call stp_UDPV_InUp_Mov_Enc(?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?)}\");\n\t\t\t\tstmt.setString(1, datos.getCodigoCliente());\n\t\t\t\tstmt.setString(2, datos.getNit());\n\t\t\t\tstmt.setString(3, datos.getNombreCliente());\n\t\t\t\tstmt.setString(4, datos.getDirecFactura());\n\t\t\t\tstmt.setString(5, datos.getTel());\n\t\t\t\tstmt.setString(6, datos.getTarjeta());\n\t\t\t\tstmt.setString(7, datos.getDirecEnvio());\n\t\t\t\tstmt.setString(8, datos.getCodigoVendedor());\n\t\t\t\tstmt.setString(9, datos.getUsername());\n\t\t\t\tstmt.setString(10, datos.getTipoDocumento());\n\t\t\t\tstmt.setString(11, datos.getNoDocumento());\n\t\t\t\tstmt.setString(12, datos.getFechaVence());\n\t\t\t\tstmt.setString(13, datos.getTipoPago());\n\t\t\t\tstmt.setString(14, datos.getTipoCredito());\n\t\t\t\tstmt.setString(15, datos.getAutoriza());\n\t\t\t\tstmt.setString(16, datos.getFechaDocumento());\n\t\t\t\tstmt.setString(17, datos.getCargosEnvio());\n\t\t\t\tstmt.setString(18, datos.getOtrosCargos());\n\t\t\t\tstmt.setString(19, datos.getMontoVenta());\n\t\t\t\tstmt.setString(20, datos.getMontoTotal());\n\t\t\t\tstmt.setString(21, datos.getSerieDev());\n\t\t\t\tstmt.setString(22, datos.getNoDocDev());\n\t\t\t\tstmt.setString(23, datos.getObservaciones());\n\t\t\t\tstmt.setString(24, datos.getTipoNota());\n\t\t\t\tstmt.setString(25, datos.getCaja());\n\t\t\t\tstmt.setString(26, datos.getFechaEntrega());\n\t\t\t\tstmt.setString(27, datos.getCodigoDept());\n\t\t\t\tstmt.setString(28, datos.getCodGen());\n\t\t\t\tstmt.setString(29, datos.getNoConsigna());\n\t\t\t\tstmt.setString(30, datos.getCodMovDev());\n\t\t\t\tstmt.setString(31, datos.getGeneraSolicitud());\n\t\t\t\tstmt.setString(32, datos.getTipoPagoNC());\n\t\t\t\tstmt.setString(33, datos.getTipoCliente());\n\t\t\t\tstmt.setString(34, datos.getCodigoNegocio());\n\t\t\t\tstmt.setString(35, datos.getCantidadDevolver());\n\t\t\t\tstmt.setString(36, datos.getAutorizoDespacho());\n\t\t\t\tstmt.setString(37, datos.getSaldo());\n\t\t\t\trs = stmt.executeQuery();\n\t\t\t\t\n\t\t\t\twhile(rs.next()){\n\t\t\t\t\tif(rs.getString(1)!=null){\n\t\t\t\t\t\tdatos.setSerieEnc(rs.getString(1));\n\t\t\t\t\t}else{\n\t\t\t\t\t\tdatos.setSerieEnc(\"NA\");\n\t\t\t\t\t}\n\t\t\t\t\tdatos.setNoEnc(rs.getString(2));\n//\t\t\t\t\tif(rs.getString(1)!=null){\n//\t\t\t\t\t\tdatos.setSerieEnc(rs.getString(1));\n//\t\t\t\t\t}else{\n//\t\t\t\t\t\tdatos.setSerieEnc(\"NA\");\n//\t\t\t\t\t}\n//\t\t\t\t\tdatos.setNoEnc(rs.getString(2));\n//\t\t\t\t\tdocumento = rs.getInt(2);\n\t\t\t\t}\n\t\t\t\tcon.close();\n\t\t\t\tstmt.close();\n\t\t\t\trs.close();\n//\t\t\t}\n\t\t\t\n\t\t\t\n//\t\t\tcon = new ConectarDB().getConnection();\n//\t\t\tstmt = con.prepareCall(\"{call stp_UDPV_Del_Mov_Det(?,?,?)}\");\n//\t\t\tstmt.setInt(1, Integer.parseInt(datos.getTipoDocumento()));\n//\t\t\tstmt.setString(2, \"\");\n//\t\t\tstmt.setInt(3, documento);\n//\t\t\trs = stmt.executeQuery();\n//\t\t\t\n//\t\t\twhile(rs.next()){\n//\t\t\t\tSystem.out.println(rs.getString(\"limpiado\"));\n//\t\t\t}\n//\t\t\tcon.close();\n//\t\t\tstmt.close();\n//\t\t\trs.close();\n\t\t\t\n//\t\t\tcon = new ConectarDB().getConnection();\n//\t\t\tstmt = con.prepareCall(\"{call stp_udpv_VerificaCotiza(?,?)}\");\n//\t\t\tstmt.setString(1, \"\");\n//\t\t\tstmt.setInt(2, documento);\n//\t\t\trs = stmt.executeQuery();\n//\t\t\t\n//\t\t\twhile(rs.next()){\n//\t\t\t\tSystem.out.println(rs.getString(\"error\"));\n//\t\t\t}\n//\t\t\tcon.close();\n//\t\t\tstmt.close();\n//\t\t\trs.close();\n\t\t\t\n\t\t}catch(SQLException e ){\n\t\t\tSystem.out.println(\"Error Enc: \" + e.getMessage());\n\t\t}\n\t\treturn datos;\n\t}", "private static Object doMpesa(Request req, Response res){\n System.out.println(\"Here is the confirmation: \" + req.body());\n\n Mpesa received = new Gson().fromJson(req.body(),Mpesa.class);\n System.out.println();\n System.out.println();\n System.out.println();\n System.out.println();\n System.out.println(\"Payment Status: \"+ received.getStatus());\n publisher send_0k = new publisher();\n send_0k.setContent(received.getStatus());\n send_0k.publish();\n return received;\n }", "private void grabarIndividuoPCO(final ProyectoCarreraOferta proyectoCarreraOferta) {\r\n /**\r\n * PERIODO ACADEMICO ONTOLOGÍA\r\n */\r\n OfertaAcademica ofertaAcademica = ofertaAcademicaService.find(proyectoCarreraOferta.getOfertaAcademicaId());\r\n PeriodoAcademico periodoAcademico = ofertaAcademica.getPeriodoAcademicoId();\r\n PeriodoAcademicoOntDTO periodoAcademicoOntDTO = new PeriodoAcademicoOntDTO(periodoAcademico.getId(), \"S/N\",\r\n cabeceraController.getUtilService().formatoFecha(periodoAcademico.getFechaInicio(), \"yyyy-MM-dd\"),\r\n cabeceraController.getUtilService().formatoFecha(periodoAcademico.getFechaFin(), \"yyyy-MM-dd\"));\r\n cabeceraController.getOntologyService().getPeriodoAcademicoOntService().read(cabeceraController.getCabeceraWebSemantica());\r\n cabeceraController.getOntologyService().getPeriodoAcademicoOntService().write(periodoAcademicoOntDTO);\r\n /**\r\n * OFERTA ACADEMICA ONTOLOGÍA\r\n */\r\n OfertaAcademicaOntDTO ofertaAcademicaOntDTO = new OfertaAcademicaOntDTO(ofertaAcademica.getId(), ofertaAcademica.getNombre(),\r\n cabeceraController.getUtilService().formatoFecha(ofertaAcademica.getFechaInicio(),\r\n \"yyyy-MM-dd\"), cabeceraController.getUtilService().formatoFecha(ofertaAcademica.getFechaFin(), \"yyyy-MM-dd\"),\r\n periodoAcademicoOntDTO);\r\n cabeceraController.getOntologyService().getOfertaAcademicoOntService().read(cabeceraController.getCabeceraWebSemantica());\r\n cabeceraController.getOntologyService().getOfertaAcademicoOntService().write(ofertaAcademicaOntDTO);\r\n\r\n /**\r\n * NIVEL ACADEMICO ONTOLOGIA\r\n */\r\n Carrera carrera = carreraService.find(proyectoCarreraOferta.getCarreraId());\r\n Nivel nivel = carrera.getNivelId();\r\n NivelAcademicoOntDTO nivelAcademicoOntDTO = new NivelAcademicoOntDTO(nivel.getId(), nivel.getNombre(),\r\n cabeceraController.getValueFromProperties(PropertiesFileEnum.URI, \"nivel_academico\"));\r\n cabeceraController.getOntologyService().getNivelAcademicoOntService().read(cabeceraController.getCabeceraWebSemantica());\r\n cabeceraController.getOntologyService().getNivelAcademicoOntService().write(nivelAcademicoOntDTO);\r\n /**\r\n * AREA ACADEMICA ONTOLOGIA\r\n */\r\n AreaAcademicaOntDTO areaAcademicaOntDTO = new AreaAcademicaOntDTO(carrera.getAreaId().getId(), \"UNIVERSIDAD NACIONAL DE LOJA\",\r\n carrera.getAreaId().getNombre(), carrera.getAreaId().getSigla(),\r\n cabeceraController.getValueFromProperties(PropertiesFileEnum.URI, \"area_academica\"));\r\n cabeceraController.getOntologyService().getAreaAcademicaOntService().read(cabeceraController.getCabeceraWebSemantica());\r\n cabeceraController.getOntologyService().getAreaAcademicaOntService().write(areaAcademicaOntDTO);\r\n /**\r\n * CARRERA ONTOLOGÍA\r\n */\r\n CarreraOntDTO carreraOntDTO = new CarreraOntDTO(carrera.getId(), carrera.getNombre(), carrera.getSigla(), nivelAcademicoOntDTO,\r\n areaAcademicaOntDTO);\r\n cabeceraController.getOntologyService().getCarreraOntService().read(cabeceraController.getCabeceraWebSemantica());\r\n cabeceraController.getOntologyService().getCarreraOntService().write(carreraOntDTO);\r\n /**\r\n * PROYECTO CARRERA OFERTA ONTOLOGY\r\n */\r\n \r\n ProyectoCarreraOfertaOntDTO proyectoCarreraOfertaOntDTO = new ProyectoCarreraOfertaOntDTO(proyectoCarreraOferta.getId(),\r\n ofertaAcademicaOntDTO, sessionProyecto.getProyectoOntDTO(), carreraOntDTO);\r\n cabeceraController.getOntologyService().getProyectoCarreraOfertaOntService().read(cabeceraController.getCabeceraWebSemantica());\r\n cabeceraController.getOntologyService().getProyectoCarreraOfertaOntService().write(proyectoCarreraOfertaOntDTO);\r\n }", "public List<Object[]> getRetencionSRI(int mes, int anio, int idOrganizacion, Sucursal sucursalFP, Sucursal sucursalRetencion, PuntoDeVenta puntoVentaRetencion, String orden)\r\n/* 59: */ {\r\n/* 60:107 */ StringBuilder sql = new StringBuilder();\r\n/* 61: */ \r\n/* 62:109 */ sql.append(\" SELECT f.fechaEmisionRetencion, f.fechaRegistro, f.fechaEmision, \");\r\n/* 63:110 */ sql.append(\" CONCAT(f.establecimiento,'-',f.puntoEmision,'-',f.numero), \");\r\n/* 64:111 */ sql.append(\" f.identificacionProveedor, c.descripcion, \");\r\n/* 65:112 */ sql.append(\" coalesce(CASE WHEN c.tipoConceptoRetencion = :tipoConceptoFUENTE THEN (SUM(COALESCE(dfp.baseImponibleRetencion, 0)+COALESCE(dfp.baseImponibleTarifaCero, 0) \");\r\n/* 66:113 */ sql.append(\" \\t+COALESCE(dfp.baseImponibleDiferenteCero, 0)+COALESCE(dfp.baseImponibleNoObjetoIva, 0))) ELSE COALESCE(dfp.baseImponibleRetencion, 0) END,0), \");\r\n/* 67:114 */ sql.append(\" coalesce(dfp.porcentajeRetencion, 0), coalesce(dfp.valorRetencion, 0), coalesce(c.codigo, 'NA'), \");\r\n/* 68:115 */ sql.append(\" coalesce(CASE WHEN c.tipoConceptoRetencion = :tipoConceptoIVA THEN 'IVA' WHEN c.tipoConceptoRetencion = :tipoConceptoFUENTE THEN 'FUENTE' WHEN c.tipoConceptoRetencion = :tipoConceptoISD THEN 'ISD' ELSE '' END,'NA'), \");\r\n/* 69:116 */ sql.append(\" CONCAT(f.establecimientoRetencion,'-',f.puntoEmisionRetencion,'-',f.numeroRetencion), \");\r\n/* 70:117 */ sql.append(\" f.baseImponibleTarifaCero, f.baseImponibleDiferenteCero, f.baseImponibleNoObjetoIva, f.nombreProveedor, f.montoIva, \");\r\n/* 71:118 */ sql.append(\" f.montoIce, ct.codigo, f.autorizacionRetencion, f.fechaRegistro, f.autorizacion, f.claveAcceso, f.estado,f.idFacturaProveedorSRI, fp.descripcion \");\r\n/* 72:119 */ sql.append(\" FROM DetalleFacturaProveedorSRI dfp \");\r\n/* 73:120 */ sql.append(\" RIGHT OUTER JOIN dfp.conceptoRetencionSRI c \");\r\n/* 74:121 */ sql.append(\" RIGHT OUTER JOIN dfp.facturaProveedorSRI f \");\r\n/* 75:122 */ sql.append(\" LEFT OUTER JOIN f.facturaProveedor fp \");\r\n/* 76:123 */ sql.append(\" LEFT JOIN f.creditoTributarioSRI ct \");\r\n/* 77:124 */ sql.append(\" WHERE MONTH(f.fechaRegistro) =:mes AND f.documentoModificado IS NULL \");\r\n/* 78:125 */ sql.append(\" AND YEAR(f.fechaRegistro) =:anio \");\r\n/* 79:126 */ sql.append(\" AND f.estado!=:estadoAnulado \");\r\n/* 80:127 */ sql.append(\" AND f.indicadorSaldoInicial!=true \");\r\n/* 81:128 */ sql.append(\" AND f.idOrganizacion = :idOrganizacion \");\r\n/* 82:129 */ if (sucursalFP != null) {\r\n/* 83:130 */ sql.append(\" AND f.idSucursal = :idSucursal \");\r\n/* 84: */ }\r\n/* 85:132 */ if (sucursalRetencion != null) {\r\n/* 86:133 */ sql.append(\" AND f.establecimientoRetencion = :sucursalRetencion \");\r\n/* 87: */ }\r\n/* 88:135 */ if (puntoVentaRetencion != null) {\r\n/* 89:136 */ sql.append(\" AND f.puntoEmisionRetencion = :puntoVentaRetencion \");\r\n/* 90: */ }\r\n/* 91:138 */ sql.append(\" GROUP BY f.idFacturaProveedorSRI, c.codigo, f.numero, f.puntoEmision, \");\r\n/* 92:139 */ sql.append(\" f.establecimiento, f.identificacionProveedor, \");\r\n/* 93:140 */ sql.append(\" c.descripcion, dfp.baseImponibleRetencion, dfp.porcentajeRetencion, dfp.valorRetencion, f.fechaEmisionRetencion, f.fechaRegistro, f.fechaEmision, f.numeroRetencion, \");\r\n/* 94:141 */ sql.append(\" f.baseImponibleTarifaCero, f.baseImponibleDiferenteCero, f.baseImponibleNoObjetoIva, f.nombreProveedor, f.montoIva, \");\r\n/* 95:142 */ sql.append(\" f.montoIce, ct.codigo, f.autorizacionRetencion, f.fechaRegistro, c.tipoConceptoRetencion, f.autorizacion, f.claveAcceso, f.estado, \");\r\n/* 96:143 */ sql.append(\" f.establecimientoRetencion, f.puntoEmisionRetencion, f.numeroRetencion, fp.descripcion \");\r\n/* 97:144 */ if ((orden != null) && (orden.equals(\"POR_RETENCION\"))) {\r\n/* 98:145 */ sql.append(\" ORDER BY f.establecimientoRetencion, f.puntoEmisionRetencion, f.numeroRetencion \");\r\n/* 99:146 */ } else if ((orden != null) && (orden.equals(\"POR_FACTURA\"))) {\r\n/* 100:147 */ sql.append(\" ORDER BY f.establecimiento, f.puntoEmision, f.numero \");\r\n/* 101:148 */ } else if ((orden != null) && (orden.equals(\"POR_CONCEPTO\"))) {\r\n/* 102:149 */ sql.append(\" ORDER BY c.descripcion \");\r\n/* 103: */ }\r\n/* 104:151 */ Query query = this.em.createQuery(sql.toString());\r\n/* 105:152 */ query.setParameter(\"mes\", Integer.valueOf(mes));\r\n/* 106:153 */ query.setParameter(\"anio\", Integer.valueOf(anio));\r\n/* 107:154 */ query.setParameter(\"estadoAnulado\", Estado.ANULADO);\r\n/* 108:155 */ query.setParameter(\"idOrganizacion\", Integer.valueOf(idOrganizacion));\r\n/* 109:156 */ query.setParameter(\"tipoConceptoIVA\", TipoConceptoRetencion.IVA);\r\n/* 110:157 */ query.setParameter(\"tipoConceptoFUENTE\", TipoConceptoRetencion.FUENTE);\r\n/* 111:158 */ query.setParameter(\"tipoConceptoISD\", TipoConceptoRetencion.ISD);\r\n/* 112:159 */ if (sucursalFP != null) {\r\n/* 113:160 */ query.setParameter(\"idSucursal\", Integer.valueOf(sucursalFP.getId()));\r\n/* 114: */ }\r\n/* 115:162 */ if (sucursalRetencion != null) {\r\n/* 116:163 */ query.setParameter(\"sucursalRetencion\", sucursalRetencion.getCodigo());\r\n/* 117: */ }\r\n/* 118:165 */ if (puntoVentaRetencion != null) {\r\n/* 119:166 */ query.setParameter(\"puntoVentaRetencion\", puntoVentaRetencion.getCodigo());\r\n/* 120: */ }\r\n/* 121:169 */ return query.getResultList();\r\n/* 122: */ }", "private void limpiarDatos() {\n\t\t\n\t}", "public int Tipo() {\r\n File archivo = null;\r\n FileReader fr = null;\r\n BufferedReader br = null;\r\n \r\n try {\r\n String linea;\r\n for (a=0;a<5;a++){\r\n if (a==0){\r\n tipo=\"Embarazadas\";\r\n }\r\n if (a==1){\r\n tipo=\"Regulares\";\r\n }\r\n if (a==2){\r\n tipo=\"Discapacitados\";\r\n }\r\n if (a==3){\r\n tipo=\"Mayores\";\r\n }\r\n if (a==4){\r\n tipo=\"Corporativos\";\r\n }\r\n archivo = new File (System.getProperty(\"user.dir\")+\"/Clientes/\"+tipo+\".txt\");\r\n fr = new FileReader (archivo);\r\n br = new BufferedReader(fr);\r\n while((linea=br.readLine())!=null){\r\n if (leerTipo == contador){\r\n errorTipo =String.valueOf(String.valueOf(leerTipo).length());\r\n if (a==0){\r\n resultadoembarazadas+=1;\r\n }\r\n if (a==1){\r\n resultadoregulares+=1;\r\n }\r\n if (a==2){\r\n resultadodiscapacitados+=1;\r\n }\r\n if (a==3){\r\n resultadomayores+=1;\r\n }\r\n if (a==4){\r\n resultadocorporativos+=1;\r\n }\r\n contador +=1;\r\n leerTipo +=6;\r\n\r\n }\r\n else{\r\n contador += 1;\r\n }\r\n }\r\n }\r\n\r\n }\r\n catch(Exception e){\r\n e.printStackTrace();\r\n }finally{\r\n // En el finally cerramos el fichero, para asegurarnos\r\n // que se cierra tanto si todo va bien como si salta \r\n // una excepcion.\r\n try{ \r\n if( null != fr ){ \r\n fr.close(); \r\n } \r\n }catch (Exception e2){ \r\n e2.printStackTrace();\r\n }\r\n }\r\n //return resultado;\r\n return 0;\r\n }", "protected String cargarVacunas(String url, String username,\n String password) throws Exception {\n try {\n getVacunas();\n if(mVacunas.size()>0){\n saveVacunas(Constants.STATUS_SUBMITTED);\n // La URL de la solicitud POST\n final String urlRequest = url + \"/movil/vacunas\";\n Vacuna[] envio = mVacunas.toArray(new Vacuna[mVacunas.size()]);\n HttpHeaders requestHeaders = new HttpHeaders();\n HttpAuthentication authHeader = new HttpBasicAuthentication(username, password);\n requestHeaders.setContentType(MediaType.APPLICATION_JSON);\n requestHeaders.setAuthorization(authHeader);\n HttpEntity<Vacuna[]> requestEntity =\n new HttpEntity<Vacuna[]>(envio, requestHeaders);\n RestTemplate restTemplate = new RestTemplate();\n restTemplate.getMessageConverters().add(new StringHttpMessageConverter());\n restTemplate.getMessageConverters().add(new MappingJacksonHttpMessageConverter());\n // Hace la solicitud a la red, pone la vivienda y espera un mensaje de respuesta del servidor\n ResponseEntity<String> response = restTemplate.exchange(urlRequest, HttpMethod.POST, requestEntity,\n String.class);\n // Regresa la respuesta a mostrar al usuario\n if (!response.getBody().matches(\"Datos recibidos!\")) {\n saveVacunas(Constants.STATUS_NOT_SUBMITTED);\n }\n return response.getBody();\n }\n else{\n return \"Datos recibidos!\";\n }\n } catch (Exception e) {\n Log.e(TAG, e.getMessage(), e);\n saveVacunas(Constants.STATUS_NOT_SUBMITTED);\n return e.getMessage();\n }\n\n }", "private void verificar_comando(String comando, InterfazRemota interfaz, int puerto) {\n\tString cmd[] = comando.split(\"[\\\\s]+\");\n\tString aux[];\n\tString servidor;\n\tString archivo;\n\n\tif (cmd[0].equalsIgnoreCase(\"C\") && cmd.length == 3){\n\t if (cmd[1].equalsIgnoreCase(\"-t\") || cmd[1].equalsIgnoreCase(\"-k\")){\n\t\ttry {\n\t\t SalidaDFS salida = interfaz.dfs_distribuido(cmd[1] + \" \" + cmd[2], new Vector<String>());\n\t\t if ((salida.resultado).equals(\"\")){\n\t\t\tSystem.out.println(\"No hubo resultados \\n\");\n\t\t }\n\t\t else {\n\t\t\tSystem.out.println(salida.resultado);\n\t\t }\n\t\t \n\t\t}\n\t\tcatch (java.rmi.RemoteException r) {\n\t\t System.err.println(\"No se pudo establecer conexion con el servidor\");\n\t\t}\n\t\tfinally {\n\t\t return;\n\t\t}\n\t }\n\t /* Comando invalido */\n\t else System.out.println(\"Codigo Invalido\");\n\t}\n\t/* Solicitar una foto */\n\telse if (cmd[0].equalsIgnoreCase(\"D\") && cmd.length == 2 && cmd[1].matches(\"[\\\\S]+[:][\\\\S]+jpg\")){\n\t aux = cmd[1].split(\":\");\n\t servidor = aux[0];\n\t archivo = aux[1];\n\t try {\n\t\tInterfazRemota transferencia = null;\n\t\t\n\t\ttry {\n\t\t transferencia = (InterfazRemota)java.rmi.Naming.lookup(\"//\" + servidor + \":\" + puerto + \"/fotop2p\");\n\t\t}\n\t\tcatch (NotBoundException e) {\n\t\t System.err.println(\"No existe el servicio solicitado en \" + servidor + \":\" + puerto);\n\t\t System.exit(-1);\n\t\t}\n\t\tcatch (MalformedURLException m) {\n\t\t System.err.println(\"No se pudo establecer conexion con el servidor: URL incorrecta\");\n\t\t System.exit(-1);\n\t\t}\n\t\tcatch (java.rmi.RemoteException r) {\n\t\t System.err.println(\"No se pudo establecer conexion con el servidor\");\n\t\t System.exit(-1);\n\t\t}\n\n\t\tbyte [] foto = transferencia.archivo_a_bytes(archivo);\n\t\t\n\t\tif (foto == null) {\n\t\t System.out.println(\"Foto no encontrada o error al abrirla en el servidor\");\n\t\t}\n\t\telse {\n\t\t FileOutputStream fos = new FileOutputStream(\"./\" + archivo);\n\t\t BufferedOutputStream bos = new BufferedOutputStream(fos);\n\t\t bos.write(foto,0,foto.length);\n\t\t System.out.println(\"Foto recibida exitosamente \\n\");\n\n\t\t}\n\t }\n\t catch (java.rmi.RemoteException r) {\n\t\tSystem.err.println(\"No se pudo establecer conexion con el servidor\");\n\t }\n\t catch(IOException i) {\n\t\tSystem.err.println(\"Error al escribir el archivo\");\n\t }\n\t finally {\n\t\treturn;\n\t }\n\t}\n\t/* obterner numero de alcanzables */\n\telse if (cmd[0].equalsIgnoreCase(\"A\") && cmd.length == 1){\n\t try {\n\t\tVector<String> alc = interfaz.alcanzables(new Vector<String>());\n\t\tSystem.out.println(\"Alcanzables: \" + alc.size());\n\t }\n\t catch (java.rmi.RemoteException r) {\n\t\tSystem.out.println(\"No se pudo establecer conexion con el servidor\");\n\t\t\n\t\tSystem.out.println(r.getMessage());\n\t\tr.printStackTrace();\n\t }\n\t finally {\n\t\treturn;\n\t }\n\t}\n\t/* Salir */\n\telse if (cmd[0].equalsIgnoreCase(\"Q\") && cmd.length == 1 ){\n\t System.out.println(\"Chao\");\n\t System.exit(0);\n\t}\n \telse {\n\t System.out.println(\"Comando Invalido\");\n\t return;\n\t}\n }", "public void validaSeleciona_Base_SinistroPendente_Faixa(String ano, HttpServletResponse response) {\n\n\t\tVisaoExecutiva_Diaria_DAO dao = new VisaoExecutiva_Diaria_DAO();\n\t\tList<SinistroPendente_base_FaixaVO> lista = dao.seleciona_Base_SinistroPendente_Faixa(ano);\n\t\ttry {\n\t\t\t// Write the header line\n\t\t\tOutputStream out = response.getOutputStream();\n\t\t\tString header = \"LEGADO;ANOMES_REF;ORG;MOVIMENTO;RAMO;PROD;DIA;SINISTRO;APOLICE;COMUNICADO;OCORRENCIA;FAVORECIDO;VL_LIDER;VL_COSSEGURO;VL_RESSEGURO;VL_TOTAL;COD_OPERACAO;OPERACAO;FTE_PREM;FTE_AVIS;AVISO;SEGURADO;CAUSA;GRUPO_CAUSA;GRUPO;TIPO;FAIXA_DE_VALOR;DATA_AVISO;HOJE;TEMPO_PENDENTE;FAIXA_TEMPO_PENDENTE\\n\";\n\t\t\tout.write(header.getBytes());\n\t\t\t// Write the content\n\t\t\tfor (int i = 0; i < lista.size(); i++) {\n\n\t\t\t\tString line = new String(lista.get(i).getLEGADO() + \";\" + lista.get(i).getANOMES_REF() + \";\"\n\t\t\t\t\t\t+ lista.get(i).getORG() + \";\" + lista.get(i).getMOVIMENTO() + \";\" + lista.get(i).getRAMO() + \";\"\n\t\t\t\t\t\t+ lista.get(i).getPROD() + \";\" + lista.get(i).getDIA() + \";\" + lista.get(i).getSINISTRO() + \";\"\n\t\t\t\t\t\t+ lista.get(i).getAPOLICE() + \";\" + lista.get(i).getCOMUNICADO() + \";\"\n\t\t\t\t\t\t+ lista.get(i).getOCORRENCIA() + \";\" + lista.get(i).getFAVORECIDO() + \";\"\n\t\t\t\t\t\t+ lista.get(i).getVL_LIDER() + \";\" + lista.get(i).getVL_COSSEGURO() + \";\"\n\t\t\t\t\t\t+ lista.get(i).getVL_RESSEGURO() + \";\" + lista.get(i).getVL_TOTAL() + \";\"\n\t\t\t\t\t\t+ lista.get(i).getCOD_OPERACAO() + \";\" + lista.get(i).getOPERACAO() + \";\"\n\t\t\t\t\t\t+ lista.get(i).getFTE_PREM() + \";\" + lista.get(i).getFTE_AVIS() + \";\" + lista.get(i).getAVISO()\n\t\t\t\t\t\t+ \";\" + lista.get(i).getSEGURADO() + \";\" + lista.get(i).getCAUSA() + \";\"\n\t\t\t\t\t\t+ lista.get(i).getGRUPO_CAUSA() + \";\" + lista.get(i).getGRUPO() + \";\" + lista.get(i).getTIPO()\n\t\t\t\t\t\t+ \";\" + lista.get(i).getFAIXA_DE_VALOR() + \";\" + lista.get(i).getData_aviso() + \";\"\n\t\t\t\t\t\t+ lista.get(i).getHoje() + \";\" + lista.get(i).getTEMPO_PENDENTE() + \";\"\n\t\t\t\t\t\t+ lista.get(i).getFAIXA_TEMPO_PENDENTE() + \";\\n\");\n\t\t\t\tout.write(line.toString().getBytes());\n\n\t\t\t}\n\t\t\tout.flush();\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\n\t}", "public static void partida(String vpalabra[],String verror[],String vacierto[],String palabra){\r\n //comienzo ahorcado\r\n System.out.println(\"******************* AHORCADO *******************\");\r\n String letra;\r\n \r\n int contador=7;\r\n //bucle\r\n while ((contador>0)&&(ganarPartida(vacierto,vpalabra)==false)){\r\n //for (int i=0;i<verror.length;i++){\r\n //muestra el dibujo para que sepa por donde va \r\n mostrarDibujo(contador);\r\n System.out.println(\"VIDAS: \"+ contador);\r\n //mostrar vector acierto\r\n mostrarAcierto(palabra, vacierto);\r\n \r\n \r\n //pregunta letra al jugador \r\n System.out.println(\"\");\r\n System.out.println(\"\");\r\n System.out.println(\"Escribe una única letra: \");\r\n letra=leer.next();\r\n \r\n //muestra vector verror las letras erroneas que vas introduciendo\r\n muestraError(verror);\r\n System.out.println(\"\");\r\n System.out.println(\"\"); \r\n //comprueba si letra esta en la matriz palabra para acertar o fallar\r\n if (buscarLetra(vpalabra, vacierto, verror, letra)==false){\r\n //recorro verror guardando letra erronea\r\n \r\n // verror[i]=letra;\r\n contador--;\r\n } \r\n \r\n //}\r\n }\r\n \r\n if (ganarPartida(vacierto,vpalabra)==true){\r\n System.out.println(\"La palabra es: \");\r\n mostrarPalabra(palabra, vpalabra);\r\n \r\n System.out.println(\" \");\r\n System.out.println(\"¡HAS GANADO!\");\r\n } else{\r\n System.out.println(\" _ _ _ \");\r\n System.out.println(\" |/ | \");\r\n System.out.println(\" | 0 \");\r\n System.out.println(\" | /ºº/ \");\r\n System.out.println(\" | | \");\r\n System.out.println(\" | / / \");\r\n System.out.println(\" | \");\r\n System.out.println(\"---------------\");\r\n System.out.println(\"---------------\");\r\n System.out.println(\" HAS PERDIDO \");\r\n }\r\n }", "Object obtenerPolizasPorFolioSolicitudNoCancelada(int folioSolicitud,String formatoSolicitud);", "private int[] enquadramentoInsercaoDeBytes(int[] quadro) throws Exception {\n System.out.println(\"\\n\\t[Insercao de Bytes]\");\n Painel.CAMADAS_RECEPTORAS.camadaEnlace(\"\\n\\t[Insercao de Bytes]\");\n Thread.sleep(velocidade);\n\n final char byteFlagStart = 'S';//Identificar o INICIO do quadro (Start)\n final char byteFlagEnd = 'E';//Identificar o FIM do quadro (End)\n final char byteDeEscape = '/';//Caractere de escape especial\n\n Painel.CAMADAS_RECEPTORAS.camadaEnlace(\"\\n\\tByte de Inicio de Quadro [\"+byteFlagStart+\"]\");\n Painel.CAMADAS_RECEPTORAS.camadaEnlace(\"\\n\\tByte de Fim de Quadro [\"+byteFlagEnd+\"]\");\n Painel.CAMADAS_RECEPTORAS.camadaEnlace(\"\\n\\tByte de Escape de Quadro [\"+byteDeEscape+\"]\\n\");\n Thread.sleep(velocidade);\n\n\n String auxiliar = \"\";\n Boolean SE = true;\n\n for (int inteiro : quadro) {\n\n int quantidadeByte = ManipuladorDeBit.quantidadeDeBytes(inteiro);\n inteiro = ManipuladorDeBit.deslocarBits(inteiro);\n\n int inteiroByte = ManipuladorDeBit.getPrimeiroByte(inteiro);\n\n Painel.CAMADAS_RECEPTORAS.camadaEnlace(\"\\n\\tIC [\"+(char) inteiroByte+\"] \");\n Thread.sleep(velocidade);\n\n if (inteiroByte == (int) byteFlagStart) {//Inicio do Quadro\n SE = !SE;//Iniciar a Busca pelo Byte de Fim de Quadro\n inteiro <<= 8;//Deslocando 8 bits para a esquerda\n quantidadeByte--;\n }\n\n if (!SE) {\n\n for (int i=1; i<=quantidadeByte; i++) {\n int dado = ManipuladorDeBit.getPrimeiroByte(inteiro);\n\n if (dado == (int) byteDeEscape) {//Verificando se o dado eh um Byte de Escape\n inteiro <<= 8;//Deslocando 8 bits para a esquerda\n Painel.CAMADAS_RECEPTORAS.camadaEnlace(\"IC [\"+(char) dado+\"] \");\n Thread.sleep(velocidade);\n dado = ManipuladorDeBit.getPrimeiroByte(inteiro);//Adicionando o Byte\n auxiliar += (char) dado;\n Painel.CAMADAS_RECEPTORAS.camadaEnlace(\"Carga Util [\"+dado+\"] \");\n Thread.sleep(velocidade);\n inteiro <<= 8;//Deslocando 8 bits para a esquerda\n i++;\n\n } else if (dado == (int) byteFlagEnd) {//Verificando se o dado eh um Byte End\n SE = !SE;//Encontrou o Byte de Fim de Quadro\n Painel.CAMADAS_RECEPTORAS.camadaEnlace(\"IC [\"+(char) dado+\"]\\n\");\n Thread.sleep(velocidade);\n } else {//Caso for um Byte de Carga Util\n auxiliar += (char) ManipuladorDeBit.getPrimeiroByte(inteiro);\n inteiro <<= 8;//Deslocando 8 bits para a esquerda\n Painel.CAMADAS_RECEPTORAS.camadaEnlace(\"Carga Util [\"+dado+\"] \");\n Thread.sleep(velocidade);\n }\n \n }\n\n }\n }\n\n //Novo Quadro de Carga Util\n int[] quadroDesenquadrado = new int[auxiliar.length()];\n //Adicionando as informacoes de Carga Util no QuadroDesenquadrado\n for (int i=0; i<auxiliar.length(); i++) {\n quadroDesenquadrado[i] = (int) auxiliar.charAt(i);\n ManipuladorDeBit.imprimirBits(quadroDesenquadrado[i]);\n }\n\n return quadroDesenquadrado;\n }", "List<TabelaIRRFLegadoDTO> consultarPorAnoBase(Integer anoBase) throws BancoobException;", "protected String cargarPyTs(String url, String username,\n String password) throws Exception {\n try {\n getPTs();\n if(mPyTs.size()>0){\n // La URL de la solicitud POST\n saveEncPyTs(Constants.STATUS_SUBMITTED);\n final String urlRequest = url + \"/movil/pts\";\n PesoyTalla[] envio = mPyTs.toArray(new PesoyTalla[mPyTs.size()]);\n HttpHeaders requestHeaders = new HttpHeaders();\n HttpAuthentication authHeader = new HttpBasicAuthentication(username, password);\n requestHeaders.setContentType(MediaType.APPLICATION_JSON);\n requestHeaders.setAuthorization(authHeader);\n HttpEntity<PesoyTalla[]> requestEntity =\n new HttpEntity<PesoyTalla[]>(envio, requestHeaders);\n RestTemplate restTemplate = new RestTemplate();\n restTemplate.getMessageConverters().add(new StringHttpMessageConverter());\n restTemplate.getMessageConverters().add(new MappingJacksonHttpMessageConverter());\n // Hace la solicitud a la red, pone la vivienda y espera un mensaje de respuesta del servidor\n ResponseEntity<String> response = restTemplate.exchange(urlRequest, HttpMethod.POST, requestEntity,\n String.class);\n // Regresa la respuesta a mostrar al usuario\n if (!response.getBody().matches(\"Datos recibidos!\")) {\n saveEncPyTs(Constants.STATUS_NOT_SUBMITTED);\n }\n return response.getBody();\n }\n else{\n return \"Datos recibidos!\";\n }\n } catch (Exception e) {\n Log.e(TAG, e.getMessage(), e);\n saveEncPyTs(Constants.STATUS_NOT_SUBMITTED);\n return e.getMessage();\n }\n\n }", "String getDataNascimento();", "private LecturasSensor sacarLecturas(byte[] bufferResp2) {\n\t// Le quito el signo a los bytes.\n\tfor (int j = 0; j < bufferrespint.length; j++) {\n\n\t bufferrespint[j] = bufferResp2[j] & 0xFF;\n\n\t}\n\n\tint medicion = ((bufferrespint[4] * 65536) + (bufferrespint[3] * 256))\n\t\t+ bufferrespint[2];\n\n\tif (logger.isInfoEnabled()) {\n\t logger.info(\"Comando_Anemometro: \" + bufferrespint[0]);\n\t logger.info(\"Borna: \" + bufferrespint[1]);\n\t logger.info(\"Parametro1: \" + bufferrespint[2]);\n\t logger.info(\"PArametro2: \" + bufferrespint[3]);\n\t logger.info(\"Parametro3: \" + bufferrespint[4]);\n\t logger.info(\"Checksum: \" + bufferrespint[5]);\n\t}\n\n\tlectura.setVelocidadAnemometro((((((sens.getRang_med_max() - sens\n\t\t.getRang_med_min()) / (sens.getRang_sal_max() - sens\n\t\t.getRang_sal_min())) * (medicion - sens.getRang_sal_min())) + sens\n\t\t.getRang_med_min()) / ((System.nanoTime() - tiempoini) / Math\n\t\t.pow(10, 9))));\n\n\t// Le pongo sólo tres decimales\n\tlectura.setVelocidadAnemometro(Math.rint(lectura\n\t\t.getVelocidadAnemometro() * 1000) / 1000);\n\n\tlogger.warn(\"Valor del Anemometro: \" + lectura.getVelocidadAnemometro());\n\t// Meto las lecturas al sensor\n\tsens.setPulsos(medicion);\n\tsens.setLectura(lectura.getVelocidadAnemometro());\n\n\treturn lectura;\n }", "public void procesarRespuestaServidor(RutinaG rutina) {\n\n bdHelperRutinas = new BdHelperRutinas(context, BD_Rutinas);\n bdHelperRutinas.openBd();\n ContentValues registro = prepararRegistroRutina(rutina);\n bdHelperRutinas.insertTabla(DataBaseManagerRutinas.TABLE_NAME, registro);\n bdHelperRutinas.closeBd();\n }", "public static int BuscarPerrox(Perro BaseDeDatosPerros[], String razas[], int codPerro) {\n int cont = 0;\r\n boolean condicion = false;\r\n char generoPerro, generoPerr, generPerro = 'd';\r\n String razaPerr, tipoRaza;\r\n do {\r\n System.out.println(\"Ingrese el Genero de perro : Macho(M),Hembra (H)\");\r\n generoPerro = TecladoIn.readLineNonwhiteChar();\r\n\r\n if (ValidacionDeGenero(generoPerro)) {\r\n generPerro = generoPerro;\r\n condicion = true;\r\n } else {\r\n System.out.println(\".......................................................\");\r\n System.out.println(\"Ingrese un Genero Correcto: Macho('M') o Hembra ('H')\");\r\n System.out.println(\".......................................................\");\r\n condicion = false;\r\n }\r\n } while (condicion != true);\r\n \r\n tipoRaza=IngresarRazaCorrecta();\r\n \r\n for (int i = 0; i < codPerro; i++) {\r\n razaPerr = BaseDeDatosPerros[i].getRaza();\r\n generoPerr = BaseDeDatosPerros[i].getGenero();\r\n\r\n if (tipoRaza.equals(razaPerr) && (generPerro == generoPerr)) {\r\n cont++;\r\n }\r\n\r\n }\r\n\r\n \r\n\r\n return cont;}", "protected String cargarObsequios(String url, String username,\n String password) throws Exception {\n try {\n getObsequios();\n if(mObsequios.size()>0){\n saveObsequios(Constants.STATUS_SUBMITTED);\n // La URL de la solicitud POST\n final String urlRequest = url + \"/movil/obsequios\";\n Obsequio[] envio = mObsequios.toArray(new Obsequio[mObsequios.size()]);\n HttpHeaders requestHeaders = new HttpHeaders();\n HttpAuthentication authHeader = new HttpBasicAuthentication(username, password);\n requestHeaders.setContentType(MediaType.APPLICATION_JSON);\n requestHeaders.setAuthorization(authHeader);\n HttpEntity<Obsequio[]> requestEntity =\n new HttpEntity<Obsequio[]>(envio, requestHeaders);\n RestTemplate restTemplate = new RestTemplate();\n restTemplate.getMessageConverters().add(new StringHttpMessageConverter());\n restTemplate.getMessageConverters().add(new MappingJacksonHttpMessageConverter());\n // Hace la solicitud a la red, pone la vivienda y espera un mensaje de respuesta del servidor\n ResponseEntity<String> response = restTemplate.exchange(urlRequest, HttpMethod.POST, requestEntity,\n String.class);\n // Regresa la respuesta a mostrar al usuario\n if (!response.getBody().matches(\"Datos recibidos!\")) {\n saveObsequios(Constants.STATUS_NOT_SUBMITTED);\n }\n return response.getBody();\n }\n else{\n return \"Datos recibidos!\";\n }\n } catch (Exception e) {\n Log.e(TAG, e.getMessage(), e);\n saveObsequios(Constants.STATUS_NOT_SUBMITTED);\n return e.getMessage();\n }\n\n }", "public EnemigoGenerico[] cargaBichos()\n {\n \n //Crear la bicheria (hardCoded)\n CoordCasilla[] origen={new CoordCasilla(1,1), new CoordCasilla(18,1), new CoordCasilla(14,8), new CoordCasilla(17,17), new CoordCasilla(13,5)};\n CoordCasilla[] destino={new CoordCasilla(6,18) , new CoordCasilla(1,1), new CoordCasilla(1,8), new CoordCasilla(18,1) , new CoordCasilla(13,18) };\n \n \n DefBicho pelota=this.atlasBicheria.get(\"Pelota Maligna\");\n EnemigoGenerico bichos[]=new EnemigoGenerico[origen.length];\n \n for(int x=0;x<origen.length;x++)\n {\n List<CoordCasilla> camino = this.getCamino(origen[x], destino[x]);\n Gdx.app.log(\"CAMINO:\", \"DESDE (\"+origen[x].x+\",\"+origen[x].y+\") HASTA ( \"+destino[x].x+\",\"+destino[x].y+\")\");\n for (CoordCasilla cc : camino)\n Gdx.app.log(\"CASILLA.\", String.format(\"(%2d ,%2d )\", cc.x, cc.y));\n \n \n bichos[x] = new EnemigoGenerico(pelota, this.mapaAnimaciones.get(pelota.archivoAnim), pelota.pv, pelota.tasaRegen, pelota.velocidad, camino, pelota.distanciaPercepcion, pelota.ataques);\n }\n \n return bichos;\n }", "private void trappingResponse(ComputingResponse resp, long sourceIF, long destIF){\n\n\t\tlog.info(\"First ERO SubObject type \"+resp.getResponseList().get(0).getPath(0).geteRO().getEROSubobjectList().getFirst().getClass());\n\t\tlog.info(\"Second ERO SubObject type \"+resp.getResponseList().get(0).getPath(0).geteRO().getEROSubobjectList().get(1).getClass());\n\t\tlog.info(\"Last ERO SubObject type \"+resp.getResponseList().get(0).getPath(0).geteRO().getEROSubobjectList().getLast().getClass());\n\t\tInet4Address firstIP=((UnnumberIfIDEROSubobject)resp.getResponseList().get(0).getPath(0).geteRO().getEROSubobjectList().getFirst()).getRouterID();\n\n\t\tEROSubobject label= resp.getResponseList().get(0).getPath(0).geteRO().getEROSubobjectList().get(1);\n\t\tresp.getResponseList().get(0).getPath(0).geteRO().getEROSubobjectList().add(0, label);\n\n\t\tUnnumberIfIDEROSubobject firsteroso= new UnnumberIfIDEROSubobject();\n\t\tfirsteroso.setRouterID(firstIP);\n\t\tfirsteroso.setInterfaceID(sourceIF);\n\t\tfirsteroso.setLoosehop(false);\n\t\tresp.getResponseList().get(0).getPath(0).geteRO().getEROSubobjectList().add(0, firsteroso);\n\n\n\t\tint size=resp.getResponseList().get(0).getPath(0).geteRO().getEROSubobjectList().size();\n\t\tInet4Address lastIP=((IPv4prefixEROSubobject)resp.getResponseList().get(0).getPath(0).geteRO().getEROSubobjectList().getLast()).getIpv4address();\n\t\tresp.getResponseList().get(0).getPath(0).geteRO().getEROSubobjectList().removeLast();\n\t\tUnnumberIfIDEROSubobject lasteroso= new UnnumberIfIDEROSubobject();\n\t\tlasteroso.setRouterID(lastIP);\n\t\tlasteroso.setInterfaceID(destIF);\n\t\tlasteroso.setLoosehop(false);\n\t\tresp.getResponseList().get(0).getPath(0).geteRO().getEROSubobjectList().add(lasteroso);\n\t\tresp.getResponseList().get(0).getPath(0).geteRO().getEROSubobjectList().add(label);\n\t}" ]
[ "0.66282934", "0.6094331", "0.58559364", "0.58358693", "0.5828858", "0.58238345", "0.5809304", "0.57952386", "0.57848597", "0.57773924", "0.57408667", "0.5728685", "0.5703679", "0.5676441", "0.56506914", "0.5632", "0.5628807", "0.5622586", "0.5621943", "0.5616944", "0.5614062", "0.55543107", "0.55539906", "0.55441725", "0.5516094", "0.5502865", "0.54929537", "0.5492376", "0.5487542", "0.5487402", "0.5476425", "0.5475305", "0.5464536", "0.5461595", "0.5458325", "0.5456899", "0.54554456", "0.5435262", "0.54199004", "0.5411871", "0.540113", "0.5399199", "0.5393806", "0.5353895", "0.53501093", "0.5345892", "0.5328011", "0.53248566", "0.53181356", "0.5317087", "0.53080577", "0.52883136", "0.5288083", "0.52771366", "0.5274016", "0.52614135", "0.5258473", "0.52583027", "0.52583027", "0.5257639", "0.5257639", "0.5251947", "0.52482593", "0.5245776", "0.5239198", "0.52384484", "0.5233514", "0.5233324", "0.5222897", "0.5222532", "0.5219013", "0.52162385", "0.5215455", "0.52152973", "0.521229", "0.5210796", "0.52104515", "0.5205761", "0.5203589", "0.52016366", "0.5198875", "0.5194217", "0.5193258", "0.51919246", "0.51913154", "0.5190404", "0.51902425", "0.51900417", "0.51878417", "0.51834565", "0.5178778", "0.5177635", "0.517377", "0.51728094", "0.5169897", "0.516905", "0.51659846", "0.51642203", "0.5153966", "0.51491934", "0.5148866" ]
0.0
-1
heuristica de hora de atencion heuristica de prioridad urgencia distancia
private Punto getPuntoPriorizado(Punto puntoini, List<Punto> puntos ){ Punto puntopriorizado = null; // calculamos la heuristica de distancias a los demas puntos for (Punto punto : puntos) { if( (puntoini!=null && punto!=null) && !puntoini.equals(punto) ){ double d = Geometria.distanciaDeCoordenadas(puntoini, punto); punto.getDatos().put("distanci", d); } } // ordenamos por las heuristicas definidad en la clase comparator // hora atencion, prioridad, urgencia, distancia Collections.sort(puntos, new PuntoHeuristicaComparator1()); System.out.println("### mostrando las heuristicas #####"); mostratPuntosHeuristica(puntos); if( puntos!=null && puntos.size()>0){ puntopriorizado = puntos.get(0); } /*Punto pa = null ; for (Punto p : puntos) { if(pa!=null){ String key = p.getDatos().toString(); String keya = pa.getDatos().toString(); if(!key.equals(keya)){ puntopriorizado = p; break; } } pa = p ; }*/ return puntopriorizado; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void hora()\n {\n horaTotal = HoraSalida - HoraLlegada;\n\n }", "public String getHora() {\n Calendar calendario = new GregorianCalendar();\n SimpleDateFormat sdf = new SimpleDateFormat(\"HH:mm:ss\");\n return sdf.format(calendario.getTime());\n }", "@RequiresApi(api = Build.VERSION_CODES.O)\n public String obtenerHora(){\n this.hora = java.time.LocalDateTime.now().toString().substring(11,13);\n return this.hora;\n }", "public int getHora(){\n return minutosStamina;\n }", "public void calcularCost() {\r\n cost = 0;\r\n int a = 0;\r\n try {\r\n String r = DataR.toString()+ \" \" + horaR;\r\n String d = DataD.toString()+ \" \" + horaD;\r\n SimpleDateFormat simpleDateFormat = new SimpleDateFormat(\"dd/MM/yyyy HH:mm:ss\");\r\n Date dateR = simpleDateFormat.parse(r);\r\n Date dateD = simpleDateFormat.parse(d);\r\n a = (int) ((dateD.getTime() - dateR.getTime())/(1000*3600));\r\n \r\n \r\n } catch (ParseException ex) {\r\n Logger.getLogger(Reserva.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n if(a > 24) {\r\n cost += 15*(a/(24));\r\n a -= (((int)(a/24))*24);\r\n }\r\n if(a%3600 == 0) {\r\n cost += 1;\r\n }\r\n if(a%3600 > 0) {\r\n cost += 1;\r\n }\r\n \r\n }", "public static double getAttHour(String time1, String time2)\r\n/* 178: */ throws ParseException\r\n/* 179: */ {\r\n/* 180:258 */ double hour = 0.0D;\r\n/* 181:259 */ DateFormat fulDate = new SimpleDateFormat(\"HH:mm\");\r\n/* 182:260 */ long t12 = fulDate.parse(\"12:00\").getTime();\r\n/* 183:261 */ long t13 = fulDate.parse(\"13:00\").getTime();\r\n/* 184:262 */ long t1 = fulDate.parse(time1).getTime();\r\n/* 185:263 */ long PERHOUR = 3600000L;\r\n/* 186:264 */ if (time2 == null)\r\n/* 187: */ {\r\n/* 188:265 */ if (t12 - t1 > 0L) {\r\n/* 189:266 */ hour = (t12 - t1) / PERHOUR;\r\n/* 190: */ }\r\n/* 191: */ }\r\n/* 192: */ else\r\n/* 193: */ {\r\n/* 194:269 */ long t2 = fulDate.parse(time2).getTime();\r\n/* 195:270 */ if ((t1 <= t12) && (t2 >= t12) && (t2 <= t13)) {\r\n/* 196:271 */ hour = (t12 - t1) / PERHOUR;\r\n/* 197:272 */ } else if ((t1 <= t12) && (t2 >= t13)) {\r\n/* 198:273 */ hour = (t2 - t1) / PERHOUR - 1.0D;\r\n/* 199:274 */ } else if ((t1 >= t12) && (t1 <= t13) && (t2 >= t12) && (t2 <= t13)) {\r\n/* 200:275 */ hour = 0.0D;\r\n/* 201:276 */ } else if ((t1 >= t12) && (t1 <= t13) && (t2 >= t13)) {\r\n/* 202:277 */ hour = (t2 - t13) / PERHOUR;\r\n/* 203: */ } else {\r\n/* 204:279 */ hour = (t2 - t1) / PERHOUR;\r\n/* 205: */ }\r\n/* 206: */ }\r\n/* 207:282 */ DecimalFormat df = new DecimalFormat(\"#.0\");\r\n/* 208:283 */ return Double.parseDouble(df.format(hour));\r\n/* 209: */ }", "public String dar_hora(){\n Date date = new Date();\n DateFormat dateFormat = new SimpleDateFormat(\"HH:mm:ss\");\n return dateFormat.format(date).toString();\n }", "public int getIntHora(int antelacio)\n {\n int hsel = 1;\n //int nhores = CoreCfg.horesClase.length;\n \n Calendar cal2 = null;\n Calendar cal = null;\n \n for(int i=1; i<14; i++)\n {\n cal = Calendar.getInstance();\n cal.setTime(cfg.getCoreCfg().getIesClient().getDatesCollection().getHoresClase()[i-1]);\n cal.set(Calendar.YEAR, m_cal.get(Calendar.YEAR));\n cal.set(Calendar.MONTH, m_cal.get(Calendar.MONTH));\n cal.set(Calendar.DAY_OF_MONTH, m_cal.get(Calendar.DAY_OF_MONTH));\n\n cal2 = Calendar.getInstance();\n cal2.setTime(cfg.getCoreCfg().getIesClient().getDatesCollection().getHoresClase()[i]);\n cal2.set(Calendar.YEAR, m_cal.get(Calendar.YEAR));\n cal2.set(Calendar.MONTH, m_cal.get(Calendar.MONTH));\n cal2.set(Calendar.DAY_OF_MONTH, m_cal.get(Calendar.DAY_OF_MONTH));\n\n cal.add(Calendar.MINUTE, -antelacio);\n cal2.add(Calendar.MINUTE, -antelacio);\n\n if(cal.compareTo(m_cal)<=0 && m_cal.compareTo(cal2)<=0 )\n {\n hsel = i;\n break;\n }\n }\n\n if(m_cal.compareTo(cal2)>0) {\n hsel = 14;\n }\n\n \n return hsel;\n }", "private int normalizeTime() {\n int currentTimeSeconds = (int) (System.currentTimeMillis() / 1000);\n\n // The graphing interval in minutes\n // TODO not hardcoded :3\n int interval = 30;\n\n // calculate the devisor denominator\n int denom = interval * 60;\n\n return (int) Math.round((currentTimeSeconds - (denom / 2d)) / denom) * denom;\n }", "public String retornaHora(){\n\t\tCalendar calendar = new GregorianCalendar();\n\t\tSimpleDateFormat hora = new SimpleDateFormat(\"HH\");\n\t\tSimpleDateFormat minuto = new SimpleDateFormat(\"mm\");\n\t\tDate date = new Date();\n\t\tcalendar.setTime(date);\n\t\treturn hora.format(calendar.getTime()) + \"h\" + minuto.format(calendar.getTime());\n\t}", "public static void main(String[] args) {\n int horaSalida;\n int minutosSalida;\n int horaLlegada;\n int minutosLlegada;\n //Salida:\n int duracion;\n //condiciones y restricciones: el vuelo puede pasar de medianoche y no dura mas de 24h\n Scanner sc = new Scanner(System.in);\n do {\n System.out.println(\"Ingrese la hora de salida\");\n horaSalida = sc.nextInt();\n System.out.println(\"Ingrese los minutos\");\n minutosSalida = sc.nextInt();\n\n System.out.println(\"Ingrese la hora de llegada\");\n horaLlegada = sc.nextInt();\n System.out.println(\"Ingrese los minutos\");\n minutosLlegada = sc.nextInt();\n if (horaSalida > 24 || horaLlegada > 24 || minutosSalida > 60 || minutosLlegada > 60) {\n System.out.println(\"Los datos no han sido ingresados correctamente, vuelva a intentarlo\");\n }\n } while (horaSalida > 24 || horaLlegada > 24 || minutosSalida > 60 || minutosLlegada > 60);\n\n //Conversion de horas y minutos en solo minutos 19<2\n if (horaSalida > horaLlegada) {//caso 1\n horaLlegada = 24 + horaLlegada;//para poder restarlo a eso las h y m de salida\n }\n if (horaLlegada == horaSalida && (minutosSalida > minutosLlegada || minutosSalida == minutosLlegada)) {//caso 2\n horaLlegada = 24 + horaLlegada;//para poder restarlo a eso las h y m de salida\n }\n duracion = ((horaLlegada * 60) + minutosLlegada) - ((horaSalida * 60) + minutosSalida);\n\n if (duracion >= 1440) {//24*60=1440 si se pasa esto significa que el vuelo dura mas de 24h ex: 3:41 y llego 3:20\n System.out.print(\"El vuelo no puede durar mas de 24 horas \");\n } else {\n System.out.print(\"La duracion del vuelo es \" + duracion + \" minutos o \");\n //CODICIONES PARA EL AFFICHAGE\n if ((duracion / 60) < 10) {\n System.out.print(\"0\");\n }\n System.out.print(duracion / 60 + \"h\");\n\n if ((duracion % 60) < 10) {\n System.out.print(\"0\");\n }\n System.out.print(duracion % 60 + \"m\");\n }\n }", "public String getNbHeures() {\n long duree=0;\n if (listePlages!=null) {\n for(Iterator<PlageHoraire> iter=listePlages.iterator(); iter.hasNext(); ) {\n PlageHoraire p=iter.next();\n duree+=p.getDateFin().getTimeInMillis()-p.getDateDebut().getTimeInMillis();\n }\n duree=duree/1000/60; // duree en minutes\n }\n return \"\"+(duree/60)+\"h\"+(duree%60);\n }", "public long getHoraEnMilis() {\n Calendar calendario = new GregorianCalendar();\n return calendario.getTimeInMillis();\n }", "@Override\n\tpublic int horas_trabajo() {\n\t\treturn 1000;\n\t}", "public void calcularHash() {\n\t\tLocalDateTime agora = LocalDateTime.now();\n\t\t\n\t\t// coverção da string data/hora atual para o formato de 13 digitos\n\t\tDateTimeFormatter formatterData = DateTimeFormatter.ofPattern(\"ddMMuuuuHHmmss\");\n\t\tString dataFormatada = formatterData.format(agora);\n\t\t\n\t\tSystem.out.println(dataFormatada);\n\t\ttimestamp = Long.parseLong(dataFormatada);\n\t\t\n\t\tSystem.out.println(\"Informe o CPF: \");\n\t\tcpf = sc.nextLong();\n\t\t\n\t\t// calculos para gerar o hash\n\t\thash = cpf + (7*89);\n\t\thash = (long) Math.cbrt(hash);\n\t\t\n\t\thash2 = timestamp + (7*89);\n\t\thash2 = (long) Math.cbrt(hash2);\n\t\t\n\t\tsoma_hashs = hash + hash2;\n\t\t// converção para hexadecimal\n\t String str2 = Long.toHexString(soma_hashs);\n\t\t\n\t\tSystem.out.println(\"\\nHash: \"+ hash + \" \\nHash Do Timestamp: \" + hash2 + \"\\nSoma total do Hash: \" + str2);\n\t\t\n\t}", "public void setHoraCompra() {\n LocalTime hora=LocalTime.now();\n this.horaCompra = hora;\n }", "public double getPreferredConsecutiveHours();", "public String getHoraInicial(){\r\n return fechaInicial.get(Calendar.HOUR_OF_DAY)+\":\"+fechaInicial.get(Calendar.MINUTE);\r\n }", "public int obtenerHoraMasAccesos()\n {\n int numeroAccesosMaximoEncontradosHastaAhoraParaUnaHora = 0;\n int horaConElNumeroDeAccesosMaximo = -1;\n\n if(archivoLog.size() >0){\n for(int horaActual=0; horaActual < 24; horaActual++){\n int totalDeAccesosParaHoraActual = 0;\n //Miramos todos los accesos\n for(Acceso acceso :archivoLog){\n if(horaActual == acceso.getHora()){\n totalDeAccesosParaHoraActual++;\n }\n }\n if(numeroAccesosMaximoEncontradosHastaAhoraParaUnaHora<=totalDeAccesosParaHoraActual){\n numeroAccesosMaximoEncontradosHastaAhoraParaUnaHora =totalDeAccesosParaHoraActual;\n horaConElNumeroDeAccesosMaximo = horaActual;\n }\n }\n }\n else{\n System.out.println(\"No hay datos\");\n }\n return horaConElNumeroDeAccesosMaximo;\n }", "public String[] getHora()\r\n\t{\r\n\t\treturn this.reloj.getFormatTime();\r\n\t}", "double getStartH();", "public double ProcessArrivalTime()\r\n\t{\r\n\t\tdouble U = Math.random();\r\n\t\t//double lambda = 0.04;\r\n\t\tdouble lambda = 0.01;\r\n\t\tdouble V = ( -1 * (Math.log(1.0 - U)) ) / lambda; \r\n\t\treturn V;\r\n\t}", "@Override\n\tpublic void get_time_int(ShortHolder heure, ShortHolder min) {\n\t\t\n\t}", "public void convertirHoraMinutosStamina(int Hora, int Minutos){\n horaMinutos = Hora * 60;\n minutosTopStamina = 42 * 60;\n minutosTotales = horaMinutos + Minutos;\n totalMinutosStamina = minutosTopStamina - minutosTotales;\n }", "public java.lang.String getHora_hasta();", "private void findHumidities(ForecastIO FIO, WeatherlyDayForecast day){\n FIOHourly hourlyForecast = new FIOHourly(FIO);\n int numHours = hourlyForecast.hours();\n\n //Determine the number of hours left in the day\n Calendar rightNow = Calendar.getInstance();\n int dayHoursLeft = 24 - rightNow.get(Calendar.HOUR_OF_DAY);\n\n //Find the lowest and highest chances for precipitation for the rest of the day\n double minHum = hourlyForecast.getHour(0).humidity();\n double maxHum = minHum;\n int maxHour = rightNow.get(Calendar.HOUR_OF_DAY);\n for (int i = 1; i < dayHoursLeft; i++){\n double hum = hourlyForecast.getHour(i).humidity();\n if (minHum > hum)\n minHum = hum;\n if (maxHum < hum) {\n maxHum = hum;\n maxHour = i + rightNow.get(Calendar.HOUR_OF_DAY);\n }\n\n }\n\n day.setHumMin((int) (minHum * 100));\n day.setHumMax((int) (maxHum * 100));\n day.setHumMaxTime(maxHour);\n }", "public static void main(String[] args) {\n\t\t long ms = 671684;\r\n\t\t long ms1 = 607222 ;\r\n\t\t SimpleDateFormat formatter = new SimpleDateFormat(\"HH:mm:ss\");\r\n\t formatter.setTimeZone(TimeZone.getTimeZone(\"GMT+00:00\"));\r\n\t String hms = formatter.format(416970);\r\n\t String hms1 = formatter.format(710036);\r\n\t System.out.println(hms);\r\n\t System.out.println(hms1);\r\n\t //��ʦ���������ExecutorService������һ��\r\n\t}", "public HiResDate getTime();", "public int compareHours(String hora1, String hora2) {\n \tString[] strph1=hora1.split(\":\");\n \tString[] strph2=hora2.split(\":\");\n \tInteger[] ph1= new Integer[3];\n \tInteger[] ph2= new Integer[3];\n\n \tfor(int i=0;i<strph1.length;i++) {\n \t\tph1[i]=Integer.parseInt(strph1[i]);\n \t}\n \tfor(int i=0;i<strph2.length;i++) {\n \t\tph2[i]=Integer.parseInt(strph2[i]);\n \t}\n\n \tif(ph1[0]>ph2[0]) {\n \t\treturn 1;\n \t}\n \telse if(ph1[0]<ph2[0]) {\n \t\treturn -1;\n \t}\n \telse{//si las horas son iguales\n \t\tif(ph1[1]>ph2[1]) {\n \t\t\treturn 1; \n \t\t}\n \t\telse if(ph1[1]<ph2[1]) {\n \t\t\treturn -1;\n \t\t}\n \t\telse{//si los minutos son iguales\n \t\t\tif(ph1[2]>ph2[2]) {\n \t\t\t\treturn 1;\n \t\t\t}\n \t\t\telse if(ph1[1]<ph2[1]) {\n \t\t\t\treturn -1;\n \t\t\t}\n \t\t\telse {\n \t\t\t\treturn 0;\n \t\t\t}\n \t\t}\n \t}\n\n }", "public String tiempoRestanteHMS(Integer segundos) {\n\t\tint hor = segundos / 3600;\n\t\tint min = (segundos - (3600 * hor)) / 60;\n\t\tint seg = segundos - ((hor * 3600) + (min * 60));\n\t\treturn String.format(\"%02d\", hor) + \" : \" + String.format(\"%02d\", min)\n\t\t\t\t+ \" : \" + String.format(\"%02d\", seg);\n\t}", "public int verifierHoraire(String chaine){\r\n\t\t//System.out.println(\"chaine : \"+chaine);\r\n\t\tString tabHoraire[] = chaine.split(\":\");\r\n\t\t\r\n\t\tif((Integer.parseInt(tabHoraire[0]) < AUTO_ECOLE_OUVERTURE ) || (Integer.parseInt(tabHoraire[0])> AUTO_ECOLE_FERMETURE)){\r\n\t\t\treturn -6;\r\n\t\t}\r\n\t\tif((Integer.parseInt(tabHoraire[1]) < 0 ) || (Integer.parseInt(tabHoraire[1]) >= 60 )){\r\n\t\t\treturn -7;\r\n\t\t}\r\n\t\t\r\n\t\t return 0;\r\n\t}", "BigInteger getResponse_time();", "public void reagir(int hora) {\n if (hora < 12) {\n System.out.println(\"abanar\");\n } else {\n System.out.println(\"ignorar\");\n }\n }", "public void calculateHours(String time1, String time2) {\n Date date1, date2;\n int days, hours, min;\n SimpleDateFormat simpleDateFormat = new SimpleDateFormat(\"hh:mm aa\", Locale.US);\n try {\n date1 = simpleDateFormat.parse(time1);\n date2 = simpleDateFormat.parse(time2);\n\n long difference = date2.getTime() - date1.getTime();\n days = (int) (difference / (1000 * 60 * 60 * 24));\n hours = (int) ((difference - (1000 * 60 * 60 * 24 * days)) / (1000 * 60 * 60));\n min = (int) (difference - (1000 * 60 * 60 * 24 * days) - (1000 * 60 * 60 * hours)) / (1000 * 60);\n hours = (hours < 0 ? -hours : hours);\n SessionHour = hours;\n SessionMinit = min;\n Log.i(\"======= Hours\", \" :: \" + hours + \":\" + min);\n\n if (SessionMinit > 0) {\n if (SessionMinit < 10) {\n SessionDuration = SessionHour + \":\" + \"0\" + SessionMinit + \" hrs\";\n } else {\n SessionDuration = SessionHour + \":\" + SessionMinit + \" hrs\";\n }\n } else {\n SessionDuration = SessionHour + \":\" + \"00\" + \" hrs\";\n }\n } catch (ParseException e) {\n e.printStackTrace();\n }\n }", "public String calculateHour() {\n\t\tString hora;\n\t\tString min;\n\t\tString seg;\n\t\tString message;\n\t\tCalendar calendario = new GregorianCalendar();\n\t\tDate horaActual = new Date();\n\t\tcalendario.setTime(horaActual);\n\n\t\thora = calendario.get(Calendar.HOUR_OF_DAY) > 9 ? \"\" + calendario.get(Calendar.HOUR_OF_DAY)\n\t\t\t\t: \"0\" + calendario.get(Calendar.HOUR_OF_DAY);\n\t\tmin = calendario.get(Calendar.MINUTE) > 9 ? \"\" + calendario.get(Calendar.MINUTE)\n\t\t\t\t: \"0\" + calendario.get(Calendar.MINUTE);\n\t\tseg = calendario.get(Calendar.SECOND) > 9 ? \"\" + calendario.get(Calendar.SECOND)\n\t\t\t\t: \"0\" + calendario.get(Calendar.SECOND);\n\n\t\tmessage = hora + \":\" + min + \":\" + seg;\n\t\treturn message;\n\n\t}", "private void calcUpTime(Long created_at) {\n\tupTimeHour = (((System.currentTimeMillis() - created_at) / (1000 * 60 * 60)) % 24) - 1;\n\tupTimeMinute = ((System.currentTimeMillis() - created_at) / (1000 * 60)) % 60;\n }", "public static void main(String [] args){//inicio del main\r\n\r\n Scanner sc= new Scanner(System.in); \r\n\r\nSystem.out.println(\"ingrese los segundos \");//mesaje\r\nint num=sc.nextInt();//total de segundos\r\nint hor=num/3600;//total de horas en los segundos\r\nint min=(num-(3600*hor))/60;//total de min en las horas restantes\r\nint seg=num-((hor*3600)+(min*60));//total de segundo sen los miniutos restantes\r\nSystem.out.println(\"Horas: \" + hor + \" Minutos: \" + min + \" Segundos: \" + seg);//salida del tiempo\r\n\r\n}", "private String getTimingt(Long pastvalue) {\n DateTime zulu = DateTime.now(DateTimeZone.UTC);\n // DateTimeFormatter formatter = DateTimeFormat.forPattern(\"HH:mm:ss am\");\n Date date = new Date(pastvalue);\n// formattter\n SimpleDateFormat formatter= new SimpleDateFormat(\"hh:mm a\");\n formatter.setTimeZone(TimeZone.getDefault());\n// Pass date object\n return formatter.format(date );\n /*\n long mint = TimeUnit.MILLISECONDS.toMinutes(zulu.toInstant().getMillis() - pastvalue);\n\n if (mint < 60) {\n if (mint > 1)\n return \"Hace \" + mint + \" minutos\";\n else\n return \"Hace \" + mint + \" minuto\";\n } else {\n long horas = TimeUnit.MILLISECONDS.toHours(zulu.toDate().getTime() - pastvalue);\n\n if (horas < 24) {\n if (horas > 1)\n return \"Hace \" + horas + \" horas\";\n else\n return \"Hace \" + horas + \" hora\";\n } else {\n long dias = TimeUnit.MILLISECONDS.toDays(zulu.toDate().getTime() - pastvalue);\n\n if (dias > 1) {\n return \"Hace \" + dias + \" dias\";\n } else\n return \"Hace \" + dias + \" dia\";\n }\n\n\n }*/\n }", "private float horisontalTicker() {\n\t\t\t\treturn (ticker_horisontal += 0.8f);\n\t\t\t}", "public void sethourNeed(Integer h){hourNeed=h;}", "long getInhabitedTime();", "long getTimeBoltHBoltE();", "double getEndH();", "public static long CalcularDiferenciaHorasFechas(Date fecha1, Date fecha2){\n Calendar cal1 = Calendar.getInstance();\r\n Calendar cal2 = Calendar.getInstance();\r\n cal1.setTime(fecha1);\r\n cal2.setTime(fecha2);\r\n // conseguir la representacion de la fecha en milisegundos\r\n long milis1 = cal1.getTimeInMillis();\r\n long milis2 = cal2.getTimeInMillis();\r\n // calcular la diferencia en milisengundos\r\n long diff = milis2 - milis1;\r\n // calcular la diferencia en horas\r\n long diffHours = diff / (60 * 60 * 1000);\r\n return diffHours;\r\n }", "private void populaHorarioAula()\n {\n Calendar hora = Calendar.getInstance();\n hora.set(Calendar.HOUR_OF_DAY, 18);\n hora.set(Calendar.MINUTE, 0);\n HorarioAula h = new HorarioAula(hora, \"Segunda e Quinta\", 1, 3, 1);\n horarioAulaDAO.insert(h);\n\n hora.set(Calendar.HOUR_OF_DAY, 5);\n h = new HorarioAula(hora, \"Terca e Sexta\", 1, 3, 1);\n horarioAulaDAO.insert(h);\n\n hora.set(Calendar.HOUR_OF_DAY, 15);\n h = new HorarioAula(hora, \"Terca e Sexta\", 2, 5, 3);\n horarioAulaDAO.insert(h);\n\n hora.set(Calendar.HOUR_OF_DAY, 5);\n h = new HorarioAula(hora, \"Terca e Sexta\", 2, 5, 3);\n horarioAulaDAO.insert(h);\n\n hora.set(Calendar.HOUR_OF_DAY, 10);\n h = new HorarioAula(hora, \"Terca e Sexta\", 2, 5, 3);\n horarioAulaDAO.insert(h);\n\n hora.set(Calendar.HOUR_OF_DAY, 5);\n h = new HorarioAula(hora, \"Quarta e Sexta\", 3, 5, 3);\n horarioAulaDAO.insert(h);\n\n hora.set(Calendar.HOUR_OF_DAY, 5);\n h = new HorarioAula(hora, \"Sexta\", 1, 1, 2);\n horarioAulaDAO.insert(h);\n\n hora.set(Calendar.HOUR_OF_DAY, 19);\n h = new HorarioAula(hora, \"Sexta\", 2, 1, 1);\n horarioAulaDAO.insert(h);\n\n hora.set(Calendar.HOUR_OF_DAY, 5);\n h = new HorarioAula(hora, \"Segunda\", 3, 6, 4);\n horarioAulaDAO.insert(h);\n\n }", "public String getHoraFinal(){\r\n return fechaFinal.get(Calendar.HOUR_OF_DAY)+\":\"+fechaFinal.get(Calendar.MINUTE);\r\n }", "public void randomW8Time(inValues entrada, outValues salida) {\n int VarRandom = new Random().nextInt(100);\n salida.w8TimeRandom.add(VarRandom);\n int Sum = 0;\n for (int i = 0; i < entrada.clientw8TimeArray.length; i++) {\n if (VarRandom < (entrada.clientw8TimeArray[i][1] + Sum)) {\n salida.w8Time.add(entrada.clientw8TimeArray[i][0]);\n return;\n }\n Sum = Sum + entrada.clientw8TimeArray[i][1];\n }\n }", "long getTimeUntilNextSet(Coordinates coord, double horizon, long time) throws AstrometryException;", "@Override\r\n\tpublic double calcularNominaEmpleado() {\n\t\treturn sueldoPorHora * horas;\r\n\t}", "public MyTime previouseHour(){\n\t\tint second = getSeconds();\n\t\tint minute = getMinute();\n\t\tint hour = getHours();\n\n\t\tif (hour == 0){\n\t\t\thour = 23;\n\t\t}\n\t\telse{\n\t\t\thour--;\n\t\t}\n\n\n\t\treturn new MyTime(hour,minute,second);\n\t}", "public static int getRegeneratePeriod(L2Character cha)\n\t{\n\t\tif (cha instanceof L2DoorInstance)\n\t\t{\n\t\t\treturn HP_REGENERATE_PERIOD * 100; // 5 mins\n\t\t}\n\n\t\treturn HP_REGENERATE_PERIOD; // 3s\n\t}", "private void generatePopularHours() {\r\n double h = Math.random() * 10;\r\n String hrs = ((int)h) + \"\";\r\n }", "float hour() {\n switch (this) {\n case NORTH_4M:\n case NORTH_16M:\n case SOUTH_4M:\n case SOUTH_16M:\n return 0f;\n case WILTSHIRE_4M:\n case WILTSHIRE_16M:\n /*\n * At 10h33m, Orion is about to set in the west and the\n * Pointers of the Big Dipper are near the meridian.\n */\n return 10.55f;\n }\n throw new IllegalStateException();\n }", "public int getIntervalHours();", "private void CompararTiempo(String HoraInicio, String HoraFin){\n String[] TiempoInicial = HoraInicio.split(\":\");\n int horaI = Integer.valueOf(TiempoInicial[0]);\n int minuteI = Integer.valueOf(TiempoInicial[1]);\n\n String[] TiempoFinal = HoraFin.split(\":\");\n int horaF = Integer.valueOf(TiempoFinal[0]);\n int minuteF = Integer.valueOf(TiempoFinal[1]);\n\n if (horaF >= horaI){\n if (horaF == horaI && minuteF<=minuteI) {\n Toast.makeText(getApplicationContext(), \"La Hora de finalizacion no puede ser menor a la Hora de Inicio.\", Toast.LENGTH_SHORT).show();\n }\n else{\n etHoraFin.setText(HoraFin);\n }\n\n }else{\n Toast.makeText(getApplicationContext(), \"La Hora de finalizacion no puede ser menor a la Hora de Inicio.\", Toast.LENGTH_SHORT).show();\n }\n\n }", "public double getEntreLlegadas() {\r\n return 60.0 / frecuencia;\r\n }", "private int computeExaminationTime(short type) {\n\t\treturn (int)\n\t\t\t(_examinationMins[type]\n\t\t\t\t+ (_examinationMaxs[type] - _examinationMins[type])\n\t\t\t\t\t* Math.random());\n\t}", "Integer getStartHour();", "@Override\r\n protected Double h(Point from, Point to) {\r\n /* Use the Manhattan distance heuristic. */\r\n return (double) Math.abs(finish.x - to.x) + Math.abs(finish.y - to.y);\r\n }", "public void coord_to_horizon( Calendar utc, String ra_in, String dec_in, double lat_in, double lon_in )\r\n {\n\r\n \tCoordConverter myConverter = new CoordConverter();\r\n \t\r\n \tdouble ra = myConverter.RAString2Double(ra_in);\r\n \tdouble dec = myConverter.DecString2Double(dec_in);\r\n \t\r\n \tdouble lat = lat_in;//dms2real( Integer.parseInt(lat_str[0]), Double.parseDouble(lat_str[1]) );\r\n double lon = lon_in;//dms2real( Integer.parseInt(lon_str[0]), Double.parseDouble(lon_str[1]) );\r\n\r\n // compute hour angle in degrees\r\n double ha = GetSiderealTime( utc, lon ) - ra;\r\n if (ha < 0) ha = ha + 360;\r\n\r\n // convert degrees to radians\r\n ha = ha*Math.PI/180;\r\n dec = dec*Math.PI/180;\r\n lat = lat*Math.PI/180;\r\n\r\n // compute altitude in radians\r\n double sin_alt = Math.sin(dec)*Math.sin(lat) + Math.cos(dec)*Math.cos(lat)*Math.cos(ha);\r\n double alt = Math.asin(sin_alt);\r\n \r\n // compute azimuth in radians\r\n // divide by zero error at poles or if alt = 90 deg\r\n double cos_az = (Math.sin(dec) - Math.sin(alt)*Math.sin(lat))/(Math.cos(alt)*Math.cos(lat));\r\n double az = Math.acos(cos_az);\r\n\r\n // convert radians to degrees\r\n hrz_altitude = alt*180/Math.PI;\r\n hrz_azimuth = az*180/Math.PI;\r\n\r\n // choose hemisphere\r\n if (Math.sin(ha) > 0)\r\n hrz_azimuth = 360 - hrz_azimuth;\r\n }", "public void introducirhora(){\n int horadespertar; \n }", "HorarioAcademico findHorarioByAsistencia(Asistencia asistencia);", "public java.lang.String getHora_desde();", "private double pinghua(double valueBefore, double valueNow) {\n\n return valueBefore * (1 - pinghRate) + valueNow * pinghRate;\n\n\n }", "public LocalTime getHora() {\n\t\treturn hora;\n\t}", "public int getHours(){\n return (int) totalSeconds/3600;\n }", "private LocalDateTime getStartHour() {\n\t\treturn MoneroHourly.toLocalDateTime(startTimestamp);\r\n\t}", "public static int getHourOfTime(long time){\n \t//time-=59999;\n \tint retHour=0;\n \tlong edittime=time;\n \twhile (edittime>=60*60*1000){\n \t\tedittime=edittime-60*60*1000;\n \t\tretHour++;\n \t}\n \tretHour = retHour % 12;\n \tif (retHour==0){ retHour=12; }\n \treturn retHour;\n }", "public void setDateHeure(Long p_odateHeure);", "private void loadHours(){\n int hours = 0;\n int minutes = 0;\n for(int i=0; i<24;i++){\n for(int j=0; j<4;j++){\n this.hoursOfTheDay.add(String.format(\"%02d\",hours)+\":\"+ String.format(\"%02d\",minutes));\n minutes+=15;\n }\n hours++;\n minutes = 0;\n }\n }", "public int probabilidadesHastaAhora(){\n return contadorEstados + 1;\n }", "int getChronicDelayTime();", "private static int[] race(int v1, int v2, int g){\n\n float distance = g;\n float speedDifference = v2-v1;\n float time = g / speedDifference;\n\n int[] res = new int[3];\n res[0] = (int) time;\n res[1] = (int) (60 * (time-res[0]));\n res[2] = (int) (time * 3600) % 60;\n\n return res;\n }", "public long termina() {\n\t\treturn (System.currentTimeMillis() - inicio) / 1000;\n\t}", "double getHorDist(double initial_hor_vel, double time)\n {\n ux = initial_hor_vel;\n t = time;\n x = ux*t;\n return x;\n }", "public static void main(String[] args) {\n Instant instant = Instant.now();\n System.out.println(instant);\n\n //Seria impossivel guardar em long o nanos segundos desde 1970\n //Entao foi criado 2 variaveis\n System.out.println(instant.getEpochSecond()); //Segundo atual desde 1970\n System.out.println(instant.getNano()); //Tempo em nanos segundos do ultimo segundo - Max: 999.999.999\n\n //Adicionando segundos a um instant - 1970 + o tempo adicionado\n System.out.println(Instant.ofEpochSecond(3));\n //Da pra ajustar o nanosegundos do ofepochsecond, sobrecarregando o método com os mesmos\n System.out.println(Instant.ofEpochSecond(3,90_000_000));\n System.out.println(Instant.ofEpochSecond(2,1_000_000_000));\n System.out.println(Instant.ofEpochSecond(4,-1_000_000_000));\n\n System.out.println(\"---------DURATION---------\");\n //Duration\n //Pegar intervalos de data\n LocalDateTime dt1 = LocalDateTime.now();\n LocalDateTime dt2 = LocalDateTime.of(2017,1,1,23,0,0);\n\n LocalTime time1 = LocalTime.now();\n LocalTime time2 = LocalTime.of(5,0,0);\n\n //Duration - Intervalo entre data\n Duration d1 = Duration.between(dt1,dt2);\n System.out.println(d1);\n\n //Duration - Intervalo entre time\n Duration d2 = Duration.between(time1,time2);\n System.out.println(d2);\n\n //Duration - Instant\n Duration d3 = Duration.between(Instant.now(),Instant.now().plusSeconds(1000));\n //PlusSeconds - Adiciona alguns segundos ao instant\n System.out.println(d3);\n\n //Nao pode usar LocalDate no Instant\n //Nao pode misturar LocalDateTime com LocalTime\n// Duration d4 = Duration.between(dt2,time2);\n// Duration d5 = Duration.between(LocalDate.now(),LocalDate.now().plusDays(20));\n\n //Comparar LocalDateTime com LocalTime\n Duration d6 = Duration.between(dt2,time2.atDate(dt2.toLocalDate()));\n\n //Criar duration especificando minutes, horas e dias e outros exceto meses\n Duration d7 = Duration.ofMinutes(3);\n Duration d8 = Duration.ofDays(10);\n System.out.println(d7);\n System.out.println(d8);\n\n\n System.out.println(\"---------PERIOD---------\");\n\n //Verificar intervalo entre duas datas\n Period p1 = Period.between(dt1.toLocalDate(),dt2.toLocalDate());\n System.out.println(p1);\n\n //Criando um Period\n Period p2 = Period.ofDays(10);\n Period p3 = Period.ofWeeks(58);\n System.out.println(p2);\n System.out.println(p3);\n\n //Transformar semanas em meses\n// System.out.println(Period.between(LocalDate.now(), LocalDate.now().plusDays(p3.getDays())).getMonths());\n LocalDateTime now = LocalDateTime.now();\n System.out.println(now.until(now.plusDays(p3.getDays()),ChronoUnit.MONTHS));\n //Until significa até - ou seja ele contou do dia atual até o dia marcado\n\n System.out.println(\"---------CHRONOUNIT---------\");\n //Pegar intervalo entre duas datas\n LocalDateTime aniversario = LocalDateTime.of(1975,8,23,12,0,0);\n\n //Imprimindo intervalos com ChronoUnit\n System.out.println(ChronoUnit.DAYS.between(aniversario,now));\n System.out.println(ChronoUnit.WEEKS.between(aniversario,now));\n System.out.println(ChronoUnit.MONTHS.between(aniversario,now));\n System.out.println(ChronoUnit.YEARS.between(aniversario,now));\n\n\n\n\n\n\n }", "public static void main(String[] args) throws ParseException {\n String beginWorkDate = \"8:00:00\";//上班时间\n String endWorkDate = \"12:00:00\";//下班时间\n SimpleDateFormat sdf = new SimpleDateFormat(TimeUtil.DF_ZH_HMS);\n long a = TimeUtil.countMinutes(sdf.parse(beginWorkDate),sdf.parse(endWorkDate));\n System.out.println(a/30);\n\n String beginRestDate = \"8:30:00\";//休息时间\n String endRestDate = \"9:00:00\";\n long e = TimeUtil.countMinutes(sdf.parse(beginWorkDate),sdf.parse(beginRestDate));\n long f = TimeUtil.countMinutes(sdf.parse(beginWorkDate),sdf.parse(endRestDate));\n\n String beginVactionDate = \"10:00:00\";//请假时间\n String endVactionDate = \"11:00:00\";\n long b= TimeUtil.countMinutes(sdf.parse(beginWorkDate),sdf.parse(beginVactionDate));\n long c= TimeUtil.countMinutes(sdf.parse(beginWorkDate),sdf.parse(endVactionDate));\n\n String time = \"9:00:00\";//被别人预约的\n long d = TimeUtil.countMinutes(sdf.parse(beginWorkDate),sdf.parse(time));\n List<Integer> num = new ArrayList<>();\n num.add((int) (d/30));\n\n String myTime = \"11:30:00\";//我约的\n long g = TimeUtil.countMinutes(sdf.parse(beginWorkDate),sdf.parse(myTime));\n List<Integer> mynum = new ArrayList<>();\n mynum.add((int) (g/30));\n\n\n List<Date> yes = new ArrayList<>();//能约\n List<Date> no = new ArrayList<>();//不能约\n List<Date> my = new ArrayList<>();//我约的\n for (int i = 0; i < a/30; i ++) {\n Date times = TimeUtil.movDateForMinute(sdf.parse(beginWorkDate), i * 30);\n System.out.println(sdf.format(times));\n yes.add(times);\n if ((i >= e / 30 && i < f / 30) || (i >= b / 30 && i < c / 30)) {\n //休息时间,请假时间\n no.add(times);\n yes.remove(times);\n continue;\n }\n for (Integer n : num) {\n if (i == n) {\n //被预约时间\n no.add(times);\n yes.remove(times);\n }\n }\n for (Integer n : mynum) {\n if (i == n) {\n //被预约时间\n my.add(times);\n }\n }\n }\n }", "public int getUpHours() {\n return (int)((_uptime % 86400000) / 3600000);\n }", "private static float tock(){\n\t\treturn (System.currentTimeMillis() - startTime);\n\t}", "public synchronized int setArrivalTime(){\n\t\t return random.nextInt((30-1)+1)+1;\n\n\t}", "private Map<String, Long> getJudgeTime(Expression expr, long time) {\n \n\n if (!inTimeScope(expr, time)) {\n return null;\n }\n\n Map<String, Long> timeMap = new HashMap<String, Long>();\n long time_to = time;\n long time_from = time - (expr.getTime_to() - expr.getTime_from());\n timeMap.put(\"time_from\", time_from);\n timeMap.put(\"time_to\", time_to);\n long last_time_to;\n if (expr.getInterval() != 0) {\n\n if ((time_to - expr.getTime_to()) % expr.getInterval() == 0) {\n\n timeMap.put(\"last_time_from\", time_from - expr.getInterval());\n timeMap.put(\"last_time_to\", time_to - expr.getInterval());\n }\n else {\n return null;\n }\n }\n else {\n if ((time_to - expr.getTime_to()) % (24 * 3600 * 1000) == 0) {\n switch (expr.getUnit()) {\n case DateTimeHelper.INTERVAL_DAY:\n\n timeMap.put(\"last_time_from\", time_from - 24 * 3600 * 1000);\n timeMap.put(\"last_time_to\", time_to - 24 * 3600 * 1000);\n break;\n case DateTimeHelper.INTERVAL_WEEK:\n\n timeMap.put(\"last_time_from\", time_from - 7 * 24 * 3600 * 1000);\n timeMap.put(\"last_time_to\", time_to - 7 * 24 * 3600 * 1000);\n break;\n case DateTimeHelper.INTERVAL_MONTH:\n\n last_time_to = DateTimeHelper.getMonthAgo(new Date(time_to)).getTime();\n timeMap.put(\"last_time_to\", last_time_to);\n timeMap.put(\"last_time_from\", last_time_to - (time_to - time_from));\n break;\n case DateTimeHelper.INTERVAL_YEAR:\n\n last_time_to = DateTimeHelper.getYearAgo(new Date(time_to)).getTime();\n timeMap.put(\"last_time_to\", last_time_to);\n timeMap.put(\"last_time_from\", last_time_to - (time_to - time_from));\n break;\n }\n }\n else {\n return null;\n }\n\n }\n\n return timeMap;\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 getThunderTime()\n {\n return thunderTime;\n }", "@Override\n\tpublic double timeToLink() {\n\t\treturn 0;\n\t}", "double getFullTime();", "long getTimeUntilNextRise(Coordinates coord, double horizon, long time) throws AstrometryException;", "@CrossOrigin(origins = \"http://localhost:4200\")\n @GetMapping(\"/logs/deviceChance/{deviceId}\")\n public float getChance(@PathVariable String deviceId){\n String time = lastSeen(deviceId);\n int day = Integer.parseInt(time.substring(8,10));\n int hours = Integer.parseInt(time.substring(11,13));\n int min = Integer.parseInt(time.substring(14,16));\n int sec = Integer.parseInt(time.substring(17,19));\n\n Date date = new Date();\n String d = date.toString();\n System.out.println(day + \" : \" + hours + \" : \" + min + \" : \" + sec);\n System.out.println(d);\n int curDay = Integer.parseInt(d.substring(8,10));\n int curHours = Integer.parseInt(d.substring(11,13));\n int curMin = Integer.parseInt(d.substring(14,16));\n int curSec = Integer.parseInt(d.substring(17,19));\n\n int dDay = curDay - day;\n int dHours;\n int dMin;\n int dSec;\n\n dHours = curHours - hours;\n dMin = curMin - min;\n dSec = curSec - sec;\n\n if(dSec < 0){\n dMin--;\n dSec += 60;\n }\n if(dMin < 0){\n dHours--;\n dMin += 60;\n }\n if(dHours < 0){\n dDay--;\n dHours += 24;\n }\n\n float prob = (float)((dDay) + (dHours) + (dMin * .1f));\n\n if(prob > .7)\n logService.updateMissing(deviceId, true);\n else\n logService.updateMissing(deviceId, false);\n\n return prob;\n }", "private AbsTime(RelTime dt) throws Time.Ex_TimeNotAvailable, IllegalArgumentException\n {\n // The value of 3506716800000000L is the BAT as at midnight on\n // 1-Jan-1970, which is the base of the time that the system\n // gives us. It has to be adjusted for leap seconds though.\n itsValue = (System.currentTimeMillis() * 1000L) + DUTC.get() * 1000000L + 3506716800000000L;\n\n // Add the specified time offset.\n itsValue = itsValue + dt.itsValue;\n }", "public double h_function(Node node, Node targetNode, boolean isTime){\n double h = node.location.distance(targetNode.location);\n if(isTime) h = h/110;\n return h;\n // distance between two Nodes\n }", "@Test public void shouldGive240MinFor950cent() {\r\n // Three hours: $1.5+2.0+3.0\r\n assertEquals( 4 * 60 /*minutes*/ , rs.calculateTime(950) ); \r\n }", "public int getTotalTime();", "static long getHoursPart(Duration d) {\n long u = (d.getSeconds() / 60 / 60) % 24;\n\n return u;\n }", "public static double hoursSpent()\n\t{\n\t\treturn 7.0;\n\t}", "double getClientTime();", "private static float calcMaxHumChange(float timeForEvent) {\r\n float humChange = timeForEvent * max_rateOfChange;\r\n if (humChange > 15) {\r\n max_rateOfChange = 15 / timeForEvent;\r\n humChange = 15;\r\n }\r\n return humChange;\r\n }", "public String far(Date date){\n Date d2 = new Date();\n// 两个日期相减\n long cha = d2.getTime() - date.getTime();\n// 拆分天数,小时,分钟\n long day = cha / (24 * 60 * 60 * 1000);\n long hour = (cha / (60 * 60 * 1000) - day * 24);\n long min = ((cha / (60 * 1000)) - day * 24 * 60 - hour * 60);\n String time = \"出错\";\n int a = 0;\n //显示天\n if (day > 0) {\n a = (int) day;\n time = a + \"天前\";\n } else if (day == 0) {\n// 显示小时\n if (hour > 0) {\n a = (int) hour;\n time = a + \"小时前\";\n }\n //显示分钟\n else if (hour == 0) {\n if (min > 0) {\n a = (int) min;\n time = a + \"分钟前\";\n }\n if(min==0){\n time = \"1分钟前\";\n }\n }\n }\n return time;\n }", "public double fineAsToHours(int numOfDays,int h1,int h2,int m1, int m2){\n double fine=0.0;\n int y=0;\n\n //if overdue is minus there is no need to calculate a fine\n if(numOfDays<0){\n fine=0.0;\n }\n\n //if it is 0 if the reader returns book on or before the due hour, again no fine\n //if reader returns book after due hour minutes will be taken in to count\n else if(numOfDays==0){\n if(h2<=h1){\n fine=0.0;\n }\n else{\n //ex:if due=10.30, returnTime=12.20, fine will be charged only for 10.30 to 11.30 period\n //which is returnTime-1-due\n if(m2<m1){\n y=(h2-h1)-1;\n fine=y*0.2;\n }\n //if returnTime=12.45 fine will be charged for 10.30 to 12.45 period\n //which is returnTime-due\n else if(m2>=m1){\n y=h2-h1;\n fine=y*0.2;\n }\n }\n }\n\n //if over due is 3days or less\n else if(numOfDays<=3){\n //ex: due=7th 10.30, returned=9th 9.30\n //finr will be charged for 24h and the extra hours from 8th, and extra hours from 9th\n if(h2<=h1){\n y=((numOfDays-1)*24)+((24-h1)+h2);\n fine=y*0.2;\n }\n else{\n //ex: due=7th 10.30, returned= 9th 12.15\n //total 2*24h will be added. plus, time period frm 9th 10.30 to 11.30\n if(m2<m1){\n y=(numOfDays*24)+((h2-h1)-1);\n fine=y*0.2;\n }\n else if(m2>=m1){\n //returned=9th 12.45\n //total 2*24h, plus 2hours difference from 10.30 to 12.30\n y=(numOfDays*24)+(h2-h1);\n fine=y*0.2;\n }\n }\n\n }\n\n\n //same logic and will multiply the 1st 3 days form 0.2 as to the requirement\n\n else if(numOfDays>3){\n if(h2<=h1){\n y=((numOfDays-4)*24)+((24-h1)+h2);\n fine=(y*0.5)+(24*3*0.2);\n }\n\n else{\n if(m2<m1){\n y=((numOfDays-3)*24)+((h2-h1)-1);\n fine=(y*0.5)+(3*24*0.2);\n }\n\n else if(m2>m1){\n y=((numOfDays-3)*24)+(h2-h1);\n fine=(y*0.5)+(3*24*0.2);\n }\n }\n\n\n }\n\n return fine;\n\n }", "public double gettimetoAchieve(){\n\t\treturn this.timeFrame;\n\t}", "public long getElapsedTimeHour() {\n return running ? ((((System.currentTimeMillis() - startTime) / 1000) / 60 ) / 60) : 0;\n }", "public double getHauteurDuMonde(){\n\t\treturn HAUTEUR_DU_MONDE;\n\t}", "public static void main(String[] args) {\n\t\tLocalDate hoje = LocalDate.now();\n\t\tSystem.out.println(hoje);\n\t\t\n\t\t//Criando nova data\n\t\tLocalDate olimpiadas = LocalDate.of(2016, Month.JUNE, 5);\n\t\tSystem.out.println(olimpiadas);\n\t\t\n\t\t//Calculando diferenca de anos\n\t\tint anos = olimpiadas.getYear() - hoje.getYear();\n\t\tSystem.out.println(anos);\n\n\t\t//Demonstracao de imutabilidade\n\t\tolimpiadas.plusYears(4);\n\t\tSystem.out.println(olimpiadas);\n\t\t\n\t\tLocalDate proximasOlimpiadas = olimpiadas.plusYears(4);\n\t\tSystem.out.println(proximasOlimpiadas);\n\t\t\n\t\t//Periodo entre data de inicio e fim \n\t\tPeriod periodo = Period.between(hoje, olimpiadas);\n\t\tSystem.out.println(periodo);\n\n\t\t//Formata data \n\t\tDateTimeFormatter formataData = DateTimeFormatter.ofPattern(\"dd/MM/yyyy\");\n\t\tSystem.out.println(proximasOlimpiadas.format(formataData));\n\t\t\n\t\t//Craindo data e hora\n\t\tLocalDateTime agora = LocalDateTime.now();\n\t\tSystem.out.println(agora);\n\t\t\n\t\t//Formatando data e hora\n\t\t//Obs.: O formatado de data e hora nao pode ser usado para formata data.\n\t\tDateTimeFormatter formataDataComHoras = DateTimeFormatter.ofPattern(\"dd/MM/yyyy hh:mm\");\n\t\tSystem.out.println(agora.format(formataDataComHoras ));\n\t\t\n\t\tLocalTime intervalo = LocalTime.of(15, 30);\n\t\tSystem.out.println(intervalo);\n\t\t\n\t\t \n\t\t\n\t}" ]
[ "0.6901477", "0.63226426", "0.61624724", "0.60842663", "0.60661817", "0.606602", "0.6020117", "0.59885234", "0.58529663", "0.5840175", "0.5836873", "0.5820662", "0.5819337", "0.581104", "0.5803453", "0.57916355", "0.57724315", "0.5753774", "0.5720438", "0.57087845", "0.56744874", "0.5646428", "0.56392074", "0.56312644", "0.56304157", "0.5624332", "0.56105596", "0.55924886", "0.55781424", "0.5567294", "0.5560767", "0.554012", "0.5523443", "0.5522809", "0.55087316", "0.5463582", "0.54430914", "0.5436829", "0.5411416", "0.5410184", "0.5388426", "0.5380738", "0.53772527", "0.5375154", "0.5372903", "0.53688973", "0.5364143", "0.53416014", "0.5340167", "0.5338732", "0.5325554", "0.5322958", "0.531821", "0.5264765", "0.5257755", "0.5249708", "0.524836", "0.5245494", "0.52380824", "0.52284884", "0.51995724", "0.51885486", "0.5183248", "0.5181808", "0.5181339", "0.51808006", "0.5156761", "0.5155188", "0.5154494", "0.51535696", "0.5147413", "0.51445645", "0.5142583", "0.5138506", "0.51365715", "0.51323193", "0.5130594", "0.51235837", "0.5119137", "0.5117675", "0.5115293", "0.51130044", "0.5111241", "0.5110521", "0.5107434", "0.5105875", "0.5105534", "0.5102855", "0.5100222", "0.50987244", "0.5095508", "0.50951", "0.5094268", "0.50883037", "0.50870275", "0.5084028", "0.5083785", "0.50824356", "0.50794667", "0.5078838", "0.50729" ]
0.0
-1
getPuntoCercano obtiene el punto mas cercano a un punto incial de una determinada de puntos
private Punto getPuntoCercano(Punto puntoini, List<Punto> puntos ){ List<Segmento> segmentos = new ArrayList<Segmento>(); // todos contra todos for (Punto punto : puntos) { if( (puntoini!=null && punto!=null) && !puntoini.equals(punto) ){ double d = Geometria.distanciaDeCoordenadas(puntoini, punto); segmentos.add(new Segmento(puntoini, punto, d)); } } Collections.sort(segmentos); Punto puntocerano = segmentos.get(0).getPunto2(); return puntocerano; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private Punto getPuntoPriorizado(Punto puntoini, List<Punto> puntos ){\n\t\t\n\t\tPunto puntopriorizado = null;\n\t\t// calculamos la heuristica de distancias a los demas puntos\n\t\tfor (Punto punto : puntos) {\n\t\t\tif( (puntoini!=null && punto!=null) && !puntoini.equals(punto) ){\n\t\t\t\tdouble d = Geometria.distanciaDeCoordenadas(puntoini, punto);\n\t\t\t\tpunto.getDatos().put(\"distanci\", d);\n\t\t\t}\n\t\t}\n\t\t\n\t\t// ordenamos por las heuristicas definidad en la clase comparator\n\t\t// hora atencion, prioridad, urgencia, distancia\n\t\tCollections.sort(puntos, new PuntoHeuristicaComparator1());\n\t\tSystem.out.println(\"### mostrando las heuristicas #####\");\n\t\tmostratPuntosHeuristica(puntos);\n\t\n\t\tif( puntos!=null && puntos.size()>0){\n\t\t\tpuntopriorizado = puntos.get(0);\n\t\t}\n\t\t\n\t\t/*Punto pa = null ;\n\t\tfor (Punto p : puntos) {\n\t\t\tif(pa!=null){\n\t\t\t\tString key = p.getDatos().toString();\n\t\t\t\tString keya = pa.getDatos().toString();\n\t\t\t\tif(!key.equals(keya)){\n\t\t\t\t\tpuntopriorizado = p;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\n\t\t\t}\n\t\t\tpa = p ;\n\t\t}*/\n\n\t\treturn puntopriorizado;\n\t}", "private Filtro getFiltroPiattiComandabili() {\n /* variabili e costanti locali di lavoro */\n Filtro filtro = null;\n Modulo modPiatto = PiattoModulo.get();\n\n try { // prova ad eseguire il codice\n\n filtro = FiltroFactory.crea(modPiatto.getCampo(Piatto.CAMPO_COMANDA), true);\n\n } catch (Exception unErrore) { // intercetta l'errore\n new Errore(unErrore);\n } // fine del blocco try-catch\n\n /* valore di ritorno */\n return filtro;\n }", "public static List<Punto> getPuntos(){\n\t\t\n\t\tList<Punto> puntos = new ArrayList<Punto>();\n\t\ttry{\n\n\t\t\t//-12.045916, -75.195270\n\t\t\t\n\t\t\tPunto p1 = new Punto(1,-12.037512,-75.183327,0.0);\n\t\t\tp1.setDatos(getDatos(\"16/06/2017 09:00:00\", 2 , 1));\n\t\t\t\n\t\t\tPunto p2 = new Punto(2,-12.041961,-75.184786,0.0);\n\t\t\tp2.setDatos(getDatos(\"16/06/2017 09:00:00\",1 , 2));\n\t\t\t\n\t\t\tPunto p3 = new Punto(3,-12.0381,-75.1841,0.0);\n\t\t\tp3.setDatos(getDatos(\"16/06/2017 09:00:00\",2 , 2));\n\t\t\t\n\t\t\tPunto p4 = new Punto(4,-12.041542,-75.185816,0.0);\n\t\t\tp4.setDatos(getDatos(\"16/06/2017 11:00:00\",0 , 0));\n\t\t\t\n\t\t\tPunto p5 = new Punto(5,-12.037764,-75.181096,0.0);\n\t\t\tp5.setDatos(getDatos(\"16/06/2017 11:15:00\",0 , 0));\n\t\t\t\n\t\t\tPunto p6 = new Punto(6,-12.042801,-75.190108,0.0);\n\t\t\tp6.setDatos(getDatos(\"16/06/2017 11:00:00\",0 , 0));\n\t\t\t\n\t\t\tPunto p7 = new Punto(7,-12.04364,-75.184014,0.0);\n\t\t\tp7.setDatos(getDatos(\"16/06/2017 11:00:00\",0 , 0));\n\t\t\t\n\t\t\tPunto p8 = new Punto(8,-12.045739,-75.185387,0.0);\n\t\t\tp8.setDatos(getDatos(\"16/06/2017 11:30:00\",0 , 0));\n\t\t\t\n\t\t\tPunto p9 = new Punto(9,-12.04683,-75.187361,0.0);\n\t\t\tp9.setDatos(getDatos(\"16/06/2017 11:50:00\",0 , 0));\n\t\t\t\n\t\t\tPunto p10 = new Punto(10,-12.050775,-75.187962,0.0);\n\t\t\tp10.setDatos(getDatos(\"16/06/2017 12:30:00\",0 , 0));\n\t\t\t\n\t\t\tPunto p11 = new Punto(11,-12.053797,-75.184271,0.0);\n\t\t\tp11.setDatos(getDatos(\"16/06/2017 13:00:00\",0 , 0));\n\t\t\t\n\t\t\tpuntos.add(p8);\n\t\t\tpuntos.add(p9);\n\t\t\tpuntos.add(p3);\n\t\t\tpuntos.add(p4);\n\t\t\tpuntos.add(p5);\n\t\t\tpuntos.add(p6);\n\t\t\tpuntos.add(p7);\n\t\t\tpuntos.add(p10);\n\t\t\tpuntos.add(p1);\n\t\t\tpuntos.add(p2);\n\t\t\tpuntos.add(p11);\n\t\t\t\n\t\t\t\n\t\t}catch(Exception e ){\n\t\t\t\n\t\t\te.printStackTrace();\n\t\t\t\n\t\t}\n\t\t\n\t\treturn puntos;\n\t\n\t}", "public ContratoDosimetro getContratoDosimetro(Long conDosi)\n throws Exception;", "private void actualizaPuntuacion() {\n if(cambiosFondo <= 10){\n puntos+= 1*0.03f;\n }\n if(cambiosFondo > 10 && cambiosFondo <= 20){\n puntos+= 1*0.04f;\n }\n if(cambiosFondo > 20 && cambiosFondo <= 30){\n puntos+= 1*0.05f;\n }\n if(cambiosFondo > 30 && cambiosFondo <= 40){\n puntos+= 1*0.07f;\n }\n if(cambiosFondo > 40 && cambiosFondo <= 50){\n puntos+= 1*0.1f;\n }\n if(cambiosFondo > 50) {\n puntos += 1 * 0.25f;\n }\n }", "Object obtenerPolizasPorFolioSolicitudNoCancelada(int folioSolicitud,String formatoSolicitud);", "public void carroPulando() {\n\t\tpulos++;\n\t\tpulo = (int) (PULO_MAXIMO/10);\n\t\tdistanciaCorrida += pulo;\n\t\tif (distanciaCorrida > distanciaTotalCorrida) {\n\t\t\tdistanciaCorrida = distanciaTotalCorrida;\n\t\t}\n\t}", "private static void ordenamientoMezclaNatural(Comparable[] a, int primero, int ultimo) {\r\n\t\tint i = primero;\r\n\t\tint j = 0;\r\n\t\tint medio = 0;\r\n\t\tint az = 0;\r\n\t\twhile(true) {\r\n\t\t\ti = 0;\r\n\t\t\twhile(i < a.length) {\r\n\t\t\t\tif( i == a.length - 1) {\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}else if(a[i].compareTo(a[i + 1]) > 0) {\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t\tj ++;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//medio = primero + ( j - primero) / 2;\r\n\t\t\t\r\n\t\t\tMezcla(a, primero, i, j);\r\n\t\t\tprimero = 0;\r\n\t\t\t\r\n\t\t\tif(estaOrdenado(a)) {\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public int cuantosParrafos() \r\n\t{\r\n\t\tString respuesta = JOptionPane.showInputDialog(\"cuantas estrofas quiere\");\r\n\t\tint respuesta1 = Integer.parseInt(respuesta);\r\n\t\treturn respuesta1;\r\n\t}", "public static Punto getPunto(double angulo, double modulo) {\r\n return new Punto(modulo * Math.cos(angulo), modulo * Math.sin(angulo));\r\n }", "@Override\n\tpublic void crearNuevaPoblacion() {\n\t\t/* Nos quedamos con los mejores individuos. Del resto, cruzamos la mitad, los mejores,\n\t\t * y el resto los borramos.*/\n\t\tList<IIndividuo> poblacion2 = new ArrayList<>();\n\t\tint numFijos = (int) (poblacion.size()/2);\n\t\t/* Incluimos el 50%, los mejores */\n\t\tpoblacion2.addAll(this.poblacion.subList(0, numFijos));\n\t\t\n\t\t/* De los mejores, mezclamos la primera mitad \n\t\t * con todos, juntandolos de forma aleatoria */\n\t\tList<IIndividuo> temp = poblacion.subList(0, numFijos+1);\n\t\tfor(int i = 0; i < temp.size()/2; i++) {\n\t\t\tint j;\n\t\t\tdo {\n\t\t\t\tj = Individuo.aleatNum(0, temp.size()-1);\n\t\t\t}while(j != i);\n\t\t\t\n\t\t\ttry {\n\t\t\t\tpoblacion2.addAll(cruce(temp.get(i), temp.get(j)));\n\t\t\t} catch (CruceNuloException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t\t\n\t\t//this.poblacion.clear();\n\t\tthis.poblacion = poblacion2;\n\t}", "private static void generaGruposTocanConciertos(PrintWriter salida_grupos_tocan_conciertos){\r\n long i;\r\n cod_concierto = 0;\r\n \r\n for (i = 0; i < num_grupos; i++){\r\n for (int j = 0; j < 10; j++){//todos los grupos darán 10 conciertos\r\n if (cod_concierto == max_conciertos) cod_concierto = 0;\r\n salida_grupos_tocan_conciertos.println(i + \",\" + cod_concierto);\r\n cod_concierto++;\r\n }\r\n }\r\n }", "public char buscarConectorPrincipal(String valor) {\n int contador = 0;\n for (int i = 0; i < valor.length(); i++) {\n if (valor.charAt(i) == '(') {\n contador++;\n }\n if (valor.charAt(i) == ')') {\n contador--;\n }\n if (contador == 0) {\n if (valor.charAt(i) == '¬') {\n if (valor.length() == 2) {\n posConectorPrincipal = i;\n return valor.charAt(i);\n }\n if (valor.charAt(i + 1) == '(') {\n return '¬';\n }\n posConectorPrincipal = 2;\n return valor.charAt(2);\n }\n i++;\n if ((i != valor.length()) && (isConectorBinario(valor.charAt(i)))) {\n posConectorPrincipal = i;\n return valor.charAt(i);\n }\n }\n }\n return '0';\n }", "public void primerPunto() {\n\t\tp = new PuntoAltaPrecision(this.xCoord, this.yCoord);\n\t\t// Indicamos la trayectoria por la que va la pelota\n\t\tt = new TrayectoriaRecta(1.7f, p, false);\n\t}", "public int colore(int pezzo)\n {\n switch(pezzo)\n {\n case PEDINA_BIANCA: case DAMA_BIANCA: return BIANCO;\n case PEDINA_NERA: case DAMA_NERA: return NERO;\n }\n return NON_COLORE;\n }", "public static int BuscarPerrox(Perro BaseDeDatosPerros[], String razas[], int codPerro) {\n int cont = 0;\r\n boolean condicion = false;\r\n char generoPerro, generoPerr, generPerro = 'd';\r\n String razaPerr, tipoRaza;\r\n do {\r\n System.out.println(\"Ingrese el Genero de perro : Macho(M),Hembra (H)\");\r\n generoPerro = TecladoIn.readLineNonwhiteChar();\r\n\r\n if (ValidacionDeGenero(generoPerro)) {\r\n generPerro = generoPerro;\r\n condicion = true;\r\n } else {\r\n System.out.println(\".......................................................\");\r\n System.out.println(\"Ingrese un Genero Correcto: Macho('M') o Hembra ('H')\");\r\n System.out.println(\".......................................................\");\r\n condicion = false;\r\n }\r\n } while (condicion != true);\r\n \r\n tipoRaza=IngresarRazaCorrecta();\r\n \r\n for (int i = 0; i < codPerro; i++) {\r\n razaPerr = BaseDeDatosPerros[i].getRaza();\r\n generoPerr = BaseDeDatosPerros[i].getGenero();\r\n\r\n if (tipoRaza.equals(razaPerr) && (generPerro == generoPerr)) {\r\n cont++;\r\n }\r\n\r\n }\r\n\r\n \r\n\r\n return cont;}", "public Contenedor getContenedorMaximo()\n {\n Contenedor maxCont = null;\n int maxPeso ;\n\n maxPeso = 0;\n\n for (Contenedor c : this.losContenedores){\n if (c.peso > maxPeso)\n {\n maxPeso = c.peso;\n maxCont = c;\n }\n }\n\n return maxCont;\n }", "public Cromosoma[] generarSegmentos(Cromosoma[] poblacion, Evaluador evaluador, boolean mejora) {\r\n\t\tdouble puntAcumulada = 0.0; //puntuacion acumulada\r\n\t\tdouble sumaAptitud = 0.0; //suma de la aptitud\r\n\t\tint tamañoPoblacion = poblacion.length;\r\n\t\t\r\n\t\t//ordenamos la poblacion de peor a mejor aptitud.\r\n\t\tpoblacion = Ordenacion.sortSelectionIndividuals(poblacion, evaluador);\r\n\t\t\t\t\r\n\t\tdouble[] aptitudesEscaladas = new double[poblacion.length];\r\n\t\tdouble a = (C-1)*Poblacion.mediaPoblacionInstantanea(poblacion)/(Poblacion.mejorPoblacionInstantanea(poblacion, evaluador).getAptitud()-Poblacion.mediaPoblacionInstantanea(poblacion));\r\n\t\tdouble b = Poblacion.mediaPoblacionInstantanea(poblacion)*(1-a);\r\n\t\t\r\n\t\tfor(int i = 0; i<tamañoPoblacion; i++){\r\n\t\t\taptitudesEscaladas[i] = a*poblacion[i].getAptitud()+b;\r\n\t\t}\r\n\t\t\t\t\t\t\r\n\t\tdouble[] aptitudesPositivas = new double[tamañoPoblacion];\r\n\t\tfor (int i = 0; i< tamañoPoblacion; i++){\r\n\t\t\t\tdouble aptitudPositivaI = poblacion[i].getAptitud();\r\n\t\t\t\taptitudesPositivas[i] = aptitudPositivaI;\r\n\t\t}\r\n\t\t\r\n\t\t//si el problema es de minimizacion, debemos asignar mejores puntuaciones a los individuos con\r\n\t\t//menor aptitud luego transformamos el problema de minimizacion en un problema de maximizacion\r\n\t\tdouble[] aptitudesMaximizadas = new double[aptitudesPositivas.length];\r\n\t\tif(mejora)\r\n\t\t\taptitudesMaximizadas = evaluador.transformarAptitudesAMaximizacion(aptitudesEscaladas);\r\n\t\telse \r\n\t\t\taptitudesMaximizadas = evaluador.transformarAptitudesAMaximizacion(aptitudesPositivas);\r\n\t\taptitudesPositivas = aptitudesMaximizadas;\r\n\t\t\r\n\t\t//calculamos la suma de las aptitudes\r\n\t\tfor (int i = 0; i< aptitudesPositivas.length; i++){\r\n\t\t\tsumaAptitud += aptitudesPositivas[i];\r\n\t\t}\r\n\t\t//calculo de puntuaciones y puntuaciones acumuladas\r\n\t\tfor (int i = 0; i< tamañoPoblacion; i++){\r\n\t\t\t\r\n\t\t\tdouble aptitudI = aptitudesPositivas[i];\r\n\t\t\t\r\n\t\t\tpoblacion[i].setPuntuacion(aptitudI/sumaAptitud);\r\n\t\t\tdouble acumulacion = poblacion[i].getPuntuacion() + puntAcumulada;\r\n\t\t\tpoblacion[i].setPuntuacionAcumulada(acumulacion);\r\n\t\t\tpuntAcumulada = acumulacion;\r\n\t\t}\r\n\t\treturn poblacion;\r\n\t}", "public int getPuntos() {\n return puntos;\n }", "public void seleccionarTipoComprobante() {\r\n if (com_tipo_comprobante.getValue() != null) {\r\n tab_tabla1.setCondicion(\"fecha_trans_cnccc between '\" + cal_fecha_inicio.getFecha() + \"' and '\" + cal_fecha_fin.getFecha() + \"' and ide_cntcm=\" + com_tipo_comprobante.getValue());\r\n tab_tabla1.ejecutarSql();\r\n tab_tabla2.ejecutarValorForanea(tab_tabla1.getValorSeleccionado());\r\n } else {\r\n tab_tabla1.limpiar();\r\n tab_tabla2.limpiar();\r\n }\r\n tex_num_transaccion.setValue(null);\r\n calcularTotal();\r\n utilitario.addUpdate(\"gri_totales,tex_num_transaccion\");\r\n }", "public int getPuntos() {\n return puntos;\n }", "public void obtener_proximo_cpte(){\n\t\t_Data data=(_Data) _data;\n\t\tString cb=data.getProximoPGCorrecto();\n\t\t//Pago_frame _frame=(Pago_frame) this._frame;\n\t\tframe.get_txt_idPago().setText(cb);\n\t}", "private Long calcTiempoCompensado(Long tiempoReal, Barco barco, Manga manga) {\n //Tiempo compensado = Tiempo Real + GPH * Nº de millas manga.\n Float res = tiempoReal + barco.getGph() * manga.getMillas();\n return (long) Math.round(res);\n }", "public String darPista() {\r\n\t\tString msj = \"\";\r\n\t\tboolean fin = false;\r\n\t\tfor (int i = 0; i < casillas.length && !fin; i++) {\r\n\t\t\tfor (int j = 0; j < casillas[0].length && !fin; j++) {\t\t\r\n\t\t\t\tif(casillas[i][j].esMina() == false && casillas[i][j].darValor() > 0) {\r\n\t\t\t\t\tcasillas[i][j].destapar();\r\n\t\t\t\t\tmsj += i+\",\"+j;\r\n\t\t\t\t\tfin = true;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn msj;\r\n\t}", "public byte[] gerarRelatorioPdfJasperConexaoPadrao(String caminhoRelatorio, Map<String, Object> parametrosPersonalizados) {\n byte[] saida = null;\n try {\n Map<String, Object> parametrosPadraoRelatorio = this.gerarParametrosPadraoRelatorio();\n if (parametrosPadraoRelatorio == null) {\n parametrosPadraoRelatorio = new HashMap<String, Object>();\n }\n\n if (parametrosPersonalizados != null) {\n parametrosPadraoRelatorio.putAll(parametrosPersonalizados);\n }\n\n String caminho = UtilPath.getPath(caminhoRelatorio);\n Connection conexao = userDataSource.getConnection();\n JasperPrint jasperPrint = JasperFillManager.fillReport(caminho, parametrosPadraoRelatorio, conexao);\n\n ByteArrayOutputStream pdfStream = new ByteArrayOutputStream();\n JasperExportManager.exportReportToPdfStream(jasperPrint, pdfStream);\n pdfStream.flush();\n saida = pdfStream.toByteArray();\n } catch (Exception e) {\n log.error(\"Falha ao gerar relatorio padrao ao gerar relatorio\", e);\n throw new RuntimeException(\"Falha ao gerar relatorio padrao ao gerar relatorio\", e);\n }\n return saida;\n }", "Integer obtenerUltimoComprobante(TipoComprobante tipoCbte, Integer ptoVta, Cuit cuitFacturador) throws EsphoraInternalException;", "public void cartgarTareasConRepeticionDespuesDe(TareaModel model,int unid_medi,String cant_tiempo,String tomas)\n {\n Date fecha = convertirStringEnFecha(model.getFecha_aviso(),model.getHora_aviso());\n Calendar calendar = Calendar.getInstance();\n\n if(fecha != null)\n {\n calendar.setTime(fecha);\n calcularCantidadDeRepeticionesHorasMin(unid_medi,calendar,cant_tiempo,tomas,model);\n }\n }", "public int cuantosCursos(){\n return inscripciones.size();\n }", "private void grabarIndividuoPCO(final ProyectoCarreraOferta proyectoCarreraOferta) {\r\n /**\r\n * PERIODO ACADEMICO ONTOLOGÍA\r\n */\r\n OfertaAcademica ofertaAcademica = ofertaAcademicaService.find(proyectoCarreraOferta.getOfertaAcademicaId());\r\n PeriodoAcademico periodoAcademico = ofertaAcademica.getPeriodoAcademicoId();\r\n PeriodoAcademicoOntDTO periodoAcademicoOntDTO = new PeriodoAcademicoOntDTO(periodoAcademico.getId(), \"S/N\",\r\n cabeceraController.getUtilService().formatoFecha(periodoAcademico.getFechaInicio(), \"yyyy-MM-dd\"),\r\n cabeceraController.getUtilService().formatoFecha(periodoAcademico.getFechaFin(), \"yyyy-MM-dd\"));\r\n cabeceraController.getOntologyService().getPeriodoAcademicoOntService().read(cabeceraController.getCabeceraWebSemantica());\r\n cabeceraController.getOntologyService().getPeriodoAcademicoOntService().write(periodoAcademicoOntDTO);\r\n /**\r\n * OFERTA ACADEMICA ONTOLOGÍA\r\n */\r\n OfertaAcademicaOntDTO ofertaAcademicaOntDTO = new OfertaAcademicaOntDTO(ofertaAcademica.getId(), ofertaAcademica.getNombre(),\r\n cabeceraController.getUtilService().formatoFecha(ofertaAcademica.getFechaInicio(),\r\n \"yyyy-MM-dd\"), cabeceraController.getUtilService().formatoFecha(ofertaAcademica.getFechaFin(), \"yyyy-MM-dd\"),\r\n periodoAcademicoOntDTO);\r\n cabeceraController.getOntologyService().getOfertaAcademicoOntService().read(cabeceraController.getCabeceraWebSemantica());\r\n cabeceraController.getOntologyService().getOfertaAcademicoOntService().write(ofertaAcademicaOntDTO);\r\n\r\n /**\r\n * NIVEL ACADEMICO ONTOLOGIA\r\n */\r\n Carrera carrera = carreraService.find(proyectoCarreraOferta.getCarreraId());\r\n Nivel nivel = carrera.getNivelId();\r\n NivelAcademicoOntDTO nivelAcademicoOntDTO = new NivelAcademicoOntDTO(nivel.getId(), nivel.getNombre(),\r\n cabeceraController.getValueFromProperties(PropertiesFileEnum.URI, \"nivel_academico\"));\r\n cabeceraController.getOntologyService().getNivelAcademicoOntService().read(cabeceraController.getCabeceraWebSemantica());\r\n cabeceraController.getOntologyService().getNivelAcademicoOntService().write(nivelAcademicoOntDTO);\r\n /**\r\n * AREA ACADEMICA ONTOLOGIA\r\n */\r\n AreaAcademicaOntDTO areaAcademicaOntDTO = new AreaAcademicaOntDTO(carrera.getAreaId().getId(), \"UNIVERSIDAD NACIONAL DE LOJA\",\r\n carrera.getAreaId().getNombre(), carrera.getAreaId().getSigla(),\r\n cabeceraController.getValueFromProperties(PropertiesFileEnum.URI, \"area_academica\"));\r\n cabeceraController.getOntologyService().getAreaAcademicaOntService().read(cabeceraController.getCabeceraWebSemantica());\r\n cabeceraController.getOntologyService().getAreaAcademicaOntService().write(areaAcademicaOntDTO);\r\n /**\r\n * CARRERA ONTOLOGÍA\r\n */\r\n CarreraOntDTO carreraOntDTO = new CarreraOntDTO(carrera.getId(), carrera.getNombre(), carrera.getSigla(), nivelAcademicoOntDTO,\r\n areaAcademicaOntDTO);\r\n cabeceraController.getOntologyService().getCarreraOntService().read(cabeceraController.getCabeceraWebSemantica());\r\n cabeceraController.getOntologyService().getCarreraOntService().write(carreraOntDTO);\r\n /**\r\n * PROYECTO CARRERA OFERTA ONTOLOGY\r\n */\r\n \r\n ProyectoCarreraOfertaOntDTO proyectoCarreraOfertaOntDTO = new ProyectoCarreraOfertaOntDTO(proyectoCarreraOferta.getId(),\r\n ofertaAcademicaOntDTO, sessionProyecto.getProyectoOntDTO(), carreraOntDTO);\r\n cabeceraController.getOntologyService().getProyectoCarreraOfertaOntService().read(cabeceraController.getCabeceraWebSemantica());\r\n cabeceraController.getOntologyService().getProyectoCarreraOfertaOntService().write(proyectoCarreraOfertaOntDTO);\r\n }", "public DTOSalida obtenerCanalesPlantillas(DTOBelcorp dto) throws MareException\n { \n UtilidadesLog.info(\"DAOGestionComisiones.obtenerCanalesPlantillas(DTOBelcorp dto): Entrada\");\n StringBuffer query = new StringBuffer();\n RecordSet rs = new RecordSet();\n DTOSalida dtos = new DTOSalida();\n BelcorpService bs = UtilidadesEJB.getBelcorpService(); \n query.append(\" SELECT DISTINCT A.CANA_OID_CANA OID, B.VAL_I18N DESCRIPCION \");\n query.append(\" FROM COM_PLANT_COMIS A, V_GEN_I18N_SICC B \"); \n query.append(\" WHERE \");\n query.append(\" A.CEST_OID_ESTA = \" + ConstantesCOM.ESTADO_ACTIVO + \" AND \"); \n query.append(\" B.ATTR_ENTI = 'SEG_CANAL' AND \"); \n query.append(\" B.ATTR_NUM_ATRI = 1 AND \"); \n query.append(\" B.IDIO_OID_IDIO = \" + dto.getOidIdioma() + \" AND \");\n query.append(\" B.VAL_OID = A.CANA_OID_CANA \");\n query.append(\" ORDER BY DESCRIPCION \"); \n UtilidadesLog.debug(query.toString()); \n try {\n rs = bs.dbService.executeStaticQuery(query.toString());\n if(rs != null)\n dtos.setResultado(rs);\n }catch (Exception e) {\n UtilidadesLog.error(e);\n throw new MareException(e, UtilidadesError.armarCodigoError(CodigosError.ERROR_DE_ACCESO_A_BASE_DE_DATOS));\n } \n UtilidadesLog.info(\"DAOGestionComisiones.obtenerCanalesPlantillas(DTOBelcorp dto): Salida\");\n return dtos;\n }", "public Integer plazasDisponibles() {\n\t\treturn cupo;\n\t}", "public List<TdCxlc> getClcPatronalReproceso(Integer ciclo, Integer qnaPago, String tipoNomina, Integer complemento) {\n String getClcPatronalReproceso = super.getQueryDefinition(\"getClcPatronalReproceso\");\n \n Map<String, Object> mapValues = new HashMap<String, Object>();\n mapValues.put(\"ciclo\", ciclo);\n mapValues.put(\"qnaPago\", qnaPago);\n mapValues.put(\"tipoNomina\", tipoNomina);\n mapValues.put(\"complemento\", complemento);\n \n SqlParameterSource namedParameters = new MapSqlParameterSource(mapValues);\n DataSource ds = super.getJdbcTemplate().getDataSource();\n NamedParameterJdbcTemplate namedTemplate = new NamedParameterJdbcTemplate(ds);\n \n super.getJdbcTemplate().setFetchSize(100);\n \n return namedTemplate.query(getClcPatronalReproceso, namedParameters, new TdCxlcAux());\n }", "private void cruzarGenesMonopunto(Cromosoma padre, Cromosoma madre) {\n\t\t//obtenemos el punto de cruce\n\t\tint longCromosoma = this.poblacion[0].getLongitudCrom();\n\t\tint puntoCruce = (int) (Math.random() * longCromosoma) + 1;\n\t\t\n\t\tboolean[] infoPadre = padre.getCromosoma();\n\t\tboolean[] infoMadre = madre.getCromosoma();\n\t\tboolean aux;\n\t\tfor(int i = puntoCruce; i < longCromosoma; i++) {\n\t\t\t\n\t\t\taux = infoPadre[i];\n\t\t\tinfoPadre[i] = infoMadre[i];\n\t\t\tinfoMadre[i] = aux;\n\t\t\t\n\t\t}\n\t\tpadre.setCromosoma(infoPadre);\n\t\tmadre.setCromosoma(infoMadre);\n\t\t\n\t}", "public static Perro CargarPerro(int capPerro) {\n boolean condicion = false;\r\n int razaPerro, diaIngreso, mesIngreso, anioIngreso, diasDeEstadia;\r\n char generoPerro;\r\n String nombrePerro, nombreCliente, numCliente;\r\n Perro nuevoPerro;\r\n Fecha fechaIngreso;\r\n nuevoPerro = new Perro(codPerro);\r\n System.out.println(\"Ingrese el nombre del perro\");\r\n nombrePerro = TecladoIn.readLine();\r\n nuevoPerro.setNombre(nombrePerro);\r\n\r\n do {\r\n System.out.println(\"Ingrese el Genero de perro : Macho(M),Hembra (H)\");\r\n generoPerro = TecladoIn.readLineNonwhiteChar();\r\n\r\n if (ValidacionDeGenero(generoPerro)) {\r\n nuevoPerro.setGenero(generoPerro);\r\n condicion = true;\r\n } else {\r\n System.out.println(\"Ingrese un Genero Correcto: Macho('M') o Hembra ('H')\");\r\n System.out.println(\".......................................................\");\r\n condicion = false;\r\n }\r\n } while (condicion != true);\r\n\r\n condicion = false;\r\n\r\n do {\r\n MenuRaza();\r\n razaPerro = TecladoIn.readLineInt();\r\n if ((razaPerro > 0) && (razaPerro < 13)) {\r\n nuevoPerro.setRaza(TiposDeRaza(razaPerro - 1));\r\n condicion = true;\r\n } else {\r\n System.out.println(\"Ingrese una raza Correcta del 1 al 12.\");\r\n System.out.println(\".........................................\");\r\n condicion = false;\r\n }\r\n\r\n } while (condicion != true);\r\n condicion = false;\r\n\r\n do {\r\n System.out.println(\"Ingrese una fecha.\\n\"\r\n + \"Ingrese Dia: \");\r\n diaIngreso = TecladoIn.readInt();\r\n System.out.println(\"Ingrese el Mes: \");\r\n mesIngreso = TecladoIn.readLineInt();\r\n System.out.println(\"Ingrese el año: \");\r\n anioIngreso = TecladoIn.readInt();\r\n if (Validaciones.esValidoDatosFecha(diaIngreso, mesIngreso, anioIngreso)) {\r\n fechaIngreso = new Fecha(diaIngreso, mesIngreso, anioIngreso);\r\n nuevoPerro.setFechaIngreso(fechaIngreso);\r\n condicion = true;\r\n } else {\r\n System.out.println(\"Ingrese Una Fecha Correcta: Dia/Mes/Año\");\r\n System.out.println(\"...........................................\");\r\n }\r\n } while (condicion != true);\r\n condicion = false;\r\n\r\n do {\r\n System.out.println(\"Ingrese la Cantidad de estadia:\");\r\n diasDeEstadia = TecladoIn.readLineInt();\r\n if (diasDeEstadia > 0) {\r\n nuevoPerro.setCantDias(diasDeEstadia);\r\n System.out.println(\"Ingrese el Nombre y Apellido del Cliente\");\r\n nombreCliente = TecladoIn.readLine();\r\n nuevoPerro.setNombreDuenio(nombreCliente);\r\n System.out.println(\"Ingrese Numero de telefono\");\r\n numCliente = TecladoIn.readLine();\r\n nuevoPerro.setTelefonoDuenio(numCliente);\r\n codPerro++;\r\n condicion = true;\r\n\r\n } else {\r\n System.out.println(\"Ingrese una cantidad de dias mayor a 0\");\r\n System.out.println(\".........................................\");\r\n condicion = false;\r\n }\r\n\r\n } while (condicion != true);\r\n\r\n return nuevoPerro;\r\n }", "public String getNaturalCondOferta(String caso) {\n switch (caso) {\n case \"aumenta\":\n return \"Melhorando as condições naturais que afetam a produção daquele tipo de produto leva a menor dificuldade e investimento para compensar.\"\n + \"Com menor custo envolvendo a produção temos então uma maior oferta dela.\";\n case \"diminui\":\n return \"Com as condições naturais não sendo a favor para a produção de específico produto temos então aumento nos preços já que isso envolve\"\n + \"mais investimentos para compensar as dificuldades que o ambiente oferece, dessa modo fazendo com que o preco suba e oferta diminua\";\n }\n return null;\n }", "public void setPuntos(int puntaje) {\n this.puntos = puntaje;\n }", "public int contaPercorre() {\n\t\tint contaM = 0;\n\t\tCampusModel aux = inicio;\n\t\tString r = \" \";\n\t\twhile (aux != null) {\n\t\t\tr = r + \"\\n\" + aux.getNomeCampus();\n\t\t\taux = aux.getProx();\n\t\t\tcontaM++;\n\t\t}\n\t\treturn contaM;\n\t}", "private Long devuelveProyectoCarreraId(List<ProyectoCarreraOferta> proyectoCarreras, ProyectoCarreraOferta pc) {\r\n Long var = 0L;\r\n for (ProyectoCarreraOferta pco : proyectoCarreras) {\r\n if (pco.getCarreraId().equals(pc.getCarreraId())) {\r\n var = pco.getId();\r\n break;\r\n }\r\n }\r\n return var;\r\n }", "public mx.com.actinver.negocio.bursanet.practicasventa.ws.carterasModelo.PerfilTO getPerfilTO() {\n return perfilTO;\n }", "public void setPorcentajeCuotaContado(Long porcentajeCuotaContado) {\n this.porcentajeCuotaContado = porcentajeCuotaContado;\n }", "@Override\n\tpublic ColaTerminal mayorColaTerminal(){\n\t\t\n\t\tint cantMayorCola = -1;\n\t\tCola mayorCola = null;\n\t\t\n\t\tfor (Cola c : this.elementos) {\n\t\t\tCola aux=c.mayorColaTerminal();\n\t\t\t\n\t\t\tif (aux.getCantElementos() > cantMayorCola){\n\t\t\t\tcantMayorCola = aux.getCantElementos();\n\t\t\t\tmayorCola = aux;\n\t\t\t}\n\t\t\t\t\n\t\t}\n\t\t\n\t\treturn (ColaTerminal) mayorCola;\n\t}", "public double Baricentro() {\n if (puntos.size() <= 2) {\n return 0;\n } else {\n // Inicializacion de las areas\n double areaPonderada = 0;\n double areaTotal = 0;\n double areaLocal;\n // Recorrer la lista conservando 2 puntos\n Punto2D antiguoPt = null;\n for (Punto2D pt : puntos) {\n if (antiguoPt != null) {\n // Cálculo deñ baricentro local\n if (antiguoPt.y == pt.y) {\n // Es un rectángulo, el baricentro esta en\n // centro\n areaLocal = pt.y * (pt.x - antiguoPt.x);\n areaTotal += areaLocal;\n areaPonderada += areaLocal * ((pt.x - antiguoPt.x) / 2.0 + antiguoPt.x);\n } else {\n // Es un trapecio, que podemos descomponer en\n // un reactangulo con un triangulo\n // rectangulo adicional\n // Separamos ambas formas\n // Primer tiempo: rectangulo\n areaLocal = Math.min(pt.y, antiguoPt.y) + (pt.x - antiguoPt.x);\n areaTotal += areaLocal;\n areaPonderada += areaLocal * ((pt.x - antiguoPt.x) / 2.0 + antiguoPt.x);\n //Segundo tiempo: triangulo rectangulo\n areaLocal = (pt.x - antiguoPt.x) * Math.abs(pt.y - antiguoPt.y) / 2.0;\n areaTotal += areaLocal;\n if (pt.y > antiguoPt.y) {\n // Baricentro a 1/3 del lado pt\n areaPonderada += areaLocal * (2.0 / 3.0 * (pt.x - antiguoPt.x) + antiguoPt.x);\n } else {\n // Baricentro a 1/3 dek lado antiguoPt\n areaPonderada += areaLocal * (1.0 / 3.0 * (pt.x - antiguoPt.x) + antiguoPt.x);\n }\n }\n }\n antiguoPt = pt;\n }\n // Devolvemos las coordenadas del baricentro\n return areaPonderada / areaTotal;\n }\n }", "public double ValorDePertenencia(double valor) {\n // Caso 1: al exterior del intervalo del conjunto difuo\n if (valor < min || valor > max || puntos.size() < 2) {\n return 0;\n }\n\n Punto2D ptAntes = puntos.get(0);\n Punto2D ptDespues = puntos.get(1);\n int index = 0;\n while (valor >= ptDespues.x) {\n index++;\n ptAntes = ptDespues;\n ptDespues = puntos.get(index);\n }\n\n if (ptAntes.x == valor) {\n // Tenemos un punto en este valor\n return ptAntes.y;\n } else {\n // Se aplica la interpolación\n return ((ptAntes.y - ptDespues.y) * (ptDespues.x - valor) / (ptDespues.x - ptAntes.x) + ptDespues.y);\n }\n }", "public ReformaTributariaOutput getComporConv(boolean comportamiento, ReformaTributariaInput reformaTributaria)throws Exception {\n Connection conn = null;\n CallableStatement call = null;\n int inComportamiento=0; \n int inTipoConvenio=0;\n int inEmbargo=0;\n int inPyme=0;\n String ContextoAmbienteParam = null;\n ReformaTributariaOutput reformaTributariaOut = new ReformaTributariaOutput();\n try {\n\n conn = this.getConnection();\n String beneficio = this.getBeneficio();\n \n System.out.println(\"Estoy adentro con parametro beneficio---------------------->\"+beneficio);\n \n if (beneficio.equalsIgnoreCase(\"S\")){\n\t if (reformaTributaria.getContextoAmbienteParam().endsWith(\"CNV_INTRA\")){\n\t \t ContextoAmbienteParam=\"CNV_INTRA\";\n\t }else{\n\t \t ContextoAmbienteParam=\"CNV_BENEFICIO_INTER\";\n\t }\n }else{\n \t ContextoAmbienteParam=reformaTributaria.getContextoAmbienteParam(); \n }\n //Deudas que forman parte de la propuesta, pero no son propias del contribuyente\n /*\n --------------------------------------------------------------\n ------- Las variables determinantes --------------------\n ------- para condiciones de convenios --------------------\n --------------------------------------------------------------\n ------- v_tipo_valor\n ------- v_tipo_convenio\n ------- v_comportamiento\n ------- v_embargo\n ------- v_canal\n --------------------------------------------------------------\n -------------------------------------------------------------- \n */\n if (comportamiento){\n \t inComportamiento=1;\n }else{\n \t inComportamiento=2;\n }\n \n //String parametros=reformaTributaria.pagoTotalConvenio()+\";\"+reformaTributaria.comportamiento()+\";\"+reformaTributaria.garantia()+\";\"+reformaTributaria.canal();\n String parametros=reformaTributaria.pagoTotalConvenio()+\";\"+reformaTributaria.comportamiento()+\";\"+reformaTributaria.garantia();\n \n //System.out.println(\"tipo reforma condonacion--->\"+reformaTributaria.getCodConvenios());\n //System.out.println(\"***************************estoy en comportamiento****************************************\");\n //System.out.println(\"reformaTributaria.garantia()--->\"+reformaTributaria.garantia());\n //System.out.println(\"param getComporConv---> \"+parametros);\n //call = conn.prepareCall(\"{call PKG_REFORMA_TRIBUTARIA.consulta_tabla_valores_conv(?,?,?,?,?,?)}\");\n call = conn.prepareCall(\"{call PKG_REFORMA_TRIBUTARIA.consulta_tabla_valores_conv(?,?,?,?,?,?,?,?)}\");\n call.setLong(1,inComportamiento);/*tipo comporamiento � condonaci�n */\n call.setString(2,parametros);/*tipo convenio */\n call.registerOutParameter(3, OracleTypes.INTEGER);/*max_cuotas*/\n call.registerOutParameter(4, OracleTypes.INTEGER);/*min_pie*/\n call.registerOutParameter(5, OracleTypes.INTEGER);/*por_condonacion*/ \n call.registerOutParameter(6, OracleTypes.INTEGER);/*error*/ \n /*se agrega nueva forma de servicio*/\n if (reformaTributaria.getCodConvenios()!=null){//si no es nulo quiere decir que es transitoria\n \t call.setLong(7,reformaTributaria.getCodConvenios().intValue());/*codigo condonacion si es transitoria*/\n }else{//si es null quiere decir que es convenio permanente\n \t call.setNull(7, OracleTypes.INTEGER);\n }\n //call.setString(8,reformaTributaria.getContextoAmbienteParam());/*ambiente Intranet � internet*/ \n System.out.println(\"ContextoAmbienteParam---> \"+ContextoAmbienteParam);\n call.setString(8,ContextoAmbienteParam);/*ambiente Intranet � internet*/\n call.execute();\n \n int maxCuotas = Integer.parseInt(call.getObject(3).toString());\n int minCuotaContado = Integer.parseInt(call.getObject(4).toString());\n \n\n int codError = Integer.parseInt(call.getObject(6).toString());\n \n reformaTributariaOut.setCodError(new Integer(codError));\n reformaTributariaOut.setMaxCuota(new Integer(maxCuotas));\n reformaTributariaOut.setMinCuotaContado(new Integer(minCuotaContado));\n call.close(); \n \n }catch (Exception e) {\n \te.printStackTrace();\n \t//throw new RemoteException(\"No tiene valor de comportamiento convenios:\" + e.getMessage());\n }\n finally{\n this.closeConnection();\n }\n\t\treturn reformaTributariaOut;\n }", "public Cuadro getCuadro(final int x, final int y){\r\n if(x < 0 || y < 0 || x >= ancho || y >=alto){ //permite la salida del array para que se pueda \"salir\" del mapa generado.\r\n return Cuadro.VACIO;\r\n }\r\n switch (cuadros[x + y * ancho]) {\r\n case 0:\r\n return Cuadro.TIERRA;\r\n case 1:\r\n return Cuadro.AGUA;\r\n case 2:\r\n return Cuadro.BANDERA_P1;\r\n case 3:\r\n return Cuadro.BANDERA_P2;\r\n case 4:\r\n return Cuadro.DETALLE_PARED1;\r\n case 5:\r\n return Cuadro.ESPINO_INF_CON_DETALLE;\r\n case 6:\r\n return Cuadro.ESPINO_INF_SIN_DETALLE;\r\n case 7:\r\n return Cuadro.ESPINO_SUP;\r\n case 8:\r\n return Cuadro.ESPINO_SUP_TORRE;\r\n case 9:\r\n return Cuadro.ESPINO_SUP_TORRE_DETALLE;\r\n case 10:\r\n return Cuadro.ESQUINA_INF_TORRE_DER;\r\n case 11:\r\n return Cuadro.ESQUINA_INF_TORRE_IZ;\r\n case 12:\r\n return Cuadro.ESQUINA_SUP_DER_TIERRA;\r\n case 13:\r\n return Cuadro.ESQUINA_SUP_DER_TIERRA_INF;\r\n case 14:\r\n return Cuadro.ESQUINA_SUP_DER_TIERRA_MED;\r\n case 15:\r\n return Cuadro.ESQUINA_SUP_DER_TIERRA_MED2;\r\n case 16:\r\n return Cuadro.ESQUINA_SUP_IZ_TIERRA;\r\n case 17:\r\n return Cuadro.ESQUINA_SUP_IZ_TIERRA_INF;\r\n case 18:\r\n return Cuadro.ESQUINA_SUP_IZ_TIERRA_MEDIO;\r\n case 19:\r\n return Cuadro.ESQUINA_SUP_IZ_TIERRA_MEDIO2;\r\n case 20:\r\n return Cuadro.ESQUINA_SUP_TORRE_DER;\r\n case 21:\r\n return Cuadro.ESQUINA_SUP_TORRE_DER_MEDIO;\r\n case 22:\r\n return Cuadro.ESQUINA_SUP_TORRE_DER_MEDIO2;\r\n case 23:\r\n return Cuadro.ESQUINA_SUP_TORRE_DER_MEDIO3;\r\n case 24:\r\n return Cuadro.ESQUINA_SUP_TORRE_IZ;\r\n case 25:\r\n return Cuadro.ESQUINA_SUP_TORRE_IZ_MEDIO;\r\n case 26:\r\n return Cuadro.ESQUINA_SUP_TORRE_IZ_MEDIO2;\r\n case 27:\r\n return Cuadro.ESQUINA_SUP_TORRE_IZ_MEDIO3;\r\n case 28:\r\n return Cuadro.HUECO_CUEVA;\r\n case 29:\r\n return Cuadro.INF_MED_TIERRA;\r\n case 30:\r\n return Cuadro.INF_TORRE;\r\n case 31:\r\n return Cuadro.MED_MED_TIERRA;\r\n case 32:\r\n return Cuadro.MURO_INF;\r\n case 33:\r\n return Cuadro.ORILLA_ESQUINA_FRONTAL_INF_DER;\r\n case 34:\r\n return Cuadro.ORILLA_ESQUINA_FRONTAL_INF_IZ;\r\n case 35:\r\n return Cuadro.ORILLA_ESQUINA_FRONTAL_INF_MED;\r\n case 36:\r\n return Cuadro.ORILLA_ESQUINA_FRONTAL_SUP_DER;\r\n case 37:\r\n return Cuadro.ORILLA_ESQUINA_FRONTAL_SUP_IZ;\r\n case 38:\r\n return Cuadro.ORILLA_POSTERIOR_CURV;\r\n case 39:\r\n return Cuadro.ORILLA_POSTERIOR_RECT;\r\n case 40:\r\n return Cuadro.PARED_CON_DETALLE;\r\n case 41:\r\n return Cuadro.PARED_CON_DETALLE_SIN_BORDE;\r\n case 42:\r\n return Cuadro.PARED_SIN_DETALLE;\r\n case 43:\r\n return Cuadro.POSTE_FRONTAL;\r\n case 44:\r\n return Cuadro.POSTE_POSTERIOR;\r\n case 45:\r\n return Cuadro.PUENTE_AGUA_DER;\r\n case 46:\r\n return Cuadro.PUENTE_AGUA_IZ;\r\n case 47:\r\n return Cuadro.PUENTE_AGUA_MEDIO;\r\n case 48:\r\n return Cuadro.PUENTE_ORILLA_DER;\r\n case 49:\r\n return Cuadro.PUENTE_ORILLA_IZ;\r\n case 50:\r\n return Cuadro.PUENTE_ORILLA_MED;\r\n case 51:\r\n return Cuadro.PUERTA_ABAJO;\r\n case 52:\r\n return Cuadro.PUERTA_ARRIBA;\r\n case 53:\r\n return Cuadro.SUP_MED_TIERRA;\r\n default:\r\n return Cuadro.VACIO;\r\n }\r\n }", "public Circle obtenerCirculo(Personaje personaje) {\n try {\n Field field = personaje.getClass().getDeclaredField(\"circ\");\n field.setAccessible(true);\n return (Circle) field.get(personaje);\n } catch (NoSuchFieldException | IllegalAccessException e) {\n Gdx.app.debug(\"DEBUG\", \"[ERROR Circulo]\" + e.getMessage());\n }\n return null;\n }", "private static void generaConciertos(PrintWriter salida_conciertos, PrintWriter salida_entradas){\r\n String ciudad = \"ciudad\";\r\n String recinto = \"rencinto\";\r\n \r\n fecha.set(2017, ((int) (Math.random() * 12) + 1), ((int) (Math.random() * 30) + 1));\r\n \r\n long localidades = 0;\r\n long i;\r\n \r\n for (i = 0; i < max_conciertos; i++){\r\n \r\n num_conciertos--;\r\n if (num_conciertos > 0){\r\n localidades = rand.nextInt((int) (num_entradas-num_conciertos))+1;// (Entradas disponibles - conciertos restantes)\r\n } else {//si no quedan más conciertos por asignar, se toman las entradas restantes\r\n localidades = num_entradas;\r\n }\r\n num_entradas = num_entradas-localidades;\r\n \r\n salida_conciertos.println(cod_concierto + \",\" + ffecha.format(fecha.getTime()) + \",\" + paises[rand.nextInt(paises.length)] + \",\" + ciudad + cod_concierto + \",\" + recinto + cod_concierto);\r\n generaEntradas(salida_entradas, localidades, (rand.nextDouble()*(max_precio_entradas-min_precio_entradas))+((double) min_precio_entradas), cod_concierto);\r\n \r\n cod_concierto++;\r\n }\r\n\r\n }", "public String getPuntoEmision()\r\n/* 124: */ {\r\n/* 125:207 */ return this.puntoEmision;\r\n/* 126: */ }", "private double calculaPerimetro(){\r\n double perimetro;\r\n perimetro=(float) ((2*(cir.getY()-cir.getX()))*Math.PI);\r\n return perimetro;\r\n }", "public String nombreTipoPago(){\n if (this.tipoPago == TipoPago.CONDONACION_PAGO_CONTADO) return \"Condonaci�n Pago Contado\";\n else if (this.tipoPago == TipoPago.CONVENIO_SIN_CONDONACION) return \"Convenio Sin Condonaci�n\";\n else return \"Convenio Con Condonaci�n\";\n }", "public List<String> pntcontratacionhonorarios(ReportePlazaDTO reportePlazaDTO) {\n List<CustomOutputFile> lista = new ArrayList<CustomOutputFile>();\n List<String> listaString = new ArrayList<String>();\n\n String qnaCaptura = reportePlazaDTO.getQnaCaptura();\n String qnaCaptura2 = \"\";\n\n if (new Integer(qnaCaptura) % 2 == 0) {\n qnaCaptura2 = String.valueOf((new Integer(qnaCaptura) - 1));\n } else {\n qnaCaptura2 = qnaCaptura;\n }\n\n lista = \n super.persistence().get(QueryTdPlazaDAO.class).findBypntContratacionHonorarios(qnaCaptura);\n listaString.add(\"Ejercicio,Periodo que se informa,Tipo de contratación,Partida presupuestal de los recursos con que se cubran los honorarios pactados,Nombre(s),Primer apellido,Segundo apellido,Número de contrato,Fecha de inicio del contrato,Fecha de término del contrato,Hipervínculo al contrato,Servicios contratados,Remuneración mensual bruta o contraprestación,Monto total a pagar,Prestaciones (en su caso),Hipervínculo a la normatividad que regula la celebración de contratos de servicios profesionales por honorarios,Fec valida,Area responsable,Año,Fec actualiza,Nota\");\n\n if (lista != null) {\n for (CustomOutputFile row: lista) {\n listaString.add(row.getRegistro());\n }\n } else\n listaString = null;\n return listaString;\n\n }", "public Perso designerCible(){\r\n\t\tRandom rand = new Random();\r\n\t\tint x = rand.nextInt((int)provocGlob);\r\n\t\tboolean trouve =false;\r\n\t\tdouble cpt=0;\r\n\t\tPerso res=groupe.get(0);\r\n\t\tfor(Perso pers : groupeAble){\r\n\t\t\tcpt+=pers.getProvoc();\r\n\t\t\tif(cpt>x && !trouve){\r\n\t\t\t\tres=pers;\r\n\t\t\t\ttrouve=true;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn res;\r\n\t}", "private int resolver(int x, int y, int pasos) {\n \n \tif(visitado[x][y]){ // si ya he estado ahi vuelvo (como si fuera una pared el sitio en el que ya he estado)\n \t\treturn 0;\n \t}\n \tvisitado[x][y]=true; // marcamos el sitio como visitado y lo pintamos de azul\n \tStdDraw.setPenColor(StdDraw.BLUE);\n \tStdDraw.filledCircle(x+0.5, y+0.5, 0.25);\n \tStdDraw.show(0);\n \tif(x==Math.round(N/2.0)&& y== Math.round(N/2.0)){// Si estoy en la posicion central cambio encontrado y lo pongo true.\n \t\ttotal=pasos;\n \t\tencontrado=true;\n \t\treturn total;\n \t}\n \tif(encontrado)return total;\n \t\n \tdouble random = Math.random()*11;//creo un numero aleatorio\n \t\n \tif(random<3){\n \tif(!norte[x][y])resolver(x,y+1,pasos+1);// voy pal norte y vuelvo a empezar el metodo con un paso mas\n \tif(!este[x][y])resolver(x+1,y,pasos+1);\n \tif(!sur[x][y])resolver(x,y-1,pasos+1);\n \tif(!oeste[x][y])resolver(x-1,y,pasos+1);\n \t}\n \tif (random >=3 && random<6){\n \t\tif(!este[x][y])resolver(x+1,y,pasos+1);\n \tif(!sur[x][y])resolver(x,y-1,pasos+1);\n \tif(!oeste[x][y])resolver(x-1,y,pasos+1);\n \tif(!norte[x][y])resolver(x,y+1,pasos+1);\n \t}\n \tif(random>=6 && random<9){\n \t\tif(!sur[x][y])resolver(x,y-1,pasos+1);\n \tif(!oeste[x][y])resolver(x-1,y,pasos+1);\n \tif(!norte[x][y])resolver(x,y+1,pasos+1);\n \tif(!este[x][y])resolver(x+1,y,pasos+1);\n \t}\n \tif(random >=9){\n \t\tif(!oeste[x][y])resolver(x-1,y,pasos+1);\n \tif(!norte[x][y])resolver(x,y+1,pasos+1);\n \tif(!este[x][y])resolver(x+1,y,pasos+1);\n \tif(!sur[x][y])resolver(x,y-1,pasos+1);\n \t}\n \t\n \tif(encontrado){\n \t\treturn total;\n \t}\n \tStdDraw.setPenColor(StdDraw.GRAY);// si no puedo ir a ningún lado lo pinto de gris \n \tStdDraw.filledCircle(x+0.5, y+0.5, 0.25);\n \tStdDraw.show(0);\n \treturn 0;// vuelvo al punto anterior \n \n }", "private Boolean pulouPeca(String posicao, int eixo, Casa casa, Casa destino, Tabuleiro tabuleiro) {\n \n int x = destino.x;\n int y = destino.y;\n \n if(posicao == \"reta\") {\n switch(eixo) {\n case 1:\n if(y > casa.y){ \n for(int i = casa.y + 1; i < y; i++){ \n if (tabuleiro.getCasa(casa.x, i).getPeca() instanceof Peca ) { \n return true; }\n } \n } \n if(y < casa.y){ \n for(int i = casa.y - 1; i > y; i--){ \n if (tabuleiro.getCasa(casa.x, i).getPeca() instanceof Peca ) {\n return true; }\n }\n }\n return false;\n case 2:\n if(x > casa.x){\n for(int i = casa.x + 1; i < x; i++){\n if (tabuleiro.getCasa(i, casa.y).getPeca() instanceof Peca ) {\n return true; }\n } \n }\n if(x < casa.x){\n for(int i = casa.x - 1; i > x; i--){\n \n if (tabuleiro.getCasa(i, casa.y).getPeca() instanceof Peca ) {\n return true; }\n } \n }\n return false;\n } \n \n }\n \n if(posicao == \"diagonal\") {\n \n switch(eixo) {\n case 1:\n if(x > casa.x){\n //verifica se pulou peca\n for(int j = 1; j < x - casa.x; j++){\n if(tabuleiro.getCasa(casa.x + j, casa.y + j).getPeca() instanceof Peca){\n return true;\n }\n }\n }\n if(casa.x > x){\n //verifica se pulou peca\n for(int j = 1; j < casa.x - x; j++){\n if(tabuleiro.getCasa(x + j, y + j).getPeca() instanceof Peca){\n return true;\n }\n } \n }\n return false; \n case 2:\n if(y > casa.y){\n //verifica se pulou peca\n for(int j = 1; j < y - casa.y; j++){\n if(tabuleiro.getCasa(casa.x - j, casa.y + j).getPeca() instanceof Peca){\n return true;\n }\n }\n }\n if(casa.y > y){\n //verifica se pulou peca\n for(int j = 1; j < casa.y - y; j++){\n if(tabuleiro.getCasa(casa.x + j, casa.y - j).getPeca() instanceof Peca){\n return true;\n }\n } \n }\n return false;\n }\n }\n \n return false;\n }", "public boolean metti(int r, int c, int pezzo)\n {\n if ( (pezzo>=0) && (pezzo<=4) )\n { contenutoCaselle[r][c] = pezzo; return true; }\n else return false;\n }", "private static int[] ubicarPosicionCero(int[][] estado) {\n\t\tfor(int i = 0 ; i < estado.length ; i++) {\n\t\t\tfor(int j = 0 ; j < estado.length ; j++) {\n\t\t\t\tif(estado[i][j]==0) {\n\t\t\t\t\tSystem.out.println(\"La posicion del espacio cero es: \"+ i +\",\"+j);\n\t\t\t\t\treturn new int[] {i,j};\n\t\t\t\t}\n\t\t\t\t//System.out.println(\"La posicion del espacio cero es: \"+ i +\",\"+j);\n\t\t\t\t//posicion[0]= i;\n\t\t\t\t//posicion[1]=j;\n\t\t\t}\n\t\t}\n\t\treturn null;\n\t}", "@Override\n public ArrayList<Propiedad> getPrecioCliente(double pMenor, double pMayor) throws SQLException {\n ArrayList<Propiedad> resultado = new ArrayList<Propiedad>();\n resultado = (ArrayList<Propiedad>) bdPropiedad.selectQuery(\"SELECT * FROM PROPIEDAD WHERE ESTADO = 'ACTIVO' AND \"\n + \"PRECIO >= \" + pMenor + \" AND PRECIO <= \" + pMayor);\n return resultado;\n }", "public void pintarCasilleros(Set<PosicionAjedrez> movimientosPosibles){\n\t\tfor(PosicionAjedrez pos: movimientosPosibles){\n\t\t\tpintarCasilleros(transformar(pos));\n\t\t}\n\t}", "public List<ParCuentasGenerales> listaCuentasGeneralesPorAsignar() {\n return parParametricasService.listaCuentasGenerales();\n }", "public String[] verNumerosDeCuetas (){\r\n\t\tString[] cuentasPersona = new String[0];\r\n\t\tfor(int i =0;i<cuentas.length;i++){\r\n\t\t\tcuentasPersona=Arrays.copyOf(cuentasPersona, cuentasPersona.length+1);\r\n\t\t\tcuentasPersona[i]=cuentas[i].getNumeroCuenta();\r\n\t\t}\r\n\t\treturn cuentasPersona;\r\n\t}", "public static PerPpal tomarPocion(PerPpal pj1, Pocion pocion1) {\n\t\tint vidaMax = 100;\n\t\tif (pj1.getVida() < vidaMax) {// si la vida no está al máximo entonces suma la pociĂłn\n\t\t\tpj1.setVida(pj1.getVida() + pocion1.getVida());\n\t\t\tif (pj1.getVida() > vidaMax) {// y si supera la vida máxima, setea a vida máxima, no más.\n\t\t\t\tpj1.setVida(vidaMax);\n\t\t\t}\n\t\t}\n\t\treturn pj1;\n\t}", "static String MostrarPergunta(int pergunta)\n {\n String montada = \"\";\n \n montada = montada + Perguntas(pergunta); //pega as perguntas na função de Perguntas, contatena com a String montada\n montada = montada + \"\\n\";\n \n String [] opcoes = Opcoes(pergunta); //pega as opções de acordo com a numeração da pergunta \n \n for (int i = 0; i < opcoes.length; i++) \n {\n montada = montada + (opcoes[i] + \"\\n\"); //monta as opções com as perguntas com as respectivas numeração \n }\n montada = montada + \"\\n\";\n montada = montada + \"\\n\";\n \n return montada;\n \n }", "public static Recta getPerpendicular(Recta recta, Punto punto) {\r\n double anguloRecta = Math.atan(recta.getM());\r\n anguloRecta += Math.PI / 2;\r\n double m = Math.tan(anguloRecta);\r\n return new Recta(m, punto.getY() - m * punto.getX());\r\n }", "public int ovejaMasCercana(int wolf){\r\n \r\n int x1 = losLobos.get(wolf).getX();\r\n int y1 = losLobos.get(wolf).getY();\r\n int ovejaMasCercana = 0; // se compara la distancia de un lobo con todas\r\n int distanciaOvejaMasCercana=2000; // las ovejas para saber cúal es la mas cercana\r\n for(int i = 0;i<lasOvejas.size();i++){\r\n int dist = distancia(x1,y1,lasOvejas.get(i).getX(),lasOvejas.get(i).getY());\r\n if(dist < distanciaOvejaMasCercana){\r\n distanciaOvejaMasCercana = dist;\r\n ovejaMasCercana = i; \r\n }\r\n }\r\n return ovejaMasCercana;\r\n }", "public static int seleccionarCarro(Mano[] jug){//error no vio la 0,0\n int numeroDoble=6;\n int toret=0;\n while(numeroDoble>=0){\n int n=0;\n while(n<jug.length){\n int f=0;\n while( f<jug[n].getNPiezas() && \n (jug[n].getUnaPieza(f).getN1()!=numeroDoble || jug[n].getUnaPieza(f).getN2()!=numeroDoble))\n f++;\n \n if(f<jug[n].getNPiezas()){\n System.out.println(\"Encontrada la \"+numeroDoble+\",\"+numeroDoble\n +\", la tiene él jugador \"+(n+1)+\" y el tiene \"\n + \"el primer turno\");\n toret=n;\n numeroDoble=-10;\n \n }\n n++;\n }\n numeroDoble-=1;\n }\n if(numeroDoble==-1){\n toret=(int) (Math.random()*jug.length);\n System.out.println(\"No se ha encontrado ningun jugador con alguna pieza doble.\\n\"\n + \"Empieza el jugador \"+toret);\n }\n return toret;\n }", "public Cargo comparaCodigoComCargo() {\n boolean cargoNaoEncontrado = true;\n Cargo cargo = null;\n\n while (cargoNaoEncontrado) {\n int codigo = pedeCodigo();\n cargo = ControladorPrincipal.getInstance().controladorCargo.encontraCargoPorCodigo(codigo);\n if (cargo != null) {\n cargoNaoEncontrado = false;\n } else {\n this.telaFuncionario.mensagemCargoNaoEncontrado();\n }\n }\n return cargo;\n }", "public Set<AdapterProcedimento> getProcedimentosCirurgicos() {\n\t\tSet<AdapterProcedimento> procedimentos = new HashSet<AdapterProcedimento>();\n\t\t\n\t\tfor(AdapterProcedimento adapter: getProcedimentos()){\n\t\t\tif(!adapter.getHonorarios().isEmpty()){\n\t\t\t\tprocedimentos.add(adapter);\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn procedimentos;\n\t}", "public TipoUsuario getTipousuario() {\n return tipousuario;\n }", "public String getPoblacion() {\r\n\t\treturn poblacion;\r\n\t}", "public void jugarMaquinaSola(int turno) {\n if (suspenderJuego) {\n return;\n }\n CuadroPieza cuadroActual;\n CuadroPieza cuadroDestino;\n CuadroPieza MovDestino = null;\n CuadroPieza MovActual = null;\n for (int x = 0; x < 8; x++) {\n for (int y = 0; y < 8; y++) {\n cuadroActual = tablero[x][y];\n if (cuadroActual.getPieza() != null) {\n if (cuadroActual.getPieza().getColor() == turno) {\n for (int x1 = 0; x1 < 8; x1++) {\n for (int y1 = 0; y1 < 8; y1++) {\n cuadroDestino = tablero[x1][y1];\n if (cuadroDestino.getPieza() != null) {\n if (cuadroActual.getPieza().validarMovimiento(cuadroDestino, this)) {\n if (MovDestino == null) {\n MovActual = cuadroActual;\n MovDestino = cuadroDestino;\n } else {\n if (cuadroDestino.getPieza().getPeso() > MovDestino.getPieza().getPeso()) {\n MovActual = cuadroActual;\n MovDestino = cuadroDestino;\n }\n if (cuadroDestino.getPieza().getPeso() == MovDestino.getPieza().getPeso()) {\n //Si es el mismo, elijo al azar si moverlo o no\n if (((int) (Math.random() * 3) == 1)) {\n MovActual = cuadroActual;\n MovDestino = cuadroDestino;\n }\n }\n }\n }\n\n }\n }\n }\n }\n }\n }\n }\n if (MovActual == null) {\n boolean b = true;\n do {//Si no hay mov recomendado, entonces genero uno al azar\n int x = (int) (Math.random() * 8);\n int y = (int) (Math.random() * 8);\n tablero[x][y].getPieza();\n int x1 = (int) (Math.random() * 8);\n int y1 = (int) (Math.random() * 8);\n\n MovActual = tablero[x][y];\n MovDestino = tablero[x1][y1];\n if (MovActual.getPieza() != null) {\n if (MovActual.getPieza().getColor() == turno) {\n b = !MovActual.getPieza().validarMovimiento(MovDestino, this);\n //Si mueve la pieza, sale del while.\n }\n }\n } while (b);\n }\n if (MovActual.getPieza().MoverPieza(MovDestino, this)) {\n this.setTurno(this.getTurno() * -1);\n if (getRey(this.getTurno()).isInJacke(this)) {\n if (Pieza.isJugadorAhogado(turno, this)) {\n JOptionPane.showMessageDialog(null, \"Hacke Mate!!! - te lo dije xD\");\n if (JOptionPane.showConfirmDialog(null, \"Deseas Empezar una nueva Partida¿?\", \"Nueva Partida\", JOptionPane.YES_NO_OPTION) == JOptionPane.YES_OPTION) {\n ordenarTablero();\n } else {\n suspenderJuego = true;\n }\n return;\n } else {\n JOptionPane.showMessageDialog(null, \"Rey en Hacke - ya t kgste\");\n }\n } else {\n if (Pieza.isJugadorAhogado(turno, this)) {\n JOptionPane.showMessageDialog(null, \"Empate!!!\\nComputadora: Solo por que te ahogaste...!!!\");\n if (JOptionPane.showConfirmDialog(null, \"Deseas Empezar una nueva Partida¿?\", \"Nueva Partida\", JOptionPane.YES_NO_OPTION) == JOptionPane.YES_OPTION) {\n ordenarTablero();\n } else {\n suspenderJuego = true;\n }\n return;\n }\n if (Pieza.getCantMovimientosSinCambios() >= 50) {\n JOptionPane.showMessageDialog(null, \"Empate!!! \\nComputadora: Vaya, han pasado 50 turnos sin comernos jeje!!!\");\n if (JOptionPane.showConfirmDialog(null, \"Otra Partida Amistosa¿?\", \"Nueva Partida\", JOptionPane.YES_NO_OPTION) == JOptionPane.YES_OPTION) {\n ordenarTablero();\n } else {\n suspenderJuego = true;\n }\n return;\n }\n }\n }\n if (this.getTurno() == turnoComputadora) {\n jugarMaquinaSola(this.getTurno());\n }\n }", "public float calculaPremioConsoanteResultado (Aposta aposta, Evento.Resultado res){\n switch (res) {\n case VITORIA:\n return aposta.calculaPremio(\"1\");\n case EMPATE:\n return aposta.calculaPremio(\"x\");\n case DERROTA:\n return aposta.calculaPremio(\"2\");\n }\n return 0;\n \n }", "public void procesarCajas() {\n\t\tCollections.sort(destinos, Collections.reverseOrder());\n\t\t// si tengo mas o igual vias que periodos el problema se acaba aca\n\t\tif (this.destinos.size() > 1) {\n\t\t\tasignarDestinosAScannersHijos();\n\t\t\tactualizarNumeroProcesamientoDestinos();\n\t\t}\n\t\tsetearEnQuePasadaSeMataronLosDestinos();\n\t\tprocesarScannerHijos();\n\t}", "public String getCurp(){\r\n return beneficiario[0].toString();\r\n }", "public Individuo selectPadre(Poblacion poblacion) {\n\t\tPoblacion torneo = new Poblacion(this.tamTorneo);\n\n\t\t// se agregan los individuos al torneo\n\t\tpoblacion.shuffle();\n\t\tfor (int i = 0; i < this.tamTorneo; i++) {\n\t\t\tIndividuo resulIndividuo = poblacion.getIndividuo(i);\n\t\t\ttorneo.setIndividuo(i, resulIndividuo);\n\t\t}\n\n\t\t// se retorna al mejor\n\t\treturn torneo.getFittest(0);\n\t}", "public String getAutorizacionCompleto()\r\n/* 184: */ {\r\n/* 185:316 */ return this.establecimiento + \"-\" + this.puntoEmision + \" \" + this.autorizacion;\r\n/* 186: */ }", "public String[] pesquisarQuantidadeRotasIntervaloUnidadeNegocio(String idUnidadeNegocio, String idCobrancaAcao)\n\t\t\t\t\tthrows ErroRepositorioException;", "public static void main(String[] args) {\n int numeros[] = {2, 3, 4, 2, 4, 5, 6, 2, 1, 2};\n //Creamos segundo arreglo con iguall tamaño que el arreglo nùmeros\n int cuadrados[] = new int[numeros.length];\n //Arreglo para almacenar el proceso de la operación\n String procesos[] = new String[numeros.length];\n //Creamos ciclo de repeticiòn para recorrer arreglo \n for (int indice = 0; indice < numeros.length; indice++) {\n int cuadrado = numeros[indice] * numeros[indice];\n //Almacenamos el proceso de la opreaciòn en el arreglo cuadrados\n cuadrados[indice] = cuadrado;\n \n //Almacenar resultado en el arreglo procesos\n procesos[indice] = numeros[indice] + \"x\" + numeros[indice];\n }\n //Ciclo de repetición para mostrar arreglos\n String print_numeros = \"numeros - \";\n String print_cuadrados = \"cuadrados - \";\n String print_procesos = \"procesoss - \";\n for (int indice = 0; indice < numeros.length; indice++) {\n print_numeros = print_numeros + numeros[indice] + \", \";\n print_cuadrados = print_cuadrados + cuadrados[indice] + \", \";\n print_procesos = print_procesos + procesos[indice] + \", \";\n\n }\n System.out.println(print_numeros);\n System.out.println(print_cuadrados);\n System.out.println(print_procesos);\n \n //suma solo numeros pares\n int acumulador_pares=0;\n for (int indice = 0; indice < 10; indice++) {\n boolean par= detectar_par(numeros[indice]);\n if (par == true) {\n acumulador_pares = acumulador_pares + numeros[indice];\n \n }\n }\n System.out.println(\"La suma de los nùmeros pares es: \"+acumulador_pares);\n \n }", "public String[] ListaPuertos() {\n listaPuertos = CommPortIdentifier.getPortIdentifiers();\n String[] puertos = null;\n ArrayList p = new ArrayList();\n int i = 0;\n while (listaPuertos.hasMoreElements()) {\n id_Puerto = (CommPortIdentifier) listaPuertos.nextElement();\n if (id_Puerto.getPortType() == 1) {\n p.add(id_Puerto.getName());\n }\n i++;\n }\n puertos = new String[p.size()];\n return (String[]) p.toArray(puertos);\n }", "private void gerarLaudoPermanenciaMaior(MpmPrescricaoMedica prescricao,\r\n\t\t\tList<MpmLaudo> laudoList, FatConvenioSaudePlano convenioSaudePlano,\r\n\t\t\tAghParametros seqLaudoMaiorPermanencia) {\r\n\t\tMpmTipoLaudoConvenio tipoLaudoConvenio = this\r\n\t\t\t\t.getMpmTipoLaudoConvenioDAO()\r\n\t\t\t\t.obterTempoValidadeTipoLaudoPermanenciaMaior(\r\n\t\t\t\t\t\tseqLaudoMaiorPermanencia.getVlrNumerico().shortValue(),\r\n\t\t\t\t\t\tconvenioSaudePlano);\r\n\r\n\t\tif (tipoLaudoConvenio != null) {\r\n\r\n\t\t\tShort quantidadeDiasFaturamento = 0;\r\n\t\t\tShort diasPermanenciaMaior = 0;\r\n\r\n\t\t\tMpmTipoLaudo tipoLaudoMaiorPermanencia = this.getMpmTipoLaudoDAO()\r\n\t\t\t\t\t.obterPorChavePrimaria(\r\n\t\t\t\t\t\t\tseqLaudoMaiorPermanencia.getVlrNumerico()\r\n\t\t\t\t\t\t\t\t\t.shortValue());\r\n\r\n\t\t\tif (prescricao.getAtendimento().getInternacao() != null) {\r\n\t\t\t\tif (prescricao.getAtendimento()\r\n\t\t\t\t\t\t.getInternacao().getItemProcedimentoHospitalar() != null){\r\n\t\t\t\t\t\r\n\t\t\t\t\tif (prescricao.getAtendimento()\r\n\t\t\t\t\t.getInternacao().getItemProcedimentoHospitalar()\r\n\t\t\t\t\t.getQuantDiasFaturamento() != null){\r\n\t\t\t\t\t\tquantidadeDiasFaturamento = prescricao.getAtendimento()\r\n\t\t\t\t\t\t.getInternacao().getItemProcedimentoHospitalar()\r\n\t\t\t\t\t\t.getQuantDiasFaturamento();\t\t\t\t\t\t\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\tdiasPermanenciaMaior = prescricao.getAtendimento()\r\n\t\t\t\t\t.getInternacao().getItemProcedimentoHospitalar()\r\n\t\t\t\t\t.getDiasPermanenciaMaior();\t\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tif (diasPermanenciaMaior == null || diasPermanenciaMaior > 0){\r\n\t\t\t\t\r\n\t\t\t\tInteger adicionalDias = 0;\r\n\t\t\t\tif (quantidadeDiasFaturamento != null) {\r\n\t\t\t\t\tadicionalDias = (quantidadeDiasFaturamento * 2) + 1;\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tif (DateUtil.validaDataTruncadaMaiorIgual(new Date(), DateUtil\r\n\t\t\t\t\t\t.adicionaDias(prescricao.getAtendimento().getInternacao()\r\n\t\t\t\t\t\t\t\t.getDthrInternacao(), adicionalDias))) {\r\n\t\t\t\t\t\r\n\t\t\t\t\tif (this.getMpmLaudoDAO()\r\n\t\t\t\t\t\t\t.obterCountLaudosPorTipoEAtendimento(\r\n\t\t\t\t\t\t\t\t\tprescricao.getAtendimento(),\r\n\t\t\t\t\t\t\t\t\ttipoLaudoMaiorPermanencia) <= 0) {\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\tMpmLaudo laudo = new MpmLaudo();\r\n\t\t\t\t\t\tlaudo.setDthrInicioValidade(prescricao.getAtendimento()\r\n\t\t\t\t\t\t\t\t.getInternacao().getDthrInternacao());\r\n\t\t\t\t\t\tlaudo.setContaDesdobrada(false);\r\n\t\t\t\t\t\tlaudo.setImpresso(false);\r\n\t\t\t\t\t\tlaudo.setLaudoManual(false);\r\n\t\t\t\t\t\tlaudo.setAtendimento(prescricao.getAtendimento());\r\n\t\t\t\t\t\tlaudo.setTipoLaudo(tipoLaudoMaiorPermanencia);\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\tlaudoList.add(laudo);\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}", "public int getConceito(int posicao)\n\t{\n\t\treturn gradeConceitos[posicao];\n\t}", "public int construir(int pasoSolicitado ) {\n if(tipoTraductor.equals(\"Ascendente\")){\n construirAsc(pasoSolicitado);\n \n }\n else{\n construirDesc(pasoSolicitado);\n }\n contador=pasoSolicitado;\n cadena.actualizarCadena(pasoSolicitado);\n return contador;\n }", "public String[] pesquisarQuantidadeRotasIntervaloGrupo(String idGrupoCobranca, String idCobrancaAcao) throws ErroRepositorioException;", "public Punto getCentro() {\r\n\treturn centro;\r\n}", "public static List<Object> czytaniePogody(){\r\n Object[] elementyPogody = new Object[3];\r\n elementyPogody[0]=0;\r\n elementyPogody[1]=0;\r\n elementyPogody[2]=null;\r\n String line;\r\n OdczytZPliku plik = new OdczytZPliku();\r\n InputStream zawartosc = plik.pobierzZPliku(\"bazapogod.txt\");\r\n try (InputStreamReader odczyt = new InputStreamReader(zawartosc, StandardCharsets.UTF_8);\r\n BufferedReader czytaj = new BufferedReader(odczyt)) {\r\n String numerWStringu = String.valueOf(elementyPogody[0] = (int) (Math.random() * 4));\r\n while ((line = czytaj.readLine()) != null){\r\n if (line.equals(numerWStringu)){\r\n elementyPogody[1] = Integer.parseInt(czytaj.readLine());\r\n elementyPogody[2] = czytaj.readLine();\r\n System.out.println(\"\\nPogoda na dzis: \" + elementyPogody[2]);\r\n break;\r\n }\r\n else {\r\n for (int i = 0; i < 2; i++) {\r\n line = czytaj.readLine();\r\n }\r\n }\r\n }\r\n } catch (Exception ignored) {\r\n }\r\n return List.of(elementyPogody);\r\n }", "public String getProdotto() {\r\n\t\treturn prodotto;\r\n\t}", "public Collection<ImovelSubcategoria> pesquisarImovelSubcategoria(Imovel imovel) throws ControladorException {\r\n\t\ttry {\r\n\t\t\treturn repositorioImovel.pesquisarImovelSubcategoriasMaxCinco(imovel.getId());\r\n\t\t} catch (ErroRepositorioException ex) {\r\n\t\t\tthrow new ControladorException(\"erro.sistema\", ex);\r\n\t\t}\r\n\t}", "public static String creaCodiceCognome(String cognomePersona) {\n\t\tString codiceCognomePersona = \"\";\n\t\n\t\tcodiceCognomePersona = estraiTreConsonanti(cognomePersona, \"cognome\");\n\t\t\n\t\t//se vengono trovate 3 consonanti viene ritornato il codice composto da 3 consonanti\n\t\tif (codiceCognomePersona.length() == 3) return codiceCognomePersona;\n\t\telse {\n\t\t\t//altrimenti chiamo il metodo che completa la stringa ottenuta fin qua\n\t\t\treturn seConsonantiNonBastano(codiceCognomePersona, cognomePersona);\n\t\t\t}\n\t}", "public Map<String, Integer> verCarritoConCantidades(){\n\t\treturn this.datosCompras;\n\t}", "public int cargarCombustible(){ //creamos metodo cargarCombustible\r\n return this.getNivel();//retornara el nivel de ese mecanico\r\n }", "private Candidatos calculaCandidatos(Etapa e) {\n if(debug) {\n System.out.println(\"**********************calculaCandidatos\");\n System.out.println(\"e.i: \" + e.i);\n }\n \n Candidatos c = new Candidatos();\n if(e.k <= this.G.numVertices()) {\n //crear un objeto candidato y rellenarlo para esta etapa \n c.i = -1; //no apuntamos a ninguna pos porque en la funcion seleccionaCandidato ya incrementamos este valor\n //buscar el primer vertize sin emparejar\n int size = this.sol.emparejamientos.length;\n \n c.fila = e.i;\n \n //añadimos los candidatos\n c.verticesSinPareja = new ArrayList<>();\n for(int k = 0; k < size; ++k) {\n if(this.sol.emparejamientos[c.fila][k] == 0) {\n if(debug) {\n System.out.print(\" candidato: \" + k+ \" \");\n }\n c.verticesSinPareja.add(k);\n }\n }\n \n }\n else {\n c.verticesSinPareja = new ArrayList<>();\n }\n return c;\n }", "public Punto getCentroide() {\n \treturn centroide;\n }", "private ProcesoDTO registrarProcesoCoactivo() {\n RegistraProcesoDTO registra = new RegistraProcesoDTO();\n registra.setObservacion(EnumTipoProceso.COACTIVO.name());\n registra.setTipoProceso(EnumTipoProceso.COACTIVO);\n registra.setEstado(EnumEstadoProceso.ECUADOR_COACTIVO_RADICACION);\n registra.setConsecutivo(EnumConsecutivo.NUMERO_COACTIVO_ECUADOR);\n return iRFachadaProceso.crearProceso(registra);\n }", "public int getPrecios()\r\n {\r\n for(int i = 0; i < motos.size(); i++)\r\n {\r\n precio_motos += motos.get(i).getCoste();\r\n }\r\n \r\n return precio_motos;\r\n }", "private List<PromocionConcursoAgr> listaPromocionConcursoAgr() {\r\n\t\tString select = \" select distinct(puesto_det.*) \"\r\n\t\t\t\t+ \"from seleccion.promocion_concurso_agr puesto_det \"\r\n\t\t\t\t+ \"join planificacion.estado_det estado_det \"\r\n\t\t\t\t+ \"on estado_det.id_estado_det = puesto_det.id_estado_det \"\r\n\t\t\t\t+ \"join planificacion.estado_cab \"\r\n\t\t\t\t+ \"on estado_cab.id_estado_cab = estado_det.id_estado_cab \"\r\n\t\t\t\t+ \"join seleccion.promocion_salarial cargo \"\r\n\t\t\t\t+ \"on cargo.id_promocion_salarial = puesto_det.id_promocion_salarial \"\r\n\t\t\t\t+ \" where puesto_det.id_concurso_puesto_agr is null \"\r\n\t\t\t\t+ \"and lower(estado_det.descripcion) = 'en reserva' \"\r\n\t\t\t\t+ \"and lower(estado_cab.descripcion) = 'concurso' \"\r\n\t\t\t\t//+ \"and puesto_det.id_concurso = \" + concurso.getIdConcurso()\r\n\t\t\t\t//+ \" and cargo.permanente is true\"\r\n\t\t\t\t;\r\n\r\n\t\tList<PromocionConcursoAgr> lista = new ArrayList<PromocionConcursoAgr>();\r\n\t\tlista = em.createNativeQuery(select, PromocionConcursoAgr.class)\r\n\t\t\t\t.getResultList();\r\n\r\n\t\treturn lista;\r\n\t}", "public int puntoUno() {\n int contador = 0;\n for (int i = 0; i < jugadores.length; i++) {\n if (jugadores[i] != null && jugadores[i].getCantPartidosJugados() > 10) {\n contador++;\n }\n }\n return contador;\n }", "public List<Tipo> getTiposOrdenadosNumerosEventosDecrescente() {\n\t\tList<Tipo> listaOrdenada = new ArrayList<Tipo>();\n\n\t\ttry {\n\t\t\tverificaTiposOrdenados(listaOrdenada);\n\t\t\t\n\t\t} catch (FileNotFoundException e) {\n\t\t\tSystem.out.println(\"[ERRO] Arquivo não encontrado no caminho: '\" + ARQUIVO_CSV + \"'\");\n\t\t} catch (IOException e) {\n\t\t\tSystem.out.println(\"[ERRO] Erro ao ler arquivo csv.\");\n\t\t\te.printStackTrace();\n\t\t} finally {\n\t\t\tfechaBuffer();\n\t\t}\n\t\treturn listaOrdenada;\n\t}", "private void cerca(int livello, List<Condiment> parziale, Condiment prescelto) {\n\t\tboolean trovato = false;\n\t\t\n\t\t//Prendiamo l'ultimo coindimento aggiunto\n\t\tCondiment ultimo = parziale.get(livello-1);\n\t\t\n\t\t//Cicliamo la lista dei vertici e aggiungiamo un condimento non adiacente ad ultimo\n\t\tfor (Condiment prossimo : grafo.vertexSet()) {\n\t\t\tif (!Graphs.neighborSetOf(grafo, ultimo).contains(prossimo) && !parziale.contains(prossimo)) {\n\t\t\t\tparziale.add(prossimo);\n\t\t\t\ttrovato = true;\n\t\t\t\tcerca(livello+1, parziale, prescelto);\n\t\t\t\tparziale.remove(livello);\n\t\t\t\t}\n\t\t\t}\n\t\t\n\t\t//Caso terminale \n\t\tif (!trovato) {\n\t\t\tdouble somma = 0.0;\n\t\t\tfor (Condiment c2 : parziale) {\n\t\t\t\tsomma += c2.getCondiment_calories();\n\t\t\t}\n\t\t\tif (somma > somma_best && parziale.contains(prescelto)) {\n\t\t\t\tsomma_best = somma;\n\t\t\t\tbest = new ArrayList<Condiment>(parziale);\n\t\t\t}\n\t\t\n\t\t}\n\t}", "@SuppressWarnings({ \"unchecked\", \"rawtypes\" })\r\n\tpublic static Collection<Categoria> montarColecaoCategoria(Collection colecaoSubcategorias) {\r\n\r\n\t\tCollection<Categoria> colecaoRetorno = null;\r\n\r\n\t\tif (colecaoSubcategorias != null && !colecaoSubcategorias.isEmpty()) {\r\n\r\n\t\t\tcolecaoRetorno = new ArrayList();\r\n\r\n\t\t\tIterator colecaoSubcategoriaIt = colecaoSubcategorias.iterator();\r\n\t\t\tCategoria categoriaAnterior = null;\r\n\t\t\tSubcategoria subcategoria;\r\n\t\t\tint totalEconomiasCategoria = 0;\r\n\r\n\t\t\twhile (colecaoSubcategoriaIt.hasNext()) {\r\n\r\n\t\t\t\tsubcategoria = (Subcategoria) colecaoSubcategoriaIt.next();\r\n\r\n\t\t\t\tif (categoriaAnterior == null) {\r\n\t\t\t\t\ttotalEconomiasCategoria = subcategoria.getQuantidadeEconomias();\r\n\t\t\t\t} else if (subcategoria.getCategoria().equals(categoriaAnterior)) {\r\n\t\t\t\t\ttotalEconomiasCategoria = totalEconomiasCategoria + subcategoria.getQuantidadeEconomias();\r\n\t\t\t\t} else {\r\n\t\t\t\t\tcategoriaAnterior.setQuantidadeEconomiasCategoria(totalEconomiasCategoria);\r\n\t\t\t\t\tcolecaoRetorno.add(categoriaAnterior);\r\n\r\n\t\t\t\t\ttotalEconomiasCategoria = subcategoria.getQuantidadeEconomias();\r\n\t\t\t\t}\r\n\r\n\t\t\t\tcategoriaAnterior = subcategoria.getCategoria();\r\n\t\t\t}\r\n\r\n\t\t\tcategoriaAnterior.setQuantidadeEconomiasCategoria(totalEconomiasCategoria);\r\n\t\t\tcolecaoRetorno.add(categoriaAnterior);\r\n\t\t}\r\n\r\n\t\treturn colecaoRetorno;\r\n\t}", "public Image getCorazon ( ) {\n\t\tswitch ( vida ) {\n\t\tcase 0 :\n\t\t\treturn sinVida;\n\t\tcase 1:\n\t\t\treturn cuartoDeVida;\n\t\tcase 2:\n\t\t\treturn mitadVida;\n\t\tcase 3:\n\t\t\treturn tresCuartos;\n\t\tcase 4:\n\t\t\treturn fullVida;\n\t\tdefault:\n\t\t\treturn sinVida;\n\t\t}\n\t}", "private static String transformarCelula(Integer valorCelula) {\n if (valorCelula == null) {\n return \"\"; // String vazia\n } else {\n return valorCelula.toString(); // Transforma a celula em String\n }\n }" ]
[ "0.58982843", "0.5671702", "0.5542331", "0.549457", "0.54756325", "0.53736144", "0.53475356", "0.5337282", "0.53358996", "0.5327699", "0.5303249", "0.5293311", "0.5285272", "0.52765197", "0.5223942", "0.5169829", "0.5163784", "0.515798", "0.50918424", "0.5088411", "0.5079241", "0.50738275", "0.5065115", "0.5057604", "0.50545603", "0.5053052", "0.5049614", "0.5045217", "0.50328165", "0.5027096", "0.501556", "0.50131243", "0.4993046", "0.49826354", "0.49623692", "0.49583614", "0.49569267", "0.49487782", "0.49424645", "0.49388173", "0.49364567", "0.4926253", "0.49222803", "0.4922135", "0.49216154", "0.4918451", "0.49175307", "0.49090788", "0.48929235", "0.48857686", "0.4882846", "0.48820272", "0.4880364", "0.48469564", "0.48443404", "0.48421937", "0.4827348", "0.48256364", "0.48171425", "0.48136327", "0.48068112", "0.48035562", "0.4795894", "0.47844192", "0.47775942", "0.4774445", "0.47644904", "0.47601482", "0.47542936", "0.4746237", "0.4746068", "0.47443977", "0.4734425", "0.4731593", "0.47276637", "0.47270003", "0.4724842", "0.4723791", "0.47230038", "0.472012", "0.47148418", "0.47111806", "0.4702752", "0.46937078", "0.46937004", "0.4686612", "0.46762207", "0.46754402", "0.46721545", "0.46677673", "0.46668437", "0.46668127", "0.4666604", "0.46647665", "0.4662354", "0.46582156", "0.4656188", "0.46486512", "0.46480125", "0.464501" ]
0.7211771
0
/ Long tiempoat1= (Long) mp1.get("tiempoat"); // tiempo atencion Integer priorida1= (Integer) mp1.get("priorida"); // prioridad Integer urgencia1= (Integer) mp1.get("urgencia"); // urgencia Double distanci1= (Double) mp1.get("distanci"); // distancia
public static List<Punto> getPuntos(){ List<Punto> puntos = new ArrayList<Punto>(); try{ //-12.045916, -75.195270 Punto p1 = new Punto(1,-12.037512,-75.183327,0.0); p1.setDatos(getDatos("16/06/2017 09:00:00", 2 , 1)); Punto p2 = new Punto(2,-12.041961,-75.184786,0.0); p2.setDatos(getDatos("16/06/2017 09:00:00",1 , 2)); Punto p3 = new Punto(3,-12.0381,-75.1841,0.0); p3.setDatos(getDatos("16/06/2017 09:00:00",2 , 2)); Punto p4 = new Punto(4,-12.041542,-75.185816,0.0); p4.setDatos(getDatos("16/06/2017 11:00:00",0 , 0)); Punto p5 = new Punto(5,-12.037764,-75.181096,0.0); p5.setDatos(getDatos("16/06/2017 11:15:00",0 , 0)); Punto p6 = new Punto(6,-12.042801,-75.190108,0.0); p6.setDatos(getDatos("16/06/2017 11:00:00",0 , 0)); Punto p7 = new Punto(7,-12.04364,-75.184014,0.0); p7.setDatos(getDatos("16/06/2017 11:00:00",0 , 0)); Punto p8 = new Punto(8,-12.045739,-75.185387,0.0); p8.setDatos(getDatos("16/06/2017 11:30:00",0 , 0)); Punto p9 = new Punto(9,-12.04683,-75.187361,0.0); p9.setDatos(getDatos("16/06/2017 11:50:00",0 , 0)); Punto p10 = new Punto(10,-12.050775,-75.187962,0.0); p10.setDatos(getDatos("16/06/2017 12:30:00",0 , 0)); Punto p11 = new Punto(11,-12.053797,-75.184271,0.0); p11.setDatos(getDatos("16/06/2017 13:00:00",0 , 0)); puntos.add(p8); puntos.add(p9); puntos.add(p3); puntos.add(p4); puntos.add(p5); puntos.add(p6); puntos.add(p7); puntos.add(p10); puntos.add(p1); puntos.add(p2); puntos.add(p11); }catch(Exception e ){ e.printStackTrace(); } return puntos; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Integer getLongitud()\n/* 37: */ {\n/* 38:55 */ return this.longitud;\n/* 39: */ }", "void MontaValores(){\r\n // 0;0;-23,3154166666667;-51,1447783333333;0 // Extrai os valores e coloca no objetos\r\n // Dis;Dir;Lat;Long;Velocidade\r\n // Quebra de Rota lat=-999.999 long=-999.999 ==> Marca ...\r\n \r\n int ind=0;\r\n NMEAS=NMEA.replace(\",\" , \".\");\r\n \r\n //1)\r\n dists=NMEAS.substring(ind,NMEAS.indexOf(\";\",ind));\r\n Distancia=Double.valueOf(dists);\r\n ind=ind+dists.length()+1;\r\n \r\n //2)\r\n dirs=NMEAS.substring(ind,NMEAS.indexOf(\";\",ind+1));\r\n Direcao=Double.valueOf(dirs);\r\n ind=ind+dirs.length()+1;\r\n \r\n //3)\r\n lats=NMEAS.substring(ind,NMEAS.indexOf(\";\",ind+1));\r\n Lat=Double.valueOf(lats);\r\n ind=ind+lats.length()+1;\r\n \r\n //4)\r\n longs=NMEAS.substring(ind,NMEAS.indexOf(\";\",ind+1));\r\n Long=Double.valueOf(longs);\r\n ind=ind+longs.length()+1;\r\n \r\n //5)\r\n vels=NMEAS.substring(ind,NMEAS.length());\r\n // Transforma de Knots para Km/h\r\n Velocidade=Double.valueOf(vels)/100*1.15152*1.60934;\r\n vels=String.valueOf(Velocidade);\r\n ind=ind+vels.length()+1;\r\n \r\n }", "@Override\n public List<Map<String, Object>> tareasOrdenadasPorDistancia(long id_emergencia){\n try(Connection conn = sql2o.open()){\n List<Emergencia> emergencia = conn.createQuery(\"SELECT ST_X(ST_AsText(ubicacion)) AS longitud, ST_Y(ST_AsText(ubicacion)) AS latitud FROM emergencia WHERE id = :id_eme\")\n .addParameter(\"id_eme\", id_emergencia)\n .executeAndFetch(Emergencia.class);\n String punto = \"POINT(\" + emergencia.get(0).getLongitud() + \" \" + emergencia.get(0).getLatitud() + \")\";\n return conn.createQuery(\"SELECT id, nombre, ST_X(ST_AsText(ubicacion)) AS longitud, ST_Y(ST_AsText(ubicacion)) AS latitud, ST_Distance(ST_GeomFromText(:tar_punto, 4326), ubicacion::geography) AS distancia FROM tarea WHERE id_emergencia = :id_eme ORDER BY distancia ASC\")\n .addParameter(\"tar_punto\", punto)\n .addParameter(\"id_eme\", id_emergencia)\n .executeAndFetchTable()\n .asList();\n } catch (Exception e) {\n System.out.println(e.getMessage());\n return null;\n }\n }", "private Map<String,Double> getPromedioHabilidades(Cuadrilla cuadrilla){\n\t\tSystem.out.println(\"#### getPromedioHabilidades ######\");\n\t\tdouble proprod= 0, protrae= 0, prodorm = 0, prodcaa = 0;\n\t\tint cantper = 0;\n\t\tfor (CuadrillasDetalle cd : cuadrilla.getCuadrillasDetalles()) {\n\t\t\t\n\t\t\tList<TecnicoCompetenciaDetalle> tcds = \tcd.getTecnico().getTecnicoCompetenciaDetalles();\n\t\t\tfor (TecnicoCompetenciaDetalle tcd : tcds) {\n\t\t\t\tInteger codigoComp = tcd.getCompetencia().getCodigoCompetencia();\n\t\t\t\tswitch(codigoComp){\n\t\t\t\t\tcase COMPETENCIA_PRODUCTIVIDAD:\n\t\t\t\t\t\tproprod = proprod+ tcd.getGradoCompetencia().doubleValue();\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase COMPETENCIA_TRABAJO_EQUIPO:\n\t\t\t\t\t\tprotrae = protrae + tcd.getGradoCompetencia().doubleValue();\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase COMPETENCIA_ORIENTACION_METAS:\n\t\t\t\t\t\tprodorm = prodorm + tcd.getGradoCompetencia().doubleValue();\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase COMPETENCIA_CALIDAD_ATENCION:\n\t\t\t\t\t\tprodcaa = prodcaa +tcd.getGradoCompetencia().doubleValue();\n\t\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\tcantper++;\t\t\t\n\t\t}\n\t\t\t\t\t\n\t\t// promedio de las competencias de los tenicos de cada cuadrilla\n\t\tproprod = proprod/cantper; \n\t\tprotrae = protrae/cantper;\n\t\tprodorm = prodorm/cantper;\n\t\tprodcaa = prodcaa/cantper;\n\n\t\tMap<String, Double> mpproms = new LinkedHashMap<String,Double>();\n\t\tmpproms.put(\"proprod\", proprod);\n\t\tmpproms.put(\"protrae\", protrae);\n\t\tmpproms.put(\"prodorm\", prodorm);\n\t\tmpproms.put(\"prodcaa\", prodcaa);\n\t\n\t\treturn mpproms;\n\t\t\n\t}", "public Long extractJson(String response) {\n\n\n JSONObject jObject = null;\n try {\n jObject = new JSONObject(response);\n } catch (JSONException e) {\n Log.i(\"TRANSFER.F\", \"Json create\");\n e.printStackTrace();\n }\n\n JSONArray jArray = null;\n try {\n jArray = Objects.requireNonNull(jObject).getJSONArray(\"rows\");\n } catch (JSONException e) {\n Log.i(\"TRANSFER.F\", \"Json rows\");\n e.printStackTrace();\n }\n\n Long distanceValue = 0L;\n for (int i = 0; i < Objects.requireNonNull(jArray).length(); i++) {\n try {\n\n JSONObject jObject1 = null;\n try {\n jObject1 = jArray.getJSONObject(0);\n } catch (JSONException e) {\n Log.i(\"TRANSFER.F\", \"Json empty\");\n e.printStackTrace();\n }\n\n JSONArray jArray1 = null;\n try {\n jArray1 = Objects.requireNonNull(jObject1).getJSONArray(\"elements\");\n } catch (JSONException e) {\n Log.i(\"TRANSFER.F\", \"Json elements\");\n e.printStackTrace();\n }\n for (int j = 0; j < Objects.requireNonNull(jArray1).length(); j++) {\n\n JSONObject jObject2 = null;\n try {\n jObject2 = jArray1.getJSONObject(0);\n } catch (JSONException e) {\n Log.i(\"TRANSFER.F\", \"Json empty\");\n e.printStackTrace();\n }\n\n JSONObject jObject3 = null;\n try {\n jObject3 = Objects.requireNonNull(jObject2).getJSONObject(\"distance\");\n Log.i(\"TRANSFER.F\", \"Zawartosc\" + jObject3.toString());\n } catch (JSONException e) {\n Log.i(\"TRANSFER.F\", \"Json distance\");\n e.printStackTrace();\n }\n\n //JSONObject oneObject = jObject3.getJSONObject(\"value\");\n distanceValue = Objects.requireNonNull(jObject3).getLong(\"value\");\n //String oneObjectsItem2 = oneObject.getString(\"duration\");\n Log.i(\"JSON1\", distanceValue.toString());\n // Log.i(\"JSON2\", oneObjectsItem2);\n }\n } catch (JSONException e) {\n Log.i(\"JSONY\", \"Blad\\n\" + response);\n }\n }\n\n return distanceValue;\n\n }", "public Double getPotencia(){\n return this.valor;\n }", "public void Get() { ob = ti.Get(currentrowi, \"persoana\"); ID = ti.ID; CNP = ob[0]; Nume = ob[1]; Prenume = ob[2]; }", "@Override\n\tpublic BigDecimal getLongitud() {\n\t\treturn model.getLongitud();\n\t}", "public Long getTime(String key){\n\t\tObject[] obj = inner.get(key);\r\n\t\tif(null != obj && obj.length > 0){\r\n\t\t\tif(obj[0] instanceof Date){\r\n\t\t\t\treturn ((Date)obj[0]).getTime();\r\n\t\t\t}\r\n\t\t\tSimpleDateFormat format = new SimpleDateFormat(\"yyyy-MM-dd HH:mm:ss\");\r\n\t\t\ttry{\r\n\t\t\t\treturn obj[0] != null ? format.parse(obj[0].toString()).getTime():null;\r\n\t\t\t}catch (ParseException e){\r\n\t\t\t\tlogger.error(\"ERROR occur method getData:\"+e.getMessage());\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn null;\r\n\t}", "@Override\n public void onDataChange(DataSnapshot dataSnapshot) {\n longitude = dataSnapshot.getValue(float.class);\n Integer i = Integer.valueOf((int) (longitude*1000));\n\n }", "public double Condicionif(Stack<String> sta) {\n\n double val1;\n double val2;\n double val3;\n double resp = -1;\n\n try {\n val1 = Double.parseDouble(sta.pop());\n\n if (ComprobarNumero(sta.peek())) {\n val2 = Double.parseDouble(sta.pop());\n } else {\n val2 = hashmap.get(sta.pop());\n }\n\n if (ComprobarNumero(sta.peek())) {\n val3 = Double.parseDouble(sta.pop());\n } else {\n val3 = hashmap.get(sta.pop());\n }\n\n if (val1 == 1) {\n resp = val2;\n } else {\n resp = val3;\n }\n\n } catch (Exception e) {\n System.out.println(\"Error de Sintaxis\");\n }\n return resp;\n }", "public Timestamp getDateTrx() \n{\nreturn (Timestamp)get_Value(\"DateTrx\");\n}", "public void setLongitud(Integer longitud)\n/* 42: */ {\n/* 43:62 */ this.longitud = longitud;\n/* 44: */ }", "public void receberValores() {\n Bundle b = getIntent().getExtras();\n if (b != null) {\n cpf3 = b.getString(\"valor2\");\n renda = b.getDouble(\"valor3\");\n data = b.getString(\"valor4\");\n data2 = b.getString(\"valor5\");\n }\n }", "float getMonatl_kosten();", "@Override\n public void onDataChange(DataSnapshot dataSnapshot) {\n\n\n Object dataVal = dataSnapshot.getValue();\n //dataSnapshot.getValue(Post.class);\n\n Log.d(TAG, \"BEFORE Value is::: \" + dataVal.toString());\n bpm = dataVal.toString();\n max = (Integer.parseInt(bpm) + 10);\n min = (Integer.parseInt(bpm) - 10);\n }", "double getTempo();", "public int getLongitudDeDecimales() {\n try {\n Integer a = new Integer(longitudDeDecimales);\n if (a == null) {\n throw new ExcepcionPersonalizada(\n \"No definiste logitud de decimales o lo declaraste antes \\n\"\n + \" de setear los la longitud de decimales..\",\n this,\n \"getLongitudDeDecimales\");\n }else if(this.tipoDeDatos.equals(\"varchar\")){\n throw new ExcepcionPersonalizada(\n \"El campo esta definido como tipo varchar.\",\n this,\n \"getLongitudDeDecimales\");\n \n }else if(this.tipoDeDatos.equals(\"int\")){\n throw new ExcepcionPersonalizada(\n \"El campo esta definido como tipo int.\",\n this,\n \"getLongitudDeDecimales\");\n }else if(this.tipoDeDatos.equals(\"date\")){\n throw new ExcepcionPersonalizada(\n \"El campo esta definido como tipo date.\",\n this,\n \"getLongitudDeDecimales\");\n }else if(!this.tipoDeDatos.equals(\"float\") && !this.tipoDeDatos.equals(\"decimal\")){\n throw new ExcepcionPersonalizada(\n \"El campo es diferente de float y decimal .\",\n this,\n \"getLongitudDeDecimales\");\n \n }\n } catch (ExcepcionPersonalizada ex) {\n Logger.getLogger(ParametrosDeCampo.class.getName()).log(Level.SEVERE, null, ex);\n }\n \n return longitudDeDecimales;\n }", "public java.lang.Long getPeti_numero();", "public java.lang.Long getPeti_numero();", "@Override\r\n public String getUsoMaggiore() {\n int maxpacchetti=0;\r\n int npacchetti=0;\r\n String a;\r\n Map<String, String> mappatemp=new HashMap<>();\r\n Iterator<Map<String, String>> iterator;\r\n iterator = getUltimaEntry().iterator();\r\n System.out.println(getUltimaEntry().size());\r\n\t\twhile (iterator.hasNext()) {\r\n \r\n\t\t\tMap<String, String> m = iterator.next();\r\n //si fa la ricerca della più utilizzata all'inerno della mappa\r\n \r\n npacchetti=Integer.parseInt(m.get(\"RX-OK\"))+Integer.parseInt(m.get(\"TX-OK\"));\r\n System.out.println(maxpacchetti);\r\n if (maxpacchetti<npacchetti){\r\n maxpacchetti=npacchetti;\r\n mappatemp.put(\"Iface\",m.get(\"Iface\"));\r\n mappatemp.put(\"Pacchetti_TX+RX_OK\",String.valueOf(npacchetti));\r\n \r\n }\r\n }\r\n \r\n try {\r\n String json = new ObjectMapper().writeValueAsString(mappatemp);\r\n System.out.println(json);\r\n \r\n \r\n if (json!=null) return json ;\r\n } catch (JsonProcessingException ex) {\r\n Logger.getLogger(NetstatSingleton.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n \r\n \r\n \r\n return \"NOT WORKING\";\r\n \r\n }", "public int getM_Locator_ID() \n{\nInteger ii = (Integer)get_Value(\"M_Locator_ID\");\nif (ii == null) return 0;\nreturn ii.intValue();\n}", "Double somaValoresPorTransactionType(TransactionType transactionType, Integer mes);", "@Override\r\n\tpublic HashMap<String, String> getGeunTaeData(HashMap<String, String> params) {\n\t\treturn sqlsession.selectOne(\"GeuntaeMgnt.getGeunTaeData\",params);\r\n\t}", "private static double getLongt() {\n\t\treturn longt;\n\t}", "public abstract java.lang.Long getAtiempo();", "private double getValorAjuste(HashMap infoAssinante) throws Exception\n\t{\n\t\tdouble result = 0;\n\t\t\n\t\tString msisdn = (String)infoAssinante.get(\"IDT_MSISDN\");\n\t\tdouble minCredito = ((Double)infoAssinante.get(\"MIN_CREDITO\")).doubleValue();\n\t\tdouble minFF = ((Double)infoAssinante.get(\"MIN_FF\")).doubleValue(); \n\t\tint idtCodigoNacional = (new Integer(msisdn.substring(2, 4))).intValue();\n\t\tdouble vlrBonusMinuto = getVlrBonusMinuto(idtCodigoNacional);\n\t\tdouble vlrBonusMinutoFF = getVlrBonusMinutoFF(idtCodigoNacional);\n\t\t\n\t\tresult = ((minCredito - minFF)*vlrBonusMinuto) + (minFF*vlrBonusMinutoFF);\n\t\t\n\t\treturn result;\n\t}", "double getValue(int id);", "double objetosc() {\n return dlugosc * wysokosc * szerokosc; //zwraca obliczenie poza metode\r\n }", "int getMPValue();", "Integer getDataLgth();", "HashMap saveOrderPaymentTE(long orderIdi,double monto,String hdnRa,String hdnVoucher,String hdnComentario,String hdnNumLogin,String hdnUser,Integer hdnFlgVep,Double txtCuotaInicial, Double hdnMontoFinanciado,Integer hdnNumCuotas)throws SQLException, Exception, RemoteException;", "Map<Date, Float> getFullCPM(Step step) throws SQLException;", "public BigDecimal obtenerValorExpresion(DetalleReporteadorVariable detalleVariable, Date fechaDesde, Date fechaHasta, int idSucursal, Map<Integer, BigDecimal> mapaValorVariables)\r\n/* 202: */ throws AS2Exception, IllegalArgumentException, ArithmeticException\r\n/* 203: */ {\r\n/* 204:219 */ Integer key = Integer.valueOf(detalleVariable.getId());\r\n/* 205:220 */ String expresion = detalleVariable.getExpresion();\r\n/* 206: */ \r\n/* 207:222 */ BigDecimal valorSaldoCuenta = BigDecimal.ZERO;\r\n/* 208:224 */ if (mapaValorVariables == null) {\r\n/* 209:225 */ mapaValorVariables = new HashMap();\r\n/* 210: */ }\r\n/* 211:229 */ if (mapaValorVariables.containsKey(key)) {\r\n/* 212:230 */ return (BigDecimal)mapaValorVariables.get(key);\r\n/* 213: */ }\r\n/* 214:232 */ if ((detalleVariable.isIndicadorFormula()) && ((expresion == null) || (expresion.trim().isEmpty()))) {\r\n/* 215:233 */ return BigDecimal.ZERO;\r\n/* 216: */ }\r\n/* 217:237 */ if (!detalleVariable.isIndicadorFormula())\r\n/* 218: */ {\r\n/* 219:239 */ List<CuentaContable> listaCuentas = new ArrayList();\r\n/* 220:240 */ if (detalleVariable.getCuentaContable() != null)\r\n/* 221: */ {\r\n/* 222:241 */ if (detalleVariable.getCuentaContable().isIndicadorMovimiento())\r\n/* 223: */ {\r\n/* 224:242 */ listaCuentas.add(detalleVariable.getCuentaContable());\r\n/* 225: */ }\r\n/* 226: */ else\r\n/* 227: */ {\r\n/* 228:245 */ Map<String, String> filters = new HashMap();\r\n/* 229:246 */ filters.put(\"codigo\", detalleVariable.getCuentaContable().getCodigo() + \"%\");\r\n/* 230:247 */ filters.put(\"indicadorMovimiento\", \"true\");\r\n/* 231:248 */ filters.put(\"idOrganizacion\", \"\" + detalleVariable.getIdOrganizacion());\r\n/* 232:249 */ listaCuentas = this.servicioCuentaContable.obtenerListaCombo(\"codigo\", true, filters);\r\n/* 233: */ }\r\n/* 234:252 */ List<Object[]> saldos = this.servicioCuentaContable.obtenerValores(fechaDesde, fechaHasta, detalleVariable.getIdOrganizacion(), listaCuentas, detalleVariable\r\n/* 235:253 */ .getValoresCalculo(), detalleVariable.getTipoCalculo(), false, idSucursal, null, null);\r\n/* 236:255 */ for (Object[] objects : saldos) {\r\n/* 237:256 */ if (objects[1] != null) {\r\n/* 238:257 */ valorSaldoCuenta = valorSaldoCuenta.add((BigDecimal)objects[1]);\r\n/* 239: */ }\r\n/* 240: */ }\r\n/* 241:261 */ valorSaldoCuenta = valorSaldoCuenta.setScale(2, RoundingMode.HALF_UP);\r\n/* 242: */ \r\n/* 243:263 */ mapaValorVariables.put(key, valorSaldoCuenta);\r\n/* 244: */ }\r\n/* 245:265 */ return valorSaldoCuenta;\r\n/* 246: */ }\r\n/* 247:269 */ Map<String, Double> mapaVariables = new HashMap();\r\n/* 248:270 */ Set<String> setVariables = new HashSet();\r\n/* 249:271 */ for (DetalleReporteadorVariable detalleRelacionado : detalleVariable.getListaDetalleVariablesExpresion())\r\n/* 250: */ {\r\n/* 251:272 */ BigDecimal valorVariableRelacionada = (BigDecimal)mapaValorVariables.get(Integer.valueOf(detalleRelacionado.getId()));\r\n/* 252:273 */ if (valorVariableRelacionada == null) {\r\n/* 253:274 */ valorVariableRelacionada = obtenerValorExpresion(detalleRelacionado, fechaDesde, fechaHasta, idSucursal, mapaValorVariables);\r\n/* 254: */ }\r\n/* 255:276 */ mapaVariables.put(detalleRelacionado.getCodigo(), Double.valueOf(valorVariableRelacionada.doubleValue()));\r\n/* 256:277 */ setVariables.add(detalleRelacionado.getCodigo());\r\n/* 257: */ }\r\n/* 258:280 */ Expression expresionBuild = new ExpressionBuilder(expresion).variables(setVariables).build();\r\n/* 259:281 */ expresionBuild.setVariables(mapaVariables);\r\n/* 260:282 */ valorSaldoCuenta = new BigDecimal(expresionBuild.evaluate()).setScale(2, RoundingMode.HALF_UP);\r\n/* 261:283 */ mapaValorVariables.put(key, valorSaldoCuenta);\r\n/* 262:284 */ return valorSaldoCuenta;\r\n/* 263: */ }", "private Data[] getLongs(double value, int npoints, int nattributes)\n\t{\n\t\tData[] data = new Data[npoints];\n\t\tlong val = (long) (value * Long.MAX_VALUE);\n\t\tfor (int i = 0; i < npoints; i++)\n\t\t\tdata[i] = nattributes == 1 ? new DataLong(val)\n\t\t: new DataArrayOfLongs(new long[] { val, val });\n\t\t\treturn data;\n\t}", "Map<Date, Float> getFullCPA(Step step) throws SQLException;", "@Optional\n @ImportColumn(\"KPANTGEB\")\n Property<Double> kaufpreisAnteilDerBaulichenAnlagen();", "public double getStockFinal(long pv) {\n float entree = 0 ;\n float sortie = 0 ;\n\n ArrayList<Produit> produits = null ;\n if (pv==0) produits = produitDAO.getAll();\n else produits = produitDAO.getAllByPv(pv) ;\n\n ArrayList<Mouvement> mouvements = null;\n\n double valeur = 0 ;\n double total = 0 ;\n double quantite = 0 ;\n double cmpu = 0 ;\n double restant = 0 ;\n double qsortie = 0 ;\n double qentree = 0 ;\n // Vente par produit\n Mouvement mouvement = null ;\n Operation operation = null ;\n\n for (int i = 0; i < produits.size(); i++) {\n try {\n mouvements = mouvementDAO.getManyByProductInterval(produits.get(i).getId_externe(),DAOBase.formatter2.parse(datedebut),DAOBase.formatter2.parse(datefin)) ;\n } catch (ParseException e) {\n e.printStackTrace();\n }\n\n if (mouvements != null){\n valeur = 0 ;\n quantite = 0 ;\n restant = 0 ;\n qentree = 0 ;\n cmpu = 0 ;\n qsortie = 0 ;\n\n for (int j = 0; j < mouvements.size(); j++) {\n mouvement = mouvements.get(j) ;\n operation = operationDAO.getOne(mouvement.getOperation_id()) ;\n if (operation==null || (operation.getAnnuler()==1 && operation.getDateannulation().before(new Date())) || operation.getTypeOperation_id().startsWith(OperationDAO.CMD)) continue;\n\n //if (pv!=0 && caisseDAO.getOne(operation.getCaisse_id()).getPointVente_id()!=pv) continue;\n if (j==0)\n if (mouvement.getRestant()==mouvement.getQuantite() && mouvement.getEntree()==0){\n restant = 0 ;\n }\n else restant = mouvement.getRestant() ;\n\n if (mouvement.getEntree()==0) {\n valeur -= mouvement.getPrixA() * mouvement.getQuantite() ;\n qentree += mouvement.getQuantite() ;\n cmpu = mouvement.getPrixA() ;\n }\n else {\n valeur += mouvement.getCmup() * mouvement.getQuantite() ;\n qsortie += mouvement.getQuantite() ;\n }\n /*\n if (restant!=0) cmpu = valeur / restant ;\n else cmpu = mouvement.getCmup() ;\n */\n }\n\n quantite = restant + qentree - qsortie ;\n total+=Math.abs(valeur) ;\n }\n }\n\n return total;\n }", "public List<Object[]> getRetencionSRI(int mes, int anio, int idOrganizacion, Sucursal sucursalFP, Sucursal sucursalRetencion, PuntoDeVenta puntoVentaRetencion, String orden)\r\n/* 59: */ {\r\n/* 60:107 */ StringBuilder sql = new StringBuilder();\r\n/* 61: */ \r\n/* 62:109 */ sql.append(\" SELECT f.fechaEmisionRetencion, f.fechaRegistro, f.fechaEmision, \");\r\n/* 63:110 */ sql.append(\" CONCAT(f.establecimiento,'-',f.puntoEmision,'-',f.numero), \");\r\n/* 64:111 */ sql.append(\" f.identificacionProveedor, c.descripcion, \");\r\n/* 65:112 */ sql.append(\" coalesce(CASE WHEN c.tipoConceptoRetencion = :tipoConceptoFUENTE THEN (SUM(COALESCE(dfp.baseImponibleRetencion, 0)+COALESCE(dfp.baseImponibleTarifaCero, 0) \");\r\n/* 66:113 */ sql.append(\" \\t+COALESCE(dfp.baseImponibleDiferenteCero, 0)+COALESCE(dfp.baseImponibleNoObjetoIva, 0))) ELSE COALESCE(dfp.baseImponibleRetencion, 0) END,0), \");\r\n/* 67:114 */ sql.append(\" coalesce(dfp.porcentajeRetencion, 0), coalesce(dfp.valorRetencion, 0), coalesce(c.codigo, 'NA'), \");\r\n/* 68:115 */ sql.append(\" coalesce(CASE WHEN c.tipoConceptoRetencion = :tipoConceptoIVA THEN 'IVA' WHEN c.tipoConceptoRetencion = :tipoConceptoFUENTE THEN 'FUENTE' WHEN c.tipoConceptoRetencion = :tipoConceptoISD THEN 'ISD' ELSE '' END,'NA'), \");\r\n/* 69:116 */ sql.append(\" CONCAT(f.establecimientoRetencion,'-',f.puntoEmisionRetencion,'-',f.numeroRetencion), \");\r\n/* 70:117 */ sql.append(\" f.baseImponibleTarifaCero, f.baseImponibleDiferenteCero, f.baseImponibleNoObjetoIva, f.nombreProveedor, f.montoIva, \");\r\n/* 71:118 */ sql.append(\" f.montoIce, ct.codigo, f.autorizacionRetencion, f.fechaRegistro, f.autorizacion, f.claveAcceso, f.estado,f.idFacturaProveedorSRI, fp.descripcion \");\r\n/* 72:119 */ sql.append(\" FROM DetalleFacturaProveedorSRI dfp \");\r\n/* 73:120 */ sql.append(\" RIGHT OUTER JOIN dfp.conceptoRetencionSRI c \");\r\n/* 74:121 */ sql.append(\" RIGHT OUTER JOIN dfp.facturaProveedorSRI f \");\r\n/* 75:122 */ sql.append(\" LEFT OUTER JOIN f.facturaProveedor fp \");\r\n/* 76:123 */ sql.append(\" LEFT JOIN f.creditoTributarioSRI ct \");\r\n/* 77:124 */ sql.append(\" WHERE MONTH(f.fechaRegistro) =:mes AND f.documentoModificado IS NULL \");\r\n/* 78:125 */ sql.append(\" AND YEAR(f.fechaRegistro) =:anio \");\r\n/* 79:126 */ sql.append(\" AND f.estado!=:estadoAnulado \");\r\n/* 80:127 */ sql.append(\" AND f.indicadorSaldoInicial!=true \");\r\n/* 81:128 */ sql.append(\" AND f.idOrganizacion = :idOrganizacion \");\r\n/* 82:129 */ if (sucursalFP != null) {\r\n/* 83:130 */ sql.append(\" AND f.idSucursal = :idSucursal \");\r\n/* 84: */ }\r\n/* 85:132 */ if (sucursalRetencion != null) {\r\n/* 86:133 */ sql.append(\" AND f.establecimientoRetencion = :sucursalRetencion \");\r\n/* 87: */ }\r\n/* 88:135 */ if (puntoVentaRetencion != null) {\r\n/* 89:136 */ sql.append(\" AND f.puntoEmisionRetencion = :puntoVentaRetencion \");\r\n/* 90: */ }\r\n/* 91:138 */ sql.append(\" GROUP BY f.idFacturaProveedorSRI, c.codigo, f.numero, f.puntoEmision, \");\r\n/* 92:139 */ sql.append(\" f.establecimiento, f.identificacionProveedor, \");\r\n/* 93:140 */ sql.append(\" c.descripcion, dfp.baseImponibleRetencion, dfp.porcentajeRetencion, dfp.valorRetencion, f.fechaEmisionRetencion, f.fechaRegistro, f.fechaEmision, f.numeroRetencion, \");\r\n/* 94:141 */ sql.append(\" f.baseImponibleTarifaCero, f.baseImponibleDiferenteCero, f.baseImponibleNoObjetoIva, f.nombreProveedor, f.montoIva, \");\r\n/* 95:142 */ sql.append(\" f.montoIce, ct.codigo, f.autorizacionRetencion, f.fechaRegistro, c.tipoConceptoRetencion, f.autorizacion, f.claveAcceso, f.estado, \");\r\n/* 96:143 */ sql.append(\" f.establecimientoRetencion, f.puntoEmisionRetencion, f.numeroRetencion, fp.descripcion \");\r\n/* 97:144 */ if ((orden != null) && (orden.equals(\"POR_RETENCION\"))) {\r\n/* 98:145 */ sql.append(\" ORDER BY f.establecimientoRetencion, f.puntoEmisionRetencion, f.numeroRetencion \");\r\n/* 99:146 */ } else if ((orden != null) && (orden.equals(\"POR_FACTURA\"))) {\r\n/* 100:147 */ sql.append(\" ORDER BY f.establecimiento, f.puntoEmision, f.numero \");\r\n/* 101:148 */ } else if ((orden != null) && (orden.equals(\"POR_CONCEPTO\"))) {\r\n/* 102:149 */ sql.append(\" ORDER BY c.descripcion \");\r\n/* 103: */ }\r\n/* 104:151 */ Query query = this.em.createQuery(sql.toString());\r\n/* 105:152 */ query.setParameter(\"mes\", Integer.valueOf(mes));\r\n/* 106:153 */ query.setParameter(\"anio\", Integer.valueOf(anio));\r\n/* 107:154 */ query.setParameter(\"estadoAnulado\", Estado.ANULADO);\r\n/* 108:155 */ query.setParameter(\"idOrganizacion\", Integer.valueOf(idOrganizacion));\r\n/* 109:156 */ query.setParameter(\"tipoConceptoIVA\", TipoConceptoRetencion.IVA);\r\n/* 110:157 */ query.setParameter(\"tipoConceptoFUENTE\", TipoConceptoRetencion.FUENTE);\r\n/* 111:158 */ query.setParameter(\"tipoConceptoISD\", TipoConceptoRetencion.ISD);\r\n/* 112:159 */ if (sucursalFP != null) {\r\n/* 113:160 */ query.setParameter(\"idSucursal\", Integer.valueOf(sucursalFP.getId()));\r\n/* 114: */ }\r\n/* 115:162 */ if (sucursalRetencion != null) {\r\n/* 116:163 */ query.setParameter(\"sucursalRetencion\", sucursalRetencion.getCodigo());\r\n/* 117: */ }\r\n/* 118:165 */ if (puntoVentaRetencion != null) {\r\n/* 119:166 */ query.setParameter(\"puntoVentaRetencion\", puntoVentaRetencion.getCodigo());\r\n/* 120: */ }\r\n/* 121:169 */ return query.getResultList();\r\n/* 122: */ }", "public static Double getltd(){\n // Log.e(\"LAT\",sharedPreferences.getString(USER_LTD, String.valueOf(0.0)));\n return Double.parseDouble(sharedPreferences.getString(USER_LTD, String.valueOf(0.0)));\n }", "public double getPeluangFK(){\n return fakultas[0];\n }", "@Override\n public void onDataChange(DataSnapshot dataSnapshot) {\n latitude = dataSnapshot.getValue(float.class);\n Integer i = Integer.valueOf((int) (latitude*1000));\n }", "public int getTrangthaiChiTiet();", "double getPerimetro(){\n return 2 * 3.14 * raggio;\n }", "long getLongValue();", "long getLongValue();", "public List<TonKho> getTonKhoHienTai(Integer dmtMaSo, Integer khoMaso, String priority) {\n try {\n //System.out.println(\"-------Begin getTonKhoHienTai-----------------\");\n List<TonKho> lstTonHt = new ArrayList<TonKho>();\n String sSQLLIFO_FIFO = \"SELECT TK.* FROM TON_KHO TK \"\n + \"LEFT JOIN PHIEU_NHAP_KHO P ON TK.PHIEUNHAPKHO_MA = P.PHIEUNHAPKHO_MA \"\n + \"INNER JOIN (SELECT MAX(T.TONKHO_MA) TONKHO_MA FROM TON_KHO T WHERE T.DMKHOA_MASO = \" + khoMaso + \" AND T.DMTHUOC_MASO = \" + dmtMaSo +\" GROUP BY T.TONKHO_MALIENKET) TKMAX ON TK.TONKHO_MA = TKMAX.TONKHO_MA \"\n + \"WHERE TK.DMTHUOC_MASO = \" + dmtMaSo + \" AND TK.TONKHO_TON > 0 \";\n String sSQL_UUTIENCONLAI = \"SELECT TK.* FROM TON_KHO TK, (SELECT MAX(T.TONKHO_MA) TONKHO_MA FROM TON_KHO T WHERE T.DMKHOA_MASO = \" + khoMaso + \" AND T.DMTHUOC_MASO = \" + dmtMaSo + \" GROUP BY T.TONKHO_MALIENKET) TKMAX \"\n + \"WHERE TK.TONKHO_MA = TKMAX.TONKHO_MA AND TK.DMTHUOC_MASO = \" + dmtMaSo + \" AND TK.TONKHO_TON > 0 \";\n\n //Dua vao do uu tien, de lay lo thuoc thich hop va so sanh so luong neu vua du thi hien thi thong tin cua lo thuoc do\n if(priority.equals(\"1\")){\n\t\t/*1:HSD: lo nao gan het han cho xuat truoc*/\n\t\tsSQL_UUTIENCONLAI = sSQL_UUTIENCONLAI + \" ORDER BY TK.TONKHO_NAMHANDUNG, TK.TONKHO_THANGHANDUNG, TK.TONKHO_NGAYHANDUNG\";\n }else if(priority.equals(\"2\")){\n\t\t/*2:LIFO: thuoc nao nhap vao kho sau cho xuat truoc*/\n\t\tsSQLLIFO_FIFO = sSQLLIFO_FIFO + \" ORDER BY P.PHIEUNHAPKHO_NGAYGIOCN desc\";\n }else if(priority.equals(\"3\")){\n\t\t/*3:FIFO: thuoc nao nhap vao truoc cho xuat truoc*/\n\t\tsSQLLIFO_FIFO = sSQLLIFO_FIFO + \" ORDER BY P.PHIEUNHAPKHO_NGAYGIOCN asc\";\n }else if(priority.equals(\"4\")){\n\t\t/*4:TONTHAP: uu tien so luong ton it xuat truoc*/\n\t\tsSQL_UUTIENCONLAI = sSQL_UUTIENCONLAI + \" ORDER BY TK.TONKHO_TON asc\";\n }else if(priority.equals(\"5\")){\n\t\t/*5:TONCAO: uu tien so luong ton nhieu xuat truoc*/\n\t\tsSQL_UUTIENCONLAI = sSQL_UUTIENCONLAI + \" ORDER BY TK.TONKHO_TON desc\";\n }else if(priority.equals(\"6\")){\n\t\t/*6:DONGIATHAP: uu tien don gia thap cho xuat truoc*/\n\t\tsSQL_UUTIENCONLAI = sSQL_UUTIENCONLAI + \" ORDER BY TK.TONKHO_DONGIA asc\";\n }else{\n\t\t/*= 7: DONGIACAO: uu tien don gia thap cho xuat truoc*/\n\t\tsSQL_UUTIENCONLAI = sSQL_UUTIENCONLAI + \" ORDER BY TK.TONKHO_DONGIA desc\";\n }\n\n\n if(priority.equals(\"2\") || priority.equals(\"3\")){\n Query q = getEm().createNativeQuery(sSQLLIFO_FIFO,TonKho.class);\n lstTonHt = q.getResultList();\n }else{\n Query q = getEm().createNativeQuery(sSQL_UUTIENCONLAI,TonKho.class);\n lstTonHt = q.getResultList();\n }\n \n if(lstTonHt != null && lstTonHt.size() > 0){\n //System.out.println(\"-------End getTonKhoHienTai-----------------\"+ lstTonHt.size());\n return lstTonHt;\n }\n } catch (Exception ex) {\n System.out.println(ex.toString());\n return null;\n }\n return null;\n }", "public long getPlateau()\n {\n return plateau;\n }", "public int getLongueur() {\r\n return longueur;\r\n }", "public Double findByTonkhoKhoaMalienketHienTai(String malk, Integer khoaMaso) {\n //System.out.println(\"-----findByTonkhoKhoaMalienketHienTai()-----\");\n String sql = \"select t.tonkho_ton from v_tonkho_khoa_hientai t where t.dmkhoa_maso = \" + khoaMaso +\" and tonkho_malienket = '\"+malk+\"'\";\n Query q = getEm().createNativeQuery(sql);\n try {\n Double tondauky = new Double(((BigDecimal)q.getSingleResult()).doubleValue());\n return tondauky;\n } catch (Exception ex) {\n System.out.println(\"Error findByTonkhoKhoaMalienketHienTai: \" + ex.toString());\n }\n return 0.0;\n }", "public int getC_Conversion_UOM_ID() \n{\nInteger ii = (Integer)get_Value(\"C_Conversion_UOM_ID\");\nif (ii == null) return 0;\nreturn ii.intValue();\n}", "private HashMap <String,String> analyzePrescription(ResponsePrescriptionBean[] psdetails) {\n\t\tSimpleDateFormat df = new SimpleDateFormat(\"yyyy-MM-dd HH:mm:ss\");\n\t\tHashMap <String,String> resp = new HashMap <String,String>();\n\t\tresp.put(\"medication\", psdetails[0].getTreatment().getDetails().get(\"DisplayName\"));\n\t\tresp.put(\"dose\", psdetails[0].getDailydose());\n\t\tresp.put(\"treatment_group\", psdetails[0].getTreatment().getGroup().getTreatmentgroupabbreviation().toLowerCase());\n\t\t\n\t\tint response_time = 0;\n\t\tfloat amt_highdose = 0;\n\t\tfloat amt_lowdose = 0;\n\t\tint x_percent_of_usual_dose_range = 50;\n\t\tint y_percent_of_usual_response_time = 50;\n\t\tint grace = 0;\n\t\tint doa = 0;\n\t\tif (psdetails[0].getTreatment().getDetails() != null) {\n\t\t\tresp.put(\"display_name\", psdetails[0].getTreatment().getDetails().get(\"DisplayName\"));\n\t\t\tresp.put(\"chart_name\", psdetails[0].getTreatment().getDetails().get(\"GuidelineChartName\"));\n\t\t\tresp.put(\"treatmentid\", \"\"+psdetails[0].getTreatment().getTreatmentid());\n\t\t\tresp.put(\"unit\", psdetails[0].getTreatment().getDetails().get(\"Unit\"));\n\t\t\tresp.put(\"treatment_function\", psdetails[0].getTreatment().getDetails().get(\"DrugFunction\"));\n\t\t\tif (psdetails[0].getTreatment().getDetails().get(\"LongActingFlag\") != null) {\n\t\t\t\tresp.put(\"long_acting_flag\", psdetails[0].getTreatment().getDetails().get(\"LongActingFlag\"));\n\t\t\t}\n\t\t\tif (psdetails[0].getTreatment().getDetails().get(\"ResponseTime\") != null) {\n\t\t\t\tresponse_time = Integer.parseInt(psdetails[0].getTreatment().getDetails().get(\"ResponseTime\"));\n\t\t\t}\n\t\t\tif (psdetails[0].getTreatment().getDetails().get(\"DailyHighDose\") != null && !psdetails[0].getTreatment().getDetails().get(\"DailyHighDose\").equals(\"\")) {\n\t\t\t\tamt_highdose = Float.parseFloat(psdetails[0].getTreatment().getDetails().get(\"DailyHighDose\"));\n\t\t\t}\n\t\t\tif (psdetails[0].getTreatment().getDetails().get(\"DailyLowDose\") != null && !psdetails[0].getTreatment().getDetails().get(\"DailyLowDose\").equals(\"\")) {\n\t\t\t\tamt_lowdose = Float.parseFloat(psdetails[0].getTreatment().getDetails().get(\"DailyLowDose\"));\n\t\t\t}\n\t\t\tif (psdetails[0].getTreatment().getDetails().get(\"AMTPercentDoseRange\") != null) {\n\t\t\t\tx_percent_of_usual_dose_range = Integer.parseInt(psdetails[0].getTreatment().getDetails().get(\"AMTPercentDoseRange\"));\n\t\t\t}\n\t\t\tif (psdetails[0].getTreatment().getDetails().get(\"AMTPercentResponseTime\") != null) {\n\t\t\t\ty_percent_of_usual_response_time = Integer.parseInt(psdetails[0].getTreatment().getDetails().get(\"AMTPercentResponseTime\"));\n\t\t\t}\n\t\t\tif (psdetails[0].getTreatment().getDetails().get(\"AMTGracePeriod\") != null) {\n\t\t\t\tgrace = Integer.parseInt(psdetails[0].getTreatment().getDetails().get(\"AMTGracePeriod\"));\n\t\t\t}\n\t\t\tif (psdetails[0].getTreatment().getDetails().get(\"DurationOfAction\") != null) {\n\t\t\t\tdoa = Integer.parseInt(psdetails[0].getTreatment().getDetails().get(\"DurationOfAction\"));\n\t\t\t}\n\t\t}\n\n\t\tint amt_req_duration = response_time * y_percent_of_usual_response_time / 100;\n\t\tfloat amt_req_dose = amt_lowdose + (amt_highdose - amt_lowdose) * x_percent_of_usual_dose_range / 100;\n\n\t\tlong dose_duration = 0;\n\t\tboolean same_dose = true;\n\t\tlong medication_duration = 0;\n\t\tlong amt_duration = 0;\n\t\tboolean amt_dose = false;\n\t\tif (amt_req_dose > 0) amt_dose = true;\n\t\tDate expdate = null;\n\t\tDate startdate = null;\n\t\tDate workingstartdate = null;\n\t\tfloat dose = 0;\n\t\ttry {\n\t\t\tworkingstartdate = df.parse(psdetails[0].getEntrydate());\n\t\t} catch (ParseException e1) {\n\t\t\te1.printStackTrace();\n\t\t}\n\t\t\n\t\tResponsePrescriptionBean working = new ResponsePrescriptionBean(psdetails[0]);\n\t\tresp.put(\"dose_start_date\", RecommendUtils.formatDateFromDB(workingstartdate));\n\t\tresp.put(\"medication_start_date\", RecommendUtils.formatDateFromDB(workingstartdate));\n\t\tdose_duration = (new Date().getTime() - workingstartdate.getTime()+(1000*3600*12))/(1000*3600*24);\n\t\tmedication_duration = (new Date().getTime() - workingstartdate.getTime()+(1000*3600*12))/(1000*3600*24);\n\t\tdose = Float.parseFloat(psdetails[0].getDailydose());\n\t\tif (amt_req_dose > 0 && dose >= amt_req_dose) {\n\t\t\tamt_duration = (new Date().getTime() - workingstartdate.getTime()+(1000*3600*12))/(1000*3600*24);\n\t\t}\n\t\tfor (int i=1; i<psdetails.length; i++) {\n\t\t\ttry {\n\t\t\t\tstartdate = df.parse(psdetails[i].getEntrydate());\n\t\t\t} catch (ParseException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\tCalendar cal = Calendar.getInstance();\n\t\t\tcal.setTime(startdate);\n\t\t\tcal.add(Calendar.DATE, psdetails[i].getDuration()+doa+grace);\n\t\t\texpdate = cal.getTime();\n\t\t\tif (workingstartdate.before(expdate)) {\n\t\t\t\tworkingstartdate = startdate;\n\t\t\t\tresp.put(\"medication_start_date\", RecommendUtils.formatDateFromDB(startdate));\n\t\t\t\tmedication_duration = (new Date().getTime() - workingstartdate.getTime()+(1000*3600*12))/(1000*3600*24);\n\t\t\t\tif (same_dose && working.getDailydose().equals(psdetails[i].getDailydose())) {\n\t\t\t\t\tresp.put(\"dose_start_date\", RecommendUtils.formatDateFromDB(startdate));\n\t\t\t\t\tdose_duration = (new Date().getTime() - workingstartdate.getTime()+(1000*3600*12))/(1000*3600*24);\n\t\t\t\t} else {\n\t\t\t\t\tsame_dose = false;\n\t\t\t\t}\n\t\t\t\tdose = Float.parseFloat(psdetails[i].getDailydose());\n\t\t\t\tif (amt_req_dose > 0 && dose >= amt_req_dose && amt_dose) {\n\t\t\t\t\tamt_duration = (new Date().getTime() - workingstartdate.getTime()+(1000*3600*12))/(1000*3600*24);\n\t\t\t\t} else {\n\t\t\t\t\tamt_dose = false;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t} else { //There's a gap in this prescription, ignore earlier prescriptions of this drug.\n\t\t\t\tsame_dose = false;\n\t\t\t\ti = psdetails.length;\n\t\t\t}\n\t\t}\n\t\tresp.put(\"medication_duration\", \"\"+medication_duration);\n\t\tresp.put(\"medication_duration_weeks\", \"\"+((int)(medication_duration/7)));\n\t\tresp.put(\"dose_duration\", \"\"+dose_duration);\n\t\tresp.put(\"dose_duration_weeks\", \"\"+((int)(dose_duration/7)));\n\t\t\n\t\tif (psdetails[0].getTreatment().getDetails().get(\"LongActingFlag\") != null && psdetails[0].getTreatment().getDetails().get(\"LongActingFlag\").equals(\"1\")\n\t\t\t\t&& psdetails[0].getTreatment().getDetails().get(\"AdministrationMechanism\") != null && psdetails[0].getTreatment().getDetails().get(\"AdministrationMechanism\").equalsIgnoreCase(\"injection\")) {\n\t\t\tresp.put(\"adequate_medication_trial\", \"0\");\n\t\t\tresp.put(\"adequate_medication_trial_response\", \"0\");\n\t\t\tif (amt_req_dose > 0 && medication_duration >= response_time) {\n\t\t\t\tif (analyzeLongActingAMTDoseDate(psdetails, new Date(), amt_req_dose)) {\n\t\t\t\t\tboolean amt = false;\n\t\t\t\t\tworkingstartdate = null;\n\t\t\t\t\ttry {\n\t\t\t\t\t\tworkingstartdate = df.parse(psdetails[0].getEntrydate());\n\t\t\t\t\t} catch (ParseException e) {\n\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t}\n\t\t\t\t\tfor (int i=1; i<psdetails.length; i++) {\n\t\t\t\t\t\t// for each administration of the treatment, we have to determine if the patient \n\t\t\t\t\t\t// was above the amt_req_dose level (within the grace period) before the administration.\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tstartdate = df.parse(psdetails[i].getEntrydate());\n\t\t\t\t\t\t} catch (ParseException e) {\n\t\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t\t}\n\t\t\t\t\t\tCalendar cal = Calendar.getInstance();\n\t\t\t\t\t\tcal.setTime(startdate);\n\t\t\t\t\t\tcal.add(Calendar.DATE, -1);\n\t\t\t\t\t\tif (analyzeLongActingAMTDoseDate(psdetails, cal.getTime(), amt_req_dose)) {\n\t\t\t\t\t\t\tworkingstartdate = startdate;\n\t\t\t\t\t\t\tamt_duration = (new Date().getTime() - workingstartdate.getTime()+(1000*3600*12))/(1000*3600*24);\n\t\t\t\t\t\t\tif (amt_duration >= amt_req_duration) {\n\t\t\t\t\t\t\t\tamt = true;\n\t\t\t\t\t\t\t\ti = psdetails.length;\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\tif (amt) {\n\t\t\t\t\t\tresp.put(\"adequate_medication_trial\", \"1\");\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t} else {\n\t\t\tif (amt_req_dose > 0 && amt_duration >= amt_req_duration && medication_duration >= response_time) {\n\t\t\t\tresp.put(\"adequate_medication_trial\", \"1\");\n\t\t\t\tresp.put(\"adequate_medication_trial_response\", \"0\");\n\t\t\t} else {\n\t\t\t\tresp.put(\"adequate_medication_trial\", \"0\");\n\t\t\t\tresp.put(\"adequate_medication_trial_response\", \"0\");\n\t\t\t}\n\t\t}\n\t\tif (psdetails[0].getTreatment().getDetails().get(\"LabNamePattern\") != null) {\n\t\t\tresp.put(\"serum_level_low\", psdetails[0].getTreatment().getDetails().get(\"SerumLevelLow\"));\n\t\t\tresp.put(\"serum_level_high\", psdetails[0].getTreatment().getDetails().get(\"SerumLevelHigh\"));\n\t\t\tresp.put(\"response_time\", psdetails[0].getTreatment().getDetails().get(\"ResponseTime\"));\n\t\t\tresp.put(\"serum_level_unit\", psdetails[0].getTreatment().getDetails().get(\"SerumLevelUnit\"));\n\t\t\tresp.put(\"lab_name\", psdetails[0].getTreatment().getDetails().get(\"LabNamePattern\"));\n\t\t\tresp.put(\"amt_response_time\", \"\"+amt_req_duration);\n\t\t}\n\t\treturn resp;\n\t}", "public CalMetasDTO leerRegistro() {\n/* */ try {\n/* 56 */ CalMetasDTO reg = new CalMetasDTO();\n/* 57 */ reg.setCodigoCiclo(this.rs.getInt(\"codigo_ciclo\"));\n/* 58 */ reg.setCodigoPlan(this.rs.getInt(\"codigo_plan\"));\n/* 59 */ reg.setCodigoMeta(this.rs.getInt(\"codigo_meta\"));\n/* 60 */ reg.setCodigoObjetivo(this.rs.getInt(\"codigo_objetivo\"));\n/* 61 */ reg.setDescripcion(this.rs.getString(\"descripcion\"));\n/* 62 */ reg.setJustificacion(this.rs.getString(\"justificacion\"));\n/* 63 */ reg.setValorMeta(this.rs.getDouble(\"valor_meta\"));\n/* 64 */ reg.setTipoMedicion(this.rs.getString(\"tipo_medicion\"));\n/* 65 */ reg.setFuenteDato(this.rs.getString(\"fuente_dato\"));\n/* 66 */ reg.setAplicaEn(this.rs.getString(\"aplica_en\"));\n/* 67 */ reg.setUnidadMedida(this.rs.getString(\"unidad_medida\"));\n/* 68 */ reg.setValorMinimo(this.rs.getDouble(\"valor_minimo\"));\n/* 69 */ reg.setValorMaximo(this.rs.getDouble(\"valor_maximo\"));\n/* 70 */ reg.setMes01(this.rs.getString(\"mes01\"));\n/* 71 */ reg.setMes02(this.rs.getString(\"mes02\"));\n/* 72 */ reg.setMes03(this.rs.getString(\"mes03\"));\n/* 73 */ reg.setMes04(this.rs.getString(\"mes04\"));\n/* 74 */ reg.setMes05(this.rs.getString(\"mes05\"));\n/* 75 */ reg.setMes06(this.rs.getString(\"mes06\"));\n/* 76 */ reg.setMes07(this.rs.getString(\"mes07\"));\n/* 77 */ reg.setMes08(this.rs.getString(\"mes08\"));\n/* 78 */ reg.setMes09(this.rs.getString(\"mes09\"));\n/* 79 */ reg.setMes10(this.rs.getString(\"mes10\"));\n/* 80 */ reg.setMes11(this.rs.getString(\"mes11\"));\n/* 81 */ reg.setMes12(this.rs.getString(\"mes12\"));\n/* 82 */ reg.setEstado(this.rs.getString(\"estado\"));\n/* 83 */ reg.setTipoGrafica(this.rs.getString(\"tipo_grafica\"));\n/* 84 */ reg.setFechaInsercion(this.rs.getString(\"fecha_insercion\"));\n/* 85 */ reg.setUsuarioInsercion(this.rs.getString(\"usuario_insercion\"));\n/* 86 */ reg.setFechaModificacion(this.rs.getString(\"fecha_modificacion\"));\n/* 87 */ reg.setUsuarioModificacion(this.rs.getString(\"usuario_modificacion\"));\n/* 88 */ reg.setNombreTipoMedicion(this.rs.getString(\"nombreTipoMedicion\"));\n/* 89 */ reg.setNombreEstado(this.rs.getString(\"nombreEstado\"));\n/* 90 */ reg.setNombreUnidadMedida(this.rs.getString(\"nombre_unidad_medida\"));\n/* */ \n/* */ try {\n/* 93 */ reg.setNumeroAcciones(this.rs.getInt(\"acciones\"));\n/* */ }\n/* 95 */ catch (Exception e) {}\n/* */ \n/* */ \n/* */ \n/* 99 */ return reg;\n/* */ }\n/* 101 */ catch (Exception e) {\n/* 102 */ e.printStackTrace();\n/* 103 */ Utilidades.writeError(\"CalPlanMetasFactory:leerRegistro \", e);\n/* */ \n/* 105 */ return null;\n/* */ } \n/* */ }", "public String getLonguitud() {\r\n return longuitud;\r\n }", "@Optional\n @ImportColumn(\"KVBODPREISBER\")\n Property<Double> normierterGfzBereinigterBodenpreis();", "public int getLongueur() {\n return longueur;\n }", "@Override\n\tpublic Map getPointsForHotArea(String terminalId) {\n\t\tMap map = new HashMap();\n\t\tString lngs = \"\";\n\t\tString lats = \"\";\n\t\ttry {\n\t\t\tList<PositionData> info_list = positionDataDao.findByHQL(\"from PositionData where tid = '\" + terminalId + \"' order by date desc limit 2000\");\n\t\t\tfor(int i=0;i<info_list.size();i++){\n\t\t\t\tif(info_list.get(i).getInfo().contains(\"GPS状态:GPS不定位;\")){\n\t\t\t\t\tinfo_list.remove(i);\n\t\t\t\t\ti--;\n\t\t\t\t}\n\t\t\t}\n\t\t\tList<PositionData> position_list = new ArrayList<PositionData>();\n\t\t\tfor(int i=0;i<(info_list.size()>2000?2000:info_list.size());i++){\n\t\t\t\tposition_list.add(info_list.get(i));\n\t\t\t}\n\t\t\tfor(int i=0;i<position_list.size();i++){\n\t\t\t\tString point_latitude = position_list.get(i).getInfo().substring(position_list.get(i).getInfo().lastIndexOf(\"纬度:\"));\n\t\t\t\tpoint_latitude = point_latitude.substring(0,point_latitude.indexOf(\";\"));\n\t\t\t\tpoint_latitude = point_latitude.split(\":\")[1];\n\t\t\t\tpoint_latitude = point_latitude.replaceAll(\"\\\\.\", \"\");\n\t\t\t\tpoint_latitude = point_latitude.replaceAll(\"°\", \".\");\n\t\t\t\tString tempStrPart1 = point_latitude.split(\"\\\\.\")[1];\n\t\t\t\ttempStrPart1 = \"0.\" + tempStrPart1;\n\t\t\t\tdouble tempD1 = Double.parseDouble(tempStrPart1)/60*100;\n\t\t\t\tpoint_latitude = Integer.parseInt(point_latitude.split(\"\\\\.\")[0]) + tempD1 + \"\";\n\t\t\t\tlats += point_latitude + \",\";\n\t\t\t\t\n\t\t\t\tString point_longitute = position_list.get(i).getInfo().substring(position_list.get(i).getInfo().lastIndexOf(\"经度:\"));\n\t\t\t\tpoint_longitute = point_longitute.substring(0,point_longitute.indexOf(\";\"));\n\t\t\t\tpoint_longitute = point_longitute.split(\":\")[1];\n\t\t\t\tpoint_longitute = point_longitute.replaceAll(\"\\\\.\", \"\");\n\t\t\t\tpoint_longitute = point_longitute.replaceAll(\"°\", \".\");\n\t\t\t\tString tempStrPart2 = point_longitute.split(\"\\\\.\")[1];\n\t\t\t\ttempStrPart2 = \"0.\" + tempStrPart2;\n\t\t\t\tdouble tempD2 = Double.parseDouble(tempStrPart2)/60*100;\n\t\t\t\tpoint_longitute = Integer.parseInt(point_longitute.split(\"\\\\.\")[0]) + tempD2 + \"\";\n\t\t\t\tlngs += point_longitute + \",\";\n\t\t\t}\n\t\t\tmap.put(\"lngs\",lngs.subSequence(0, lngs.lastIndexOf(\",\")));\n\t\t\tmap.put(\"lats\",lats.subSequence(0, lats.lastIndexOf(\",\")));\n\t\t\t\n\t\t\t\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\treturn map;\n\t}", "public static void Promedio(){\n int ISumaNotas=0;\n int IFila=0,ICol=0;\n int INota;\n float FltPromedio;\n for(IFila=0;IFila<10;IFila++)\n {\n ISumaNotas+=Integer.parseInt(StrNotas[IFila][1]);\n }\n FltPromedio=ISumaNotas/10;\n System.out.println(\"El promedio de la clase es:\"+FltPromedio);\n }", "public int getTamanio(){\r\n return tamanio;\r\n }", "public void receivedValue(HashMap<Sensor, Double> e) {\n\t\ttry {\n\t\t\tarmIMUAngle = e.get(Sensor.ARM_ANGLE);\n\t\t} catch (NullPointerException error) {\n\t\t\tif (debug)\n\t\t\t\tSystem.out.println(\"Bad Angle Sensor\");\n\t\t}\n\t\ttry {\n\t\t\tcurrentDist = e.get(Sensor.ULTRASONIC_DISTANCE);\n\t\t} catch (NullPointerException error) {\n\t\t\tif (debug)\n\t\t\t\tSystem.out.println(\"Bad Ultrasonic Sensor\");\n\t\t}\n\t}", "private List<Object[]> getReporteRecursivo(Reporteador reporteadorSeleccionado, DetalleReporteador detallePadre, Date fechaDesde, Date fechaHasta, int idSucursal, int nivel, Map<Integer, BigDecimal> mapaValorVariables)\r\n/* 289: */ throws AS2Exception, IllegalArgumentException, ArithmeticException\r\n/* 290: */ {\r\n/* 291:315 */ List<DetalleReporteador> listaDetalleReporteador = null;\r\n/* 292:316 */ if (detallePadre == null) {\r\n/* 293:317 */ listaDetalleReporteador = reporteadorSeleccionado.getListaDetalleReporteador();\r\n/* 294: */ } else {\r\n/* 295:319 */ listaDetalleReporteador = detallePadre.getListaDetalleReporteadorHijo();\r\n/* 296: */ }\r\n/* 297:321 */ nivel++;\r\n/* 298: */ \r\n/* 299:323 */ List<Object[]> resultado = new ArrayList();\r\n/* 300:326 */ for (DetalleReporteador detalle : listaDetalleReporteador) {\r\n/* 301:327 */ if (detalle.isActivo())\r\n/* 302: */ {\r\n/* 303:328 */ DetalleReporteadorVariable detalleVariable = detalle.getDetalleReporteadorVariable();\r\n/* 304:329 */ Object[] fila = new Object[4];\r\n/* 305:330 */ fila[0] = Integer.valueOf(nivel);\r\n/* 306:331 */ fila[1] = detalle.getNombre();\r\n/* 307:332 */ fila[2] = detalle.getDescripcion();\r\n/* 308:334 */ if (detalle.getDetalleReporteadorVariable() != null)\r\n/* 309: */ {\r\n/* 310:335 */ BigDecimal valor = obtenerValorExpresion(detalleVariable, fechaDesde, fechaHasta, idSucursal, mapaValorVariables);\r\n/* 311:336 */ fila[3] = valor;\r\n/* 312: */ }\r\n/* 313:339 */ resultado.add(fila);\r\n/* 314: */ \r\n/* 315: */ \r\n/* 316:342 */ resultado\r\n/* 317:343 */ .addAll(getReporteRecursivo(reporteadorSeleccionado, detalle, fechaDesde, fechaHasta, idSucursal, nivel, mapaValorVariables));\r\n/* 318: */ }\r\n/* 319: */ }\r\n/* 320:347 */ return resultado;\r\n/* 321: */ }", "public void MUL( ){\n String tipo1 = pilhaVerificacaoTipos.pop().toString();\n String tipo2 = pilhaVerificacaoTipos.pop().toString();\n String val1 = dads.pop().toString();\n float fresult = -1;\n int iresult = -1;\n String val2 = dads.pop().toString();\n if(val1 != null && val2 != null){\n if (tipo1 != null && tipo2 != null){\n if(tipo1 == \"inteiro\" && tipo2 == \"real\"){\n fresult = Integer.parseInt(val1) * Float.parseFloat(val2);\n dads.push(fresult);\n pilhaVerificacaoTipos.push(\"real\");\n }else if(tipo1 == \"real\" && tipo2 ==\"inteiro\"){\n fresult = Integer.parseInt(val2) * Float.parseFloat(val1);\n dads.push(fresult);\n pilhaVerificacaoTipos.push(\"real\");\n }else if(tipo1 == \"real\" && tipo2 ==\"real\"){\n fresult = Float.parseFloat(val2) * Float.parseFloat(val1);\n dads.push(fresult);\n pilhaVerificacaoTipos.push(\"real\");\n }else if(tipo1 == \"inteiro\" && tipo2 ==\"inteiro\"){\n iresult = Integer.parseInt(val2) * Integer.parseInt(val1);\n dads.push(iresult);\n pilhaVerificacaoTipos.push(\"inteiro\");\n }\n else{\n mensagensErrosVM += \"\\nRUNTIME ERROR(1): essa instrução é válida apenas para valores inteiros ou reais.\";\n numErrVM += 1;\n return;\n }\n }else{\n mensagensErrosVM += \"\\nRUNTIME ERROR(2): não foi possível executar a instrução, tipo null encontrado.\";\n numErrVM += 1;\n return;\n }\n }else{\n mensagensErrosVM += \"\\nRUNTIME ERROR(3): não foi possível executar a instrução, valor null encontrado.\";\n numErrVM += 1;\n return;\n }\n\n\n\n topo += -1;\n ponteiro += 1;\n }", "@Override\r\n public String getUsoMaggioreRuntime() {\n int maxpacchetti=0;\r\n int npacchetti=0;\r\n String a;\r\n Map<String, String> mappatemp=new HashMap<>();\r\n Iterator<Map<String, String>> iterator;\r\n iterator = getListaRuntime().iterator();\r\n System.out.println(getUltimaEntry().size());\r\n\t\twhile (iterator.hasNext()) {\r\n \r\n\t\t\tMap<String, String> m = iterator.next();\r\n //si fa la ricerca della più utilizzata all'inerno della mappa\r\n \r\n npacchetti=Integer.parseInt(m.get(\"RX-OK\"))+Integer.parseInt(m.get(\"TX-OK\"));\r\n System.out.println(maxpacchetti);\r\n if (maxpacchetti<npacchetti){\r\n maxpacchetti=npacchetti;\r\n mappatemp.put(\"Iface\",m.get(\"Iface\"));\r\n mappatemp.put(\"Pacchetti_TX+RX_OK\",String.valueOf(npacchetti));\r\n \r\n }\r\n }\r\n \r\n try {\r\n String json = new ObjectMapper().writeValueAsString(mappatemp);\r\n System.out.println(json);\r\n \r\n \r\n if (json!=null) return json ;\r\n } catch (JsonProcessingException ex) {\r\n Logger.getLogger(NetstatSingleton.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n \r\n \r\n \r\n return \"NOT WORKING\";\r\n }", "public double getIngresos(){\n return this.ingresos;\n }", "public int getPrecio(){\n return precio;\n }", "public int getminutoStamina(){\n return tiempoReal;\n }", "public static int datoint(){\n \n try {\n return(Integer.parseInt(dato()));\n } catch (NumberFormatException error) {\n return (Integer.MIN_VALUE);\n }\n \n }", "public java.lang.Object get(int field$) {\n switch (field$) {\n case 0: return pt;\n case 1: return eta;\n case 2: return phi;\n case 3: return m;\n case 4: return e;\n case 5: return q;\n case 6: return dzLeadChHad;\n case 7: return nSignalChHad;\n case 8: return nSignalGamma;\n case 9: return antiEleMVA5;\n case 10: return antiEleMVA5Cat;\n case 11: return rawMuonRejection;\n case 12: return rawIso3Hits;\n case 13: return rawIsoMVA3oldDMwoLT;\n case 14: return rawIsoMVA3oldDMwLT;\n case 15: return rawIsoMVA3newDMwoLT;\n case 16: return rawIsoMVA3newDMwLT;\n case 17: return puppiChHadIso;\n case 18: return puppiGammaIso;\n case 19: return puppiNeuHadIso;\n case 20: return puppiChHadIsoNoLep;\n case 21: return puppiGammaIsoNoLep;\n case 22: return puppiNeuHadIsoNoLep;\n case 23: return hpsDisc;\n default: throw new org.apache.avro.AvroRuntimeException(\"Bad index\");\n }\n }", "public Object obtDupla(Object key1, Object key2) {\r\n\t\tObject value=null;\r\n\t\tHashMap<String, Double> fila = structure.get(key1);\r\n\t\tif (fila != null)\r\n\t\t\tvalue = fila.get(key2);\r\n\t\treturn value;\r\n\t}", "public double getPercepcion(){\n return localPercepcion;\n }", "public Double getDouble(JSONValue val , String key){\r\n\t\tif ( val==null||key==null || key.length()==0)\r\n\t\t\treturn null ; \r\n\t\tJSONObject obj=val.isObject() ; \r\n\t\tif ( obj==null )\r\n\t\t\treturn null ; \r\n\t\tif (!obj.containsKey(key))\r\n\t\t\treturn null; \r\n\t\tJSONValue actualVal = obj.get(key);\r\n\t\tif ( actualVal.isNull() !=null)\r\n\t\t\treturn null ; \r\n\t\tif ( actualVal.isNumber() !=null)\r\n\t\t\treturn actualVal.isNumber().doubleValue();\r\n\t\treturn null ; \r\n\t}", "public BigInteger atas(){\n if(atas!=null)\n \n return atas.data;\n \n else {\n return null; \n }\n }", "public static double datodouble(){\n try {\n Double f=new Double(dato());\n return(f.doubleValue());\n } catch (NumberFormatException error) {\n return(Double.NaN);\n }\n }", "long getNumericField();", "public Long getLong(JSONValue val , String key){\r\n\t\tif ( val==null||key==null || key.length()==0)\r\n\t\t\treturn null ; \r\n\t\tJSONObject obj=val.isObject() ; \r\n\t\tif ( obj==null )\r\n\t\t\treturn null ; \r\n\t\tif (!obj.containsKey(key))\r\n\t\t\treturn null; \r\n\t\tJSONValue actualVal = obj.get(key);\r\n\t\tif ( actualVal.isNull() !=null)\r\n\t\t\treturn null ; \r\n\t\tif ( actualVal.isNumber() !=null)\r\n\t\t\treturn ((Double)actualVal.isNumber().doubleValue()).longValue();\r\n\t\treturn null ; \r\n\t}", "void getValues(long id, Map<String,Object> record);", "public final List<TimeKey> mo13029a(Map<String, ? extends Map<String, String>> map) {\n ArrayList arrayList = new ArrayList(map.size());\n for (Map.Entry next : map.entrySet()) {\n Map map2 = (Map) next.getValue();\n Object obj = map2.get(\"encrypted_mobile_id\");\n if (obj != null) {\n String str = (String) obj;\n Object obj2 = map2.get(\"fromDate\");\n if (obj2 != null) {\n long roundToLong = MathKt.roundToLong(((Double) obj2).doubleValue());\n Object obj3 = map2.get(\"tillDate\");\n if (obj3 != null) {\n arrayList.add(new TimeKey((String) next.getKey(), str, TimeKey.DEFAULT_NAME, roundToLong, MathKt.roundToLong(((Double) obj3).doubleValue()), 0, 32, (DefaultConstructorMarker) null));\n } else {\n throw new NullPointerException(\"null cannot be cast to non-null type kotlin.Double\");\n }\n } else {\n throw new NullPointerException(\"null cannot be cast to non-null type kotlin.Double\");\n }\n } else {\n throw new NullPointerException(\"null cannot be cast to non-null type kotlin.String\");\n }\n }\n return arrayList;\n }", "private double getValMorp ( cell c, morphogen m) {\t\t\r\n\t\tif ( m.equals(morphogen.a))\r\n\t\t\treturn c.getVal1();\r\n\t\telse\r\n\t\t\treturn c.getVal2();\r\n\t}", "double getPerimetro();", "@Override\n public Number getValue() {\n return tcpStatWrapper.query().get(entry.getKey());\n }", "public static Double getlng(){\n Log.e(\"LONG\",sharedPreferences.getString(USER_LNG, String.valueOf(0.0)));\n return Double.parseDouble(sharedPreferences.getString(USER_LNG, String.valueOf(0.0)));\n\n\n }", "protected final Double getDouble(final String key) {\n try {\n if (!jo.isNull(key)) {\n return jo.getDouble(key);\n }\n } catch (JSONException e) {\n }\n return null;\n }", "public int getM_Product_ID() \n{\nInteger ii = (Integer)get_Value(\"M_Product_ID\");\nif (ii == null) return 0;\nreturn ii.intValue();\n}", "private static String readEnergyJSON(Date start, Date end, String resolution, String point) throws IOException {\n DateFormat df = new SimpleDateFormat(\"yyyy/MM/dd+HH:mm:ss\");\n df.setTimeZone(SimpleTimeZone.getTimeZone(\"US/Central\"));\n String url_string = \"https://rest.buildingos.com/reports/timeseries/?start=\" + df.format(start) + \"&resolution=\" + resolution + \"&end=\" + df.format(end) + \"&name=\" + point;\n URL consumption_url = new URL(url_string);\n Log.i(\"url\", consumption_url.toString());\n InputStream in = consumption_url.openStream();\n BufferedReader reader = new BufferedReader(new InputStreamReader(in));\n String result, line = reader.readLine();\n result = line;\n while((line=reader.readLine())!=null) {\n result += line;\n }\n String json_string = result;\n JSONObject all_electricity_page = null;\n String return_string = \"\";\n\n try {\n all_electricity_page = (JSONObject) new JSONTokener(json_string).nextValue();\n JSONArray results = (JSONArray)all_electricity_page.get(\"results\");\n for (int i = 0; i < results.length(); i++) {\n Double value = -2.0;\n try {\n if (results.get(i) != JSONObject.NULL\n && ((JSONObject)results.get(i)).get(point) != JSONObject.NULL) {\n value = ((JSONObject) ((JSONObject) results.get(i)).get(point)).getDouble(\"value\");\n //Log.i(\"not null\", \"getting here? value = \" + value);\n\n }\n else {\n value = 0.0;\n String timestamp_string = ((JSONObject) results.get(i)).getString(\"startTimestamp\");\n Log.i(\"null\", \"adding -1.0? point=\" + point + \" time=\" + timestamp_string);\n }\n\n String timestamp_string = ((JSONObject) results.get(i)).getString(\"startTimestamp\");\n return_string += timestamp_string + \";\" + value + \"\\n\";\n }\n catch (Exception e) {\n //System.out.println(results.get(i));\n e.printStackTrace();\n //Log.i(\"null error?\", \"error: value = \" + value);\n //Log.i(\"null error?\", e.toString());\n }\n }\n\n } catch (JSONException e) {\n //didn't find any results - url must have been wrong, or bad connection\n e.printStackTrace();\n Log.i(\"readEnergyJSON\", \"bad url? \" + e.toString());\n }\n return return_string;\n }", "double getDoubleValue1();", "private double compararOrientacion(Map<String, Object> anuncio1, Map<String , Object> anuncio2){\n\n Integer idOrientacion1 = anuncio1.containsKey(\"Id Orientacion\") ? ((Double) anuncio1.get(\"Id Orientacion\")).intValue() : null;\n Integer idOrientacion2 = anuncio2.containsKey(\"Id Orientacion\") ? ((Double) anuncio2.get(\"Id Orientacion\")).intValue() : null;\n\n double base = 0;\n boolean continuar = true;\n\n if (idOrientacion1 == null || idOrientacion2 == null){\n base = 1;\n continuar = false;\n }\n\n if (idOrientacion1 == idOrientacion2){\n base = 1;\n continuar = false;\n }\n\n if (continuar){\n int diferencia = Math.abs(idOrientacion1 - idOrientacion2);\n\n if (diferencia == 7){\n diferencia = 1;\n }\n\n base = diferencia == 1 ? 0.5 : 0;\n }\n\n return base * Constantes.PESOS_F1.get(\"Orientacion\");\n }", "public static void main(String args[]) {\n\t\t \n\t\t // lets define some variables and try to insert other data type value\n\t\t int x = 23;\n\t\t double y ;\n\t\t y = x ; // here we are storing int to double ie. smaller to larger . So no error\n\t\t System.out.println(y);\n\t\t System.out.println(x);\n\t\t \n\t\t double a = 25.28;\n\t\t int b ;\n\t\t //b = a; // Here we can see error since we are trying to store double to int i.e larger to smaller w/o casting\n\t\t \n\t\t // lets do casting and store \n\t\t b = (int) a;\n\t\t System.out.println(b);\n\t\t \n\t\t boolean bool = true ;\n\t\t int num = bool; // not possible as we know boolean data type cannot be typecast;\n\t\t \n\t\t //int to long\n\t\t int value = 34;\n\t\t long value1 ;\n\t\t \n\t\t value1 = value;\n\t\t System.out.println(value1);\n\t\t value = value1; // trying longer to smaller w/o casting which is not possible;\n\t\t System.out.println(value);\n\t\t \n\t\t value = (int) value1;\n\t\t \n\t\t // long to float \n\t\t \n\t\t long value2 = 678;\n\t\t float value3; \n\t\t value3 = value2; // works fine since smaller to larger\n\t\t System.out.println(value3);\n\t\t value2 = value3 ; // trying longer to smaller w/o casting which is not possible;\n\t\t \n\t\t // so to assign value3 to value2 we need Explicitly type cast\n\t\t value2 = (long) value3;\n\t\t \n\t\t // float to long and vice versa \n\t\t \n\t\t float value4 = 567.78f;\n\t\t double value5 ;\n\t\t value5 = value4 ; // works fine since assigning smaller type to larger type\n\t\t System.out.println(value5);\n\t\t value4 = value5 ; // trying longer to smaller w/o casting which is not possible;\n\t\t \n\t\t // Also we can explicit cast for storing larger (double) to long/int/short\n\t\t double value6 = 3564.8;\n\t\t int value7 ;\n\t\t \n\t\t value7 = (int) value6;\n\t\t System.out.println(value7);\n\t\t \n\t\t \n\t\t \n\t\t \n\t\t \n\t }", "public void RestoreUserTemperatureValues(ArrayList<Map<String,Object>> result)\n {\n try {\n minTemp = (double) result.get(0).get(\"MinSet\");\n maxTemp = (double) result.get(0).get(\"MaxSet\");\n\n EditText minTempField = (EditText) findViewById(R.id.temperature_minTemp_EditText);\n minTempField.setText(Double.toString(minTemp));\n\n EditText maxTempField = (EditText) findViewById(R.id.temperature_maxTemp_EditText);\n maxTempField.setText(Double.toString(maxTemp));\n\n getChartPoints(result);\n }\n catch (Exception e)\n {\n Log.e(\"TAG:\",e.getMessage());\n Toast.makeText(this,e.getMessage(),Toast.LENGTH_SHORT).show();\n }\n }", "Map<String, Double> getStatus();", "@Optional\n @ImportColumn(\"FAKTOR\")\n Property<Double> faktorBereinigterKaufpreis();", "HashMap saveOrderPaymentTE(long orderIdi,double monto,String hdnRa,String hdnVoucher,String hdnComentario,String hdnNumLogin,String hdnUser,int paymenttype,long paymentOrderQuotaId)throws SQLException, Exception, RemoteException;", "@Override\n\tpublic ValenciaItemEnriched map(Tuple2<ValenciaItem, ValenciaItem> value) throws Exception {\n\t\tthis.cpuGauge.updateValue(LinuxJNAAffinity.INSTANCE.getCpu());\n\n\t\tValenciaItem valenciaItem00 = value.f0;\n\t\tValenciaItem valenciaItem01 = value.f1;\n\t\tList<Point> coordinates00 = valenciaItem00.getCoordinates();\n\t\tList<Point> coordinates01 = valenciaItem01.getCoordinates();\n\t\tList<Point> newCoordinates = new ArrayList<Point>();\n\t\tnewCoordinates.addAll(coordinates00);\n\t\tnewCoordinates.addAll(coordinates01);\n\t\tString newValue = \"\";\n\n\t\tif (valenciaItem00.getValue() != null) {\n\t\t\tif (valenciaItem00.getType() == ValenciaItemType.TRAFFIC_JAM) {\n\t\t\t\tnewValue = ((Integer) valenciaItem00.getValue()).toString();\n\t\t\t} else if (valenciaItem00.getType() == ValenciaItemType.AIR_POLLUTION) {\n\t\t\t\tnewValue = ((AirPollution) valenciaItem00.getValue()).toString();\n\t\t\t} else if (valenciaItem00.getType() == ValenciaItemType.NOISE) {\n\t\t\t} else {\n\t\t\t\tthrow new Exception(\"ValenciaItemType is NULL!\");\n\t\t\t}\n\t\t}\n\t\tif (valenciaItem01.getValue() != null) {\n\t\t\tif (valenciaItem01.getType() == ValenciaItemType.TRAFFIC_JAM) {\n\t\t\t\tnewValue += \" - \" + ((Integer) valenciaItem01.getValue()).toString();\n\t\t\t} else if (valenciaItem01.getType() == ValenciaItemType.AIR_POLLUTION) {\n\t\t\t\tnewValue += \" - \" + ((AirPollution) valenciaItem01.getValue()).toString();\n\t\t\t} else if (valenciaItem01.getType() == ValenciaItemType.NOISE) {\n\t\t\t} else {\n\t\t\t\tthrow new Exception(\"ValenciaItemType is NULL!\");\n\t\t\t}\n\t\t}\n\t\tValenciaItemEnriched valenciaItemEnriched = new ValenciaItemEnriched(valenciaItem00.getId(),\n\t\t\t\tvalenciaItem00.getAdminLevel(), valenciaItem00.getDistrict(), valenciaItem00.getUpdate(),\n\t\t\t\tnewCoordinates, newValue);\n\n\t\tString allDistances = null;\n\t\tfor (Point point00 : coordinates00) {\n\t\t\tTuple3<Long, Long, String> adminLevel00 = sgp.getAdminLevel(point00);\n\t\t\tif (adminLevel00.f0 == null || adminLevel00.f1 == null) {\n\t\t\t\tadminLevel00.f0 = 16L;\n\t\t\t\tadminLevel00.f1 = 9L;\n\t\t\t\tadminLevel00.f2 = \"Benicalap\";\n\t\t\t}\n\t\t\tfor (Point point01 : coordinates01) {\n\t\t\t\tTuple3<Long, Long, String> adminLevel01 = sgp.getAdminLevel(point01);\n\t\t\t\tif (adminLevel01.f0 == null || adminLevel01.f1 == null) {\n\t\t\t\t\tadminLevel01.f0 = 16L;\n\t\t\t\t\tadminLevel01.f1 = 9L;\n\t\t\t\t\tadminLevel01.f2 = \"Benicalap\";\n\t\t\t\t}\n\t\t\t\tPoint pointDerived00 = sgp.calculateDerivedPosition(point00, 10, 10);\n\t\t\t\tPoint pointDerived01 = sgp.calculateDerivedPosition(point01, 10, 10);\n\t\t\t\tdouble distance = point00.euclideanDistance(point01);\n\t\t\t\tString msg = \"districts[\" + adminLevel00.f0 + \", \" + adminLevel01.f0 + \", \" + distance + \" meters]\";\n\t\t\t\tif (Strings.isNullOrEmpty(allDistances)) {\n\t\t\t\t\tallDistances = \"[\" + msg;\n\t\t\t\t} else {\n\t\t\t\t\tallDistances += \" ;\" + msg;\n\t\t\t\t}\n\t\t\t\tmsg += \" \" + pointDerived00.toString() + \" \" + pointDerived01.toString();\n\t\t\t}\n\t\t}\n\t\tallDistances += \"]\";\n\t\tvalenciaItemEnriched.setDistances(allDistances);\n\t\treturn valenciaItemEnriched;\n\t}", "@Override\n public ArrayList<Propiedad> getPrecioAgente(double pMenor, double pMayor, String pId) throws SQLException {\n ArrayList<Propiedad> resultado = new ArrayList<Propiedad>();\n resultado = (ArrayList<Propiedad>) bdPropiedad.selectQuery(\"SELECT * FROM PROPIEDAD WHERE ID_AGENTE = '\" + pId + \"' AND \"\n + \"PRECIO >= \" + pMenor + \" AND PRECIO <= \" + pMayor);\n return resultado;\n }", "public double getValue(long id) {\n return getValue(\"\" + id);\n }", "public abstract java.lang.Long getAtis();", "public void setC_Conversion_UOM_ID (int C_Conversion_UOM_ID)\n{\nset_Value (\"C_Conversion_UOM_ID\", new Integer(C_Conversion_UOM_ID));\n}", "int getTempo();", "public void getDataType(String heading, String rowvalues) {\n\t\tString rowval[]=rowvalues.split(\",\");\n\t\tHashMap<String,String> hmap= new HashMap<String,String>();\n //logic for datatype\t\n\t\tfor(String val:rowval)\n\t\t{ \n\t\t try {\n\t\t\t \n\t\t //checking for integer \t\n\t\t \t Integer.parseInt(val);\n\t\t \t hmap.put(val,\"Interger\");\n\t\t \n\t\t }\n\t catch (NumberFormatException e) //exception if integer not found\n\t {\n\t //checking for string // System.out.println(val + \" is String\");\n\t hmap.put(val,\"String\");\n\t }\n\t\t try\n\t { \n\t\t\t String str1 = null;\n DateFormat formatter = null;\n Date str2 = null;\n \t\t if (val.matches(\"([0-9]{2})/([0-9]{2})/([0-9]{4})\")) {\n formatter = new SimpleDateFormat(\"dd/MM/yyyy\");\n } else if (val.matches(\"([0-9]{2})-([0-9]{2})-([0-9]{4})\")) {\n formatter = new SimpleDateFormat(\"dd-MM-yyyy\");\n } else if (val.matches(\"([0-9]{4})([0-9]{2})([0-9]{2})\")) {\n formatter = new SimpleDateFormat(\"yyyyMMdd\");\n } else if (val.matches(\"([0-9]{4})-([0-9]{2})-([0-9]{2})\")) {\n formatter = new SimpleDateFormat(\"yyyy-MM-dd\");\n } else if (val.matches(\"([0-9]{4})/([0-9]{2})/([0-9]{2})\")) {\n formatter = new SimpleDateFormat(\"yyyy/MM/dd\");\n }\n \t\t \n\t //System.out.println(val + \" is a valid integer number\");\n \n\t //checking for date\t \n \t\t str2=formatter.parse(val);\n \t\t hmap.put(val,\"date\");\n\t } \n\t\t\t catch (Exception ex) { //Catch the Exception if date not found\n\t\t\t\t//hmap.put(val,\"String\");\n\t\t\t\t \n\t }\n\t\t }\n\t//printing values\t\n\t\tfor(Map.Entry<String, String> hm : hmap.entrySet())\n\t\t{\n\t\t\tSystem.out.println(hm.getKey()+\"--->\"+hm.getValue());\n\t\t} \n\t }", "public List<Map<String, Object>> Listar_Cumplea˝os(String mes,\r\n String dia, String aps, String dep, String are,\r\n String sec, String pue, String fec, String edad,\r\n String ape, String mat, String nom, String tip, String num) {\r\n sql = \"SELECT * FROM RHVD_FILTRO_CUMPL_TRAB \";\r\n sql += (!aps.equals(\"\")) ? \"Where UPPER(CO_APS)='\" + aps.trim().toUpperCase() + \"'\" : \"\";\r\n sql += (!dep.equals(\"\")) ? \"Where UPPER(DEPARTAMENTO)='\" + dep.trim().toUpperCase() + \"'\" : \"\";\r\n sql += (!are.equals(\"\")) ? \"Where UPPER(AREA)='\" + are.trim().toUpperCase() + \"'\" : \"\";\r\n sql += (!sec.equals(\"\")) ? \"Where UPPER(SECCION)='\" + sec.trim().toUpperCase() + \"'\" : \"\";\r\n sql += (!pue.equals(\"\")) ? \"Where UPPER(PUESTO)='\" + pue.trim().toUpperCase() + \"'\" : \"\";\r\n //sql += (!fec.equals(\"\")) ? \"Where FECHA_NAC='\" + fec.trim() + \"'\" : \"\"; \r\n sql += (!edad.equals(\"\")) ? \"Where EDAD='\" + edad.trim() + \"'\" : \"\";\r\n sql += (!ape.equals(\"\")) ? \"Where UPPER(AP_PATERNO)='\" + ape.trim().toUpperCase() + \"'\" : \"\";\r\n sql += (!mat.equals(\"\")) ? \"Where UPPER(AP_MATERNO)='\" + mat.trim().toUpperCase() + \"'\" : \"\";\r\n sql += (!nom.equals(\"\")) ? \"Where UPPER(NO_TRABAJADOR)='\" + nom.trim().toUpperCase() + \"'\" : \"\";\r\n sql += (!tip.equals(\"\")) ? \"Where UPPER(TIPO)='\" + tip.trim().toUpperCase() + \"'\" : \"\";\r\n sql += (!num.equals(\"\")) ? \"Where NU_DOC='\" + num.trim() + \"'\" : \"\";\r\n //buscar por rango de mes de cumplea├▒os*/\r\n\r\n sql += (!mes.equals(\"\") & !mes.equals(\"13\")) ? \"where mes='\" + mes.trim() + \"' \" : \"\";\r\n sql += (!mes.equals(\"\") & mes.equals(\"13\")) ? \"\" : \"\";\r\n sql += (!dia.equals(\"\")) ? \"and dia='\" + dia.trim() + \"'\" : \"\";\r\n return jt.queryForList(sql);\r\n }", "public static Data<String> weaponMunitionQuantity(){\n\t\tData<String> res = new Data<String>();\n\t\tres.add(new Tuple<String, Integer>(\"2d10\", 10));\n\t\tres.add(new Tuple<String, Integer>(\"4d10\", 10));\n\t\tres.add(new Tuple<String, Integer>(\"1\", 60));\n\t\tres.add(new Tuple<String, Integer>(\"2d10\", 10));\n\t\tres.add(new Tuple<String, Integer>(\"4d10\", 10));\n\t\t\n\t\treturn res;\n\t}" ]
[ "0.62118953", "0.58074677", "0.5759581", "0.5578526", "0.54640454", "0.5423411", "0.5402939", "0.5327046", "0.5294252", "0.5248662", "0.524754", "0.52367795", "0.5218283", "0.5208215", "0.5206384", "0.5197199", "0.51705337", "0.5168991", "0.51632214", "0.51632214", "0.51555043", "0.51545095", "0.51490057", "0.514566", "0.5143978", "0.5141612", "0.5134001", "0.5123928", "0.5121468", "0.51174855", "0.50871867", "0.50722957", "0.5059126", "0.5056603", "0.5040394", "0.50323933", "0.5031158", "0.5021845", "0.50119853", "0.5010044", "0.50049657", "0.50022", "0.5000653", "0.4998455", "0.49951693", "0.49951693", "0.49920544", "0.49866137", "0.49574518", "0.49549854", "0.49547225", "0.49503547", "0.4947575", "0.49445263", "0.49355546", "0.49324417", "0.49317068", "0.49271014", "0.49143335", "0.49137658", "0.4907669", "0.49029544", "0.4902739", "0.48990107", "0.4896629", "0.48944917", "0.48883137", "0.48878306", "0.4880354", "0.4878767", "0.48728004", "0.48641655", "0.48612776", "0.48536846", "0.48470274", "0.48466438", "0.48462322", "0.4844153", "0.4842316", "0.48418015", "0.4829376", "0.48254898", "0.48090845", "0.48087668", "0.48074093", "0.48032376", "0.48017347", "0.47919708", "0.4790282", "0.47891104", "0.4787414", "0.47827756", "0.47812304", "0.4775371", "0.47687823", "0.47659275", "0.47644514", "0.47620437", "0.4752553", "0.47523126" ]
0.4958202
48
TODO Autogenerated method stub
@Override public void input() { User u =new User(); if(list.size() <= MAX_USER) { System.out.print("이름 입력 : "); u.setName(sc.next()); System.out.print("나이 입력 : "); u.setAge(sc.nextInt()); System.out.print("주소 입력 : "); u.setAddr(sc.next()); list.add(u); }else if(list.size() > MAX_USER) { System.out.println("최대 등록 인원은 10명입니다."); } }
{ "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 output() { for(User u :list) { if(list.size() > MIN_USER) { System.out.println("이름 : "+u.getName()); System.out.println("나이 : "+u.getAge()); System.out.println("주소 : "+u.getAddr()); System.out.println("======================="); } } System.out.println("입력된 정보가 없습니다."); }
{ "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
Before entering the execution state flush messages that may have been left into the queue and that may confuse the test execution
public int onEnd() { flushMessageQueue(); return 0; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n\tpublic final void testMessageQueueFlushTest() {\n\t\tfinal int count = 10000;\n\t\tIMessageSourceProvider source = new MessageSourceProvider();\n\t\tIMessengerPacket[] batch = new IMessengerPacket[count];\n\t\tfor (int i = 0; i < count; i++) {\n\t\t\tbatch[i] =Log.makeLogPacket(LogMessageSeverity.VERBOSE, \"GibraltarTest\",\n\t\t\t\t\t\"Test.Core.LogMessage.Performance.Flush\", source, null, null, null, null, null, \"Batch message #%s of %s\", i, count);\n\t\t}\n\n\t\tLog.write(LogMessageSeverity.INFORMATION, LogWriteMode.WAIT_FOR_COMMIT, null, \"Unit Tests\",\n\t\t\t\t\"Clearing message queue\", null);\n\n\t\tOffsetDateTime startWrite = OffsetDateTime.now();\n\n\t\tLog.write(batch, LogWriteMode.QUEUED);\n\n\t\tOffsetDateTime startFlush = OffsetDateTime.now();\n\n\t\tLog.write(LogMessageSeverity.INFORMATION, LogWriteMode.WAIT_FOR_COMMIT, null, \"Unit Tests\",\n\t\t\t\t\"Message batch flushed\", \"All %s messages have been flushed.\", count);\n\n\t\tOffsetDateTime endFlush = OffsetDateTime.now();\n\n\t\tDuration writeDuration = Duration.between(startWrite, startFlush);\n\t\tDuration flushDuration = Duration.between(startFlush, endFlush);\n\n\t\tLog.write(LogMessageSeverity.VERBOSE, \"\", \"Unit test messageQueueFlushTest()\",\n\t\t\t\t\"Write of {0:N0} messages to queue took {1:F3} ms and flush took {2:F3} ms.\", count,\n\t\t\t\twriteDuration.toMillis(), flushDuration.toMillis());\n\n\t\tfor (int i = 0; i < count; i++) {\n\t\t\tbatch[i] = Log.makeLogPacket(LogMessageSeverity.VERBOSE, \"GibraltarTest\",\n\t\t\t\t\t\"Test.Core.LogMessage.Performance.Flush\", source, null, null, null, null, null,\n\t\t\t\t\t\"Batch message #%s of %s\", i, count);\n\t\t}\n\n\t\tOffsetDateTime startWriteThrough = OffsetDateTime.now();\n\n\t\tLog.write(batch, LogWriteMode.WAIT_FOR_COMMIT);\n\n\t\tOffsetDateTime endWriteThrough = OffsetDateTime.now();\n\n\t\tDuration writeThroughDuration = Duration.between(startWriteThrough, endWriteThrough);\n\n\t\tLog.write(LogMessageSeverity.VERBOSE, \"\", \"Unit test messageQueueFlushTest()\",\n\t\t\t\t\"Write of {0:N0} messages as WaitForCommit took {1:F3} ms.\", count, writeThroughDuration.toMillis());\n\n\t}", "private void flushOutbound0() {\n/* 454 */ runPendingTasks();\n/* */ \n/* 456 */ flush();\n/* */ }", "public void flush() {\n mMessages.postToServer();\n }", "@Override\n public void flush() {\n new QueueConsumer().run();\n }", "private synchronized void flushMessageQueue() {\n\t\tif(peers.size() > 0) {\n\t\t\twhile(!noPeersMessageQueue.isEmpty()) {\n\t\t\t\tpropagateToAllPeers(noPeersMessageQueue.poll());\n\t\t\t}\n\t\t}\n\t}", "public void flush() {\n // all getAndSet will not be synchronous but it's ok since metrics will\n // be spread out among processor worker and we flush every 5s by\n // default\n\n processor.send(new TelemetryMessage(this.metricsSentMetric, this.metricsSent.getAndSet(0), tags));\n processor.send(new TelemetryMessage(this.eventsSentMetric, this.eventsSent.getAndSet(0), tags));\n processor.send(new TelemetryMessage(this.serviceChecksSentMetric, this.serviceChecksSent.getAndSet(0), tags));\n processor.send(new TelemetryMessage(this.bytesSentMetric, this.bytesSent.getAndSet(0), tags));\n processor.send(new TelemetryMessage(this.bytesDroppedMetric, this.bytesDropped.getAndSet(0), tags));\n processor.send(new TelemetryMessage(this.packetsSentMetric, this.packetsSent.getAndSet(0), tags));\n processor.send(new TelemetryMessage(this.packetsDroppedMetric, this.packetsDropped.getAndSet(0), tags));\n processor.send(new TelemetryMessage(this.packetsDroppedQueueMetric, this.packetsDroppedQueue.getAndSet(0), tags));\n processor.send(new TelemetryMessage(this.aggregatedContextsMetric, this.aggregatedContexts.getAndSet(0), tags));\n }", "public void flush() {\n wasFlushed = true;\n }", "protected void deferFlush()\n {\n // push next flush out to avoid attempts at multiple simultaneous\n // flushes\n m_lNextFlush = Long.MAX_VALUE;\n }", "public void ClearSentQueue() {\n \t\tjobsent.clear();\n \t}", "public void flush() {\n flushed = true;\n }", "public void ClearUnsentQueue() {\n \t\tjobqueue.clear();\n \t}", "void flushBlocking();", "public void flush() {\n\t\t\n\t}", "public void flush(){\n\t\ttry{\n\t\t\tse.write(buffer, 0, bufferPos);\n\t\t\tbufferPos = 0;\n\t\t\tse.flush();\n\t\t}catch(IOException ioex){\n\t\t\tfailures = true;\n\t\t}\n\t}", "private void forcePUShutdown() {\n try {\n\n Object[] eofToken = new Object[1];\n // only need one member in the array\n eofToken[0] = new EOFToken();\n if (UIMAFramework.getLogger().isLoggable(Level.FINEST)) {\n UIMAFramework.getLogger(this.getClass()).logrb(Level.FINEST, this.getClass().getName(),\n \"process\", CPMUtils.CPM_LOG_RESOURCE_BUNDLE, \"UIMA_CPM_placed_eof_in_queue__FINEST\",\n new Object[] { Thread.currentThread().getName(), workQueue.getName() });\n }\n workQueue.enqueue(eofToken);\n if (UIMAFramework.getLogger().isLoggable(Level.FINEST)) {\n UIMAFramework.getLogger(this.getClass()).logrb(Level.FINEST, this.getClass().getName(),\n \"process\", CPMUtils.CPM_LOG_RESOURCE_BUNDLE,\n \"UIMA_CPM_done_placed_eof_in_queue__FINEST\",\n new Object[] { Thread.currentThread().getName(), workQueue.getName() });\n }\n // synchronized (workQueue) { // redundant - the above enqueue does this\n // workQueue.notifyAll();\n // }\n if (UIMAFramework.getLogger().isLoggable(Level.FINEST)) {\n UIMAFramework.getLogger(this.getClass()).logrb(Level.FINEST, this.getClass().getName(),\n \"process\", CPMUtils.CPM_LOG_RESOURCE_BUNDLE,\n \"UIMA_CPM_done_notifying_queue__FINEST\",\n new Object[] { Thread.currentThread().getName(), workQueue.getName() });\n }\n } catch (Exception e) {\n e.printStackTrace();\n UIMAFramework.getLogger(this.getClass()).logrb(Level.SEVERE, this.getClass().getName(),\n \"process\", CPMUtils.CPM_LOG_RESOURCE_BUNDLE, \"UIMA_CPM_exception_adding_eof__SEVERE\",\n new Object[] { Thread.currentThread().getName(), e.getMessage() });\n notifyListenersWithException(e);\n }\n\n }", "private void sendResultQueue() {\n\t\tfor (PluginResult pluginResult : resultQueue) {\n\t\t\tmainCallback.sendPluginResult(pluginResult);\n\t\t}\n\t\tresultQueue.clear();\n\t}", "public void flush () {\n\t\ttracker.flush();\n\t}", "void resetMessages() {\n this.messageListExpected = new ArrayList<>();\n indexExpected = 0;\n }", "private synchronized void flush() {\r\n\t\tif (!buffer.isEmpty()) {\r\n\t\t\tfor (final LoggingRecord record : buffer) {\r\n\t\t\t\thandler.handle(record);\r\n\t\t\t}\r\n\t\t\tbuffer.clear();\r\n\t\t}\r\n\t}", "@Override\r\n\tpublic void flush() {\n\t}", "private void flushData()\n {\n try\n {\n while(state.get().ordinal() < SimulationState.TEARING_DOWN.ordinal() || !flushing.isEmpty())\n {\n ICardinality cardinality = flushing.poll(1, TimeUnit.MILLISECONDS);\n if (cardinality == null)\n continue;\n\n long numToFlush = cardinality.cardinality();\n counters.numFlushed.addAndGet(numToFlush);\n generateSSTables(cardinality, numToFlush, partitioner.getMinimumToken(), partitioner.getMaximumToken(), \"flushing\", true);\n }\n }\n catch (InterruptedException e)\n {\n logger.error(\"Exception happen during flushing\", e);\n }\n }", "@Override\r\n public void flush ()\r\n {\r\n }", "@Override\n public void flush()\n {\n }", "@Override\n public void flush() {\n }", "@Override\n public void flush() {\n }", "@Override\n public void flush() {\n }", "@Override\r\n\tpublic void flush() {\n\t\t\r\n\t}", "@Override\n\tpublic void flush() {\n\t}", "public void flush() {\r\n if (SwingUtilities.isEventDispatchThread()) {\r\n flushImpl();\r\n } else {\r\n synchronized (this) {\r\n if (!flusherRunning) {\r\n SwingUtilities.invokeLater(flusher);\r\n flusherRunning = true;\r\n }\r\n }\r\n }\r\n }", "@Override\n\tpublic void flushAllWithNoReply() throws InterruptedException,\n\t\t\tMemcachedException {\n\n\t}", "@Override\r\n\tpublic void flushAll() {\n\t\t\r\n\t}", "private void logAllMessages() {\r\n HistoricalMessage message;\r\n SessionProvider provider = SessionProvider.createSystemProvider();\r\n while (!logQueue.isEmpty()) {\r\n message = logQueue.poll();\r\n if (message != null) {\r\n this.addHistoricalMessage(message, provider);\r\n }\r\n }\r\n provider.close();\r\n }", "public void flush();", "public void flush();", "public void flush();", "public void flush();", "public int flush()\n/* */ {\n/* 145 */ return 0;\n/* */ }", "@Override\n\tpublic void flush() {\n\t\t\n\t}", "@Override\n\tpublic void flush() {\n\t\t\n\t}", "@Override\n\tpublic void flush() {\n\t\t\n\t}", "@Override\n\tpublic void flush() {\n\t\t\n\t}", "@Test\n\tpublic final void testWriteMessagesForOrderTesting() {\n\t\tfor (int curLogMessage = 1; curLogMessage < 3000; curLogMessage++) {\n\t\t\tLog.trace(\"This is log message #%s\", curLogMessage);\n\t\t}\n\t}", "private void queueModified() {\n\tmServiceExecutorCallback.queueModified();\n }", "@Override\r\n\tpublic void quack() {\n\t\tSystem.out.println(\"I do Quack Quack\");\r\n\t}", "private void clear() {\n transactionalHooks.clearTransaction();\n transactionDeques.remove();\n }", "public void h() {\n long currentTimeMillis = System.currentTimeMillis();\n this.m.sendEmptyMessageDelayed(48, q.c(currentTimeMillis));\n this.m.sendEmptyMessageDelayed(49, q.d(currentTimeMillis));\n }", "private void workOnQueue() {\n }", "synchronized private void flushPendingUpdates() throws SailException {\n\t\tif (!isActiveOperation()\n\t\t\t\t|| isActive() && !getTransactionIsolation().isCompatibleWith(IsolationLevels.SNAPSHOT_READ)) {\n\t\t\tflush();\n\t\t\tpendingAdds = false;\n\t\t\tpendingRemovals = false;\n\t\t}\n\t}", "private void maybeFlush() {\n final long batchCount = this.batchCount.get();\n if (batchCount <= 0) {\n return;\n }\n\n if (outstandingCount.get() != 0\n && batchSerializedSize.get() < 65536\n && (batchCount < 16 || !requestObserver.isReady())) {\n return;\n }\n\n flush();\n }", "public void flush(){\r\n mBufferData.clear();\r\n }", "void flush() throws Exception;", "@Before\n public void clearUnitsOfWork() {\n while (CurrentUnitOfWork.isStarted()) {\n CurrentUnitOfWork.get().rollback();\n }\n }", "boolean flush_all();", "@Override\r\n public void flush() {\n\r\n }", "@Override\n public void flush() {\n if (loggingEnabled) {\n changeLogger.logChange(changelogKey, state);\n }\n }", "public abstract void flush();", "private void dequeueMessages()\n\t{\n\t\twhile (_msg_queue.size() > 0)\n\t\t{\n\t\t\ttry\n\t\t\t{\n\t\t\t\t_ml.messageReceived( (Serializable) _msg_queue.removeFirst());\n\t\t\t}\n\t\t\tcatch (RuntimeException rte)\n\t\t\t{\n\t\t\t\trte.printStackTrace();\n\t\t\t}\n\t\t}\n\t}", "@Override\n\t\tpublic void flush() throws IOException {\n\t\t\twriteBlock(true);\n\t\t\tout.flush();\n\n\t\t\t// it's a bit nasty if an exception is thrown from the log,\n\t\t\t// but ignoring it can be nasty as well, so it is decided to\n\t\t\t// let it go so there is feedback about something going wrong\n\t\t\t// it's a bit nasty if an exception is thrown from the log,\n\t\t\t// but ignoring it can be nasty as well, so it is decided to\n\t\t\t// let it go so there is feedback about something going wrong\n\t\t\tif (debug) {\n\t\t\t\tlog.flush();\n\t\t\t}\n\t\t}", "@Override\n public void flush() throws IOException {\n checkStreamState();\n flushIOBuffers();\n }", "synchronized void flushQueueOnSuccess(Session session) {\n awaitingSession.set(false);\n\n while (!queue.isEmpty()) {\n final Callback<Session> request = queue.poll();\n request.success(new Result<>(session, null));\n }\n }", "public void flush() throws IOException {\n if (firstMessage != null) {\n writer.messageWrite(firstMessage);\n }\n firstMessage = null;\n }", "public void executeAll()\n {\n this.queue.clear();\n this.queue_set = false;\n this.resetComputation();\n while(executeNext()) {}\n }", "public void flush() {\n\t\t\n\t\tif (Verbose.DEFAULT.equals(VERBOSE_LEVEL)) {\n\t\t\treturn;\t//no output\n\t\t}\n\t\t\n\t\t/* Verbose.VERBOSE | Verbose.ALL */\n\t\t\t\t\n\t\t/* Each constructor/ method to be crashed = non-private, non-abstract */\n\t\tStringBuffer sb = new StringBuffer(\"*** Methods and constructors under testclasses:\");\n\t\tfor (ClassUnderTest cPlan: plans.values()) {\n\t\t\tsb.append(LS+LS+cPlan.getWrappedClass().getCanonicalName()); //qualified class name\n\t\t\t\n\t\t\tfor (PlanSpaceNode pNode: cPlan.getChildren()) {\n\t\t\t\tFunctionNode fNode = (FunctionNode) pNode;\n\t\t\t\tsb.append(LS+\"\\t\"+fNode.toString());\t//method or constructor under testclasses\n\t\t\t}\t\t\t\t\n \t}\n \t\t\n\t\t\n\t /*\n\t * 2. Each value and public, non-abstract constructing function \n\t * of each needed instance and all of their children.\n\t */\n sb.append(LS+LS+LS+\"*** Rules to create needed values:\");\n\t\tsb.append(flushRules(true));\t\t\n\t\t\n \tif (Verbose.ALL.equals(VERBOSE_LEVEL)) {\n sb.append(LS+LS+LS+\"*** Rules that were not needed:\");\n \t\tsb.append(flushRules(false));\n \t}\n\n sb.append(LS+LS);\n System.out.println(sb);\n\t}", "void flush();", "void flush();", "void flush();", "void flush();", "void flush();", "void flush();", "void flush();", "void flush();", "final protected void sendAll() {\n\t\tsendAllBut(null);\n\t}", "@Test\n public void testQueueLimiting() throws Exception {\n // Block the underlying fake proxy from actually completing any calls.\n DelayAnswer delayer = new DelayAnswer(LOG);\n Mockito.doAnswer(delayer).when(mockProxy).journal(\n Mockito.<RequestInfo>any(),\n Mockito.eq(1L), Mockito.eq(1L),\n Mockito.eq(1), Mockito.same(FAKE_DATA));\n \n // Queue up the maximum number of calls.\n int numToQueue = LIMIT_QUEUE_SIZE_BYTES / FAKE_DATA.length;\n for (int i = 1; i <= numToQueue; i++) {\n ch.sendEdits(1L, (long)i, 1, FAKE_DATA);\n }\n \n // The accounting should show the correct total number queued.\n assertEquals(LIMIT_QUEUE_SIZE_BYTES, ch.getQueuedEditsSize());\n \n // Trying to queue any more should fail.\n try {\n ch.sendEdits(1L, numToQueue + 1, 1, FAKE_DATA).get(1, TimeUnit.SECONDS);\n fail(\"Did not fail to queue more calls after queue was full\");\n } catch (ExecutionException ee) {\n if (!(ee.getCause() instanceof LoggerTooFarBehindException)) {\n throw ee;\n }\n }\n \n delayer.proceed();\n\n // After we allow it to proceeed, it should chug through the original queue\n GenericTestUtils.waitFor(new Supplier<Boolean>() {\n @Override\n public Boolean get() {\n return ch.getQueuedEditsSize() == 0;\n }\n }, 10, 1000);\n }", "protected void responseFail(){\n\t\tqueue.clear();\n\t}", "@Test(timeout = 30000)\n public void testConcurrentModifications() throws Exception {\n assertFalse(\"Something is wrong\", CurrentUnitOfWork.isStarted());\n final UUID aggregateId = UUID.randomUUID();\n commandBus.dispatch(asCommandMessage(new CreateStubAggregateCommand(aggregateId)));\n ExecutorService service = Executors.newFixedThreadPool(THREAD_COUNT);\n final AtomicLong counter = new AtomicLong(0);\n List<Future<?>> results = new LinkedList<>();\n for (int t = 0; t < 30; t++) {\n results.add(service.submit(() -> {\n try {\n commandBus.dispatch(asCommandMessage(new UpdateStubAggregateCommand(aggregateId)));\n commandBus.dispatch(asCommandMessage(new ProblematicCommand(aggregateId)),\n SilentCallback.INSTANCE);\n commandBus.dispatch(asCommandMessage(new LoopingCommand(aggregateId)));\n counter.incrementAndGet();\n } catch (Exception ex) {\n throw new RuntimeException(ex);\n }\n }));\n }\n service.shutdown();\n while (!service.awaitTermination(3, TimeUnit.SECONDS)) {\n System.out.println(\"Did \" + counter.get() + \" batches\");\n }\n\n for (Future<?> result : results) {\n if (result.isDone()) {\n result.get();\n }\n }\n assertEquals(91, registeringEventHandler.getCapturedEvents().size());\n validateDispatchingOrder();\n }", "void flushBatch();", "@Before\n\tpublic void setup() {\n\t\tthis.messaging.receive(\"output\", 100, TimeUnit.MILLISECONDS);\n\t}", "public void summarize() {\n if (!waitlist.isEmpty()) {\n waitlist.clear();\n }\n workingReached.clear();\n }", "@Override\r\n public void flush() {\n\r\n }", "@InSequence(1)\n @Test\n public void worksAfterDeployment() throws InterruptedException {\n int sum = sendMessages(10);\n runJob();\n Assert.assertEquals(10, collector.getLastItemCount());\n Assert.assertEquals(sum, collector.getLastSum());\n Assert.assertEquals(1, collector.getNumberOfJobs());\n }", "public void flush() {\n trans.set(kernel.get().asArray());\n actions.forEach(Runnable::run);\n actions.clear();\n kernel.free();\n kernel = Matrix4F.ident();\n }", "private void processMessageQueue(){\n\t\tKIDSGUIAlert m = null;\n\t\tStringBuilder newText = new StringBuilder(logLines.getText());\n\t\twhile ((m = this.logMessages.poll()) != null){\n\t\t\tnewText.append(String.format(\"%s\\n\", m.toString()));\n\t\t}\n\t\tlogLines.setText(newText.toString());\n\t}", "@Override\r\n\tpublic void quack() {\n\t\tsuper.gobble();\r\n\t}", "public void dumpState() {\r\n\t\tlistRunningTests();\r\n\t\tworkQueue.dumpState();\r\n\t}", "private void flushBuffer(Runnable paramRunnable) {\n/* 149 */ int i = this.buf.position();\n/* 150 */ if (i > 0 || paramRunnable != null)\n/* */ {\n/* 152 */ flushBuffer(this.buf.getAddress(), i, paramRunnable);\n/* */ }\n/* */ \n/* 155 */ this.buf.clear();\n/* */ \n/* 157 */ this.refSet.clear();\n/* */ }", "public boolean flushTransactions() {\n return true;\n }", "public void flushAndSubmit() {\n nFlushAndSubmit(mNativeInstance);\n }", "public void flushStreamSpecs();", "public void reportNothingToUndoYet() {\r\n Assert.isTrue(isReceiving());\r\n setNothingToUndoReported(true);\r\n }", "public static void flushScheduler() {\n while (!RuntimeEnvironment.getMasterScheduler().advanceToLastPostedRunnable()) ;\n }", "@Override\n public void quack() {\n System.out.println(\"__NoQuack__\");\n }", "protected void onQueued() {}", "private synchronized void endWashing() {\n washingMachineState = WashingMachineState.ENABLE;\n LOGGER.info(\"{}:Washing complete.\", Thread.currentThread().getId());\n }", "protected void beforeConsume() {\n // Do nothing\n }", "private void flushDirtyLogs() {\n logger.debug(\"Checking for dirty logs to flush...\");\n Utils.foreach(logs, new Callable1<Map.Entry<TopicAndPartition, Log>>() {\n @Override\n public void apply(Map.Entry<TopicAndPartition, Log> _) {\n TopicAndPartition topicAndPartition = _.getKey();\n Log log = _.getValue();\n\n try {\n long timeSinceLastFlush = time.milliseconds() - log.lastFlushTime();\n logger.debug(\"Checking if flush is needed on \" + topicAndPartition.topic + \" flush interval \" + log.config.flushMs + \" last flushed \" + log.lastFlushTime() + \" time since last flush: \" + timeSinceLastFlush);\n if (timeSinceLastFlush >= log.config.flushMs)\n log.flush();\n } catch (Throwable e) {\n logger.error(\"Error flushing topic \" + topicAndPartition.topic, e);\n if (e instanceof IOException) {\n logger.error(\"Halting due to unrecoverable I/O error while flushing logs: \" + e.getMessage(), e);\n System.exit(1);\n }\n }\n }\n });\n }", "void queueShrunk();", "synchronized void processingUnitShutdown(ProcessingUnit unit) {\n activeProcessingUnits--;\n if (activeProcessingUnits == 0 && outputQueue != null) {\n Object[] eofToken = new Object[1];\n eofToken[0] = new EOFToken();\n\n outputQueue.enqueue(eofToken);\n // synchronized (outputQueue) { // redundant - the above enqueue call does this\n // outputQueue.notifyAll();\n // }\n\n if (UIMAFramework.getLogger().isLoggable(Level.FINEST)) {\n UIMAFramework.getLogger(this.getClass()).logrb(Level.FINEST, this.getClass().getName(),\n \"process\", CPMUtils.CPM_LOG_RESOURCE_BUNDLE,\n \"UIMA_CPM_done_placed_eof_in_queue__FINEST\",\n new Object[] { Thread.currentThread().getName(), outputQueue.getName() });\n }\n }\n\n }", "@After\n public void tearDown() {\n System.out.flush();\n }", "private void processCommands() {\n while (!commandQueue.isEmpty()) {\n var msg = commandQueue.remove();\n treatCommand.parseCommand(msg);\n }\n }", "public void cleanup() {\n sendBuffer(baos);\n shutdown();\n }", "@Override\r\n\tpublic void quack() {\n\t\t\r\n\t}" ]
[ "0.70200396", "0.6958502", "0.6831237", "0.67595077", "0.6466999", "0.64250463", "0.6388316", "0.6285332", "0.62113786", "0.6191848", "0.6142058", "0.61327964", "0.6044093", "0.59891677", "0.5985999", "0.59639263", "0.5958591", "0.5948643", "0.5938826", "0.5881202", "0.5870352", "0.5858714", "0.5835949", "0.5833215", "0.5833215", "0.5833215", "0.58276397", "0.58104926", "0.5805986", "0.5790614", "0.5784834", "0.57816565", "0.57737714", "0.57737714", "0.57737714", "0.57737714", "0.5773283", "0.57535404", "0.57535404", "0.57535404", "0.57535404", "0.5743636", "0.5735098", "0.57247645", "0.5721924", "0.5705903", "0.57023144", "0.5694614", "0.56689996", "0.5661655", "0.56540996", "0.5646913", "0.56453633", "0.5628366", "0.56267923", "0.562083", "0.56118006", "0.56034577", "0.5584735", "0.557761", "0.55767816", "0.55733746", "0.557125", "0.55698985", "0.55698985", "0.55698985", "0.55698985", "0.55698985", "0.55698985", "0.55698985", "0.55698985", "0.55592173", "0.5548123", "0.5546349", "0.55445695", "0.5544441", "0.5541244", "0.5540751", "0.5538213", "0.5537192", "0.5535615", "0.5530286", "0.55245066", "0.5522601", "0.5514811", "0.5506728", "0.548576", "0.54845166", "0.5484384", "0.5478537", "0.54724234", "0.54723054", "0.5469165", "0.5468367", "0.5467411", "0.5449355", "0.54446286", "0.54363734", "0.5431595", "0.54299045", "0.5418205" ]
0.0
-1
write your code here
public int coinChange(int[] coins, int amount) { if (coins == null || coins.length == 0) return 0; Arrays.sort(coins); memo = new int[amount + 1][coins.length]; ans = dfs(coins, amount, coins.length - 1); return ans == Integer.MAX_VALUE ? -1 : ans; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void logic(){\r\n\r\n\t}", "public static void generateCode()\n {\n \n }", "@Override\n\tprotected void logic() {\n\n\t}", "private static void cajas() {\n\t\t\n\t}", "void pramitiTechTutorials() {\n\t\n}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "public void ganar() {\n // TODO implement here\n }", "public static void main(String[] args) {\n // write your code here - this is called comment and it always starts with double slash\n // and comlier will ignore this because of the // sign.\n // I am gonna say hello\n // JAVA IS CASE SENSITIVE LANGUAGE\n // System and system are very different things in java\n //Hello AND hello are different for java\n // System.out.println(\"Hello Batch 15!\");\n // System.out.println(\"I am still here.\");\n // System.out.println(\"I love Java.\");\n\n // Write a program to display your information.\n // When you run it, it should have this outcome.\n // I am your name here\n // I am from batch 15\n // I am from your city here\n // I love Java\n\n System.out.println(\"I am Sevim.\");\n System.out.println(\"I am from Batch 15.\");\n System.out.println(\"I'm from New Jersey.\");\n System.out.println(\"I love Java.\");\n\n\n\n }", "CD withCode();", "private stendhal() {\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "public void gored() {\n\t\t\n\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\r\n\tpublic void runn() {\n\t\t\r\n\t}", "public void genCode(CodeFile code) {\n\t\t\n\t}", "public void hello(){\n\t\t\r\n \t\r\n\t\t\r\n\t}", "public void mo4359a() {\n }", "@Override\r\n\tprotected void doF4() {\n\t\t\r\n\t}", "public void baocun() {\n\t\t\n\t}", "public void mo38117a() {\n }", "public void furyo ()\t{\n }", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\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}", "private void strin() {\n\n\t}", "public void themesa()\n {\n \n \n \n \n }", "Programming(){\n\t}", "@Override\n\tvoid output() {\n\t\t\n\t}", "private void yy() {\n\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "void rajib () {\n\t\t \n\t\t System.out.println(\"Rajib is IT Eng\");\n\t }", "private void kk12() {\n\n\t}", "public void edit() {\n\t\tSystem.out.println(\"编写java笔记\");\r\n\t}", "public static void main(String[] args) {\n\t// write your code here\n }", "private static void ThridUmpireReview() {\n\t\tSystem.out.println(\" Umpier Reviews the Score Board\");\n\t\t \n\t\t\n\t}", "@Override\r\n\t\tpublic void doDomething() {\r\n\t\t\tSystem.out.println(\"I am here\");\r\n\t\t\t\r\n\t\t}", "protected void mo6255a() {\n }", "public void gen(CodeSeq code, ICodeEnv env) {\n\r\n\t}", "@Override\n\tpublic void function() {\n\t\t\n\t}", "public void working()\n {\n \n \n }", "@Override\n\tprotected void postRun() {\n\n\t}", "public void perder() {\n // TODO implement here\n }", "public void smell() {\n\t\t\n\t}", "protected void execute() {\n\t\t\n\t}", "public void mo55254a() {\n }", "@Override\n\t\t\tpublic void run() {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void run() {\n\t\t\t\t\n\t\t\t}", "@Override\n\tpublic void orgasm() {\n\t\t\n\t}", "public void cocinar(){\n\n }", "@Override\r\n\tvoid func04() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\t\tprotected void run() {\n\t\t\t\r\n\t\t}", "@Override\n\tprotected void interr() {\n\t}", "public void run() {\n\t\t\t\t\n\t\t\t}", "protected void execute() {\n\n\n \n }", "@Override\n public void execute() {\n \n \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\r\n\tpublic void crawl_data() {\n\t\t\r\n\t}", "@Override\n public void memoria() {\n \n }", "public static void main(String args[]) throws Exception\n {\n \n \n \n }", "@Override\r\n\tpublic void code() {\n\t\tus.code();\r\n\t\tSystem.out.println(\"我会java...\");\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "protected void display() {\n\r\n\t}", "private void sout() {\n\t\t\n\t}", "private static void oneUserExample()\t{\n\t}", "public void nhapdltextlh(){\n\n }", "public void miseAJour();", "protected void additionalProcessing() {\n\t}", "private void sub() {\n\n\t}", "@Override\n\tpublic void view() {\n\t\t\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\r\n\tpublic void engine() {\r\n\t\t// TODO Auto-generated method stub\t\t\r\n\t}", "@Override\r\n\tpublic void code() {\n\t\tSystem.out.println(\"我会C语言....\");\r\n\t}", "void mo67924c();", "@Override\n\tpublic void dosomething() {\n\t\t\n\t}", "@Override\r\n public void run() {\n basicEditor.createEdge(); // replaced Bibianas method with Moritz Roidl, Orthodoxos Kipouridis\r\n }", "public void mo5382o() {\n }", "@Override\r\n\tprotected void func03() {\n\t\t\r\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void doF6() {\n\t\t\r\n\t}", "public void mo3376r() {\n }", "public static void main(String[] args)\r\n {\n System.out.println(\"Mehedi Hasan Nirob\");\r\n //multiple line comment\r\n /*\r\n At first printing my phone number\r\n then print my address \r\n then print my university name\r\n */\r\n System.out.println(\"01736121659\\nJamalpur\\nDhaka International University\");\r\n \r\n }", "void kiemTraThangHopLi() {\n }", "public void skystonePos5() {\n }", "public final void cpp() {\n }", "public final void mo51373a() {\n }", "public static void main(String[] args) {\n\t\tSystem.out.println(\"This is the main class of this project\");\r\n\t\tSystem.out.println(\"how about this\");\r\n\r\n\t\t\r\n\t\tSystem.out.println(\"new push\");\r\n\r\n\t\t//how to update this line\r\n\t\t\r\n\t\tSystem.out.println(\"hello there\");\r\n\r\n\t\tSystem.out.println(\"zen me shuoXXXXXXXXXXXKKKKkKKKKKKXXXXXXXX\");\r\n\r\n\t\tSystem.out.println(\"eventually we succeeded!\");\r\n\t\t//wa!!!\r\n\t\t\r\n\r\n\r\n\t\t//hen shu fu !\r\n\t\t\r\n\t\t//it is a good day\r\n\t\t\r\n\t\t//testing\r\n\r\n\t\t\r\n\t\tSystem.out.println(\"hope it works\");\r\n\t\t\r\n\r\n\t\t\r\n\r\n\t}", "@Override\r\n\tprotected void doF8() {\n\t\t\r\n\t}" ]
[ "0.61019534", "0.6054925", "0.58806974", "0.58270746", "0.5796887", "0.56999695", "0.5690986", "0.56556827", "0.5648637", "0.5640487", "0.56354505", "0.56032085", "0.56016207", "0.56006724", "0.5589654", "0.5583692", "0.55785793", "0.55733466", "0.5560209", "0.55325305", "0.55133164", "0.55123806", "0.55114794", "0.5500045", "0.5489272", "0.5482718", "0.5482718", "0.5477585", "0.5477585", "0.54645246", "0.5461012", "0.54548836", "0.5442613", "0.5430592", "0.5423748", "0.5419415", "0.5407118", "0.54048806", "0.5399331", "0.539896", "0.5389593", "0.5386248", "0.5378453", "0.53751254", "0.5360644", "0.5357343", "0.5345515", "0.53441405", "0.5322276", "0.5318302", "0.53118485", "0.53118485", "0.53085434", "0.530508", "0.53038436", "0.5301922", "0.5296964", "0.52920514", "0.52903354", "0.5289583", "0.5287506", "0.52869135", "0.5286737", "0.5286737", "0.5286737", "0.5286737", "0.5286737", "0.5286737", "0.5286737", "0.52859664", "0.52849185", "0.52817136", "0.52791214", "0.5278664", "0.5278048", "0.5276269", "0.52728665", "0.5265451", "0.526483", "0.526005", "0.5259683", "0.52577406", "0.5257731", "0.5257731", "0.52560073", "0.5255759", "0.5255707", "0.5250705", "0.5246863", "0.5243053", "0.52429926", "0.5242727", "0.52396125", "0.5239378", "0.5232576", "0.5224529", "0.52240705", "0.52210563", "0.52203166", "0.521787", "0.52172214" ]
0.0
-1
=========== Method 4: DFS + greedy + pruning ========== PROBLEM!!!! TLE for this test case: [8,7,4,3,90,8,7,4,3,90,8,7,4,3,90,8,7,4,3,90,8,7,4,3,90,8,7,4,3,90,8,7,4,3,90,8,7,4,3,90,8,7,4,3,90,8,7,4,3,90,8,7,4,3,90,8,7,4,3,90,8,7,4,3,90,8,7,4,3,90,8,7,4,3,90,8,7,4,3,90,8,7,4,3,90,8,7,4,3,90,8,7,4,3,90,8,7,4,3,90] 1905 if [1,2,5], upper bound of time complexicity is 3 ^ m, where m is max(amount / coins[i]). 7ms
public int coinChange(int[] coins, int amount) { Arrays.sort(coins); // greedy. Iterate from largest value int[] ans = new int[]{Integer.MAX_VALUE}; helper(coins.length - 1, coins, amount, 0, ans); return ans[0] == Integer.MAX_VALUE ? -1 : ans[0]; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void GreedySearch(){\n\n Queue<Node> expanded = new LinkedList<>();\n ArrayList<Node> fringe = new ArrayList<>();\n ArrayList<Node> fringeTemp = new ArrayList<>();\n\n\n Node current = startNode;\n\n while(expanded.size() < 1000){\n\n if(current.getDigit().getDigitString().equals(goalNode.getDigit().getDigitString())){\n //goal is reached.\n solutionPath(current);\n expanded.add(current);\n printExpanded(expanded);\n System.exit(0);\n }\n\n\n boolean b = cycleCheck(current,expanded);\n\n if(!b) {\n expanded.add(current);\n }\n\n if(!b){\n\n if(current.getDigit().last_changed != 0){\n\n if ((Integer.parseInt(current.getDigit().getFirst_digit()) - 1 >= 0)) {\n Node child_node = new Node(current.getDigit().decreaseFirstDigit());\n child_node.setParent(current);\n child_node.getDigit().setLastChanged(0);\n\n if(!forbidden.contains(child_node.getDigit().getDigitString())){\n fringe.add(child_node);\n }\n }\n\n //+1 child first digit\n if ((Integer.parseInt(current.getDigit().getFirst_digit()) + 1 <= 9)) {\n Node child_node = new Node(current.getDigit().increaseFirstDigit());\n child_node.setParent(current);\n child_node.getDigit().setLastChanged(0);\n if(!forbidden.contains(child_node.getDigit().getDigitString())){\n fringe.add(child_node);\n }\n\n }\n }\n\n if(current.getDigit().last_changed != 1){\n\n if ((Integer.parseInt(current.getDigit().getSecond_digit()) - 1 >= 0)) {\n Node child_node = new Node(current.getDigit().decreaseSecondDigit());\n child_node.setParent(current);\n child_node.getDigit().setLastChanged(1);\n if(!forbidden.contains(child_node.getDigit().getDigitString())){\n fringe.add(child_node);\n }\n }\n\n //+1 child\n if ((Integer.parseInt(current.getDigit().getSecond_digit()) + 1 <= 9)) {\n Node child_node = new Node(current.getDigit().increaseSecondDigit());\n child_node.setParent(current);\n child_node.getDigit().setLastChanged(1);\n if(!forbidden.contains(child_node.getDigit().getDigitString())){\n fringe.add(child_node);\n }\n }\n }\n\n if(current.getDigit().last_changed != 2){\n if ((Integer.parseInt(current.getDigit().getThird_digit()) - 1 >= 0)) {\n Node child_node = new Node(current.getDigit().decreaseThirdDigit());\n child_node.setParent(current);\n child_node.getDigit().setLastChanged(2);\n if(!forbidden.contains(child_node.getDigit().getDigitString())){\n fringe.add(child_node);\n }\n }\n //+1 child\n if ((Integer.parseInt(current.getDigit().getThird_digit()) + 1 <= 9)) {\n Node child_node = new Node(current.getDigit().increaseThirdDigit());\n child_node.setParent(current);\n child_node.getDigit().setLastChanged(2);\n if(!forbidden.contains(child_node.getDigit().getDigitString())){\n fringe.add(child_node);\n }\n }\n }\n\n }\n\n\n\n for(Node n : fringe){\n heuristicSetter(n);\n\n }\n\n fringeTemp.addAll(fringe);\n //now all the nodes in fringe have the heuristic value.\n //We can get the last added minm\n Node minm;\n if(fringeTemp.size() != 0){\n minm = fringeTemp.get(0);\n }else{\n break;\n }\n for(int i = 1; i<fringeTemp.size(); i++){\n if(fringeTemp.get(i).getHeuristic() <= minm.getHeuristic()){\n minm = fringeTemp.get(i);\n }\n }\n\n //now we have the minm for the next stage.\n current = minm;\n fringeTemp.remove(minm);\n fringe.clear();\n }\n\n //While loop ends\n System.out.println(\"No solution found.\");\n printExpanded(expanded);\n\n\n\n }", "@Override\n List<NodeData> pathFind() throws NoPathException {\n System.out.println(\"Starting Scenic\");\n\n frontier.add(start);\n\n while(!frontier.isEmpty()) {\n StarNode current = frontier.getLast();\n frontier.removeLast(); // pop the priority queue\n if(current.getXCoord() == goal.getXCoord() && current.getYCoord() == goal.getYCoord()) {\n // If we are at the goal, we need to backtrack through the shortest path\n System.out.println(\"At target!\");\n finalList.add(current); // we have to add the goal to the path before we start backtracking\n while(!(current.getXCoord() == start.getXCoord() && current.getYCoord() == start.getYCoord())) {\n finalList.add(current.getPreviousNode());\n current = current.getPreviousNode();\n System.out.println(current.getNodeID());\n }\n return finalList;\n }\n else {\n // we need to get all the neighbor nodes, identify their costs, and put them into the queue\n LinkedList<StarNode> neighbors = current.getNeighbors();\n // we also need to remove the previous node from the list of neighbors because we do not want to backtrack\n neighbors.remove(current.getPreviousNode());\n\n for (StarNode newnode : neighbors) {\n int nodePlace = this.listContainsId(frontier, newnode);\n if(nodePlace > -1) {\n if (frontier.get(nodePlace).getF() > actionCost(newnode) + distanceToGo(newnode, goal)) {\n System.out.println(\"Here\");\n frontier.remove(frontier.get(nodePlace));\n newnode.setPreviousNode(current);\n frontier.add(newnode);\n newnode.setF(actionCost(newnode) + distanceToGo(newnode, goal));\n }\n }\n else {\n newnode.setPreviousNode(current);\n frontier.add(newnode);\n newnode.setF(actionCost(newnode) + distanceToGo(newnode, goal));\n }\n\n // This fixes the problem with infinitely looping elevators (I hope)\n if(current.getNodeType().equals(\"ELEV\") && newnode.getNodeType().equals(\"ELEV\")) {\n for (Iterator<StarNode> iterator = newnode.neighbors.iterator(); iterator.hasNext();) {\n StarNode newneighbor = iterator.next();\n if (newneighbor.getNodeType().equals(\"ELEV\")) {\n // Remove the current element from the iterator and the list.\n iterator.remove();\n }\n }\n }\n if(current.getNodeType().equals(\"STAI\") && newnode.getNodeType().equals(\"STAI\")) {\n for (Iterator<StarNode> iterator = newnode.neighbors.iterator(); iterator.hasNext();) {\n StarNode newneighbor = iterator.next();\n if (newneighbor.getNodeType().equals(\"STAI\")) {\n // Remove the current element from the iterator and the list.\n iterator.remove();\n }\n }\n }\n // this is where the node is put in the right place in the queue\n Collections.sort(frontier);\n }\n }\n }\n throw new NoPathException(start.getLongName(), goal.getLongName());\n }", "int solve(int p, int current) {\n int id = getId(p, current);\n if (p >= 0 && memo.containsKey(id)) {\n return memo.get(id);\n }\n List<Integer> adjList = adj.get(current);\n int n = adjList.size();\n if (n == 0) {\n throw new RuntimeException();\n }\n if ((n == 2 && p >= 0) || (n == 1 && p < 0)) {\n // should cut the nodes under current\n int ans = getDepth(p, current) - 1;\n // System.out.println(\"ans(\" + p + \",\" + current + \")=\" + ans);\n memo.put(id, ans);\n return ans;\n }\n if (n == 1) {\n // System.out.println(\"ans(\" + p + \",\" + current + \")=nochild\");\n return 0;\n }\n int ans = Integer.MAX_VALUE;\n\n for (int i = 0; i < n; i++) {\n int a = adjList.get(i);\n if (a == p) {\n continue;\n }\n for (int j = i + 1; j < n; j++) {\n int b = adjList.get(j);\n if (b == p) {\n continue;\n }\n // try a & b combo\n int tmp = solve(current, a);\n tmp += solve(current, b);\n for (int k = 0; k < n; k++) {\n int c = adjList.get(k);\n if (c != a && c != b && c != p) {\n tmp += getDepth(current, c);\n }\n }\n ans = Math.min(ans, tmp);\n }\n }\n memo.put(id, ans);\n // System.out.println(\"ans(\" + p + \",\" + current + \")=\" + ans);\n return ans;\n }", "public void greedyBFS(String input)\r\n\t{\r\n\t\tNode root_gbfs = new Node (input);\r\n\t\tNode current = new Node(root_gbfs.getState());\r\n\t\t\r\n\t\tNodeComparator gbfs_comparator = new NodeComparator();\r\n\t\tPriorityQueue<Node> queue_gbfs = new PriorityQueue<Node>(12, gbfs_comparator);\r\n\t\tArrayList<String> visited = new ArrayList<String>();\r\n\t\tArrayList<String> children = new ArrayList<String>();\r\n\t\t\r\n\t\tint nodes_popped = 0;\r\n\t\tint pqueue_max_size = 0;\r\n\t\tint pq_size = 0;\r\n\t\t\r\n\t\tcurrent.cost = 0;\r\n\t\tcurrent.total_cost = 0;\r\n\t\t\r\n\t\twhile(!goal_gbfs)\r\n\t\t{\r\n\t\t\tvisited.add(current.getState());\r\n\t\t\tchildren = Successor.findChildren(current.getState());\r\n\t\t\t\r\n\t\t\tfor (String a : children)\r\n\t\t\t{\r\n\t\t\t\t\r\n\t\t\t\tif (visited.contains(a))\r\n\t\t\t\t{\r\n\t\t\t\t\tcontinue;\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\tNode nino = new Node(a);\r\n\t\t\t\t\tcurrent.children_nodes.add(nino);\r\n\t\t\t\t\tvisited.add(nino.getState());\r\n\t\t\t\t\t\r\n\t\t\t\t\tint cost = isCost(current.getState(), nino.getState());\r\n\t\t\t\t\tnino.cost = cost;\r\n\t\t\t\t\tnino.parent = current;\r\n\t\t\t\t\tint greedy_cost = greedybfsCost(nino.getState(), root_gbfs.getState());\r\n\t\t\t\t\tnino.setTotalCost(greedy_cost);\r\n\t\t\t\t\t\r\n\t\t\t\t\tif (!queue_gbfs.contains(nino))\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tqueue_gbfs.add(nino);\r\n\t\t\t\t\t\tpq_size++;\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\t\t// Repeated State checking. Removing the same node from PQ if the path cost is less then the current one \r\n\t\t\t\t\telse if (queue_gbfs.contains(nino))\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tfor (Node original : queue_gbfs)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tif (original.equals(nino))\r\n\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\tNode copy = original;\r\n\t\t\t\t\t\t\t\tif (nino.getTotalCost() < copy.getTotalCost())\r\n\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\tqueue_gbfs.remove(copy);\r\n\t\t\t\t\t\t\t\t\tqueue_gbfs.add(nino);\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}\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tcurrent = queue_gbfs.poll();\r\n\t\t\tnodes_popped++;\r\n\t\t\t\r\n\t\t\tif (pq_size > pqueue_max_size)\r\n\t\t\t{\r\n\t\t\t\tpqueue_max_size = pq_size;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tpq_size--;\r\n\t\t\tgoal_gbfs = isGoal(current.getState());\r\n\t\t\t\r\n\t\t}\r\n\t\t\r\n\t\tgoal_gbfs = false;\r\n\t\tSystem.out.println(\"GBFS Solved!!\");\r\n\t\tSolution.performSolution(current, root_gbfs, nodes_popped, pqueue_max_size);\r\n\t}", "private boolean helperDFS(Node current){\n\n if(expandedNode.size() == 999){\n //limit has been reached. jump out of recursion.\n expandedNode.add(current);\n System.out.println(\"No solution found.\");\n printExpanded(expandedNode);\n System.exit(0);\n return false;\n }\n\n boolean b = cycleCheck(current,expandedNode);\n\n if(!b){\n expandedNode.add(current);\n }else{\n return false;\n }\n\n if(current.getDigit().getDigitString().equals(goalNode.getDigit().getDigitString())){\n //goal reached.\n //expandedNode.add(current);\n solutionPath(current);\n printExpanded(expandedNode);\n System.exit(0);\n }\n\n //Now make the children.\n\n if(!forbidden.contains(current.getDigit().getDigitString())){\n\n if(current.getDigit().last_changed != 0){\n\n if ((Integer.parseInt(current.getDigit().getFirst_digit()) - 1 >= 0)) {\n Node child_node = new Node(current.getDigit().decreaseFirstDigit());\n child_node.setParent(current);\n child_node.getDigit().setLastChanged(0);\n if(!forbidden.contains(child_node.getDigit().getDigitString()) && helperDFS(child_node)){\n return true;\n }\n }\n\n //+1 child first digit\n if ((Integer.parseInt(current.getDigit().getFirst_digit()) + 1 <= 9)) {\n Node child_node = new Node(current.getDigit().increaseFirstDigit());\n child_node.setParent(current);\n child_node.getDigit().setLastChanged(0);\n if(!forbidden.contains(child_node.getDigit().getDigitString()) && helperDFS(child_node)){\n return true;\n }\n }\n }\n\n if(current.getDigit().last_changed != 1){\n if ((Integer.parseInt(current.getDigit().getSecond_digit()) - 1 >= 0)) {\n Node child_node = new Node(current.getDigit().decreaseSecondDigit());\n child_node.setParent(current);\n child_node.getDigit().setLastChanged(1);\n if(!forbidden.contains(child_node.getDigit().getDigitString()) && helperDFS(child_node)){\n return true;\n }\n }\n\n //+1 child\n if ((Integer.parseInt(current.getDigit().getSecond_digit()) + 1 <= 9)) {\n Node child_node = new Node(current.getDigit().increaseSecondDigit());\n child_node.setParent(current);\n child_node.getDigit().setLastChanged(1);\n if(!forbidden.contains(child_node.getDigit().getDigitString()) && helperDFS(child_node)){\n return true;\n }\n }\n }\n\n if(current.getDigit().last_changed != 2){\n if ((Integer.parseInt(current.getDigit().getThird_digit()) - 1 >= 0)) {\n Node child_node = new Node(current.getDigit().decreaseThirdDigit());\n child_node.setParent(current);\n child_node.getDigit().setLastChanged(2);\n if(!forbidden.contains(child_node.getDigit().getDigitString()) && helperDFS(child_node)){\n return true;\n }\n }\n //+1 child\n if ((Integer.parseInt(current.getDigit().getThird_digit()) + 1 <= 9)) {\n Node child_node = new Node(current.getDigit().increaseThirdDigit());\n child_node.setParent(current);\n child_node.getDigit().setLastChanged(2);\n if(!forbidden.contains(child_node.getDigit().getDigitString()) && helperDFS(child_node)){\n return true;\n }\n }\n }\n }\n return false;\n }", "public void dfs (String input)\r\n\t {\r\n\t\t \tNode root_dfs = new Node (input);\r\n\t\t \tNode current = new Node(root_dfs.getState());\r\n\t\t \t\r\n\t\t\tArrayList<String> visited = new ArrayList<String>();\r\n\t\t\tArrayList<String> children = new ArrayList<String>();\r\n\t\t\tStack<Node> stack_dfs = new Stack<Node>();\r\n\t\t\t\r\n\t\t\tint nodes_popped = 0;\r\n\t\t\tint stack_max_size = 0;\r\n\t\t\tint stack_size = 0;\r\n\t\t\tcurrent.cost = 0;\r\n\t\t\t\r\n\t\t\tgoal_dfs = isGoal(current.getState());\r\n\t\t\t\r\n\t\t\twhile(!goal_dfs)\r\n\t\t\t{\r\n\t\t\t\tvisited.add(current.getState());\r\n\t\t\t\tchildren = Successor.findChildren(current.getState());\r\n\t\t\t\t\r\n\t\t\t\tfor (String a : children)\r\n\t\t\t\t{\r\n\t\t\t\t\t\r\n\t\t\t\t\tif (visited.contains(a))\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tcontinue;\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\t\t\tNode nino = new Node(a);\r\n\t\t\t\t\t\tcurrent.children_nodes.add(nino);\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\tint cost = isCost(current.getState(), nino.getState());\r\n\t\t\t\t\t\tnino.cost = cost;\r\n\t\t\t\t\t\tnino.parent = current;\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t// Repeated state check\r\n\t\t\t\t\t\tif (!stack_dfs.contains(nino))\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tstack_dfs.add(nino);\r\n\t\t\t\t\t\t\tstack_size++;\r\n\t\t\t\t\t\t}\r\n\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// Popping off the stack. LIFO architecture\r\n\t\t\t\tcurrent = stack_dfs.pop();\r\n\t\t\t\tnodes_popped++;\r\n\t\t\t\t\r\n\t\t\t\tif (stack_size > stack_max_size)\r\n\t\t\t\t{\r\n\t\t\t\t\tstack_max_size = stack_size;\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tstack_size--;\r\n\t\t\t\tgoal_dfs = isGoal(current.getState());\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tgoal_dfs = false;\r\n\t\t\tSystem.out.println(\"DFS Solved!!\");\r\n\t\t\tSolution.performSolution(current, root_dfs, nodes_popped, stack_max_size);\r\n\t }", "private List<Double> MinimaxAlgorithm(MinimaxNode<GameState> node, int dataCount){\n if(node.getNumberOfChildren() == 0){ //checks to see if terminal node\n List<Double> heuristics = new ArrayList();\n heuristics.addAll(calculateHeuristic(node.getState()));\n return heuristics;\n }\n else{ //will maximise all the scores for each player.\n double value = Double.NEGATIVE_INFINITY;\n double checkValue;\n int bestMove;\n List<Double> heuristics = new ArrayList();\n if(node.getIfChanceNode()){ //checks if current node is a chance node, if so, times \n for (int i = 0; i < node.getChildren().size(); i++){\n List<Double> tempHeuristics = new ArrayList();\n tempHeuristics.addAll(MinimaxAlgorithm(node.getChildren().get(i),dataCount+1));\n checkValue = node.getChildren().get(i).getProbability() * tempHeuristics.get(node.getNodeIndex());\n value = Math.max(value, checkValue);//maximises the score.\n if(checkValue == value){\n heuristics.addAll(tempHeuristics); \n }\n if(dataCount == 0){//checks if this is the root node\n if(checkValue == value){\n MinimaxPlayer.optimalMoves = node.getChildren().get(i).getState().getOrientation(node.getNodeIndex()); \n }\n } \n }\n }\n else{\n for (int i = 0; i < node.getChildren().size(); i++){\n List<Double> tempHeuristics = new ArrayList();\n tempHeuristics.addAll(MinimaxAlgorithm(node.getChildren().get(i),dataCount+1));\n checkValue = tempHeuristics.get(node.getNodeIndex());\n value = Math.max(value, checkValue);//maximises the score.\n if(checkValue == value){\n heuristics.addAll(tempHeuristics); \n }\n if(dataCount == 0){//checks if this is the root node\n if(checkValue == value){\n MinimaxPlayer.optimalMoves = node.getChildren().get(i).getState().getOrientation(node.getNodeIndex()); \n }\n } \n } \n }\n return heuristics;\n } \n }", "private int heuristic(Node node, int currentDepth) {\n\n int ef, w1 = 1, w2 = 1, w3 = 0, w4 = 10, w5 = 1, w6 = 35, e1 = 0, e2 = 0, e3 = 0, e4 = 0, e5 = 0, e6 = 0;\n\n int ourSeedsInStore = node.getBoard().getSeedsInStore(ourSide);\n int oppSeedsInStore = node.getBoard().getSeedsInStore(ourSide.opposite());\n\n\n // hardcode fix.\n int parentOurSeedsInStore = 0;\n int parentOppSeedsInStore = 0;\n int parentMove = 0;\n int parentOurSeedsInHouse = 0;\n int parentOppSeedsInHouse = 0;\n\n if (currentDepth != 1) {\n parentOurSeedsInStore = node.getParent().getBoard().getSeedsInStore(ourSide);\n parentOppSeedsInStore = node.getParent().getBoard().getSeedsInStore(ourSide.opposite());\n parentMove = node.getName();\n parentOurSeedsInHouse = node.getParent().getBoard().getSeeds(ourSide, parentMove);\n parentOppSeedsInHouse = node.getParent().getBoard().getSeeds(ourSide.opposite(), parentMove);\n }\n\n int ourFreeHouse = 0;\n int oppFreeHouse = 0;\n int ourSeeds = ourSeedsInStore;\n int oppSeeds = oppSeedsInStore;\n\n int asdf1 = ourSeedsInStore - parentOurSeedsInStore;\n int asdf2 = oppSeedsInStore - parentOppSeedsInStore;\n\n e6 = asdf1 - asdf2;\n\n for (int i = 1; i <= 7; i++) {\n ourSeeds += node.getBoard().getSeeds(ourSide, i);\n oppSeeds += node.getBoard().getSeeds(ourSide.opposite(), i);\n }\n\n for (int i = 1; i <= 7; i++) {\n if (node.getBoard().getSeeds(ourSide, i) == 0)\n ourFreeHouse++;\n if (node.getBoard().getSeeds(ourSide.opposite(), i) == 0)\n oppFreeHouse++;\n }\n\n e1 = ourSeeds - oppSeeds;\n e2 = ourFreeHouse - oppFreeHouse;\n\n // hardcode fix.\n if (currentDepth != 1) {\n if (node.getParent().getPlayerSide() == this.getOurSide()) {\n // if last move puts seed into store\n if ((parentMove + parentOurSeedsInHouse) % 8 == 0) {\n e4 = 1;\n e3 = (parentMove + parentOurSeedsInHouse) / 8;\n } else if (parentMove + parentOurSeedsInStore > 8) {\n e4 = 0;\n e3 = (parentMove + parentOurSeedsInStore) / 8;\n }\n\n for (int i = 1; i <= 7; i++) {\n int parentOurSeedsInCurrentHouse = node.getParent().getBoard().getSeeds(ourSide, i);\n int parentOppSeedsInFrontHouse = node.getParent().getBoard().getSeeds(ourSide.opposite(), 8 - i);\n int oppSeedsInFrontHouse = node.getBoard().getSeeds(ourSide.opposite(), 8 - i);\n // if there's no seed in current house && there is seed right in front of us\n if ((parentOurSeedsInCurrentHouse == 0 || parentOurSeedsInCurrentHouse == 15) && parentOppSeedsInFrontHouse != 0 && oppSeedsInFrontHouse == 0) {\n if (currentDepth != 2) {\n if (node.getParent().getParent().getPlayerSide() == this.getOurSide()) {\n w5 = 5;\n e5 = parentOppSeedsInFrontHouse;\n break;\n }\n }\n e5 = parentOppSeedsInFrontHouse;\n break;\n }\n\n }\n } else if (node.getParent().getPlayerSide() == this.getOurSide().opposite()) {\n\n if (parentMove + parentOppSeedsInHouse == 8) {\n e4 = -1;\n e3 = -1 * (parentMove + parentOppSeedsInHouse) / 8;\n } else if (parentMove + parentOppSeedsInStore > 8) {\n e4 = 0;\n e3 = -(parentMove + parentOppSeedsInStore) / 8;\n }\n\n\n for (int i = 1; i <= 7; i++) {\n int parentOppSeedsInCurrentHouse = node.getParent().getBoard().getSeeds(ourSide.opposite(), i);\n int parentOurSeedsInFrontHouse = node.getParent().getBoard().getSeeds(ourSide, 8 - i);\n int oppSeedsInCurrentHouse = node.getBoard().getSeeds(ourSide, 8 - i);\n\n if ((parentOppSeedsInCurrentHouse == 0 || parentOppSeedsInCurrentHouse == 15) && parentOurSeedsInFrontHouse != 0 && oppSeedsInCurrentHouse == 0) {\n if (currentDepth != 2) {\n if (node.getParent().getParent().getPlayerSide() == this.getOurSide()) {\n w5 = 5;\n e5 = -parentOurSeedsInFrontHouse;\n break;\n }\n }\n w5 = 5;\n e5 = -parentOurSeedsInFrontHouse;\n break;\n }\n }\n }\n }\n ef = w1 * e1 + w2 * e2 + w3 * e3 + w4 * e4 + w5 * e5 + w6 * e6;\n return ef;\n }", "@Override\n \tpublic Solution solve() {\n \t\tfor (int i = 0; i < n; i++) {\n \t\t\tnest[i] = generator.getSolution();\n \t\t}\n \n \t\tfor (int t = 0; t < maxGeneration; t++) { // While (t<MaxGeneration) or\n \t\t\t\t\t\t\t\t\t\t\t\t\t// (stop criterion)\n \t\t\t// Get a cuckoo randomly (say, i) and replace its solution by\n \t\t\t// performing random operations;\n \t\t\tint i = r.nextInt(n);\n \t\t\tSolution randomNest = nest[i];\n \t\t\t//FIXME: randomNest = solutionModifier.modify(nest[i]);\n \n \t\t\t// Evaluate its quality/fitness\n \t\t\tint fi = randomNest.f();\n \n \t\t\t// Choose a nest among n (say, j) randomly;\n \t\t\tint j = r.nextInt(n);\n \t\t\tint fj = f[j];\n \n \t\t\tif (fi > fj) {\n \t\t\t\tnest[i] = randomNest;\n \t\t\t\tf[i] = fi;\n \t\t\t}\n \n \t\t\tsort();\n \t\t\t// A fraction (pa) of the worse nests are abandoned and new ones are built;\n\t\t\tfor(i = n-toAbandon; i<n; i++) {\n \t\t\t\tnest[i] = generator.getSolution();\n \t\t\t}\n \t\t\t\n \t\t\t// Rank the solutions/nests and find the current best;\n \t\t\tsort();\n \t\t}\n \n \t\treturn nest[0];\n \t}", "@Override\n\tpublic void run() {\n\t\tMap<Integer, Integer> roots = new TreeMap<Integer, Integer>();\n\t\t\n\t\tEdge[] edges = new Edge[this.edges.length];\n\t\tint n, weight, relevantEdges, root, lowerBound = 0;\n\t\n\t\t// Sort edges by weight.\n\t\tquickSort(0, this.edges.length - 1);\n\t\n\t\t// Compute initial lower bound (best k - 1 edges).\n\t\t// Choosing the cheapest k - 1 edges is not very intelligent. There is no guarantee\n\t\t// that this subset of edges even induces a subgraph over the initial graph.\n\t\t// TODO: Find a better initial lower bound.\n\t\tfor (int i = 0; i < solution.length; i++) {\n\t\t\tlowerBound += this.edges[i].weight;\n\t\t}\n\t\n\t\t// Iterate over all nodes in the graph and run Prim's algorithm\n\t\t// until k - 1 edges are fixed.\n\t\t// As all induced subgraphs have k nodes and are connected according to Prim, they\n\t\t// are candidate solutions and thus submitted.\n\t\tfor (root = 0; root < taken.length; root++) {\n\t\t\ttaken = new boolean[taken.length];\n\t\t\tSystem.arraycopy(this.edges, 0, edges, 0, this.edges.length);\n\n\t\t\ttaken[root] = true;\n\t\t\tn = 0;\n\t\t\tweight = 0;\n\t\t\trelevantEdges = this.edges.length;\n\n\t\t\twhile (n < solution.length) { \n\t\t\t\tfor (int i = 0; i < relevantEdges; i++) {\n\t\t\t\t\t// XOR to check if connected and no circle.\n\t\t\t\t\tif (taken[edges[i].node1] ^ taken[edges[i].node2]) {\n\t\t\t\t\t\ttaken[taken[edges[i].node1] ? edges[i].node2 : edges[i].node1] = true;\n\t\t\t\t\t\tsolution[n++] = edges[i];\n\t\t\t\t\t\tweight += edges[i].weight;\n\t\t\t\t\t\tSystem.arraycopy(edges, i + 1, edges, i, --relevantEdges - i);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t\t// Check for circle.\n\t\t\t\t\telse if (taken[edges[i].node1]) {\n\t\t\t\t\t\tSystem.arraycopy(edges, i + 1, edges, i, --relevantEdges - i);\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\t// Sum up what we've just collected and submit this\n\t\t\t// solution to the framework.\n\t\t\tHashSet<Edge> set = new HashSet<Edge>(solution.length);\n\t\t\tfor (int i = 0; i < solution.length; i++) {\n\t\t\t\tset.add(solution[i]);\n\t\t\t}\n\t\t\tsetSolution(weight, set);\n\t\t\troots.put(weight, root);\n\t\t}\n\n\t\t// Now for the real business, let's do some Branch-and-Bound. Roots of \"k Prim Spanning Trees\"\n\t\t// are enumerated by weight to increase our chances to obtain the kMST earlier.\n\t\tfor (int item : roots.values()) {\n\t\t\ttaken = new boolean[taken.length];\n\t\t\tSystem.arraycopy(this.edges, 0, edges, 0, this.edges.length);\n\t\t\ttaken[item] = true;\n\t\t\tbranchAndBound(edges, solution.length, 0, lowerBound);\n\t\t}\n\t}", "public ReturnClass astar_algo(){\n long start=System.nanoTime();\n TreeStar node=new TreeStar(variables,0);\n openList.push(node);\n\n while (!openList.isEmpty())\n {\n\n TreeStar temp= openList.pollLast(); //pop the highest scoring node in openList\n refreshUsage(temp.variables); //uses the current node variables to update usageArray\n\n if((System.nanoTime()-start)/1000000000>=maxTime){\n System.out.println(\"time limit reached\");\n ReturnClass returnClass= new ReturnClass(temp.variables,temp.score,false);\n return returnClass;\n }\n\n if(temp.score==nbC){\n System.out.println(\"solution trouvée !\");\n printArray(temp.variables);\n ReturnClass returnClass= new ReturnClass(temp.variables,temp.score,true);\n return returnClass;\n }\n\n int bestVar=0;\n if(heuristic.equals(\"TD Heuristic\")){\n bestVar= chooseVTD(); //get the highest scoring unused var to use it in children\n }\n else if(heuristic.equals(\"TD-long heuristic\")){\n bestVar=chooseVTD();\n }\n else if(heuristic.equals(\"Partial-diff Heuristic\")){\n bestVar= chooseVDiff(temp.variables); //get the highest scoring unused var to use it in children\n }\n else {\n bestVar= chooseVDiff(temp.variables);\n }\n\n\n TreeStar node1= nextVar(temp.variables, 0,bestVar,temp.profondeur+1);\n TreeStar node2= nextVar(temp.variables, 1,bestVar,temp.profondeur+1);\n\n if(node1!=null){\n addToOpenList(node1);\n addToOpenList(node2);\n }\n }\n\n System.out.println(\"solution non trouvée\");\n return null;\n }", "void dfs(){\n // start from the index 0\n for (int vertex=0; vertex<v; vertex++){\n // check visited or not\n if (visited[vertex]==false){\n Explore(vertex);\n }\n }\n }", "public void generateNeighborhood(TSPSolution s){\r\n\t\tint [] rounte = new int[problem.city_num+1];\r\n\t\tfor(int i=0;i<problem.city_num;i++) rounte[i] = s.route[i];\r\n\t\trounte[problem.city_num] = rounte[0];\r\n\t\tint [] pos = new int[problem.city_num];\r\n\t\tproblem.calculatePosition(rounte, pos);\r\n\t\tint pos1 = 0;\r\n\t\tint pos2 = 0;\r\n\t\tfor(int k=0;k<problem.city_num;k++){\r\n\t\t\tint i = k;\r\n\t\t\tpos1 = i;\r\n\t\t\tint curIndex = rounte[i];\r\n\t\t\tint nextIndex = rounte[i+1];\r\n\t\t\tArrayList<Integer> candidate = problem.candidateList.get(curIndex);\r\n\t\t\tIterator<Integer> iter = candidate.iterator();\r\n\t\t\twhile(iter.hasNext()){\r\n\t\t\t\tint next = iter.next();\r\n\t\t\t\tpos2 = pos[next];\r\n\t\t\t\tint curIndex1 = rounte[pos2];\r\n\t\t\t\tint nextIndex1 = rounte[pos2+1];\r\n\t\t\t\tif(curIndex == nextIndex1) continue;\r\n\t\t\t\tif(curIndex == curIndex1) continue;\r\n\t\t\t\tif(nextIndex == nextIndex1) continue;\r\n\t\t\t\tif(curIndex1 == nextIndex) continue;\r\n\t\t\t\tint betterTimes = 0;\r\n\t\t\t\tTSPSolution solution = new TSPSolution(problem.city_num, problem.obj_num, -1);\r\n\t\t\t\tfor(int j=0;j<problem.obj_num;j++){\r\n\t\t\t\t\tint gain = problem.disMatrix[j*problem.city_num*problem.city_num+curIndex*problem.city_num+curIndex1] +\r\n\t\t\t\t\t\t\tproblem.disMatrix[j*problem.city_num*problem.city_num+nextIndex*problem.city_num+nextIndex1] - \r\n\t\t\t\t\t\t\t(problem.disMatrix[j*problem.city_num*problem.city_num+curIndex*problem.city_num+nextIndex]+\r\n\t\t\t\t\t\t\tproblem.disMatrix[j*problem.city_num*problem.city_num+curIndex1*problem.city_num+nextIndex1]);\r\n\t\t\t\t\tif(gain<0) betterTimes++;\r\n\t\t\t\t\tsolution.object_val[j] = s.object_val[j] + gain;\r\n\t\t\t\t}\r\n\t\t\t\tif(betterTimes==0) continue;\r\n\t\t\t\tsolution.route = s.route.clone();\r\n\r\n\t\t\t\tif(problem.kdSet.add(solution)){\r\n\t\t\t\t\tproblem.converse(pos1, pos2, solution.route, 0);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public static void main(String[] args){\n\t\t\n\t\tfor (int i = 0; i<999999;i++) results.add(0);\t\n\n\t\tsetChain(1L);\n\t\tboolean switcher = true;\n\t\t//while switch=true ... and once chain length is added to, switch = false\n \t\tlong best = 0L;\n\t\tint index=0;\n\t\t\t\n\t\tfor (long j = 1L; j < 1000000L; j++) {\n\n\t\t\tsetCur((int)j);\n\n\t\t\tfindChain(j);//} catch(Exception e){System.out.println(\"stackOverFlow :D\");}\n\t\t\tif (getChain() > best) {best = getChain(); index=getCur();}\n\t\t\t//now store results for later use if we come across that number.\n\t\t\tresults.set(getCur()-1, (int)getChain());\t\n\t\t\tsetChain(1L); //reset\n\t\t\t/* \t\n\t\t\tswitcher=true;\n\t\t\tint i = j;\n\t\t\twhile (switcher) {\n\n\t\t\t\tif (i==1) {//results.add(chainLength); \n\t\t\t\t\tif (chainLength > best) { best=chainLength; index = j;}\n\t\t\t \tchainLength=1; switcher=false;}\n\t\n\t\t\t\telse { i=recurse(i); chainLength++; }\t\n\t\n\t\t\t\t}\n\t\t\t}\n\t\t\t*/\n//\t\t }\n\t\t}\n\t\tSystem.out.println(index);\n\t}", "public static Tree solve() {\n Scanner scan = new Scanner(System.in);\n int n = scan.nextInt();\n\n int[] arrayNode = new int[n + 1];\n for (int i = 1; i <= n; i++) {\n arrayNode[i] = scan.nextInt();\n }\n\n Color[] arrayColor = new Color[n + 1];\n for (int i = 1; i <= n; i++) {\n if (scan.nextInt() == 0) {\n arrayColor[i] = Color.RED;\n } else {\n arrayColor[i] = Color.GREEN;\n }\n }\n\n List<Integer>[] adjacentsList = new List[n + 1];\n for (int i = 1; i <= n; i++) {\n adjacentsList[i] = new ArrayList<Integer>();\n }\n\n for (int i = 0; i < n - 1; i++) {\n int x = scan.nextInt();\n int y = scan.nextInt();\n\n adjacentsList[x].add(y);\n adjacentsList[y].add(x);\n }\n\n scan.close();\n\n List<Integer>[] childrenList = new List[n + 1];\n for (int i = 1; i <= n; i++) {\n childrenList[i] = new ArrayList<Integer>();\n }\n\n int[] depths = new int[n + 1];\n boolean[] visited = new boolean[n + 1];\n\n Queue<Integer> queue = new LinkedList<Integer>();\n depths[1] = 0;\n queue.offer(1);\n while (!queue.isEmpty()) {\n int head = queue.poll();\n\n if (visited[head]) {\n continue;\n }\n visited[head] = true;\n\n for (int adjacent : adjacentsList[head]) {\n if (!visited[adjacent]) {\n childrenList[head].add(adjacent);\n depths[adjacent] = depths[head] + 1;\n queue.offer(adjacent);\n }\n }\n }\n\n Tree[] nodes = new Tree[n + 1];\n for (int i = 1; i <= n; i++) {\n if (childrenList[i].isEmpty()) {\n nodes[i] = new TreeLeaf(arrayNode[i], arrayColor[i], depths[i]);\n } else {\n nodes[i] = new TreeNode(arrayNode[i], arrayColor[i], depths[i]);\n }\n }\n for (int i = 1; i <= n; i++) {\n for (int child : childrenList[i]) {\n ((TreeNode) nodes[i]).addChild(nodes[child]);\n }\n }\n return nodes[1];\n }", "public void solve() {\n// BruteForceSolver bfs = new BruteForceSolver(pointList);\n// bfs.solve(); // prints the best polygon, its area, and time needed\n// System.out.println(\"-------------\");\n\n// StarshapedSolver ss = new StarshapedSolver(pointList);\n// foundPolygons = ss.solve();\n// System.out.println(\"-------------\");\n\n// RandomAddPointHeuristic ra = new RandomAddPointHeuristic(pointList);\n// foundPolygons = ra.solve(750);\n// System.out.println(\"-------------\");\n\n// GreedyAddPointHeuristic ga = new GreedyAddPointHeuristic(pointList,false);\n// foundPolygons = ga.solve(750);\n// System.out.println(\"-------------\");\n\n// long time = 4000;\n// GreedyAddPointHeuristic gaInit = new GreedyAddPointHeuristic(pointList,false);\n// Polygon2D initSolution = gaInit.solve(time*1/4).get(0);\n// System.out.println(initSolution.area);\n// System.out.println(initSolution);\n//\n// SimulatedAnnealing sa = new SimulatedAnnealing(pointList,initSolution,3);\n// foundPolygons.addAll(sa.solve(time-gaInit.timeInit,2,0.005,0.95));\n// System.out.println(sa.maxPolygon);\n// System.out.println(\"-------------\");\n\n// foundPolygons.addAll(findMultiplePolygonsStarshaped(8,0.6));\n\n }", "private static List<Move> pathSolve(Level level){\n\t\tOptimisticMap optMap = new OptimisticMap(level);\n\t\t\n\t\tPoint dst = level.getExitPos();\n\t\t\n\t\t// Open nodes\n\t\tSortedMap<Integer, List<SolveNode>> nodes = new TreeMap<Integer, List<SolveNode>>();\n\t\t\n\t\t// Current costs to arrive to solve nodes\n\t\tint[][][] arrived = new int[level.getMapSize().x][level.getMapSize().y][Move.values().length];\n\t\tfor ( int x = 0 ; x < level.getMapSize().x ; x++ ){\n\t\t\tfor ( int y = 0 ; y < level.getMapSize().y ; y++ ){\n\t\t\t\tfor ( int d = 0 ; d < Move.values().length ; d++ ){\n\t\t\t\t\tarrived[x][y][d] = Integer.MAX_VALUE;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\t// Create initial nodes\n\t\t{\n\t\t\tPoint box = level.getBoxPos();\n\t\t\tPoint player = level.getPlayerPos();\n\t\t\tfor ( Move dir : Move.values()){\n\t\t\t\tPoint playerDst = dir.nextPosition(box);\n\t\t\t\tif ( level.isClearSafe(playerDst.x, playerDst.y)){\n\t\t\t\t\tList<Move> pathNoDesiredPlayerPosition = pathTo(level, player, box, playerDst);\n\t\t\t\t\tif ( pathNoDesiredPlayerPosition != null ){\n\t\t\t\t\t\tSolveNode node = new SolveNode();\n\t\t\t\t\t\tnode.moves = pathNoDesiredPlayerPosition;\n\t\t\t\t\t\tnode.box = (Point)box.clone();\n\t\t\t\t\t\tnode.playerDir = dir;\n\t\t\t\t\t\taddSolveNode(nodes, node, node.moves.size() + optMap.getValue(node.box.x, node.box.y));\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\twhile ( nodes.isEmpty() == false ){\n\t\t\t// Get node to process\n\t\t\tSolveNode node = removeSolveNode(nodes);\n\t\t\tif ( node.box.equals(dst) ){\n\t\t\t\t// This is the best solution\n\t\t\t\treturn node.moves;\n\t\t\t}\n\t\t\t\n\t\t\t// Create new nodes trying to move the box in each direction\n\t\t\tfor ( Move dir : Move.values() ){\n\t\t\t\tSolveNode newNode = new SolveNode();\n\t\t\t\tnewNode.box = dir.nextPosition(node.box);\n\t\t\t\tnewNode.playerDir = dir.opposite();\n\t\t\t\t\n\t\t\t\t// First check if the box can be moved to that position (is clear)\n\t\t\t\tif ( level.isClearSafe(newNode.box.x, newNode.box.y) == false ){\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t// Check if the player can move to the pushing position\n\t\t\t\tPoint player = node.playerDir.nextPosition(node.box);\n\t\t\t\tPoint playerDst = dir.opposite().nextPosition(node.box);\n\t\t\t\tList<Move> playerMoves = pathTo(level, player, node.box, playerDst);\n\t\t\t\tif ( playerMoves == null ){\n\t\t\t\t\t// The player can't move itself to the pushing position\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t// Check if the cost to arrive to the new node is less that the previous known\n\t\t\t\tif ( node.moves.size() + playerMoves.size() + 1 >= arrived[newNode.box.x][newNode.box.y][dir.index()] ){\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tSystem.out.println(\"\" + newNode.box.x + \" \" + newNode.box.y);\n\t\t\t\t\n\t\t\t\t// Add the new node to the open nodes\n\t\t\t\tnewNode.moves.addAll(node.moves);\n\t\t\t\tnewNode.moves.addAll(playerMoves);\n\t\t\t\tnewNode.moves.add(dir);\n\t\t\t\taddSolveNode(nodes, newNode, newNode.moves.size() + optMap.getValue(newNode.box.x, newNode.box.y));\n\t\t\t\tarrived[newNode.box.x][newNode.box.y][dir.index()] = newNode.moves.size();\n\t\t\t}\n\t\t}\n\t\t\n\t\t// There is no solution\n\t\treturn null;\n\t}", "int DFS(int i, int j) {\n if (dp[i][j] != 0)\n return dp[i][j];\n\n int steps = 0;\n int trial = 0;\n if (i < dp.length - 1 && matrix[i][j] < matrix[i+1][j]) {\n trial = DFS(i + 1, j);\n if (trial > steps)\n steps = trial;\n }\n if (i > 0 && matrix[i][j] < matrix[i-1][j]) {\n trial = DFS(i - 1, j);\n if (trial > steps)\n steps = trial;\n }\n if (j < dp[0].length - 1 && matrix[i][j] < matrix[i][j+1]) {\n trial = DFS(i, j + 1);\n if (trial > steps)\n steps = trial;\n }\n if (j > 0 && matrix[i][j] < matrix[i][j-1]) {\n trial = DFS(i, j - 1);\n if (trial > steps)\n steps = trial;\n }\n\n dp[i][j] = steps + 1;\n return dp[i][j];\n }", "public void solve() {\n\t\tArrayList<Piece> pieceListBySize = new ArrayList<Piece>(pieceList);\n\t\tCollections.sort(pieceListBySize);\t// This is done since the order\n\t\t\t\t\t\t\t\t\t\t\t// of piece placements does not matter.\n\t\t\t\t\t\t\t\t\t\t\t// Placing larger pieces down first lets\n\t\t\t\t\t\t\t\t\t\t\t// pruning occur sooner.\n\t\t\n\t\t/**\n\t\t * Calculates number of resets needed for a game board.\n\t\t * A \"reset\" refers to a tile that goes from the solved state to\n\t\t * an unsolved state and back to the solved state.\n\t\t * \n\t\t * This is the calculation used for pruning.\n\t\t */\n\t\t\n\t\tArrayList<Integer> areaLeft = new ArrayList<Integer>();\n\t\tareaLeft.add(0);\n\t\tint totalArea = 0;\n\t\tfor (int i = pieceListBySize.size() - 1; i >= 0; i--) {\n\t\t\ttotalArea += pieceListBySize.get(i).numberOfFlips;\n\t\t\tareaLeft.add(0, totalArea);\n\t\t}\n\t\tint totalResets = (totalArea - gameBoard.flipsNeeded) / (gameBoard.goal + 1);\n\t\tSystem.out.println(\"Total Resets: \" + totalResets);\n\t\t\n\t\t/* \n\t\tint highRow = 0;\n\t\tint highCol = 0;\n\t\tint[][] maxDim = new int[2][pieceListBySize.size()];\n\t\tfor (int i = pieceListBySize.size() - 1; i >= 0; i--) {\n\t\t\tif (highRow < pieceListBySize.get(i).rows)\n\t\t\t\thighRow = pieceListBySize.get(i).rows;\n\t\t\t\n\t\t\tif (highCol < pieceListBySize.get(i).cols)\n\t\t\t\thighCol = pieceListBySize.get(i).cols;\n\t\t\t\n\t\t\tmaxDim[0][i] = highRow;\n\t\t\tmaxDim[1][i] = highCol;\n\t\t}\n\t\t*/\n\t\t\n\t\tlong startTime = System.currentTimeMillis();\n\t\t\n\t\tNode<GameBoard> currentNode = new Node<GameBoard>(gameBoard);\n\t\tStack<Node<GameBoard>> stack = new Stack<Node<GameBoard>>();\n\t\tstack.push(currentNode);\n\t\t\n\t\twhile (!stack.isEmpty()) {\n\t\t\tnodeCount++;\n\t\t\t\n\t\t\tNode<GameBoard> node = stack.pop();\n\t\t\tGameBoard current = node.getElement();\n\t\t\tint depth = node.getDepth();\n\t\t\t\n\t\t\t// Checks to see if we reach a solved state.\n\t\t\t// If so, re-order the pieces then print out the solution.\n\t\t\tif (depth == pieceListBySize.size() && current.isSolved()) {\n\t\t\t\tArrayList<Point> moves = new ArrayList<Point>();\n\t\t\t\t\n\t\t\t\twhile (node.parent != null) {\n\t\t\t\t\tint index = node.level - 1;\n\t\t\t\t\tint sequence = pieceList.indexOf(pieceListBySize.get(index));\n\t\t\t\t\tPoint p = new Point(current.moveRow, current.moveCol, sequence);\n\t\t\t\t\tmoves.add(p);\n\t\t\t\t\t\n\t\t\t\t\tnode = node.parent;\n\t\t\t\t\tcurrent = node.getElement();\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tCollections.sort(moves);\n\t\t\t\tfor (Point p : moves) {\n\t\t\t\t\tSystem.out.println(p);\n\t\t\t\t}\n\t\t\t\tSystem.out.println(\"Nodes opened: \" + nodeCount);\n\t\t\t\tlong endTime = System.currentTimeMillis();\n\t\t\t\tSystem.out.println(\"Elapsed Time: \" + ((endTime - startTime) / 1000) + \" secs.\");\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\t\n\t\t\tPiece currentPiece = pieceListBySize.get(depth);\n\t\t\tint pieceRows = currentPiece.rows;\n\t\t\tint pieceCols = currentPiece.cols;\n\t\t\t\n\t\t\tPriorityQueue<Node<GameBoard>> pQueue = new PriorityQueue<Node<GameBoard>>();\n\t\t\t\n\t\t\t// Place piece in every possible position in the board\n\t\t\tfor (int i = 0; i <= current.rows - pieceRows; i++) {\n\t\t\t\tfor (int j = 0; j <= current.cols - pieceCols; j++) {\n\t\t\t\t\tGameBoard g = current.place(currentPiece, i, j);\n\t\t\t\t\t\n\t\t\t\t\tif (totalResets - g.resets < 0)\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t\n\t\t\t\t\t// Put in the temporary priority queue\n\t\t\t\t\tpQueue.add(new Node<GameBoard>(g, node));\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\t// Remove from priority queue 1 at a time and put into stack.\n\t\t\t// The reason this is done is so that boards with the highest reset\n\t\t\t// count can be chosen over ones with fewer resets.\n\t\t\twhile (!pQueue.isEmpty()) {\n\t\t\t\tNode<GameBoard> n = pQueue.remove();\n\t\t\t\tstack.push(n);\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t}\n\t}", "public static void main(String[] args) {\n\n\t\tScanner sc = new Scanner(System.in);\n\t\tint V = sc.nextInt();\n\t\tint E = sc.nextInt();\n\n\t\tList<Integer>[]adjList = new ArrayList[10010];\n\t\tList<Integer>[]reverseAdjList = new ArrayList[10010];\n\n\t\tList<List<Integer>>scc = new ArrayList<List<Integer>>();\n\t\tint visited[] = new int[10010];\n\n\t\tfor(int i = 1 ; i <= V ; i++){\n\t\t\tadjList[i] = new ArrayList<Integer>();\n\t\t\treverseAdjList[i] = new ArrayList<Integer>();\n\t\t}\n\n\t\tfor(int i = 1 ; i <= E ; i++){\n\n\t\t\tint start = sc.nextInt();\n\t\t\tint end = sc.nextInt();\n\t\t\tadjList[start].add(end);\n\t\t\treverseAdjList[end].add(start);\n\t\t}\n\n\n\t\t//선작업 DFS 스택에 담음.\n\t\tStack <Integer>stack = new Stack<Integer>();\n\t\tfor(int i = 1 ; i <= V ; i++){\n\t\t\tif(visited[i] == 0){\n\t\t\t\tdfs(i,visited,stack,adjList);\n\t\t\t}\n\t\t}\n\n\n\t\t//후작업 역 DFS\n\t\tvisited = new int[10010];\n\n\t\tint r = 0;\n\t\twhile(!stack.isEmpty()){\n\n\t\t\tint here = stack.peek();\n\t\t\tstack.pop();\n\t\t\tif(visited[here] == 1){\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tscc.add(new ArrayList<Integer>());\n\t\t\t++r;\n\t\t\treverseDFS(here, r-1, visited, scc, reverseAdjList);\n\n\t\t}\n\n\t\tSystem.out.println(r);\n\t\tfor(int i = 0 ; i < r ; i++){\n\t\t\tList <Integer>temp = scc.get(i);\n\t\t\tCollections.sort(temp);\n\t\t}\n\n\t\tscc.sort(new Comparator<List<Integer>>() {\n\t\t\t@Override\n\t\t\tpublic int compare(List<Integer> o1, List<Integer> o2) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\tif(o1.get(0)< o2.get(0)){\n\t\t\t\t\treturn -1;\n\t\t\t\t}else if(o1.get(0) > o2.get(0)){\n\t\t\t\t\treturn 1;\n\t\t\t\t}\n\t\t\t\treturn 0;\n\t\t\t}\n\t\t});\n\n\t\t\tfor(List <Integer>list : scc){\n\t\t\t\tfor(int i = 0 ; i < list.size() ; i++){\n\t\t\t\t\tSystem.out.print(list.get(i) + \" \");\n\t\t\t\t}\n\t\t\t\tSystem.out.println(\"-1\");\n\t\t\t}\n\n\t}", "private static int minCoins_bottom_up_dynamic_approach(int[] coins, int amount) {\n if (coins == null || coins.length == 0) return 0;\n if (amount < 0) return 0;\n\n int memo[][] = new int[coins.length + 1][amount + 1];\n\n // populate first row\n for (int col = 0; col <= amount; col++) {\n memo[0][col] = 0;// Important. always initialize 1st row with 1s\n }\n\n // populate first col\n for (int row = 0; row < coins.length; row++) {\n memo[row][0] = 0;// Important. initialize 1st col with 1s or 0s as per your need as explained in method comment\n }\n\n /*\n populate second row\n\n if amount(col) <= coin value, then one coin is required with that value to make that amount\n if amount(col) > coin value, then\n total coins required = amount/coin_value, if remainder=0, otherwise amount/coin_value+1\n */\n for (int col = 1; col <= amount; col++) {\n if (col <= coins[0]) {\n memo[1][col] = 1;\n } else {\n int quotient = col / coins[0];\n\n memo[1][col] = quotient;\n\n int remainder = col % coins[0];\n if (remainder > 0) {\n memo[1][col] += 1;\n }\n }\n }\n\n // start iterating from second row\n for (int row = 2; row < memo.length; row++) {\n // start iterating from second col\n for (int col = 1; col < memo[row].length; col++) {\n\n int coin = coins[row - 1];\n\n // formula to find min required coins for an amount at memo[row][col]\n if (coin > col) { // if coin_value > amount\n memo[row][col] = memo[row - 1][col]; // reserve prev row's value (value determined for prev coins)\n } else {\n memo[row][col] = Math.min(memo[row - 1][col], memo[row][col - coin]) + 1; // min(value determined by prev coins - prev row, value at amount=current_amount-coin_value) + 1\n }\n }\n }\n\n printMemo(coins, memo);\n\n return memo[memo.length - 1][memo[0].length - 1]; // final value is stored in last cell\n }", "private ProblemModel findCheapestNode(){\n\t\tProblemModel ret = unvisitedPM.peek();\n\t\t\n\t\tfor(ProblemModel p : unvisitedPM){ \n\t\t\t//f(s) = depth + cost to make this move\n\t\t\tif(p.getCost() + p.getDepth() <= ret.getCost() + ret.getDepth()) ret = p;\n\t\t}\n\t\tunvisitedPM.remove(ret);\n\t\treturn ret;\n\t}", "private int BFS() {\n adjList.cleanNodeFields();\n\n //Queue for storing current shortest path\n Queue<Node<Integer, Integer>> q = new LinkedList<>();\n\n //Set source node value to 0\n q.add(adjList.getNode(startNode));\n q.peek().key = 0;\n q.peek().d = 0;\n q.peek().visited = true;\n\n //Helper variables\n LinkedList<Pair<Node<Integer, Integer>, Integer>> neighbors;//Array of pairs <neighborKey, edgeWeight>\n Node<Integer, Integer> neighbor, u;\n long speed = (long) (cellSideLength * 1.20);\n\n while (!isCancelled() && q.size() != 0) {\n u = q.poll();\n\n //Marks node as checked\n checkedNodesGC.fillRect((u.value >> 16) * cellSideLength + 0.5f,\n (u.value & 0x0000FFFF) * cellSideLength + 0.5f,\n (int) cellSideLength - 1, (int) cellSideLength - 1);\n\n //endNode found\n if (u.value == endNode) {\n //Draws shortest path\n Node<Integer, Integer> current = u, prev = u;\n\n while ((current = current.prev) != null) {\n shortestPathGC.strokeLine((prev.value >> 16) * cellSideLength + cellSideLength / 2,\n (prev.value & 0x0000FFFF) * cellSideLength + cellSideLength / 2,\n (current.value >> 16) * cellSideLength + cellSideLength / 2,\n (current.value & 0x0000FFFF) * cellSideLength + cellSideLength / 2);\n prev = current;\n }\n return u.d;\n }\n\n //Wait after checking node\n try {\n Thread.sleep(speed);\n } catch (InterruptedException interrupted) {\n if (isCancelled())\n break;\n }\n\n //Checking Neighbors\n neighbors = adjList.getNeighbors(u.value);\n for (Pair<Node<Integer, Integer>, Integer> neighborKeyValuePair : neighbors) {\n neighbor = neighborKeyValuePair.getKey();\n //Relaxation step\n //Checks if neighbor hasn't been checked, if so the assign the shortest path\n if (!neighbor.visited) {\n //Adds checked neighbor to queue\n neighbor.key = u.d + 1;\n neighbor.d = u.d + 1; //Assign shorter path found to neighbor\n neighbor.prev = u;\n neighbor.visited = true;\n q.add(neighbor);\n }\n }\n }\n return Integer.MAX_VALUE;\n }", "@Override\n public Solution solve(ISearchable domain) {\n if(domain==null)\n return null;\n Solution s2=domain.checkIfIsSmall();\n if(s2!=null){\n domain.isClear();\n return s2;\n }\n Solution sol = new Solution();\n temp.add(domain.getStartState());\n numOfNude++;\n domain.isVisit(domain.getStartState());\n ArrayList<AState> neighbors=new ArrayList<AState>();\n while(!temp.isEmpty()){\n AState curr=temp.poll();\n if(domain.isEqual(domain.getGoalState(),curr)){\n numOfNude++;\n sol =solutionPath(curr,sol);\n\n break;\n }\n neighbors=domain.getAllPossibleState(curr);\n for(int i=0;i<neighbors.size();i++){\n if(domain.isEqual(domain.getGoalState(),neighbors.get(i))){\n neighbors.get(i).pervState=curr;\n neighbors.get(i).setPrice(neighbors.get(i).getPrice()+curr.getPrice());\n numOfNude++;\n sol =solutionPath(neighbors.get(i),sol);\n break;\n }\n neighbors.get(i).pervState=curr;\n neighbors.get(i).setPrice(neighbors.get(i).getPrice()+curr.getPrice());\n temp.add(neighbors.get(i));\n numOfNude++;\n }\n }\n\n domain.isClear();\n return sol;\n }", "public List<Graph> search() {\n\n long start = System.currentTimeMillis();\n TetradLogger.getInstance().log(\"info\", \"Starting ION Search.\");\n logGraphs(\"\\nInitial Pags: \", this.input);\n TetradLogger.getInstance().log(\"info\", \"Transfering local information.\");\n long steps = System.currentTimeMillis();\n\n /*\n * Step 1 - Create the empty graph\n */\n List<Node> varNodes = new ArrayList<>();\n for (String varName : variables) {\n varNodes.add(new GraphNode(varName));\n }\n Graph graph = new EdgeListGraph(varNodes);\n\n /*\n * Step 2 - Transfer local information from the PAGs (adjacencies\n * and edge orientations)\n */\n // transfers edges from each graph and finds definite noncolliders\n transferLocal(graph);\n // adds edges for variables never jointly measured\n for (NodePair pair : nonIntersection(graph)) {\n graph.addEdge(new Edge(pair.getFirst(), pair.getSecond(), Endpoint.CIRCLE, Endpoint.CIRCLE));\n }\n TetradLogger.getInstance().log(\"info\", \"Steps 1-2: \" + (System.currentTimeMillis() - steps) / 1000. + \"s\");\n System.out.println(\"step2\");\n System.out.println(graph);\n\n /*\n * Step 3\n *\n * Branch and prune step that blocks problematic undirectedPaths, possibly d-connecting undirectedPaths\n */\n steps = System.currentTimeMillis();\n Queue<Graph> searchPags = new LinkedList<>();\n // place graph constructed in step 2 into the queue\n searchPags.offer(graph);\n // get d-separations and d-connections\n List<Set<IonIndependenceFacts>> sepAndAssoc = findSepAndAssoc(graph);\n this.separations = sepAndAssoc.get(0);\n this.associations = sepAndAssoc.get(1);\n Map<Collection<Node>, List<PossibleDConnectingPath>> paths;\n// Queue<Graph> step3PagsSet = new LinkedList<Graph>();\n HashSet<Graph> step3PagsSet = new HashSet<>();\n Set<Graph> reject = new HashSet<>();\n // if no d-separations, nothing left to search\n if (separations.isEmpty()) {\n // makes orientations preventing definite noncolliders from becoming colliders\n // do final orientations\n// doFinalOrientation(graph);\n step3PagsSet.add(graph);\n }\n // sets length to iterate once if search over path lengths not enabled, otherwise set to 2\n int numNodes = graph.getNumNodes();\n int pl = numNodes - 1;\n if (pathLengthSearch) {\n pl = 2;\n }\n // iterates over path length, then adjacencies\n for (int l = pl; l < numNodes; l++) {\n if (pathLengthSearch) {\n TetradLogger.getInstance().log(\"info\", \"Braching over path lengths: \" + l + \" of \" + (numNodes - 1));\n }\n int seps = separations.size();\n int currentSep = 1;\n int numAdjacencies = separations.size();\n for (IonIndependenceFacts fact : separations) {\n if (adjacencySearch) {\n TetradLogger.getInstance().log(\"info\", \"Braching over path nonadjacencies: \" + currentSep + \" of \" + numAdjacencies);\n }\n seps--;\n // uses two queues to keep up with which PAGs are being iterated and which have been\n // accepted to be iterated over in the next iteration of the above for loop\n searchPags.addAll(step3PagsSet);\n recGraphs.add(searchPags.size());\n step3PagsSet.clear();\n while (!searchPags.isEmpty()) {\n System.out.println(\"ION Step 3 size: \" + searchPags.size());\n double currentUsage = Runtime.getRuntime().totalMemory() - Runtime.getRuntime().freeMemory();\n if (currentUsage > maxMemory) maxMemory = currentUsage;\n // deques first PAG from searchPags\n Graph pag = searchPags.poll();\n // Part 3.a - finds possibly d-connecting undirectedPaths between each pair of nodes\n // known to be d-separated\n List<PossibleDConnectingPath> dConnections = new ArrayList<>();\n // checks to see if looping over adjacencies\n if (adjacencySearch) {\n for (Collection<Node> conditions : fact.getZ()) {\n // checks to see if looping over path lengths\n if (pathLengthSearch) {\n dConnections.addAll(PossibleDConnectingPath.findDConnectingPathsOfLength\n (pag, fact.getX(), fact.getY(), conditions, l));\n } else {\n dConnections.addAll(PossibleDConnectingPath.findDConnectingPaths\n (pag, fact.getX(), fact.getY(), conditions));\n }\n }\n } else {\n for (IonIndependenceFacts allfact : separations) {\n for (Collection<Node> conditions : allfact.getZ()) {\n // checks to see if looping over path lengths\n if (pathLengthSearch) {\n dConnections.addAll(PossibleDConnectingPath.findDConnectingPathsOfLength\n (pag, allfact.getX(), allfact.getY(), conditions, l));\n } else {\n dConnections.addAll(PossibleDConnectingPath.findDConnectingPaths\n (pag, allfact.getX(), allfact.getY(), conditions));\n }\n }\n }\n }\n // accept PAG go to next PAG if no possibly d-connecting undirectedPaths\n if (dConnections.isEmpty()) {\n// doFinalOrientation(pag);\n// Graph p = screenForKnowledge(pag);\n// if (p != null) step3PagsSet.add(p);\n step3PagsSet.add(pag);\n continue;\n }\n // maps conditioning sets to list of possibly d-connecting undirectedPaths\n paths = new HashMap<>();\n for (PossibleDConnectingPath path : dConnections) {\n List<PossibleDConnectingPath> p = paths.get(path.getConditions());\n if (p == null) {\n p = new LinkedList<>();\n }\n p.add(path);\n paths.put(path.getConditions(), p);\n }\n // Part 3.b - finds minimal graphical changes to block possibly d-connecting undirectedPaths\n List<Set<GraphChange>> possibleChanges = new ArrayList<>();\n for (Set<GraphChange> changes : findChanges(paths)) {\n Set<GraphChange> newChanges = new HashSet<>();\n for (GraphChange gc : changes) {\n boolean okay = true;\n for (Triple collider : gc.getColliders()) {\n\n if (pag.isUnderlineTriple(collider.getX(), collider.getY(), collider.getZ())) {\n okay = false;\n break;\n }\n\n }\n if (!okay) {\n continue;\n }\n for (Triple collider : gc.getNoncolliders()) {\n if (pag.isDefCollider(collider.getX(), collider.getY(), collider.getZ())) {\n okay = false;\n break;\n }\n }\n if (okay) {\n newChanges.add(gc);\n }\n }\n if (!newChanges.isEmpty()) {\n possibleChanges.add(newChanges);\n } else {\n possibleChanges.clear();\n break;\n }\n }\n float starthitset = System.currentTimeMillis();\n Collection<GraphChange> hittingSets = IonHittingSet.findHittingSet(possibleChanges);\n recHitTimes.add((System.currentTimeMillis() - starthitset) / 1000.);\n // Part 3.c - checks the newly constructed graphs from 3.b and rejects those that\n // cycles or produce independencies known not to occur from the input PAGs or\n // include undirectedPaths from definite nonancestors\n for (GraphChange gc : hittingSets) {\n boolean badhittingset = false;\n for (Edge edge : gc.getRemoves()) {\n Node node1 = edge.getNode1();\n Node node2 = edge.getNode2();\n Set<Triple> triples = new HashSet<>();\n triples.addAll(gc.getColliders());\n triples.addAll(gc.getNoncolliders());\n if (triples.size() != (gc.getColliders().size() + gc.getNoncolliders().size())) {\n badhittingset = true;\n break;\n }\n for (Triple triple : triples) {\n if (node1.equals(triple.getY())) {\n if (node2.equals(triple.getX()) ||\n node2.equals(triple.getZ())) {\n badhittingset = true;\n break;\n }\n }\n if (node2.equals(triple.getY())) {\n if (node1.equals(triple.getX()) ||\n node1.equals(triple.getZ())) {\n badhittingset = true;\n break;\n }\n }\n }\n if (badhittingset) {\n break;\n }\n for (NodePair pair : gc.getOrients()) {\n if ((node1.equals(pair.getFirst()) && node2.equals(pair.getSecond())) ||\n (node2.equals(pair.getFirst()) && node1.equals(pair.getSecond()))) {\n badhittingset = true;\n break;\n }\n }\n if (badhittingset) {\n break;\n }\n }\n if (!badhittingset) {\n for (NodePair pair : gc.getOrients()) {\n for (Triple triple : gc.getNoncolliders()) {\n if (pair.getSecond().equals(triple.getY())) {\n if (pair.getFirst().equals(triple.getX()) &&\n pag.getEndpoint(triple.getZ(), triple.getY()).equals(Endpoint.ARROW)) {\n badhittingset = true;\n break;\n\n }\n if (pair.getFirst().equals(triple.getZ()) &&\n pag.getEndpoint(triple.getX(), triple.getY()).equals(Endpoint.ARROW)) {\n badhittingset = true;\n break;\n }\n }\n if (badhittingset) {\n break;\n }\n }\n if (badhittingset) {\n break;\n }\n }\n }\n if (badhittingset) {\n continue;\n }\n Graph changed = gc.applyTo(pag);\n // if graph change has already been rejected move on to next graph\n if (reject.contains(changed)) {\n continue;\n }\n // if graph change has already been accepted move on to next graph\n if (step3PagsSet.contains(changed)) {\n continue;\n }\n // reject if null, predicts false independencies or has cycle\n if (predictsFalseIndependence(associations, changed)\n || changed.existsDirectedCycle()) {\n reject.add(changed);\n }\n // makes orientations preventing definite noncolliders from becoming colliders\n // do final orientations\n// doFinalOrientation(changed);\n // now add graph to queue\n\n// Graph p = screenForKnowledge(changed);\n// if (p != null) step3PagsSet.add(p);\n step3PagsSet.add(changed);\n }\n }\n // exits loop if not looping over adjacencies\n if (!adjacencySearch) {\n break;\n }\n }\n }\n TetradLogger.getInstance().log(\"info\", \"Step 3: \" + (System.currentTimeMillis() - steps) / 1000. + \"s\");\n Queue<Graph> step3Pags = new LinkedList<>(step3PagsSet);\n\n /*\n * Step 4\n *\n * Finds redundant undirectedPaths and uses this information to expand the list\n * of possible graphs\n */\n steps = System.currentTimeMillis();\n Map<Edge, Boolean> necEdges;\n Set<Graph> outputPags = new HashSet<>();\n\n while (!step3Pags.isEmpty()) {\n Graph pag = step3Pags.poll();\n necEdges = new HashMap<>();\n // Step 4.a - if x and y are known to be unconditionally associated and there is\n // exactly one trek between them, mark each edge on that trek as necessary and\n // make the tiples on the trek definite noncolliders\n // initially mark each edge as not necessary\n for (Edge edge : pag.getEdges()) {\n necEdges.put(edge, false);\n }\n // look for unconditional associations\n for (IonIndependenceFacts fact : associations) {\n for (List<Node> nodes : fact.getZ()) {\n if (nodes.isEmpty()) {\n List<List<Node>> treks = treks(pag, fact.x, fact.y);\n if (treks.size() == 1) {\n List<Node> trek = treks.get(0);\n List<Triple> triples = new ArrayList<>();\n for (int i = 1; i < trek.size(); i++) {\n // marks each edge in trek as necessary\n necEdges.put(pag.getEdge(trek.get(i - 1), trek.get(i)), true);\n if (i == 1) {\n continue;\n }\n // makes each triple a noncollider\n pag.addUnderlineTriple(trek.get(i - 2), trek.get(i - 1), trek.get(i));\n }\n }\n // stop looping once the empty set is found\n break;\n }\n }\n }\n // Part 4.b - branches by generating graphs for every combination of removing\n // redundant undirectedPaths\n boolean elimTreks;\n // checks to see if removing redundant undirectedPaths eliminates every trek between\n // two variables known to be nconditionally assoicated\n List<Graph> possRemovePags = possRemove(pag, necEdges);\n double currentUsage = Runtime.getRuntime().totalMemory() - Runtime.getRuntime().freeMemory();\n if (currentUsage > maxMemory) maxMemory = currentUsage;\n for (Graph newPag : possRemovePags) {\n elimTreks = false;\n // looks for unconditional associations\n for (IonIndependenceFacts fact : associations) {\n for (List<Node> nodes : fact.getZ()) {\n if (nodes.isEmpty()) {\n if (treks(newPag, fact.x, fact.y).isEmpty()) {\n elimTreks = true;\n }\n // stop looping once the empty set is found\n break;\n }\n }\n }\n // add new PAG to output unless a necessary trek has been eliminated\n if (!elimTreks) {\n outputPags.add(newPag);\n }\n }\n }\n outputPags = removeMoreSpecific(outputPags);\n// outputPags = applyKnowledge(outputPags);\n\n TetradLogger.getInstance().log(\"info\", \"Step 4: \" + (System.currentTimeMillis() - steps) / 1000. + \"s\");\n\n /*\n * Step 5\n *\n * Generate the Markov equivalence classes for graphs and accept only\n * those that do not predict false d-separations\n */\n steps = System.currentTimeMillis();\n Set<Graph> outputSet = new HashSet<>();\n for (Graph pag : outputPags) {\n Set<Triple> unshieldedPossibleColliders = new HashSet<>();\n for (Triple triple : getPossibleTriples(pag)) {\n if (!pag.isAdjacentTo(triple.getX(), triple.getZ())) {\n unshieldedPossibleColliders.add(triple);\n }\n }\n\n PowerSet<Triple> pset = new PowerSet<>(unshieldedPossibleColliders);\n for (Set<Triple> set : pset) {\n Graph newGraph = new EdgeListGraph(pag);\n for (Triple triple : set) {\n newGraph.setEndpoint(triple.getX(), triple.getY(), Endpoint.ARROW);\n newGraph.setEndpoint(triple.getZ(), triple.getY(), Endpoint.ARROW);\n }\n doFinalOrientation(newGraph);\n }\n for (Graph outputPag : finalResult) {\n if (!predictsFalseIndependence(associations, outputPag)) {\n Set<Triple> underlineTriples = new HashSet<>(outputPag.getUnderLines());\n for (Triple triple : underlineTriples) {\n outputPag.removeUnderlineTriple(triple.getX(), triple.getY(), triple.getZ());\n }\n outputSet.add(outputPag);\n }\n }\n }\n\n// outputSet = applyKnowledge(outputSet);\n outputSet = checkPaths(outputSet);\n\n output.addAll(outputSet);\n TetradLogger.getInstance().log(\"info\", \"Step 5: \" + (System.currentTimeMillis() - steps) / 1000. + \"s\");\n runtime = ((System.currentTimeMillis() - start) / 1000.);\n logGraphs(\"\\nReturning output (\" + output.size() + \" Graphs):\", output);\n double currentUsage = Runtime.getRuntime().totalMemory() - Runtime.getRuntime().freeMemory();\n if (currentUsage > maxMemory) maxMemory = currentUsage;\n return output;\n }", "private static void dfs(int idx, boolean[] visited, boolean[] isbreak) {\n\t\tif(idx==N) {\n\t\t\t//System.out.println(\"����������\");\n\t\t\tint cnt=0;\n\t\t\tfor(int i=0; i<N; i++) {\n\t\t\t\tif(isbreak[i]) cnt++; \n\t\t\t}\n\t\t\tans=Math.max(ans, cnt);\n\t\t\treturn;\n\t\t}\n\t\t\n\t\tif(isbreak[idx]) {\n\t\t\tdfs(idx+1, visited, isbreak); return;\n\t\t}\n\t\t\n\t\tboolean flag = false;\n\t\tfor(int i=0; i<N; i++) {\n\t\t\t//System.out.println(\"i:\"+i);\n\t\t\tif(i==idx) continue;\n\t\t\t\n\t\t\tif(!isbreak[i]) {\n\t\t\t\tflag=true;\n\t\t\t\t/*System.out.println(i+\"�� ģ��\");\n\t\t\t\tSystem.out.println(\"ġ����\");\n\t\t\t\tSystem.out.println(list.get(idx).inner+\" \"+list.get(idx).weight);\n\t\t\t\tSystem.out.println(list.get(i).inner+\" \"+list.get(i).weight);*/\n\t\t\t\tlist.get(idx).inner-=list.get(i).weight;\n\t\t\t\tlist.get(i).inner-=list.get(idx).weight;\n\t\t\t\t/*System.out.println(\"ġ����\");\n\t\t\t\tSystem.out.println(list.get(idx).inner+\" \"+list.get(idx).weight);\n\t\t\t\tSystem.out.println(list.get(i).inner+\" \"+list.get(i).weight);*/\n\t\t\t\tif(list.get(i).inner <= 0) isbreak[i]=true;\n\t\t\t\tif(list.get(idx).inner <= 0) isbreak[idx]=true;\n\t\t\t\t\n\n\t\t\t\tdfs(idx+1,visited,isbreak);\n\t\t\t\t\n\t\t\t\tlist.get(idx).inner+=list.get(i).weight;\n\t\t\t\tlist.get(i).inner+=list.get(idx).weight;\n\t\t\t\tif(list.get(i).inner > 0) isbreak[i]=false;\n\t\t\t\tif(list.get(idx).inner > 0) isbreak[idx]=false;\n\t\t\t}\n\t\t}\n\t\tif(!flag) {\n\t\t\tint cnt=0;\n\t\t\tfor(int i=0; i<N; i++) {\n\t\t\t\tif(isbreak[i]) cnt++; \n\t\t\t}\n\t\t\tans=Math.max(ans, cnt);\n\t\t\treturn;\n\t\t}\n\t\t\n\t}", "@Override\n public A makeDecision(S state) {\n metrics = new Metrics();\n StringBuffer logText = null;\n P player = game.getPlayer(state);\n List<A> results = orderActions(state, game.getActions(state), player, 0);\n timer.start();\n currDepthLimit = 0;\n do {\n incrementDepthLimit();\n if (logEnabled)\n logText = new StringBuffer(\"depth \" + currDepthLimit + \": \");\n heuristicEvaluationUsed = false;\n ActionStore<A> newResults = new ActionStore<>();\n for (A action : results) {\n double value = minValue(game.getResult(state, action), player, Double.NEGATIVE_INFINITY,\n Double.POSITIVE_INFINITY, 1);\n if (timer.timeOutOccurred())\n break; // exit from action loop\n newResults.add(action, value);\n if (logEnabled)\n logText.append(action).append(\"->\").append(value).append(\" \");\n }\n if (logEnabled)\n System.out.println(logText);\n if (newResults.size() > 0) {\n results = newResults.actions;\n if (!timer.timeOutOccurred()) {\n if (hasSafeWinner(newResults.utilValues.get(0)))\n break; // exit from iterative deepening loop\n else if (newResults.size() > 1\n && isSignificantlyBetter(newResults.utilValues.get(0), newResults.utilValues.get(1)))\n break; // exit from iterative deepening loop\n }\n }\n } while (!timer.timeOutOccurred() && heuristicEvaluationUsed);\n return results.get(0);\n }", "public int coinChange(int[] coins, int amount) {\n if (coins == null || coins.length == 0) return 0;\n \n Arrays.sort(coins);\n\n memo = new int[amount + 1][coins.length];\n \n ans = dfs(coins, amount, coins.length - 1);\n\n return ans == Integer.MAX_VALUE ? -1 : ans;\n }", "private int optimize() {\n\t\t// items: Items sorted by value-to-weight ratio for linear relaxation\n\t\t// t: the decision vector being tested at each node\n\t\t// ws, vs, is, bs: stacks of weight, value, item id, whether bring item\n\t\t// p: stack pointer; i, b, weight, value: loop caches; best: max search\n\t\t// ss: stack size: Always <=2 children on stack for <=n-1 parents\n\t\tItem[] items = new Item[n];\n\t\tint ss = 2 * n;\n\t\tint[] itemsSorted = new int[n], t = new int[n], ws = new int[ss],\n\t\t\tvs = new int[ss], is = new int[ss], bs = new int[ss];\n\t\tint i, b, weight, value, best = 0, p = 0;\n\n\t\tfor (int j = 0; j < n; j++)\n\t\t\titems[j] = new Item(j);\n\t\tArrays.sort(items);\n\t\tfor (int j = 0; j < n; j++)\n\t\t\titemsSorted[j] = items[j].i();\n\t\titems = null; // For garbage collection.\n\n\t\t// Push item 0 onto the stack with and without bringing it.\n\t\tws[p] = 0; vs[p] = 0; is[p] = 0; bs[p] = 1; p++;\n\t\tws[p] = 0; vs[p] = 0; is[p] = 0; bs[p] = 0; p++;\n\n\t\twhile (p > 0) {\n\t\t\tp--; // Pop the latest item off the stack\n\t\t\ti = is[p]; b = bs[p];\n\t\t\tweight = ws[p] + w[i] * b;\n\t\t\tif (weight > k)\n\t\t\t\tcontinue;\n\t\t\tvalue = vs[p] + v[i] * b;\n\t\t\tif (bound(i, weight, value, itemsSorted) < best)\n\t\t\t\tcontinue;\n\t\t\tbest = Math.max(value, best);\n\t\t\tt[i] = b;\n\t\t\tif (i < n - 1) { // Push children onto stack w/ & w/o bringing item\n\t\t\t\tws[p] = weight; vs[p] = value; is[p] = i + 1; bs[p] = 1; p++;\n\t\t\t\tws[p] = weight; vs[p] = value; is[p] = i + 1; bs[p] = 0; p++;\n\t\t\t}\n\t\t\telse if (value >= best)\n\t\t\t\tSystem.arraycopy(t, 0, x, 0, n);\n\t\t}\n\t\treturn best;\n\t}", "private int getBestMove(int[] board, int depth, boolean turn) {\n int boardCopy[];\n if (depth <= 0) {\n return 0;\n }\n if (depth > STEP_BACK_DEPTH) {\n try {\n Thread.sleep(3);\n } catch (InterruptedException e) {\n e.printStackTrace();\n if (shouldStop()) {\n Log.d(Constants.MY_TAG,\"out CalculatingBot\");\n unlock();\n return 0;\n }\n }\n }\n if (turn) {\n int minimum = MAXIMUM_POSSIPLE_SCORE_DIFFERENCE;\n for (int i = 0; i < 5; i++) {\n if (board[i] < 2) {\n continue;\n }\n boardCopy = board.clone();\n int x = playMove(boardCopy, i);\n int y = 0;\n if (!hasPlayer2Move(boardCopy)) {\n if (hasPlayer1Move(boardCopy)) {\n y = getBestMove(boardCopy, depth - 1, turn);\n } else {\n for (int j = 0; j < 5; j++) {\n y = y - boardCopy[j];\n }\n for (int j = 5; j < 10; j++) {\n y = y + boardCopy[j];\n }\n }\n } else {\n y = getBestMove(boardCopy, depth - 1, ! turn);\n }\n int z = y - x;\n if (z < minimum) {\n minimum = z;\n }\n }\n int i = 10;\n if (board[2] < 2) {\n return minimum;\n }\n boardCopy = board.clone();\n int x = playMove(boardCopy, i);\n int y = 0;\n if (!hasPlayer2Move(boardCopy)) {\n if (hasPlayer1Move(boardCopy)) {\n y = getBestMove(boardCopy, depth - 1, turn);\n } else {\n for (int j = 0; j < 5; j++) {\n y = y - boardCopy[j];\n }\n for (int j = 5; j < 10; j++) {\n y = y + boardCopy[j];\n }\n }\n } else {\n y = getBestMove(boardCopy, depth - 1, !turn);\n }\n int z = y - x;\n if (z < minimum) {\n minimum = z;\n }\n return minimum;\n } else {\n int maximum = MINIMUM_POSSIPLE_SCORE_DIFFERENCE;\n for (int i = 5; i < 10; i++) {\n if (board[i] < 2) {\n continue;\n }\n boardCopy = board.clone();\n int x = playMove(boardCopy, i);\n int y = 0;\n if (!hasPlayer1Move(boardCopy)) {\n if (hasPlayer2Move(boardCopy)) {\n y = getBestMove(boardCopy, depth - 1, turn);\n } else {\n for (int j = 0; j < 5; j++) {\n y = y - boardCopy[j];\n }\n for (int j = 5; j < 10; j++) {\n y = y + boardCopy[j];\n }\n }\n } else {\n y = getBestMove(boardCopy, depth - 1, !turn);\n }\n int z = y + x;\n if (z > maximum) {\n maximum = z;\n }\n }\n int i = 11;\n if (board[7] < 2) {\n return maximum;\n }\n boardCopy = board.clone();\n int x = playMove(boardCopy, i);\n int y = 0;\n if (!hasPlayer1Move(boardCopy)) {\n if (hasPlayer2Move(boardCopy)) {\n y = getBestMove(boardCopy, depth - 1, turn);\n } else {\n for (int j = 0; j < 5; j++) {\n y = y - boardCopy[j];\n }\n for (int j = 5; j < 10; j++) {\n y = y + boardCopy[j];\n }\n }\n } else {\n y = getBestMove(boardCopy, depth - 1, !turn);\n }\n int z = y + x;\n if (z > maximum) {\n maximum = z;\n }\n return maximum;\n }\n }", "Long[] searchSolution(int timeLimit, Graph g);", "@SuppressWarnings(\"Main Logic\")\n void solve() {\n n = ii();\n m = ii();\n a = iia(n);\n int from[] = new int[n - 1];\n int to[] = new int[n - 1];\n for (int i = 0; i < n - 1; i++) {\n from[i] = ii() - 1;\n to[i] = ii() - 1;\n }\n g = packU(n, from, to, n - 1);\n int[][] pars = parents3(g, 0);\n par = pars[0];\n int[] ord = pars[1];\n dep = pars[2];\n spar = logstepParents(par);\n subTree = new int[n];\n dfs(0, -1);\n pointer = 1;\n baseArray = new int[n + 1];\n chainNo = 0;\n chainInHead = new int[n];\n Arrays.fill(chainInHead, -1);\n posInBase = new int[n];\n chainInInd = new int[n];\n HLD(0, -1);\n makeTree();\n out.println(Arrays.toString(baseArray));\n out.println(Arrays.toString(a));\n for (int q = 0; q < m; q++) {\n int type = ii();\n if (type == 1) {\n int u = ii() - 1, v = ii() - 1;\n query(u, v);\n out.println(\"DONE\");\n } else {\n int u = ii(), v = ii();\n // update\n }\n }\n }", "static void dfs(int x, int p, int f, int s, int v, int c) {\n\t\t\n\t\tif (p >= mins[0] && f >= mins[1] && s >= mins[2] && v >= mins[3]) {\n\t\t\tif (c<min) {\n\t\t\t\tres = new int[list.size()];\n\t\t\t\tfor (int i=0;i<list.size();i++) {\n\t\t\t\t\tres[i] = list.get(i);\n\t\t\t\t}\n\t\t\t\tmin = c;\n\t\t\t}\n\t\t\treturn;\n\t\t}\n\n\t\tSystem.out.println(list);\n\t\tfor (int i = x; i < N; i++) {\n\t\t\tif (!visited[i]) {\n\t\t\t\tlist.add(i);\n\t\t\t\tvisited[i] = true;\n\t\t\t\tdfs(i + 1, p + info[i][0], f + info[i][1], s + info[i][2], v + info[i][3], c + info[i][4]);\n\t\t\t\tlist.remove(list.size() - 1);\n\t\t\t\tvisited[i] = false;\n\t\t\t}\n\t\t}\n\t}", "public void ids (String input, int limit)\r\n\t\t{\r\n\t\t\tNode root_ids= new Node (input);\r\n\t\t\tNode current = new Node(root_ids.getState());\r\n\t\t\t\r\n\t\t\tArrayList<String> visited = new ArrayList<String>();\r\n\t\t\tArrayList<String> children = new ArrayList<String>();\r\n\t\t\tStack<Node> stack_dfs = new Stack<Node>();\r\n\t\t\t\r\n\t\t\tint nodes_popped = 0;\r\n\t\t\tint stack_max_size = 0;\r\n\t\t\tint stack_max_total = 0;\r\n\t\t\tint depth = 0;\r\n\t\t\t\r\n\t\t\tcurrent.cost = 0;\r\n\t\t\tcurrent.depth = 0;\r\n\t\t\t\r\n\t\t\tgoal_ids = isGoal(current.getState());\r\n\t\t\t\r\n\t\t\twhile(depth <= limit)\r\n\t\t\t{\r\n\t\t\t\tif (goal_ids == true)\r\n\t\t\t\t{\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\t// Clear the visited array for backtracking purposes\r\n\t\t\t\tvisited.clear();\r\n\t\t\t\t\r\n\t\t\t\twhile(!goal_ids)\r\n\t\t\t\t{\r\n\t\t\t\t\tvisited.add(current.getState());\r\n\t\t\t\t\tchildren = Successor.findChildren(current.getState());\r\n\t\t\t\t\r\n\t\t\t\t\t// Depth limit check. This loop never runs if the node depth is greater then the limit\r\n\t\t\t\t\tif (current.getDepth() < limit)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tfor (String a : children)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tif (visited.contains(a))\r\n\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\tcontinue;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\tNode nino = new Node(a);\r\n\t\t\t\t\t\t\tcurrent.children_nodes.add(nino);\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\tint cost = isCost(current.getState(), nino.getState());\r\n\t\t\t\t\t\t\tnino.cost = cost;\r\n\t\t\t\t\t\t\tnino.parent = current;\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t// Repeated state check\r\n\t\t\t\t\t\t\tif (!stack_dfs.contains(nino))\r\n\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\tstack_dfs.add(nino);\r\n\t\t\t\t\t\t\t\tstack_max_size++;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\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\tif (current.getDepth() >= limit - 1)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tint copy = stack_max_size;\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\tif (copy > stack_max_total)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tstack_max_total = copy;\r\n\t\t\t\t\t\t}\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\tdepth++;\r\n\t\t\t\t\t\r\n\t\t\t\t\t// If there is no solution found at the depth limit, return no solution\r\n\t\t\t\t\tif (stack_dfs.empty() == true)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSolution.noSolution(limit);\t\r\n\t\t\t\t\t\t\treturn;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\t\tcurrent = stack_dfs.pop();\r\n\t\t\t\t\t\r\n\t\t\t\t\t// Set depth of node so it can be checked in next iteration\r\n\t\t\t\t\tcurrent.setDepth(current.parent.getDepth() + 1);\r\n\t\t\t\t\tnodes_popped++;\r\n\t\t\t\t\tstack_max_size--;\r\n\t\t\t\t\tgoal_ids = isGoal(current.getState());\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\tgoal_ids = false;\r\n\t\t\tSystem.out.println(\"IDS Solved!!\");\r\n\t\t\t\r\n\t\t\tif (stack_max_total > stack_max_size)\r\n\t\t\t{\r\n\t\t\t\tstack_max_size = stack_max_total;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tSolution.performSolution(current, root_ids, nodes_popped, stack_max_size);\r\n\t\t}", "public static boolean solve(Problem inputProblem, int popLimit, double mutChance, int iterLimit) {\n\n // Check All the Input Parameter\n // popLimit: Make as Even\n int evenBase = 2;\n if (popLimit % evenBase != 0){\n popLimit = popLimit + 1;\n }\n // mutChance: in the Range of 0% and 100%\n if (mutChance < 0 || mutChance > 1){\n System.out.println(\"Invalid Mutation Chance: \" + mutChance);\n return false;\n }\n\n // Initialization\n Solution[] currentPop = initPopulation(inputProblem, popLimit);\n Solution[] generatedPop, nextPop;\n\n System.out.println(0 + \"\\t\" +0+ \"\\t\" +currentPop[0].distance);\n long time = System.nanoTime();\n\n // Loop For Counting Iteration\n for (int turn = 0; turn < iterLimit; turn++) {\n //System.out.println(currentPop[0].distance);\n // Initialization Next Generation\n generatedPop = new Solution[popLimit];\n\n // Loop for Generating Next Population\n Solution[] parent, offspring;\n for (int leftChild = popLimit; leftChild > 0; leftChild = leftChild - 2) {\n // Selection\n parent = rankSelection(currentPop);\n // CrossOver\n offspring = CrossOver_mapping(currentProblem, parent[0], parent[1]);\n // Prevent Duplicated Offspring\n if (haveDuplicated(generatedPop, offspring[0]) || haveDuplicated(generatedPop, offspring[1])) {\n leftChild = leftChild + 2;\n continue;\n }\n // Add Child into generatedPop\n generatedPop[leftChild - 1] = offspring[0];\n generatedPop[leftChild - 2] = offspring[1];\n }\n\n // Mutation For Each Solution\n Solution newElement;\n for (int index = 0; index < popLimit; index++){\n if(Math.random() < mutChance){\n // Use Local Search to Finish Mutation\n newElement = HillClimbing.solve_invoke(inputProblem, generatedPop[index]);\n // Prevent Duplicated Offspring\n if (!haveDuplicated(generatedPop, newElement)) {\n generatedPop[index] = newElement;\n }\n }\n }\n\n // Sort the Generated Array\n Arrays.sort(generatedPop);\n // Produce Next Generation\n nextPop = getTopSolutions(currentPop, generatedPop, popLimit);\n\n // Switch nextPop to currentPop\n currentPop = nextPop;\n System.out.println((System.nanoTime() - time) + \"\\t\" + (turn+1) + \"\\t\" + currentPop[0].distance);\n }\n // Store into the Static Variable\n optimalSolution = currentPop[0];\n return true;\n }", "public static int QTDelHeuristic1 (Graph<Integer,String> h) {\n\t\tint count = 0;\r\n\t\tboolean isQT = false;\r\n\t\t//h = Copy(g);\r\n\t\t//boolean moreToDo = true;\r\n\t\t\r\n\t\tIterator<Integer> a;\r\n\t\tIterator<Integer> b;\r\n\t\tIterator<Integer> c;\r\n\t\tIterator<Integer> d;\r\n\r\n\t\twhile (isQT == false) {\r\n\t\t\tisQT = true;\r\n\t\t\ta= h.getVertices().iterator();\r\n\t\t\twhile(a.hasNext()){\r\n\t\t\t\tInteger A = a.next();\r\n\t\t\t\t//System.out.print(\"\"+A+\" \");\r\n\t\t\t\tb = h.getNeighbors(A).iterator();\r\n\t\t\t\twhile(b.hasNext()){\r\n\t\t\t\t\tInteger B = b.next();\r\n\t\t\t\t\tc = h.getNeighbors(B).iterator();\r\n\t\t\t\t\twhile (c.hasNext()){\r\n\t\t\t\t\t\tInteger C = c.next();\r\n\t\t\t\t\t\tif (h.isNeighbor(C, A) || C==A) continue;\r\n\t\t\t\t\t\td = h.getNeighbors(C).iterator();\r\n\t\t\t\t\t\twhile (d.hasNext()){\r\n\t\t\t\t\t\t\tInteger D = d.next();\r\n\t\t\t\t\t\t\tif (D==B) continue; \r\n\t\t\t\t\t\t\tif (h.isNeighbor(D,B)) continue;\r\n\t\t\t\t\t\t\t//otherwise, we have a P4 or a C4\r\n\r\n\t\t\t\t\t\t\tisQT = false;\r\n\t\t\t\t\t\t\t//System.out.print(\"Found P4: \"+A+\"-\"+B+\"-\"+C+\"-\"+D+\"... not a cograph\\n\");\r\n\r\n\t\t\t\t\t\t\tif (h.isNeighbor(D,A)) {\r\n\t\t\t\t\t\t\t\t// we have a C4 = a-b-c-d-a\r\n\t\t\t\t\t\t\t\t// requires 2 deletions\r\n\t\t\t\t\t\t\t\tcount += 2;\r\n\t\t\t\t\t\t\t\th.removeVertex(A);\r\n\t\t\t\t\t\t\t\th.removeVertex(B);\r\n\t\t\t\t\t\t\t\th.removeVertex(C);\r\n\t\t\t\t\t\t\t\th.removeVertex(D);\r\n\t\t\t\t\t\t\t\treturn 2 + QTDelHeuristic1(h);\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t\telse {\r\n\t\t\t\t\t\t\t\t// this case says:\r\n\t\t\t\t\t\t\t\t// else D is NOT adjacent to A. Then we have P4=abcd\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\tcount += 1;\r\n\t\t\t\t\t\t\t\th.removeVertex(A);\r\n\t\t\t\t\t\t\t\th.removeVertex(B);\r\n\t\t\t\t\t\t\t\th.removeVertex(C);\r\n\t\t\t\t\t\t\t\th.removeVertex(D);\r\n\t\t\t\t\t\t\t\treturn 1 + QTDelHeuristic1(h);\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t} // end d.hasNext()\r\n\t\t\t\t} // end c.hasNext()\r\n\t\t\t} // end b.hasNext() \r\n\t\t} // end a.hasNext()\r\n\t\t\r\n\t\treturn count;\t\t\r\n\t}", "private static int dialGreedy(ArrayList<Pair<Pair <Integer, Integer>,Integer>> wts, int money){\n int prevEdgeIndex = -1;\n int noDials = 10;\n int [][] dialArr = new int[money+1][noDials];\n BooleanHolder flip = new BooleanHolder(false);\n return greedyDialMax(wts, money,prevEdgeIndex,dialArr, flip);\n }", "@SuppressWarnings({\"rawtypes\", \"unchecked\", \"SuspiciousMethodCalls\"})\n private List getDepthFirstTraversal_iterative_usingStack_BigO_VPlusE() throws Exception {\n Map<Object, Boolean> visited = new LinkedHashMap<>();\n Stack watchStack = new Stack();\n\n V root = data.keySet().stream().findFirst().orElseThrow(() -> new Exception(\"Graph is Empty\"));\n watchStack.push(root);\n visited.put(root, true);\n\n while(!watchStack.isEmpty()) {\n Object currentVertex = watchStack.top();\n\n BinarySearchTree<E> edgeTree = data.getOrDefault(currentVertex, new BinarySearchTree<>());\n List<E> edges = edgeTree.getTreeByInOrder_depthFirst();\n\n //Remove an item from the stack when there are no edges or all the edges are visited for that vertex\n if(edgeTree.isEmpty() || visited.keySet().containsAll(edges)) {\n watchStack.pop();\n } else {\n for(E edge : edges) {\n if(!visited.containsKey(edge)) {\n watchStack.push(edge);\n visited.put(edge, true);\n break;\n }\n }\n }\n }\n return new ArrayList<>(visited.keySet());\n }", "@Override\r\n\tpublic void DFS(E src) {\r\n\t\tif(containsVertex(src)) {\r\n\t\t\tvertices.forEach((E e, Vertex<E> u) -> {\r\n\t\t\t\tu.setDiscovered(0);\r\n\t\t\t\tu.setFinished(0);\r\n\t\t\t\tu.setColor(Color.WHITE);\r\n\t\t\t\tu.setPredecessor(null);\r\n\t\t\t});\r\n\t\t\tDFStime = 1;\r\n\t\t\tVertex<E> s = vertices.get(src);\r\n\t\t\ts.setColor(Color.GRAY);\r\n\t\t\ts.setDiscovered(DFStime);\r\n\t\t\t//s.predecessor is already null so skip that step\r\n\t\t\tStack<Vertex<E>> stack = new Stack<>();\r\n\t\t\tstack.push(s);\r\n\t\t\twhile(!stack.isEmpty()) {\r\n\t\t\t\tVertex<E> u = stack.pop();\r\n\t\t\t\tArrayList<Edge<E>> adj = adjacencyLists.get(u.getElement());\r\n\t\t\t\tfor(Edge<E> ale: adj) {\r\n\t\t\t\t\tVertex<E> v = vertices.get(ale.getDst());\r\n\t\t\t\t\tif(v.getColor() == Color.WHITE) {\r\n\t\t\t\t\t\tDFStime++;\r\n\t\t\t\t\t\tv.setColor(Color.GRAY);\r\n\t\t\t\t\t\tv.setDiscovered(DFStime);\r\n\t\t\t\t\t\tv.setPredecessor(u);\r\n\t\t\t\t\t\tstack.push(v);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\tu.setColor(Color.BLACK);\r\n\t\t\t\tDFStime++;\r\n\t\t\t\tu.setFinished(DFStime);\r\n\t\t\t}\r\n\t\t}\r\n\t}", "private static LinkedList<Integer> localSearch2Opt(File fileNameWithPath, int kNeighborHood ) throws Exception{\n\t\t\n\t\tString traceString = \"\";\n\t\tdouble bestCost = Double.POSITIVE_INFINITY;\n\t\tLinkedList<Integer> bestTspList = null;\n\t\tdouble bestCycleTime = Double.POSITIVE_INFINITY;\n\n\t\tif (Project.runId == -1 )\n\t\t\tProject.runId = 1;\n\n\t\t/* \n\t\t * read the file and build the cost table\n\t\t */\n parseEdges(fileNameWithPath);\n\n /*\n\t\t * time starts once you read the data\n */\n\t\tdouble baseTime = System.nanoTime();\n\n\t\t/*\n\t\t * invoking furthest insertion algorithm to get the tsp\n\t\t */\n\t\tlong startNodeSeed = (long)(1000.0*generator.nextDouble());\n\t\tLinkedList<Integer> currentTspList = FurthestInsertion.generateTSP(Project.sourceGTree,startNodeSeed);\n\t\t\n\t\tdouble currentTspCost = tspCost(currentTspList);\n\n\t\tbestTspList = currentTspList;\n\t\tbestCost = currentTspCost;\n\t\tbestCycleTime = System.nanoTime() - baseTime;\n\n\t\t/* print the trace file */\n\t\ttraceString = String.format(\"%.2f, %d\",Math.round(((System.nanoTime()-baseTime)/nanosecs)*100.0)/100.0,Math.round(bestCost));\n\t\tprintTrace(runId,traceString);\n\n\t\t/*\n\t\t * remove the last node as it matches the first\n\t\t */\n\t\tcurrentTspList.removeLast();\n\n\t\twhile ( true )\n\t\t{\n\t\t\t/*\n\t\t\t * reached cutoff time\n\t\t\t */\n\t\t\tif ( System.nanoTime()-baseTime >= Project.cutoffTimeSeconds*nanosecs ) {\n\t\t\t\ttimedOut=true;\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\tdouble cycleStartTime = System.nanoTime();\n\n\t\t\tLinkedList<Integer> newTspList = currentTspList;\n\n\t\t\t/* do a 2 opt search in current k=5 neighborhood to get a newtsp */\n\t\t\t/* 1. Pick the first random element in the current tsp */\n\t\t\tint element2 = (int)((double)(newTspList.size()-1) * generator.nextDouble());\n\t\t\tint element1 = element2 - 1;\n\t\t\tif ( element1 == -1 ){\n\t\t\t\telement1 = newTspList.size()-1;\n\t\t\t}\n\t\t\t\n int delta;\n\n\t\t\t/*\n\t\t\t * search in the neighborhood specified\n * if not specified search all\n\t\t\t */\n if ( kNeighborHood != -1 ) {\n\t\t\t /* We want to search in the specified k=n neighborhoods of element1 */\n\t\t\t delta= (int)(2*kNeighborHood*generator.nextDouble()) - kNeighborHood;\n } else {\n\t\t\t delta= (int)((newTspList.size()-1)*generator.nextDouble()) - (int)(newTspList.size()/2);\n\t\t\t}\n\n\t\t\tif ( delta == 0 ) {\n\t\t\t\tdelta = 2;\n\t\t\t} else if ( delta == 1 ) {\n\t\t\t\tdelta = 2;\n\t\t\t} else if ( delta == -1) {\n\t\t\t\tdelta = -2; }\n\n\t\t\tint element4 = element2 + delta;\n\n\t\t\tif ( element4 < 0 ) {\n\t\t\t\telement4 = newTspList.size()+element4;\n\t\t\t}else if ( element4 >= newTspList.size() ) {\n\t\t\t\telement4 = element4-(newTspList.size()-1);\n\t\t\t}\n\n\t\t\tint element3 = element4 -1;\n\t\t\tif ( element3 == -1 ){\n\t\t\t\telement3 = newTspList.size()-1;\n\t\t\t}\n\n\n\t\t\t/* \n\t\t\t * the new tsp will have element2->element4.......element1->element3....\n\t\t\t */\n\t\t\tInteger vertex_3 = newTspList.get(element3);\n\t\t\tnewTspList.set(element3,newTspList.get(element2));\n\t\t\tnewTspList.set(element2,vertex_3);\n\n\t\t\t/*\n\t\t\t * from element2+1 to element3-1 swap to reverse their order\n\t\t\t */\n\t\t\twhile ( element2 < element3 ){\n\t\t\t\telement3 = element3-1;\n\t\t\t\tif ( element3 == -1 ) {\n\t\t\t\t\telement3 = newTspList.size()-1;\n\t\t\t\t}\n\n\t\t\t\telement2 = element2 + 1;\n\t\t\t\tif ( element2 == newTspList.size() ) {\n\t\t\t\t\telement3 = 0;\n\t\t\t\t}\n\n\t\t\t\tInteger tempVertex = newTspList.get(element2);\n\t\t\t\tnewTspList.set(element2,newTspList.get(element3));\n\t\t\t\tnewTspList.set(element3,tempVertex);\n\n\t\t\t}\n\n\t\t\tdouble newTspCost = tspCost(newTspList);\n\n\t\t\t/* if new local search solution is better than eariler take the search and continue search\n\t\t\t */\n\t\t\tif ( newTspCost <= currentTspCost ){\n\t\t\t\tcurrentTspList = newTspList;\n\t\t\t\tcurrentTspCost = newTspCost;\n\t\t\t} else {\n\t\t\t/* if new local search solution is not better than eariler \n\t\t\t */\n\t\t\t\tcontinue;\n\t\t\t}\n\t\n\t\t\t//Subtract the start time from the finish time to get the actual algorithm running time; divide by 10e6 to convert to milliseconds\n\t\t\tdouble cycleTime = (System.nanoTime()-cycleStartTime);\n\n\t\t\t/* first improvement , take the best each time */\n\t\t\tif ( newTspCost < bestCost ) {\n\t\t\t\tbestCost = newTspCost;\n\t\t\t\tbestTspList = newTspList;\n\t\t\t\tbestCycleTime = cycleTime;\n\t\t\t\t/* print the trace file */\n\t\t\t\ttraceString = String.format(\"%.2f, %d\",Math.round(((System.nanoTime()-baseTime)/nanosecs)*100.0)/100.0,Math.round(bestCost));\n\t\t\t\tappendToTraceFile(runId,traceString);\n\n\t\t\t\tif ( bestCost <= optimalCost )\n\t\t\t\t\tbreak;\n\t\t\t}\n\n\t\t}\n\n\t\t/* print the sol file */\n\t\tprintSol(runId,bestTspList,bestCost);\n\n\t\t/* print the tab results file */\n\t\tappendTabResults(runId,bestCycleTime,bestCost,bestTspList);\n\n\t\treturn bestTspList;\n\n\t}", "public void seekWalls() {\n\t\t for (int j=0; j<visited[0].length; j++){\n\t\t\tfor (int i=visited.length-1; i>=0; i--) {\t\t\t\n\t\t\t\tif (i!=0 && j!= visited[0].length-1) {//general position\n\t\t\t\t\tif (map.get(visited[i][j]) + map.get(visited[i-1][j]) == maxComb && !isFree(i,j,2)) {\n\t\t\t\t\t\twallRow = i+1;\n\t\t\t\t\t\twallCol = j+1;\n\t\t\t\t\t\twallSide = 'N';\n\t\t\t\t\t\treturn;//not break!!!!! return to exit !\n\t\t\t\t\t}\n\n\t\t\t\t\tif (map.get(visited[i][j]) + map.get(visited[i][j+1]) == maxComb && !isFree(i,j,4)) {\n\t\t\t\t\t\twallRow = i+1;\n\t\t\t\t\t\twallCol = j+1;\n\t\t\t\t\t\twallSide = 'E';\t\n\t\t\t\t\t\treturn;\t\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\telse if (i==0 && j!= visited[0].length-1) {\n\t\t\t\t\tif (map.get(visited[i][j]) + map.get(visited[i][j+1]) == maxComb && !isFree(i,j,4)) {\n\t\t\t\t\t\twallRow = i+1;\n\t\t\t\t\t\twallCol = j+1;\n\t\t\t\t\t\twallSide = 'E';\t\n\t\t\t\t\t\treturn;\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\telse if (i!=0 && j== visited[0].length-1) {\n\t\t\t\t\tif (map.get(visited[i][j]) + map.get(visited[i-1][j]) == maxComb && !isFree(i,j,2)) {\n\t\t\t\t\t\twallRow = i+1;\n\t\t\t\t\t\twallCol = j+1;\n\t\t\t\t\t\twallSide = 'N';\n\t\t\t\t\t\treturn;\n\t\t\t\t\t}\n\n\t\t\t\t}\n\t\t\t\telse {//if (i==0 && j== visited[0].length-1) {\n\t\t\t\t\t//no solution\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "private static void dfsBribe(int n, List<Integer>[] ch, long[] w) {\n if (ch[n].size() == 0){\n In[n] = w[n];\n OutD[n] = Long.MAX_VALUE;\n OutU[n] = 0;\n }\n //recurrance case: non.leaf, do dfs for all subordinates then calculate In, OutUp & OutDown.\n else{\n for (int c:ch[n])\n dfsBribe(c, ch, w); //running once for each child thereby O(N)\n In[n] = w[n];\n for (int c:ch[n]){ //O(N) running time\n In[n] += OutU[c];\n OutU[n] += Math.min(In[c], OutD[c]);\n OutD[n] += Math.min(In[c], OutD[c]);\n }\n OutD[n] += delta(n, ch); //add delta for no in Children\n }\n\n }", "private void DFS(int[] array, int level, List<Integer> list) {\n\t\tif (level == array.length) {\n\t\t\tif (Math.abs(sum - 2 * cur) < min) {\n\t\t\t\tmin = Math.abs(sum - 2 * cur);\n\t\t\t}\n\t\t\treturn;\n\t\t}\n\t\tcur += array[level];\n\t\tlist.add(array[level]);\n\t\tDFS(array, level + 1, list);\n\t\tcur -= array[level];\n\t\tlist.remove(list.size() - 1);\n\t\tDFS(array, level + 1, list);\n\t}", "private ArrayList<Vertex> dfs(boolean[] visited, Vertex start, Vertex target) {\n \n //TEST VALUES: if start/end are out of bounds of array of vertices\n if (start.getID() < 0) {\n return null;\n }\n \n if (target.getID() > arrayOfVertices.length) {\n return null;\n }\n \n \n //base case: if start = target, return start vertex right there.\n if (start == target) {\n solution.add(0, start);\n return solution;\n }\n \n //has this vertex been visited before? yes? then just return. if no, \n if (visited[start.getID()]) {\n return null;\n }\n \n //since it hasn't been visited before, mark it as visited\n visited[start.getID()] = true;\n \n //does it have kids? no? return.\n if (start.getDegree() == 0) {\n return null;\n }\n \n //create ArrayList of adjacent vertices to the given start\n ArrayList<Vertex> adjacents = start.getAdjacent();\n \n //go through its edges, for loop. to go through edges\n for (int i = 0; i < start.getDegree(); i++) {\n \n //(from testing)\n NavigateMaze.advance(start.getID(), adjacents.get(i).getID());\n \n //do the dfs; if it's not equal to null \n //(i.e. we found the target, then add it to path\n if (dfs(visited, adjacents.get(i), target) != null) {\n //then add to path\n solution.add(0, start); \n return solution;\n }\n \n //(from testing)\n else {\n NavigateMaze.backtrack(adjacents.get(i).getID(), start.getID());\n }\n \n } \n \n //return null\n return null;\n }", "@Override\n\tpublic void solve() {\n\t\tlong startTime = System.nanoTime();\n\n\t\twhile(!unvisitedPM.isEmpty()){\n\t\t\tProblemModel current = findCheapestNode();\n\t\n\t\t\tfor(ProblemModel pm : current.getSubNodes()){\n\t\t\n\t\t\t\tif(!visited.contains(pm) && !unvisitedPM.contains(pm)){\n\t\t\t\t\t\n\t\t\t\t\tunvisitedPM.add(pm);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\tif(current.getSideStart().isEmpty()){\n\t\t\t\tSystem.out.print( \"\\n\"+ \"StartSide Runners: \");\n\t\t\t\tfor(Integer r: current.getSideStart()){\n\t\t\t\t\tSystem.out.print( \" \" +r) ;\n\t\t\t\t}\n\t\t\t\tSystem.out.print( \"\\n\" + \"EndSide Runners: \");\n\t\t\t\tfor(Integer r: current.getSideEnd()){\n\t\t\t\t\tSystem.out.print( \" \" + r);\n\t\t\t\t}\n\n\t\t\t\tprintPathTaken(current);\n\t\t\t\tSystem.out.print( \"\\n\" + \"------------done--------------\");\n\t\t\t\tlong endTime = System.nanoTime();\n\t\t\t\tlong duration = ((endTime - startTime)/1000000);\n\t\t\t\tSystem.out.print( \"\\n\" + \"-AS1 Time taken: \" + duration + \"ms\");\n\t\t\t\t\n\t\t\t\t\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\t\n\t\t\tvisited.add(current);\n\t\t\n\t\t}\n\t\t\n\n\t}", "private static void testAlgorithmOptimality() {\n AlgoFunction testAlgo = SG16Algorithm::new;\n\n //printSeed = false; // keep this commented out.\n Random seedRand = new Random(1241);\n int initial = seedRand.nextInt();\n for (int i=0; i<50000000; i++) {\n int sizeX = seedRand.nextInt(150) + 5;\n int sizeY = seedRand.nextInt(150) + 5;\n int seed = i+initial;\n int ratio = seedRand.nextInt(50) + 5;\n \n int max = (sizeX+1)*(sizeY+1);\n int p1 = seedRand.nextInt(max);\n int p2 = seedRand.nextInt(max-1);\n if (p2 == p1) {\n p2 = max-1;\n }\n \n int sx = p1%(sizeX+1);\n int sy = p1/(sizeX+1);\n int ex = p2%(sizeX+1);\n int ey = p2/(sizeX+1);\n\n double restPathLength = 0, normalPathLength = 0;\n try {\n GridGraph gridGraph = DefaultGenerator.generateSeededGraphOnly(seed, sizeX, sizeY, ratio);\n for (int iii=0;iii<300;++iii) Utility.generatePath(testAlgo, gridGraph, seedRand.nextInt(sizeX+1),seedRand.nextInt(sizeY+1),seedRand.nextInt(sizeX+1),seedRand.nextInt(sizeY+1));\n int[][] path = Utility.generatePath(testAlgo, gridGraph, sx, sy, ex, ey);\n path = Utility.removeDuplicatesInPath(path);\n restPathLength = Utility.computePathLength(gridGraph, path);\n \n path = Utility.computeOptimalPathOnline(gridGraph, sx, sy, ex, ey);\n path = Utility.removeDuplicatesInPath(path);\n normalPathLength = Utility.computePathLength(gridGraph, path);\n }catch (Exception e) {\n e.printStackTrace();\n System.out.println(\"EXCEPTION OCCURRED!\");\n System.out.println(\"Seed = \" + seed +\" , Ratio = \" + ratio + \" , Size: x=\" + sizeX + \" y=\" + sizeY);\n System.out.println(\"Start = \" + sx + \",\" + sy + \" End = \" + ex + \",\" + ey);\n throw new UnsupportedOperationException(\"DISCREPANCY!!\");\n }\n \n if (Math.abs(restPathLength - normalPathLength) > 0.000001f) {\n //if ((restPathLength == 0.f) != (normalPathLength == 0.f)) {\n System.out.println(\"============\");\n System.out.println(\"Discrepancy Discovered!\");\n System.out.println(\"Seed = \" + seed +\" , Ratio = \" + ratio + \" , Size: x=\" + sizeX + \" y=\" + sizeY);\n System.out.println(\"Start = \" + sx + \",\" + sy + \" End = \" + ex + \",\" + ey);\n System.out.println(\"Actual: \" + restPathLength + \" , Expected: \" + normalPathLength);\n System.out.println(restPathLength / normalPathLength);\n System.out.println(\"============\");\n throw new UnsupportedOperationException(\"DISCREPANCY!!\");\n } else {\n if (i%1000 == 999) {\n System.out.println(\"Count: \" + (i+1));\n System.out.println(\"OK: Seed = \" + seed +\" , Ratio = \" + ratio + \" , Size: x=\" + sizeX + \" y=\" + sizeY);\n System.out.println(\"Actual: \" + restPathLength + \" , Expected: \" + normalPathLength);\n }\n }\n }\n }", "void testSearches(Tester t) {\n Vertex v1 = new Vertex(10, 10);\n Vertex v2 = new Vertex(10, 11);\n Vertex v3 = new Vertex(10, 12);\n\n Edge e1 = new Edge(v1, v2, 1);\n Edge e2 = new Edge(v2, v3, 1);\n\n IList<Vertex> map = new Cons<Vertex>(v1, new Cons<Vertex>(v2, new Cons<Vertex>(\n v3, new Empty<Vertex>())));\n\n Player player = new Player(map);\n DepthFirst dp = new DepthFirst(map);\n BreadthFirst bp = new BreadthFirst(map);\n\n t.checkExpect(player.current, v1);\n t.checkExpect(player.finished, false);\n\n t.checkExpect(bp.hasNext(), true);\n t.checkExpect(bp.next(), new Queue<Vertex>());\n\n t.checkExpect(dp.hasNext(), true);\n t.checkExpect(dp.next(), new Stack<Vertex>());\n\n t.checkExpect(player.move(true, e1), v2);\n\n t.checkExpect(player.current, v2);\n t.checkExpect(player.finished, false);\n\n t.checkExpect(bp.hasNext(), false);\n t.checkExpect(bp.next(), v3);\n\n t.checkExpect(dp.hasNext(), false);\n t.checkExpect(dp.next(), v3);\n\n t.checkExpect(player.move(true, e2), v3);\n\n player.finished = true;\n\n t.checkExpect(player.current, v3);\n t.checkExpect(player.finished, true);\n\n Queue<Vertex> q = new Queue<Vertex>(map);\n\n q.enqueue(new Vertex(5, 5));\n\n Deque<Vertex> dq = new Deque<Vertex>();\n dq.addAtHead(v1);\n dq.addAtTail(v2);\n dq.addAtTail(new Vertex(5, 5));\n\n\n t.checkExpect(q.isEmpty(), false);\n t.checkExpect(q.contents, dq);\n\n Stack<Vertex> stack = new Stack<Vertex>(map);\n\n t.checkExpect(stack.isEmpty(), false);\n dq.removeFromHead();\n t.checkExpect(stack.pop(), dq);\n\n t.checkExpect(dp.next(), v2);\n t.checkExpect(bp.hasNext(), true);\n\n }", "public void dfs() {\n int currentVertexIndex = 0;\r\n dfsStack.push(0);\r\n vertexList[0].wasVisited = true;\r\n System.out.println(vertexList[dfsStack.peek()]);\r\n while (dfsStack.top != -1) {\r\n\r\n\r\n currentVertexIndex = this.getAdjUnvisitedVert(dfsStack.peek());\r\n if (currentVertexIndex != -1) {\r\n dfsStack.push(currentVertexIndex);\r\n vertexList[currentVertexIndex].wasVisited = true;\r\n System.out.println(vertexList[dfsStack.peek()]);\r\n\r\n\r\n } else {\r\n currentVertexIndex = dfsStack.pop();\r\n\r\n }\r\n }\r\n// reset wasVisted\r\n for (Vertex x : vertexList) {\r\n x.wasVisited = false;\r\n }\r\n }", "protected PrioritizedSearchNode FLimtedDFS(PrioritizedSearchNode lastNode,\n\t double minR, double cumulatedReward) {\n\n\tif (lastNode.priority < minR) {\n\t return lastNode; // fail condition (either way return the last point\n\t\t\t // to which you got)\n\t}\n\tif (this.planEndNode(lastNode)) {\n\t return lastNode; // succeed condition\n\t}\n\tif (this.tf.isTerminal(lastNode.s.s)) {\n\t return null; // treat like a dead end if we're at a terminal state\n\t}\n\n\tState s = lastNode.s.s;\n\n\t// get all actions\n\tList<GroundedAction> gas = new ArrayList<GroundedAction>();\n\tfor (Action a : actions) {\n\t gas.addAll(s.getAllGroundedActionsFor(a));\n\t}\n\n\t// generate successor nodes\n\tList<PrioritizedSearchNode> successors = new ArrayList<PrioritizedSearchNode>(\n\t\tgas.size());\n\tList<Double> successorGs = new ArrayList<Double>(gas.size());\n\tfor (GroundedAction ga : gas) {\n\n\t State ns = ga.executeIn(s);\n\t StateHashTuple nsh = this.stateHash(ns);\n\n\t double r = rf.reward(s, ga, ns);\n\t double g = cumulatedReward + r;\n\t double hr = heuristic.h(ns);\n\t double f = g + hr;\n\t PrioritizedSearchNode pnsn = new PrioritizedSearchNode(nsh, ga,\n\t\t lastNode, f);\n\n\t // only add if this does not exist on our path already\n\t if (this.lastStateOnPathIsNew(pnsn)) {\n\t\tsuccessors.add(pnsn);\n\t\tsuccessorGs.add(g);\n\t }\n\n\t}\n\n\t// sort the successors by f-score to travel the most promising ones\n\t// first\n\tCollections.sort(successors, nodeComparator);\n\n\tdouble maxCandR = Double.NEGATIVE_INFINITY;\n\tPrioritizedSearchNode bestCand = null;\n\t// note that since we want to expand largest expected rewards first, we\n\t// should go reverse order of the f-ordered successors\n\tfor (int i = successors.size() - 1; i >= 0; i--) {\n\t PrioritizedSearchNode snode = successors.get(i);\n\t PrioritizedSearchNode cand = this.FLimtedDFS(snode, minR,\n\t\t successorGs.get(i));\n\t if (cand != null) {\n\t\tif (cand.priority > maxCandR) {\n\t\t bestCand = cand;\n\t\t maxCandR = cand.priority;\n\t\t}\n\t }\n\n\t}\n\n\treturn bestCand;\n }", "void DFSearch(BFSNode n){\n\t\tn.discovered=true;\r\n\t\tSystem.out.print(\" discovered\");\r\n\t\tn.preProcessNode();\r\n\t\tfor( Integer edg: n.edges){\r\n\t\t\tn.processEdge(edg);\r\n\t\t\tif(!nodes[edg].discovered){\r\n\t\t\t\tnodes[edg].parent = n; \r\n\t\t\t\tnodes[edg].depth = n.depth +1;\r\n\t\t\t\t\r\n\t\t\t\tSystem.out.print(\"{new track with parent [\"+ nodes[edg].parent.value+\"] }\");\r\n\t\t\t\tDFSearch(nodes[edg]);\r\n\t\t\t}\r\n\t\t\telse{\r\n\t\t\t\tif(nodes[edg] != n.parent){\r\n\t\t\t\t\tSystem.out.print(\"{LOOP}\");\r\n\t\t\t\t\tif(nodes[edg].depth < n.reachableLimit.depth){\r\n\t\t\t\t\t\tn.reachableLimit = nodes[edg];\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\tSystem.out.print(\"{second visit}\");\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\tSystem.out.println(\"back from node [ \"+n.value +\" ]\");\r\n\t\tn.postProcessNode();\r\n\t\tn.processed = true;\r\n\t\t\r\n\t}", "public boolean reducible() {\n if (dfsTree.back.isEmpty()) {\n return true;\n }\n int size = controlFlow.transitions.length;\n boolean[] loopEnters = dfsTree.loopEnters;\n TIntHashSet[] cycleIncomings = new TIntHashSet[size];\n // really this may be array, since dfs already ensures no duplicates\n TIntArrayList[] nonCycleIncomings = new TIntArrayList[size];\n int[] collapsedTo = new int[size];\n int[] queue = new int[size];\n int top;\n for (int i = 0; i < size; i++) {\n if (loopEnters[i]) {\n cycleIncomings[i] = new TIntHashSet();\n }\n nonCycleIncomings[i] = new TIntArrayList();\n collapsedTo[i] = i;\n }\n\n // from whom back connections\n for (Edge edge : dfsTree.back) {\n cycleIncomings[edge.to].add(edge.from);\n }\n // from whom ordinary connections\n for (Edge edge : dfsTree.nonBack) {\n nonCycleIncomings[edge.to].add(edge.from);\n }\n\n for (int w = size - 1; w >= 0 ; w--) {\n top = 0;\n // NB - it is modified later!\n TIntHashSet p = cycleIncomings[w];\n if (p == null) {\n continue;\n }\n TIntIterator iter = p.iterator();\n while (iter.hasNext()) {\n queue[top++] = iter.next();\n }\n\n while (top > 0) {\n int x = queue[--top];\n TIntArrayList incoming = nonCycleIncomings[x];\n for (int i = 0; i < incoming.size(); i++) {\n int y1 = collapsedTo[incoming.getQuick(i)];\n if (!dfsTree.isDescendant(y1, w)) {\n return false;\n }\n if (y1 != w && p.add(y1)) {\n queue[top++] = y1;\n }\n }\n }\n\n iter = p.iterator();\n while (iter.hasNext()) {\n collapsedTo[iter.next()] = w;\n }\n }\n\n return true;\n }", "public Stack<Integer> dfs(Maze tmp) {\n \n int tmpx = tmp.positionX();\n int tmpy = tmp.positionY();\n Stack<Integer> s = new Stack<Integer>();\n while (!tmp.gameOver()) {\n choosedirection(s, tmp);\n while (!s.isEmpty() && !tmp.gameOver()) {\n if (s.peek() == 0) {\n if (tmp.right()) {\n s.push(1);\n } else if (tmp.up()) {\n s.push(0);\n } else if (tmp.left()) {\n s.push(3);\n } else {\n this.stackpop(s, tmp);\n }\n } else if (s.peek() == 1) {\n if (tmp.down()) {\n s.push(2);\n } else if (tmp.right()) {\n s.push(1);\n } else if (tmp.up()) {\n s.push(0);\n } else {\n this.stackpop(s, tmp);\n }\n } else if (s.peek() == 2) {\n if (tmp.left()) {\n s.push(3);\n } else if (tmp.down()) {\n s.push(2);\n } else if (tmp.right()) {\n s.push(1);\n } else {\n this.stackpop(s, tmp);\n }\n } else if (s.peek() == 3) {\n if (tmp.up()) {\n s.push(0);\n } else if (tmp.left()) {\n s.push(3);\n } else if (tmp.down()) {\n s.push(2);\n } else {\n this.stackpop(s, tmp);\n }\n\n }\n\n }\n }\n\n Stack<Integer> stack = new Stack<Integer>();\n while (!s.isEmpty()) {\n stack.push(s.pop());\n }\n\n tmp.setLocation(tmpx, tmpy);\n return stack;\n\n }", "public int smell() {\n\t\tsynchronized (this) {\n\t\t\tNode[][] AllHexNode = new Node[world.worldArray.length][world.worldArray[0].length];\n\t\t\tint HexAmount = 0;\n\t\t\tfor (int i = 0; i < world.worldArray.length; i++)\n\t\t\t\tfor (int j = 0; j < world.worldArray[0].length; j++) {\n\t\t\t\t\tif (world.isValidHex(i, j)) {\n\t\t\t\t\t\tAllHexNode[i][j] = new Node(i, j, Integer.MAX_VALUE, -1, -1);\n\t\t\t\t\t\tHexAmount++;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\tPriorityQueue<Node> frontier = new PriorityQueue<Node>(HexAmount, new Node(c, r, 0, 0, 0));\n\t\t\t// Place the six hex around it first\n\t\t\tif (world.isValidHex(c, r + 1))\n\t\t\t\tif (world.worldArray[c][r + 1] instanceof EmptySpace || world.worldArray[c][r + 1] instanceof Food) {\n\t\t\t\t\tif (direction == 0) {\n\t\t\t\t\t\tAllHexNode[c][r + 1].setddd(0, 0, 0);\n\t\t\t\t\t\tfrontier.add(AllHexNode[c][r + 1]);\n\t\t\t\t\t}\n\t\t\t\t\tif (direction == 1) {\n\t\t\t\t\t\tAllHexNode[c][r + 1].setddd(1, 0, 5);\n\t\t\t\t\t\tfrontier.add(AllHexNode[c][r + 1]);\n\t\t\t\t\t}\n\t\t\t\t\tif (direction == 2) {\n\t\t\t\t\t\tAllHexNode[c][r + 1].setddd(2, 0, 4);\n\t\t\t\t\t\tfrontier.add(AllHexNode[c][r + 1]);\n\t\t\t\t\t}\n\t\t\t\t\tif (direction == 3) {\n\t\t\t\t\t\tAllHexNode[c][r + 1].setddd(3, 0, 3);\n\t\t\t\t\t\tfrontier.add(AllHexNode[c][r + 1]);\n\t\t\t\t\t}\n\t\t\t\t\tif (direction == 4) {\n\t\t\t\t\t\tAllHexNode[c][r + 1].setddd(2, 0, 2);\n\t\t\t\t\t\tfrontier.add(AllHexNode[c][r + 1]);\n\t\t\t\t\t}\n\t\t\t\t\tif (direction == 5) {\n\t\t\t\t\t\tAllHexNode[c][r + 1].setddd(1, 0, 1);\n\t\t\t\t\t\tfrontier.add(AllHexNode[c][r + 1]);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\tif (world.isValidHex(c + 1, r + 1))\n\t\t\t\tif (world.worldArray[c + 1][r + 1] instanceof EmptySpace\n\t\t\t\t\t\t|| world.worldArray[c + 1][r + 1] instanceof Food) {\n\t\t\t\t\tif (direction == 0) {\n\t\t\t\t\t\tAllHexNode[c + 1][r + 1].setddd(1, 1, 1);\n\t\t\t\t\t\tfrontier.add(AllHexNode[c + 1][r + 1]);\n\t\t\t\t\t}\n\t\t\t\t\tif (direction == 1) {\n\t\t\t\t\t\tAllHexNode[c + 1][r + 1].setddd(0, 1, 0);\n\t\t\t\t\t\tfrontier.add(AllHexNode[c + 1][r + 1]);\n\t\t\t\t\t}\n\t\t\t\t\tif (direction == 2) {\n\t\t\t\t\t\tAllHexNode[c + 1][r + 1].setddd(1, 1, 5);\n\t\t\t\t\t\tfrontier.add(AllHexNode[c + 1][r + 1]);\n\t\t\t\t\t}\n\t\t\t\t\tif (direction == 3) {\n\t\t\t\t\t\tAllHexNode[c + 1][r + 1].setddd(2, 1, 4);\n\t\t\t\t\t\tfrontier.add(AllHexNode[c + 1][r + 1]);\n\t\t\t\t\t}\n\t\t\t\t\tif (direction == 4) {\n\t\t\t\t\t\tAllHexNode[c + 1][r + 1].setddd(3, 1, 3);\n\t\t\t\t\t\tfrontier.add(AllHexNode[c + 1][r + 1]);\n\t\t\t\t\t}\n\t\t\t\t\tif (direction == 5) {\n\t\t\t\t\t\tAllHexNode[c + 1][r + 1].setddd(2, 1, 2);\n\t\t\t\t\t\tfrontier.add(AllHexNode[c + 1][r + 1]);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\tif (world.isValidHex(c + 1, r))\n\t\t\t\tif (world.worldArray[c + 1][r] instanceof EmptySpace || world.worldArray[c + 1][r] instanceof Food) {\n\t\t\t\t\tif (direction == 0) {\n\t\t\t\t\t\tAllHexNode[c + 1][r].setddd(2, 2, 2);\n\t\t\t\t\t\tfrontier.add(AllHexNode[c + 1][r]);\n\t\t\t\t\t}\n\t\t\t\t\tif (direction == 1) {\n\t\t\t\t\t\tAllHexNode[c + 1][r].setddd(1, 2, 1);\n\t\t\t\t\t\tfrontier.add(AllHexNode[c + 1][r]);\n\t\t\t\t\t}\n\t\t\t\t\tif (direction == 2) {\n\t\t\t\t\t\tAllHexNode[c + 1][r].setddd(0, 2, 0);\n\t\t\t\t\t\tfrontier.add(AllHexNode[c + 1][r]);\n\t\t\t\t\t}\n\t\t\t\t\tif (direction == 3) {\n\t\t\t\t\t\tAllHexNode[c + 1][r].setddd(1, 2, 5);\n\t\t\t\t\t\tfrontier.add(AllHexNode[c + 1][r]);\n\t\t\t\t\t}\n\t\t\t\t\tif (direction == 4) {\n\t\t\t\t\t\tAllHexNode[c + 1][r].setddd(2, 2, 4);\n\t\t\t\t\t\tfrontier.add(AllHexNode[c + 1][r]);\n\t\t\t\t\t}\n\t\t\t\t\tif (direction == 5) {\n\t\t\t\t\t\tAllHexNode[c + 1][r].setddd(3, 2, 3);\n\t\t\t\t\t\tfrontier.add(AllHexNode[c + 1][r]);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\tif (world.isValidHex(c, r - 1))\n\t\t\t\tif (world.worldArray[c][r - 1] instanceof EmptySpace || world.worldArray[c][r - 1] instanceof Food) {\n\t\t\t\t\tif (direction == 0) {\n\t\t\t\t\t\tAllHexNode[c][r - 1].setddd(3, 3, 3);\n\t\t\t\t\t\tfrontier.add(AllHexNode[c][r - 1]);\n\t\t\t\t\t}\n\t\t\t\t\tif (direction == 1) {\n\t\t\t\t\t\tAllHexNode[c][r - 1].setddd(2, 3, 2);\n\t\t\t\t\t\tfrontier.add(AllHexNode[c][r - 1]);\n\t\t\t\t\t}\n\t\t\t\t\tif (direction == 2) {\n\t\t\t\t\t\tAllHexNode[c][r - 1].setddd(1, 3, 1);\n\t\t\t\t\t\tfrontier.add(AllHexNode[c][r - 1]);\n\t\t\t\t\t}\n\t\t\t\t\tif (direction == 3) {\n\t\t\t\t\t\tAllHexNode[c][r - 1].setddd(0, 3, 0);\n\t\t\t\t\t\tfrontier.add(AllHexNode[c][r - 1]);\n\t\t\t\t\t}\n\t\t\t\t\tif (direction == 4) {\n\t\t\t\t\t\tAllHexNode[c][r - 1].setddd(1, 3, 5);\n\t\t\t\t\t\tfrontier.add(AllHexNode[c][r - 1]);\n\t\t\t\t\t}\n\t\t\t\t\tif (direction == 5) {\n\t\t\t\t\t\tAllHexNode[c][r - 1].setddd(2, 3, 4);\n\t\t\t\t\t\tfrontier.add(AllHexNode[c][r - 1]);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\tif (world.isValidHex(c - 1, r - 1))\n\t\t\t\tif (world.worldArray[c - 1][r - 1] instanceof EmptySpace\n\t\t\t\t\t\t|| world.worldArray[c - 1][r - 1] instanceof Food) {\n\t\t\t\t\tif (direction == 0) {\n\t\t\t\t\t\tAllHexNode[c - 1][r - 1].setddd(2, 4, 4);\n\t\t\t\t\t\tfrontier.add(AllHexNode[c - 1][r - 1]);\n\t\t\t\t\t}\n\t\t\t\t\tif (direction == 1) {\n\t\t\t\t\t\tAllHexNode[c - 1][r - 1].setddd(3, 4, 3);\n\t\t\t\t\t\tfrontier.add(AllHexNode[c - 1][r - 1]);\n\t\t\t\t\t}\n\t\t\t\t\tif (direction == 2) {\n\t\t\t\t\t\tAllHexNode[c - 1][r - 1].setddd(2, 4, 2);\n\t\t\t\t\t\tfrontier.add(AllHexNode[c - 1][r - 1]);\n\t\t\t\t\t}\n\t\t\t\t\tif (direction == 3) {\n\t\t\t\t\t\tAllHexNode[c - 1][r - 1].setddd(1, 4, 1);\n\t\t\t\t\t\tfrontier.add(AllHexNode[c - 1][r - 1]);\n\t\t\t\t\t}\n\t\t\t\t\tif (direction == 4) {\n\t\t\t\t\t\tAllHexNode[c - 1][r - 1].setddd(0, 4, 0);\n\t\t\t\t\t\tfrontier.add(AllHexNode[c - 1][r - 1]);\n\t\t\t\t\t}\n\t\t\t\t\tif (direction == 5) {\n\t\t\t\t\t\tAllHexNode[c - 1][r - 1].setddd(1, 4, 5);\n\t\t\t\t\t\tfrontier.add(AllHexNode[c - 1][r - 1]);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\tif (world.isValidHex(c - 1, r))\n\t\t\t\tif (world.worldArray[c - 1][r] instanceof EmptySpace || world.worldArray[c - 1][r] instanceof Food) {\n\t\t\t\t\tif (direction == 0) {\n\t\t\t\t\t\tAllHexNode[c - 1][r].setddd(1, 5, 5);\n\t\t\t\t\t\tfrontier.add(AllHexNode[c - 1][r]);\n\t\t\t\t\t}\n\t\t\t\t\tif (direction == 1) {\n\t\t\t\t\t\tAllHexNode[c - 1][r].setddd(2, 5, 4);\n\t\t\t\t\t\tfrontier.add(AllHexNode[c - 1][r]);\n\t\t\t\t\t}\n\t\t\t\t\tif (direction == 2) {\n\t\t\t\t\t\tAllHexNode[c - 1][r].setddd(3, 5, 3);\n\t\t\t\t\t\tfrontier.add(AllHexNode[c - 1][r]);\n\t\t\t\t\t}\n\t\t\t\t\tif (direction == 3) {\n\t\t\t\t\t\tAllHexNode[c - 1][r].setddd(2, 5, 2);\n\t\t\t\t\t\tfrontier.add(AllHexNode[c - 1][r]);\n\t\t\t\t\t}\n\t\t\t\t\tif (direction == 4) {\n\t\t\t\t\t\tAllHexNode[c - 1][r].setddd(1, 5, 1);\n\t\t\t\t\t\tfrontier.add(AllHexNode[c - 1][r]);\n\t\t\t\t\t}\n\t\t\t\t\tif (direction == 5) {\n\t\t\t\t\t\tAllHexNode[c - 1][r].setddd(0, 5, 0);\n\t\t\t\t\t\tfrontier.add(AllHexNode[c - 1][r]);\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\twhile (!frontier.isEmpty()) {\n\t\t\t\tNode v = frontier.poll(); // extracts element with smallest\n\t\t\t\t\t\t\t\t\t\t\t// v.dist on the queue\n\t\t\t\tif (world.worldArray[v.col][v.row] instanceof Food) {\n\t\t\t\t\treturn v.distance * 1000 + v.directionResult;\n\t\t\t\t}\n\t\t\t\tif (world.isValidHex(v.col, v.row + 1))\n\t\t\t\t\tif (world.worldArray[v.col][v.row + 1] instanceof EmptySpace\n\t\t\t\t\t\t\t|| world.worldArray[v.col][v.row + 1] instanceof Food) {\n\t\t\t\t\t\tif (v.direction == 0)\n\t\t\t\t\t\t\tif (AllHexNode[v.col][v.row + 1].distance > v.distance + 1 && v.distance + 1 <= 10) {\n\t\t\t\t\t\t\t\tAllHexNode[v.col][v.row + 1].setddd(v.distance + 1, 0, v.directionResult);\n\t\t\t\t\t\t\t\tfrontier.add(AllHexNode[v.col][v.row + 1]);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\tif (v.direction == 1)\n\t\t\t\t\t\t\tif (AllHexNode[v.col][v.row + 1].distance > v.distance + 2 && v.distance + 2 <= 10) {\n\t\t\t\t\t\t\t\tAllHexNode[v.col][v.row + 1].setddd(v.distance + 2, 0, v.directionResult);\n\t\t\t\t\t\t\t\tfrontier.add(AllHexNode[v.col][v.row + 1]);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\tif (v.direction == 5)\n\t\t\t\t\t\t\tif (AllHexNode[v.col][v.row + 1].distance > v.distance + 2 && v.distance + 2 <= 10) {\n\t\t\t\t\t\t\t\tAllHexNode[v.col][v.row + 1].setddd(v.distance + 2, 0, v.directionResult);\n\t\t\t\t\t\t\t\tfrontier.add(AllHexNode[v.col][v.row + 1]);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\tif (world.isValidHex(v.col + 1, v.row + 1))\n\t\t\t\t\tif (world.worldArray[v.col + 1][v.row + 1] instanceof EmptySpace\n\t\t\t\t\t\t\t|| world.worldArray[v.col + 1][v.row + 1] instanceof Food) {\n\t\t\t\t\t\tif (v.direction == 0)\n\t\t\t\t\t\t\tif (AllHexNode[v.col + 1][v.row + 1].distance > v.distance + 2 && v.distance + 2 <= 10) {\n\t\t\t\t\t\t\t\tAllHexNode[v.col + 1][v.row + 1].setddd(v.distance + 2, 1, v.directionResult);\n\t\t\t\t\t\t\t\tfrontier.add(AllHexNode[v.col + 1][v.row + 1]);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\tif (v.direction == 1)\n\t\t\t\t\t\t\tif (AllHexNode[v.col + 1][v.row + 1].distance > v.distance + 1 && v.distance + 1 <= 10) {\n\t\t\t\t\t\t\t\tAllHexNode[v.col + 1][v.row + 1].setddd(v.distance + 1, 1, v.directionResult);\n\t\t\t\t\t\t\t\tfrontier.add(AllHexNode[v.col + 1][v.row + 1]);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\tif (v.direction == 2)\n\t\t\t\t\t\t\tif (AllHexNode[v.col + 1][v.row + 1].distance > v.distance + 2 && v.distance + 2 <= 10) {\n\t\t\t\t\t\t\t\tAllHexNode[v.col + 1][v.row + 1].setddd(v.distance + 2, 1, v.directionResult);\n\t\t\t\t\t\t\t\tfrontier.add(AllHexNode[v.col + 1][v.row + 1]);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\tif (world.isValidHex(v.col + 1, v.row))\n\t\t\t\t\tif (world.worldArray[v.col + 1][v.row] instanceof EmptySpace\n\t\t\t\t\t\t\t|| world.worldArray[v.col + 1][v.row] instanceof Food) {\n\t\t\t\t\t\tif (v.direction == 1)\n\t\t\t\t\t\t\tif (AllHexNode[v.col + 1][v.row].distance > v.distance + 2 && v.distance + 2 <= 10) {\n\t\t\t\t\t\t\t\tAllHexNode[v.col + 1][v.row].setddd(v.distance + 2, 2, v.directionResult);\n\t\t\t\t\t\t\t\tfrontier.add(AllHexNode[v.col + 1][v.row]);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\tif (v.direction == 2)\n\t\t\t\t\t\t\tif (AllHexNode[v.col + 1][v.row].distance > v.distance + 1 && v.distance + 1 <= 10) {\n\t\t\t\t\t\t\t\tAllHexNode[v.col + 1][v.row].setddd(v.distance + 1, 2, v.directionResult);\n\t\t\t\t\t\t\t\tfrontier.add(AllHexNode[v.col + 1][v.row]);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\tif (v.direction == 3)\n\t\t\t\t\t\t\tif (AllHexNode[v.col + 1][v.row].distance > v.distance + 2 && v.distance + 2 <= 10) {\n\t\t\t\t\t\t\t\tAllHexNode[v.col + 1][v.row].setddd(v.distance + 2, 2, v.directionResult);\n\t\t\t\t\t\t\t\tfrontier.add(AllHexNode[v.col + 1][v.row]);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\tif (world.isValidHex(v.col, v.row - 1))\n\t\t\t\t\tif (world.worldArray[v.col][v.row - 1] instanceof EmptySpace\n\t\t\t\t\t\t\t|| world.worldArray[v.col][v.row - 1] instanceof Food) {\n\t\t\t\t\t\tif (v.direction == 2)\n\t\t\t\t\t\t\tif (AllHexNode[v.col][v.row - 1].distance > v.distance + 2 && v.distance + 2 <= 10) {\n\t\t\t\t\t\t\t\tAllHexNode[v.col][v.row - 1].setddd(v.distance + 2, 3, v.directionResult);\n\t\t\t\t\t\t\t\tfrontier.add(AllHexNode[v.col][v.row - 1]);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\tif (v.direction == 3)\n\t\t\t\t\t\t\tif (AllHexNode[v.col][v.row - 1].distance > v.distance + 1 && v.distance + 1 <= 10) {\n\t\t\t\t\t\t\t\tAllHexNode[v.col][v.row - 1].setddd(v.distance + 1, 3, v.directionResult);\n\t\t\t\t\t\t\t\tfrontier.add(AllHexNode[v.col][v.row - 1]);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\tif (v.direction == 4)\n\t\t\t\t\t\t\tif (AllHexNode[v.col][v.row - 1].distance > v.distance + 2 && v.distance + 2 <= 10) {\n\t\t\t\t\t\t\t\tAllHexNode[v.col][v.row - 1].setddd(v.distance + 2, 3, v.directionResult);\n\t\t\t\t\t\t\t\tfrontier.add(AllHexNode[v.col][v.row - 1]);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\tif (world.isValidHex(v.col - 1, v.row - 1))\n\t\t\t\t\tif (world.worldArray[v.col - 1][v.row - 1] instanceof EmptySpace\n\t\t\t\t\t\t\t|| world.worldArray[v.col - 1][v.row - 1] instanceof Food) {\n\t\t\t\t\t\tif (v.direction == 3)\n\t\t\t\t\t\t\tif (AllHexNode[v.col - 1][v.row - 1].distance > v.distance + 2 && v.distance + 2 <= 10) {\n\t\t\t\t\t\t\t\tAllHexNode[v.col - 1][v.row - 1].setddd(v.distance + 2, 4, v.directionResult);\n\t\t\t\t\t\t\t\tfrontier.add(AllHexNode[v.col - 1][v.row - 1]);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\tif (v.direction == 4)\n\t\t\t\t\t\t\tif (AllHexNode[v.col - 1][v.row - 1].distance > v.distance + 1 && v.distance + 1 <= 10) {\n\t\t\t\t\t\t\t\tAllHexNode[v.col - 1][v.row - 1].setddd(v.distance + 1, 4, v.directionResult);\n\t\t\t\t\t\t\t\tfrontier.add(AllHexNode[v.col - 1][v.row - 1]);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\tif (v.direction == 5)\n\t\t\t\t\t\t\tif (AllHexNode[v.col - 1][v.row - 1].distance > v.distance + 2 && v.distance + 2 <= 10) {\n\t\t\t\t\t\t\t\tAllHexNode[v.col - 1][v.row - 1].setddd(v.distance + 2, 4, v.directionResult);\n\t\t\t\t\t\t\t\tfrontier.add(AllHexNode[v.col - 1][v.row - 1]);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\tif (world.isValidHex(v.col - 1, v.row))\n\t\t\t\t\tif (world.worldArray[v.col - 1][v.row] instanceof EmptySpace\n\t\t\t\t\t\t\t|| world.worldArray[v.col - 1][v.row] instanceof Food) {\n\t\t\t\t\t\tif (v.direction == 0)\n\t\t\t\t\t\t\tif (AllHexNode[v.col - 1][v.row].distance > v.distance + 2 && v.distance + 2 <= 10) {\n\t\t\t\t\t\t\t\tAllHexNode[v.col - 1][v.row].setddd(v.distance + 2, 5, v.directionResult);\n\t\t\t\t\t\t\t\tfrontier.add(AllHexNode[v.col - 1][v.row]);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\tif (v.direction == 4)\n\t\t\t\t\t\t\tif (AllHexNode[v.col - 1][v.row].distance > v.distance + 2 && v.distance + 2 <= 10) {\n\t\t\t\t\t\t\t\tAllHexNode[v.col - 1][v.row].setddd(v.distance + 2, 5, v.directionResult);\n\t\t\t\t\t\t\t\tfrontier.add(AllHexNode[v.col - 1][v.row]);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\tif (v.direction == 5)\n\t\t\t\t\t\t\tif (AllHexNode[v.col - 1][v.row].distance > v.distance + 1 && v.distance + 1 <= 10) {\n\t\t\t\t\t\t\t\tAllHexNode[v.col - 1][v.row].setddd(v.distance + 1, 5, v.directionResult);\n\t\t\t\t\t\t\t\tfrontier.add(AllHexNode[v.col - 1][v.row]);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t}\n\t\t\treturn 1000000;\n\t\t}\n\t}", "static int circularWalk(int n, int s, int t, int r_0, int g, int seed, int p){\n\t\tPoint[] points=new Point[n];\n\t\tfor (int i = 0; i < points.length; i++) {\n\t\t\tPoint point=new Point(r_0, false, false);\n\t\t\tif(i!=0)\n\t\t\t{\n\t\t\t\tpoint.rValue=((long)(points[i-1].rValue*g+seed))%p;\n\t\t\t}\n\t\t\tif(i==s){\n\t\t\t\tpoint.isSource=true;\n\t\t\t}\n\t\t\tif(i==t)\n\t\t\t\tpoint.isTarget=true;\n\t\t\tpoints[i]=point;\n\t\t}\n\t\tif(s==t)\n\t\t\treturn 0;\n\t\t//maintain visited and calculate if we can reach t from s,if we can't reach from a certain point,return Max\n\t\t//find the min of all the dfs possibilities\n\t\tHashSet<Integer> set=new HashSet<>();\n\t\treturn dfs(points,s,t,0,set);\n\t}", "@Test\n public void finiteUTurnCosts() {\n int right0 = graph.edge(0, 1).setDistance(10).set(speedEnc, 10, 10).getEdge();\n graph.edge(1, 2).setDistance(10).set(speedEnc, 10, 10);\n graph.edge(2, 3).setDistance(10).set(speedEnc, 10, 10);\n graph.edge(3, 4).setDistance(10).set(speedEnc, 10, 10);\n graph.edge(4, 5).setDistance(10).set(speedEnc, 10, 10);\n graph.edge(5, 2).setDistance(1000).set(speedEnc, 10, 10);\n int left6 = graph.edge(1, 6).setDistance(10).set(speedEnc, 10, 10).getEdge();\n int left0 = graph.edge(0, 7).setDistance(10).set(speedEnc, 10, 10).getEdge();\n graph.edge(7, 8).setDistance(10).set(speedEnc, 10, 10);\n graph.edge(8, 9).setDistance(10).set(speedEnc, 10, 10);\n int right6 = graph.edge(9, 6).setDistance(10).set(speedEnc, 10, 10).getEdge();\n\n // enforce p-turn (using the loop in clockwise direction)\n setRestriction(0, 1, 6);\n setRestriction(5, 4, 3);\n\n assertPath(calcPath(0, 6, right0, left6), 107.0, 1070, 107000, nodes(0, 1, 2, 3, 4, 5, 2, 1, 6));\n // if the u-turn cost is finite it depends on its value if we rather do the p-turn or do an immediate u-turn at node 2\n assertPath(calcPath(0, 6, right0, left6, createWeighting(5000)), 107.0, 1070, 107000, nodes(0, 1, 2, 3, 4, 5, 2, 1, 6));\n assertPath(calcPath(0, 6, right0, left6, createWeighting(40)), 44, 40, 44000, nodes(0, 1, 2, 1, 6));\n\n assertPath(calcPath(0, 6, left0, right6), 4, 40, 4000, nodes(0, 7, 8, 9, 6));\n assertPath(calcPath(0, 6, left0, left6), 111, 1110, 111000, nodes(0, 7, 8, 9, 6, 1, 2, 3, 4, 5, 2, 1, 6));\n // if the u-turn cost is finite we do a u-turn at node 1 (not at node 7 at the beginning!)\n assertPath(calcPath(0, 6, left0, left6, createWeighting(40)), 46.0, 60, 46000, nodes(0, 7, 8, 9, 6, 1, 6));\n }", "private static void bfs(int idx) {\n\t\t\n\t\tQueue<node> q =new LinkedList<node>();\n\t\tq.add(new node(idx,0,\"\"));\n\t\twhile (!q.isEmpty()) {\n\t\t\tnode tmp = q.poll();\n\t\t\tif(tmp.idx<0 ||tmp.idx > 200000) {\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tif(tmp.cnt> min) {\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tif(tmp.idx == k) {\n\t\t\t\tif(tmp.cnt < min) {\n\t\t\t\t\tmin = tmp.cnt;\n\t\t\t\t\tminnode = tmp;\n\t\t\t\t}\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tif(!visit[tmp.idx] && tmp.idx<=100000) {\n\t\t\t\tvisit[tmp.idx]= true;\n\t\t\t\tq.add(new node(tmp.idx*2, tmp.cnt+1,tmp.s));\n\t\t\t\tq.add(new node(tmp.idx-1, tmp.cnt+1,tmp.s));\n\t\t\t\tq.add(new node(tmp.idx+1, tmp.cnt+1,tmp.s));\n\t\t\t}\n\t\t}\n\t\t\n\t}", "private void depthFirstSearchIterative(int sourceVertex, List<Integer>[] adjacent, Stack<Integer> finishTimes,\n boolean[] visited, boolean getFinishTimes) {\n Stack<Integer> stack = new Stack<>();\n stack.push(sourceVertex);\n visited[sourceVertex] = true;\n\n if (!getFinishTimes) {\n sccIds[sourceVertex] = sccCount;\n }\n\n // Used to be able to iterate over each adjacency list, keeping track of which\n // vertex in each adjacency list needs to be explored next\n Iterator<Integer>[] adjacentIterators = (Iterator<Integer>[]) new Iterator[adjacent.length];\n for (int vertexId = 0; vertexId < adjacentIterators.length; vertexId++) {\n if (adjacent[vertexId] != null) {\n adjacentIterators[vertexId] = adjacent[vertexId].iterator();\n }\n }\n\n while (!stack.isEmpty()) {\n int currentVertex = stack.peek();\n\n if (adjacentIterators[currentVertex].hasNext()) {\n int neighbor = adjacentIterators[currentVertex].next();\n\n if (!visited[neighbor]) {\n stack.push(neighbor);\n visited[neighbor] = true;\n }\n } else {\n stack.pop();\n\n if (getFinishTimes) {\n finishTimes.push(currentVertex);\n }\n }\n }\n }", "private final void pruneParallelSkipEdges() {\n // TODO: IF THERE ARE MULTIPLE EDGES WITH THE SAME EDGE WEIGHT, WE ARBITRARILY PICK THE FIRST EDGE TO KEEP\n // THE ORDERING MAY BE DIFFERENT FROM BOTH SIDES OF THE EDGE, WHICH CAN LEAD TO A NONSYMMETRIC GRAPH\n // However, no issues have cropped up yet. Perhaps the ordering happens to be the same for both sides,\n // due to how the graph is constructed. This is not good to rely upon, however.\n Memory.initialise(maxSize, Float.POSITIVE_INFINITY, -1, false);\n \n int maxDegree = 0;\n for (int i=0;i<nNodes;++i) {\n maxDegree = Math.max(maxDegree, nSkipEdgess[i]);\n }\n \n int[] neighbourIndexes = new int[maxDegree];\n int[] lowestCostEdgeIndex = new int[maxDegree];\n float[] lowestCost = new float[maxDegree];\n int nUsed = 0;\n \n for (int i=0;i<nNodes;++i) {\n nUsed = 0;\n int degree = nSkipEdgess[i];\n int[] sEdges = outgoingSkipEdgess[i];\n float[] sWeights = outgoingSkipEdgeWeightss[i];\n \n for (int j=0;j<degree;++j) {\n int dest = sEdges[j];\n float weight = sWeights[j];\n \n int p = Memory.parent(dest);\n int index = -1;\n \n if (p == -1) {\n index = nUsed;\n ++nUsed;\n \n Memory.setParent(dest, index);\n neighbourIndexes[index] = dest;\n \n lowestCostEdgeIndex[index] = j;\n lowestCost[index] = weight;\n } else {\n index = p;\n if (weight < lowestCost[index]) {\n // Remove existing\n \n /* ________________________________\n * |______E__________C____________L_|\n * ________________________________\n * |______C__________L____________E_|\n * ^\n * |\n * nSkipEdges--\n */\n swapSkipEdges(i, lowestCostEdgeIndex[index], j);\n swapSkipEdges(i, j, degree-1);\n --j; --degree;\n \n // lowestCostEdgeIndex[index] happens to be the same as before.\n lowestCost[index] = weight;\n } else {\n // Remove this.\n \n /* ________________________________\n * |______E__________C____________L_|\n * ________________________________\n * |______E__________L____________C_|\n * ^\n * |\n * nSkipEdges--\n */\n swapSkipEdges(i, j, degree-1);\n --j; --degree;\n }\n }\n \n }\n nSkipEdgess[i] = degree;\n \n // Cleanup\n for (int j=0;j<nUsed;++j) {\n Memory.setParent(neighbourIndexes[j], -1); \n }\n }\n }", "public static void solve(int caseNo) throws IOException{\n String[] nTemps = br.readLine().split(\" \");\n int n = Integer.parseInt(nTemps[0]), aDis = Integer.parseInt(nTemps[1]), bDis = Integer.parseInt(nTemps[2]);\n //int n = 5*(int)1e5, aDis = 1, bDis = 1;\n allNodes = new Node[n];\n for(int itr = 0; itr < n; itr++){\n allNodes[itr] = new Node(itr);\n }\n //Step 1: Create Connections\n nTemps = br.readLine().split(\" \");\n for(int itr = 0; itr < n-1; itr++){\n int parent = Integer.parseInt(nTemps[itr])-1, child = itr+1;\n //int parent = itr, child = itr+1;\n allNodes[parent].children.add(allNodes[child]);\n }\n //Step 2: Find aDis & bDis Depth children count.\n DFS.clear();\n depthStack.clear();\n calculateDepths(allNodes[0], aDis, 0);\n depthStack.clear();\n DFS.clear();\n calculateDepths(allNodes[0], bDis, 1);\n //Step 3: Do Your Thing!\n double tAns = 0;\n for(int itr = 0; itr < n; itr++){\n tAns+=(long)dp[itr][0]*n;\n tAns+=(long)dp[itr][1]*n;\n tAns-=(long)dp[itr][0]*dp[itr][1];\n }\n tAns/=Math.pow(n, 2);\n ans.append(\"Case #\"+caseNo+\": \"+String.valueOf(tAns)+\"\\n\");\n }", "public static void main(String[] args) throws Exception {\n//\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n BufferedReader br = new BufferedReader(new FileReader(\"lamps.in\")); //new InputStreamReader(System.in));\n PrintWriter out = new PrintWriter(new FileWriter(\"lamps.out\"));\n N = Integer.parseInt(br.readLine());\n C = Integer.parseInt(br.readLine());\n\n on = new int[N];\n off = new int[N];\n StringTokenizer st = new StringTokenizer(br.readLine());\n // unfortunately, I have to switch from 1 to N to 0 to N-1\n while (st.hasMoreTokens()) {\n int x = Integer.parseInt(st.nextToken());\n if (x != -1) {\n on[x-1] = 1;\n }\n }\n st = new StringTokenizer(br.readLine());\n while (st.hasMoreTokens()) {\n int x = Integer.parseInt(st.nextToken());\n if (x != -1) {\n off[x-1] = 1;\n }\n }\n\n res = new TreeSet<>();\n visited = new HashSet<>();\n// visited = new HashSet[C]; // Visited stores, at a given number of moves done, what states have been seen\n// for (int i = 0; i < C; i++) {\n// visited[i] = new HashSet<>();\n// }\n // clever, accidentally, but pad the front with one extra one, which is inert.\n // Later, we'll remove it, but this preserves the 0's\n BigInteger start = one.shiftLeft(N+1).subtract(one);\n\n dfs(start,0);\n\n if (res.size() == 0) {\n out.println(\"IMPOSSIBLE\");\n }\n else {\n TreeSet<String> sorted = new TreeSet<>();\n for (BigInteger X : res) {\n String str = X.toString(2);\n sorted.add(reverse(str));\n }\n for (String str : sorted)\n out.println(str.substring(0, N));\n }\n out.close();\n }", "private static int minCoins_my_way_one_coin_of_one_value_case(int[] coins, int startIndex, int endIndex, int amount) {\n\n if (coins.length == 0) return 0;\n\n if (startIndex == endIndex) {\n int currentCoin = coins[startIndex];\n\n if (currentCoin == amount) { // coins=(8) amount=8\n return 1;\n }\n if (currentCoin > amount) { // coins=(9) amount=8\n return 0;\n }\n if (currentCoin < amount) { // coins=(1) amount=8\n return 0; // this code changes when you can use infinite number of same coin\n }\n }\n\n // IMPORTANT:\n // Even though, amount is changing in recursive call, you don't need an exit condition for amount because amount will never become 0 or less than 0\n // amount is changing in recursive call when currentCoin < amount and it is doing amount-currentCoin. It means that amount will never become 0 or less than 0\n /*\n if (amount == 0) {\n return 0;\n }\n */\n\n int currentCoin = coins[startIndex];\n\n int minUsingCurrentCoin = 0;\n\n if (currentCoin == amount) {// coins=(8,9) amount=8\n // WRONG - if you see recursive call, you are trying to use remaining array (8) to make amount (8)\n // You are trying to make full amount using remaining array. It means that you will not be including currentCoin in coins that can make full amount.\n // Here, code should be all about including currentCoin in computation.\n /*\n minUsingCurrentCoin = 1\n int minUsingRemainingCoinsToMakeFullAmount = minCoins_my_way_one_coin_of_one_value_case(coins,startIndex+1, endIndex, amount)\n if(minUsingRemainingCoinsToMakeFullAmount > 0) {\n minUsingCurrentCoin = 1 + minUsingRemainingCoinsToMakeFullAmount\n }*/\n\n minUsingCurrentCoin = 1;\n } else if (currentCoin > amount) {// coins=(9,8) amount=8\n minUsingCurrentCoin = 0;\n // WRONG - if you see recursive call, you are trying to use remaining array (8) to make amount (8)\n // You are trying to make full amount using remaining array. It means that you will not be including currentCoin in coins that can make full amount.\n // Here, code should be all about including currentCoin in computation.\n // minUsingCurrentCoin = 0 + minCoins_my_way_one_coin_of_one_value_case(coins,startIndex+1, endIndex, amount);\n } else {\n /*\n case 1:\n coins = (1,6) amount=8\n currentCoin=1\n 1<8\n coinsRequiredUsingRemainingCoins=(6) to make amount (8-1=7) = 0\n coinsRequiredUsingRemainingCoinsAndAmount is 0, so by including current coin (1), you will not be able to make amount=8\n so, you cannot use (1) to make amount=8\n case 2:\n coins = (1,7) amount=8\n currentCoin=1\n 1<6\n coinsRequiredUsingRemainingCoins (7) And Amount (8-1=7) = 1\n so, coinsRequiredUsingCurrentCoin = 1 + coinsRequiredUsingRemainingCoinsAndAmount = 2\n\n */\n // this code changes when you can use infinite number of same coin\n int minUsingRestOfCoinsAndRestOfAmount = minCoins_my_way_one_coin_of_one_value_case(coins, startIndex + 1, endIndex, amount - currentCoin);\n if (minUsingRestOfCoinsAndRestOfAmount == 0) {\n minUsingCurrentCoin = 0;\n } else {\n minUsingCurrentCoin = 1 + minUsingRestOfCoinsAndRestOfAmount;\n }\n\n }\n\n // coins = (8,6) amount=8\n // minUsingCurrentCoin 8 to make amount 8 = 1\n // minWaysUsingRestOfTheCoins (6) to make amount 8 = 0\n // so, you cannot just blindly return Math.min(minUsingCurrentCoin, minWaysUsingRestOfTheCoins)\n // it will return 0 instead of 1\n int minWaysUsingRestOfTheCoins = minCoins_my_way_one_coin_of_one_value_case(coins, startIndex + 1, endIndex, amount);\n\n if (minWaysUsingRestOfTheCoins == 0 && minUsingCurrentCoin > 0) {\n return minUsingCurrentCoin;\n } else if (minWaysUsingRestOfTheCoins > 0 && minUsingCurrentCoin == 0) {\n return minWaysUsingRestOfTheCoins;\n }\n return Math.min(minUsingCurrentCoin, minWaysUsingRestOfTheCoins);\n\n }", "public static void main(String[] args) {\n tryOrPrintStackTrace(() -> measureTime(() -> testOptimalMNK(3, 3, 3, false, null)));\n tryOrPrintStackTrace(() -> measureTime(() -> testOptimalMNK(4, 3, 4, true, null)));\n tryOrPrintStackTrace(() -> measureTime(() -> testOptimalMNK(5, 3, 5, true, null)));\n tryOrPrintStackTrace(() -> measureTime(() -> testOptimalMNK(4, 3, 4, false, null)));\n tryOrPrintStackTrace(() -> measureTime(() -> testOptimalMNK(5, 3, 5, false, null)));\n tryOrPrintStackTrace(() -> measureTime(() -> testOptimalMNK(2, 2, 2, false, \"cartellainesistente\")));\n tryOrPrintStackTrace(() -> measureTime(() -> testOptimalMNK(2, 2, 2, false, \"cartellainesistente\")));\n tryOrPrintStackTrace(() -> measureTime(() -> testOptimalMNK(2, 2, 2, true, \"cartellainesistente\")));\n tryOrPrintStackTrace(() -> measureTime(() -> testOptimalMNK(2, 2, 2, true, \"cartellainesistente\")));\n tryOrPrintStackTrace(() -> measureTime(() -> testOptimalMNK(3, 3, 3, false, \"strategies\")));\n tryOrPrintStackTrace(() -> measureTime(() -> testOptimalMNK(3, 3, 3, false, \"strategies\")));\n tryOrPrintStackTrace(() -> measureTime(() -> testOptimalMNK(3, 3, 3, true, \"strategies\")));\n tryOrPrintStackTrace(() -> measureTime(() -> testOptimalMNK(3, 3, 3, true, \"strategies\")));\n tryOrPrintStackTrace(() -> measureTime(() -> testOptimalMNK(2, 2, 2, false, null)));\n tryOrPrintStackTrace(() -> measureTime(() -> testOptimalMNK(2, 2, 2, true, null)));\n tryOrPrintStackTrace(() -> measureTime(() -> testOptimalMNK(3, 3, 3, false, null)));\n tryOrPrintStackTrace(() -> measureTime(() -> testOptimalMNK(3, 3, 3, true, null)));\n tryOrPrintStackTrace(() -> measureTime(() -> testOptimalMNK(5, 5, 2, false, null)));\n tryOrPrintStackTrace(() -> measureTime(() -> testOptimalMNK(5, 5, 2, true, null)));\n tryOrPrintStackTrace(() -> measureTime(() -> testOptimalMNK(6, 6, 2, false, null)));\n tryOrPrintStackTrace(() -> measureTime(() -> testOptimalMNK(6, 6, 2, true, null)));\n tryOrPrintStackTrace(() -> measureTime(() -> testOptimalMNK(4, 4, 3, false, null)));\n tryOrPrintStackTrace(() -> measureTime(() -> testOptimalMNK(4, 4, 3, true, null)));\n tryOrPrintStackTrace(() -> measureTime(() -> testOptimalMNK(7, 7, 2, true, null)));\n tryOrPrintStackTrace(() -> measureTime(() -> testOptimalMNK(7, 7, 2, false, null)));\n tryOrPrintStackTrace(() -> measureTime(() -> testOptimalMNK(4, 4, 4, false, null)));\n tryOrPrintStackTrace(() -> measureTime(() -> testOptimalMNK(4, 4, 4, true, null)));\n measureTime(()->checkInterruptSequential(4, 4, 3, false));\n measureTime(()->checkInterruptSequential(4, 4, 3, true));\n }", "public static void main(String[] args) throws IOException {\n BufferedReader br = new BufferedReader(new FileReader(\"superbull.in\"));\n PrintWriter pw = new PrintWriter(new BufferedWriter(new FileWriter(\"superbull.out\")));\n //Only in a tree is the winner condition(as stated in problem) satisfied\n int N = Integer.parseInt(br.readLine());\n \n long ret = 0;\n \n int[] nums = new int[N];\n for(int i = 0; i<N; i++) nums[i] = Integer.parseInt(br.readLine());\n int[] prims = new int[N]; //for dense graphs: N edges each. Loop thru edges anyways, so selection sort remove log factor\n Arrays.fill(prims, Integer.MIN_VALUE);\n prims[0] = -1;\n int curr = 0;\n \n for(int i = 0; i<N-1; i++){\n int max = Integer.MIN_VALUE;\n int next = -1;\n for(int j = 0; j<N; j++){\n if(prims[j] == -1) continue;\n \n int xor = nums[curr]^nums[j];\n prims[j] = Math.max(prims[j], xor);\n \n if(prims[j] > max){\n next = j;\n max = prims[j];\n }\n }\n ret += max;\n prims[next] = -1;\n curr = next;\n }\n pw.println(ret);\n pw.close();\n br.close();\n }", "private static int breadthFirstSearch(Vertex start) throws Queue.UnderflowException, Queue.EmptyException {\n boolean visited[] = new boolean[48];\n //Keep a queue of vertecies and a queue of the depth of the verticies - they will be added to and poped from identically\n ListQueue<Vertex> queue = new ListQueue<Vertex>();\n ListQueue<Integer> numQueue = new ListQueue<Integer>();\n //Set the starting node as visited\n visited[start.index()] = true;\n queue.enqueue(start);\n numQueue.enqueue(new Integer(1));\n\n //Keep last\n int last = -1;\n //While the queue isnt empty\n while (!queue.isEmpty()) {\n //Pop off the top from both queues and mark as visited\n start = queue.dequeue();\n int current = numQueue.dequeue();\n visited[start.index] = true;\n //For all neigbors\n for (Vertex v : start.neighbors) {\n //If we havent visited it make sure to visit it\n if (visited[v.index()] == false) {\n //As we keep adding new nodes to visit keep track of the depth\n queue.enqueue(v);\n numQueue.enqueue(current + 1);\n }\n }\n //Keep track of the most recent depth before we pop it off (queue will be empty when we exit)\n last = current;\n }\n //Return the max of the depth\n return last;\n }", "public static int largestIslandChain(Scanner sc) {\n int islands=sc.nextInt();\r\n boolean graph[][] = new boolean[islands][islands];\r\n\r\n //System.out.print(\"How many ziplines? \");\r\n int ziplines=sc.nextInt();\r\n\r\n for (int edge=0; edge<ziplines; edge++) {\r\n int from=sc.nextInt();\r\n int to=sc.nextInt();\r\n graph[from][to]=true;\r\n }\r\n\r\n\r\n /* Find the SCCs... */\r\n\r\n //Utility Data Structures\r\n Stack<Integer> stack = new Stack<Integer>(); \r\n\r\n\r\n //First DFS\r\n boolean[] visited01 = new boolean[islands];\r\n int exitTimeTicker=0;\r\n int[] exitTimes = new int[islands];\r\n int[] exitPoints = new int[islands];\r\n for (int island=0; island<islands; island++) {\r\n int source;\r\n if (!visited01[island])\r\n {\r\n visited01[island]=true;\r\n stack.push(island);\r\n source=island;\r\n\r\n int destination=0;\r\n while (!stack.isEmpty())\r\n {\r\n source=stack.peek();\r\n destination=0;\r\n while (destination<islands)\r\n {\r\n if (graph[source][destination] && !visited01[destination])\r\n {\r\n stack.push(destination);\r\n visited01[destination]=true;\r\n source=destination;\r\n destination=0;\r\n }\r\n else {\r\n destination++;\r\n }\r\n }\r\n exitTimes[stack.peek()]=exitTimeTicker;\r\n exitPoints[exitTimeTicker]=stack.peek();\r\n stack.pop();\r\n exitTimeTicker++;\r\n }\r\n }\r\n }\r\n\r\n\r\n boolean graphTransposeUsingExits[][] = new boolean[islands][islands];\r\n for (int i=0; i<islands; i++)\r\n {\r\n for (int j=0; j<islands; j++)\r\n {\r\n if (graph[i][j])\r\n graphTransposeUsingExits[exitTimes[j]][exitTimes[i]]=true;\r\n }\r\n }\r\n\r\n\r\n //Second DFS\r\n boolean[] visited02 = new boolean[islands];\r\n int[] numberOfSCC = new int[islands];\r\n int currSCCnum=0;\r\n for (int exitTime=islands-1; exitTime>=0; exitTime--)\r\n {\r\n if (!visited02[exitTime])\r\n {\r\n //entryPointToScc=exitTime;\r\n visited02[exitTime]=true;\r\n numberOfSCC[exitPoints[exitTime]]=++currSCCnum;\r\n stack.push(exitTime);\r\n int source=exitTime;\r\n while (!stack.isEmpty())\r\n {\r\n source=stack.peek();\r\n int destination=0;\r\n while (destination<islands)\r\n {\r\n if (graphTransposeUsingExits[source][destination] && !visited02[destination])\r\n {\r\n if (numberOfSCC[exitPoints[destination]]==0) {\r\n numberOfSCC[exitPoints[destination]]=currSCCnum;\r\n }\r\n stack.push(destination);\r\n visited02[destination]=true;\r\n source=destination;\r\n destination=0;\r\n }\r\n else {\r\n destination++;\r\n } \r\n }\r\n stack.pop();\r\n } \r\n }\r\n }\r\n\r\n\r\n int[] sizeOfSCCs = new int[currSCCnum];\r\n for (int i=0; i<islands; i++) {\r\n sizeOfSCCs[numberOfSCC[i]-1]++;\r\n }\r\n \r\n int sccsMax = Integer.MIN_VALUE;\r\n for(int i=0; i<sizeOfSCCs.length; ++i) {\r\n \tif(sizeOfSCCs[i] > sccsMax) {\r\n \t\tsccsMax = sizeOfSCCs[i];\r\n \t}\r\n }\r\n return sccsMax;\r\n \r\n // Java 8\r\n //return Arrays.stream(sizeOfSCCs).summaryStatistics().getMax();\r\n }", "private final void computeAllEdgeLevelsFast() {\n int[] currentLevelEdgeNodes = new int[nEdges*2];\n int[] currentLevelEdgeIndexes = new int[nEdges*2];\n int currEdge = 0;\n int nextLevelEnd = 0;\n\n /**\n * \\ neighbours are behind the current edge.\n * '. \\\n * '. \\ nNeighbours[vi][ei] = 2\n * '.\\\n * O-----------> [next]\n * vi ei\n */\n\n\n int[][] nNeighbours = new int[nNodes][];\n for (int vi=0; vi<nNodes; ++vi) {\n int currX = xPositions[vi];\n int currY = yPositions[vi];\n\n int nOutgoingEdges = nOutgoingEdgess[vi];\n int[] outgoingEdges = outgoingEdgess[vi];\n \n int[] currNodeNNeighbours = new int[nOutgoingEdges];\n for (int ei=0; ei<nOutgoingEdges; ++ei) {\n // For each directed edge\n int ni = outgoingEdges[ei];\n int nextX = xPositions[ni];\n int nextY = yPositions[ni];\n\n // Count taut outgoing edges\n int count = 0;\n\n int nNextOutgoingEdges = nOutgoingEdgess[vi];\n int[] nextOutgoingEdges = outgoingEdgess[vi];\n for (int j=0; j<nNextOutgoingEdges; ++j) {\n int di = nextOutgoingEdges[j];\n if (graph.isTaut(nextX, nextY, currX, currY, xPositions[di], yPositions[di])) {\n ++count;\n }\n }\n\n currNodeNNeighbours[ei] = count;\n if (count == 0) {\n currentLevelEdgeNodes[nextLevelEnd] = vi;\n currentLevelEdgeIndexes[nextLevelEnd] = ei;\n ++nextLevelEnd;\n }\n }\n nNeighbours[vi] = currNodeNNeighbours;\n }\n\n \n int currLevel = 1;\n while (currEdge < nextLevelEnd && currLevel < levelLimit) {\n\n int currentLevelEnd = nextLevelEnd;\n for (; currEdge < currentLevelEnd; ++currEdge) {\n int currNode = currentLevelEdgeNodes[currEdge];\n int currEdgeIndex = currentLevelEdgeIndexes[currEdge];\n\n if (edgeLevels[outgoingEdgeIndexess[currNode][currEdgeIndex]] != LEVEL_W) continue;\n // Set edge level\n edgeLevels[outgoingEdgeIndexess[currNode][currEdgeIndex]] = currLevel;\n\n /**\n * Curr side must have no neighbours.\n * Opp side (next node) may have neighbours.\n * So remove neighbours from opposite side.\n * __\n * /| __\n * / .-'|\n * (no neighbours) / .-'\n * /.-'\n * O-----------> [n]\n * vi ei\n */\n // No need to remove neighbours from opposite edge. They are ignored automatically.\n\n\n int nextNode = outgoingEdgess[currNode][currEdgeIndex];\n\n int currX = xPositions[currNode];\n int currY = yPositions[currNode];\n int nextX = xPositions[nextNode];\n int nextY = yPositions[nextNode];\n\n int[] outgoingEdges = outgoingEdgess[nextNode];\n int nOutgoingEdges = nOutgoingEdgess[nextNode];\n\n int[] outgoingEdgeIndexes = outgoingEdgeIndexess[nextNode];\n\n int[] nextNodeNNeighbours = nNeighbours[nextNode];\n for (int j=0; j<nOutgoingEdges; ++j) {\n if (edgeLevels[outgoingEdgeIndexes[j]] != LEVEL_W) continue;\n int nextnextNode = outgoingEdges[j];\n int nextnextX = xPositions[nextnextNode];\n int nextnextY = yPositions[nextnextNode];\n if (!graph.isTaut(currX, currY, nextX, nextY, nextnextX, nextnextY)) continue;\n\n --nextNodeNNeighbours[j];\n if (nextNodeNNeighbours[j] == 0) {\n // push into next level's list.\n currentLevelEdgeNodes[nextLevelEnd] = nextNode;\n currentLevelEdgeIndexes[nextLevelEnd] = j;\n ++nextLevelEnd;\n }\n\n if (nextNodeNNeighbours[j] < 0) System.out.println(\"ERROR\");\n }\n }\n\n ++currLevel;\n }\n }", "private static LinkedList<Integer> localSearchSimulatedAnnealing(File fileNameWithPath, int kNeighborHood ) throws Exception{\n\t\t\n\t\tString traceString = \"\";\n\t\tdouble bestCost = Double.POSITIVE_INFINITY;\n\t\tLinkedList<Integer> bestTspList = null;\n\t\tdouble bestCycleTime = Double.POSITIVE_INFINITY;\n\n\t\tif (Project.runId == -1 )\n\t\t\tProject.runId = 1;\n\n\t\t/* \n\t\t * read the file and build the cost table\n\t\t */\n parseEdges(fileNameWithPath);\n\n /*\n\t\t * time starts once you read the data\n */\n\t\tdouble baseTime = System.nanoTime();\n\n\t\t/*\n\t\t * invoking furthest insertion algorithm to get the tsp\n\t\t */\n\t\tlong startNodeSeed = (long)(1000.0*generator.nextDouble());\n\t\tLinkedList<Integer> currentTspList = FurthestInsertion.generateTSP(Project.sourceGTree,startNodeSeed);\n\t\t\n\t\tdouble currentTspCost = tspCost(currentTspList);\n\n\t\tbestTspList = currentTspList;\n\t\tbestCost = currentTspCost;\n\t\tbestCycleTime = System.nanoTime() - baseTime;\n\n\t\t/* print the trace file */\n\t\ttraceString = String.format(\"%.2f, %d\",Math.round(((System.nanoTime()-baseTime)/nanosecs)*100.0)/100.0,Math.round(bestCost));\n\t\tprintTrace(runId,traceString);\n\n\t\t/*\n\t\t * time starts now - start annealing\n\t\t */\n\t\tdouble annealingProbabilityThreshold = .2*generator.nextDouble(); // acceptance prob threshold for bad results\n\t\tdouble T = 100; // annealing temp\n\t\tdouble coolingRate = .00000001; // rate of cooling in each step\n\n\t\t/*\n\t\t * remove the last node as it matches the first\n\t\t */\n\t\tcurrentTspList.removeLast();\n\n\t\twhile ( T > 1 )\n\t\t{\n\t\t\t/*\n\t\t\t * reached cutoff time\n\t\t\t */\n\t\t\tif ( System.nanoTime()-baseTime >= Project.cutoffTimeSeconds*nanosecs ) {\n\t\t\t\ttimedOut=true;\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\tdouble cycleStartTime = System.nanoTime();\n\n\t\t\tLinkedList<Integer> newTspList = currentTspList;\n\n\t\t\t/* do a 2 opt search in current k=5 neighborhood to get a newtsp */\n\t\t\t/* 1. Pick the first random element in the current tsp */\n\t\t\tint element2 = (int)((double)(newTspList.size()-1) * generator.nextDouble());\n\t\t\tint element1 = element2 - 1;\n\t\t\tif ( element1 == -1 ){\n\t\t\t\telement1 = newTspList.size()-1;\n\t\t\t}\n\t\t\t\n int delta;\n\n\t\t\t/*\n\t\t\t * search in the neighborhood specified\n * if not specified search all\n\t\t\t */\n if ( kNeighborHood != -1 ) {\n\t\t\t /* We want to search in the specified k=n neighborhoods of element1 */\n\t\t\t delta= (int)(2*kNeighborHood*generator.nextDouble()) - kNeighborHood;\n } else {\n\t\t\t delta= (int)((newTspList.size()-1)*generator.nextDouble()) - (int)(newTspList.size()/2);\n\t\t\t}\n\n\t\t\tif ( delta == 0 ) {\n\t\t\t\tdelta = 2;\n\t\t\t} else if ( delta == 1 ) {\n\t\t\t\tdelta = 2;\n\t\t\t} else if ( delta == -1) {\n\t\t\t\tdelta = -2; }\n\n\t\t\tint element4 = element2 + delta;\n\n\t\t\tif ( element4 < 0 ) {\n\t\t\t\telement4 = newTspList.size()+element4;\n\t\t\t}else if ( element4 >= newTspList.size() ) {\n\t\t\t\telement4 = element4-(newTspList.size()-1);\n\t\t\t}\n\n\t\t\tint element3 = element4 -1;\n\t\t\tif ( element3 == -1 ){\n\t\t\t\telement3 = newTspList.size()-1;\n\t\t\t}\n\n\n\t\t\t/* \n\t\t\t * the new tsp will have element2->element4.......element1->element3....\n\t\t\t */\n\t\t\tInteger vertex_3 = newTspList.get(element3);\n\t\t\tnewTspList.set(element3,newTspList.get(element2));\n\t\t\tnewTspList.set(element2,vertex_3);\n\n\t\t\t/*\n\t\t\t * from element2+1 to element3-1 swap to reverse their order\n\t\t\t */\n\t\t\twhile ( element2 < element3 ){\n\t\t\t\telement3 = element3-1;\n\t\t\t\tif ( element3 == -1 ) {\n\t\t\t\t\telement3 = newTspList.size()-1;\n\t\t\t\t}\n\n\t\t\t\telement2 = element2 + 1;\n\t\t\t\tif ( element2 == newTspList.size() ) {\n\t\t\t\t\telement3 = 0;\n\t\t\t\t}\n\n\t\t\t\tInteger tempVertex = newTspList.get(element2);\n\t\t\t\tnewTspList.set(element2,newTspList.get(element3));\n\t\t\t\tnewTspList.set(element3,tempVertex);\n\n\t\t\t}\n\n\t\t\tdouble newTspCost = tspCost(newTspList);\n\n\t\t\t/* if new local search solution is better than eariler take the search and continue search\n\t\t\t */\n\t\t\tif ( newTspCost <= currentTspCost ){\n\t\t\t\tcurrentTspList = newTspList;\n\t\t\t\tcurrentTspCost = newTspCost;\n\t\t\t} else {\n\t\t\t/* if new local search solution is not better than eariler \n\t\t\t * then check the difference and the probability at this stage of annealing\n\t\t\t * if probability is higher than threshold set, then keep new search ad continue, else discard \n\t\t\t */\n\t\t\t\tif ( Math.exp((currentTspCost - newTspCost) / T) > generator.nextDouble() ){\n\t\t\t\t\tcurrentTspList = newTspList;\n\t\t\t\t\tcurrentTspCost = newTspCost;\n\t\t\t\t}\n\t\t\t}\n\t\n\t\t\t//Subtract the start time from the finish time to get the actual algorithm running time; divide by 10e6 to convert to milliseconds\n\t\t\tdouble cycleTime = (System.nanoTime()-cycleStartTime);\n\n\t\t\t/* first improvement , take the best each time */\n\t\t\tif ( newTspCost < bestCost ) {\n\t\t\t\tbestCost = newTspCost;\n\t\t\t\tbestTspList = newTspList;\n\t\t\t\tbestCycleTime = cycleTime;\n\t\t\t\t/* print the trace file */\n\t\t\t\ttraceString = String.format(\"%.2f, %d\",Math.round(((System.nanoTime()-baseTime)/nanosecs)*100.0)/100.0,Math.round(bestCost));\n\t\t\t\tappendToTraceFile(runId,traceString);\n\n\t\t\t\tif ( bestCost <= optimalCost )\n\t\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\t/* the cooling */\n\t\t\tT = T - T * coolingRate;\n\n\t\t}\n\n\t\t/* print the sol file */\n\t\tprintSol(runId,bestTspList,bestCost);\n\n\t\t/* print the tab results file */\n\t\tappendTabResults(runId,bestCycleTime,bestCost,bestTspList);\n\n\t\treturn bestTspList;\n\n\t}", "private boolean dfs(int n, int[] P) { // 0 is empty, 1 is false, 2 is true\n if (P[n] != 0) {\n if (P[n] == 1) {\n return false;\n }\n else {\n return true;\n }\n }\n\n if (n == 1) {\n P[1] = 2;\n //return true;\n }\n else if (n == 2) {\n P[2] = 2;\n //return true;\n }\n else if (n == 3) {\n P[3] = 1;\n //return false;\n }\n else {\n boolean res = dfs(n-2, P) && dfs(n-3, P) || dfs(n-3, P) && dfs(n-4, P);\n P[n] = res ? 2 : 1;\n }\n\n return P[n] == 2;\n\n //P[n] = P[n-2] + P[n-3] == 4 || P[n-3] + P[n-4] == 4 ? 2 : 1;\n //boolean res = dfs(n-2, P) && dfs(n-3, P) || dfs(n-3, P) && dfs(n-4, P);\n //P[n] = res ? 2 : 1;\n //return res;\n }", "private void depthFirstSearch(Slot start, ArrayList<Pair<Slot, Slot>> moves, HashMap<Slot, Slot> parents) {\n boolean[][] visitedSlots = new boolean[Board.MAX_ROW][Board.MAX_COLUMN];\n\n setSlotsAsNotVisited(visitedSlots);\n\n Stack<Slot> dfsStack = new Stack<>();\n int color = start.getColor();\n\n dfsStack.push(start);\n Slot previous = start;\n\n boardObject.setSlotColor(boardObject.getSlot(start.getRow(), start.getColumn()), Slot.EMPTY);\n\n while (!dfsStack.empty()) {\n Pair<Slot, Slot> next;\n Slot current = dfsStack.pop();\n\n if (!visitedSlots[current.getRow()][current.getColumn()] && !current.equals(previous)) {\n if (!current.equals(start)) {\n visitedSlots[current.getRow()][current.getColumn()] = true;\n }\n\n next = new Pair<>(start, current);\n\n moves.add(next);\n }\n\n Slot up = getUp(current);\n Slot down = getDown(current);\n Slot left = getLeft(current);\n Slot right = getRight(current);\n\n if (left != null && !visitedSlots[left.getRow()][left.getColumn()]) {\n if (!isChild(current, left, parents)) {\n dfsStack.push(left);\n parents.put(left, current);\n }\n }\n\n if (down != null && !visitedSlots[down.getRow()][down.getColumn()]) {\n if (!isChild(current, down, parents)) {\n dfsStack.push(down);\n parents.put(down, current);\n }\n }\n\n if (right != null && !visitedSlots[right.getRow()][right.getColumn()]) {\n if (!isChild(current, right, parents)) {\n dfsStack.push(right);\n parents.put(right, current);\n }\n }\n\n if (up != null && !visitedSlots[up.getRow()][up.getColumn()]) {\n if (!isChild(current, up, parents)) {\n dfsStack.push(up);\n parents.put(up, current);\n }\n }\n\n previous = current;\n }\n\n boardObject.setSlotColor(boardObject.getSlot(start.getRow(), start.getColumn()), color);\n }", "private static void backtrackHelper(TreeNode current, int targetSum, List<TreeNode> path, List<List<Integer>> allPaths){\n if(current.left == null && current.right == null){\n if(targetSum == current.val){\n List<Integer> tempResultList = new ArrayList<>();\n // for(TreeNode node: path){\n // tempResultList.add(node.val);\n // }\n tempResultList.addAll(path.stream().mapToInt(o -> o.val).boxed().collect(Collectors.toList()));\n tempResultList.add(current.val);\n\n allPaths.add(tempResultList); // avoid reference puzzle\n }\n return;\n }\n\n // loop-recursion (Here only 2 choices, so we donot need loop)\n if(current.left != null){\n path.add(current);\n backtrackHelper(current.left, targetSum - current.val, path, allPaths);\n path.remove(current);\n }\n\n if(current.right != null){\n path.add(current);\n backtrackHelper(current.right, targetSum - current.val, path, allPaths);\n path.remove(current);\n }\n }", "private void findDetectivePath() {\n Cell current, next;\n detectivePath = new ArrayDeque<>();\n clearVisitedMarks();\n current = detective;\n current.visited = true;\n\n while (true) {\n next = nextNotVisitedCell(current);\n if (next == killer) {\n detectivePath.addLast(current);\n detectivePath.addLast(next);\n break;\n } else if (next != null) {\n detectivePath.addLast(current);\n current = next;\n current.visited = true;\n } else {\n current = detectivePath.pollLast();\n }\n }\n detectivePath.pollFirst();\n }", "private static Set<Integer> approxVertexCover(Set<Pair<Integer>> edges, Set<Integer> nodes, Set<Integer> currCover){\r\n\t\t/*\r\n\t\t * 1. Sort mutation groups by size.\r\n\t\t * 2. Find largest mutation (that hasn't been removed).\r\n\t\t * -> Find all edges with this group.\r\n\t\t * -> Store connecting nodes in currCover\r\n\t\t * -> Remove the node's connecting edges and corresponding nodes\r\n\t\t * 3. Repeat 2 until no edges left \r\n\t\t */\r\n\t\t//Initialize edges and nodes\r\n\t\tSet<Pair<Integer>> allEdges = new HashSet<Pair<Integer>>(edges);\r\n\t\tSet<Integer> allNodes = new HashSet<Integer>(nodes);\r\n\t\t\r\n\t\tint numEdgesInTree = getNumTotalEdges();\r\n\t\tint totalMut = (int) getTotalMutations();\r\n\t\t/**\r\n\t\t * Taken out for time testing\r\n\t\t */\r\n//\t\tSystem.out.println(\"Total Mutations: \" + totalMut);\r\n\t\tint conflictThreshold = getConflictThreshold(totalMut, numEdgesInTree);\r\n\t\t//System.out.println(\"Conflict Threshold: \" + conflictThreshold);\r\n\t\t//while there are still conflicting edges\r\n\t\twhile (!allEdges.isEmpty()){\r\n\t\t\t//find largest node\r\n\t\t\tint maxNode = -1;\r\n\t\t\tdouble maxMutRate = 0.0;\r\n\t\t\tfor (Integer node: allNodes){\r\n\t\t\t\tdouble currMutRate = rowToMutRateMap.get(node+1);\r\n\t\t\t\tif (currMutRate > maxMutRate){\r\n\t\t\t\t\tmaxMutRate = currMutRate;\r\n\t\t\t\t\tmaxNode = node;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t/* recalculate threshold */\r\n\t\t\tif (maxNode == 113){\r\n\t\t\t}\r\n\t\t\tconflictThreshold = getConflictThreshold(totalMut, numEdgesInTree);\r\n\t\t\t/**\r\n\t\t\t * Taken out for time testing\r\n\t\t\t */\r\n//\t\t\tSystem.out.println(\"Conflict Threshold: \" + conflictThreshold);\r\n\t\t\t/*\r\n\t\t\t * if the highest mut rate is less than\r\n\t\t\t * conflictThreshold, no more nodes\r\n\t\t\t * can be added to maximal independent set,\r\n\t\t\t * meaning remaining nodes should be put\r\n\t\t\t * in vertex cover\r\n\t\t\t */\r\n\t\t\tif (maxMutRate < conflictThreshold) {\r\n\t\t\t\tcurrCover.addAll(allNodes);\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t\t//remove largest node\r\n\t\t\tallNodes.remove(maxNode);\r\n\t\t\tnumEdgesInTree++;\r\n\t\t\t//find all nodes which conflict with largest\r\n\t\t\tfor (Pair<Integer> edge: allEdges){\r\n\t\t\t\tif (edge.getFirst().equals(maxNode)){\r\n\t\t\t\t\tint conflictNode = edge.getSecond().intValue();\r\n\t\t\t\t\tcurrCover.add(conflictNode);\r\n\t\t\t\t\t//allEdges.remove(edge);\r\n\t\t\t\t} else if (edge.getSecond().equals(maxNode)){\r\n\t\t\t\t\tint conflictNode = edge.getFirst().intValue();\r\n\t\t\t\t\tcurrCover.add(conflictNode);\r\n\t\t\t\t\t//allEdges.remove(edge);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t//System.out.println(\"Edges left after initial trimming: \" + allEdges.toString());\r\n\t\t\t//Remove these nodes\r\n\t\t\tallNodes.removeAll(currCover);\r\n\t\t\t//System.out.println(\"Remaining Nodes: \" + allNodes.toString());\r\n\t\t\t//Remove any edges \r\n\t\t\tSet<Pair<Integer>> edgesToRemove = new HashSet<Pair<Integer>>();\r\n\t\t\tfor (Pair<Integer> edge: allEdges){\r\n\t\t\t\tint first = edge.getFirst().intValue();\r\n\t\t\t\tint second = edge.getSecond().intValue();\r\n\t\t\t\tif (currCover.contains(first) || currCover.contains(second)){\r\n\t\t\t\t\t//allEdges.remove(edge);\r\n\t\t\t\t\tedgesToRemove.add(edge);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tallEdges.removeAll(edgesToRemove);\r\n\t\t\t//System.out.println(\"Edges left after final cuts: \" + allEdges.toString());\r\n\t\t}\r\n\t\treturn currCover;\r\n\t}", "static int[] bfs(int n, int m, int[][] edges, int s) {\r\n \r\n HashSet<Integer> aList[] = new HashSet[n];\r\n // Array of the nodes of the tree\r\n\r\n Queue<Integer> bfsQueue = new LinkedList();\r\n\r\n boolean visited[] = new boolean[n];\r\n // check if a node is visited or not\r\n\r\n\r\n int cost[] = new int[n];\r\n // cost to travel from one node to other\r\n\r\n for (int i = 0; i < n; i++) {\r\n // intialising the values\r\n visited[i] = false;\r\n cost[i] = -1;\r\n\r\n aList[i] = new HashSet<Integer>();\r\n // Each element of aList is a Set\r\n // To store the neighbouring nodes of a particular node\r\n }\r\n\r\n for (int i = 0; i < m; i++) {\r\n // let node[i] <--> node[j]\r\n\r\n // adding node[j] to neighbours list of node[i]\r\n aList[edges[i][0] - 1].add(edges[i][1] - 1);\r\n\r\n // adding node[i] to neighbours list of node[j]\r\n aList[edges[i][1] - 1].add(edges[i][0] - 1);\r\n }\r\n\r\n //\r\n s = s - 1;\r\n bfsQueue.add(s);\r\n visited[s] = true;\r\n cost[s] = 0;\r\n //\r\n \r\n \r\n while (!bfsQueue.isEmpty()) {\r\n \r\n int curr = bfsQueue.poll();\r\n // takes the last element of the queue\r\n \r\n for (int neigh : aList[curr]) { // iterating the neighbours of node 'curr'\r\n if (!visited[neigh]) { // checking if node neigh id already visited during the search\r\n visited[neigh ] = true;\r\n bfsQueue.add(neigh); //add the node neigh to bfsqueue\r\n cost[neigh] = cost[curr] + 6; \r\n }\r\n }\r\n }\r\n\r\n int result[] = new int[n-1];\r\n\r\n for (int i=0, j=0; i<n && j<n-1; i++, j++) {\r\n if (i == s){\r\n i++;\r\n }\r\n result[j] = cost[i];\r\n }\r\n \r\n return result;\r\n }", "public static void main(String[] args) {\n\n BDNode a = new BDNode(\"A\");\n BDNode b = new BDNode(\"B\");\n BDNode c = new BDNode(\"C\");\n BDNode d = new BDNode(\"D\");\n BDNode e = new BDNode(\"E\");\n\n a.link(b);\n a.link(d);\n b.link(a);\n b.link(c);\n b.link(e);\n c.link(b);\n c.link(d);\n d.link(a);\n d.link(c);\n d.link(e);\n e.link(b);\n e.link(d);\n\n BDNode target = e;\n\n/*\n // BFS\n Queue<BDNode> queue = new LinkedList<>();\n queue.offer(a);\n\n while(!queue.isEmpty()) {\n BDNode n = queue.poll();\n n.visit();\n System.out.println(n); // 찾는 여정 출력\n\n if(n.equals(target)) {\n System.out.println(\"BFS Found! \" + n);\n break;\n }\n\n for (BDNode l : n.links) {\n if(l.isVisited()) continue;\n if (queue.contains(l)) continue;\n queue.offer(l);\n }\n\n // 위랑 같은 표현\n// n.links.stream()\n// .filter(l -> !queue.contains(l))\n// .forEach(queue::offer);\n }\n*/\n\n // DFS\n Stack<BDNode> stack = new Stack<>();\n stack.push(a);\n\n while(!stack.isEmpty()) {\n BDNode n = stack.pop();\n n.visit();\n System.out.println(n); // 찾는 여정 출력\n\n if (n.equals(target)) {\n System.out.println(\"DFS Found! \" + n);\n break;\n }\n\n for (BDNode l : n.links) {\n if (l.isVisited()) continue;\n if (stack.contains(l)) continue;\n\n stack.push(l);\n }\n }\n\n\n }", "public String canWalkExactly(int N, int[] from, int[] to) {\n isVisited = new boolean[N];\n steps = new int[N];\n minSteps = new int[N];\n path = new Stack<>();\n adj = new ArrayList<>(N);\n allSCC = new ArrayList<>();\n for (int i = 0; i < N; i++)\n adj.add(new ArrayList<>());\n\n // populate adj based on from, to\n for (int i = 0; i < from.length; i++) {\n adj.get(from[i]).add(to[i]);\n }\n\n totalSteps = 0;\n Arrays.fill(isVisited, false);\n Arrays.fill(steps, UNVISITED);\n Arrays.fill(minSteps, UNVISITED);\n tarjanSCC(0);\n\n // check if 0 and 1 are in the same scc\n System.out.println(\"CHECKING\");\n boolean found = false;\n for (List<Integer> scc : allSCC) {\n if (scc.contains(0) && scc.contains(1)) {\n found = true;\n break;\n }\n }\n if (!found) return NO;\n// if(minSteps[0] != minSteps[1]) return NO;\n System.out.println(\"0 and 1 in the same scc\");\n /*\n Check if gcd of the length of all simple cycles is 1\n by checking if it is an aperiodic graph\n https://en.wikipedia.org/wiki/Aperiodic_graph\n */\n depths = new int[N];\n Arrays.fill(depths, UNVISITED);\n depths[0] = 0;\n findDepths(0);\n\n int res = -1;\n for (int i = 0; i < from.length; i++) {\n int s = from[i];\n int t = to[i];\n if (depths[s] == UNVISITED || depths[t] == UNVISITED) continue;\n int len = depths[t] - depths[s] - 1;\n if (len == 0) continue;\n if (len < 0) len *= -1;\n if (res == -1) res = len;\n else res = gcd(res, len);\n }\n\n return res == 1 ? YES : NO;\n }", "private static void iddfs(State curr, int depth) {\n for(int i = 0; i <= depth; i++) {\r\n\r\n if(curr.isGoalState()) \r\n System.out.println(i+\":\"+curr.getOrderedPair()+\" Goal\");//initial is goal state\r\n else\r\n System.out.println(i+\":\"+curr.getOrderedPair());//initial\r\n\r\n curr.close.add(curr);\r\n State currState = curr;\r\n while(!currState.isGoalState()) {\r\n if(currState.depth < i)\r\n curr.buildStack(currState.getSuccessors(currState));\r\n System.out.print(i+\":\");\r\n curr.printHelp(currState, 5);\r\n if(!curr.open.isEmpty()) {\r\n currState = curr.open.get(curr.open.size()-1);\r\n curr.close.add(curr.open.remove(curr.open.size()-1));\r\n } else {\r\n break;\r\n }\r\n }\r\n\r\n if(currState.isGoalState()) {\r\n System.out.println(i+\":\"+currState.getOrderedPair() + \" Goal\");\r\n curr.printPath(currState);\r\n return;\r\n }\r\n curr.open.clear(); curr.close.clear();\r\n }\r\n }", "void calc_closure(){\r\n\t\tint [] queue = new int[maxn];\r\n\t\tint head,tail,i,j,k;\r\n\t\tfor (i=0; i<state; ++i){\r\n\t\t\tfor (j=0; j<state; ++j)\r\n\t\t\t\tclosure[i][j]=false;\r\n\t\t\t\r\n\t\t\t//Breadth First Search\r\n\t\t\thead=-1;\r\n\t\t\ttail=0;\r\n\t\t\tqueue[0]=i;\r\n\t\t\tclosure[i][i]=true;\r\n\t\t\twhile (head<tail){\r\n\t\t\t\tj=queue[++head];\r\n\t\t\t\t//search along epsilon edge\r\n\t\t\t\tfor (k=0; k<state; ++k)\r\n\t\t\t\t\tif ((!closure[i][k])&&(g[j][symbol][k]))\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tqueue[++tail]=k;\r\n\t\t\t\t\t\tclosure[i][k]=true;\r\n\t\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}", "int dfs(String wheel, Set<String> deadendSet, Set<String> visited, String target, int depth) {\n\t\t// System.out.printf(\"dfs visit: %2s (depth: %d)\\n\", wheel, depth);\n\t\t++numDFSCalls;\n\t\t// scanner.nextLine();\n\n\t\tif (deadendSet.contains(wheel)) return Integer.MAX_VALUE;\n\t\tif (wheel.equals(target)) return 0;\n\n\t\tvisited.add(wheel);\n\t\tint d = Integer.MAX_VALUE;\n\t\tfor (String next : nextState(wheel)) {\n\t\t\tif (!visited.contains(next)) {\n\t\t\t\tint d1 = dfs(next, deadendSet, visited, target, depth+1);\n\t\t\t\td = Math.min(d, d1);\n\t\t\t}\n\t\t}\n\t\tvisited.remove(wheel);\n\n\t\treturn d < Integer.MAX_VALUE ? ++d : d;\n\t}", "public void optimize(){\n\n NfaState currState;\n HashMap<Integer, State> statesCloned = (HashMap)states.clone();\n\n\n boolean removed;\n\n for(Map.Entry<Integer, State> entry : statesCloned.entrySet()) {//for each state of the nfa\n\n do {\n removed=false;\n Integer id = entry.getKey();\n\n if (states.get(id) == null)//state already been removed\n continue;\n else\n currState = (NfaState) entry.getValue();\n\n HashMap<String, ArrayList<Integer>> startEdges = currState.getOut_edges();\n\n for (Map.Entry<String, ArrayList<Integer>> startEdge : startEdges.entrySet()) {//for each edge of the current state being optimezed\n\n ArrayList<Integer> transactions = new ArrayList(startEdge.getValue());\n\n\n for (Integer state2DegID : transactions) {// for each transaction the 2nd degree state\n NfaState stateDeg2 = (NfaState) states.get(state2DegID);\n\n if (stateDeg2.getOut_edges() == null)\n continue;\n\n\n\n ArrayList<Integer> edgesDeg2 = stateDeg2.getOut_edges().get(EPSILON);\n\n if (edgesDeg2 != null && edgesDeg2.size() == 1 && stateDeg2.getOut_edges().size() == 1) {//if the next state has only a epsilon transaction, we can remove this state\n NfaState successor = (NfaState) states.get(edgesDeg2.get(0));\n\n\n for (Map.Entry<String, ArrayList<Integer>> inEdgesDeg2 : stateDeg2.getIn_edges().entrySet()) {//for every in_edge of the state being removed, update the elements accordingly\n String key = inEdgesDeg2.getKey();\n\n if (inEdgesDeg2.getValue().size() > 0)\n removed = true;\n\n for (Integer stateBeingUpdatedId : inEdgesDeg2.getValue()) {//state to be updated\n NfaState stateBeingUpdated = (NfaState) states.get(stateBeingUpdatedId);\n //add new edge\n stateBeingUpdated.addEdge(key, successor);\n\n //remove out and in edge to intermediate\n stateBeingUpdated.getOut_edges().get(key).remove((Integer) stateDeg2.getId());\n }\n }\n\n //remove out_edges\n for (Map.Entry<String, ArrayList<Integer>> outEdgesDeg2 : stateDeg2.getOut_edges().entrySet()) {\n for (Integer sucId : outEdgesDeg2.getValue()){\n ((NfaState)states.get(sucId)).getIn_edges().get(outEdgesDeg2.getKey()).remove((Integer) stateDeg2.getId());\n }\n }\n //remove state\n states.remove(stateDeg2.getId());\n }\n }\n\n }\n\n }while (removed);\n }\n }", "public void DFS() {\r\n\t\tSet<Vertex> visited = new HashSet<Vertex>();\r\n\r\n\t\t// Create a stack for DFS\r\n\t\tStack<Vertex> stack = new Stack<Vertex>();\r\n\r\n\t\tDFS(this.vertices[3], visited, stack); // DFS starting with 40\r\n\r\n\t\t// Call the helper function to print DFS traversal\r\n\t\t// starting from all vertices one by one\r\n\t\tfor (int i = 0; i < N; ++i)\r\n\t\t\tif (!visited.contains(this.vertices[i]))\r\n\t\t\t\tDFS(this.vertices[i], visited, stack);\r\n\t}", "public boolean canPartition(int[] nums) {\n int sum = 0;\n int n = nums.length;\n for (int num : nums) sum += num;\n // sum cannot be splitted evenly\n if ((sum & 1) == 1) return false;\n int target = sum / 2;\n \n // dp[i][j] represents whether 0~i-1 numbers can reach\n // weight capacity j\n boolean[][] dp = new boolean[n+1][target+1];\n \n for (int i = 1; i <= n; i++) dp[i][0] = true;\n for (int j = 1; j <= target; j++) dp[0][j] = false;\n dp[0][0] = true;\n \n for (int i = 1; i <= n; i++) {\n for (int j = 1; j <= target; j++) {\n // if don't pick current number\n dp[i][j] = dp[i-1][j];\n if (j >= nums[i-1]) {\n dp[i][j] = dp[i][j] || dp[i-1][j-nums[i-1]];\n }\n }\n }\n return dp[n][target];\n \n \n // Solution2: optimizing to save space\n // https://leetcode.com/problems/partition-equal-subset-sum/discuss/90592/01-knapsack-detailed-explanation/94996\n int sum = 0;\n int n = nums.length;\n for (int num : nums) sum += num;\n if ((sum & 1) == 1) return false;\n int target = sum / 2;\n boolean[] dp = new boolean[target+1];\n dp[0] = true;\n for (int num : nums) {\n // here is the trick to save space\n // because we have to update dp[j] based on \n // previous dp[j-num] and dp[j] from previous loop.\n // if we update dp from left to right\n // we first update smaller dp which is dp[j-num]\n // then we won't be able to get original dp[j-num] and dp[j]\n // from previous loop, and eventually we get the wrong\n // answer. But if we update dp from right to left\n // we can assure everything is based on previous state\n for (int j = target; j >= num; j--) {\n // if (j >= num) {\n dp[j] = dp[j] || dp[j-num];\n // }\n }\n }\n return dp[target];\n }", "private void DFS() {\n\t\tfor(Node node: nodeList) {\r\n\t\t\tif(!node.isVisited())\r\n\t\t\t\tdfsVisit(node);\r\n\t\t}\r\n\t}", "public void DFS(List<List<Integer>> result, List<Integer> temp, int n, int start){\n for(int i = start; i * i <= n; i++){\n //we skip undividable factor\n if(n%i != 0) continue;\n \n //found a pair of factor, we can add them to temp list to build a valid factor combination\n List<Integer> copy = new ArrayList<Integer>(temp);\n //since i <= n/i, we will add i first, then n/i\n copy.add(i);\n copy.add(n/i);\n result.add(copy);\n \n //then we try to decompose larger n/i factor, and our later factors shall not be > i, since i has been inserted into list \n temp.add(i);\n DFS(result, temp, n/i, i);\n temp.remove(temp.size() - 1);\n }\n }", "private static double minMaxPruning(GameState state, int depth, double alpha, double beta){\n\n double v = 0;\n\n // A vector containing all possible children states if this current state\n Vector<GameState> nextStates = new Vector<GameState>();\n state.findPossibleMoves(nextStates);\n\n /**\n // Try testing win/loss before going into depth search\n Move m = state.getMove();\n\n if(m.isXWin()){\n return 1000+depth;\n }\n\n else if(m.isOWin()){\n return -1;\n }\n */\n if (depth==0 || nextStates.size()==0){\n v = evalState(state);\n }\n\n // 2 is 'O' so if nextPlayer is 2 it means that the current player is 'X'\n else if (state.getNextPlayer() == 1){\n v=Double.NEGATIVE_INFINITY;\n\n for(GameState s: nextStates){\n v = Math.max(v, minMaxPruning(s,depth-1, alpha, beta));\n alpha = Math.max(alpha, v);\n if(beta <= alpha) {\n return v;\n }\n }\n }\n // 1 is 'X' so if nextplayer is 1 it means that the current player is 'O'\n else if (state.getNextPlayer() == 2){\n v=Double.POSITIVE_INFINITY;\n\n for(GameState s: nextStates){\n v= Math.min(v,minMaxPruning(s,depth-1, alpha, beta));\n beta = Math.min(beta, v);\n if( beta <= alpha ) {\n return v;\n }\n }\n }\n return v;\n }", "public void aEstrella (String input)\r\n\t{\r\n\t\tNode root_aEstrella = new Node (input);\r\n\t\tNode current = new Node(root_aEstrella.getState());\r\n\t\t\r\n\t\tHeuristicComparator aEstrella_comparator = new HeuristicComparator();\r\n\t\tPriorityQueue<Node> queue_gbfs = new PriorityQueue<Node>(12, aEstrella_comparator);\r\n\t\tArrayList<String> visited = new ArrayList<String>();\r\n\t\tArrayList<String> children = new ArrayList<String>();\r\n\t\t\r\n\t\tint nodes_popped = 0;\r\n\t\tint pqueue_max_size = 0;\r\n\t\tint pq_size = 0;\r\n\t\t\r\n\t\tcurrent.cost = 0;\r\n\t\tcurrent.setTotalCost(0);\r\n\t\t\r\n\t\twhile(!goal_aEstrella)\r\n\t\t{\r\n\t\t\tvisited.add(current.getState());\r\n\t\t\tchildren = Successor.findChildren(current.getState());\r\n\t\t\t\r\n\t\t\tfor (String a : children)\r\n\t\t\t{\r\n\t\t\t\t\r\n\t\t\t\tif (visited.contains(a))\r\n\t\t\t\t{\r\n\t\t\t\t\tcontinue;\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\tNode nino = new Node(a);\r\n\t\t\t\t\tcurrent.children_nodes.add(nino);\r\n\t\t\t\t\tvisited.add(nino.getState());\r\n\t\t\t\t\t\r\n\t\t\t\t\tint cost = isCost(current.getState(), nino.getState());\r\n\t\t\t\t\tnino.cost = cost;\r\n\t\t\t\t\tnino.parent = current;\r\n\t\t\t\t\tint greedy_cost = greedybfsCost(nino.getState(), root_aEstrella.getState());\r\n\t\t\t\t\tnino.setTotalCost(nino.parent.getTotalCost() + nino.cost);\r\n\t\t\t\t\t\r\n\t\t\t\t\t// f(n) = g(n) + h(n)\r\n\t\t\t\t\tnino.setHeuristicCost(nino.getTotalCost() + greedy_cost);\r\n\t\t\t\t\t\r\n\t\t\t\t\tif (!queue_gbfs.contains(nino))\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tqueue_gbfs.add(nino);\r\n\t\t\t\t\t\tpq_size++;\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\t\t// Repeated State checking. Removing the same node from PQ if the path cost is less then the current one \r\n\t\t\t\t\telse if (queue_gbfs.contains(nino))\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tfor (Node original : queue_gbfs)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tif (original.equals(nino))\r\n\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\tNode copy = original;\r\n\t\t\t\t\t\t\t\tif (nino.getHeuristicCost() < copy.getHeuristicCost())\r\n\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\tqueue_gbfs.remove(copy);\r\n\t\t\t\t\t\t\t\t\tqueue_gbfs.add(nino);\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}\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tcurrent = queue_gbfs.poll();\r\n\t\t\tnodes_popped++;\r\n\t\t\t\r\n\t\t\tif (pq_size > pqueue_max_size)\r\n\t\t\t{\r\n\t\t\t\tpqueue_max_size = pq_size;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tpq_size--;\r\n\t\t\tgoal_aEstrella = isGoal(current.getState());\r\n\t\t\t\r\n\t\t}\r\n\t\t\r\n\t\tgoal_aEstrella = false;\r\n\t\tSystem.out.println(\"A* Solved!!\");\r\n\t\tSolution.performSolution(current, root_aEstrella, nodes_popped, pqueue_max_size);\r\n\t}", "private static int dfs( int n, int level, int min ) {\n\n if (n == 0 || level >= min) return level; //returns only number of perfect squares\n\n for (int i = (int) Math.sqrt(n); i > 0; i--) { //Math.sqrt = same as prime-sieve of prime numbers\n\n min = dfs(n - ((int) Math.pow(i, 2)), level + 1, min);\n\n }\n return min;\n }", "public int findCheapestPrice(int n, int[][] flights, int src, int dst, int K) {\n Map<Integer, List<Node>> map = new HashMap<>();\n for (int[] flight : flights) {\n if (map.containsKey(flight[0])) {\n map.get(flight[0]).add(new Node(flight[1], flight[2]));\n } else {\n List<Node> list = new ArrayList<>();\n list.add(new Node(flight[1], flight[2]));\n map.put(flight[0], list);\n }\n }\n\n\n boolean[] visited = new boolean[n];\n int[] cache = new int[n];\n dfs(map, src, dst, K, -1, 0, visited);\n return min == Integer.MAX_VALUE ? -1 : min;\n }", "public static void main(String[] args) throws IOException {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tBufferedWriter bw = new BufferedWriter(new OutputStreamWriter(System.out));\n\t\tStringTokenizer st = new StringTokenizer(br.readLine());\n\t\tN = Integer.parseInt(st.nextToken());\n\t\t\n\t\tint size = 1;\n\t\twhile(max_node > size) {\n\t\t\tsize *= 2;\n\t\t\tmax_level++;\n\t\t}\n\t\t\n\t\tfor(int i=0; i<= N; i++)\n\t\t{\n\t\t\tadj.add(new ArrayList<>());\n\t\t}\n\t\t\n\t\tint dx=0, dy=0, dz = 0;\n\t\tfor(int i=1; i<= N-1; i++)\n\t\t{\n\t\t\tst = new StringTokenizer(br.readLine());\n\t\t\tdx = Integer.parseInt(st.nextToken());\n\t\t\tdy = Integer.parseInt(st.nextToken());\n\t\t\tadj.get(dx).add(dy);\n\t\t\tadj.get(dy).add(dx);\n\t\t}\n\t\t\n\t\tdepth[0] = -1;\n\t\tdfs(1,0);\n\t\t\n\t\tst = new StringTokenizer(br.readLine());\n\t\tM = Integer.parseInt(st.nextToken());\n\t\tfor(int i=1; i<= M; i++)\n\t\t{\n\t\t\tst = new StringTokenizer(br.readLine());\n\t\t\tdx = Integer.parseInt(st.nextToken());\n\t\t\tdy = Integer.parseInt(st.nextToken());\n\t\t\tdz = Integer.parseInt(st.nextToken());\n\t\t\tcurDepth = -1; result = -1;\n\t\t\t\n\t\t\tquery(dx, dy);\n\t\t\tquery(dx, dz);\n\t\t\tquery(dy, dz);\n\t\t\t\n\t\t\tbw.write(result+\"\\n\");\n\t\t}\n\t\tbw.flush();\n\t}", "private void gameTree(MinimaxNode<GameState> currentNode, int depth, int oIndex){\n currentNode.setNodeIndex(oIndex); \n if (depth == 0) {\n return;\n }\n else{\n if (currentNode.getState().isDead(oIndex)){ //checks to see if current player is dead, if so, just skips their moves\n int newIndex = (oIndex + 1) % currentNode.getState().getNrPlayers();\n/* if(oIndex == 3){\n newIndex = 0;\n }\n else{\n newIndex = oIndex + 1;\n }*/\n gameTree(currentNode, depth-1, newIndex);\n }\n else{\n //this if statement sets up chance nodes, if the target has been met it will create 5 children nodes with randomly generated new target postitions \n if(!currentNode.getState().hasTarget()){\n currentNode.setChanceNode();\n for(int i = 1; i <= 5; i++){\n try{\n GameState newState = (GameState)currentNode.getState().clone();\n newState.chooseNextTarget();\n MinimaxNode<GameState> childNode = new MinimaxNode(newState);\n childNode.setProbability(0.2);\n currentNode.addChild(childNode); \n }\n catch (CloneNotSupportedException e){\n System.out.println(\"Clone not excepted\");\n }\n \n }\n for (int i = 0; i < currentNode.getNumberOfChildren(); i++){\n gameTree(currentNode.getChildren().get(i), depth, oIndex);\n }\n\n }\n else{\n List<Integer> options = new ArrayList();\n for (int i = 1; i <= 4; i++) {\n if (currentNode.getState().isLegalMove(oIndex, i)){\n options.add(i);\n }\n }\n for (int i = 0; i < options.size(); i++){\n try{\n GameState newState = (GameState)currentNode.getState().clone();\n newState.setOrientation(oIndex, options.get(i));\n newState.updatePlayerPosition(oIndex);\n MinimaxNode<GameState> childNode = new MinimaxNode(newState);\n currentNode.addChild(childNode);\n }\n catch (CloneNotSupportedException e){\n System.out.println(\"Clone not excepted\");\n }\n }\n int newIndex = (oIndex + 1) % currentNode.getState().getNrPlayers();\n /* if(oIndex == 3){\n newIndex = 0;\n }\n else{\n newIndex = oIndex + 1;\n }*/\n for (int i = 0; i < currentNode.getNumberOfChildren(); i++){\n gameTree(currentNode.getChildren().get(i), depth-1, newIndex);\n }\n } \n } \n }\n }", "public static void main(String[] args) {\n\t\tScanner sc=new Scanner(System.in);\n\t\tn=sc.nextInt();\n\t\t\n\t\tint [][]arr=new int[n][n];\n\t\tint xShark=0;\n\t\tint yShark=0;\n\t\tint size=2;\n\t\tfor(int i=0;i<n;i++) {\n\t\t\tfor(int j=0;j<n;j++) {\n\t\t\t\tarr[i][j]=sc.nextInt();\n\t\t\t\tif(arr[i][j]==9) {\n\t\t\t\t\txShark=i;\n\t\t\t\t\tyShark=j;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tint go=0;\n\t\tint eat=0;\n\t\twhile(true) {\n\t\t\tList<Node> list=new ArrayList<>();\n\t\t\tnarr=new int[n][n];\n\t\t\tint min=Integer.MAX_VALUE;\n\t\t\t\n\t\t\tcanGo(arr, xShark, yShark, size);\n\t\t\tSystem.out.println();\n\t\t\tfor(int i=0;i<n;i++) {\n\t\t\t\tfor(int j=0;j<n;j++)System.out.print(narr[i][j]);\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\t\t\tfor(int i=0;i<n;i++) {\n\t\t\t\tfor(int j=0;j<n;j++) {\n\t\t\t\t\tif(narr[i][j]>0) {\n\t\t\t\t\t\tlist.add(new Node(i,j,narr[i][j]));\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\n\t\t\t//System.out.println(\"s\"+list.size());\n\t\t\t\n\t\t\t\n\t\t\tif(list.isEmpty())break;\n\t\t\tCollections.sort(list);\n\t\t\tNode N=list.get(0);\n\t\t\t//System.out.println(xShark+\" \"+yShark+\" \"+go);\n\t\t\tarr[xShark][yShark]=0;\n\t\t\txShark=N.x;\n\t\t\tyShark=N.y;\n\t\t\tarr[xShark][yShark]=9;\n\t\t\tgo+=N.distance;\n\t\t\teat++;\n\t\t\tif(eat==size) {\n\t\t\t\teat=0;\n\t\t\t\tsize++;\n\t\t\t}\n\t\t\t/*System.out.println(xShark+\" \"+yShark+\" \"+go);\n\t\t\tfor(int i=0;i<n;i++) {\n\t\t\t\tfor(int j=0;j<n;j++)System.out.print(arr[i][j]);\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\t\t\tfor(int i=0;i<list.size();i++)System.out.println(list.get(i).toString());*/\n\t\t\t//System.out.println();\n\t\t}\n\t\tSystem.out.println(go);\n\t\t\n\t\t\n\t\t\n\t\t\n\t}", "static int APUtil(ArrayList<Arista>[] adj, int u, boolean visited[], int disc[], int low[], int parent[], int ap[]){\n\n // Count of children in DFS Tree\n int children = 0;\n\n // Mark the current node as visited\n visited[u] = true;\n\n // Initialize discovery time and low value\n disc[u] = low[u] = ++time;\n\n // Go through all vertices aadjacent to this\n for (Arista arista : adj[u]) {\n int v = arista.to; // v is current adjacent of u\n\n // If v is not visited yet, then make it a child of u\n // in DFS tree and recur for it\n if (!visited[v]) {\n children++;\n parent[v] = u;\n sol = APUtil(adj, v, visited, disc, low, parent, ap);\n\n // Check if the subtree rooted with v has a connection to\n // one of the ancestors of u\n low[u] = Math.min(low[u], low[v]);\n\n // u is an articulation point in following cases\n\n // (1) u is root of DFS tree and has two or more chilren.\n if (parent[u] == -1 && children > 1){\n ap[u]++;\n if((ap[u] > ap[sol]) || (ap[u] == ap[sol] && u < sol))\n sol = u;\n }\n\n\n // (2) If u is not root and low value of one of its child\n // is more than discovery value of u.\n if (parent[u] != -1 && low[v] >= disc[u]){\n ap[u]++;\n if((ap[u] > ap[sol]) || (ap[u] == ap[sol] && u < sol))\n sol = u;\n }\n\n }\n\n // Update low value of u for parent function calls.\n else if (v != parent[u])\n low[u] = Math.min(low[u], disc[v]);\n }\n\n return sol;\n }", "public static void main(String[] args)\n {\n int N = 30;\n int[] moves = new int[N];\n /*for (int i = 0; i < N; i++)\n moves[i] = -1;*/\n Arrays.fill(moves,-1);\n\n // Ladders\n moves[2] = 21;\n moves[4] = 7;\n moves[10] = 25;\n moves[19] = 28;\n\n // Snakes\n moves[26] = 0;\n moves[20] = 8;\n moves[16] = 3;\n moves[18] = 6;\n //efficiently find shortest path using Breadth First Search of the graph.\n System.out.println(\"Min Dice throws required is \" + getMinDiceThrows(moves, N));\n }", "private static int minCoins_my_way_infinite_coins_of_one_value_case(int[] coins, int startIndex, int endIndex, int amount) {\n\n if (coins.length == 0) return 0;\n\n if (startIndex == endIndex) {\n int currentCoin = coins[startIndex];\n\n if (currentCoin == amount) {// coins=(8) amount=8\n return 1;\n }\n if (currentCoin > amount) {// coins=(9) amount=8\n return 0;\n }\n if (currentCoin < amount) {\n // IMPORTANT: This code assumes that you can use only 1 coin of the same value (you can't use infinite number of coins of the same value).\n //return 0;\n\n // This code assumes that you can use infinite number of coins of the same value.\n // e.g. currentCoin=1 and amount=8, then 8 coins of 1s can be used\n if (amount % currentCoin == 0) { // coins=(1) amount=8 should return 8 because you can use 8 coins of value 1 to make amount=8\n return amount / currentCoin;\n }\n return 0; // coins=(3) amount=8 should return 0 because you can't use 1 or more coins of value 3 to make amount=8\n }\n }\n\n // IMPORTANT\n // You don't need any coin to make amount=0\n // By seeing recursive call, you will figure out that amount can reach to 0. So, you need an exit condition for amount==0\n if (amount == 0) {\n return 0;\n }\n\n int currentCoin = coins[startIndex];\n\n int minUsingCurrentCoin = 0;\n\n if (currentCoin == amount) {\n minUsingCurrentCoin = 1;\n } else if (currentCoin > amount) {\n minUsingCurrentCoin = 0;\n } else {\n /*\n if currentCoin=1 and amount=8, then maxNumberOfCoinsThatCanBeUsedToMakeAmount will be 8.\n if currentCoin=3 and amount=8, then maxNumberOfCoinsThatCanBeUsedToMakeAmount be 2\n you need to consider both these situations for coming up with the correct code\n\n Case 1:\n coins = (1,6) amount=8\n currentCoin=1. So, maxNumberOfCoinsThatCanBeUsedToMakeAmount = 8\n\n coin numberOfCurrentCoins(i) amountConsumedByCurrentCoin coinsUsedFromRemaining totalCoinsUsed\n remaining coins amount\n 1 1 1 (6) 7 = 0 0 (when you cannot make remaining amount using remaining coins, then you cannot make total amount including current coin also)\n 1 2 2 (6) 6 = 1 2+1=3\n 1 3 3 (6) 5 = 0 0\n 1 4 4 (6) 4 = 0 0\n 1 5 5 (6) 3 = 0 0\n 1 6 6 (6) 2 = 0 0\n 1 7 7 (6) 1 = 0 0\n 1 8 8 (6) 0 = 0 8 (special condition - even though you could not make remaining amount using remaining coins, you could make total amount using current coin)\n\n Case 2:\n coins = (3,6) amount=8\n currentCoin=3. So, maxNumberOfCoinsThatCanBeUsedToMakeAmount = 2\n\n coin numberOfCurrentCoins(i) amountConsumedByCurrentCoin coinsUsedFromRemaining totalCoinsUsed\n remaining coins amount\n 3 1 3 (6) 3 = 0 0 (when you cannot make remaining amount using remaining coins, then you cannot make total amount including current coin also)\n 3 2 6 (6) 2 = 0 0\n\n */\n int maxNumberOfCoinsThatCanBeUsedToMakeAmount = amount / currentCoin;\n\n int min = 0;\n\n for (int i = 1; i <= maxNumberOfCoinsThatCanBeUsedToMakeAmount; i++) {\n int amountConsumedByCurrentCoin = i * currentCoin;\n\n int minFromRemaining = minCoins_my_way_infinite_coins_of_one_value_case(coins, startIndex + 1, endIndex, amount - amountConsumedByCurrentCoin);\n\n if (minFromRemaining == 0) {// If I could not make remaining amount using remaining coins, then I cannot make total amount including current coin (except one special condition)\n if (amountConsumedByCurrentCoin == amount) {// special condition - even though you could not make remaining amount using remaining coins, you could make total amount using current coin\n min = i;\n } else {\n min = 0;\n }\n } else {\n min = i + minFromRemaining;\n }\n\n if (minUsingCurrentCoin == 0 && min > 0) {\n minUsingCurrentCoin = min;\n } else if (minUsingCurrentCoin > 0 && min == 0) {\n // don't change minUsingCurrentCoin\n } else {\n if (min < minUsingCurrentCoin) {\n minUsingCurrentCoin = min;\n }\n }\n }\n }\n\n int minWaysUsingRestOfTheCoins = minCoins_my_way_infinite_coins_of_one_value_case(coins, startIndex + 1, endIndex, amount);\n\n if (minWaysUsingRestOfTheCoins == 0 && minUsingCurrentCoin > 0) {\n return minUsingCurrentCoin;\n } else if (minWaysUsingRestOfTheCoins > 0 && minUsingCurrentCoin == 0) {\n return minWaysUsingRestOfTheCoins;\n }\n return Math.min(minUsingCurrentCoin, minWaysUsingRestOfTheCoins);\n\n }", "public MyArrayList<MyArrayList<Node>> findStronglyConnectedComponents(boolean recursive, boolean timing) {\n long startTime = System.currentTimeMillis();\n //(1) Run DFS on the graph G\n if (recursive) {\n this.DFSRecursive();\n } else {\n this.DFS();\n }\n if (timing) {\n System.out.println(\"Finished first DFS: \" + (System.currentTimeMillis() - startTime));\n }\n //(2) Construct G^t - graph with reversed edges\n Graph Gt = this.constructReversedGraph();\n if (timing) {\n System.out.println(\"Finished constructing Gt: \" + (System.currentTimeMillis() - startTime));\n }\n //(3) Sort the nodes in G^t by finishing times in the first DFS\n if (recursive) {\n SortingUtils.mergeSortRecursive(Gt.nodes);\n } else {\n SortingUtils.mergeSort(Gt.nodes);\n }\n if (timing) {\n System.out.println(\"Finished merge sort: \" + (System.currentTimeMillis() - startTime));\n }\n //(4) Run DFS on graph G^t taking vertices in descending order of finishing times (since we just sorted them)\n if (recursive) {\n return Gt.DFSRecursive();\n } else {\n return Gt.DFS();\n }\n }", "public List<Long> getPath(Long start, Long finish){\n \n \n List<Long> res = new ArrayList<>();\n // auxiliary list\n List<DeixtraObj> serving = new ArrayList<>();\n// nearest vertexes map \n Map<Long,DeixtraObj> optimMap = new HashMap<>();\n// thread save reading \n synchronized (vertexes){ \n // preparation\n for (Map.Entry<Long, Vertex> entry : vertexes.entrySet()) {\n Vertex userVertex = entry.getValue();\n // If it`s start vertex weight = 0 and the nereast vertex is itself \n if(userVertex.getID().equals(start)){\n serving.add(new DeixtraObj(start, 0.0, start));\n }else{\n // For other vertex weight = infinity and the nereast vertex is unknown \n serving.add(new DeixtraObj(userVertex.getID(), Double.MAX_VALUE, null));\n }\n\n } \n // why auxiliary is not empty \n while(serving.size()>0 ){\n // sort auxiliary by weight \n Collections.sort(serving);\n\n \n // remove shortes fom auxiliary and put in to answer \n DeixtraObj minObj = serving.remove(0);\n optimMap.put(minObj.getID(), minObj);\n\n Vertex minVertex = vertexes.get(minObj.getID());\n\n // get all edges from nearest \n for (Map.Entry<Long, Edge> entry : minVertex.allEdges().entrySet()) {\n Long dest = entry.getKey();\n Double wieght = entry.getValue().getWeight();\n // by all remain vertexes \n for(DeixtraObj dx : serving){\n if(dx.getID().equals(dest)){\n // if in checking vertex weight more then nearest vertex weight plus path to cheking \n // then change in checking weight and nearest\n if( (minObj.getWeight()+wieght) < dx.getWeight()){\n dx.setNearest(minVertex.getID());\n dx.setWeight((minObj.getWeight()+wieght));\n }\n }\n }\n }\n\n }\n }\n \n // create output list\n res.add(finish);\n Long point = finish;\n while(!point.equals(start)){\n \n point = ((DeixtraObj)optimMap.get(point)).getNearest();\n res.add(point);\n }\n \n Collections.reverse(res);\n \n \n return res;\n \n }", "private void calculate() {\n\t\tList<Edge> path = new ArrayList<>();\n\t\tPriorityQueue<Vert> qv = new PriorityQueue<>();\n\t\tverts[s].dist = 0;\n\t\tqv.add(verts[s]);\n\t\twhile (!qv.isEmpty()) {\n\t\t\tVert v = qv.poll();\n\t\t\tint vidx = v.idx;\n\t\t\tfor (Edge e : v.edges) {\n\t\t\t\tif (e.w==0) {\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\tVert vo = verts[e.other(vidx)];\n\t\t\t\tif (vo.dist > v.dist + e.w) {\n\t\t\t\t\tvo.dist = v.dist + e.w;\n\t\t\t\t\tqv.add(vo);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tif (verts[t].dist < L) {\n\t\t\tok = false;\n\t\t\treturn;\n\t\t} else if (verts[t].dist == L) {\n\t\t\tok = true;\n\t\t\tfor (int i=0; i<m; i++) {\n\t\t\t\tif (edges[i].w == 0) {\n\t\t\t\t\tedges[i].w = MAX_DIST;\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn;\n\t\t}\n\t\t// replace 0 with 1, adding to za list\n\t\tfor (int i=0; i<m; i++) {\n\t\t\tif (edges[i].w == 0) {\n\t\t\t\tza[i] = true;\n\t\t\t\tedges[i].w = 1;\n\t\t\t} else {\n\t\t\t\tza[i] = false;\n\t\t\t}\n\t\t}\n\t\t\n\t\t// looking for shortest path from s to t with 0\n\t\tfor (int i=0; i<n; i++) {\n\t\t\tif (i != s) {\n\t\t\t\tverts[i].dist = MAX_DIST;\n\t\t\t}\n\t\t}\n\t\tqv.clear();\n\t\tqv.add(verts[s]);\n\t\twhile (!qv.isEmpty()) {\n\t\t\tVert v = qv.poll();\n\t\t\tint vidx = v.idx;\n\t\t\tfor (Edge e : v.edges) {\n\t\t\t\tVert vo = verts[e.other(vidx)];\n\t\t\t\tif (vo.dist > v.dist + e.w) {\n\t\t\t\t\tvo.dist = v.dist + e.w;\n\t\t\t\t\tqv.add(vo);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tif (verts[t].dist > L) {\n\t\t\tok = false;\n\t\t\treturn;\n\t\t}\n\t\tVert v = verts[t];\n\t\twhile (v.dist > 0) {\n\t\t\tlong minDist = MAX_DIST;\n\t\t\tVert vMin = null;\n\t\t\tEdge eMin = null;\n\t\t\tfor (Edge e : v.edges) {\n\t\t\t\tVert vo = verts[e.other(v.idx)];\n\t\t\t\tif (vo.dist+e.w < minDist) {\n\t\t\t\t\tvMin = vo;\n\t\t\t\t\teMin = e;\n\t\t\t\t\tminDist = vMin.dist+e.w;\n\t\t\t\t}\t\t\t\t\n\t\t\t}\n\t\t\tv = vMin;\t\n\t\t\tpath.add(eMin);\n\t\t}\n\t\tCollections.reverse(path);\n\t\tfor (int i=0; i<m; i++) {\n\t\t\tif (za[i]) {\n\t\t\t\tedges[i].w = MAX_DIST;\n\t\t\t}\n\t\t}\n\t\tlong totLen=0;\n\t\tboolean wFixed = false;\n\t\tfor (Edge e : path) {\n\t\t\ttotLen += (za[e.idx] ? 1 : e.w);\n\t\t}\n\t\tfor (Edge e : path) {\n\t\t\tif (za[e.idx]) {\n\t\t\t\tif (!wFixed) {\n\t\t\t\t\te.w = L - totLen + 1;\n\t\t\t\t\twFixed = true;\n\t\t\t\t} else {\n\t\t\t\t\te.w = 1;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tok = true;\n\t}", "public void doDfsIterative(Graph g, int s) {\n boolean[] myVisited = new boolean[8];\n Stack<Integer> stack = new Stack<>();\n stack.push(s);\n myVisited[s] = true;\n while (!stack.isEmpty()) {\n int top = stack.pop();\n System.out.print(\"[\" + top + \"] \");\n for (int e : g.adj[top]) {\n if (!myVisited[e]) {\n stack.push(e);\n myVisited[e] = true;\n }\n }\n }\n\n }", "@Override\n public void solve(Problem p) {\n Queue queue = new LinkedList();\n queue.add(p);\n closeList.add(p);\n\n while (!queue.isEmpty()) {\n\n Problem node = (Problem) queue.remove();\n if (node.isAnswer()) {\n printPath(node);\n return;\n }\n// System.out.println(node);\n node.generateNodes();\n nodesExpanded++;\n for (Iterator<Problem> it = node.nodes.iterator(); it.hasNext();) {\n nodesSeen++;\n Problem problem = it.next();\n if (closeList.contains(problem)) {\n continue;\n }\n problem.visited = true;\n problem.distanceTraveled = node.distanceTraveled + 1;\n// System.out.println(problem.distanceTraveled);\n// System.out.println(problem);\n queue.add(problem);\n closeList.add(problem);\n }\n maxNodes = Math.max(maxNodes, queue.size());\n }\n \n }", "private List<Pair<Integer, Integer>> getBestPath(Pair<Integer, Integer> curLocation, Pair<Integer, Integer> dest) {\n\t\tList<Pair<Integer, Integer>> path = new LinkedList<Pair<Integer, Integer>>();\n\t\t\n\t\t\n\t\tNode current = new Node(curLocation.getX(), curLocation.getY(), getHitProbability(curLocation.getX(), curLocation.getY()));\n\t\tNode target = new Node(dest.getX(), dest.getY(), getHitProbability(dest.getX(), dest.getY()));\n\t\tList<Node> openSet = new ArrayList<>();\n List<Node> closedSet = new ArrayList<>();\n \n \n while (true) {\n openSet.remove(current);\n List<Node> adjacent = getAdjacentNodes(current, closedSet, target);\n\n // Find the adjacent node with the lowest heuristic cost.\n for (Node neighbor : adjacent) {\n \tboolean inOpenset = false;\n \tList<Node> openSetCopy = new ArrayList<>(openSet);\n \tfor (Node node : openSetCopy) {\n \t\tif (neighbor.equals(node)) {\n \t\t\tinOpenset = true;\n \t\t\tif (neighbor.getAccumulatedCost() < node.getAccumulatedCost()) {\n \t\t\t\topenSet.remove(node);\n \t\t\t\topenSet.add(neighbor);\n \t\t\t}\n \t\t}\n \t}\n \t\n \tif (!inOpenset) {\n \t\topenSet.add(neighbor);\n \t}\n }\n\n // Exit search if done.\n if (openSet.isEmpty()) {\n System.out.printf(\"Target (%d, %d) is unreachable from position (%d, %d).\\n\",\n target.getX(), target.getY(), curLocation.getX(), curLocation.getY());\n return null;\n } else if (/*isAdjacent(current, target)*/ current.equals(target)) {\n break;\n }\n\n // This node has been explored now.\n closedSet.add(current);\n\n // Find the next open node with the lowest cost.\n Node next = openSet.get(0);\n for (Node node : openSet) {\n if (node.getCost(target) < next.getCost(target)) {\n next = node;\n }\n }\n// System.out.println(\"Moving to node: \" + current);\n current = next;\n }\n \n // Rebuild the path using the node parents\n path.add(new Pair<Integer, Integer>(curLocation.getX(), curLocation.getY()));\n while(current.getParent() != null) {\n \tcurrent = current.getParent();\n \tpath.add(0, new Pair<Integer, Integer>(current.getX(), current.getY()));\n }\n \n if (path.size() > 1) {\n \tpath.remove(0);\n }\n \n\t\treturn path;\n\t}", "public boolean bestFirstSearch() {\n\t\twhile(!soloution){\n\t\t\tif(open.isEmpty()){\n\t\t\t\tSystem.out.println(\"No more choices to explore\");\n\t\t\t\tSystem.out.println(\"SolutionId: \" + solutionId);\n\t\t\t\treturn false;\n\t\t\t}\n\t\t\t//chooses the most optimal X\n\t\t\tNode x = popNode();\n\t\t\tclosed.add(x);\n\t\t\tSystem.out.println(\"X:\\t\\t\" + x.state + \" \" + x.h + \" + \" + x.g + \" = \" + x.f);\n\t\t\t//checks if it is a soulution\n\t\t\tif(solution(x)){\n\t\t\t\tSystem.out.println(\"SOLUTION:\\t\" + x.state);\n\t\t\t\tSystem.out.println(\"nodes created: \" + open.size() + closed.size());\n\t\t\t\tprintSolution(x);\n\t\t\t\treturn true;\n\t\t\t}\n\t\t\t//handles the possible moves from the state x\n\t\t\tsucc = generateAllSuccesors(x);\n\t\t\tfor (Node s : succ) {\n\t\t\t\t//if this state already exist, we will use the node keeping it instead\n\t\t\t\tNode old = findOld(s);\n\t\t\t\tif(old != null)\n\t\t\t\t\ts = old;\n\t\t\t\t//makes the new node a child of x\n\t\t\t\tx.kids.add(s);\n\t\t\t\t//if its a new state it will be inserted to open after evaluation\n\t\t\t\tif(!open.contains(s) && !closed.contains(s)){\n\t\t\t\t\tattachAndEval(s,x);\n\t\t\t\t\tinsert(s);\n\t\t\t\t}\n\t\t\t\t//if its an old node and x is a better parent it will be evalueted again.\n\t\t\t\telse if(x.g + arcCost(x, s) < s.g){\n\t\t\t\t\tattachAndEval(s, x);\n\t\t\t\t\tif(closed.contains(s)){\n\t\t\t\t\t\t//if its closed all children will be evaluated with the new score of \"s\"\n\t\t\t\t\t\tpropagatePathImprovements(s);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn true;\n\t}", "private int[] getBestMoveAndScoreDifference(int[] board, int depth, boolean turn) {\n int boardCopy[];\n if (depth <= 0) {\n return new int[] {0,-1};\n }\n if (turn) {\n int minimum = MAXIMUM_POSSIPLE_SCORE_DIFFERENCE;\n int move = -1;\n for (int i = 0; i < 5; i++) {\n if (board[i] < 2) {\n continue;\n }\n boardCopy = board.clone();\n int x = playMove(boardCopy, i);\n int y = 0;\n if (!hasPlayer2Move(boardCopy)) {\n if (hasPlayer1Move(boardCopy)) {\n y = getBestMove(boardCopy, depth - 1, turn);\n } else {\n for (int j = 0; j < 5; j++) {\n y = y - boardCopy[j];\n }\n for (int j = 5; j < 10; j++) {\n y = y + boardCopy[j];\n }\n }\n } else {\n y = getBestMove(boardCopy, depth - 1, ! turn);\n }\n int z = y - x;\n if (z < minimum) {\n minimum = z;\n move = i;\n }\n }\n int i = 10;\n if (board[2] < 2) {\n return new int[] {minimum,move};\n }\n boardCopy = board.clone();\n int x = playMove(boardCopy, i);\n int y = 0;\n if (!hasPlayer2Move(boardCopy)) {\n if (hasPlayer1Move(boardCopy)) {\n y = getBestMove(boardCopy, depth - 1, turn);\n } else {\n for (int j = 0; j < 5; j++) {\n y = y - boardCopy[j];\n }\n for (int j = 5; j < 10; j++) {\n y = y + boardCopy[j];\n }\n }\n } else {\n y = getBestMove(boardCopy, depth - 1, !turn);\n }\n int z = y - x;\n if (z < minimum) {\n minimum = z;\n move = i;\n }\n return new int[] {minimum,move};\n } else {\n int maximum = MINIMUM_POSSIPLE_SCORE_DIFFERENCE;\n int move = -1;\n for (int i = 5; i < 10; i++) {\n if (board[i] < 2) {\n continue;\n }\n boardCopy = board.clone();\n int x = playMove(boardCopy, i);\n int y = 0;\n if (!hasPlayer1Move(boardCopy)) {\n if (hasPlayer2Move(boardCopy)) {\n y = getBestMove(boardCopy, depth - 1, turn);\n } else {\n for (int j = 0; j < 5; j++) {\n y = y - boardCopy[j];\n }\n for (int j = 5; j < 10; j++) {\n y = y + boardCopy[j];\n }\n }\n } else {\n y = getBestMove(boardCopy, depth - 1, !turn);\n }\n int z = y + x;\n if (z > maximum) {\n maximum = z;\n move = i;\n }\n }\n int i = 11;\n if (board[7] < 2) {\n return new int[] {maximum,move};\n }\n boardCopy = board.clone();\n int x = playMove(boardCopy, i);\n int y = 0;\n if (!hasPlayer1Move(boardCopy)) {\n if (hasPlayer2Move(boardCopy)) {\n y = getBestMove(boardCopy, depth - 1, turn);\n } else {\n for (int j = 0; j < 5; j++) {\n y = y - boardCopy[j];\n }\n for (int j = 5; j < 10; j++) {\n y = y + boardCopy[j];\n }\n }\n } else {\n y = getBestMove(boardCopy, depth - 1, !turn);\n }\n int z = y + x;\n if (z > maximum) {\n maximum = z;\n move = i;\n }\n return new int[] {maximum,move};\n }\n }" ]
[ "0.67080575", "0.6112871", "0.5918819", "0.58851224", "0.5868021", "0.5810803", "0.57352453", "0.56870484", "0.56465304", "0.56392074", "0.56149423", "0.5576283", "0.55627143", "0.5559457", "0.5552062", "0.5538197", "0.5535885", "0.5528232", "0.55006707", "0.5494879", "0.5494538", "0.54927486", "0.5489535", "0.54878265", "0.5465951", "0.54650265", "0.5464715", "0.5463332", "0.54592484", "0.54511976", "0.5451123", "0.54491615", "0.5422938", "0.5396924", "0.5388929", "0.53875446", "0.53871024", "0.5387072", "0.53866136", "0.53846455", "0.5374243", "0.53567106", "0.5349535", "0.534664", "0.53447837", "0.5342763", "0.5341166", "0.5338227", "0.53361726", "0.5320198", "0.5315075", "0.5310381", "0.5310261", "0.53096503", "0.53035414", "0.52835727", "0.5277238", "0.52726257", "0.5265924", "0.52612126", "0.52501005", "0.5249124", "0.52490675", "0.5238974", "0.5236746", "0.52364993", "0.5235431", "0.52314276", "0.52282107", "0.5223371", "0.5223032", "0.5207982", "0.51967025", "0.5195098", "0.5191655", "0.5189363", "0.51761854", "0.51738036", "0.5171011", "0.5165534", "0.51628697", "0.5158616", "0.5158441", "0.5136492", "0.51302034", "0.5129272", "0.5119637", "0.51189804", "0.5118556", "0.5118284", "0.5115839", "0.5112281", "0.51118743", "0.5111058", "0.51072407", "0.510687", "0.51003635", "0.50969493", "0.5088419", "0.5086427", "0.5082332" ]
0.0
-1
=========== Method 3: DP Bottom Up ============ Approach 1 : Naive. Time = O(n amount ^ 2) 425ms dp[i][j] represents min number of coins needed to make up amount j with only coins[i..n1] Base case: dp[n][0] = 0, dp[n][1..m] = inf Induction rule: dp[i][j] = min(dp[i+1][jkcoins[i]]+k), 0<=k<=j/coins[i]
public int coinChange(int[] coins, int amount) { int[][] dp = new int[coins.length + 1][amount + 1]; // base case Arrays.fill(dp[coins.length], Integer.MAX_VALUE); dp[coins.length][0] = 0; // induction rule for (int i = coins.length - 1; i >= 0; i--) { for (int j = 0; j <= amount; j++) { dp[i][j] = dp[i + 1][j]; int maxK = j / coins[i]; // Notice 1: k must start from 1, because j - coins[i] might be less than 0. for (int k = 1; k <= maxK; ++k) { int prev = dp[i + 1][j - k * coins[i]]; if (prev < Integer.MAX_VALUE) { // Notice 2: must explicity compare prev with MAX_VALUE, // because if prev is MAX, prev + k will become to MIN_VALUE dp[i][j] = Integer.min(dp[i][j], prev + k); } } } } return dp[0][amount] == Integer.MAX_VALUE ? -1 : dp[0][amount]; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static int minCoins_bottom_up_dynamic_approach(int[] coins, int amount) {\n if (coins == null || coins.length == 0) return 0;\n if (amount < 0) return 0;\n\n int memo[][] = new int[coins.length + 1][amount + 1];\n\n // populate first row\n for (int col = 0; col <= amount; col++) {\n memo[0][col] = 0;// Important. always initialize 1st row with 1s\n }\n\n // populate first col\n for (int row = 0; row < coins.length; row++) {\n memo[row][0] = 0;// Important. initialize 1st col with 1s or 0s as per your need as explained in method comment\n }\n\n /*\n populate second row\n\n if amount(col) <= coin value, then one coin is required with that value to make that amount\n if amount(col) > coin value, then\n total coins required = amount/coin_value, if remainder=0, otherwise amount/coin_value+1\n */\n for (int col = 1; col <= amount; col++) {\n if (col <= coins[0]) {\n memo[1][col] = 1;\n } else {\n int quotient = col / coins[0];\n\n memo[1][col] = quotient;\n\n int remainder = col % coins[0];\n if (remainder > 0) {\n memo[1][col] += 1;\n }\n }\n }\n\n // start iterating from second row\n for (int row = 2; row < memo.length; row++) {\n // start iterating from second col\n for (int col = 1; col < memo[row].length; col++) {\n\n int coin = coins[row - 1];\n\n // formula to find min required coins for an amount at memo[row][col]\n if (coin > col) { // if coin_value > amount\n memo[row][col] = memo[row - 1][col]; // reserve prev row's value (value determined for prev coins)\n } else {\n memo[row][col] = Math.min(memo[row - 1][col], memo[row][col - coin]) + 1; // min(value determined by prev coins - prev row, value at amount=current_amount-coin_value) + 1\n }\n }\n }\n\n printMemo(coins, memo);\n\n return memo[memo.length - 1][memo[0].length - 1]; // final value is stored in last cell\n }", "public int coinNeededBU(int[] coins, int amount, int n) {\n int dp[] = new int[amount + 1];\n Arrays.fill(dp, Integer.MAX_VALUE);\n\n dp[0] = 0;\n for (int rupay = 1; rupay <= amount; rupay++) {\n\n //Iterating over Coins\n for (int i = 0; i < n; i++) {\n\n if (rupay - coins[i] >= 0) {\n int smallAnswer = dp[rupay - coins[i]];\n //if (smallAnswer != Integer.MAX_VALUE) {\n dp[rupay] = Math.min(dp[rupay], smallAnswer + 1);\n //}\n }\n }\n }\n for (int i : dp) {\n System.out.print(i + \", \");\n }\n System.out.println();\n return dp[amount];\n }", "static int coinChangeProblem1(int[] coins,int sum){\n int n = coins.length;\n int[][] dp = new int[n+1][sum+1];\n\n for(int j = 1;j<=sum;j++){\n dp[0][j] = 0;\n }\n for(int i = 0;i<=n;i++){\n dp[i][0] = 1;\n }\n\n for(int i = 1;i<=n;i++){\n for(int j = 1;j<=sum;j++){\n if(coins[i-1]<=j){\n dp[i][j] = dp[i-1][j] + dp[i][j-coins[i-1]];\n }else dp[i][j] = dp[i-1][j];\n }\n }\n return dp[n][sum];\n }", "public int coinChange(int[] coins, int amount) {\n int max = amount + 1; \n int[] dp = new int[amount + 1]; \n Arrays.fill(dp, max); \n dp[0] = 0; \n for (int i = 1; i <= amount; i++) {\n for (int j = 0; j < coins.length; j++) {\n if (coins[j] <= i) {\n dp[i] = Math.min(dp[i], dp[i - coins[j]] + 1);\n }\n }\n }\n return dp[amount] > amount ? -1 : dp[amount];\n }", "static long getWays(int amount, int[] coins){\n long[] dp = new long[amount + 1];\n \n //ways to pay amount 0 is only 1 i.e. not to give any coin\n dp[0] = 1;\n \n //outer loop works on coin array\n for(int coin : coins){\n\n //inner loop works on dp array\n for(int i = 1; i < dp.length; i++){\n if(i >= coin){\n\n //adding the number ways to pay i-coin \n dp[i] += dp[i - coin];\n }\n }\n }\n\n //returning no of ways to pay amount. \n return dp[amount];\n }", "private static int minCoins_my_way_one_coin_of_one_value_case(int[] coins, int startIndex, int endIndex, int amount) {\n\n if (coins.length == 0) return 0;\n\n if (startIndex == endIndex) {\n int currentCoin = coins[startIndex];\n\n if (currentCoin == amount) { // coins=(8) amount=8\n return 1;\n }\n if (currentCoin > amount) { // coins=(9) amount=8\n return 0;\n }\n if (currentCoin < amount) { // coins=(1) amount=8\n return 0; // this code changes when you can use infinite number of same coin\n }\n }\n\n // IMPORTANT:\n // Even though, amount is changing in recursive call, you don't need an exit condition for amount because amount will never become 0 or less than 0\n // amount is changing in recursive call when currentCoin < amount and it is doing amount-currentCoin. It means that amount will never become 0 or less than 0\n /*\n if (amount == 0) {\n return 0;\n }\n */\n\n int currentCoin = coins[startIndex];\n\n int minUsingCurrentCoin = 0;\n\n if (currentCoin == amount) {// coins=(8,9) amount=8\n // WRONG - if you see recursive call, you are trying to use remaining array (8) to make amount (8)\n // You are trying to make full amount using remaining array. It means that you will not be including currentCoin in coins that can make full amount.\n // Here, code should be all about including currentCoin in computation.\n /*\n minUsingCurrentCoin = 1\n int minUsingRemainingCoinsToMakeFullAmount = minCoins_my_way_one_coin_of_one_value_case(coins,startIndex+1, endIndex, amount)\n if(minUsingRemainingCoinsToMakeFullAmount > 0) {\n minUsingCurrentCoin = 1 + minUsingRemainingCoinsToMakeFullAmount\n }*/\n\n minUsingCurrentCoin = 1;\n } else if (currentCoin > amount) {// coins=(9,8) amount=8\n minUsingCurrentCoin = 0;\n // WRONG - if you see recursive call, you are trying to use remaining array (8) to make amount (8)\n // You are trying to make full amount using remaining array. It means that you will not be including currentCoin in coins that can make full amount.\n // Here, code should be all about including currentCoin in computation.\n // minUsingCurrentCoin = 0 + minCoins_my_way_one_coin_of_one_value_case(coins,startIndex+1, endIndex, amount);\n } else {\n /*\n case 1:\n coins = (1,6) amount=8\n currentCoin=1\n 1<8\n coinsRequiredUsingRemainingCoins=(6) to make amount (8-1=7) = 0\n coinsRequiredUsingRemainingCoinsAndAmount is 0, so by including current coin (1), you will not be able to make amount=8\n so, you cannot use (1) to make amount=8\n case 2:\n coins = (1,7) amount=8\n currentCoin=1\n 1<6\n coinsRequiredUsingRemainingCoins (7) And Amount (8-1=7) = 1\n so, coinsRequiredUsingCurrentCoin = 1 + coinsRequiredUsingRemainingCoinsAndAmount = 2\n\n */\n // this code changes when you can use infinite number of same coin\n int minUsingRestOfCoinsAndRestOfAmount = minCoins_my_way_one_coin_of_one_value_case(coins, startIndex + 1, endIndex, amount - currentCoin);\n if (minUsingRestOfCoinsAndRestOfAmount == 0) {\n minUsingCurrentCoin = 0;\n } else {\n minUsingCurrentCoin = 1 + minUsingRestOfCoinsAndRestOfAmount;\n }\n\n }\n\n // coins = (8,6) amount=8\n // minUsingCurrentCoin 8 to make amount 8 = 1\n // minWaysUsingRestOfTheCoins (6) to make amount 8 = 0\n // so, you cannot just blindly return Math.min(minUsingCurrentCoin, minWaysUsingRestOfTheCoins)\n // it will return 0 instead of 1\n int minWaysUsingRestOfTheCoins = minCoins_my_way_one_coin_of_one_value_case(coins, startIndex + 1, endIndex, amount);\n\n if (minWaysUsingRestOfTheCoins == 0 && minUsingCurrentCoin > 0) {\n return minUsingCurrentCoin;\n } else if (minWaysUsingRestOfTheCoins > 0 && minUsingCurrentCoin == 0) {\n return minWaysUsingRestOfTheCoins;\n }\n return Math.min(minUsingCurrentCoin, minWaysUsingRestOfTheCoins);\n\n }", "public boolean canPartition(int[] nums) {\n int sum = 0;\n int n = nums.length;\n for (int num : nums) sum += num;\n // sum cannot be splitted evenly\n if ((sum & 1) == 1) return false;\n int target = sum / 2;\n \n // dp[i][j] represents whether 0~i-1 numbers can reach\n // weight capacity j\n boolean[][] dp = new boolean[n+1][target+1];\n \n for (int i = 1; i <= n; i++) dp[i][0] = true;\n for (int j = 1; j <= target; j++) dp[0][j] = false;\n dp[0][0] = true;\n \n for (int i = 1; i <= n; i++) {\n for (int j = 1; j <= target; j++) {\n // if don't pick current number\n dp[i][j] = dp[i-1][j];\n if (j >= nums[i-1]) {\n dp[i][j] = dp[i][j] || dp[i-1][j-nums[i-1]];\n }\n }\n }\n return dp[n][target];\n \n \n // Solution2: optimizing to save space\n // https://leetcode.com/problems/partition-equal-subset-sum/discuss/90592/01-knapsack-detailed-explanation/94996\n int sum = 0;\n int n = nums.length;\n for (int num : nums) sum += num;\n if ((sum & 1) == 1) return false;\n int target = sum / 2;\n boolean[] dp = new boolean[target+1];\n dp[0] = true;\n for (int num : nums) {\n // here is the trick to save space\n // because we have to update dp[j] based on \n // previous dp[j-num] and dp[j] from previous loop.\n // if we update dp from left to right\n // we first update smaller dp which is dp[j-num]\n // then we won't be able to get original dp[j-num] and dp[j]\n // from previous loop, and eventually we get the wrong\n // answer. But if we update dp from right to left\n // we can assure everything is based on previous state\n for (int j = target; j >= num; j--) {\n // if (j >= num) {\n dp[j] = dp[j] || dp[j-num];\n // }\n }\n }\n return dp[target];\n }", "private static int minCoins_my_way_infinite_coins_of_one_value_case(int[] coins, int startIndex, int endIndex, int amount) {\n\n if (coins.length == 0) return 0;\n\n if (startIndex == endIndex) {\n int currentCoin = coins[startIndex];\n\n if (currentCoin == amount) {// coins=(8) amount=8\n return 1;\n }\n if (currentCoin > amount) {// coins=(9) amount=8\n return 0;\n }\n if (currentCoin < amount) {\n // IMPORTANT: This code assumes that you can use only 1 coin of the same value (you can't use infinite number of coins of the same value).\n //return 0;\n\n // This code assumes that you can use infinite number of coins of the same value.\n // e.g. currentCoin=1 and amount=8, then 8 coins of 1s can be used\n if (amount % currentCoin == 0) { // coins=(1) amount=8 should return 8 because you can use 8 coins of value 1 to make amount=8\n return amount / currentCoin;\n }\n return 0; // coins=(3) amount=8 should return 0 because you can't use 1 or more coins of value 3 to make amount=8\n }\n }\n\n // IMPORTANT\n // You don't need any coin to make amount=0\n // By seeing recursive call, you will figure out that amount can reach to 0. So, you need an exit condition for amount==0\n if (amount == 0) {\n return 0;\n }\n\n int currentCoin = coins[startIndex];\n\n int minUsingCurrentCoin = 0;\n\n if (currentCoin == amount) {\n minUsingCurrentCoin = 1;\n } else if (currentCoin > amount) {\n minUsingCurrentCoin = 0;\n } else {\n /*\n if currentCoin=1 and amount=8, then maxNumberOfCoinsThatCanBeUsedToMakeAmount will be 8.\n if currentCoin=3 and amount=8, then maxNumberOfCoinsThatCanBeUsedToMakeAmount be 2\n you need to consider both these situations for coming up with the correct code\n\n Case 1:\n coins = (1,6) amount=8\n currentCoin=1. So, maxNumberOfCoinsThatCanBeUsedToMakeAmount = 8\n\n coin numberOfCurrentCoins(i) amountConsumedByCurrentCoin coinsUsedFromRemaining totalCoinsUsed\n remaining coins amount\n 1 1 1 (6) 7 = 0 0 (when you cannot make remaining amount using remaining coins, then you cannot make total amount including current coin also)\n 1 2 2 (6) 6 = 1 2+1=3\n 1 3 3 (6) 5 = 0 0\n 1 4 4 (6) 4 = 0 0\n 1 5 5 (6) 3 = 0 0\n 1 6 6 (6) 2 = 0 0\n 1 7 7 (6) 1 = 0 0\n 1 8 8 (6) 0 = 0 8 (special condition - even though you could not make remaining amount using remaining coins, you could make total amount using current coin)\n\n Case 2:\n coins = (3,6) amount=8\n currentCoin=3. So, maxNumberOfCoinsThatCanBeUsedToMakeAmount = 2\n\n coin numberOfCurrentCoins(i) amountConsumedByCurrentCoin coinsUsedFromRemaining totalCoinsUsed\n remaining coins amount\n 3 1 3 (6) 3 = 0 0 (when you cannot make remaining amount using remaining coins, then you cannot make total amount including current coin also)\n 3 2 6 (6) 2 = 0 0\n\n */\n int maxNumberOfCoinsThatCanBeUsedToMakeAmount = amount / currentCoin;\n\n int min = 0;\n\n for (int i = 1; i <= maxNumberOfCoinsThatCanBeUsedToMakeAmount; i++) {\n int amountConsumedByCurrentCoin = i * currentCoin;\n\n int minFromRemaining = minCoins_my_way_infinite_coins_of_one_value_case(coins, startIndex + 1, endIndex, amount - amountConsumedByCurrentCoin);\n\n if (minFromRemaining == 0) {// If I could not make remaining amount using remaining coins, then I cannot make total amount including current coin (except one special condition)\n if (amountConsumedByCurrentCoin == amount) {// special condition - even though you could not make remaining amount using remaining coins, you could make total amount using current coin\n min = i;\n } else {\n min = 0;\n }\n } else {\n min = i + minFromRemaining;\n }\n\n if (minUsingCurrentCoin == 0 && min > 0) {\n minUsingCurrentCoin = min;\n } else if (minUsingCurrentCoin > 0 && min == 0) {\n // don't change minUsingCurrentCoin\n } else {\n if (min < minUsingCurrentCoin) {\n minUsingCurrentCoin = min;\n }\n }\n }\n }\n\n int minWaysUsingRestOfTheCoins = minCoins_my_way_infinite_coins_of_one_value_case(coins, startIndex + 1, endIndex, amount);\n\n if (minWaysUsingRestOfTheCoins == 0 && minUsingCurrentCoin > 0) {\n return minUsingCurrentCoin;\n } else if (minWaysUsingRestOfTheCoins > 0 && minUsingCurrentCoin == 0) {\n return minWaysUsingRestOfTheCoins;\n }\n return Math.min(minUsingCurrentCoin, minWaysUsingRestOfTheCoins);\n\n }", "public int change(int amount, int[] coins) {\n if(coins == null) {\n return 0;\n }\n int[][] dp = new int[coins.length + 1][amount + 1];\n int m = dp.length, n = dp[0].length;\n for(int i = 0; i < m; i++) {\n dp[i][0] = 1;\n }\n for(int i = 1; i < m; i++){\n for(int j = 1; j < n; j++) {\n if(j < coins[i - 1]) {\n dp[i][j] = dp[i - 1][j];\n } else {\n dp[i][j] = dp[i - 1][j] + dp[i][j - coins[i - 1]];\n }\n }\n }\n return dp[m - 1][n - 1];\n }", "private static int minCoins_brute_force(int coins[], int coinsEndIndex, int amount) {\n // base case\n if (amount == 0) return 0;\n\n // Initialize result\n int res = Integer.MAX_VALUE;\n\n // Try every coin that has smaller value than amount\n for (int i = 0; i < coinsEndIndex; i++) {\n if (coins[i] <= amount) {\n int sub_res = minCoins_brute_force(coins, coinsEndIndex, amount - coins[i]);\n\n // Check for INT_MAX to avoid overflow and see if\n // result can minimized\n if (sub_res != Integer.MAX_VALUE && sub_res + 1 < res)\n res = sub_res + 1;\n }\n }\n return res;\n }", "public int maxCoins(int[] nums) {\n if (nums == null || nums.length == 0) {\n return 0;\n }\n int n = nums.length;\n //composite input\n int[] input = new int[n + 2];\n for (int i = 1; i <= n; i++) {\n input[i] = nums[i - 1];\n }\n input[0] = 1;\n input[n + 1] = 1;\n int[][] dp = new int[n + 2][n + 2];\n for (int len = 1; len <= n; len++) {\n //left moves between[1, n - len + 1]\n for (int left = 1; left <= n - len + 1; left++) {\n int right = left + len - 1; //right - left + 1 = len\n for (int k = left; k <= right; k++) {\n dp[left][right] = Math.max(dp[left][right], \n input[left - 1] * input[k] * input[right + 1] + dp[left][k - 1] + dp[k + 1][right]);\n }\n }\n }\n return dp[1][n];\n }", "private static int coinChange(int[] arr,int n, int sum) {\n\t\tint[][] dp = new int[n+1][sum+1];\n\t\tfor(int i=0;i<n+1;i++) {\n\t\t\tdp[i][0]=1;\n\t\t}\n\t\tfor(int i=0;i<sum+1;i++) {\n\t\t\t\n\t\t\tif(i%arr[0]==0)\n\t\t\tdp[0][i]=i/arr[0];\n\t\t\telse\n\t\t\t\tdp[0][i]=0;\n\t\t}\n\t\t\n\t\tfor(int i=1;i<n+1;i++) {\n\t\t\tfor(int j=1;j<sum+1;j++) {\n\t\t\t\tif(arr[i-1]>j)\n\t\t\t\t\tdp[i][j]=dp[i-1][j];\n\t\t\t\telse\n\t\t\t\t\tdp[i][j]=Math.min(dp[i-1][j], dp[i][j-arr[i-1]]+1);\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn dp[n][sum];\n\t}", "public static void main(String[] args) {\n Scanner scanner = new Scanner(System.in);\n int N = scanner.nextInt(), M = scanner.nextInt();\n int[][] graph = new int[N + 1][N + 1];\n\n for (int i = 0; i < M; i++) {\n int from = scanner.nextInt(), to = scanner.nextInt();\n int weight = scanner.nextInt();\n graph[from][to] = weight;\n }\n \n int[][][] dp = new int[N + 1][N + 1][N + 1];\n\n for (int i = 1; i <= N; i++) {\n for (int j = 1; j <= N; j++) {\n if (graph[i][j] != 0) {\n dp[0][i][j] = graph[i][j];\n } else {\n dp[0][i][j] = Integer.MAX_VALUE;\n }\n }\n }\n \n for (int k = 0; k <= N; k++) {\n for (int i = 1; i <= N; i++) {\n dp[k][i][i] = 0;\n }\n }\n\n for (int k = 1; k <= N; k++) {\n for (int i = 1; i <= N; i++) {\n for (int j = 1; j <= N; j++) {\n if (dp[k - 1][i][k] != Integer.MAX_VALUE && dp[k - 1][k][j] != Integer.MAX_VALUE) {\n dp[k][i][j] = Math.min(dp[k - 1][i][j], dp[k -1][i][k] + dp[k -1][k][j]);\n } else {\n dp[k][i][j] = dp[k - 1][i][j];\n }\n }\n }\n }\n\n int Q = scanner.nextInt();\n StringBuilder sb = new StringBuilder();\n for (int i = 0; i < Q; i++) {\n int from = scanner.nextInt(), to = scanner.nextInt();\n int res = dp[N][from][to] == Integer.MAX_VALUE ? -1 : dp[N][from][to];\n sb.append(res).append('\\n');\n }\n System.out.println(sb.toString());\n }", "public static void main(String[] args) {\n\t\t\r\n\t\tint n = 6;\r\n\t\t\r\n\t\t// Using recursion(top-down DP) with TIme O(n) Space O(n)+StackSpace\r\n\t\t\r\n//\t\tint[] dp = new int[n+1];\r\n//\t\tint res = getNumberOfWays(n,dp);\r\n//\t\tSystem.out.println(res);\r\n\t\t\r\n\t\t\r\n\t\t// Using recursion(bottom-up DP) with TIme O(n) Space O(n)\r\n\t\t\r\n\t\tint[ ] dp = new int[n+1];\r\n\t\t\r\n\t\tdp[0] = 0;\r\n\t\tdp[1] = 1;\r\n\t\tdp[2] = 2;\r\n\t\t\r\n\t\tfor(int i =3;i<=n;i++) {\r\n\t\t\tdp[i] = dp[i-1]+dp[i-2];\r\n\t\t}\r\n\t\t\r\n\t\tSystem.out.println(dp[n]);\r\n\r\n\t}", "public int coinChange(int[] coins, int amount) {\r\n if (coins == null || coins.length == 0)\r\n return -1;\r\n\r\n if (amount <= 0)\r\n return 0;\r\n\r\n int dp[] = new int[amount + 1];\r\n for (int i = 1; i < dp.length; i++) {\r\n dp[i] = Integer.MAX_VALUE;\r\n }\r\n\r\n for (int am = 1; am < dp.length; am++) {\r\n for (int i = 0; i < coins.length; i++) {\r\n if (coins[i] <= am) {\r\n int sub = dp[am - coins[i]];\r\n if (sub != Integer.MAX_VALUE)\r\n dp[am] = Math.min(sub + 1, dp[am]);\r\n }\r\n }\r\n }\r\n return dp[dp.length - 1] == Integer.MAX_VALUE ? -1 : dp[dp.length - 1];\r\n }", "private static void dp() {\n\t\tm[0] = 0;\n\t\tk[0] = 0;\n\n\t\t// base case 1:for 1 cent we need give 1 cent\n\t\tm[1] = 1;\n\t\tk[1] = 1;\n\n\t\tfor (int i = 2; i <= n; i++) {\n\t\t\tint min = Integer.MAX_VALUE;\n\t\t\tint sel = -1;\n\t\t\tfor (int j = 0; j < sd; j++) {\n\t\t\t\tint a = d[j];\n\t\t\t\tif (a > i) {\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tint v = 1 + m[i - a];\n\t\t\t\tif (v < min) {\n\t\t\t\t\tmin = v;\n\t\t\t\t\tsel = a;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (sel == -1)\n\t\t\t\tthrow new NullPointerException(\"sel != -1\");\n\t\t\tm[i] = min;\n\t\t\tk[i] = sel;\n\t\t}\n\t}", "static int getMaxCoinValGeeks(int arr[], int n)\n {\n // Create a table to store solutions of subproblems\n int table[][] = new int[n][n];\n int gap, gapStartIndx, gapEndIndx, x, y, z;\n\n // Fill table using above recursive formula.\n // Note that the tableis filled in diagonal\n // fashion (similar to http://goo.gl/PQqoS),\n // from diagonal elements to table[0][n-1]\n // which is the result.\n for (gap = 0; gap < n; ++gap)\n {\n // both gapStartIndx and gapEndIndx are incremented in each loop iteration\n // for each gap, gapStartIndx keeps moving\n // gapEndIndx is always gap more than the gapStartIndx\n // when gap == 0, gapStartIndx = gapEndIndx\n // table[i,j] identifies the max value obtained by the player who picks first\n // first player = i to get val[i] , range of coins left = i+1, j\n // second player max value = table[i+1,j], range of coins left = i+2, j\n // first player max value = table[i+2,j]. So total value for player 1 is\n // val[i] + table[i+2, j]\n // first player picks j to get val[j], range of coins left i, j-1.\n // second player max = table[i, j-1] range of coins left i, j-2\n // first player max = table[i,j-2]\n // so for finding max value for a p\n for (gapStartIndx = 0, gapEndIndx = gap; gapEndIndx < n; ++gapStartIndx, ++gapEndIndx)\n {\n // Here x is value of F(i+2, j),\n // y is F(i+1, j-1) and z is\n // F(i, j-2) in above recursive formula\n // if gapStartIndx and gapEndIndx are two or more apart\n x = ((gapStartIndx + 2) <= gapEndIndx) ? table[gapStartIndx + 2][gapEndIndx] : 0;\n y = ((gapStartIndx + 1) <= (gapEndIndx - 1)) ? table[gapStartIndx +1 ][gapEndIndx - 1] : 0;\n z = (gapStartIndx <= (gapEndIndx - 2)) ? table[gapStartIndx][gapEndIndx - 2]: 0;\n\n table[gapStartIndx][gapEndIndx] = Math.max(arr[gapStartIndx] +\n Math.min(x, y), arr[gapEndIndx] +\n Math.min(y, z));\n }\n }\n\n return table[0][n - 1];\n }", "public int coinChange(int[] coins, int amount) {\n if (coins == null || coins.length == 0) return 0;\n \n Arrays.sort(coins);\n\n memo = new int[amount + 1][coins.length];\n \n ans = dfs(coins, amount, coins.length - 1);\n\n return ans == Integer.MAX_VALUE ? -1 : ans;\n }", "private int recursiveTopDown(int[] price, int n) {\n if( n== 0) return 0;\n int ans = Integer.MIN_VALUE;\n\n for (int i = 0; i < n; i++) {\n ans = Math.max(ans, price[i] + recursiveTopDown(price, n - 1 - i));\n }\n return ans;\n }", "public int jump(int[] nums) {\n int[] dp = new int[nums.length];\n for(int i=1;i<nums.length;i++) {\n dp[i] = Integer.MAX_VALUE;\n }\n for(int start =0 ; start < nums.length-1 ;start++){\n for(int end=start+1; end<=start+nums[start] && end<nums.length; end++){\n dp[end] = Math.min(dp[end], dp[start]+1);\n }\n }\n return dp[nums.length-1];\n }", "int solve(int p, int current) {\n int id = getId(p, current);\n if (p >= 0 && memo.containsKey(id)) {\n return memo.get(id);\n }\n List<Integer> adjList = adj.get(current);\n int n = adjList.size();\n if (n == 0) {\n throw new RuntimeException();\n }\n if ((n == 2 && p >= 0) || (n == 1 && p < 0)) {\n // should cut the nodes under current\n int ans = getDepth(p, current) - 1;\n // System.out.println(\"ans(\" + p + \",\" + current + \")=\" + ans);\n memo.put(id, ans);\n return ans;\n }\n if (n == 1) {\n // System.out.println(\"ans(\" + p + \",\" + current + \")=nochild\");\n return 0;\n }\n int ans = Integer.MAX_VALUE;\n\n for (int i = 0; i < n; i++) {\n int a = adjList.get(i);\n if (a == p) {\n continue;\n }\n for (int j = i + 1; j < n; j++) {\n int b = adjList.get(j);\n if (b == p) {\n continue;\n }\n // try a & b combo\n int tmp = solve(current, a);\n tmp += solve(current, b);\n for (int k = 0; k < n; k++) {\n int c = adjList.get(k);\n if (c != a && c != b && c != p) {\n tmp += getDepth(current, c);\n }\n }\n ans = Math.min(ans, tmp);\n }\n }\n memo.put(id, ans);\n // System.out.println(\"ans(\" + p + \",\" + current + \")=\" + ans);\n return ans;\n }", "public static void main(String[] args) {\n\t\tScanner s = new Scanner(System.in);\n\t\tint t = s.nextInt();\n\t\twhile(t-->0)\n\t\t{\n\t\t\tint n = s.nextInt();\n\t\t\tint k = s.nextInt();\n\t\t\tint[] arr = new int[n];\n\t\t\tfor(int i=0;i<n;i++)\n\t\t\t\tarr[i] = s.nextInt();\n\t\t\tArrays.sort(arr);\n\t\t\tint[][] dp = new int[k+1][n+1];\n\t\t\tfor(int i=0;i<=k;i++)\n\t\t\t\tfor(int j=0;j<=n;j++)\n\t\t\t\t{\n\t\t\t\t\tif(i==0)\n\t\t\t\t\t\tdp[i][j] = 0;\n\t\t\t\t\telse if(j==0)\n\t\t\t\t\t\tdp[i][j] = -1;\n\t\t\t\t\telse if(i-arr[j-1]>=0)\n\t\t\t\t\t{\n\t\t\t\t\t\tint val1 = dp[i-arr[j-1]][j-1];\n\t\t\t\t\t\tint val2 = dp[i][j-1];\n\t\t\t\t\t\tif(val1!=-1 && val2!=-1)\n\t\t\t\t\t\t\tdp[i][j] = Math.min(1+val1,val2);\n\t\t\t\t\t\telse if(val1!=-1)\n\t\t\t\t\t\t\tdp[i][j] = 1+val1;\n\t\t\t\t\t\telse if(val2!=-1)\n\t\t\t\t\t\t\tdp[i][j] = val2;\n\t\t\t\t\t\telse\n\t\t\t\t\t\t\tdp[i][j] = -1;\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t{\n\t\t\t\t\t\tif(dp[i][j-1]==-1)\n\t\t\t\t\t\t\tdp[i][j] = -1;\n\t\t\t\t\t\telse\n\t\t\t\t\t\t\tdp[i][j] = dp[i][j-1];\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\tif(dp[k][n]!=-1)\n\t\t\t\tSystem.out.println(dp[k][n]);\n\t\t\telse\n\t\t\t\tSystem.out.println(\"impossible\");\n\t\t}\n\t}", "public static int coinChangeDP(int n, int[] coins, int StartCoinIndex, HashMap<String, Integer> temp) {\n\t\tint Comb = 0;\n\t\tString tempKey = n + \"-\" + StartCoinIndex;\n\t\tfor(int i_coin=StartCoinIndex;i_coin<=(coins.length-1);i_coin++) {\n\t\t\tif(temp.containsKey(tempKey)) {\n\t\t\t\treturn temp.get(tempKey);\n\t\t\t}\n\t\t\tint remain = n - coins[i_coin];\n\t\t\t//System.out.println(remain);\n\t\t\tif(remain==0) {\t\t\t\t\n\t\t\t\tComb = Comb + 1;\n\t\t\t} else if (remain < 0) {\n\t\t\t\t// do nothing\n\t\t\t} else {\n\t\t\t\tComb = Comb + coinChangeDP(remain,coins,i_coin,temp);\n\t\t\t}\n\t\t}\n\t\ttemp.put(tempKey, Comb);\n\t\treturn Comb;\n\t}", "public static int dynamicProgramming(int n) {\n for (int i=0; i<=n; i++) {\n table[0][i] = 1;\n }\n\n for (int j=1; j<4; j++) { //this loops the different denominations.\n for (int i=0; i<=n; i++) { //this loops through the amount we have to make change for\n\n //hard to explain, create a table and look at it. For j=1 (nickel), for anything less than\n //5 cents, we just copy the value down from j=0 (penny). The nickel has no effect for anything less than 5 cents.\n if (i < denominations[j]) {\n table[j][i] = table[j-1][i];\n continue;\n }\n\n //For example, j=1 (nickel), i = 11 cents. the number of ways to make 11 cents is equal to\n //the number of ways to make 11 cents without using nickel (table[j-1][i]) plus the number\n //of ways to 6 cents (table[j][i-denomination[j]).\n table[j][i] = table[j-1][i] + table[j][i-denominations[j]];\n }\n }\n return table[3][n];\n }", "private static int coinExchange(int N, int[] S, int n) {\n\t\tif (N == 0)\n\t\t\treturn 1;\n\n\t\t// If N is less than 0 then no solution exists\n\t\tif (N < 0)\n\t\t\treturn 0;\n\n\t\t// If there are no coins and N is greater than 0, then no solution exist\n\t\tif (n <= 0 && N >= 1)\n\t\t\treturn 0;\n\n\t\tif (memo[n][N] != 0) {\n\t\t\tmemoHits++;\n\t\t\treturn memo[n][N];\n\t\t}\n\n\t\trecursionHits++;\n\n\t\tint retval = coinExchange(N - S[n - 1], S, n) + coinExchange(N, S, n - 1);\n\t\tmemo[n][N] = retval;\n\t\treturn retval;\n\t}", "public static int knapSackWithDP(int expectedWeight) {\n\t\tint N = values.length;\n\t\tint[][] dP = new int[N + 1][expectedWeight + 1];\n\t\tboolean[][] takeSoln = new boolean[N + 1][expectedWeight + 1];\n\n\t\tfor (int i = 1; i <= N; i++) {\n\t\t\tfor (int j = 1; j <= expectedWeight; j++) {\n\t\t\t\tif (weights[i - 1] > j) {\n\t\t\t\t\tdP[i][j] = dP[i - 1][j];\n\t\t\t\t} else {\n\t\t\t\t\tint option1 = dP[i - 1][j], option2 = values[i - 1] + dP[i - 1][j - weights[i - 1]];\n\t\t\t\t\tdP[i][j] = Math.max(option2, option1);\n\t\t\t\t\ttakeSoln[i][j] = (option2 > option1);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tSystem.out.println(\"Selected items are: \");\n\t\tint totalWt = 0, totalValue = 0;\n\t\tfor (int k = N, wt = expectedWeight; k > 0; k--) {\n\t\t\tif (takeSoln[k][wt]) {\n\t\t\t\ttotalWt += weights[k - 1];\n\t\t\t\ttotalValue += values[k - 1];\n\t\t\t\tSystem.out.printf(\"\tItem %d with weight %d and value %d\\n\", k, weights[k - 1], values[k - 1]);\n\t\t\t\twt -= weights[k - 1];\n\t\t\t}\n\t\t}\n\t\tSystem.out.printf(\"Calculated total weight= %d and total value= %d\\n\", totalWt, totalValue);\n\t\treturn dP[N][expectedWeight];\n\t}", "static int solveMemo(int n) \n\t{ \n\t // base case \n\t if (n < 0) \n\t return 0; \n\t if (n == 0) \n\t return 1; \n\t \n\t // checking if already calculated \n\t if (dp[n]!=-1) \n\t return dp[n]; \n\t \n\t // storing the result and returning \n\t return dp[n] = solveMemo(n-1) + solveMemo(n-3) + solveMemo(n-5); \n\t}", "private static int getMaxCoinsDP(char[][] matrix, int[][][] dp, int m, int n, int direction) {\n\t\tif(!isValid(m, n, matrix)) return 0;\n\t\tif(matrix[m][n] == '#') return 0;\n\t\t\n\t\tif(dp[m][n][direction] != -1) return dp[m][n][direction];\n\t\t\n\t\tif(matrix[m][n] == 'E') dp[m][n][direction] = 0;\n\t\telse if(matrix[m][n] == 'C') dp[m][n][direction] = 1;\n\t\t\n\t\tif(direction == 0){\n\t\t\tdp[m][n][direction] += Utils.max(getMaxCoinsDP(matrix, dp, m, n - 1, 0 ), getMaxCoinsDP(matrix, dp, m+1, n, 1));\n\t\t}else{\n\t\t\tdp[m][n][direction] += Utils.max(getMaxCoinsDP(matrix, dp, m, n + 1, 1), getMaxCoinsDP(matrix, dp, m+1, n, 0));\n\t\t}\n\t\t\n\t\treturn dp[m][n][direction];\n\t}", "public static int MatrixChainMultDP(){\n int dp[][] = new int[n][n];\n\n // cost is zero when multiplying one matrix. \n for(int i=0;i<n;i++)\n dp[i][i] = 0;\n\n for(int L = 2;L < n;L++){\n for(int i=1;i<n;i++){\n int j = i + L - 1;\n if(j >= n)\n continue;\n dp[i][j] = Integer.MAX_VALUE;\n for(int k = i;k<j;k++){\n dp[i][j] = Math.min(dp[i][j] , dp[i][k] + dp[k+1][j] + (ar[i-1] * ar[k] * ar[j]));\n }\n }\n }\n return dp[1][n-1];\n\n }", "public static int minJumpsWithDPInBigOOFN(int arr[], int n) {\r\n\r\n\t\t// The number of jumps needed to reach the starting index is 0\r\n\t\tif (n <= 1)\r\n\t\t\treturn 0;\r\n\r\n\t\t// Return -1 if not possible to jump\r\n\t\tif (arr[0] == 0)\r\n\t\t\treturn -1;\r\n\r\n\t\t// initialization\r\n\t\tint maxReach = arr[0]; // stores all time the maximal reachable index in the array.\r\n\t\tint step = arr[0]; // stores the amount of steps we can still take\r\n\t\tint jump = 1;// stores the amount of jumps necessary to reach that maximal reachable\r\n\t\t\t\t\t\t// position.\r\n\r\n\t\t// Start traversing array\r\n\t\tint i = 1;\r\n\t\tfor (i = 1; i < n; i++) {\r\n\t\t\t// Check if we have reached the end of the array\r\n\t\t\tif (i == n - 1)\r\n\t\t\t\treturn jump;\r\n\r\n\t\t\t// updating maxReach\r\n\t\t\tmaxReach = Integer.max(maxReach, i + arr[i]);\r\n\r\n\t\t\t// we use a step to get to the current index\r\n\t\t\tstep--;\r\n\r\n\t\t\t// If no further steps left\r\n\t\t\tif (step == 0) {\r\n\t\t\t\t// we must have used a jump\r\n\t\t\t\tjump++;\r\n\r\n\t\t\t\t// Check if the current index/position or lesser index\r\n\t\t\t\t// is the maximum reach point from the previous indexes\r\n\t\t\t\tif (i >= maxReach)\r\n\t\t\t\t\treturn -1;\r\n\r\n\t\t\t\t// re-initialize the steps to the amount\r\n\t\t\t\t// of steps to reach maxReach from position i.\r\n\t\t\t\tstep = maxReach - i;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\treturn -1;\r\n\t}", "public static int coins(int n) {\n int[] coins = {1,5,10,25};\n int[] s = new int[n+1];\n for(int i=1; i<=n; i++) {\n for(int j=0; j<coins.length && j<=i; j++) {\n if(i-coins[j] == 0) {\n s[i]++;\n }\n if(i-coins[j] > 0) {\n s[i] += s[i-coins[j]];\n }\n }\n }\n return s[n];\n }", "int solve() {\n dp[0][0] = 1;\n IntStream.rangeClosed(1, m).forEach(i ->\n IntStream.rangeClosed(0, n).forEach(j ->\n dp[i][j] = j - i >= 0 ?\n (dp[i - 1][j] + dp[i][j - i]) % M :\n dp[i - 1][j]));\n return dp[m][n];\n }", "private static int longestBalanced(char[] chars, int start, int delta, int[][] memo) {\n// System.out.println(\"first = \" + first + \"\\tdelta = \" + delta + \" last \" + (first + delta));\n if (memo[start][delta] >= 0) { // subproblem already seen & solved\n return memo[start][delta];\n } else {\n int result;\n if (delta == 1) { // two chars\n result = isBalancing(chars[start], chars[start + 1]) ? 2 : 0;\n } else {\n\n if (isBalancing(chars[start], chars[start + delta])) { // contribution\n final int sub = longestBalanced(chars, start + 1, delta - 2, memo);\n result = sub != 0 ? sub + 2 : 0;\n } else { // not balanced ends\n int smaller = longestBalanced(chars, start + 1, delta - 2, memo);\n if (smaller > 0) {\n result = smaller;\n } else {\n result = 0;\n for (int k = 1; k < delta; k += 2) {\n// System.out.println(\"dividing k = \" + k);\n if (longestBalanced(chars, start, k, memo) > 0 && longestBalanced(chars, start + k + 1, delta - k - 1, memo) > 0) {\n result = delta + 1; // i.e. length\n }\n }\n }\n }\n }\n// System.out.println(\"result = \" + result);\n return memo[start][delta] = result; // store and return\n }\n }", "private static Integer packDPRec(Integer capacity, List<Integer> weights, List<ItemDTO> items, Integer n, Integer[][] mem, List<Integer> optimalChoice) {\n // Base condition\n if (n == 0 || capacity <= 0)\n return 0;\n\n if (mem[n][capacity] != -1) {\n return mem[n][capacity];\n }\n\n if (weights.get(n - 1) > capacity) {\n // Store the value of function call\n // stack in table before return\n List<Integer> subOptimalChoice = new ArrayList<>();\n mem[n][capacity] = packDPRec(capacity, weights, items, n - 1, mem, subOptimalChoice);\n optimalChoice.addAll(subOptimalChoice);\n return mem[n][capacity];\n } else {\n // Return value of table after storing\n List<Integer> optimalChoiceIncluded = new ArrayList<>();\n List<Integer> optimalChoiceExcluded = new ArrayList<>();\n Integer valueIncluded = items.get(n - 1).getValue() + packDPRec(capacity - weights.get(n - 1), weights, items, n - 1, mem, optimalChoiceIncluded);\n Integer valueExcluded = packDPRec(capacity, weights, items, n - 1, mem, optimalChoiceExcluded);\n if (valueIncluded > valueExcluded) {\n optimalChoice.addAll(optimalChoiceIncluded);\n optimalChoice.add(items.get(n - 1).getId());\n mem[n][capacity] = valueIncluded;\n }else{\n optimalChoice.addAll(optimalChoiceExcluded);\n mem[n][capacity] = valueExcluded;\n }\n return mem[n][capacity];\n }\n }", "private static int getNumberOfWays(int n, int[] dp) {\n\t\t\r\n\t\tif(n==0) {\r\n\t\t\tdp[n] = 0; \r\n\t\t\treturn 0;\r\n\t\t}\r\n\t\t\r\n\t\tif(n == 1) {\r\n\t\t\tdp[1] = 1;\r\n\t\t\treturn 1;\r\n\t\t}\r\n\t\t\r\n\t\tif(n == 2) {\r\n\t\t\tdp[2] = 2;\r\n\t\t\treturn 2;\r\n\t\t}\r\n\t\t\r\n\t\tif(dp[n] == 0){\r\n\t\t\tdp[n] = getNumberOfWays(n-1, dp) + getNumberOfWays(n-2, dp);\r\n\t\t}\r\n\t\treturn dp[n];\r\n\t}", "private static long calc1()\n {\n final int min = 1000;\n final int max = 10000;\n\n // initialize\n List<List<Integer>> m = new ArrayList<>();\n for (int k = 0; k < end; k++) {\n List<Integer> list = new ArrayList<Integer>();\n int n = 1;\n while (k >= start) {\n int p = pkn(k, n);\n if (p >= max) {\n break;\n }\n if (p >= min) {\n list.add(p);\n }\n n++;\n }\n m.add(list);\n }\n\n boolean[] arr = new boolean[end];\n arr[start] = true;\n\n List<Integer> solutions = new ArrayList<>();\n List<Integer> list = m.get(start);\n for (Integer first : list) {\n LinkedList<Integer> values = new LinkedList<>();\n values.add(first);\n f(m, arr, values, 1, solutions);\n // we stop at the first solution found\n if (!solutions.isEmpty()) {\n break;\n }\n }\n\n // solutions.stream().forEach(System.out::println);\n int res = solutions.stream().reduce(0, Integer::sum);\n return res;\n }", "private static int totalNumberOfWays(int[] coins, int sum) {\n\t\tif(coins.length == 0 || sum <=0) {\n\t\t\treturn 0;\n\t\t}\n\t\t// find the length of total denomination\n\t\tint numberOfCoins = coins.length;\n\t\t//create a matrix\n\t\tint [][]arr = new int[numberOfCoins][sum+1];\n\t\tfor(int i = 0; i < numberOfCoins; i++) {\n\t\t\tarr[i][0] = 1;\n\t\t}\n\t\t\n\t\tfor(int i = 0; i < numberOfCoins; i++) {\n\t\t for(int j = 1; j <= sum; j++) {\n\t\t \n\t\t int includingCurrentCoin = 0;\n\t\t int excludingCurrentCoin = 0;\n\t\t \n\t\t if(coins[i] <= j) {\n\t\t includingCurrentCoin = arr[i][j - coins[i]];\n\t\t }\n\t\t \n\t\t if(i > 0) {\n\t\t excludingCurrentCoin = arr[i - 1][j];\n\t\t }\n\t\t \n\t\t arr[i][j] = includingCurrentCoin + excludingCurrentCoin;\n\t\t }\n\t\t } \n\t\treturn arr[numberOfCoins - 1][sum];\n\t}", "private static void find_coins(int[] d, int k, int n) {\n\t\t\n\t}", "static int solve(int n) \n\t{ \n\t // base case \n\t if (n < 0) \n\t return 0; \n\t if (n == 0) \n\t return 1; \n\t \n\t return solve(n-1) + solve(n-3) + solve(n-5); \n\t}", "public List<Integer> DP(int target, int[] numbers, HashMap<Integer, List<Integer>> memoMap) {\n\n if (memoMap.containsKey(target))\n return memoMap.get(target);\n if (target == 0)\n return List.of();\n if (target < 0)\n return null;\n\n List<Integer> minCombinationResult = null;\n\n for (int number : numbers) {\n\n List<Integer> potentialResult = DP(target - number, numbers, memoMap);\n if (potentialResult != null) {\n\n List<Integer> validResult = new ArrayList<Integer>(potentialResult);\n validResult.add(number);\n\n if (minCombinationResult == null || validResult.size() < minCombinationResult.size())\n minCombinationResult = validResult;\n }\n }\n\n memoMap.put(target, minCombinationResult);\n return memoMap.get(target);\n }", "int backTrack(int[] nums, int targetSum, int startIndex, int computedSum, int[][] dp) {\n if (startIndex == nums.length) {\n if (targetSum == computedSum) {\n return 1;\n\n }\n return 0;\n } else {\n\n int add = backTrack(nums, targetSum, startIndex + 1, computedSum + nums[startIndex], dp);\n\n int subtract = backTrack(nums, targetSum, startIndex + 1, computedSum - nums[startIndex], dp);\n dp[startIndex][computedSum] = add + subtract;\n return dp[startIndex][computedSum];\n }\n\n }", "public int calculateMinimumHP(ArrayList<ArrayList<Integer>> grid) {\n\t\t\t\t int m =grid.size(), n = grid.get(0).size();\n\t\t\t\t int[][][] dp = new int[m+1][n+1][2];\n\t\t\t\t \n\t\t\t\t dp[0][0][0] = 0;\n\t\t\t\t dp[0][0][1] = 0;\n\t\t\t\t dp[0][1][0] = 1; // start with life\n\t\t\t\t dp[0][1][1] = 0; // balance life\n\t\t\t\t dp[1][0][0] = 1;\n\t\t\t\t dp[1][0][1] = 0;\n\t\t\t\t for(int i=2;i<dp[0].length;i++){\n\t\t\t\t\t dp[0][i][0] = Integer.MAX_VALUE;\n\t\t\t\t\t dp[0][i][1] = 0;\n\t\t\t\t }\n\t\t\t\t for(int i=2;i<dp.length;i++){\n\t\t\t\t\t dp[i][0][0] = Integer.MAX_VALUE;\n\t\t\t\t\t dp[i][0][1] = 0;\n\t\t\t\t }\n\t\t\t\t \n\t\t\t\t for(int i=1;i<dp.length;i++){\n\t\t\t\t\t for(int j=1;j<dp[0].length;j++){\n\t\t\t\t\t\t \n\t\t\t\t\t\t if(grid.get(i-1).get(j-1) < 0){\n\t\t\t\t\t\t\t int[] fromCell = dp[i-1][j][0]< dp[i][j-1][0]?dp[i-1][j]:dp[i][j-1];\n\t\t\t\t\t\t\t \n\t\t\t\t\t\t\t dp[i][j][0] = fromCell[0] - grid.get(i-1).get(j-1) - fromCell[1];\n\t\t\t\t\t\t\t dp[i][j][1] = fromCell[1]+ grid.get(i-1).get(j-1)>0?fromCell[1]+ grid.get(i-1).get(j-1):0;\n\t\t\t\t\t\t }else{\n\t\t\t\t\t\t\t int[] fromCell = dp[i-1][j][0]< dp[i][j-1][0]?dp[i-1][j]:dp[i][j-1];\n\t\t\t\t\t\t\t dp[i][j][0] = fromCell[0];\n\t\t\t\t\t\t\t dp[i][j][1] = fromCell[1]+grid.get(i-1).get(j-1);\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 return dp[m][n][0];\n\t\t\t\t \n\t\t\t }", "public static void main(String[] args) {\n int n = 4;\n long[] coins1 = {1, 2, 3};\n runTestCase(n, coins1);\n /*\n Number of ways: 4\n Recursive: 4,595 ns\n Dynamic programming: 538,243 ns\n */\n\n // Test 2\n n = 10;\n long[] coins2 = {2, 3, 5, 6};\n runTestCase(n, coins2);\n /*\n Number of ways: 5\n Recursive: 6,057 ns\n Dynamic programming: 91,954 ns\n */\n\n // Test 3\n n = 100;\n long[] coins3 = {2, 3, 5, 6};\n runTestCase(n, coins3);\n /*\n Number of ways: 1163\n Recursive: 888,360 ns\n Dynamic programming: 3,817,729 ns\n */\n\n // Test 4\n n = 1000;\n long[] coins4 = {2, 3, 5, 6};\n runTestCase(n, coins4);\n /*\n Number of ways: 948,293\n Recursive: 804,397,007 ns\n Dynamic programming: 72,303,683 ns\n */\n\n // Test 5\n n = 2000;\n long[] coins5 = {2, 3, 5, 6};\n runTestCase(n, coins5);\n /*\n Number of ways: 7,496,697\n Recursive: 12,104,041,809 ns\n Dynamic programming: 112,009,974 ns\n */\n }", "private static int recursiveFibDP(int n) {\n\n Integer[] table = new Integer[n + 1];\n if(table[n]==null){\n if (n <= 1) {\n table[n] = n;\n }\n else {\n table[n] =recursiveFibDP(n-1)+recursiveFibDP(n-2);\n }\n }\n return table[n];\n }", "public static Result solve(Integer numCoins, int player)\n {\n if (numCoins <= 4) return checkBaseCase(numCoins, player);\n\n int count1 = 0;\n int count2 = 0;\n Result p1 = solve(numCoins-1, (player+1)%2);\n //System.out.println(\"solve: \" + (numCoins-1) + \",\" + player2 + \",\" + player1 + \" returned \" + p1.getPlayer() + \" wins in \" + p1.getNumWays() + \" ways\");\n if (p1.getPlayer() == player) {\n count1 += p1.getNumWays();\n } else {\n count2 += p1.getNumWays();\n }\n p1 = solve(numCoins-2, (player+1)%2);\n //System.out.println(\"solve: \" + (numCoins-2) + \",\" + player2 + \",\" + player1 + \" returned \" + p1.getPlayer() + \" wins in \" + p1.getNumWays() + \" ways\");\n if (p1.getPlayer() == player) {\n count1 += p1.getNumWays();\n } else {\n count2 += p1.getNumWays();\n }\n p1 = solve(numCoins-4, (player+1)%2);\n //System.out.println(\"solve: \" + (numCoins-4) + \",\" + player2 + \",\" + player1 + \" returned \" + p1.getPlayer() + \" wins in \" + p1.getNumWays() + \" ways\");\n if (p1.getPlayer() == player) {\n count1 += p1.getNumWays();\n } else {\n count2 += p1.getNumWays();\n }\n\n if (count1 > 0) {\n return new Result(player, count1);\n }\n return new Result((player+1)%2, count2);\n }", "private int optimize() {\n\t\t// items: Items sorted by value-to-weight ratio for linear relaxation\n\t\t// t: the decision vector being tested at each node\n\t\t// ws, vs, is, bs: stacks of weight, value, item id, whether bring item\n\t\t// p: stack pointer; i, b, weight, value: loop caches; best: max search\n\t\t// ss: stack size: Always <=2 children on stack for <=n-1 parents\n\t\tItem[] items = new Item[n];\n\t\tint ss = 2 * n;\n\t\tint[] itemsSorted = new int[n], t = new int[n], ws = new int[ss],\n\t\t\tvs = new int[ss], is = new int[ss], bs = new int[ss];\n\t\tint i, b, weight, value, best = 0, p = 0;\n\n\t\tfor (int j = 0; j < n; j++)\n\t\t\titems[j] = new Item(j);\n\t\tArrays.sort(items);\n\t\tfor (int j = 0; j < n; j++)\n\t\t\titemsSorted[j] = items[j].i();\n\t\titems = null; // For garbage collection.\n\n\t\t// Push item 0 onto the stack with and without bringing it.\n\t\tws[p] = 0; vs[p] = 0; is[p] = 0; bs[p] = 1; p++;\n\t\tws[p] = 0; vs[p] = 0; is[p] = 0; bs[p] = 0; p++;\n\n\t\twhile (p > 0) {\n\t\t\tp--; // Pop the latest item off the stack\n\t\t\ti = is[p]; b = bs[p];\n\t\t\tweight = ws[p] + w[i] * b;\n\t\t\tif (weight > k)\n\t\t\t\tcontinue;\n\t\t\tvalue = vs[p] + v[i] * b;\n\t\t\tif (bound(i, weight, value, itemsSorted) < best)\n\t\t\t\tcontinue;\n\t\t\tbest = Math.max(value, best);\n\t\t\tt[i] = b;\n\t\t\tif (i < n - 1) { // Push children onto stack w/ & w/o bringing item\n\t\t\t\tws[p] = weight; vs[p] = value; is[p] = i + 1; bs[p] = 1; p++;\n\t\t\t\tws[p] = weight; vs[p] = value; is[p] = i + 1; bs[p] = 0; p++;\n\t\t\t}\n\t\t\telse if (value >= best)\n\t\t\t\tSystem.arraycopy(t, 0, x, 0, n);\n\t\t}\n\t\treturn best;\n\t}", "public static int zeroOneKnapsack(int[] weight, int[] value, int capacity) {\n\t\tint[][] dp = new int[weight.length + 1][capacity + 1];\n\n\t\tfor (int i = 0; i < weight.length + 1 ; i++) {\n\t\t\t for (int j = 0; j < capacity + 1; j++) {\n\t\t\t\t\n\t\t\t\t // base condition for memoization\n\t\t\t\t // first row and first column for 2d matrix is initialised to 0\n\t\t\t\t // profit = 0 when number of items = 0 or bag capacity = 0 \n\t\t\t\t if (i == 0 || j == 0) { \n\t\t\t\t\t dp[i][j] = 0;\n\t\t\t\t } \n\t\t\t\t \n\t\t\t\t // weight of item under consideration is less than capacity of bag\n\t\t\t\t // value of i in 2d matrix corresponds to (i-1)th element in weight and value arrays\n\t\t\t\t // hence, weight(i-1) is compared with the corresponding matrix cell capacity(i.e.column)\n\t\t\t\t \n\t\t\t\t else if (weight[i-1] <= j){\n\t\t\t\t\t \n\t\t\t\t\t // possibility 1: when item having weight(i-1) is added to bag\n\t\t\t\t\t // item having weight(i-1) has value(i-1)\n\t\t\t\t\t // this value added to array value for (i-1)th row and (j-weight[i-1])th column\n\t\t\t\t\t // because :\n\t\t\t\t\t // 1) the total capacity reduced by weight(i-1) after deciding item inclusion\n\t\t\t\t\t // 2) total no.of elements reduced by 1 after deciding item inclusion\n\t\t\t\t\t \n\t\t\t\t\t int a = value[i-1] + dp[i-1][j-weight[i-1]];\n\t\t\t\t\t \n\t\t\t\t\t// possibility 1: when item having weight(i-1) is not added to bag\n\t\t\t\t\t// 1) the total capacity remains as is after deciding item exclusion\n\t\t\t\t\t// 2) total no.of elements reduced by 1 after deciding item exclusion\n\t\t\t\t\t \n\t\t\t\t\t int b = dp[i-1][j];\n\t\t\t\t\t \n\t\t\t\t\t // max of a and b taken to find maximum profit value \n\t\t\t\t\t dp[i][j] = Math.max(a, b);\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\t // weight of item under consideration is more than capacity of bag\n\t\t\t\t // hence item having weight(i-1) is not added to bag\n\t\t\t\t else {\n\t\t\t\t\t \n\t\t\t\t\t// 1) the total capacity remains as is after deciding item exclusion\n\t\t\t\t\t// 2) total no.of elements reduced by 1 after deciding item exclusion\n\t\t\t\t\t \n\t\t\t\t\t dp[i][j] = dp[i-1][j];\n\t\t\t\t\t \n\t\t\t\t }\n\t\t\t\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn dp[weight.length][capacity];\n\t\t\n\t}", "private static long calculateBestPickWithoutRepetition(int weight, Item[] items, long[][] DP) {\n\n for(int w = 1; w <= weight; w++) {\n for(int i = 1; i <= items.length; i++) {\n DP[w][i] = DP[w][i-1];\n Item item = items[i-1];\n\n if (item.getWeight() <= w) {\n DP[w][i] = Math.max(DP[w][i], DP[w - item.getWeight() ][i-1] + item.getValue());\n }\n }\n }\n\n return DP[DP.length -1][DP[0].length - 1];\n }", "public static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = sc.nextInt();\n\t\tint[] arr = new int[n+1];\n\t\tint[] dp = new int[n+1];\n\t\tfor (int i = 1; i < arr.length; i++) {\n\t\t\tarr[i] = sc.nextInt();\n\t\t}\n\t\t\n\t\tfor (int i = 1; i < arr.length; i++) {\n\t\t\tfor (int j = 1; j <= i; j++) {\n\t\t\t\tdp[i] = Math.max(dp[i], dp[i-j] + arr[j]);\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(dp[arr.length-1]);\n\t}", "public int coinChange(int[] coins, int amount) {\n int[] num = new int[amount + 1];\n Arrays.fill(num, Integer.MAX_VALUE);\n // initial num\n num[0] = 0;\n for (int coin : coins) {\n if (coin <= amount)\n num[coin] = 1;\n }\n\n for (int i = 1; i <= amount; i++) {\n for (int coin : coins) {\n if (i - coin > 0 && 1 + num[i - coin] > 0) { // prevent int become negative\n num[i] = Math.min(num[i - coin] + 1, num[i]);\n }\n }\n }\n\n return num[amount] == Integer.MAX_VALUE ? -1 : num[amount];\n }", "public static int[][] optimalBST(double[] p, int num){\n double[][] e = new double[num+2][num+2];\n double[][] w = new double[num+1][num+1];\n //this will to easy count the sum of w from i to j\n //so use w[i][j] = w[i][j-1] + p[j]\n //therefor the size of w is also need num+1\n\n int[][] root = new int[num+1][num+1];//记录根节点\n //root[i][j] -- 用来存放i-j组成的最优二叉查找树的根节点\n\n for(int d = 0; d<num; d++){\n for(int i=1; i<=num-d; i++){\n int j = i + d;\n e[i][j] = Double.MAX_VALUE;\n w[i][j] = w[i][j-1] + p[j-1];//\n for(int k=i; k<=j; k++){\n double temp = w[i][j] + e[i][k-1] + e[k+1][j];;\n if(temp < e[i][j]){\n e[i][j] = temp;\n root[i][j] = k;\n }\n }\n }\n }\n ArrayTool.printDoubleMatrix(w);\n System.out.println(\"the total Search probability of this optimal BST is \"+ e[1][num]);\n return root;\n }", "public static int fibboDP(int n){\n int[] mem = new int[n+1];\n if(n==0 || n==1){\n return mem[n]=n;\n }\n if(mem[n]!=0){\n return mem[n];\n }\n int fib1 = fibboDP(n-1);\n int fib2 = fibboDP(n-2);\n return mem[n] = fib1+fib2;\n }", "public static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = sc.nextInt();\n\t\tint m = sc.nextInt();\n\t\tint [][][] dp = new int[n+1][m+1][m+1];\n\t\tint [][] arr = new int[n+1][m+1];\n\t\tint max = 1;\n\t\tfor (int i = 1; i <= n; i++) {\n\t\t\tfor (int j = 1; j <= m; j++) {\n\t\t\t\tarr[i][j] = sc.nextInt();\n\t\t\t}\n\t\t}\n\t\tfor (int i = 1; i <= n; i++) {\n\t\t\tfor (int j = 1; j <= m; j++) {\n\t\t\t\tif (arr[i][j] == 1) {\n\t\t\t\t\tfor (int z = j; z <= m && arr[i][z] == 1; z++) {\n\t\t\t\t\t\tdp[i][j][z] = dp[i-1][j][z] + 1;\n\t\t\t\t\t\tmax = Math.max(max, Math.min(dp[i][j][z], z-j+1));\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(max);\n\t}", "static int knapsack(int[] weight, int[] value, int n, int maxWeight) {\n int[][] dp = new int[n+1][maxWeight+1];\n for (int i=0;i<=n;i++) {\n for (int j =0;j<=maxWeight;j++) {\n dp[i][j] = -1;\n }\n }\n int ans= knapsack(weight,value,n,maxWeight,dp);\n return ans;\n\n }", "public static int bottomUp(int n) {\r\n\t\tint tab[] = new int[n + 1];\r\n\t\ttab[0] = 0;\r\n\t\ttab[1] = 1;\r\n\t\tfor (int i = 2; i <= n; i++) {\r\n\t\t\ttab[i] = tab[i - 1] + tab[i - 2];\r\n\t\t}\r\n\t\treturn tab[n];\r\n\t}", "public static List<List<Integer>> minCoinsForMakingChange(int[] coinVals, int amount) {\n List<List<Integer>>[] minWays = new ArrayList[amount + 1];\n // no coins to make value 0\n minWays[0] = new ArrayList<>();\n for (int currAmount = 1; currAmount <= amount; currAmount++) {\n List<List<Integer>> minCoinLists = null;\n for (int coinVal : coinVals) {\n int prevVal = currAmount - coinVal;\n // reached the currAmount using a singleCoin of coinVal\n // that's the shortest way. No need to check any further\n if (prevVal == 0) {\n // list with single coin\n minCoinLists = new ArrayList(Arrays.asList(Arrays.asList(coinVal)));\n break;\n } else if (prevVal > 0) {\n List<List<Integer>> prevValCoinLists = minWays[prevVal];\n // get the min list of coins to reach prevVal. if such a list exits\n // i.e. there is a way to use the coins to reach prevVal\n if ((prevValCoinLists != null) && (!prevValCoinLists.isEmpty())) {\n // compare the number of coins with the prevMin number of coins\n if (((minCoinLists == null) || (minCoinLists.isEmpty())) || (minCoinLists.get(0).size() > prevValCoinLists.get(0).size() + 1)) {\n minCoinLists = new ArrayList();\n }\n addLists(prevValCoinLists, minCoinLists, coinVal);\n }\n }\n\n }\n minWays[currAmount] = minCoinLists;\n }\n return minWays[amount];\n }", "public int knapsack01(int[] w, int[] v, int C) {\n //dp[i] = Math.max(v[i] + dp[i - 1, c - w[i]], dp[i - 1, c])\n int[][] dp = new int[w.length][C];\n for (int i = 0; i <= C; i++) {\n if (i >= w[0])\n dp[0][i] = v[0];\n }\n for (int i = 1; i < w.length; i++) {\n for (int j = 0; j <= C; j++) {\n if (j >= w[i]) {\n dp[i][j] = Math.max(v[i] + dp[i - 1][C - w[i]], dp[i - 1][C]);\n } else {\n dp[i][j] = dp[i - 1][C];\n }\n }\n }\n return dp[w.length - 1][C];\n }", "static int zeroOneKnapsack(int []val,int [] wt,int W){\n// initialize\n int[][] dp = new int[val.length+1][W+1];\n\n int n = val.length;\n for (int i = 0;i<=n;i++){\n dp[i][0] = 0;\n }\n for (int j = 0;j<=W;j++){\n dp[0][j] = 0;\n }\n\n for (int i = 1;i<=n;i++){\n for(int j = 1;j<=W;j++){\n if (wt[i-1] <= j){\n dp[i][j] = Math.max(val[i-1] + dp[i-1][j - wt[i-1]], dp[i-1][j]);\n }else{\n dp[i][j] = dp[i-1][j];\n }\n }\n }\n return dp[n][W];\n }", "public int maxCoins(int[] nums) {\n if (nums == null || nums.length == 0) {\n return 0;\n }\n int len = nums.length;\n //composite new input array\n int[] input = new int[len + 2];\n for (int i = 1; i <= len; i++) {\n input[i] = nums[i - 1];\n }\n input[0] = 1;\n input[len + 1] = 1;\n boolean[][] visited = new boolean[len + 2][len + 2];\n int[][] dp = new int[len + 2][len + 2];\n return searchHelper(input, dp, visited, 1, len);\n }", "static long dp(int a, int b, int c, int d, int e, int k) {\n if(f[a][b][c][d][e] > 0) {\n return f[a][b][c][d][e];\n }\n if(!v[k]) {\n return dp(a, b, c, d, e, k + 1);\n }\n if(a < 5 && k > maxr[0] && k > maxc[a]) {\n f[a][b][c][d][e] += dp(a + 1, b, c, d, e, k + 1);\n }\n if(b < a && k > maxr[1] && k > maxc[b]) {\n f[a][b][c][d][e] += dp(a, b + 1, c, d, e, k + 1);\n }\n if(c < b && k > maxr[2] && k > maxc[c]) {\n f[a][b][c][d][e] += dp(a, b, c + 1, d, e, k + 1);\n }\n if(d < c && k > maxr[3] && k > maxc[d]) {\n f[a][b][c][d][e] += dp(a, b, c, d + 1, e, k + 1);\n }\n if(e < d && k > maxr[4] && k > maxc[e]) {\n f[a][b][c][d][e] += dp(a, b, c, d, e + 1, k + 1);\n }\n return f[a][b][c][d][e];\n }", "public int knapSackDP(int wt[], int val[], int mw) {\n // init DP\n int[][] dp = new int[wt.length + 1][mw + 1];\n\n // base conditions\n // set all rows for n=0 and w=0 to 0\n\n // Loop\n for (int n = 1; n < dp.length; n++) {\n for (int w = 1; w < dp[0].length; w++) {\n if (wt[n - 1] > w)\n dp[n][w] = dp[n - 1][w];\n else\n dp[n][w] = Math.max(val[n - 1] + dp[n - 1][w - wt[n - 1]], dp[n - 1][w]);\n }\n }\n return dp[dp.length - 1][dp[0].length - 1];\n }", "private static int dialGreedy(ArrayList<Pair<Pair <Integer, Integer>,Integer>> wts, int money){\n int prevEdgeIndex = -1;\n int noDials = 10;\n int [][] dialArr = new int[money+1][noDials];\n BooleanHolder flip = new BooleanHolder(false);\n return greedyDialMax(wts, money,prevEdgeIndex,dialArr, flip);\n }", "public static int[] getChange (int value, int[] denominations, int[] amounts) {\n\t\tint [] f = new int[value + 1];\r\n\t\tint m = denominations.length;\r\n\t\tint result, temp = 1, j;\r\n\t\tint d = 0;\r\n\t\tfor (int i = 1; i <= value; i ++) {\r\n\t\t\ttemp = value + 1; j = 0;\r\n\t\t\t\r\n\t\t\twhile (j < m && i >= denominations[j] ){\r\n\t\t\t\td = f[i-denominations[j]];\r\n\t\t\t\tif (temp > d)\r\n\t\t\t\t temp = d;\r\n\t\t\t\tj ++;\r\n\t\t\t} \r\n\t\t\tf[i] = temp + 1;\r\n\t\t}\r\n\t\tresult = f[value]; // will be put in the position 0\r\n // tracing the array f backwards, finding the denomination contributing to the minimum number of coins\r\n\t\tint k = result;\r\n\t\tint [] change = new int[k + 1]; // position 0 for the number of coins, positions 1 to k for the denominations\r\n\t\tj = 0;\r\n\t\tint pos = 0;\r\n\t\twhile (k > 0) {\r\n\t\t\ttemp = k;\r\n\t\t\tfor (j = 0; j < m && denominations[j] <= value; j ++) {\r\n\t\t\t\td = f[value-denominations[j]];\r\n\t\t\t\tif ( temp > d) {\r\n\t\t\t\t\ttemp = d;\r\n\t\t\t\t\tpos = j;\r\n\t\t\t\t}\r\n\t\t\t\t//pos is the index in the array of denominations indicating the \r\n //pos = smallest num of needed coins // smallest number of needed coins\t\t\r\n\t\t\t}\r\n\t\t\tchange[k] = denominations[pos]; \r\n\t\t\tvalue -= change[k --]; // use the remaining value and decrement number of coins\r\n\t\t}\r\n\t\tchange[0] = result;\r\n\t\t\r\n\t\tfor(int i = 1; i < change.length; i++) {\r\n\t\t\t\r\n\t\t\tint a = amounts[i -1] - change[i];\r\n\t\t\tif(a <= 0) {\r\n\t\t\t\tdenomupdate[i - 1] = a;\r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\treturn null;\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\treturn change;\t\r\n\t}", "private static boolean findEqualSumSubsetBottomUp(int[] arr, int n) {\n\t\tint sum=0;\n\t\tfor(int i=0;i<n;i++) {\n\t\t\tsum+=arr[i];\n\t\t}\n\t\tif(sum%2==1) {\n\t\t\treturn false;\n\t\t}\n \t\treturn findEqualSumBottomUp(arr,n,sum/2);\n\t}", "public static int maxMoneyLooted(int[] houses) {\n int n = houses.length;\n int dp[] = new int[n];\n if(n==0)\n return 0;\n dp[0] = houses[0];\n dp[1]= Math.max(houses[0], houses[1]);\n for(int i =2; i<n ; i++)\n {\n dp[i] = Math.max(houses[i] + dp[i-2], dp[i-1] );\n }\n \n return dp[n-1];\n\t}", "static int minJumps(int[] arr){\n int n = arr.length;\n int[] dp = new int[n];\n for(int i = 0; i < n; i++) dp[i] = Integer.MAX_VALUE;\n dp[0] = 0;\n for(int i = 1; i < n; i++){\n //checking from 0 to index i that if there is a shorter path for \n //current position to reach from any of the previous indexes\n //also previous index should not be MAX_VALUE as this will show that\n //we were not able to reach this particular index\n for(int j = 0; j < i; j++){\n if(dp[j] != Integer.MAX_VALUE && arr[j] + j >= i){\n if(dp[j] + 1 < dp[i]){\n dp[i] = dp[j] + 1;\n }\n }\n }\n }\n \n if(dp[n - 1] != Integer.MAX_VALUE){\n return dp[n - 1];\n }\n \n return -1;\n }", "static int knapsackDP(int weights[],int values[],int noOFitems,int capacityOfKnapsack){\n int dp[][] = new int[noOFitems+1][capacityOfKnapsack+1];\n\n for(int i=1;i<noOFitems+1;i++){\n for(int w=1;w<capacityOfKnapsack+1;w++){\n\n int inc = 0;\t\n if(weights[i] <= w){\n inc = values[i] + dp[i-1][w-weights[i]];\n }\n int exc = dp[i-1][w];\n dp[i][w] = Math.max(inc,exc);\n\n }\n }\n \n for (int i = 0; i < noOFitems+1; i++) {\n\t\t\tfor (int j = 0; j < capacityOfKnapsack+1; j++) {\n\t\t\t\tSystem.out.print(dp[i][j]+ \" \");\n\t\t\t}\n\t\t\tSystem.out.println(\"\");\n\t\t}\n \n return dp[noOFitems][capacityOfKnapsack];\n\t}", "public static void main(String[] args) {\n\t\tScanner scan=new Scanner(System.in);\n\t\tint N=scan.nextInt();\n\t\tint a=scan.nextInt();\n\t\tint b=scan.nextInt();\n\t\tint[] nums=new int[N];\n\t\tint[][] weight=new int[N][N];\n\t\tfor(int i=0;i<N;i++){\n\t\t\tnums[i]=scan.nextInt();\n\t\t\tweight[i][i]=nums[i];\n\t\t}\n\t\tfor(int i=0;i<N;i++){\n\t\t\tfor(int j=i+1;j<N;j++){\n\t\t\t\tweight[i][j]=weight[i][j-1]+nums[j];\n\t\t\t}\n\t\t}\n\t\tlong[][] dp=new long[N][N];\n\t\tfor(int i=2;i<=N;i++){//dis\n\t\t\tfor(int j=0;j<=N-i;j++){//start\n\t\t\t\tint end=j+i-1;\n\t\t\t\tlong min=Integer.MAX_VALUE;\n\t\t\t\tfor(int k=j;k<end;k++){\n\t\t\t\t\tmin=Math.min(min, dp[j][k]+dp[k+1][end]+weight[j][k]*a+weight[k+1][end]*b);\n\t\t\t\t}\n\t\t\t\tdp[j][end]=min;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(dp[0][N-1]);\n\t\tscan.close();\n\t}", "public BigInteger calculateFibDP (BigInteger n){\n\t\t\n\t\tif (fibHashMap.containsKey(n))\n\t\t\treturn fibHashMap.get(n);\n\t\t\n\t\tBigInteger low = new BigInteger(\"3\");\n\t\tint compareValue=n.compareTo(low);\n\t\tif(compareValue==-1)\n\t\t\treturn new BigInteger(\"1\");\n\t\telse{\n\t\t\t\n\t\t\tBigInteger num = calculateFibDP ( n.subtract(new BigInteger(\"1\")) ).add(calculateFibDP ( n.subtract(new BigInteger(\"2\")))); \n\t\t\tfibHashMap.put(n, num);\n\t\t\treturn num;\n\t\t}\n\t}", "public static void dynamicProgramming2(int[][] myArray){ \t\r\n\t\tint countNode = myArray.length;\r\n\t\tint rows = myArray[0].length;\r\n\t\tif(rows != countNode) {\r\n\t\t\tthrow new IllegalArgumentException();\r\n\t\t}\r\n\t\t\r\n \tint[] cost = new int[countNode];\r\n \tint[] prev = new int[countNode];\r\n \tboolean[] visited = new boolean[countNode];\r\n \t\r\n \tfor(int i = 0; i < countNode; i++) {\r\n \t\tcost[i] = myArray[0][i];\r\n \t\tprev[i] = 0;\r\n \t\tvisited[i] = false;\r\n \t}\r\n \t\r\n \tint cur = 0; \t\r\n \twhile(true)\r\n \t{\r\n \t\tfor(int i = cur; i < countNode; i++)\r\n \t\t{\r\n \t\t\tif(myArray[cur][i] + cost[cur] < cost[i])\r\n \t\t\t{\r\n \t\t\t\tcost[i] = myArray[cur][i] + cost[cur];\r\n \t\t\t\tprev[i] = cur;\r\n \t\t\t}\r\n \t\t}\r\n \t\t\r\n \t\tvisited[cur] = true;\r\n \t\tif(AllVisited(visited)) break;\r\n \t\t\r\n \t\t// Choose the node which is not visited yet\r\n \t\t// and has the minimum cost so far.\r\n \t\tint min = Integer.MAX_VALUE;\r\n \t\tfor(int i = 0; i < countNode; i++){\r\n \t\t\tif(!visited[i] && cost[i] < min) {\r\n \t\t\t\tcur = i;\r\n \t\t\t\tmin = cost[i];\r\n \t\t\t}\r\n \t\t}\r\n \t}\r\n \tSystem.out.println(\"Dynamic Programming2:\");\r\n \tSystem.out.println(\"Minimum Cost to go from 1 to \" + countNode + \" is \" + cost[countNode - 1]);\r\n \tStack<Integer> s = new Stack<Integer>();\r\n \tint traveller = countNode - 1;\r\n \ts.push(countNode);\r\n \twhile(traveller != 0)\r\n \t{\r\n \t\ts.push(prev[traveller] + 1);\r\n \t\ttraveller = prev[traveller];\r\n \t}\r\n \t\r\n \tStringBuilder sb = new StringBuilder();\r\n \twhile(!s.empty())\r\n \t{\r\n \t\tsb.append(s.pop());\r\n \t\tif (!s.empty()) {\r\n \t\tsb.append(\" -> \");\r\n \t\t}\r\n \t}\r\n \t\r\n \tSystem.out.println(\"Path from 1 to end is \" + sb.toString()); \r\n \tSystem.out.println();\r\n }", "static int webknapSackDyna(int W, int wt[], int val[], int n) {\n int i, w;\n int K[][] = new int[n + 1][W + 1];\n //K[i][w] represents the max value for weight w by using i elements\n // row i represents using i values\n // col w represents the current weight\n // Build table K[][] in bottom up manner\n // n is the number of values available to use\n // for each available value\n for (i = 0; i <= n; i++) {\n // for each weight until target weight is achieved\n for (w = 0; w <= W; w++) {\n\n if (i == 0 || w == 0)\n K[i][w] = 0;\n // if the previous weight is still less than the target weight it can potentially be included\n // to calculate the max val for current weight\n else if (wt[i - 1] <= w)\n // val[i-1]: value for the i th weight\n // K[i-1][w-wt[i-1]]: max value using i-1 values to achieve weight target weight - wt of i-1 element\n // val[i-1] + K[i-1][w-wt[i-1]] -> used ith weight add val[i-] and use the remaining i-1 weights to\n // get to the target weight w-wt of ith element -> wt-wt[i-1]\n // K[i-1][w] => max value using i-1 elements to achieve weight w i.e. not using ith element\n K[i][w] = max(val[i - 1] + K[i - 1][w - wt[i - 1]], K[i - 1][w]);\n // wt[i-1] > w\n else\n K[i][w] = K[i - 1][w];\n }\n }\n\n return K[n][W];\n }", "public int coinChange(int[] coins, int amount) {\n Arrays.sort(coins); // greedy. Iterate from largest value\n \n int[] ans = new int[]{Integer.MAX_VALUE};\n helper(coins.length - 1, coins, amount, 0, ans);\n \n return ans[0] == Integer.MAX_VALUE ? -1 : ans[0];\n }", "public int combinationSum4A(int[] nums, int target) {\r\n if (nums == null || nums.length == 0) return 0;\r\n int n = nums.length;\r\n Arrays.sort(nums);\r\n int[] dp = new int[target+1];\r\n\r\n for (int i=1; i<=target; i++) {\r\n for (int j=0; j<n; j++) {\r\n if (nums[j] > i) {\r\n break;\r\n } else if (nums[j] == i) {\r\n dp[i] += 1;\r\n } else {\r\n dp[i] += dp[i-nums[j]];\r\n }\r\n }\r\n }\r\n \r\n return dp[target];\r\n }", "int catalanDP(int n) {\n int[] catalan = new int[n+1]; \n \n // Initialize first two values in table \n catalan[0] = catalan[1] = 1; \n\n // Fill entries in catalan[] using recursive formula \n for (int i=2; i<=n; i++) { \n catalan[i] = 0; \n for (int j=0; j<i; j++) \n catalan[i] += catalan[j] * catalan[i-j-1]; \n } \n \n // Return last entry \n return catalan[n]; \n }", "private static int min_coins(int[] d, int k) {\n\t\t\n\t\treturn -1;\n\t}", "static long numWays(int index, int m, int n, int[] arr) {\n long count = 0;\n\n\n if (n == 0 || index == (m - 1)) {\n if (index == (m - 1)) {\n arr[index] = n;\n }\n// for (int x : arr) {\n// System.out.print(x + \",\");\n// }\n// System.out.println();\n return 1;\n }\n\n if (n < 0 || index >= m) {\n return 0;\n }\n\n\n String key = index(arr, index, m, n);\n if (dp.containsKey(key)) {\n return dp.get(key);\n }\n\n\n for (int i = 0; i <= n; i++) {\n arr[index] = i;\n count += numWays(index + 1, m, n - i, arr);\n// for (int j = index + 1; j < arr.length; j++) {\n// arr[j] = 0;\n// }\n }\n\n dp.put(key, count % prime);\n return count % prime;\n }", "private static boolean findEqualSumBottomUp(int[] arr, int n, int sum) {\n boolean subset[][] = \n new boolean[sum+1][n+1]; \n \n // If sum is 0, then answer is true \n for (int i = 0; i <= n; i++) \n subset[0][i] = true; \n \n // If sum is not 0 and set is empty, \n // then answer is false \n for (int i = 1; i <= sum; i++) \n subset[i][0] = false; \n \n // Fill the subset table in botton \n // up manner \n for (int i = 1; i <= sum; i++) \n { \n for (int j = 1; j <= n; j++) \n { \n subset[i][j] = subset[i][j-1]; \n if (i >= arr[j-1]) \n subset[i][j] = subset[i][j] || \n subset[i - arr[j-1]][j-1]; \n } \n } \n \n // uncomment this code to print table \n /*for (int i = 0; i <= sum; i++) \n { \n for (int j = 0; j <= n; j++) \n System.out.print (subset[i][j]+\" \"); \n } */\n \n return subset[sum][n];\n\t}", "public static int frog(int n, int [] h){\n\n int dp[] = new int [n];\n\n dp[0] = 0;\n dp[1] = Math.abs(h[1] - h[0]);\n\n for(int i = 2; i < n ; i ++){\n\n dp[i] = Math.min(dp [i - 2] + Math.abs(h[i] - h[i - 2]), dp[i - 1] + Math.abs(h[i] - h[i - 1]));\n\n\n\n }\n //print(dp);\n return dp[n - 1];\n }", "public int arrangeCoinsApprach3(int n) {\n long nLong = (long)n;\n \n long st = 0;\n long ed = nLong;\n \n long mid = 0;\n \n while (st <= ed){\n mid = st + (ed - st) / 2;\n \n if (mid * (mid + 1) <= 2 * nLong){\n st = mid + 1;\n }else{\n ed = mid - 1;\n }\n }\n \n return (int)(st - 1);\n }", "public int minCostClimbingStairs(int[] cost) {\n // We initialize an array of size = cost, and it means the minimun cost of reaching n^th stair\n int[] dp = new int[cost.length];\n // We assign values to the first 2 numbers in the array because it can´t be smaller than 3\n dp[0] = cost[0];\n dp[1] = cost[1];\n // We iterate from n=2 to n-1, and in each position we save the min\n // value to reach the stair, the MIN is (dp[i-1] + cost[i] , dp[i-2] + cost[i]\n // that is so that the min way of reaching that stair is either using the n-1 or n-2\n for (int i = 2; i < cost.length; i++) {\n dp[i] = Math.min(dp[i - 1] + cost[i], dp[i - 2] + cost[i]);\n }\n\n // We return the min value of the last 2 stairs because both can reach the end\n return Math.min(dp[cost.length - 1], dp[cost.length - 2]);\n\n\t\t /*\n\t\t\t cost[1,100,1,1,1,100,1,1,100,1]\n\t\t 1.- Imagine this is the array\n\t\t\t dp[]\n\t\t 2.- We add the first two values\n\t\t\t dp[1,100]\n\t\t 3.- Iterate form 2 to n\n\t\t\t This is a representation of the first one\n\t\t dp[2] = Math.min(1+1, 100+1)\n\t\t dp[2] = Math.min(2,101)\n\t\t dp[2] = 2\n\t\t dp[1,100,2]\n\t\t\t After the for, this is how it should look\n\t\t dp[1,100,2,3,3,103,4,5,105,6]\n\t\t 4.- Select the min between last 2 because both can reach last step\n\t\t\treturn min (105,6)\n\t\t\treturn 6\n\n\t\t\tIt should have a space complexity of O(n) becuase we´re using an array of n size\n\t\t\tThe time complexity should also be O(n) because we have to iterate through all the array once\n\n\t\t */\n }", "int countSusbset(int n, int w){\n int dp[][] = new int[n+1][w+1];\n for(int i=0;i<=n;i++){\n for(int j=0;j<=w;j++){\n //when no items are there and target sum is 0, only one empty subset is possible\n if(i == 0 && j == 0){\n dp[i][j] = 1;\n }\n //no items left and target sum is greater than 0, no set is possible\n else if(i == 0 && j > 0){\n dp[i][j] = 0; \n }\n //if target sum is 0, no matter how many items we have , only one empty subset is possible\n else if(j == 0){\n dp[i][j] = 1;\n }\n //since item > target sum, so exclude\n else if(arr[i-1] > j){\n dp[i][j] = dp[i-1][j];\n }else{\n //two cases include and exclude\n dp[i][j] = dp[i-1][j] + dp[i-1][j - arr[i-1]];\n }\n }\n }\n return dp[n][w];\n}", "public static void main(String[] args) {\n Scanner sc=new Scanner(System.in);\n int coins[]=new int[]{1,2,5};\n int amount=5;\n int[][] dp = new int[coins.length][amount + 1];\n for(int i = 0; i < coins.length; i++){\n Arrays.fill(dp[i], -1);\n }\n System.out.println(cc(coins, 0, amount, dp));\n\n }", "public static void knapsackDynamicProgramming(objects[] items, int capacity, int n) \r\n { \r\n\t\t//use bubble sort to sort item by their weight\t\t\t\t\r\n\t\tfor (int i = 0; i < n-1; i++) \t\t\t\t\r\n\t\t{ \t\t \r\n\t\t\tfor (int j = 0; j < (n-i-1); j++) \t\t \r\n\t\t\t{\t\t \r\n\t\t\t\tif (items[j].weight < items[j+1].weight) \t\t \r\n\t\t\t\t{ \t\t \t\r\n\t\t\t\t\tobjects temp = items[j]; \t\t \r\n\t\t\t\t\titems[j] = items[j+1]; \t\t \r\n\t\t\t\t\titems[j+1] = temp; \t\t \t\t\t\t\t\r\n\t\t\t\t}\t\t \r\n\t\t\t}\t\t\t\t\r\n\t\t}\r\n\t\t\r\n \tif(n <= 0 || capacity <= 0)\r\n \t{\r\n \t\tSystem.out.print(\"Error capacity and object numbers can't be 0\");\r\n \t}\r\n \r\n \tint matrixTable[][] = new int[n+1][capacity+1]; \r\n \r\n \tfor (int i = 0; i <= n; i++) \r\n \t{ \r\n \t\tfor (int j = 0; j <= capacity; j++) \r\n \t\t{ \r\n \t\t\t//Preset row 0 value and column value to 0\r\n \t\t\tif (i==0 || j==0) \r\n \t {\r\n \t\t\t\tmatrixTable[i][j] = 0; \r\n \t }\r\n \r\n \t\t\t//If current row number is greater than current weight number\r\n \t\t\telse if (items[i-1].weight <= j) \r\n \t\t\t{\r\n \t\t\t\t//Compare the top value with top value plus value(use weight as the value to go left)result\r\n \t\t\t\t//and use the greatest value for the current one.\r\n \t\t\t\tmatrixTable[i][j] = Math.max(items[i-1].profit + matrixTable[i-1][j-items[i-1].weight], matrixTable[i-1][j]); \r\n \t\t\t}\r\n \t\t\t//If row number is less than current weight number just use the top value\r\n \t\t\telse \r\n \t\t\t{ \t \r\n \t\t\t\tmatrixTable[i][j] = matrixTable[i-1][j];\r\n \t\t\t}\r\n \t\t} \t\r\n \t} \r\n \t\r\n\t\tint totalProfit = matrixTable[n][capacity]; \t\t\r\n\t\tint temp = matrixTable[n][capacity];\r\n\t\tint [] itemInKnapsack = new int [n];\r\n\t\t\r\n\t\t//solving which item is in the knapsack\r\n for (int i = n; i > 0 && temp > 0; i--) { \r\n \r\n \r\n \tif (temp == matrixTable[i - 1][capacity]) \r\n \t{\r\n continue;\r\n \t}\r\n \t//if the top value is different than it is include in the knapsack\r\n else \r\n { \r\n itemInKnapsack[i-1] = items[i-1].index; //Save item number\r\n temp = temp - items[i - 1].profit; \r\n capacity = capacity - items[i - 1].weight; \r\n } \r\n } \r\n \r\n printResult(itemInKnapsack, totalProfit, 2); //Call print result\r\n }", "public static ArrayList<Integer> get(int[] coins, int amount) {\n // table for minimum number of coins for each value up to amount\n int[] numCoins = new int[amount + 1];\n // table for the last coin used for each value up to amount\n int[] lastCoin = new int[amount + 1];\n numCoins[0] = 0;\n lastCoin[0] = 0;\n \n \n int p = 0;\n for(int k = 0; k < coins.length; k++){\n p += coins[k];\n }\n \n //if array is empty, throws the exception\n if(p == 0){\n throw new IllegalArgumentException(\"Array of size 0 is not allowed\");\n }\n \n \n // iterate through each value up to amount\n for (int i = 1; i <= amount; i++) {\n int min = Integer.MAX_VALUE;\n int used = 0;\n // iterate through coins\n for (int coin: coins) {\n // if the coin is less than the value\n if (coin <= i) {\n // and using the coin results in using less coins overall\n if (1 + numCoins[i - coin] < min) {\n // update the min number of coins\n min = 1 + numCoins[i - coin];\n // and the last coin used\n used = coin;\n }\n }\n }\n // set min number of coins for the value\n numCoins[i] = min;\n // and the last coin used for the value\n lastCoin[i] = used;\n }\n \n // create an array list to store used coins\n ArrayList<Integer> coinsUsed = new ArrayList();\n \n // get first coin\n int last = lastCoin[amount];\n int remaining = amount;\n \n // while there is more change\n while (last != 0) {\n // get next coin and redo\n coinsUsed.add(last);\n remaining = remaining - last;\n last = lastCoin[remaining];\n }\n \n return coinsUsed;\n }", "public static int topDownApproach(int n, int table[]) {\r\n\t\tif (n < 2)\r\n\t\t\treturn n;\r\n\t\tif (table[n] != 0) {\r\n\t\t\treturn table[n];\r\n\t\t} else {\r\n\t\t\ttable[n] = topDownApproach(n - 1, table)\r\n\t\t\t\t\t+ topDownApproach(n - 2, table);\r\n\t\t}\r\n\r\n\t\treturn table[n];\r\n\t}", "public static void main(String[] args) {\n\t\tScanner scan = new Scanner(System.in);\n int n = scan.nextInt();\n int [] dp = new int [n+1];\n \n dp[0] = 0;\n dp[1] = 0;\n \n for(int i=2; i<=n; i++) {\n dp[i] = dp[i-1]+1; //n이 나누어떨어지는 것과 관계없는 n-1을 일단 dp[i]에 넣어둔다.\n if(i%2 == 0) dp[i] = Math.min(dp[i/2]+1, dp[i]); \n if(i%3 == 0) dp[i] = Math.min(dp[i/3]+1, dp[i]);\n }\n System.out.println(dp[n]);\n\n\n\t}", "public int minimumCost(int N, int[][] connections) {\n int[] parent = new int[N + 1];\n Arrays.fill(parent, -1);\n Arrays.sort(connections, (a,b) -> (a[2]-b[2]));\n int cnt = 0;\n int minCost = 0;\n \n for(int[] edge: connections){\n int src = edge[0];\n int dst = edge[1];\n int cost = edge[2];\n \n int srcSubsetId = find(parent, src);\n int dstSubsetId = find(parent, dst);\n \n if(srcSubsetId == dstSubsetId) {\n // Including this edge will cause cycles, then ignore it\n continue;\n }\n cnt += 1;\n minCost += cost;\n union(parent, src, dst);\n }\n return cnt==N-1? minCost : -1;\n}", "public static void main(String[] args) throws NumberFormatException, IOException {\n\t\tBufferedReader in = new BufferedReader(new InputStreamReader(System.in));\n\t\tString[] input = in.readLine().split(\" \");\n\t\tint num = Integer.parseInt(input[0]);\n\t\tint cost = Integer.parseInt(input[1]);\n\n\t\tint coin[] = new int[num + 1];\n\t\tint dp[] = new int[cost + 1];\n\n\t\tfor (int i = 1; i <= num; i++)\n\t\t\tcoin[i] = Integer.parseInt(in.readLine());\n\n\t\tfor (int i = 1; i <= cost; i++)\n\t\t\tdp[i] = 100001;\n\n\t\tfor (int i = 1; i <= num; i++) {\n\t\t\tfor (int j = 1; j <= cost; j++) {\n\t\t\t\tif (j - coin[i] >= 0)\n\t\t\t\t\tdp[j] = Math.min(dp[j], dp[j - coin[i]] + 1); //최소땐 최대값 넣어주기 \n\t\t\t}\n\t\t}\n\n\t\tif (dp[cost] == 100001)\n\t\t\tSystem.out.print(-1);\n\t\telse\n\t\t\tSystem.out.println(dp[cost]);\n\t}", "public int change(int amount, int[] coins) {\n int[] combinations = new int [amount + 1];\n combinations[0] = 1;\n for (int coin : coins) {\n for (int intermediateAmount = coin; intermediateAmount <= amount; intermediateAmount++) {\n combinations[intermediateAmount] += combinations[intermediateAmount - coin];\n }\n }\n return combinations[amount];\n }", "public static int[][] optimalBST2(double[] p,double[] q, int num){\n double[][] e = new double[num+2][num+2];//子树期望代价\n double[][] w = new double[num+2][num+2];//子树总概率\n //why e and w is two bigger than num?\n //because when i==j, e[i][i-1] + e[i+1][j] + w[i][j];\n\n int[][] root = new int[num+1][num+1];//记录根节点\n //root[i][j] -- 用来存放i-j组成的最优二叉查找树的根节点\n\n //init--初始化\n for(int i=1; i<num+2; i++){\n e[i][i-1] = q[i-1];\n w[i][i-1] = q[i-1];\n }\n\n for(int d = 0; d<num; d++){\n //插入个数 : 0 - num-1, 从0开始\n for(int i=1; i<=num-d; i++){\n //起始下标 : 1 - num, 从1开始\n int j = i + d;\n e[i][j] = 9999;\n w[i][j] = w[i][j-1] + p[j] + q[j];//\n\n //because of root[i][j-1] <= root[i][j] <= root[i+1][j]\n //so why?\n //\n //进行优化!!!\n if(i == j){\n root[i][j] = i;\n e[i][j] = e[i][i-1] + e[i+1][i] + w[i][i];\n }else{\n for(int k=root[i][j-1]; k<=root[i+1][j]; k++){\n //中间下标\n double temp = e[i][k-1] + e[k+1][j] + w[i][j];\n if(temp < e[i][j]){\n e[i][j] = temp;\n //找到小的,记录下来\n root[i][j] = k;\n }\n\n }\n }\n }\n }\n return root;\n }", "private int calc(int x, int n, int i, int sum) {\n int ways = 0;\n\n // Calling power of 'i' raised to 'n'\n int p = (int) Math.pow(i, n);\n while (p + sum < x) {\n // Recursively check all greater values of i\n ways += calc(x, n, i + 1,\n p + sum);\n i++;\n p = (int) Math.pow(i, n);\n }\n\n // If sum of powers is equal to x\n // then increase the value of result.\n if (p + sum == x)\n ways++;\n\n // Return the final result\n return ways;\n }", "static int recurseMaxStolenValue(int[] values,int i){\r\n\t if(i >= values.length) return 0;\r\n\t if(i == values.length -1) return values[values.length-1];\r\n\t \r\n\t return Math.max( values[i] + recurseMaxStolenValue(values,i+2)\r\n\t ,values[i+1] + recurseMaxStolenValue(values,i+3)\r\n\t );\r\n\t /*\r\n\t *Approach #2 for Recursion --> This approach won't work to convert to DP,but recursion yields right result\r\n\t */\r\n\t \r\n\t /*\r\n\t if(i >= values.length) return 0; \r\n\t int result1 = values[i]+recurseMaxStolenValue(values,i+2);\r\n\t int result2 = recurseMaxStolenValue(values,i+1);\r\n\t return (Math.max(result1,result2));\r\n\t */\r\n\t \r\n\t }", "public int findCheapestPrice(int n, int[][] flights, int src, int dst, int K) {\n int[][] g = new int[n][n];\n \n for(int[] f : flights){\n int start = f[0];\n int end = f[1];\n int price = f[2];\n g[start][end] = price;\n }\n \n PriorityQueue<int[]> pq = new PriorityQueue<>((a,b)->a[0]-b[0]);\n pq.offer(new int[]{0,src,K+1});\n while(!pq.isEmpty()){\n int[] curr = pq.poll();\n int currPrice = curr[0];\n int currPoint = curr[1];\n int stepsRemain = curr[2];\n \n // if this point is destination, finish\n if(currPoint == dst) return currPrice;\n \n if(stepsRemain >0){\n // Add all reachable neighbors\n for(int i=0; i<n; i++){\n if(g[currPoint][i] != 0){\n int nextPrice = g[currPoint][i];\n pq.offer(new int[]{currPrice+nextPrice, i, stepsRemain-1});\n }\n } \n } \n }\n return -1;\n }", "static int unboundedKnapsack(int [] val,int[] wt, int W){\n int n = val.length;\n int[][] dp = new int[n+1][W+1];\n for (int i =0;i<=n;i++){\n dp[i][0] = 0;\n }\n for (int j = 0;j<=W;j++){\n dp[0][j] = 0;\n }\n\n for (int i=1;i<=n;i++){\n for (int j = 1;j<=W;j++){\n if (wt[i-1] <= j){\n dp[i][j] = Math.max(dp[i-1][j], val[i-1] + dp[i][j - wt[i-1]]);\n }else{\n dp[i][j] = dp[i-1][j];\n }\n }\n }\n return dp[n][W];\n }", "public int minDis(String s1, String s2, int n, int m, int[][]dp){\n \n if(n == 0) \n return m; \n if(m == 0) \n return n;\n \n // To check if given n & m has already been executed\n if(dp[n][m] != -1) \n return dp[n][m];\n \n // If characters are equal, execute recursive function for n-1, m-1\n if(s1.charAt(n-1) == s2.charAt(m-1))\n { \n if(dp[n-1][m-1] == -1)\n { \n return dp[n][m] = minDis(s1, s2, n-1, m-1, dp); \n } \n else\n return dp[n][m] = dp[n-1][m-1]; \n }\n \n //If characters are not equal, we need to\n //Find the minimum cost out of all 3 operations. \n else\n { \n int m1, m2, m3; // temp variables \n if(dp[n-1][m] != -1)\n { \n m1 = dp[n - 1][m]; \n } \n else\n { \n m1 = minDis(s1, s2, n - 1, m, dp); \n } \n \n if(dp[n][m - 1] != -1)\n { \n m2 = dp[n][m - 1]; \n } \n else\n { \n m2 = minDis(s1, s2, n, m - 1, dp); \n } \n \n if(dp[n - 1][m - 1] != -1)\n { \n m3 = dp[n - 1][m - 1]; \n } \n else\n { \n m3 = minDis(s1, s2, n - 1, m - 1, dp); \n } \n return dp[n][m] = 1 + Math.min(m1, Math.min(m2, m3)); \n } \n }", "public static void main(String[] args) {\n\t\tInteger[] arr = new Integer[]{1,5,10,25};\r\n\t\tInteger N = 100;\r\n\t\t\r\n\t\tInteger[] dp = new Integer[N+1];\r\n\t\tCoinChange obj = new CoinChange();\r\n\t\t\r\n\t\tSystem.out.println(obj.recurse(arr,dp,100));\r\n\t}", "int calculateMinimumHP(int[][] dungeon) {\n int m = dungeon.length;\n assert (m > 0);\n int n = dungeon[0].length;\n int[] dp = new int[n + 1];\n for (int j = n - 1; j >= 0; j--) dp[j] = Integer.MAX_VALUE;\n dp[n] = 1;\n\n for (int i = m - 1; i >= 0; i--) {\n for (int j = n - 1; j >= 0; j--)\n dp[j] = Math.max(1, Math.min(dp[j], dp[j + 1]) - dungeon[i][j]);\n //System.out.println(Arrays.toString(dp));\n dp[n] = Integer.MAX_VALUE;\n }\n return dp[0];\n }", "static int knapSack(int totalWeight, int wt[], int val[], int n) {\n\t\t// Base Case\n\t\tif (n == 0 || totalWeight == 0)\n\t\t\treturn 0;\n\n\t\t// If weight of the nth item is more than Knapsack capacity W, then\n\t\t// this item cannot be included in the optimal solution\n\t\tif (wt[n - 1] > totalWeight)\n\t\t\treturn knapSack(totalWeight, wt, val, n - 1);\n\n\t\t// Return the maximum of two cases:\n\t\t// (1) nth item included\n\t\t// (2) not included\n\t\telse\n\t\t\treturn max(\n\t\t\t\t\tval[n - 1]\n\t\t\t\t\t\t\t+ knapSack(totalWeight - wt[n - 1], wt, val, n - 1),\n\t\t\t\t\tknapSack(totalWeight, wt, val, n - 1));\n\t}", "public static int countUniqueCombinationsDP(int score) {\r\n /*\r\n * Return Type of DP array is same as return type of the recursive function\r\n * Dimensions of DP array is the number of non constant parameters to the recursive function\r\n */\r\n \t\r\n \t/*\r\n \t * Fn(s) = Fn(s-7) [if(s>=7)] + Fn(s-3) [if(s>=3)] + Fn(s-2) [if(s>=2)]\r\n\t\t * Fn(0) = 1\r\n\t\t * \r\n * F(11) = F(4) + F(8) + F(9)\r\n */\r\n \tint[][] comb = new int[score + 1][3];\r\n // int[] points = {2,3,7};\r\n \r\n // Halting Conditions\r\n comb[0][0] = 1;\r\n comb[0][1] = 1;\r\n comb[0][2] = 1;\r\n \r\n /*\r\n * Loop goes in the direction opposite to that of the recursion \r\n */\r\n for (int s = 1; s <= score; ++s) {\t\t// s is the score of the recursion\r\n \tfor (int p = 0; p < 3; ++p) {\r\n\t \tint total = 0;\r\n\t if (s >= 2 && p == 0)\r\n\t \ttotal = total + comb[s - 2][0];\r\n\t if (s >= 3 && p <= 1)\r\n\t \ttotal = total + comb[s - 3][1];\r\n\t if (s >= 7)\t\t\t// No need of condition p<=2; as it will always be true\r\n\t \ttotal = total + comb[s - 7][2];\r\n\t comb[s][p] = total;\r\n \t}\r\n }\r\n\r\n return comb[score][0];\r\n }", "int countSusbset(int n, int w){\n //i.e target sum achieved\n if(w == 0){\n return 1;\n }\n \n //if sum not achieved and no items left\n if(n == 0){\n return 0;\n }\n \n //if item is gretart than target weight, we have to exclude it\n if(arr[n-1] > w){\n return countSusbset(n-1, w)\n }else{ \n return countSusbset(n-1, w) + countSusbset(n-1, w - arr[n-1]);\n }\n}" ]
[ "0.76016885", "0.6960923", "0.6839422", "0.65233827", "0.6510746", "0.64917934", "0.6351347", "0.6341349", "0.6277804", "0.62647665", "0.6240111", "0.6193214", "0.61823004", "0.6134764", "0.6038823", "0.6029011", "0.59598017", "0.5942756", "0.5905649", "0.58820355", "0.586933", "0.5866464", "0.58453304", "0.5801755", "0.57957286", "0.5760749", "0.5735804", "0.5716538", "0.5713443", "0.56976175", "0.5673089", "0.56107354", "0.5597945", "0.55952084", "0.5586585", "0.55799454", "0.55462843", "0.5530542", "0.5530475", "0.55272865", "0.5524457", "0.5515087", "0.54835576", "0.5475792", "0.5458655", "0.545388", "0.5448139", "0.54141116", "0.54106605", "0.5398338", "0.53945416", "0.5381564", "0.5377703", "0.53733265", "0.5369531", "0.53506607", "0.534613", "0.5341477", "0.5338581", "0.5337769", "0.53353924", "0.5330725", "0.5323761", "0.53143376", "0.5311358", "0.5306683", "0.5299113", "0.5297956", "0.52975595", "0.5281639", "0.52669895", "0.52647203", "0.5259865", "0.52578455", "0.5256009", "0.52551943", "0.52545685", "0.52464926", "0.52375776", "0.52353925", "0.523301", "0.5231467", "0.5219895", "0.5214413", "0.5192042", "0.51779395", "0.51709676", "0.51675254", "0.51653725", "0.5162711", "0.51547575", "0.5154523", "0.51484805", "0.5148303", "0.5144421", "0.5139023", "0.5132859", "0.5129583", "0.51258177", "0.51162744" ]
0.6779888
3
===== Approach 2. Time = O(n amount) 19ms Base case: dp[n][0] = 0, dp[n][1...m] = inf or amount Induction rule: dp[i][j] = min(dp[i+1][j], dp[icoins[j]] + 1)
public int coinChange(int[] coins, int amount) { int max = amount + 1; int[] dp = new int[amount + 1]; Arrays.fill(dp, max); dp[0] = 0; for (int i = 1; i <= amount; i++) { for (int j = 0; j < coins.length; j++) { if (coins[j] <= i) { dp[i] = Math.min(dp[i], dp[i - coins[j]] + 1); } } } return dp[amount] > amount ? -1 : dp[amount]; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static void dp() {\n\t\tm[0] = 0;\n\t\tk[0] = 0;\n\n\t\t// base case 1:for 1 cent we need give 1 cent\n\t\tm[1] = 1;\n\t\tk[1] = 1;\n\n\t\tfor (int i = 2; i <= n; i++) {\n\t\t\tint min = Integer.MAX_VALUE;\n\t\t\tint sel = -1;\n\t\t\tfor (int j = 0; j < sd; j++) {\n\t\t\t\tint a = d[j];\n\t\t\t\tif (a > i) {\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tint v = 1 + m[i - a];\n\t\t\t\tif (v < min) {\n\t\t\t\t\tmin = v;\n\t\t\t\t\tsel = a;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (sel == -1)\n\t\t\t\tthrow new NullPointerException(\"sel != -1\");\n\t\t\tm[i] = min;\n\t\t\tk[i] = sel;\n\t\t}\n\t}", "public static void main(String[] args) {\n Scanner scanner = new Scanner(System.in);\n int N = scanner.nextInt(), M = scanner.nextInt();\n int[][] graph = new int[N + 1][N + 1];\n\n for (int i = 0; i < M; i++) {\n int from = scanner.nextInt(), to = scanner.nextInt();\n int weight = scanner.nextInt();\n graph[from][to] = weight;\n }\n \n int[][][] dp = new int[N + 1][N + 1][N + 1];\n\n for (int i = 1; i <= N; i++) {\n for (int j = 1; j <= N; j++) {\n if (graph[i][j] != 0) {\n dp[0][i][j] = graph[i][j];\n } else {\n dp[0][i][j] = Integer.MAX_VALUE;\n }\n }\n }\n \n for (int k = 0; k <= N; k++) {\n for (int i = 1; i <= N; i++) {\n dp[k][i][i] = 0;\n }\n }\n\n for (int k = 1; k <= N; k++) {\n for (int i = 1; i <= N; i++) {\n for (int j = 1; j <= N; j++) {\n if (dp[k - 1][i][k] != Integer.MAX_VALUE && dp[k - 1][k][j] != Integer.MAX_VALUE) {\n dp[k][i][j] = Math.min(dp[k - 1][i][j], dp[k -1][i][k] + dp[k -1][k][j]);\n } else {\n dp[k][i][j] = dp[k - 1][i][j];\n }\n }\n }\n }\n\n int Q = scanner.nextInt();\n StringBuilder sb = new StringBuilder();\n for (int i = 0; i < Q; i++) {\n int from = scanner.nextInt(), to = scanner.nextInt();\n int res = dp[N][from][to] == Integer.MAX_VALUE ? -1 : dp[N][from][to];\n sb.append(res).append('\\n');\n }\n System.out.println(sb.toString());\n }", "int solve() {\n dp[0][0] = 1;\n IntStream.rangeClosed(1, m).forEach(i ->\n IntStream.rangeClosed(0, n).forEach(j ->\n dp[i][j] = j - i >= 0 ?\n (dp[i - 1][j] + dp[i][j - i]) % M :\n dp[i - 1][j]));\n return dp[m][n];\n }", "public static void main(String[] args) {\n\t\tScanner s = new Scanner(System.in);\n\t\tint t = s.nextInt();\n\t\twhile(t-->0)\n\t\t{\n\t\t\tint n = s.nextInt();\n\t\t\tint k = s.nextInt();\n\t\t\tint[] arr = new int[n];\n\t\t\tfor(int i=0;i<n;i++)\n\t\t\t\tarr[i] = s.nextInt();\n\t\t\tArrays.sort(arr);\n\t\t\tint[][] dp = new int[k+1][n+1];\n\t\t\tfor(int i=0;i<=k;i++)\n\t\t\t\tfor(int j=0;j<=n;j++)\n\t\t\t\t{\n\t\t\t\t\tif(i==0)\n\t\t\t\t\t\tdp[i][j] = 0;\n\t\t\t\t\telse if(j==0)\n\t\t\t\t\t\tdp[i][j] = -1;\n\t\t\t\t\telse if(i-arr[j-1]>=0)\n\t\t\t\t\t{\n\t\t\t\t\t\tint val1 = dp[i-arr[j-1]][j-1];\n\t\t\t\t\t\tint val2 = dp[i][j-1];\n\t\t\t\t\t\tif(val1!=-1 && val2!=-1)\n\t\t\t\t\t\t\tdp[i][j] = Math.min(1+val1,val2);\n\t\t\t\t\t\telse if(val1!=-1)\n\t\t\t\t\t\t\tdp[i][j] = 1+val1;\n\t\t\t\t\t\telse if(val2!=-1)\n\t\t\t\t\t\t\tdp[i][j] = val2;\n\t\t\t\t\t\telse\n\t\t\t\t\t\t\tdp[i][j] = -1;\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t{\n\t\t\t\t\t\tif(dp[i][j-1]==-1)\n\t\t\t\t\t\t\tdp[i][j] = -1;\n\t\t\t\t\t\telse\n\t\t\t\t\t\t\tdp[i][j] = dp[i][j-1];\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\tif(dp[k][n]!=-1)\n\t\t\t\tSystem.out.println(dp[k][n]);\n\t\t\telse\n\t\t\t\tSystem.out.println(\"impossible\");\n\t\t}\n\t}", "static public int solve(int n,int A[])\n {\n int freqArr[] = new int[1001];\n int dp[] = new int[1001];\n\n for(int i=0; i<n; i++){\n freqArr[A[i]]++;\n }\n\n dp[0] = 0;\n dp[1] = freqArr[1] > 0 ? freqArr[1] : 0;\n\n for(int i=2; i<=1000; i++){\n dp[i] = Math.max(dp[i-2] + i*freqArr[i], dp[i-1]);\n }\n return dp[1000];\n }", "public boolean canPartition(int[] nums) {\n int sum = 0;\n int n = nums.length;\n for (int num : nums) sum += num;\n // sum cannot be splitted evenly\n if ((sum & 1) == 1) return false;\n int target = sum / 2;\n \n // dp[i][j] represents whether 0~i-1 numbers can reach\n // weight capacity j\n boolean[][] dp = new boolean[n+1][target+1];\n \n for (int i = 1; i <= n; i++) dp[i][0] = true;\n for (int j = 1; j <= target; j++) dp[0][j] = false;\n dp[0][0] = true;\n \n for (int i = 1; i <= n; i++) {\n for (int j = 1; j <= target; j++) {\n // if don't pick current number\n dp[i][j] = dp[i-1][j];\n if (j >= nums[i-1]) {\n dp[i][j] = dp[i][j] || dp[i-1][j-nums[i-1]];\n }\n }\n }\n return dp[n][target];\n \n \n // Solution2: optimizing to save space\n // https://leetcode.com/problems/partition-equal-subset-sum/discuss/90592/01-knapsack-detailed-explanation/94996\n int sum = 0;\n int n = nums.length;\n for (int num : nums) sum += num;\n if ((sum & 1) == 1) return false;\n int target = sum / 2;\n boolean[] dp = new boolean[target+1];\n dp[0] = true;\n for (int num : nums) {\n // here is the trick to save space\n // because we have to update dp[j] based on \n // previous dp[j-num] and dp[j] from previous loop.\n // if we update dp from left to right\n // we first update smaller dp which is dp[j-num]\n // then we won't be able to get original dp[j-num] and dp[j]\n // from previous loop, and eventually we get the wrong\n // answer. But if we update dp from right to left\n // we can assure everything is based on previous state\n for (int j = target; j >= num; j--) {\n // if (j >= num) {\n dp[j] = dp[j] || dp[j-num];\n // }\n }\n }\n return dp[target];\n }", "private static int minCoins_bottom_up_dynamic_approach(int[] coins, int amount) {\n if (coins == null || coins.length == 0) return 0;\n if (amount < 0) return 0;\n\n int memo[][] = new int[coins.length + 1][amount + 1];\n\n // populate first row\n for (int col = 0; col <= amount; col++) {\n memo[0][col] = 0;// Important. always initialize 1st row with 1s\n }\n\n // populate first col\n for (int row = 0; row < coins.length; row++) {\n memo[row][0] = 0;// Important. initialize 1st col with 1s or 0s as per your need as explained in method comment\n }\n\n /*\n populate second row\n\n if amount(col) <= coin value, then one coin is required with that value to make that amount\n if amount(col) > coin value, then\n total coins required = amount/coin_value, if remainder=0, otherwise amount/coin_value+1\n */\n for (int col = 1; col <= amount; col++) {\n if (col <= coins[0]) {\n memo[1][col] = 1;\n } else {\n int quotient = col / coins[0];\n\n memo[1][col] = quotient;\n\n int remainder = col % coins[0];\n if (remainder > 0) {\n memo[1][col] += 1;\n }\n }\n }\n\n // start iterating from second row\n for (int row = 2; row < memo.length; row++) {\n // start iterating from second col\n for (int col = 1; col < memo[row].length; col++) {\n\n int coin = coins[row - 1];\n\n // formula to find min required coins for an amount at memo[row][col]\n if (coin > col) { // if coin_value > amount\n memo[row][col] = memo[row - 1][col]; // reserve prev row's value (value determined for prev coins)\n } else {\n memo[row][col] = Math.min(memo[row - 1][col], memo[row][col - coin]) + 1; // min(value determined by prev coins - prev row, value at amount=current_amount-coin_value) + 1\n }\n }\n }\n\n printMemo(coins, memo);\n\n return memo[memo.length - 1][memo[0].length - 1]; // final value is stored in last cell\n }", "public static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = sc.nextInt();\n\t\tint m = sc.nextInt();\n\t\tint [][][] dp = new int[n+1][m+1][m+1];\n\t\tint [][] arr = new int[n+1][m+1];\n\t\tint max = 1;\n\t\tfor (int i = 1; i <= n; i++) {\n\t\t\tfor (int j = 1; j <= m; j++) {\n\t\t\t\tarr[i][j] = sc.nextInt();\n\t\t\t}\n\t\t}\n\t\tfor (int i = 1; i <= n; i++) {\n\t\t\tfor (int j = 1; j <= m; j++) {\n\t\t\t\tif (arr[i][j] == 1) {\n\t\t\t\t\tfor (int z = j; z <= m && arr[i][z] == 1; z++) {\n\t\t\t\t\t\tdp[i][j][z] = dp[i-1][j][z] + 1;\n\t\t\t\t\t\tmax = Math.max(max, Math.min(dp[i][j][z], z-j+1));\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(max);\n\t}", "private static long calc1()\n {\n final int min = 1000;\n final int max = 10000;\n\n // initialize\n List<List<Integer>> m = new ArrayList<>();\n for (int k = 0; k < end; k++) {\n List<Integer> list = new ArrayList<Integer>();\n int n = 1;\n while (k >= start) {\n int p = pkn(k, n);\n if (p >= max) {\n break;\n }\n if (p >= min) {\n list.add(p);\n }\n n++;\n }\n m.add(list);\n }\n\n boolean[] arr = new boolean[end];\n arr[start] = true;\n\n List<Integer> solutions = new ArrayList<>();\n List<Integer> list = m.get(start);\n for (Integer first : list) {\n LinkedList<Integer> values = new LinkedList<>();\n values.add(first);\n f(m, arr, values, 1, solutions);\n // we stop at the first solution found\n if (!solutions.isEmpty()) {\n break;\n }\n }\n\n // solutions.stream().forEach(System.out::println);\n int res = solutions.stream().reduce(0, Integer::sum);\n return res;\n }", "public int calculateMinimumHP(ArrayList<ArrayList<Integer>> grid) {\n\t\t\t\t int m =grid.size(), n = grid.get(0).size();\n\t\t\t\t int[][][] dp = new int[m+1][n+1][2];\n\t\t\t\t \n\t\t\t\t dp[0][0][0] = 0;\n\t\t\t\t dp[0][0][1] = 0;\n\t\t\t\t dp[0][1][0] = 1; // start with life\n\t\t\t\t dp[0][1][1] = 0; // balance life\n\t\t\t\t dp[1][0][0] = 1;\n\t\t\t\t dp[1][0][1] = 0;\n\t\t\t\t for(int i=2;i<dp[0].length;i++){\n\t\t\t\t\t dp[0][i][0] = Integer.MAX_VALUE;\n\t\t\t\t\t dp[0][i][1] = 0;\n\t\t\t\t }\n\t\t\t\t for(int i=2;i<dp.length;i++){\n\t\t\t\t\t dp[i][0][0] = Integer.MAX_VALUE;\n\t\t\t\t\t dp[i][0][1] = 0;\n\t\t\t\t }\n\t\t\t\t \n\t\t\t\t for(int i=1;i<dp.length;i++){\n\t\t\t\t\t for(int j=1;j<dp[0].length;j++){\n\t\t\t\t\t\t \n\t\t\t\t\t\t if(grid.get(i-1).get(j-1) < 0){\n\t\t\t\t\t\t\t int[] fromCell = dp[i-1][j][0]< dp[i][j-1][0]?dp[i-1][j]:dp[i][j-1];\n\t\t\t\t\t\t\t \n\t\t\t\t\t\t\t dp[i][j][0] = fromCell[0] - grid.get(i-1).get(j-1) - fromCell[1];\n\t\t\t\t\t\t\t dp[i][j][1] = fromCell[1]+ grid.get(i-1).get(j-1)>0?fromCell[1]+ grid.get(i-1).get(j-1):0;\n\t\t\t\t\t\t }else{\n\t\t\t\t\t\t\t int[] fromCell = dp[i-1][j][0]< dp[i][j-1][0]?dp[i-1][j]:dp[i][j-1];\n\t\t\t\t\t\t\t dp[i][j][0] = fromCell[0];\n\t\t\t\t\t\t\t dp[i][j][1] = fromCell[1]+grid.get(i-1).get(j-1);\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 return dp[m][n][0];\n\t\t\t\t \n\t\t\t }", "private final int m()\n\t { int n = 0;\n\t int i = 0;\n\t while(true)\n\t { if (i > j) return n;\n\t if (! cons(i)) break; i++;\n\t }\n\t i++;\n\t while(true)\n\t { while(true)\n\t { if (i > j) return n;\n\t if (cons(i)) break;\n\t i++;\n\t }\n\t i++;\n\t n++;\n\t while(true)\n\t { if (i > j) return n;\n\t if (! cons(i)) break;\n\t i++;\n\t }\n\t i++;\n\t }\n\t }", "private static int matrixMulNaive(int[] arr, int i, int n) {\n\t\t\n\t\tif(i == n) return 0;\n\t\t\n\t\tint min = Integer.MAX_VALUE;\n\t\tint count =0;\n\t\tfor(int k =i; k<n; k++)\n\t\t{\n\t\t\tcount = matrixMulNaive(arr,i,k)+matrixMulNaive(arr,k+1,n)\n\t\t\t+arr[i-1]*arr[k]*arr[n];\n\t\t}\n\t\tif(count < min) min = count;\n\t\t\n\t\treturn min;\n\t}", "public static int MatrixChainMultDP(){\n int dp[][] = new int[n][n];\n\n // cost is zero when multiplying one matrix. \n for(int i=0;i<n;i++)\n dp[i][i] = 0;\n\n for(int L = 2;L < n;L++){\n for(int i=1;i<n;i++){\n int j = i + L - 1;\n if(j >= n)\n continue;\n dp[i][j] = Integer.MAX_VALUE;\n for(int k = i;k<j;k++){\n dp[i][j] = Math.min(dp[i][j] , dp[i][k] + dp[k+1][j] + (ar[i-1] * ar[k] * ar[j]));\n }\n }\n }\n return dp[1][n-1];\n\n }", "static int solveMemo(int n) \n\t{ \n\t // base case \n\t if (n < 0) \n\t return 0; \n\t if (n == 0) \n\t return 1; \n\t \n\t // checking if already calculated \n\t if (dp[n]!=-1) \n\t return dp[n]; \n\t \n\t // storing the result and returning \n\t return dp[n] = solveMemo(n-1) + solveMemo(n-3) + solveMemo(n-5); \n\t}", "public static void main(String[] args) {\n\t\tScanner scan = new Scanner(System.in);\n int n = scan.nextInt();\n int [] dp = new int [n+1];\n \n dp[0] = 0;\n dp[1] = 0;\n \n for(int i=2; i<=n; i++) {\n dp[i] = dp[i-1]+1; //n이 나누어떨어지는 것과 관계없는 n-1을 일단 dp[i]에 넣어둔다.\n if(i%2 == 0) dp[i] = Math.min(dp[i/2]+1, dp[i]); \n if(i%3 == 0) dp[i] = Math.min(dp[i/3]+1, dp[i]);\n }\n System.out.println(dp[n]);\n\n\n\t}", "public static void main(String[] args) {\n\t\tScanner scan=new Scanner(System.in);\n\t\tint N=scan.nextInt();\n\t\tint a=scan.nextInt();\n\t\tint b=scan.nextInt();\n\t\tint[] nums=new int[N];\n\t\tint[][] weight=new int[N][N];\n\t\tfor(int i=0;i<N;i++){\n\t\t\tnums[i]=scan.nextInt();\n\t\t\tweight[i][i]=nums[i];\n\t\t}\n\t\tfor(int i=0;i<N;i++){\n\t\t\tfor(int j=i+1;j<N;j++){\n\t\t\t\tweight[i][j]=weight[i][j-1]+nums[j];\n\t\t\t}\n\t\t}\n\t\tlong[][] dp=new long[N][N];\n\t\tfor(int i=2;i<=N;i++){//dis\n\t\t\tfor(int j=0;j<=N-i;j++){//start\n\t\t\t\tint end=j+i-1;\n\t\t\t\tlong min=Integer.MAX_VALUE;\n\t\t\t\tfor(int k=j;k<end;k++){\n\t\t\t\t\tmin=Math.min(min, dp[j][k]+dp[k+1][end]+weight[j][k]*a+weight[k+1][end]*b);\n\t\t\t\t}\n\t\t\t\tdp[j][end]=min;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(dp[0][N-1]);\n\t\tscan.close();\n\t}", "public static int solve() {\n FactorizationSieve sieve = new FactorizationSieve(LIMIT + 1);\n int[] abundants = new int[LIMIT + 1];\n int k = 0;\n\n for (int n = 1; n <= LIMIT; n++)\n if (sieve.sigma(1, n) > n + n)\n abundants[k++] = n;\n\n // Sum pair of abundant numbers\n BitSet absums = new BitSet(LIMIT + 1);\n for (int i = 0; i < k; i++) {\n for (int j = i; j < k; j++) {\n int n = abundants[i] + abundants[j];\n if (n > LIMIT)\n break;\n absums.set(n);\n }\n }\n\n // Find all numbers that cannot be written as the sum of two abundant numbers\n int res = 0;\n for (int n = 1; n <= LIMIT; n++)\n if (!absums.get(n))\n res += n;\n return res;\n }", "public static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = sc.nextInt();\n\t\tint[] arr = new int[n+1];\n\t\tint[] dp = new int[n+1];\n\t\tfor (int i = 1; i < arr.length; i++) {\n\t\t\tarr[i] = sc.nextInt();\n\t\t}\n\t\t\n\t\tfor (int i = 1; i < arr.length; i++) {\n\t\t\tfor (int j = 1; j <= i; j++) {\n\t\t\t\tdp[i] = Math.max(dp[i], dp[i-j] + arr[j]);\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(dp[arr.length-1]);\n\t}", "private int DP(int dp)\n\t{\n\t\tint result = DP(DENSITY, dp);\n\t\treturn result;\n\t}", "public int solution(int[] A) {\n int sum = 0;\n int max = 0;\n Map<Integer, Integer> countMap = new HashMap<>();\n for (int i = 0; i < A.length; i++) {\n int val = Math.abs(A[i]);\n sum += val;\n A[i] = val;\n max = Math.max(val, max);\n countMap.put(val, countMap.getOrDefault(val, 0) + 1);\n }\n int[] dp = new int[sum + 1];\n for (int i = 1; i < dp.length; i++) {\n dp[i] = -1;\n }\n int[] count = new int[max + 1];\n for (Map.Entry<Integer, Integer> countMapEntry : countMap.entrySet()) {\n count[countMapEntry.getKey()] = countMapEntry.getValue();\n }\n for (int i = 1; i < max + 1; i++) {\n if (count[i] > 0) {\n for (int j = 0; j < dp.length; j++) {\n if (dp[j] >= 0) {\n dp[j] = count[i];\n } else if (j >= i && dp[j - i] > 0) {\n dp[j] = dp[j - i] - 1;\n }\n }\n }\n }\n int half = sum / 2;\n for (int i = half; i >= 0; i--) {\n if (dp[i] >= 0) {\n return Math.abs((sum - i) - i);\n }\n }\n return -1;\n }", "public int minimumSizeOfSubsetWhoseGCDDivisibleBy(int x) {\n if (dp == null) {\n dp = new int[m + 1];\n Arrays.fill(dp, INF);\n for (int e : seq) {\n dp[e] = 1;\n }\n for (int i = m; i >= 1; i--) {\n for (int j = i + i; j <= m; j += i) {\n if (coprime(j / i) > 0) {\n dp[i] = Math.min(dp[i], dp[j] + 1);\n }\n }\n }\n }\n return dp[x];\n }", "private static int betterSolution(int n) {\n return n*n*n;\n }", "private static int minCoins_my_way_infinite_coins_of_one_value_case(int[] coins, int startIndex, int endIndex, int amount) {\n\n if (coins.length == 0) return 0;\n\n if (startIndex == endIndex) {\n int currentCoin = coins[startIndex];\n\n if (currentCoin == amount) {// coins=(8) amount=8\n return 1;\n }\n if (currentCoin > amount) {// coins=(9) amount=8\n return 0;\n }\n if (currentCoin < amount) {\n // IMPORTANT: This code assumes that you can use only 1 coin of the same value (you can't use infinite number of coins of the same value).\n //return 0;\n\n // This code assumes that you can use infinite number of coins of the same value.\n // e.g. currentCoin=1 and amount=8, then 8 coins of 1s can be used\n if (amount % currentCoin == 0) { // coins=(1) amount=8 should return 8 because you can use 8 coins of value 1 to make amount=8\n return amount / currentCoin;\n }\n return 0; // coins=(3) amount=8 should return 0 because you can't use 1 or more coins of value 3 to make amount=8\n }\n }\n\n // IMPORTANT\n // You don't need any coin to make amount=0\n // By seeing recursive call, you will figure out that amount can reach to 0. So, you need an exit condition for amount==0\n if (amount == 0) {\n return 0;\n }\n\n int currentCoin = coins[startIndex];\n\n int minUsingCurrentCoin = 0;\n\n if (currentCoin == amount) {\n minUsingCurrentCoin = 1;\n } else if (currentCoin > amount) {\n minUsingCurrentCoin = 0;\n } else {\n /*\n if currentCoin=1 and amount=8, then maxNumberOfCoinsThatCanBeUsedToMakeAmount will be 8.\n if currentCoin=3 and amount=8, then maxNumberOfCoinsThatCanBeUsedToMakeAmount be 2\n you need to consider both these situations for coming up with the correct code\n\n Case 1:\n coins = (1,6) amount=8\n currentCoin=1. So, maxNumberOfCoinsThatCanBeUsedToMakeAmount = 8\n\n coin numberOfCurrentCoins(i) amountConsumedByCurrentCoin coinsUsedFromRemaining totalCoinsUsed\n remaining coins amount\n 1 1 1 (6) 7 = 0 0 (when you cannot make remaining amount using remaining coins, then you cannot make total amount including current coin also)\n 1 2 2 (6) 6 = 1 2+1=3\n 1 3 3 (6) 5 = 0 0\n 1 4 4 (6) 4 = 0 0\n 1 5 5 (6) 3 = 0 0\n 1 6 6 (6) 2 = 0 0\n 1 7 7 (6) 1 = 0 0\n 1 8 8 (6) 0 = 0 8 (special condition - even though you could not make remaining amount using remaining coins, you could make total amount using current coin)\n\n Case 2:\n coins = (3,6) amount=8\n currentCoin=3. So, maxNumberOfCoinsThatCanBeUsedToMakeAmount = 2\n\n coin numberOfCurrentCoins(i) amountConsumedByCurrentCoin coinsUsedFromRemaining totalCoinsUsed\n remaining coins amount\n 3 1 3 (6) 3 = 0 0 (when you cannot make remaining amount using remaining coins, then you cannot make total amount including current coin also)\n 3 2 6 (6) 2 = 0 0\n\n */\n int maxNumberOfCoinsThatCanBeUsedToMakeAmount = amount / currentCoin;\n\n int min = 0;\n\n for (int i = 1; i <= maxNumberOfCoinsThatCanBeUsedToMakeAmount; i++) {\n int amountConsumedByCurrentCoin = i * currentCoin;\n\n int minFromRemaining = minCoins_my_way_infinite_coins_of_one_value_case(coins, startIndex + 1, endIndex, amount - amountConsumedByCurrentCoin);\n\n if (minFromRemaining == 0) {// If I could not make remaining amount using remaining coins, then I cannot make total amount including current coin (except one special condition)\n if (amountConsumedByCurrentCoin == amount) {// special condition - even though you could not make remaining amount using remaining coins, you could make total amount using current coin\n min = i;\n } else {\n min = 0;\n }\n } else {\n min = i + minFromRemaining;\n }\n\n if (minUsingCurrentCoin == 0 && min > 0) {\n minUsingCurrentCoin = min;\n } else if (minUsingCurrentCoin > 0 && min == 0) {\n // don't change minUsingCurrentCoin\n } else {\n if (min < minUsingCurrentCoin) {\n minUsingCurrentCoin = min;\n }\n }\n }\n }\n\n int minWaysUsingRestOfTheCoins = minCoins_my_way_infinite_coins_of_one_value_case(coins, startIndex + 1, endIndex, amount);\n\n if (minWaysUsingRestOfTheCoins == 0 && minUsingCurrentCoin > 0) {\n return minUsingCurrentCoin;\n } else if (minWaysUsingRestOfTheCoins > 0 && minUsingCurrentCoin == 0) {\n return minWaysUsingRestOfTheCoins;\n }\n return Math.min(minUsingCurrentCoin, minWaysUsingRestOfTheCoins);\n\n }", "public static int f2(int N) { \n int x = 0; //O(1)\n for(int i = 0; i < N; i++) // O(n)\n // O(n)`\n for(int j = 0; j < i; j++) \n x++;\n return x;\n }", "static int minJumps(int[] arr){\n int n = arr.length;\n int[] dp = new int[n];\n for(int i = 0; i < n; i++) dp[i] = Integer.MAX_VALUE;\n dp[0] = 0;\n for(int i = 1; i < n; i++){\n //checking from 0 to index i that if there is a shorter path for \n //current position to reach from any of the previous indexes\n //also previous index should not be MAX_VALUE as this will show that\n //we were not able to reach this particular index\n for(int j = 0; j < i; j++){\n if(dp[j] != Integer.MAX_VALUE && arr[j] + j >= i){\n if(dp[j] + 1 < dp[i]){\n dp[i] = dp[j] + 1;\n }\n }\n }\n }\n \n if(dp[n - 1] != Integer.MAX_VALUE){\n return dp[n - 1];\n }\n \n return -1;\n }", "static int solve(int n) \n\t{ \n\t // base case \n\t if (n < 0) \n\t return 0; \n\t if (n == 0) \n\t return 1; \n\t \n\t return solve(n-1) + solve(n-3) + solve(n-5); \n\t}", "int catalanDP(int n) {\n int[] catalan = new int[n+1]; \n \n // Initialize first two values in table \n catalan[0] = catalan[1] = 1; \n\n // Fill entries in catalan[] using recursive formula \n for (int i=2; i<=n; i++) { \n catalan[i] = 0; \n for (int j=0; j<i; j++) \n catalan[i] += catalan[j] * catalan[i-j-1]; \n } \n \n // Return last entry \n return catalan[n]; \n }", "public static int solveEfficient(int n) {\n if (n == 0 || n == 1)\n return 1;\n\n int n1 = 1;\n int n2 = 1;\n int sum = 0;\n\n for (int i = 2; i <= n; i++) {\n sum = n1 + n2;\n n1 = n2;\n n2 = sum;\n }\n return sum;\n }", "static long numWays(int index, int m, int n, int[] arr) {\n long count = 0;\n\n\n if (n == 0 || index == (m - 1)) {\n if (index == (m - 1)) {\n arr[index] = n;\n }\n// for (int x : arr) {\n// System.out.print(x + \",\");\n// }\n// System.out.println();\n return 1;\n }\n\n if (n < 0 || index >= m) {\n return 0;\n }\n\n\n String key = index(arr, index, m, n);\n if (dp.containsKey(key)) {\n return dp.get(key);\n }\n\n\n for (int i = 0; i <= n; i++) {\n arr[index] = i;\n count += numWays(index + 1, m, n - i, arr);\n// for (int j = index + 1; j < arr.length; j++) {\n// arr[j] = 0;\n// }\n }\n\n dp.put(key, count % prime);\n return count % prime;\n }", "static int findMissingUsingSummation(int[] arr) {\n\t\tint expectedSum = (arr.length + 1) * (arr.length + 1 + 1) / 2;\n\t\tint actualSum = 0;\n\t\tfor (int i = 0; i < arr.length; i++) {\n\t\t\tactualSum = actualSum + arr[i];\n\t\t}\n\n\t\treturn expectedSum - actualSum;\n\t}", "public static int minCostDP(int[] dimensions, int start, int end) {\n\t\tint m=end+1;\r\n\t\tint[][] storage=new int[m][m];\r\n\t\tfor(int i=0;i<m;i++)\r\n\t\t{\r\n\t\t\tfor(int j=0;j<m;j++)\r\n\t\t\t{\r\n\t\t\t\tstorage[i][j]=-1;\r\n\t\t\t}\r\n\t\t}\r\n\t\t//matrix chain length =1\r\n\t\tfor(int i=0;i<m;i++)\r\n\t\t{\r\n\t\t\tstorage[i][i]=0;\r\n\t\t}\r\n\t\t//matrix chain length l\r\n\t\tfor(int l=2;l<m;l++)\r\n\t\t{\r\n\t\t\tfor(int i=1;i<m-l+1;i++)\r\n\t\t\t{\r\n\t\t\t\tint j=i+l-1;//taking the cummulative effect of i and l\r\n\t\t\t\tstorage[i][j]=Integer.MAX_VALUE;\r\n\t\t\t\tint q=0;\r\n\t\t\t\tfor(int k=i;k<j;k++)\r\n\t\t\t\t{\r\n\t\t\t\t\tq=storage[i][k]+storage[k+1][j]+dimensions[i-1]*dimensions[k]*dimensions[j];\r\n\t\t\t\t\tif(q<storage[i][j])\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tstorage[i][j]=q;\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\treturn storage[start][end];\r\n\t}", "public static int solution(int[] arr) {\n int[] dp = new int[arr.length];\n dp[0] = arr[0];\n int max = Integer.MIN_VALUE;\n \n for(int i = 1; i < arr.length; i++){\n if(dp[i - 1] > 0) dp[i] = arr[i] + dp[i - 1];\n else dp[i] = arr[i];\n max = Math.max(max, dp[i]);\n }\n \n return max;\n }", "private static int coinChange(int[] arr,int n, int sum) {\n\t\tint[][] dp = new int[n+1][sum+1];\n\t\tfor(int i=0;i<n+1;i++) {\n\t\t\tdp[i][0]=1;\n\t\t}\n\t\tfor(int i=0;i<sum+1;i++) {\n\t\t\t\n\t\t\tif(i%arr[0]==0)\n\t\t\tdp[0][i]=i/arr[0];\n\t\t\telse\n\t\t\t\tdp[0][i]=0;\n\t\t}\n\t\t\n\t\tfor(int i=1;i<n+1;i++) {\n\t\t\tfor(int j=1;j<sum+1;j++) {\n\t\t\t\tif(arr[i-1]>j)\n\t\t\t\t\tdp[i][j]=dp[i-1][j];\n\t\t\t\telse\n\t\t\t\t\tdp[i][j]=Math.min(dp[i-1][j], dp[i][j-arr[i-1]]+1);\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn dp[n][sum];\n\t}", "public static int jumpII(int[] A) {\n\t\tint n = A.length;\n int[] dp = new int[n];\n Arrays.fill(dp, Integer.MAX_VALUE);\n dp[0] = 0;\n for (int i = 1; i < n; ++i) {\n \tfor (int j = 0; j < i; ++j) {\n \t\tif (A[j] >= i-j)\n \t\t\tdp[i] = Math.min(dp[i], dp[j]+1);\n \t}\n }\n return dp[n-1];\n }", "public int minCostClimbingStairs(int[] cost) {\n // We initialize an array of size = cost, and it means the minimun cost of reaching n^th stair\n int[] dp = new int[cost.length];\n // We assign values to the first 2 numbers in the array because it can´t be smaller than 3\n dp[0] = cost[0];\n dp[1] = cost[1];\n // We iterate from n=2 to n-1, and in each position we save the min\n // value to reach the stair, the MIN is (dp[i-1] + cost[i] , dp[i-2] + cost[i]\n // that is so that the min way of reaching that stair is either using the n-1 or n-2\n for (int i = 2; i < cost.length; i++) {\n dp[i] = Math.min(dp[i - 1] + cost[i], dp[i - 2] + cost[i]);\n }\n\n // We return the min value of the last 2 stairs because both can reach the end\n return Math.min(dp[cost.length - 1], dp[cost.length - 2]);\n\n\t\t /*\n\t\t\t cost[1,100,1,1,1,100,1,1,100,1]\n\t\t 1.- Imagine this is the array\n\t\t\t dp[]\n\t\t 2.- We add the first two values\n\t\t\t dp[1,100]\n\t\t 3.- Iterate form 2 to n\n\t\t\t This is a representation of the first one\n\t\t dp[2] = Math.min(1+1, 100+1)\n\t\t dp[2] = Math.min(2,101)\n\t\t dp[2] = 2\n\t\t dp[1,100,2]\n\t\t\t After the for, this is how it should look\n\t\t dp[1,100,2,3,3,103,4,5,105,6]\n\t\t 4.- Select the min between last 2 because both can reach last step\n\t\t\treturn min (105,6)\n\t\t\treturn 6\n\n\t\t\tIt should have a space complexity of O(n) becuase we´re using an array of n size\n\t\t\tThe time complexity should also be O(n) because we have to iterate through all the array once\n\n\t\t */\n }", "private static int minCoins_my_way_one_coin_of_one_value_case(int[] coins, int startIndex, int endIndex, int amount) {\n\n if (coins.length == 0) return 0;\n\n if (startIndex == endIndex) {\n int currentCoin = coins[startIndex];\n\n if (currentCoin == amount) { // coins=(8) amount=8\n return 1;\n }\n if (currentCoin > amount) { // coins=(9) amount=8\n return 0;\n }\n if (currentCoin < amount) { // coins=(1) amount=8\n return 0; // this code changes when you can use infinite number of same coin\n }\n }\n\n // IMPORTANT:\n // Even though, amount is changing in recursive call, you don't need an exit condition for amount because amount will never become 0 or less than 0\n // amount is changing in recursive call when currentCoin < amount and it is doing amount-currentCoin. It means that amount will never become 0 or less than 0\n /*\n if (amount == 0) {\n return 0;\n }\n */\n\n int currentCoin = coins[startIndex];\n\n int minUsingCurrentCoin = 0;\n\n if (currentCoin == amount) {// coins=(8,9) amount=8\n // WRONG - if you see recursive call, you are trying to use remaining array (8) to make amount (8)\n // You are trying to make full amount using remaining array. It means that you will not be including currentCoin in coins that can make full amount.\n // Here, code should be all about including currentCoin in computation.\n /*\n minUsingCurrentCoin = 1\n int minUsingRemainingCoinsToMakeFullAmount = minCoins_my_way_one_coin_of_one_value_case(coins,startIndex+1, endIndex, amount)\n if(minUsingRemainingCoinsToMakeFullAmount > 0) {\n minUsingCurrentCoin = 1 + minUsingRemainingCoinsToMakeFullAmount\n }*/\n\n minUsingCurrentCoin = 1;\n } else if (currentCoin > amount) {// coins=(9,8) amount=8\n minUsingCurrentCoin = 0;\n // WRONG - if you see recursive call, you are trying to use remaining array (8) to make amount (8)\n // You are trying to make full amount using remaining array. It means that you will not be including currentCoin in coins that can make full amount.\n // Here, code should be all about including currentCoin in computation.\n // minUsingCurrentCoin = 0 + minCoins_my_way_one_coin_of_one_value_case(coins,startIndex+1, endIndex, amount);\n } else {\n /*\n case 1:\n coins = (1,6) amount=8\n currentCoin=1\n 1<8\n coinsRequiredUsingRemainingCoins=(6) to make amount (8-1=7) = 0\n coinsRequiredUsingRemainingCoinsAndAmount is 0, so by including current coin (1), you will not be able to make amount=8\n so, you cannot use (1) to make amount=8\n case 2:\n coins = (1,7) amount=8\n currentCoin=1\n 1<6\n coinsRequiredUsingRemainingCoins (7) And Amount (8-1=7) = 1\n so, coinsRequiredUsingCurrentCoin = 1 + coinsRequiredUsingRemainingCoinsAndAmount = 2\n\n */\n // this code changes when you can use infinite number of same coin\n int minUsingRestOfCoinsAndRestOfAmount = minCoins_my_way_one_coin_of_one_value_case(coins, startIndex + 1, endIndex, amount - currentCoin);\n if (minUsingRestOfCoinsAndRestOfAmount == 0) {\n minUsingCurrentCoin = 0;\n } else {\n minUsingCurrentCoin = 1 + minUsingRestOfCoinsAndRestOfAmount;\n }\n\n }\n\n // coins = (8,6) amount=8\n // minUsingCurrentCoin 8 to make amount 8 = 1\n // minWaysUsingRestOfTheCoins (6) to make amount 8 = 0\n // so, you cannot just blindly return Math.min(minUsingCurrentCoin, minWaysUsingRestOfTheCoins)\n // it will return 0 instead of 1\n int minWaysUsingRestOfTheCoins = minCoins_my_way_one_coin_of_one_value_case(coins, startIndex + 1, endIndex, amount);\n\n if (minWaysUsingRestOfTheCoins == 0 && minUsingCurrentCoin > 0) {\n return minUsingCurrentCoin;\n } else if (minWaysUsingRestOfTheCoins > 0 && minUsingCurrentCoin == 0) {\n return minWaysUsingRestOfTheCoins;\n }\n return Math.min(minUsingCurrentCoin, minWaysUsingRestOfTheCoins);\n\n }", "public int minDis(String s1, String s2, int n, int m, int[][]dp){\n \n if(n == 0) \n return m; \n if(m == 0) \n return n;\n \n // To check if given n & m has already been executed\n if(dp[n][m] != -1) \n return dp[n][m];\n \n // If characters are equal, execute recursive function for n-1, m-1\n if(s1.charAt(n-1) == s2.charAt(m-1))\n { \n if(dp[n-1][m-1] == -1)\n { \n return dp[n][m] = minDis(s1, s2, n-1, m-1, dp); \n } \n else\n return dp[n][m] = dp[n-1][m-1]; \n }\n \n //If characters are not equal, we need to\n //Find the minimum cost out of all 3 operations. \n else\n { \n int m1, m2, m3; // temp variables \n if(dp[n-1][m] != -1)\n { \n m1 = dp[n - 1][m]; \n } \n else\n { \n m1 = minDis(s1, s2, n - 1, m, dp); \n } \n \n if(dp[n][m - 1] != -1)\n { \n m2 = dp[n][m - 1]; \n } \n else\n { \n m2 = minDis(s1, s2, n, m - 1, dp); \n } \n \n if(dp[n - 1][m - 1] != -1)\n { \n m3 = dp[n - 1][m - 1]; \n } \n else\n { \n m3 = minDis(s1, s2, n - 1, m - 1, dp); \n } \n return dp[n][m] = 1 + Math.min(m1, Math.min(m2, m3)); \n } \n }", "private static int minCoins_brute_force(int coins[], int coinsEndIndex, int amount) {\n // base case\n if (amount == 0) return 0;\n\n // Initialize result\n int res = Integer.MAX_VALUE;\n\n // Try every coin that has smaller value than amount\n for (int i = 0; i < coinsEndIndex; i++) {\n if (coins[i] <= amount) {\n int sub_res = minCoins_brute_force(coins, coinsEndIndex, amount - coins[i]);\n\n // Check for INT_MAX to avoid overflow and see if\n // result can minimized\n if (sub_res != Integer.MAX_VALUE && sub_res + 1 < res)\n res = sub_res + 1;\n }\n }\n return res;\n }", "int countSusbset(int n, int w){\n int dp[][] = new int[n+1][w+1];\n for(int i=0;i<=n;i++){\n for(int j=0;j<=w;j++){\n //when no items are there and target sum is 0, only one empty subset is possible\n if(i == 0 && j == 0){\n dp[i][j] = 1;\n }\n //no items left and target sum is greater than 0, no set is possible\n else if(i == 0 && j > 0){\n dp[i][j] = 0; \n }\n //if target sum is 0, no matter how many items we have , only one empty subset is possible\n else if(j == 0){\n dp[i][j] = 1;\n }\n //since item > target sum, so exclude\n else if(arr[i-1] > j){\n dp[i][j] = dp[i-1][j];\n }else{\n //two cases include and exclude\n dp[i][j] = dp[i-1][j] + dp[i-1][j - arr[i-1]];\n }\n }\n }\n return dp[n][w];\n}", "public static int iterativeFactDP(int n){\n int[] table = new int[n+1];\n table[0] = 0;\n table[1] = 1;\n for (int i = 2; i <=n ; i++) {\n table[i] = table[i-2]+table[i-1];\n }\n return table[n];\n }", "public int dp_os(int[] arr) {\n\n\t\tint[][] dp = new int[arr.length][arr.length];\n\t\t\n\t\tfor (int gap=0; gap<arr.length; gap++) {\n\t\t\n\t\t\tfor (int i=0,j=gap; j<arr.length; i++, j++) {\n\t\t\t\n\t\t\t\tint x = (i+2 <= j) ? dp[i+2][j] : 0;\n\t\t\t\tint y = (i+1 <= j-1) ? dp[i+1][j-1] : 0;\n\t\t\t\tint z = (i <= j-2) ? dp[i][j-2] : 0;\n\n\t\t\t\tdp[i][j] = Math.max(arr[i] + Math.min(x,y), arr[j] + Math.min(y,z));\n\t\t\t}\n\t\t}\n\n\t\treturn dp[0][arr.length-1];\n\t}", "private static int recursiveFibDP(int n) {\n\n Integer[] table = new Integer[n + 1];\n if(table[n]==null){\n if (n <= 1) {\n table[n] = n;\n }\n else {\n table[n] =recursiveFibDP(n-1)+recursiveFibDP(n-2);\n }\n }\n return table[n];\n }", "public static int frog(int n, int [] h){\n\n int dp[] = new int [n];\n\n dp[0] = 0;\n dp[1] = Math.abs(h[1] - h[0]);\n\n for(int i = 2; i < n ; i ++){\n\n dp[i] = Math.min(dp [i - 2] + Math.abs(h[i] - h[i - 2]), dp[i - 1] + Math.abs(h[i] - h[i - 1]));\n\n\n\n }\n //print(dp);\n return dp[n - 1];\n }", "private int dfs(int[][] matrix, int i, int j, int d) {\n if (i < 0 || j < 0 || i == matrix.length || j == matrix[0].length || matrix[i][j] != 0)\n return 0;\n if (dp[i][j][d] > 0) return dp[i][j][d];\n timeComplexityCount++;\n maxI = Math.max(maxI, i);\n int res;\n if (d == 1)\n res = Math.max(dfs(matrix, i, j + 1, 1), dfs(matrix, i, j + 1, 2));\n else if (d == 0)\n res = Math.max(dfs(matrix, i, j - 1, 0), dfs(matrix, i, j - 1, 2));\n else\n res = Math.max(dfs(matrix, i + 1, j, 0), Math.max(dfs(matrix, i + 1, j, 1), dfs(matrix, i + 1, j, 2)));\n dp[i][j][d] = res + 1;\n return res + 1;\n }", "public int jump(int[] nums) {\n int[] dp = new int[nums.length];\n for(int i=1;i<nums.length;i++) {\n dp[i] = Integer.MAX_VALUE;\n }\n for(int start =0 ; start < nums.length-1 ;start++){\n for(int end=start+1; end<=start+nums[start] && end<nums.length; end++){\n dp[end] = Math.min(dp[end], dp[start]+1);\n }\n }\n return dp[nums.length-1];\n }", "private static int DP(String[] arr, int[] len, int i) {\n int min = Integer.MAX_VALUE;\n int minPointer = Integer.MAX_VALUE;\n for (int k = i + 1; k < arr.length; k++) {\n int badness = badness(len, i, k, PAGE_WIDTH);\n if (badness == Integer.MAX_VALUE) {\n break;\n } else if (badness < min) {\n min = badness;\n minPointer = k;\n } // TODO: if badness max value then k is already +1\n }\n\n if (minPointer == arr.length - 1) {\n minPointer = arr.length;\n }\n return minPointer;\n }", "public int minimumCost(int N, int[][] connections) {\n int[] parent = new int[N + 1];\n Arrays.fill(parent, -1);\n Arrays.sort(connections, (a,b) -> (a[2]-b[2]));\n int cnt = 0;\n int minCost = 0;\n \n for(int[] edge: connections){\n int src = edge[0];\n int dst = edge[1];\n int cost = edge[2];\n \n int srcSubsetId = find(parent, src);\n int dstSubsetId = find(parent, dst);\n \n if(srcSubsetId == dstSubsetId) {\n // Including this edge will cause cycles, then ignore it\n continue;\n }\n cnt += 1;\n minCost += cost;\n union(parent, src, dst);\n }\n return cnt==N-1? minCost : -1;\n}", "public static int minJumpsWithDPInBigOOFN(int arr[], int n) {\r\n\r\n\t\t// The number of jumps needed to reach the starting index is 0\r\n\t\tif (n <= 1)\r\n\t\t\treturn 0;\r\n\r\n\t\t// Return -1 if not possible to jump\r\n\t\tif (arr[0] == 0)\r\n\t\t\treturn -1;\r\n\r\n\t\t// initialization\r\n\t\tint maxReach = arr[0]; // stores all time the maximal reachable index in the array.\r\n\t\tint step = arr[0]; // stores the amount of steps we can still take\r\n\t\tint jump = 1;// stores the amount of jumps necessary to reach that maximal reachable\r\n\t\t\t\t\t\t// position.\r\n\r\n\t\t// Start traversing array\r\n\t\tint i = 1;\r\n\t\tfor (i = 1; i < n; i++) {\r\n\t\t\t// Check if we have reached the end of the array\r\n\t\t\tif (i == n - 1)\r\n\t\t\t\treturn jump;\r\n\r\n\t\t\t// updating maxReach\r\n\t\t\tmaxReach = Integer.max(maxReach, i + arr[i]);\r\n\r\n\t\t\t// we use a step to get to the current index\r\n\t\t\tstep--;\r\n\r\n\t\t\t// If no further steps left\r\n\t\t\tif (step == 0) {\r\n\t\t\t\t// we must have used a jump\r\n\t\t\t\tjump++;\r\n\r\n\t\t\t\t// Check if the current index/position or lesser index\r\n\t\t\t\t// is the maximum reach point from the previous indexes\r\n\t\t\t\tif (i >= maxReach)\r\n\t\t\t\t\treturn -1;\r\n\r\n\t\t\t\t// re-initialize the steps to the amount\r\n\t\t\t\t// of steps to reach maxReach from position i.\r\n\t\t\t\tstep = maxReach - i;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\treturn -1;\r\n\t}", "public static void main(String[] args) {\n \tlong[] fact = new long[MAXDOMINOES+1];\r\n \tfact[0] = 1;\r\n \tfor (int i=1; i<=MAXDOMINOES; i++)\r\n \t\tfact[i] = (fact[i-1]*i)%MOD;\r\n\r\n Scanner stdin = new Scanner(System.in);\r\n int numCases = stdin.nextInt();\r\n\r\n // Process each case.\r\n for (int loop=0; loop<numCases; loop++) {\r\n\r\n // Read in this case.\r\n n = stdin.nextInt();\r\n list = new int[n][2];\r\n for (int i=0; i<n; i++)\r\n for (int j=0; j<2; j++)\r\n list[i][j] = stdin.nextInt();\r\n\r\n // Special case - if all the dominoes are the same, all orderings work.\r\n if (same(list)) {\r\n \tSystem.out.println(fact[n]);\r\n \tcontinue;\r\n }\r\n\r\n // dp[mask][last][orientation] will store the number of permutations using the dominoes indicated by\r\n // mask, with the last domino last facing in the direction dictated by orientation. If orientation is 0,\r\n // this is the original input orientation, if it is 1, it's flipped.\r\n long[][][] dp = new long[1<<n][n][2];\r\n\r\n // Always 1 way to place one domino in a fixed orientation.\r\n for (int i=0; i<n; i++) {\r\n dp[1<<i][i][0] = 1;\r\n dp[1<<i][i][1] = 1;\r\n }\r\n\r\n // Outer DP loop, solve all problem instances for each subset of dominoes.\r\n for (int mask=3; mask<(1<<n); mask++) {\r\n\r\n // Now, try each domino as the last domino in mask.\r\n for (int last=0; last<n; last++) {\r\n\r\n // Not a valid state.\r\n if ((mask&(1<<last)) == 0) continue;\r\n\r\n int prevmask = mask - (1<<last);\r\n\r\n for (int i=0; i<n; i++) {\r\n\r\n if ((prevmask&(1<<i)) == 0) continue;\r\n\r\n // Both i and last are in regular orientation.\r\n if (list[i][1] == list[last][0])\r\n dp[mask][last][0] = (dp[mask][last][0]+dp[prevmask][i][0])%MOD;\r\n\r\n // Here i is flipped and last is regular.\r\n else if (list[i][0] == list[last][0])\r\n dp[mask][last][0] = (dp[mask][last][0]+dp[prevmask][i][1])%MOD;\r\n\r\n // i is regular but last is flipped.\r\n if (list[i][1] == list[last][1])\r\n dp[mask][last][1] = (dp[mask][last][1]+dp[prevmask][i][0])%MOD;\r\n\r\n // Both i and last are flipped.\r\n else if (list[i][0] == list[last][1])\r\n dp[mask][last][1] = (dp[mask][last][1]+dp[prevmask][i][1])%MOD;\r\n }\r\n } // end last loop\r\n } // end mask loop\r\n\r\n // Sum up result - all ways to place all dominoes over all possible last dominoes in either orientation.\r\n // Since we screened out our special case, no over-counting will occur here.\r\n long res = 0L;\r\n for (int last=0; last<n; last++) {\r\n \tres = (res + dp[(1<<n)-1][last][0])%MOD;\r\n \tif (list[last][0] != list[last][1])\r\n \t\tres = (res + dp[(1<<n)-1][last][1])%MOD;\r\n }\r\n System.out.println(res);\r\n }\r\n }", "static int[] OnepassSol1(int[]a, int n){\r\n Map<Integer, Integer> map = new HashMap<>();\r\n for (int i = 0; i < a.length; i++) {\r\n int complement = n - a[i];\r\n if (map.containsKey(complement)) {\r\n return new int[] { map.get(complement), i };\r\n }\r\n map.put(a[i], i);\r\n }\r\n int[] ans = {-1,-1};\r\n return ans;\r\n }", "public static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\t\n\t\tint n = sc.nextInt();\n\t\t\n\t\tint arr[] = new int[n+1];\n\t\t\n\t\tint dp[] =new int[n+1];\n\t\t\n\t\t\n\t\tfor(int i =1; i<=n; i++){\n\t\t\tarr[i]=sc.nextInt();\n\t\t}\n\t\t\n\t\tdp[1]=arr[1];\n\t\t\n\t\tif(n>=2) {\n\t\tdp[2]=dp[1]+arr[2];\n\t\t}\n\t\t\n\t\tfor(int i=3; i<=n; i++){\n\t\t\t\n\t\t\tdp[i] = Math.max(dp[i-2]+arr[i], dp[i-3]+arr[i-1]+arr[i]);\n\t\t}\n\t\t\n\t\tSystem.out.println(dp[n]);\n\t\t\n\t}", "public static void main(String[] args) {\n\t\tint width=35;\n\t\tint length=31;\n\t\tlong[][] dp = new long[width+1][length+1];\n\t\tdp[0][0]=0;\n\t\tfor(int i=1;i<length+1;i++){\n\t\t\tif(badCheck(0,i,0,i-1)){\n\t\t\t\tdp[0][i]=0;\n\t\t\t\tfor(int k=i+1;k<length+1;k++){\n\t\t\t\t\tdp[0][k]=0;\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\t}else{\n\t\t\t\tdp[0][i]=1;\n\t\t\t}\n\t\t}\n\t\tfor(int i=1;i<width+1;i++){\n\t\t\tif(badCheck(i,0,i-1,0)){\n\t\t\t\tdp[i][0]=0;\n\t\t\t\tfor(int k=i+1;k<width+1;k++){\n\t\t\t\t\tdp[k][0]=0;\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\t}else{\n\t\t\t\tdp[i][0]=1;\n\t\t\t}\n\t\t\t\n\t\t}\n\t\t\n\t\t\n\t\tfor(int i=1;i<=width;i++){\n\t\t\tfor(int j=1;j<=length;j++){\n\t\t\t\tif(!badCheck(i-1,j,i,j)){\n\t\t\t\t\tdp[i][j]+=dp[i-1][j];\n\t\t\t\t}\n\t\t\t\tif(!badCheck(i,j-1,i,j)){\n\t\t\t\t\tdp[i][j]+=dp[i][j-1];\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t//System.out.println(dp[6][6]);\n\t\t//System.out.println(dp[2][2]);\n\t\t//System.out.println(dp[1][1]);\n\t\tSystem.out.println(dp[35][31]);\n\t}", "public static int minCostClimbingStairs(int[] cost) {\n int n=cost.length;\n int[] dp =new int[n+1];\n dp[0]=0;\n dp[1]=0;\n for(int i=2;i<=n;i++)\n dp[i]=Math.min(dp[i-2]+cost[i-2],dp[i-1]+cost[i-1]);\n\n return dp[n];\n\n }", "public int findMinII(int[] nums) {\n int n = nums.length;\n int l = 0;\n int r = n - 1;\n int m;\n while (l + 1 < r) {\n while (r > 0 && nums[r] == nums[r-1]) r --;\n while (l < n-1 && nums[l] == nums[l+1]) l ++;\n m = (l + r) / 2;\n if (nums[m] > nums[l]) {\n l = m;\n }\n else if (nums[m] < nums[r]) {\n r = m;\n }\n }\n return Math.min(nums[0], Math.min(nums[l], nums[r]));\n }", "public int findLHSMemoryLimitExceeded(int[] nums) {\n if (nums.length < 2)\n return 0;\n int[] array = new int[Integer.MAX_VALUE];\n for (int i = 0; i < nums.length; i++) {\n array[i]++;\n }\n int ans = 0;\n for (int i = 0; i < nums.length - 1; ) {\n if (nums[i] == 0) {\n i++;\n continue;\n }\n if (nums[i + 1] == 0) {\n i += 2;\n continue;\n }\n ans = ans < nums[i] + nums[i + 1] ? nums[i] + nums[i + 1] : ans;\n i++;\n }\n return ans;\n }", "private static int numWaysDP(int N, ArrayList<Integer> x) {\n /* Base Cases */\n if (N == 0) {\n return 1;\n }\n\n int count;\n int[] counts = new int[N + 1];\n counts[0] = 1;\n for (int i = 1; i <= N; i++) {\n count = 0;\n for (int num : x) {\n if (i - num >= 0) {\n count += counts[i - num];\n }\n }\n counts[i] = count;\n }\n\n return counts[N];\n }", "public static void main(String[] args)\n {\n Scanner sc = new Scanner(System.in);\n int sum = sc.nextInt();\n int N = sc.nextInt();\n sc.nextLine();\n int [][] arr = new int[N][2];\n for(int i = 0;i<N;i++)\n {\n arr[i][0] = sc.nextInt();\n arr[i][1] = sc.nextInt();\n sc.nextLine();\n }\n //Arrays.sort(arr, new Comparator<int[]>() {\n // @Override\n // public int compare(int[] o1, int[] o2) {\n // return o1[1]-o2[1]; //按第二列价值排个序。\n // }\n //});\n int [][] dp = new int[N+1][sum+1];\n int [][] path = new int[N+1][sum+1];\n for(int i = 1;i<=N;i++)\n {\n for(int j = 1;j<=sum;j++)\n {\n if(j<arr[i-1][0])\n dp[i][j] = dp[i-1][j];\n else\n {\n if(dp[i-1][j]<dp[i-1][j-arr[i-1][0]]+arr[i-1][1])\n path[i][j] = 1;\n dp[i][j] = Math.max(dp[i-1][j],dp[i-1][j-arr[i-1][0]]+arr[i-1][1]);\n }\n }\n }\n System.out.println(dp[N][sum]);\n\n int i = N;\n int j = sum;\n while (i>0&&j>0)\n {\n if(path[i][j]==1)\n {\n System.out.print(1+\" \");\n j -=arr[i-1][0];\n }\n else\n {\n i--;\n System.out.print(0+\" \");\n }\n }\n\n\n // 改进版。只使用一维数组。\n // int [] f = new int[sum+1];\n // for(int i = 0;i<N;i++)\n // {\n // for (int j = sum;j>=0;j--)\n // {\n // if(j>=arr[i][0])\n // f[j] = Math.max(f[j], f[j-arr[i][0]]+arr[i][1]);\n // }\n // }\n // System.out.println(f[sum]);\n\n }", "static int[] sol1(int[]a, int n){\r\n\t\tMap <Integer,Integer> map= new HashMap();\r\n\t\tfor (int i = 0; i< a.length; i++){\r\n\t\t\tmap.put(a[i],i);\r\n\t\t}\r\n\t\tArrays.sort(a);\r\n\t\tint i = 0; \r\n\t\tint j = a.length -1;\r\n\t\twhile (i <= j){\r\n\t\t\tif(a[i]+a[j]>n) j--;\r\n\t\t\telse if (a[i]+a[j]<n) i++;\r\n\t\t\telse break;\r\n\t\t}\r\n\t\tint[] ans= {map.get(a[i]),map.get(a[j])};\r\n\t\treturn ans;\r\n\t}", "public static int f1(int N) {\n int x = 0; //O(1)\n for(int i = 0; i < N; i++) // O(n) \n x++; \n return x; \n \n }", "public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int T = sc.nextInt();\n for(int i = 0 ; i < T; i++) {\n int n = sc.nextInt();\n int a = sc.nextInt();\n int b = sc.nextInt();\n PriorityQueue<Integer> queue = new PriorityQueue<Integer>();\n int[][] m = new int[n][n];\n //n^2 * log(n)\n for(int row = 0; row < n; row++) {\n for(int col = 0; col < n; col++) {\n if(row == 0 && col == 0 && n != 1) {\n continue;\n }else if(row == 0) {\n m[row][col] = m[row][col - 1] + a;\n }else if(col == 0) {\n m[row][col] = m[row-1][col] + b;\n }else {\n m[row][col] = m[row-1][col-1] + a + b;\n }\n\n if(row + col == (n -1)) {\n pool.add(m[row][col]); //log(n)\n }\n }\n }\n //O(n*log(n))\n for (Integer item:pool) {\n queue.add(item); //O(logn)\n }\n while(!queue.isEmpty()) {\n System.out.print(queue.poll() + \" \"); //O(1)\n }\n System.out.println();\n queue.clear();\n pool.clear();\n }\n }", "public int jump(int[] A) {\n if (A==null || A.length==0) return 0;\n int N = A.length;\n int[] dp = new int[N+1];\n dp[0] = 0;\n dp[1] = 0;\n for (int i=1; i<N; i++){\n int range = A[i];\n for (int j=1; j<=range && ((i+j)<N); j++){ \n if (dp[i+j] == 0) dp[i+j] = dp[i] + 1;\n else dp[i+j] = Math.min(dp[i+j], dp[i]+1);\n }\n }\n return dp[N];\n }", "public static int zeroOneKnapsack(int[] weight, int[] value, int capacity) {\n\t\tint[][] dp = new int[weight.length + 1][capacity + 1];\n\n\t\tfor (int i = 0; i < weight.length + 1 ; i++) {\n\t\t\t for (int j = 0; j < capacity + 1; j++) {\n\t\t\t\t\n\t\t\t\t // base condition for memoization\n\t\t\t\t // first row and first column for 2d matrix is initialised to 0\n\t\t\t\t // profit = 0 when number of items = 0 or bag capacity = 0 \n\t\t\t\t if (i == 0 || j == 0) { \n\t\t\t\t\t dp[i][j] = 0;\n\t\t\t\t } \n\t\t\t\t \n\t\t\t\t // weight of item under consideration is less than capacity of bag\n\t\t\t\t // value of i in 2d matrix corresponds to (i-1)th element in weight and value arrays\n\t\t\t\t // hence, weight(i-1) is compared with the corresponding matrix cell capacity(i.e.column)\n\t\t\t\t \n\t\t\t\t else if (weight[i-1] <= j){\n\t\t\t\t\t \n\t\t\t\t\t // possibility 1: when item having weight(i-1) is added to bag\n\t\t\t\t\t // item having weight(i-1) has value(i-1)\n\t\t\t\t\t // this value added to array value for (i-1)th row and (j-weight[i-1])th column\n\t\t\t\t\t // because :\n\t\t\t\t\t // 1) the total capacity reduced by weight(i-1) after deciding item inclusion\n\t\t\t\t\t // 2) total no.of elements reduced by 1 after deciding item inclusion\n\t\t\t\t\t \n\t\t\t\t\t int a = value[i-1] + dp[i-1][j-weight[i-1]];\n\t\t\t\t\t \n\t\t\t\t\t// possibility 1: when item having weight(i-1) is not added to bag\n\t\t\t\t\t// 1) the total capacity remains as is after deciding item exclusion\n\t\t\t\t\t// 2) total no.of elements reduced by 1 after deciding item exclusion\n\t\t\t\t\t \n\t\t\t\t\t int b = dp[i-1][j];\n\t\t\t\t\t \n\t\t\t\t\t // max of a and b taken to find maximum profit value \n\t\t\t\t\t dp[i][j] = Math.max(a, b);\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\t // weight of item under consideration is more than capacity of bag\n\t\t\t\t // hence item having weight(i-1) is not added to bag\n\t\t\t\t else {\n\t\t\t\t\t \n\t\t\t\t\t// 1) the total capacity remains as is after deciding item exclusion\n\t\t\t\t\t// 2) total no.of elements reduced by 1 after deciding item exclusion\n\t\t\t\t\t \n\t\t\t\t\t dp[i][j] = dp[i-1][j];\n\t\t\t\t\t \n\t\t\t\t }\n\t\t\t\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn dp[weight.length][capacity];\n\t\t\n\t}", "private static int getNumberOfWays(int n, int[] dp) {\n\t\t\r\n\t\tif(n==0) {\r\n\t\t\tdp[n] = 0; \r\n\t\t\treturn 0;\r\n\t\t}\r\n\t\t\r\n\t\tif(n == 1) {\r\n\t\t\tdp[1] = 1;\r\n\t\t\treturn 1;\r\n\t\t}\r\n\t\t\r\n\t\tif(n == 2) {\r\n\t\t\tdp[2] = 2;\r\n\t\t\treturn 2;\r\n\t\t}\r\n\t\t\r\n\t\tif(dp[n] == 0){\r\n\t\t\tdp[n] = getNumberOfWays(n-1, dp) + getNumberOfWays(n-2, dp);\r\n\t\t}\r\n\t\treturn dp[n];\r\n\t}", "public List<Integer> DP(int target, int[] numbers, HashMap<Integer, List<Integer>> memoMap) {\n\n if (memoMap.containsKey(target))\n return memoMap.get(target);\n if (target == 0)\n return List.of();\n if (target < 0)\n return null;\n\n List<Integer> minCombinationResult = null;\n\n for (int number : numbers) {\n\n List<Integer> potentialResult = DP(target - number, numbers, memoMap);\n if (potentialResult != null) {\n\n List<Integer> validResult = new ArrayList<Integer>(potentialResult);\n validResult.add(number);\n\n if (minCombinationResult == null || validResult.size() < minCombinationResult.size())\n minCombinationResult = validResult;\n }\n }\n\n memoMap.put(target, minCombinationResult);\n return memoMap.get(target);\n }", "static long dp(int a, int b, int c, int d, int e, int k) {\n if(f[a][b][c][d][e] > 0) {\n return f[a][b][c][d][e];\n }\n if(!v[k]) {\n return dp(a, b, c, d, e, k + 1);\n }\n if(a < 5 && k > maxr[0] && k > maxc[a]) {\n f[a][b][c][d][e] += dp(a + 1, b, c, d, e, k + 1);\n }\n if(b < a && k > maxr[1] && k > maxc[b]) {\n f[a][b][c][d][e] += dp(a, b + 1, c, d, e, k + 1);\n }\n if(c < b && k > maxr[2] && k > maxc[c]) {\n f[a][b][c][d][e] += dp(a, b, c + 1, d, e, k + 1);\n }\n if(d < c && k > maxr[3] && k > maxc[d]) {\n f[a][b][c][d][e] += dp(a, b, c, d + 1, e, k + 1);\n }\n if(e < d && k > maxr[4] && k > maxc[e]) {\n f[a][b][c][d][e] += dp(a, b, c, d, e + 1, k + 1);\n }\n return f[a][b][c][d][e];\n }", "int DFS(int i, int j) {\n if (dp[i][j] != 0)\n return dp[i][j];\n\n int steps = 0;\n int trial = 0;\n if (i < dp.length - 1 && matrix[i][j] < matrix[i+1][j]) {\n trial = DFS(i + 1, j);\n if (trial > steps)\n steps = trial;\n }\n if (i > 0 && matrix[i][j] < matrix[i-1][j]) {\n trial = DFS(i - 1, j);\n if (trial > steps)\n steps = trial;\n }\n if (j < dp[0].length - 1 && matrix[i][j] < matrix[i][j+1]) {\n trial = DFS(i, j + 1);\n if (trial > steps)\n steps = trial;\n }\n if (j > 0 && matrix[i][j] < matrix[i][j-1]) {\n trial = DFS(i, j - 1);\n if (trial > steps)\n steps = trial;\n }\n\n dp[i][j] = steps + 1;\n return dp[i][j];\n }", "public static int minCostII(int[][] costs) {\n if (costs.length == 0) return 0;\n int n = costs[0].length;\n int minimum = Integer.MAX_VALUE;\n for (int i = 0; i < costs.length; i++) {\n for (int j = 0; j < n; j++) {\n int minCost = Integer.MAX_VALUE;\n for (int k = 0; k < n; k++) {\n if (k != j && i - 1 >= 0) {\n minCost = Math.min(minCost, costs[i - 1][k]);\n }\n }\n costs[i][j] += minCost == Integer.MAX_VALUE ? 0 : minCost;\n if (i == costs.length - 1) {\n minimum = Math.min(costs[i][j], minimum);\n }\n }\n }\n return minimum;\n }", "public int minPathSum(int[][] grid) {\n\t\tint m = grid.length;\n\t\tint n = grid[0].length;\n\t\tif (n < m) {\n\t\t\tint[] dp = new int[n];\n\t\t\tdp[n-1] = grid[m-1][n-1];\n\t\t\tfor(int i = n-2; i >= 0; i--) {\n\t\t\t\tdp[i] = grid[m-1][i] + dp[i+1];\n\t\t\t}\n\t\t\tfor(int i = m-2; i >= 0; i--) {\n\t\t\t\tfor(int j = n-1; j >= 0; j--) {\n\t\t\t\t\tif(j == n-1) {\n\t\t\t\t\t\tdp[j] += grid[i][j];\n\t\t\t\t\t} else {\n\t\t\t\t\t\tdp[j] = grid[i][j] + Math.min(dp[j], dp[j+1]);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn dp[0];\n\t\t} else {\n\t\t\tint[] dp = new int[m];\n\t\t\tdp[m-1] = grid[m-1][n-1];\n\t\t\tfor(int i = m-2; i >= 0; i--) {\n\t\t\t\tdp[i] = grid[i][n-1] + dp[i+1];\n\t\t\t}\n\t\t\tfor(int i = n-2; i >= 0; i--) {\n\t\t\t\tfor(int j = m-1; j >= 0; j--) {\n\t\t\t\t\tif(j == m-1) {\n\t\t\t\t\t\tdp[j] += grid[j][i];\n\t\t\t\t\t} else {\n\t\t\t\t\t\tdp[j] = grid[j][i] + Math.min(dp[j], dp[j+1]);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn dp[0];\n\t\t}\n\t}", "public static int example3(int[] arr) { // O(n)\r\n\t\tint n = arr.length, total = 0; // O(1)\r\n\t\tfor (int j = 0; j < n; j++) // loop from 0 to n-1 // O(n^2)\r\n\t\t\tfor (int k = 0; k <= j; k++) // loop from 0 to j\r\n\t\t\t\ttotal += arr[j];\r\n\t\treturn total;\r\n\r\n\t\t/*\r\n\t\t * Explanation: Since we have nested for loop which dominates here and it is\r\n\t\t * O(n^2) and we always take the maximum. so the answer is quadratic time O(n^2)\r\n\t\t * \r\n\t\t */\r\n\t}", "private static Integer packDPRec(Integer capacity, List<Integer> weights, List<ItemDTO> items, Integer n, Integer[][] mem, List<Integer> optimalChoice) {\n // Base condition\n if (n == 0 || capacity <= 0)\n return 0;\n\n if (mem[n][capacity] != -1) {\n return mem[n][capacity];\n }\n\n if (weights.get(n - 1) > capacity) {\n // Store the value of function call\n // stack in table before return\n List<Integer> subOptimalChoice = new ArrayList<>();\n mem[n][capacity] = packDPRec(capacity, weights, items, n - 1, mem, subOptimalChoice);\n optimalChoice.addAll(subOptimalChoice);\n return mem[n][capacity];\n } else {\n // Return value of table after storing\n List<Integer> optimalChoiceIncluded = new ArrayList<>();\n List<Integer> optimalChoiceExcluded = new ArrayList<>();\n Integer valueIncluded = items.get(n - 1).getValue() + packDPRec(capacity - weights.get(n - 1), weights, items, n - 1, mem, optimalChoiceIncluded);\n Integer valueExcluded = packDPRec(capacity, weights, items, n - 1, mem, optimalChoiceExcluded);\n if (valueIncluded > valueExcluded) {\n optimalChoice.addAll(optimalChoiceIncluded);\n optimalChoice.add(items.get(n - 1).getId());\n mem[n][capacity] = valueIncluded;\n }else{\n optimalChoice.addAll(optimalChoiceExcluded);\n mem[n][capacity] = valueExcluded;\n }\n return mem[n][capacity];\n }\n }", "public static int solution(int[] arr) {\n int n = arr.length;\n for (int i = 0; i < n; i++) {\n while (arr[i] != i + 1 && arr[i] < n && arr[i] > 0) {\n int temp = arr[i];\n if (temp == arr[temp - 1])\n break;\n arr[i] = arr[temp - 1];\n arr[temp - 1] = temp;\n }\n }\n for (int i = 0; i < n; i++)\n if (arr[i] != i + 1)\n return i + 1;\n return n + 1;\n }", "public static int mcm(int[] arr) {\n\n int[][] dp = new int[arr.length - 1][arr.length - 1];\n\n for (int d = 0; d < dp.length; d++) {\n for (int i = 0, j = d; j < dp[0].length; i++, j++) {\n if (d == 0) {\n dp[i][j] = 0;\n } else if (d == 1) {\n dp[i][j] = arr[i] * arr[i + 1] * arr[i + 2];\n } else {\n int min = Integer.MAX_VALUE;\n\n for (int k = i; k < j; k++) {\n int lans = dp[i][k];\n int rans = dp[k + 1][j];\n\n int mc = arr[i] * arr[k + 1] * arr[j + 1]; //mult cost\n\n int cont = lans + rans + mc;\n min = Math.min(min, cont);\n }\n\n dp[i][j] = min;\n }\n }\n }\n\n return dp[0][dp[0].length - 1];\n }", "static int[] find2(int a[]){\r\n int sum = a[0];\r\n int pro = a[0];\r\n for(int i=1;i<a.length;i++){\r\n sum += a[i];\r\n pro += a[i]*a[i];\r\n }\r\n int s = (n*(n+1))/2 - sum;\r\n int p = (n*(n+1)*(2*n+1))/6 - pro;\r\n return solveSP(s, p);\r\n }", "public static int dynamicProgramming(int n) {\n for (int i=0; i<=n; i++) {\n table[0][i] = 1;\n }\n\n for (int j=1; j<4; j++) { //this loops the different denominations.\n for (int i=0; i<=n; i++) { //this loops through the amount we have to make change for\n\n //hard to explain, create a table and look at it. For j=1 (nickel), for anything less than\n //5 cents, we just copy the value down from j=0 (penny). The nickel has no effect for anything less than 5 cents.\n if (i < denominations[j]) {\n table[j][i] = table[j-1][i];\n continue;\n }\n\n //For example, j=1 (nickel), i = 11 cents. the number of ways to make 11 cents is equal to\n //the number of ways to make 11 cents without using nickel (table[j-1][i]) plus the number\n //of ways to 6 cents (table[j][i-denomination[j]).\n table[j][i] = table[j-1][i] + table[j][i-denominations[j]];\n }\n }\n return table[3][n];\n }", "public static int solution(int[] A) {\n\n int min = Integer.MAX_VALUE;\n int total = 0;\n int size = A.length;\n int pSum = 0;\n int nSum = 0;\n for (int j : A) {\n total += j;\n }\n\n for (int i = 1; i < size; i++) {\n pSum += A[i-1];\n nSum = total - pSum;\n min = Math.min(min, Math.abs(pSum-nSum));\n }\n return min;\n }", "private int houseRobberWithMaxAmountHousesFromItoJInConstantSpace(int[] a, int i, int j) {\n\t\tif (null == a || i > j)\n\t\t\treturn 0;\n\n\t\tif (j - i == 0)\n\t\t\treturn a[i];\n\n\t\tint incl = a[i];\n\t\tint excl = 0, temp;\n\n\t\tfor (int k = i + 1; k <= j; k++) {\n\t\t\ttemp = incl;\n\t\t\tincl = Math.max(excl + a[k], incl);\n\t\t\texcl = temp;\n\t\t}\n\t\treturn incl;\n\t}", "public static void main(String[] args) throws IOException{\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = sc.nextInt();\n\t\tint m = sc.nextInt();\n\t\tint[] array = new int[n];\n\t\tfor(int i=0;i<n;i++)\n\t\t{\n\t\t\tarray[i] = sc.nextInt();\n\t\t}\n\t\tint[][] dp = new int[n][n];\n\t\tint[][] c = new int[n][n];\n\t\tfor(int i=0;i<n;i++)\n\t\t{\n\t\t\tint count=0,max=0;\n\t\t\tfor(int j=i;j<n;j++)\n\t\t\t{\n\t\t\t\tif(j==i){\n\t\t\t\t\tdp[i][j]=array[j];\n\t\t\t\t\tcount++;\n\t\t\t\t\tc[i][j]=count;\n\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\telse{\n\t\t\t\t\tif(array[j]==array[j-1]){\n\t\t\t\t\t\tcount++;\n\t\t\t\t\t\tif(max<count) {\n\t\t\t\t\t\t\tmax =count;\n\t\t\t\t\t\t\tdp[i][j]=array[j];\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse{\n\t\t\t\t\t\tdp[i][j]=dp[i][j-1];\n\t\t\t\t\t\t}\n\t\t\t\t\t\tc[i][j]=count;\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t{\n\t\t\t\t\t\tcount =1;\n\t\t\t\t\t\tdp[i][j] = dp[i][j-1];\n\t\t\t\t\t\tc[i][j]=count;\n\t\t\t\t\t\t\n\t\t\t\t\t}\t\n\t\t\t\t}\n\t\t\t\t//System.out.print(dp[i][j]+\" \");\n\t\t\t}\n\t\t\t//System.out.println();\n\t\t}\n\t\t\n\t\tfor(int i=0;i<m;i++)\n\t\t{\n\t\t\tint l = sc.nextInt()-1;\n\t\t\tint r = sc.nextInt()-1;\n\t\t\tint k = sc.nextInt();\n\t\t\tif(c[l][r]>k)\n\t\t\t{\n\t\t\t\tSystem.out.println(dp[l][r]);\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tSystem.out.println(-1);\n\t\t\t}\n\t\t}\n\t}", "static int recurseMaxStolenValue(int[] values,int i){\r\n\t if(i >= values.length) return 0;\r\n\t if(i == values.length -1) return values[values.length-1];\r\n\t \r\n\t return Math.max( values[i] + recurseMaxStolenValue(values,i+2)\r\n\t ,values[i+1] + recurseMaxStolenValue(values,i+3)\r\n\t );\r\n\t /*\r\n\t *Approach #2 for Recursion --> This approach won't work to convert to DP,but recursion yields right result\r\n\t */\r\n\t \r\n\t /*\r\n\t if(i >= values.length) return 0; \r\n\t int result1 = values[i]+recurseMaxStolenValue(values,i+2);\r\n\t int result2 = recurseMaxStolenValue(values,i+1);\r\n\t return (Math.max(result1,result2));\r\n\t */\r\n\t \r\n\t }", "static int trappingWater(int arr[], int n) {\r\n\r\n // Your code here\r\n /** *** tle\r\n for(int i=1;i<n-1;i++){\r\n int l=arr[i];\r\n for (int j = 0; j < i; j++) {\r\n l=l < arr[j] ? arr[j] : l;\r\n }\r\n int r=arr[i];\r\n for (int j = i+1; j <n ; j++) {\r\n r=r < arr[j] ? arr[j] : r;\r\n }\r\n\r\n s=s+(l>r? r:l) -arr[i];\r\n }\r\n return s;\r\n\r\n //////////////////////////////////////////////\r\n SC=O(N)\r\n if(n<=2)\r\n return 0;\r\n int[] left=new int[n];\r\n int[] right=new int[n];\r\n left[0]=0;\r\n int leftmax=arr[0];\r\n for (int i = 1; i <n ; ++i) {\r\n left[i]=leftmax;\r\n leftmax=Math.max(leftmax,arr[i]);\r\n }\r\n right[n-1]=0;\r\n int mxright=arr[n-1];\r\n for (int i = n-2; i >=0 ; --i) {\r\n right[i]=mxright;\r\n mxright=Math.max(mxright,arr[i]);\r\n }\r\n int s=0;\r\n for (int i = 1; i < n-1; ++i) {\r\n if(arr[i]<left[i] && arr[i]<right[i]){\r\n s+=Math.min(left[i],right[i])-arr[i];\r\n }\r\n }\r\n return s;\r\n /////////////////////////////////////////////////////\r\n **/\r\n\r\n if(n<=2)\r\n return 0;\r\n\r\n int leftMax = arr[0];\r\n int rightMax = arr[n-1];\r\n\r\n int left = 1;\r\n int right = n-2;\r\n int water = 0;\r\n\r\n while(left <= right) {\r\n if (leftMax < rightMax) {\r\n if (arr[left] >= leftMax) {\r\n leftMax = arr[left];\r\n } else\r\n water = water + (leftMax - arr[left]);\r\n\r\n //leftMax = Math.max(leftMax, arr[left]);\r\n left++;\r\n } else {\r\n if (arr[right] > rightMax) {\r\n rightMax = arr[right];\r\n }\r\n\r\n water = water + (rightMax - arr[right]);\r\n right--;\r\n }\r\n }\r\n return water;\r\n\r\n }", "private int getCondensedIndex(int n, int i, int j) {\n if (i < j) {\n return n * i - (i * (i + 1) / 2) + (j - i - 1);\n }\n else if (i > j) {\n return n * j - (j * (j + 1) / 2) + (i - j - 1);\n }\n else{\n return 0;\n }\n }", "static int coinChangeProblem1(int[] coins,int sum){\n int n = coins.length;\n int[][] dp = new int[n+1][sum+1];\n\n for(int j = 1;j<=sum;j++){\n dp[0][j] = 0;\n }\n for(int i = 0;i<=n;i++){\n dp[i][0] = 1;\n }\n\n for(int i = 1;i<=n;i++){\n for(int j = 1;j<=sum;j++){\n if(coins[i-1]<=j){\n dp[i][j] = dp[i-1][j] + dp[i][j-coins[i-1]];\n }else dp[i][j] = dp[i-1][j];\n }\n }\n return dp[n][sum];\n }", "public int solution(int[] A) {\n\t \n\t int n = A.length;\n\t int N =0;\n\t for(int i=0;i<n;i++){\n\t N += A[i];\n\t }\n\t boolean[][] P = new boolean[N/2+1][n+1];\n\t for(int i=0;i<n;i++){\n\t P[0][i] = true;\n\t }\n\t \n\t for(int i = 1;i<=N/2;i++)\n\t for(int j = 1;j<=n;j++)\n\t if(A[j-1]<=i)\n\t P[i][j] = P[i][j-1] || P[i - A[j - 1]][ j - 1];\n\t else\n\t P[i][j] = P[i][j-1];\n\t if (P[N/2][n] == true)\n\t return 1;\n\t else \n\t return 0;\n\t }", "public static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = sc.nextInt();\n\t\tint arr[] = new int[n];\n\t\tfor(int i=0;i<n;i++) {\n\t\t\tarr[i] = sc.nextInt();\n\t\t}\n\t\tint sum = sc.nextInt();\n\t\tHashMap<Integer,Integer> map = new HashMap<>();\n \t\tArrays.sort(arr);\n\t\tfor(int i=0;i<n;i++) {\n\t\t\tint temp = arr[i];\n\t\t\tint reqSum = sum-temp;\n\t\t\tarr[i]=0;\n\t\t\tint l=0;\n\t\t\tint r = n-1;\n\t\t\twhile(l<r) {\n\t\t\t\t//System.out.println(\"l \" + l + \" r \" + r + \" i = \"+ i);\n\t\t\t\tif(arr[l] + arr[r]==reqSum && arr[l]!=0 && arr[r]!=0 ) {\n\t\t\t\t\tint arr2[] = new int[3];\n\t\t\t\t\tarr2[0] = temp;\n\t\t\t\t\tarr2[1] = arr[l];\n\t\t\t\t\tarr2[2] = arr[r];\n\t\t\t\t\tif(map.containsKey(arr2[0]) || map.containsKey(arr2[1]) || map.containsKey(arr2[2])) {\n\t\t\t\t\t\t\n\t\t\t\t\t}else {\n\t\t\t\t\t\tArrays.sort(arr2);\n\t\t\t\t\t\tSystem.out.println(arr2[0] + \" \" + arr2[1] + \" \" + arr2[2]);\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tl++;\n\t\t\t\t}else if(arr[l] + arr[r] < reqSum) {\n\t\t\t\t\tl++;\n\t\t\t\t\t\n\t\t\t\t}else {\n\t\t\t\t\tr--;\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t}\n\t\t\tarr[i] = temp;\t\n\t\t\tmap.put(arr[i], 1);\n\t\t}\n\t}", "int calculateMinimumHP(int[][] dungeon) {\n int m = dungeon.length;\n assert (m > 0);\n int n = dungeon[0].length;\n int[] dp = new int[n + 1];\n for (int j = n - 1; j >= 0; j--) dp[j] = Integer.MAX_VALUE;\n dp[n] = 1;\n\n for (int i = m - 1; i >= 0; i--) {\n for (int j = n - 1; j >= 0; j--)\n dp[j] = Math.max(1, Math.min(dp[j], dp[j + 1]) - dungeon[i][j]);\n //System.out.println(Arrays.toString(dp));\n dp[n] = Integer.MAX_VALUE;\n }\n return dp[0];\n }", "static int getMissingByAvoidingOverflow(int a[], int n)\n\t {\n\t int total = 2;\n\t for (int i = 3; i <= (n + 1); i++)\n\t {\n\t total =total+ i -a[i - 2];\n\t //total =total- a[i - 2];\n\t }\n\t return total;\n\t }", "public static int leastNumberOfPerfectSquares(int n)\n {\n int max = (int)Math.sqrt(n);\n\n int [] dp = new int[n + 1];\n Arrays.fill(dp, Integer.MAX_VALUE);\n\n for(int i = 1; i <= n; ++i)\n {\n for(int j = 1; j <= max; ++j)\n {\n if(i == j * j)\n {\n dp[i] = 1;\n }\n else if( i > j * j)\n {\n dp[i] = Math.min(dp[i], dp[i - j * j] + 1);\n }\n }\n }\n return dp[n];\n }", "public int numSolutions(int N, int M) {\n HashMap<Integer, Integer> dp = new HashMap<Integer, Integer>();\n dp.put(0, 1);\n for (int i = 0; i < N; ++i) {\n for (int j = 0; j < M; ++j) {\n HashMap<Integer, Integer> nDp = new HashMap<Integer, Integer>();\n for (Integer key : dp.keySet()) {\n int leftCell = getCell(key, j - 1);\n int upCell = getCell(key, j);\n int count = dp.get(key);\n if (upCell != 0) {\n // This is the last chance to fulfill upCell.\n if (upCell == 1 || upCell == 3) {\n // Don't paint this cell.\n int newKey = setCell(key, j, 0);\n addValue(nDp, newKey, count);\n } else {\n // Paint this cell.\n int current = 2 + (leftCell == 0 ? 0 : 1);\n int newKey = setCell(key, j, current);\n if (leftCell != 0) {\n newKey = setCell(newKey, j - 1, leftCell + 1);\n }\n addValue(nDp, newKey, count);\n }\n } else {\n // Don't paint this cell.\n int newKey = setCell(key, j, 0);\n addValue(nDp, newKey, count);\n // Paint this cell.\n if (leftCell == 0) {\n newKey = setCell(key, j, 1);\n } else {\n newKey = setCell(key, j - 1, leftCell + 1);\n newKey = setCell(newKey, j, 2);\n }\n addValue(nDp, newKey, count);\n }\n }\n dp = nDp;\n }\n }\n int result = 0;\n for (Integer key : dp.keySet()) {\n boolean valid = true;\n for (int i = 0; i < M; ++i) {\n int current = getCell(key, i);\n if (current == 2 || current == 4) {\n valid = false;\n break;\n }\n }\n if (valid) {\n result = (result + dp.get(key)) % MOD;\n }\n }\n return result;\n }", "public void initial()\n\t{ \n\t\tint i,j; \n\t\tint tempValue=0;\n\t\tfor(i=0; i<n; i++) \n\t\t{ \n\t\t\tfor(j=0; j<n; j++)\n\t\t\t {\n\t\t\t\tif(j==0)\n\t\t\t\t{\n\t\t\t\t\ttempValue = cost[i][j];\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tif(tempValue> cost[i][j])\n\t\t\t\t\t{\n\t\t\t\t\t\ttempValue = cost[i][j];\n\t\t\t\t\t}\t\t\n\t\t\t\t}\t\t\t\t\n\t\t\t}\n\t\t\tfor (j=0; j<n;j++)\n\t\t\t{\n\t\t\t\tcost[i][j] = cost[i][j]- tempValue;\n\t\t\t}\t\t\t\n\t\t}\n\t\t\n\t\tfor(j=0;j<n;j++)\n\t\t{\n\t\t\tfor (i=0;i<n;i++)\n\t\t\t{\n\t\t\t\tif(i==0)\n\t\t\t\t{\n\t\t\t\t\ttempValue = cost[i][j];\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t if(tempValue> cost[i][j])\n\t\t\t\t {\n\t\t\t\t \ttempValue = cost[i][j];\n\t\t\t\t }\n\t\t\t\t}\n\t\t\t}\n\t\t\tfor(i=0;i<n;i++)\n\t\t\t{\n\t\t\t\tcost[i][j] = cost[i][j] - tempValue;\n\t\t\t}\n\t\t}\t\n\t}", "public static int bestApproach(int n) {\n \n if(n<=2){\n return n;\n }\n int a = 0;\n int b = 1;\n int c = 2;\n \n while(n-->2){\n a = b+c;\n b = c;\n c = a;\n }\n return a;\n }", "public int wiggleMaxLength4(int[] nums) {\n if(nums == null || nums.length == 0){\n return 0;\n } else if(nums.length == 1){\n \treturn 1;\n }\n \n int len = nums.length;\n int[] tempNums = new int[len - 1];\n int[] dp = new int[len - 1];\n int maxLen = 0;\n \n for(int i = 0; i < len - 1; i++){\n if(nums[i] - nums[i + 1] > 0){\n tempNums[i] = 1;\n } else if(nums[i] - nums[i + 1] < 0){\n tempNums[i] = -1;\n } else {\n tempNums[i] = 0;\n }\n }\n \n for(int i = 0; i < len - 1; i++){\n \tif(tempNums[i] != 0){\n \t\tdp[i] = 1;\n \t}\n }\n \n maxLen = dp[0];\n \n for(int i = 0; i < len - 1; i++){\n for(int j = 0; j < i; j++){\n if(tempNums[i] * tempNums[j] == -1){\n dp[i] = Math.max(dp[i], dp[j] + 1);\n maxLen = Math.max(maxLen, dp[i]);\n }\n }\n }\n \n return maxLen + 1;\n }", "private int optimize() {\n\t\t// items: Items sorted by value-to-weight ratio for linear relaxation\n\t\t// t: the decision vector being tested at each node\n\t\t// ws, vs, is, bs: stacks of weight, value, item id, whether bring item\n\t\t// p: stack pointer; i, b, weight, value: loop caches; best: max search\n\t\t// ss: stack size: Always <=2 children on stack for <=n-1 parents\n\t\tItem[] items = new Item[n];\n\t\tint ss = 2 * n;\n\t\tint[] itemsSorted = new int[n], t = new int[n], ws = new int[ss],\n\t\t\tvs = new int[ss], is = new int[ss], bs = new int[ss];\n\t\tint i, b, weight, value, best = 0, p = 0;\n\n\t\tfor (int j = 0; j < n; j++)\n\t\t\titems[j] = new Item(j);\n\t\tArrays.sort(items);\n\t\tfor (int j = 0; j < n; j++)\n\t\t\titemsSorted[j] = items[j].i();\n\t\titems = null; // For garbage collection.\n\n\t\t// Push item 0 onto the stack with and without bringing it.\n\t\tws[p] = 0; vs[p] = 0; is[p] = 0; bs[p] = 1; p++;\n\t\tws[p] = 0; vs[p] = 0; is[p] = 0; bs[p] = 0; p++;\n\n\t\twhile (p > 0) {\n\t\t\tp--; // Pop the latest item off the stack\n\t\t\ti = is[p]; b = bs[p];\n\t\t\tweight = ws[p] + w[i] * b;\n\t\t\tif (weight > k)\n\t\t\t\tcontinue;\n\t\t\tvalue = vs[p] + v[i] * b;\n\t\t\tif (bound(i, weight, value, itemsSorted) < best)\n\t\t\t\tcontinue;\n\t\t\tbest = Math.max(value, best);\n\t\t\tt[i] = b;\n\t\t\tif (i < n - 1) { // Push children onto stack w/ & w/o bringing item\n\t\t\t\tws[p] = weight; vs[p] = value; is[p] = i + 1; bs[p] = 1; p++;\n\t\t\t\tws[p] = weight; vs[p] = value; is[p] = i + 1; bs[p] = 0; p++;\n\t\t\t}\n\t\t\telse if (value >= best)\n\t\t\t\tSystem.arraycopy(t, 0, x, 0, n);\n\t\t}\n\t\treturn best;\n\t}", "static int countWaysUtil(int n, int m) \n\t { \n\t int res[] = new int[n]; \n\t res[0] = 1; res[1] = 1; \n\t for (int i=2; i<n; i++) \n\t { \n\t res[i] = 0; \n\t for (int j=1; j<=m && j<=i; j++) \n\t res[i] += res[i-j]; \n\t } \n\t return res[n-1]; \n\t }", "private static int nthUglyNumber(int n) {\n if (n == 0) {\n return 1;\n }\n\n int[] dp = new int[n];\n dp[0] = 1;\n int index2 = 0, index3 = 0, index5 = 0;\n for (int i = 1; i < n; i++) {\n dp[i] = Math.min(2 * dp[index2], Math.min(3 * dp[index3], 5 * dp[index5]));\n System.out.println(dp[i]);\n if (dp[i] == 2 * dp[index2]) {\n index2++;\n }\n\n if (dp[i] == 3 * dp[index3]) {\n index3++;\n }\n\n if (dp[i] == 5 * dp[index5]) {\n index5++;\n }\n }\n\n return dp[n - 1];\n }", "public int coinChange(int[] coins, int amount) {\n int[][] dp = new int[coins.length + 1][amount + 1];\n // base case\n Arrays.fill(dp[coins.length], Integer.MAX_VALUE);\n dp[coins.length][0] = 0;\n // induction rule\n for (int i = coins.length - 1; i >= 0; i--) {\n for (int j = 0; j <= amount; j++) {\n dp[i][j] = dp[i + 1][j];\n int maxK = j / coins[i];\n // Notice 1: k must start from 1, because j - coins[i] might be less than 0.\n for (int k = 1; k <= maxK; ++k) {\n int prev = dp[i + 1][j - k * coins[i]];\n if (prev < Integer.MAX_VALUE) {\n // Notice 2: must explicity compare prev with MAX_VALUE,\n // because if prev is MAX, prev + k will become to MIN_VALUE\n dp[i][j] = Integer.min(dp[i][j], prev + k);\n }\n }\n }\n }\n return dp[0][amount] == Integer.MAX_VALUE ? -1 : dp[0][amount];\n }", "@Override\n public String solve() {\n int LIMIT = 50 * NumericHelper.ONE_MILLION_INT;\n int[] nCount = new int[LIMIT+1];\n for(long y = 1; y<= LIMIT; y++) {\n for(long d= (y+3)/4; d<y; d++) { // +3 is to make d atleast 1\n long xSq = (y+d) * (y+d);\n long ySq = y * y;\n long zSq = (y-d) * (y-d);\n\n long n = xSq - ySq - zSq;\n\n if(n<0) {\n continue;\n }\n\n if(n>=LIMIT) {\n break;\n }\n\n\n nCount[(int)n]++;\n\n }\n }\n\n int ans = 0;\n for(int i = 1; i<LIMIT; i++) {\n if(nCount[i] == 1) {\n //System.out.print(i +\",\");\n ans++;\n }\n }\n\n return Integer.toString(ans);\n }", "public static void solve(int n, List<Integer> a) {\n Collections.sort(a);\n Collections.reverse(a);\n double sum = a.stream().mapToDouble(num -> Double.valueOf(num)).sum();\n double currentN = Double.valueOf(n);\n double currentSum = sum;\n for(Integer next : a)\n {\n double nextDouble = Double.valueOf(next);\n if(nextDouble<=currentSum/currentN)\n {\n break;\n }\n currentSum -= nextDouble;\n currentN--;\n }\n System.out.println(currentSum/currentN);\n\n\n }", "public static void main(String[] args) {\n\t\t\r\n\t\tint n = 6;\r\n\t\t\r\n\t\t// Using recursion(top-down DP) with TIme O(n) Space O(n)+StackSpace\r\n\t\t\r\n//\t\tint[] dp = new int[n+1];\r\n//\t\tint res = getNumberOfWays(n,dp);\r\n//\t\tSystem.out.println(res);\r\n\t\t\r\n\t\t\r\n\t\t// Using recursion(bottom-up DP) with TIme O(n) Space O(n)\r\n\t\t\r\n\t\tint[ ] dp = new int[n+1];\r\n\t\t\r\n\t\tdp[0] = 0;\r\n\t\tdp[1] = 1;\r\n\t\tdp[2] = 2;\r\n\t\t\r\n\t\tfor(int i =3;i<=n;i++) {\r\n\t\t\tdp[i] = dp[i-1]+dp[i-2];\r\n\t\t}\r\n\t\t\r\n\t\tSystem.out.println(dp[n]);\r\n\r\n\t}", "public static void main(String[] args) throws IOException {\n int max = 100000;\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\n N = Integer.parseInt(br.readLine());\n\n int arr[] = new int[max+1];\n\n for (int p=2; p<=99999; p++)\n {\n if (arr[p] == 0)\n { arr[p] = 1;\n for (int i=p*2; i<=max; i += p) {\n arr[i]++;\n }\n }\n }\n\n int mat[][] = new int[6][max+1];\n// for (int i = 2; i < arr.length; i++) {\n// mat[arr[i]][i] = 1;\n// }\n\n for (int i = 1; i < 6; i++) {\n for (int j = 2; j < mat[0].length; j++) {\n if(arr[j] == i) {\n mat[i][j] = mat[i][j - 1]+1;\n } else {\n mat[i][j] = mat[i][j - 1];\n }\n }\n }\n\n\n for (int i = 0; i < N; i++) {\n String str[] = br.readLine().split(\" \");\n int a = Integer.parseInt(str[0]);\n int b = Integer.parseInt(str[1]);\n int k = Integer.parseInt(str[2]);\n int ans = mat[k][b]-mat[k][a-1];\n System.out.println(ans);\n }\n }", "public int coinNeededBU(int[] coins, int amount, int n) {\n int dp[] = new int[amount + 1];\n Arrays.fill(dp, Integer.MAX_VALUE);\n\n dp[0] = 0;\n for (int rupay = 1; rupay <= amount; rupay++) {\n\n //Iterating over Coins\n for (int i = 0; i < n; i++) {\n\n if (rupay - coins[i] >= 0) {\n int smallAnswer = dp[rupay - coins[i]];\n //if (smallAnswer != Integer.MAX_VALUE) {\n dp[rupay] = Math.min(dp[rupay], smallAnswer + 1);\n //}\n }\n }\n }\n for (int i : dp) {\n System.out.print(i + \", \");\n }\n System.out.println();\n return dp[amount];\n }", "public static int firstMissingEffective(int[] x){\n int i = 0;\n while(i<x.length){\n // first two conditions check that element can correspond to index of array\n // third condition checks that they are not in their required position\n // fourth condition checks that there is no duplicate already at their position\n if( x[i]>0 && x[i]<x.length && x[i]-1!=i && x[x[i]-1]!=x[i]) exch(x,i,x[i]-1);\n else i++;\n }\n\n // second pass\n for(int j=0; j < x.length; j++){\n if( x[j]-1!=j) return j+1;\n }\n return x.length+1;\n\n }", "static ArrayList DP_min_operation(int input_integer){\n\t\tArrayList<Integer> DP_min_cal_arry=new ArrayList();\n\t\tint index_n_cal_done=2;\n\t\tDP_min_cal_arry.add(0);\n\t\tDP_min_cal_arry.add(0);\n\t\tint [] val_DP_min=new int[3];\n\t\t\n\t\tif(input_integer<2){\n\t\t\treturn DP_min_cal_arry;\n\t\t\t\n\t\t}\n\t\t\n\t\twhile (index_n_cal_done<=input_integer){\n\t\t\tval_DP_min[0]=Integer.MAX_VALUE;\n\t\t\tval_DP_min[1]=Integer.MAX_VALUE;\n\t\t\tval_DP_min[2]=Integer.MAX_VALUE;\n\t\t\t\n\t\t\tif (index_n_cal_done-1>=0){\n\t\t\t\tval_DP_min[0]=DP_min_cal_arry.get(index_n_cal_done-1);\n\t\t\t\tval_DP_min[0]+=1;\n\t\t\t}\n\t\t\tif((index_n_cal_done/2>=1)&&(index_n_cal_done%2==0)){\n\t\t\t\tval_DP_min[1]=DP_min_cal_arry.get(index_n_cal_done/2);\n\t\t\t\tval_DP_min[1]+=1;\n\t\t\t}\n\t\t\tif((index_n_cal_done/3>=1)&&(index_n_cal_done%3==0)){\n\t\t\t\tval_DP_min[2]=DP_min_cal_arry.get(index_n_cal_done/3);\n\t\t\t\tval_DP_min[2]+=1;\n\t\t\t}\n\t\t\tint result_min_val=Integer.MAX_VALUE;\n\t\t\tfor (int i=0;i<3;i++){\n\t\t\t\tif (result_min_val>val_DP_min[i]){\n\t\t\t\t\tresult_min_val=val_DP_min[i];\n\t\t\t\t}\n\t\t\t\t\t\t\t\t\n\t\t\t}\n\t\t\tDP_min_cal_arry.add(result_min_val);\t\t\t\n\t\t\tindex_n_cal_done+=1;\n\t\t}\n\t\t\n\t\treturn DP_min_cal_arry;\n\t}" ]
[ "0.7296177", "0.7092086", "0.6743158", "0.6587574", "0.6523377", "0.6326071", "0.63230896", "0.6307224", "0.63054305", "0.62463504", "0.61798716", "0.6175626", "0.6174754", "0.6141769", "0.6113799", "0.6099428", "0.6092939", "0.60869193", "0.6080007", "0.6026346", "0.6021195", "0.6013937", "0.601379", "0.59920007", "0.5991441", "0.5968482", "0.5965041", "0.5957633", "0.59570426", "0.5953086", "0.5939897", "0.59230095", "0.59168893", "0.5914323", "0.5900333", "0.5892233", "0.58777857", "0.5860194", "0.5857381", "0.58532804", "0.5850333", "0.5849093", "0.5848323", "0.5844726", "0.58224726", "0.58099675", "0.58088946", "0.5798944", "0.57820606", "0.5753664", "0.5748301", "0.5741825", "0.57323104", "0.57246", "0.5721471", "0.5719418", "0.57150644", "0.57126045", "0.570265", "0.5685498", "0.5681453", "0.5670094", "0.56675935", "0.5660094", "0.5659155", "0.565204", "0.5651465", "0.564723", "0.5644894", "0.5635333", "0.5626286", "0.56221783", "0.56220424", "0.5620954", "0.5612676", "0.5612035", "0.5611531", "0.56089246", "0.5608412", "0.56038386", "0.5599842", "0.55950963", "0.5591945", "0.5580888", "0.5580486", "0.55791634", "0.5579055", "0.55741245", "0.5570745", "0.55694634", "0.5560529", "0.55589867", "0.5553783", "0.5548887", "0.5544442", "0.5533996", "0.5524443", "0.5521299", "0.5498997", "0.5494857", "0.5492209" ]
0.0
-1
=========== Method 2: DP Top down ============ 32ms
public int coinChange(int[] coins, int amount) { if (amount < 1) return 0; return helper(coins, amount, new int[amount + 1]); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void PutTopDown()\n\t{\n\t\tif(isStateTop)\n\t\t{\n\t\t\tSystem.out.println(\"Putting top down\");\n\t\t\tisStateTop=false;\n\t\t}\n\t\telse\n\t\t{\n\t\t\tSystem.out.println(\"Top is already down\");\n\t\t}\n\t}", "public void Down(){\r\n \r\n if(By>0 && By<900){\r\n \r\n By+=2;\r\n }\r\n }", "@Override\n\tpublic int topSpeed() {\n\t\treturn 0;\n\t}", "public void PutTopUp()\n\t{\n\t\tif(!isStateTop)\n\t\t{\n\t\t\tSystem.out.println(\"Putting top up\");\n\t\t\tisStateTop=true;\n\t\t}\n\t\telse\n\t\t{\n\t\t\tSystem.out.println(\"Top is already up\");\n\t\t}\n\t}", "@Override\n\tpublic int getTopSpeed() {\n\t\treturn 100;\n\t}", "private void fillDown(int nextTop) {\n LayoutParams p;\n while (nextTop > 0 && topViewPosition > 0) {\n topViewPosition--;\n View child = obtainView(topViewPosition);\n p = (LayoutParams) child.getLayoutParams();\n if (p == null) {\n p = new LayoutParams(LayoutParams.WRAP_CONTENT, LayoutParams.WRAP_CONTENT);\n Log.e(TAG, \"fillViews: p == null\");\n }\n p.viewType = mAdapter.getItemViewType(topViewPosition);\n addViewInLayout(child, 0, p, true);\n child.requestLayout();\n needReLayout=true;\n nextTop -= p.height;\n }\n }", "public void Down2(){\r\n if(Hy>0 && Hy<900){\r\n \r\n Hy+=3;\r\n }\r\n }", "public void Down4()\r\n {\r\n if(By2>0 && By2<900){\r\n \r\n By2+=2.5;\r\n }\r\n }", "public final TreeRewrite.topdown_return topdown() throws RecognitionException {\n TreeRewrite.topdown_return retval = new TreeRewrite.topdown_return();\n retval.start = input.LT(1);\n\n CommonTree root_0 = null;\n\n CommonTree _first_0 = null;\n CommonTree _last = null;\n\n CommonTree dow=null;\n CommonTree amount=null;\n CommonTree SEEK1=null;\n CommonTree DIRECTION2=null;\n CommonTree SEEK_BY3=null;\n CommonTree INT4=null;\n CommonTree DAY_OF_WEEK5=null;\n CommonTree INT6=null;\n CommonTree DAY_OF_WEEK7=null;\n CommonTree SEEK8=null;\n CommonTree DIRECTION9=null;\n CommonTree SEEK_BY10=null;\n CommonTree INT11=null;\n CommonTree DAY_OF_MONTH12=null;\n CommonTree INT13=null;\n CommonTree DAY_OF_MONTH14=null;\n CommonTree SEEK15=null;\n CommonTree DIRECTION16=null;\n CommonTree SEEK_BY17=null;\n CommonTree INT18=null;\n CommonTree MONTH_OF_YEAR19=null;\n CommonTree INT20=null;\n CommonTree MONTH_OF_YEAR21=null;\n CommonTree SEEK22=null;\n CommonTree DIRECTION23=null;\n CommonTree SEEK_BY24=null;\n CommonTree INT25=null;\n CommonTree MONTH_OF_YEAR26=null;\n CommonTree INT27=null;\n CommonTree MONTH_OF_YEAR28=null;\n\n CommonTree dow_tree=null;\n CommonTree amount_tree=null;\n CommonTree SEEK1_tree=null;\n CommonTree DIRECTION2_tree=null;\n CommonTree SEEK_BY3_tree=null;\n CommonTree INT4_tree=null;\n CommonTree DAY_OF_WEEK5_tree=null;\n CommonTree INT6_tree=null;\n CommonTree DAY_OF_WEEK7_tree=null;\n CommonTree SEEK8_tree=null;\n CommonTree DIRECTION9_tree=null;\n CommonTree SEEK_BY10_tree=null;\n CommonTree INT11_tree=null;\n CommonTree DAY_OF_MONTH12_tree=null;\n CommonTree INT13_tree=null;\n CommonTree DAY_OF_MONTH14_tree=null;\n CommonTree SEEK15_tree=null;\n CommonTree DIRECTION16_tree=null;\n CommonTree SEEK_BY17_tree=null;\n CommonTree INT18_tree=null;\n CommonTree MONTH_OF_YEAR19_tree=null;\n CommonTree INT20_tree=null;\n CommonTree MONTH_OF_YEAR21_tree=null;\n CommonTree SEEK22_tree=null;\n CommonTree DIRECTION23_tree=null;\n CommonTree SEEK_BY24_tree=null;\n CommonTree INT25_tree=null;\n CommonTree MONTH_OF_YEAR26_tree=null;\n CommonTree INT27_tree=null;\n CommonTree MONTH_OF_YEAR28_tree=null;\n RewriteRuleNodeStream stream_DIRECTION=new RewriteRuleNodeStream(adaptor,\"token DIRECTION\");\n RewriteRuleNodeStream stream_SEEK_BY=new RewriteRuleNodeStream(adaptor,\"token SEEK_BY\");\n RewriteRuleNodeStream stream_DAY_OF_WEEK=new RewriteRuleNodeStream(adaptor,\"token DAY_OF_WEEK\");\n RewriteRuleNodeStream stream_INT=new RewriteRuleNodeStream(adaptor,\"token INT\");\n RewriteRuleNodeStream stream_MONTH_OF_YEAR=new RewriteRuleNodeStream(adaptor,\"token MONTH_OF_YEAR\");\n RewriteRuleNodeStream stream_DAY_OF_MONTH=new RewriteRuleNodeStream(adaptor,\"token DAY_OF_MONTH\");\n RewriteRuleNodeStream stream_SEEK=new RewriteRuleNodeStream(adaptor,\"token SEEK\");\n\n try {\n // com/hipu/date/generated/TreeRewrite.g:23:3: ( ^( SEEK DIRECTION SEEK_BY INT ^( DAY_OF_WEEK INT ) ^( DAY_OF_WEEK dow= INT ) ) -> ^( SEEK DIRECTION SEEK_BY INT ^( DAY_OF_WEEK $dow) ) | ^( SEEK DIRECTION SEEK_BY INT ^( DAY_OF_MONTH INT ) ^( DAY_OF_MONTH dow= INT ) ) -> ^( SEEK DIRECTION SEEK_BY INT ^( DAY_OF_MONTH $dow) ) | ^( SEEK DIRECTION SEEK_BY INT ^( MONTH_OF_YEAR INT ) ^( MONTH_OF_YEAR dow= INT ) ) -> ^( SEEK DIRECTION SEEK_BY INT ^( MONTH_OF_YEAR $dow) ) | ^( SEEK DIRECTION SEEK_BY INT ^( MONTH_OF_YEAR INT ) amount= INT ^( MONTH_OF_YEAR dow= INT ) ) -> ^( SEEK DIRECTION SEEK_BY $amount ^( MONTH_OF_YEAR $dow) ) )\n int alt1=4;\n alt1 = dfa1.predict(input);\n switch (alt1) {\n case 1 :\n // com/hipu/date/generated/TreeRewrite.g:23:5: ^( SEEK DIRECTION SEEK_BY INT ^( DAY_OF_WEEK INT ) ^( DAY_OF_WEEK dow= INT ) )\n {\n _last = (CommonTree)input.LT(1);\n {\n CommonTree _save_last_1 = _last;\n CommonTree _first_1 = null;\n _last = (CommonTree)input.LT(1);\n SEEK1=(CommonTree)match(input,SEEK,FOLLOW_SEEK_in_topdown60); if (state.failed) return retval; \n if ( state.backtracking==1 ) stream_SEEK.add(SEEK1);\n\n\n if ( state.backtracking==1 )\n if ( _first_0==null ) _first_0 = SEEK1;\n match(input, Token.DOWN, null); if (state.failed) return retval;\n _last = (CommonTree)input.LT(1);\n DIRECTION2=(CommonTree)match(input,DIRECTION,FOLLOW_DIRECTION_in_topdown62); if (state.failed) return retval; \n if ( state.backtracking==1 ) stream_DIRECTION.add(DIRECTION2);\n\n _last = (CommonTree)input.LT(1);\n SEEK_BY3=(CommonTree)match(input,SEEK_BY,FOLLOW_SEEK_BY_in_topdown64); if (state.failed) return retval; \n if ( state.backtracking==1 ) stream_SEEK_BY.add(SEEK_BY3);\n\n _last = (CommonTree)input.LT(1);\n INT4=(CommonTree)match(input,INT,FOLLOW_INT_in_topdown66); if (state.failed) return retval; \n if ( state.backtracking==1 ) stream_INT.add(INT4);\n\n _last = (CommonTree)input.LT(1);\n {\n CommonTree _save_last_2 = _last;\n CommonTree _first_2 = null;\n _last = (CommonTree)input.LT(1);\n DAY_OF_WEEK5=(CommonTree)match(input,DAY_OF_WEEK,FOLLOW_DAY_OF_WEEK_in_topdown69); if (state.failed) return retval; \n if ( state.backtracking==1 ) stream_DAY_OF_WEEK.add(DAY_OF_WEEK5);\n\n\n if ( state.backtracking==1 )\n if ( _first_1==null ) _first_1 = DAY_OF_WEEK5;\n match(input, Token.DOWN, null); if (state.failed) return retval;\n _last = (CommonTree)input.LT(1);\n INT6=(CommonTree)match(input,INT,FOLLOW_INT_in_topdown71); if (state.failed) return retval; \n if ( state.backtracking==1 ) stream_INT.add(INT6);\n\n\n match(input, Token.UP, null); if (state.failed) return retval;_last = _save_last_2;\n }\n\n _last = (CommonTree)input.LT(1);\n {\n CommonTree _save_last_2 = _last;\n CommonTree _first_2 = null;\n _last = (CommonTree)input.LT(1);\n DAY_OF_WEEK7=(CommonTree)match(input,DAY_OF_WEEK,FOLLOW_DAY_OF_WEEK_in_topdown75); if (state.failed) return retval; \n if ( state.backtracking==1 ) stream_DAY_OF_WEEK.add(DAY_OF_WEEK7);\n\n\n if ( state.backtracking==1 )\n if ( _first_1==null ) _first_1 = DAY_OF_WEEK7;\n match(input, Token.DOWN, null); if (state.failed) return retval;\n _last = (CommonTree)input.LT(1);\n dow=(CommonTree)match(input,INT,FOLLOW_INT_in_topdown79); if (state.failed) return retval; \n if ( state.backtracking==1 ) stream_INT.add(dow);\n\n\n match(input, Token.UP, null); if (state.failed) return retval;_last = _save_last_2;\n }\n\n\n match(input, Token.UP, null); if (state.failed) return retval;_last = _save_last_1;\n }\n\n\n\n // AST REWRITE\n // elements: INT, dow, SEEK_BY, DAY_OF_WEEK, SEEK, DIRECTION\n // token labels: dow\n // rule labels: retval\n // token list labels: \n // rule list labels: \n // wildcard labels: \n if ( state.backtracking==1 ) {\n retval.tree = root_0;\n RewriteRuleNodeStream stream_dow=new RewriteRuleNodeStream(adaptor,\"token dow\",dow);\n RewriteRuleSubtreeStream stream_retval=new RewriteRuleSubtreeStream(adaptor,\"rule retval\",retval!=null?retval.tree:null);\n\n root_0 = (CommonTree)adaptor.nil();\n // 24:7: -> ^( SEEK DIRECTION SEEK_BY INT ^( DAY_OF_WEEK $dow) )\n {\n // com/hipu/date/generated/TreeRewrite.g:24:10: ^( SEEK DIRECTION SEEK_BY INT ^( DAY_OF_WEEK $dow) )\n {\n CommonTree root_1 = (CommonTree)adaptor.nil();\n root_1 = (CommonTree)adaptor.becomeRoot(stream_SEEK.nextNode(), root_1);\n\n adaptor.addChild(root_1, stream_DIRECTION.nextNode());\n adaptor.addChild(root_1, stream_SEEK_BY.nextNode());\n adaptor.addChild(root_1, stream_INT.nextNode());\n // com/hipu/date/generated/TreeRewrite.g:24:39: ^( DAY_OF_WEEK $dow)\n {\n CommonTree root_2 = (CommonTree)adaptor.nil();\n root_2 = (CommonTree)adaptor.becomeRoot(stream_DAY_OF_WEEK.nextNode(), root_2);\n\n adaptor.addChild(root_2, stream_dow.nextNode());\n\n adaptor.addChild(root_1, root_2);\n }\n\n adaptor.addChild(root_0, root_1);\n }\n\n }\n\n retval.tree = (CommonTree)adaptor.rulePostProcessing(root_0);\n input.replaceChildren(adaptor.getParent(retval.start),\n adaptor.getChildIndex(retval.start),\n adaptor.getChildIndex(_last),\n retval.tree);}\n }\n break;\n case 2 :\n // com/hipu/date/generated/TreeRewrite.g:26:5: ^( SEEK DIRECTION SEEK_BY INT ^( DAY_OF_MONTH INT ) ^( DAY_OF_MONTH dow= INT ) )\n {\n _last = (CommonTree)input.LT(1);\n {\n CommonTree _save_last_1 = _last;\n CommonTree _first_1 = null;\n _last = (CommonTree)input.LT(1);\n SEEK8=(CommonTree)match(input,SEEK,FOLLOW_SEEK_in_topdown120); if (state.failed) return retval; \n if ( state.backtracking==1 ) stream_SEEK.add(SEEK8);\n\n\n if ( state.backtracking==1 )\n if ( _first_0==null ) _first_0 = SEEK8;\n match(input, Token.DOWN, null); if (state.failed) return retval;\n _last = (CommonTree)input.LT(1);\n DIRECTION9=(CommonTree)match(input,DIRECTION,FOLLOW_DIRECTION_in_topdown122); if (state.failed) return retval; \n if ( state.backtracking==1 ) stream_DIRECTION.add(DIRECTION9);\n\n _last = (CommonTree)input.LT(1);\n SEEK_BY10=(CommonTree)match(input,SEEK_BY,FOLLOW_SEEK_BY_in_topdown124); if (state.failed) return retval; \n if ( state.backtracking==1 ) stream_SEEK_BY.add(SEEK_BY10);\n\n _last = (CommonTree)input.LT(1);\n INT11=(CommonTree)match(input,INT,FOLLOW_INT_in_topdown126); if (state.failed) return retval; \n if ( state.backtracking==1 ) stream_INT.add(INT11);\n\n _last = (CommonTree)input.LT(1);\n {\n CommonTree _save_last_2 = _last;\n CommonTree _first_2 = null;\n _last = (CommonTree)input.LT(1);\n DAY_OF_MONTH12=(CommonTree)match(input,DAY_OF_MONTH,FOLLOW_DAY_OF_MONTH_in_topdown129); if (state.failed) return retval; \n if ( state.backtracking==1 ) stream_DAY_OF_MONTH.add(DAY_OF_MONTH12);\n\n\n if ( state.backtracking==1 )\n if ( _first_1==null ) _first_1 = DAY_OF_MONTH12;\n match(input, Token.DOWN, null); if (state.failed) return retval;\n _last = (CommonTree)input.LT(1);\n INT13=(CommonTree)match(input,INT,FOLLOW_INT_in_topdown131); if (state.failed) return retval; \n if ( state.backtracking==1 ) stream_INT.add(INT13);\n\n\n match(input, Token.UP, null); if (state.failed) return retval;_last = _save_last_2;\n }\n\n _last = (CommonTree)input.LT(1);\n {\n CommonTree _save_last_2 = _last;\n CommonTree _first_2 = null;\n _last = (CommonTree)input.LT(1);\n DAY_OF_MONTH14=(CommonTree)match(input,DAY_OF_MONTH,FOLLOW_DAY_OF_MONTH_in_topdown135); if (state.failed) return retval; \n if ( state.backtracking==1 ) stream_DAY_OF_MONTH.add(DAY_OF_MONTH14);\n\n\n if ( state.backtracking==1 )\n if ( _first_1==null ) _first_1 = DAY_OF_MONTH14;\n match(input, Token.DOWN, null); if (state.failed) return retval;\n _last = (CommonTree)input.LT(1);\n dow=(CommonTree)match(input,INT,FOLLOW_INT_in_topdown139); if (state.failed) return retval; \n if ( state.backtracking==1 ) stream_INT.add(dow);\n\n\n match(input, Token.UP, null); if (state.failed) return retval;_last = _save_last_2;\n }\n\n\n match(input, Token.UP, null); if (state.failed) return retval;_last = _save_last_1;\n }\n\n\n\n // AST REWRITE\n // elements: SEEK, INT, dow, DIRECTION, DAY_OF_MONTH, SEEK_BY\n // token labels: dow\n // rule labels: retval\n // token list labels: \n // rule list labels: \n // wildcard labels: \n if ( state.backtracking==1 ) {\n retval.tree = root_0;\n RewriteRuleNodeStream stream_dow=new RewriteRuleNodeStream(adaptor,\"token dow\",dow);\n RewriteRuleSubtreeStream stream_retval=new RewriteRuleSubtreeStream(adaptor,\"rule retval\",retval!=null?retval.tree:null);\n\n root_0 = (CommonTree)adaptor.nil();\n // 27:7: -> ^( SEEK DIRECTION SEEK_BY INT ^( DAY_OF_MONTH $dow) )\n {\n // com/hipu/date/generated/TreeRewrite.g:27:10: ^( SEEK DIRECTION SEEK_BY INT ^( DAY_OF_MONTH $dow) )\n {\n CommonTree root_1 = (CommonTree)adaptor.nil();\n root_1 = (CommonTree)adaptor.becomeRoot(stream_SEEK.nextNode(), root_1);\n\n adaptor.addChild(root_1, stream_DIRECTION.nextNode());\n adaptor.addChild(root_1, stream_SEEK_BY.nextNode());\n adaptor.addChild(root_1, stream_INT.nextNode());\n // com/hipu/date/generated/TreeRewrite.g:27:39: ^( DAY_OF_MONTH $dow)\n {\n CommonTree root_2 = (CommonTree)adaptor.nil();\n root_2 = (CommonTree)adaptor.becomeRoot(stream_DAY_OF_MONTH.nextNode(), root_2);\n\n adaptor.addChild(root_2, stream_dow.nextNode());\n\n adaptor.addChild(root_1, root_2);\n }\n\n adaptor.addChild(root_0, root_1);\n }\n\n }\n\n retval.tree = (CommonTree)adaptor.rulePostProcessing(root_0);\n input.replaceChildren(adaptor.getParent(retval.start),\n adaptor.getChildIndex(retval.start),\n adaptor.getChildIndex(_last),\n retval.tree);}\n }\n break;\n case 3 :\n // com/hipu/date/generated/TreeRewrite.g:29:5: ^( SEEK DIRECTION SEEK_BY INT ^( MONTH_OF_YEAR INT ) ^( MONTH_OF_YEAR dow= INT ) )\n {\n _last = (CommonTree)input.LT(1);\n {\n CommonTree _save_last_1 = _last;\n CommonTree _first_1 = null;\n _last = (CommonTree)input.LT(1);\n SEEK15=(CommonTree)match(input,SEEK,FOLLOW_SEEK_in_topdown180); if (state.failed) return retval; \n if ( state.backtracking==1 ) stream_SEEK.add(SEEK15);\n\n\n if ( state.backtracking==1 )\n if ( _first_0==null ) _first_0 = SEEK15;\n match(input, Token.DOWN, null); if (state.failed) return retval;\n _last = (CommonTree)input.LT(1);\n DIRECTION16=(CommonTree)match(input,DIRECTION,FOLLOW_DIRECTION_in_topdown182); if (state.failed) return retval; \n if ( state.backtracking==1 ) stream_DIRECTION.add(DIRECTION16);\n\n _last = (CommonTree)input.LT(1);\n SEEK_BY17=(CommonTree)match(input,SEEK_BY,FOLLOW_SEEK_BY_in_topdown184); if (state.failed) return retval; \n if ( state.backtracking==1 ) stream_SEEK_BY.add(SEEK_BY17);\n\n _last = (CommonTree)input.LT(1);\n INT18=(CommonTree)match(input,INT,FOLLOW_INT_in_topdown186); if (state.failed) return retval; \n if ( state.backtracking==1 ) stream_INT.add(INT18);\n\n _last = (CommonTree)input.LT(1);\n {\n CommonTree _save_last_2 = _last;\n CommonTree _first_2 = null;\n _last = (CommonTree)input.LT(1);\n MONTH_OF_YEAR19=(CommonTree)match(input,MONTH_OF_YEAR,FOLLOW_MONTH_OF_YEAR_in_topdown189); if (state.failed) return retval; \n if ( state.backtracking==1 ) stream_MONTH_OF_YEAR.add(MONTH_OF_YEAR19);\n\n\n if ( state.backtracking==1 )\n if ( _first_1==null ) _first_1 = MONTH_OF_YEAR19;\n match(input, Token.DOWN, null); if (state.failed) return retval;\n _last = (CommonTree)input.LT(1);\n INT20=(CommonTree)match(input,INT,FOLLOW_INT_in_topdown191); if (state.failed) return retval; \n if ( state.backtracking==1 ) stream_INT.add(INT20);\n\n\n match(input, Token.UP, null); if (state.failed) return retval;_last = _save_last_2;\n }\n\n _last = (CommonTree)input.LT(1);\n {\n CommonTree _save_last_2 = _last;\n CommonTree _first_2 = null;\n _last = (CommonTree)input.LT(1);\n MONTH_OF_YEAR21=(CommonTree)match(input,MONTH_OF_YEAR,FOLLOW_MONTH_OF_YEAR_in_topdown195); if (state.failed) return retval; \n if ( state.backtracking==1 ) stream_MONTH_OF_YEAR.add(MONTH_OF_YEAR21);\n\n\n if ( state.backtracking==1 )\n if ( _first_1==null ) _first_1 = MONTH_OF_YEAR21;\n match(input, Token.DOWN, null); if (state.failed) return retval;\n _last = (CommonTree)input.LT(1);\n dow=(CommonTree)match(input,INT,FOLLOW_INT_in_topdown199); if (state.failed) return retval; \n if ( state.backtracking==1 ) stream_INT.add(dow);\n\n\n match(input, Token.UP, null); if (state.failed) return retval;_last = _save_last_2;\n }\n\n\n match(input, Token.UP, null); if (state.failed) return retval;_last = _save_last_1;\n }\n\n\n\n // AST REWRITE\n // elements: MONTH_OF_YEAR, DIRECTION, dow, SEEK, INT, SEEK_BY\n // token labels: dow\n // rule labels: retval\n // token list labels: \n // rule list labels: \n // wildcard labels: \n if ( state.backtracking==1 ) {\n retval.tree = root_0;\n RewriteRuleNodeStream stream_dow=new RewriteRuleNodeStream(adaptor,\"token dow\",dow);\n RewriteRuleSubtreeStream stream_retval=new RewriteRuleSubtreeStream(adaptor,\"rule retval\",retval!=null?retval.tree:null);\n\n root_0 = (CommonTree)adaptor.nil();\n // 30:7: -> ^( SEEK DIRECTION SEEK_BY INT ^( MONTH_OF_YEAR $dow) )\n {\n // com/hipu/date/generated/TreeRewrite.g:30:10: ^( SEEK DIRECTION SEEK_BY INT ^( MONTH_OF_YEAR $dow) )\n {\n CommonTree root_1 = (CommonTree)adaptor.nil();\n root_1 = (CommonTree)adaptor.becomeRoot(stream_SEEK.nextNode(), root_1);\n\n adaptor.addChild(root_1, stream_DIRECTION.nextNode());\n adaptor.addChild(root_1, stream_SEEK_BY.nextNode());\n adaptor.addChild(root_1, stream_INT.nextNode());\n // com/hipu/date/generated/TreeRewrite.g:30:39: ^( MONTH_OF_YEAR $dow)\n {\n CommonTree root_2 = (CommonTree)adaptor.nil();\n root_2 = (CommonTree)adaptor.becomeRoot(stream_MONTH_OF_YEAR.nextNode(), root_2);\n\n adaptor.addChild(root_2, stream_dow.nextNode());\n\n adaptor.addChild(root_1, root_2);\n }\n\n adaptor.addChild(root_0, root_1);\n }\n\n }\n\n retval.tree = (CommonTree)adaptor.rulePostProcessing(root_0);\n input.replaceChildren(adaptor.getParent(retval.start),\n adaptor.getChildIndex(retval.start),\n adaptor.getChildIndex(_last),\n retval.tree);}\n }\n break;\n case 4 :\n // com/hipu/date/generated/TreeRewrite.g:32:5: ^( SEEK DIRECTION SEEK_BY INT ^( MONTH_OF_YEAR INT ) amount= INT ^( MONTH_OF_YEAR dow= INT ) )\n {\n _last = (CommonTree)input.LT(1);\n {\n CommonTree _save_last_1 = _last;\n CommonTree _first_1 = null;\n _last = (CommonTree)input.LT(1);\n SEEK22=(CommonTree)match(input,SEEK,FOLLOW_SEEK_in_topdown240); if (state.failed) return retval; \n if ( state.backtracking==1 ) stream_SEEK.add(SEEK22);\n\n\n if ( state.backtracking==1 )\n if ( _first_0==null ) _first_0 = SEEK22;\n match(input, Token.DOWN, null); if (state.failed) return retval;\n _last = (CommonTree)input.LT(1);\n DIRECTION23=(CommonTree)match(input,DIRECTION,FOLLOW_DIRECTION_in_topdown242); if (state.failed) return retval; \n if ( state.backtracking==1 ) stream_DIRECTION.add(DIRECTION23);\n\n _last = (CommonTree)input.LT(1);\n SEEK_BY24=(CommonTree)match(input,SEEK_BY,FOLLOW_SEEK_BY_in_topdown244); if (state.failed) return retval; \n if ( state.backtracking==1 ) stream_SEEK_BY.add(SEEK_BY24);\n\n _last = (CommonTree)input.LT(1);\n INT25=(CommonTree)match(input,INT,FOLLOW_INT_in_topdown246); if (state.failed) return retval; \n if ( state.backtracking==1 ) stream_INT.add(INT25);\n\n _last = (CommonTree)input.LT(1);\n {\n CommonTree _save_last_2 = _last;\n CommonTree _first_2 = null;\n _last = (CommonTree)input.LT(1);\n MONTH_OF_YEAR26=(CommonTree)match(input,MONTH_OF_YEAR,FOLLOW_MONTH_OF_YEAR_in_topdown249); if (state.failed) return retval; \n if ( state.backtracking==1 ) stream_MONTH_OF_YEAR.add(MONTH_OF_YEAR26);\n\n\n if ( state.backtracking==1 )\n if ( _first_1==null ) _first_1 = MONTH_OF_YEAR26;\n match(input, Token.DOWN, null); if (state.failed) return retval;\n _last = (CommonTree)input.LT(1);\n INT27=(CommonTree)match(input,INT,FOLLOW_INT_in_topdown251); if (state.failed) return retval; \n if ( state.backtracking==1 ) stream_INT.add(INT27);\n\n\n match(input, Token.UP, null); if (state.failed) return retval;_last = _save_last_2;\n }\n\n _last = (CommonTree)input.LT(1);\n amount=(CommonTree)match(input,INT,FOLLOW_INT_in_topdown256); if (state.failed) return retval; \n if ( state.backtracking==1 ) stream_INT.add(amount);\n\n _last = (CommonTree)input.LT(1);\n {\n CommonTree _save_last_2 = _last;\n CommonTree _first_2 = null;\n _last = (CommonTree)input.LT(1);\n MONTH_OF_YEAR28=(CommonTree)match(input,MONTH_OF_YEAR,FOLLOW_MONTH_OF_YEAR_in_topdown259); if (state.failed) return retval; \n if ( state.backtracking==1 ) stream_MONTH_OF_YEAR.add(MONTH_OF_YEAR28);\n\n\n if ( state.backtracking==1 )\n if ( _first_1==null ) _first_1 = MONTH_OF_YEAR28;\n match(input, Token.DOWN, null); if (state.failed) return retval;\n _last = (CommonTree)input.LT(1);\n dow=(CommonTree)match(input,INT,FOLLOW_INT_in_topdown263); if (state.failed) return retval; \n if ( state.backtracking==1 ) stream_INT.add(dow);\n\n\n match(input, Token.UP, null); if (state.failed) return retval;_last = _save_last_2;\n }\n\n\n match(input, Token.UP, null); if (state.failed) return retval;_last = _save_last_1;\n }\n\n\n\n // AST REWRITE\n // elements: MONTH_OF_YEAR, amount, SEEK, SEEK_BY, dow, DIRECTION\n // token labels: amount, dow\n // rule labels: retval\n // token list labels: \n // rule list labels: \n // wildcard labels: \n if ( state.backtracking==1 ) {\n retval.tree = root_0;\n RewriteRuleNodeStream stream_amount=new RewriteRuleNodeStream(adaptor,\"token amount\",amount);\n RewriteRuleNodeStream stream_dow=new RewriteRuleNodeStream(adaptor,\"token dow\",dow);\n RewriteRuleSubtreeStream stream_retval=new RewriteRuleSubtreeStream(adaptor,\"rule retval\",retval!=null?retval.tree:null);\n\n root_0 = (CommonTree)adaptor.nil();\n // 33:7: -> ^( SEEK DIRECTION SEEK_BY $amount ^( MONTH_OF_YEAR $dow) )\n {\n // com/hipu/date/generated/TreeRewrite.g:33:10: ^( SEEK DIRECTION SEEK_BY $amount ^( MONTH_OF_YEAR $dow) )\n {\n CommonTree root_1 = (CommonTree)adaptor.nil();\n root_1 = (CommonTree)adaptor.becomeRoot(stream_SEEK.nextNode(), root_1);\n\n adaptor.addChild(root_1, stream_DIRECTION.nextNode());\n adaptor.addChild(root_1, stream_SEEK_BY.nextNode());\n adaptor.addChild(root_1, stream_amount.nextNode());\n // com/hipu/date/generated/TreeRewrite.g:33:43: ^( MONTH_OF_YEAR $dow)\n {\n CommonTree root_2 = (CommonTree)adaptor.nil();\n root_2 = (CommonTree)adaptor.becomeRoot(stream_MONTH_OF_YEAR.nextNode(), root_2);\n\n adaptor.addChild(root_2, stream_dow.nextNode());\n\n adaptor.addChild(root_1, root_2);\n }\n\n adaptor.addChild(root_0, root_1);\n }\n\n }\n\n retval.tree = (CommonTree)adaptor.rulePostProcessing(root_0);\n input.replaceChildren(adaptor.getParent(retval.start),\n adaptor.getChildIndex(retval.start),\n adaptor.getChildIndex(_last),\n retval.tree);}\n }\n break;\n\n }\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n }\n return retval;\n }", "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 }", "int top();", "public int top() { return 0; }", "static int downToZero(Node root) {\n /*\n * Write your code here.\n */\n Queue<Node> queue = new PriorityQueue<>();\n queue.add(root);\n int min = 100001;\n while (!queue.isEmpty()){\n Node current = queue.poll();\n if(current.value <= 4){\n if (current.value == 4){\n min = current.depth + 3;\n return min;\n }\n min = current.depth+current.value;\n return min;\n }\n Node toAdd1 = new Node(current.value-1, current.depth+1);\n queue.add(toAdd1);\n for(int i = 2; i<=Math.sqrt(current.value); i++){\n if(current.value%i==0){\n Node toAdd = new Node(current.value/i, current.depth+1);\n queue.add(toAdd);\n }\n }\n }\n return min;\n }", "public int top();", "public int numWaysTopDown(int n, int k) {\n Integer[] mem = new Integer[n + 1]; // memoized table\n return paint(n, k, mem); // call recursive helper\n }", "public void puke(){\r\n top = null;\r\n size = 0;\r\n \r\n }", "private void BreakDown(int towerFrom, int towerTo, int bottomSize) {\n\n\t\tint notTowerTo = getOtherTower(towerFrom,towerTo);\n\n\t\twhile(towerSet.TopBlock(towerFrom) <= bottomSize) {\n\t\t\tint isOddBlock = (bottomSize - towerSet.TopBlock(towerFrom))%2;\n\t\t\tif(isOddBlock==1) {\n\t\t\t\tif(towerSet.TopBlock(towerFrom) < towerSet.TopBlock(notTowerTo)) {\n\t\t\t\t\ttowerSet.MoveBlock(towerFrom,notTowerTo);\n\t\t\t\t\tturnNumber++;\n\t\t\t\t\tSystem.out.println(this.toString());\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tthis.BuildUp(towerTo, towerFrom, towerSet.TopBlock(towerFrom)-1);\n\t\t\t\t}\n\t\t\t}\n\t\t\telse {\n\t\t\t\tif(towerSet.TopBlock(towerFrom) < towerSet.TopBlock(towerTo)) {\n\t\t\t\t\ttowerSet.MoveBlock(towerFrom,towerTo);\n\t\t\t\t\tturnNumber++;\n\t\t\t\t\tSystem.out.println(this.toString());\n\t\t\t\t}\t\n\t\t\t\telse {\n\t\t\t\t\tthis.BuildUp(notTowerTo, towerFrom, towerSet.TopBlock(towerFrom)-1);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "public static void scrollDown() {\n WebElement bottomButton = Browser.driver.findElement(CHANGE_CURRENCY_BOTTOM_BUTTON);\n JavascriptExecutor jse = (JavascriptExecutor)Browser.driver;\n jse.executeScript(\"arguments[0].scrollIntoView(true)\", bottomButton);\n }", "private int recursiveTopDown(int[] price, int n) {\n if( n== 0) return 0;\n int ans = Integer.MIN_VALUE;\n\n for (int i = 0; i < n; i++) {\n ans = Math.max(ans, price[i] + recursiveTopDown(price, n - 1 - i));\n }\n return ans;\n }", "void percolateDown(int index) {\n T x = (T) pq[index];\n int c = (2*index)+1;\n while(c<=size-1) {\n if((c<size-1) && (pq[c].compareTo(pq[c+1])==1))\n c++;\n if(pq[c].compareTo(x)>0)\n break;\n pq[index] = pq[c];\n index = c;\n c = (2*index)+1;\n pq[index]=x;\n }\n }", "public void studentTopUp(int amount)\n {\n if (currentPhone == null)\n return;\n\n currentPhone.phoneTopUp(amount);\n }", "public void goDown() {\n if(page.down == null)\n {\n if(editText.getText().toString().equals(\"\")) {\n return;\n }\n page.addRelation(\"down\",editText.getText().toString());\n editText.setText(\"\");\n }\n\n page = page.down;\n addQueue();\n }", "public void movebypixelsupdown(View view)\n {\n ImageView iv1=findViewById(R.id.iv1);\n iv1.animate().translationYBy(1000f).setDuration(2000);//down\n\n //to move up give negative value\n }", "public void Down3(){\r\n if(Hy2>0 && Hy2<900){\r\n \r\n Hy2+=3;\r\n }\r\n }", "static void topView( Node root) \n{ \n\t// Base case \n\tif (root == null) { \n\t\treturn; \n\t} \n\n\t// Take a temporary node \n\tNode temp = null; \n\n\t// Queue to do BFS \n\tQueue<Pair > q = new LinkedList<Pair>(); \n\n\t// map to store node at each vartical distance \n\tMap<Integer, Integer> mp = new TreeMap<Integer, Integer>(); \n\n\tq.add(new Pair( root, 0 )); \n\n\t// BFS \n\twhile (q.size()>0) { \n\n\t\ttemp = q.peek().first; \n\t\tint d = q.peek().second; \n\t\tq.remove(); \n\n\t\t// If any node is not at that vertical distance \n\t\t// just insert that node in map and print it \n\t\tif (mp.get(d) == null) {mp.put(d, temp.data); \n\t\t} \n\n\t\t// Continue for left node \n\t\tif (temp.left!=null) { \n\t\t\tq.add(new Pair( temp.left, d - 1 )); \n\t\t} \n\n\t\t// Continue for right node \n\t\tif (temp.right!=null) { \n\t\t\tq.add(new Pair( temp.right, d + 1 )); \n\t\t} \n\t} \n\tfor(Integer data:mp.values()){ \n\tSystem.out.print( data + \" \"); \n\t} \n}", "public void shiftDown() {\n\t\tif (prev == null) {\n\t\t\tthrow new IllegalStateException(\"Cannot shift \" + this + \" down because it is already at the bottom\");\n\t\t}\n\t\tDependencyElement p = prev;\n\t\tDependencyElement pp = prev.prev;\n\t\tif (pp != null) {\n\t\t\tpp.next = this;\n\t\t\tprev = pp;\n\t\t}\n\t\telse {\n\t\t\tprev = null;\n\t\t}\n\t\tp.prev = this;\n\t\tp.next = next;\n\t\tnext = p;\n\t}", "@Override\n void slowDown() {\n if (this.speed>0){\n this.speed=this.speed-1;\n }\n }", "private static void pushDown(int[]data, int size, int index){\n boolean leftinbounds = 2*index + 1 < size;\n boolean rightinbounds = 2*index + 2 < size;\n int temp = data[index];\n if ((leftinbounds&&data[index]<data[2*index + 1]) || (rightinbounds && data[index]<data[2*index + 2])){\n if (leftinbounds && rightinbounds && data[index]<data[2*index + 1] && data[index]<data[2*index + 2]){\n if (data[2*index + 1]>data[2*index + 2]){\n data[index] = data[2*index + 1];\n data[2*index + 1] = temp;\n index = 2*index + 1;\n }\n else{\n data[index] = data[2*index + 2];\n data[2*index + 2] = temp;\n index = 2*index + 2;\n }\n }\n else if (leftinbounds && data[index]<data[2*index + 1]){\n data[index] = data[2*index + 1];\n data[2*index + 1] = temp;\n index = 2*index + 1;\n }\n else if(rightinbounds && data[index]<data[2*index + 2]){\n data[index] = data[2*index + 2];\n data[2*index + 2] = temp;\n index = 2*index + 2;\n }\n pushDown(data, size, index);\n }\n }", "public static void chop() {\n RSObject[] tree = Objects.findNearest(7, Yew); //finds the nearest Yew in which we had earlier set the ID of\n if (tree.length > 0)\n if (tree[0].isOnScreen()) { //if tree is on the screen it will move onto clickObject which will be called from the rMouse class.\t\t\t \n\t\t\t Mouse.setSpeed(rMouse.mouseSpeed);\n\t\t\t\trMouse.clickObject(7, \"Yew\", \"Chop down\"); //finds/clicks the an interactive object with the name Yew\n\t\t\t\t\tGeneral.sleep(1500 + rand1);\n\n }else{\n\t\t\t Mouse.setSpeed(rMouse.mouseSpeed);\n Walking.walkTo(tree[0].getPosition());\n while (Player.isMoving())\n General.sleep(800 + rand1);\n }\n\t\t\n }", "protected void siftDown() {\r\n\t\tint parent = 0, child = (parent << 1) + 1;// preguntar porque 0 y no 1\r\n\t\t\r\n\t\twhile (child < theHeap.size()) {\r\n\t\t\tif (child < theHeap.size() - 1\r\n\t\t\t\t\t&& compare(theHeap.get(child), theHeap.get(child + 1)) > 0)\r\n\t\t\t\tchild++; // child is the right child (child = (2 * parent) + 2)\r\n\t\t\tif (compare(theHeap.get(child), theHeap.get(parent)) >= 0)\r\n\t\t\t\tbreak;\r\n\t\t\tswap(parent, child);\r\n\t\t\tparent = child;\r\n\t\t\tchild = (parent << 1) + 1; // => child = (2 * parent) + 1\r\n\t\t}\r\n\t}", "public int top() {\n \tint x = 0;\n if(q1.isEmpty()){\n \t\n while(!q2.isEmpty()){\n x=q2.deq();\n System.out.println(\" q2 top = \"+x);\n\n q1.enq(x);\n }\n \n return x;\n }\n else{\n while(!q1.isEmpty())\n {\n x = q1.deq();\n System.out.println(\" q1 top = \"+x);\n q2.enq(x);\n }\n \n return x;\n }\n }", "public void tailUp () {\r\n\t\ttail_mode = false;\r\n\t\tsuper.tailUp();\r\n\t}", "private void TopView(NodeTopView root) { \n\t\t\tclass QueueObj { \n\t\t\t\tNodeTopView NodeTopView; \n\t\t\t\tint hd; \n\n\t\t\t\tQueueObj(NodeTopView NodeTopView, int hd) { \n\t\t\t\t\tthis.NodeTopView = NodeTopView; \n\t\t\t\t\tthis.hd = hd; \n\t\t\t\t} \n\t\t\t} \n\t\t\tQueue<QueueObj> q = new LinkedList<QueueObj>(); \n\t\t\tMap<Integer, NodeTopView> topViewMap = new TreeMap<Integer, NodeTopView>(); \n\n\t\t\tif (root == null) { \n\t\t\t\treturn; \n\t\t\t} else { \n\t\t\t\tq.add(new QueueObj(root, 0)); \n\t\t\t} \n\n\t\t\tSystem.out.println(\"The top view of the tree is : \"); \n\t\t\t\n\t\t\t// count function returns 1 if the container \n\t\t\t// contains an element whose key is equivalent \n\t\t\t// to hd, or returns zero otherwise. \n\t\t\twhile (!q.isEmpty()) { \n\t\t\t\tQueueObj tmpNodeTopView = q.poll(); \n\t\t\t\tif (!topViewMap.containsKey(tmpNodeTopView.hd)) { \n\t\t\t\t\ttopViewMap.put(tmpNodeTopView.hd, tmpNodeTopView.NodeTopView); \n\t\t\t\t} \n\n\t\t\t\tif (tmpNodeTopView.NodeTopView.left != null) { \n\t\t\t\t\tq.add(new QueueObj(tmpNodeTopView.NodeTopView.left, tmpNodeTopView.hd - 1)); \n\t\t\t\t} \n\t\t\t\tif (tmpNodeTopView.NodeTopView.right != null) { \n\t\t\t\t\tq.add(new QueueObj(tmpNodeTopView.NodeTopView.right, tmpNodeTopView.hd + 1)); \n\t\t\t\t} \n\n\t\t\t} \n\t\t\tfor (Entry<Integer, NodeTopView> entry : topViewMap.entrySet()) { \n\t\t\t\tSystem.out.print(entry.getValue().data + \" \"); \n\t\t\t} \n\t\t}", "public void moveDown() {\n btMoveDown().push();\n }", "public void moveDown() {\n btMoveDown().push();\n }", "public void onTopUp();", "public void tailDown () {\r\n\t\ttail_mode = true;\r\n\t\tsuper.tailDown();\r\n\t}", "public void scrollPageDown(){\r\n \r\n if (driver instanceof JavascriptExecutor) \r\n ((JavascriptExecutor) driver).executeScript(\"window.scrollTo(0,6000)\");\r\n }", "public void intake(double up_speed, double down_speed) //上面&下面的intake\n {\n intake_up.set(ControlMode.PercentOutput, up_speed);\n intake_down.set(ControlMode.PercentOutput, down_speed);\n }", "public void goDown();", "public static void swipeTopToBottom(int value, AndroidDriver driver, double starty1, double endy1)\n\t\t\tthrows Exception {\n\t\ttry {\n\t\t\tThread.sleep(1000);\n\n\t\t\tSystem.out.println(\"inside swipe\");\n\t\t\tfor (int i = 1; i <= value; i++) {\n\t\t\t\tDimension dSize = driver.manage().window().getSize();\n\t\t\t\tint starty = (int) (dSize.height * starty1);\n\t\t\t\tint endy = (int) (dSize.height * endy1);\n\t\t\t\tint startx = dSize.width / 2;\n\t\t\t\tdriver.swipe(startx, starty, startx, endy, 1000);\n\t\t\t}\n\t\t} catch (Exception e) {\n\n\t\t\tMyExtentListners.test.addScreenCaptureFromPath(capture(driver, \"SwipeDown\"));\n\t\t\tthrow e;\n\t\t}\n\t}", "protected void takeDown(){\n\n\t}", "protected void takeDown(){\n\n\t}", "public void frontDown(){\n frontSolenoid.set(DoubleSolenoid.Value.kReverse);\n }", "@Override\r\n\tpublic int ToggleDown() {\n\t\treturn 0;\r\n\t}", "public void backDown(){\n backSolenoid.set(DoubleSolenoid.Value.kReverse);\n }", "public E popTop() {\n // FILL IN\n }", "public void scrollDown() {\n JavaScriptExecutor javaScriptExecutor = new JavaScriptExecutor();\n Long value = (Long) javaScriptExecutor.executeScript(\"return window.pageYOffset;\");\n javaScriptExecutor.executeScript(\"scroll(0, \" + (value + 1000) + \");\");\n }", "public void movePageDown(){\n mEventHandler.onScroll(null, null, 0, getHeight());\n mACPanel.hide();\n }", "public Card drawCardFromTop() {\n Card temp = this.cards [this.topCardIndex];\n this.topCardIndex++;\n return temp;\n }", "public static void swipeBottomToTop(int value, AndroidDriver driver, double starty1, double endy1)\n\t\t\tthrows Exception {\n\t\ttry {\n\t\t\tThread.sleep(1000);\n\t\t\tSystem.out.println(\"inside swipe\");\n\t\t\tfor (int i = 1; i <= value; i++) {\n\t\t\t\tDimension dSize = driver.manage().window().getSize();\n\t\t\t\tint starty = (int) (dSize.height * starty1);\n\t\t\t\tint endy = (int) (dSize.height * endy1);\n\t\t\t\tint startx = dSize.width / 2;\n\t\t\t\tdriver.swipe(startx, starty, startx, endy, 1000);\n\t\t\t}\n\t\t} catch (Exception e) {\n\n\t\t\tMyExtentListners.test.addScreenCaptureFromPath(capture(driver, \"SwipeUp\"));\n\t\t\tthrow e;\n\t\t}\n\t}", "void removeTop()\n {\n \tif(first!=null)\t\t\t\n \t{\n \t\tfirst=first.next;\n \t\tif(first!=null)\n \t\t\tfirst.prev=null;\n \t}\n }", "public void scrollDown() {\n try {\n Robot robot = new Robot();\n robot.keyPress(KeyEvent.VK_PAGE_DOWN);\n robot.keyRelease(KeyEvent.VK_PAGE_DOWN);\n } catch(Exception e) {\n // do nothing\n }\n\n }", "public void up() {dy = -SPEED;}", "public void moveDown() {\n\t\t\n\t}", "public boolean goAllUp() {\n\t\tif ( topLimitSwitch.get() ) {\n\t\t\tstop();\n\t\t}\n\t\telse {\n\t\t\tup();\n\t\t}\n\t\t\n\t\treturn topLimitSwitch.get();\n\t}", "public Squarelotron upsideDownFlip(int ring);", "public static void s1DescendingTest() {\n int key = 903836722;\n SortingLab<Integer> sli = new SortingLab<Integer>(key);\n int M = 600000;\n int N = 1000;\n double start;\n double elapsedTime;\n System.out.print(\"Sort 1 Descending\\n\");\n for (; N < M; N *= 2) {\n Integer[] ai = getRandomArray(N, Integer.MAX_VALUE);\n Arrays.sort(ai);\n Integer[] bi = new Integer[ai.length];\n int count = 0;\n for (int i = ai.length - 1; i >= 0; i--) {\n bi[count] = ai[i];\n count++;\n }\n start = System.nanoTime();\n sli.sort1(bi);\n elapsedTime = (System.nanoTime() - start) / 1_000_000_000d;\n System.out.print(N + \"\\t\");\n System.out.printf(\"%4.3f\\n\", elapsedTime);\n }\n }", "private int adjust(int val) {\r\n if(sortDescending == false) return val;\r\n return 0 - val;\r\n }", "private int calculateFibonacciUsingTopDownMemorization(int n) {\n int[] memory = new int[n+1];\n if (n < 2) {\n return n;\n }\n if(memory[n] != 0){\n return memory[n];\n }\n memory[n] = calculateFibonacciUsingTopDownMemorization(memory, n - 1) + calculateFibonacciUsingTopDownMemorization(memory, n - 2);\n return memory[n];\n\n }", "public void downFocusCycle(Container paramContainer)\n/* */ {\n/* 1415 */ if ((paramContainer != null) && (paramContainer.isFocusCycleRoot())) {\n/* 1416 */ paramContainer.transferFocusDownCycle();\n/* */ }\n/* */ }", "@Override\r\n\tpublic int ToggleUp() {\n\t\treturn 0;\r\n\t}", "public static int bottomUp(int n) {\r\n\t\tint tab[] = new int[n + 1];\r\n\t\ttab[0] = 0;\r\n\t\ttab[1] = 1;\r\n\t\tfor (int i = 2; i <= n; i++) {\r\n\t\t\ttab[i] = tab[i - 1] + tab[i - 2];\r\n\t\t}\r\n\t\treturn tab[n];\r\n\t}", "public void setTop() {\n reset(State.TOP);\n }", "public TopCommand(DTM dtm) {\n\tthis.dtm = dtm;\n\n\t// Every 2 minutes, get all data from mysql and sort again\n\t// for (int i = 0; i < dtm.getSeason(); i++) {\n\t// Bukkit.getScheduler().runTaskTimerAsynchronously(dtm, () -> {\n\t// topListCache = dtm.getDataHandler().getLeaderboard(100, dtm.getSeason());\n\t// }, 0, 20 * 120);\n\t// }\n\n }", "public void goUp();", "void moveDown();", "void moveDown();", "public Runnable popTop() {\n int[] stamp = new int[1];\n int oldTop = top.get(stamp), newTop = oldTop + 1;\n int oldStamp = stamp[0], newStamp = oldStamp + 1;\n if (bottom <= oldTop) // empty\n return null;\n Runnable r = tasks[oldTop];\n if (top.compareAndSet(oldTop, newTop, oldStamp, newStamp))\n return r;\n return null;\n }", "public void moveDown() {\n\t\tstate.updateFloor(state.getFloor()-1);\n\t}", "void top() {\n startAnimation(topSubCubes(), Axis.Y, Direction.CLOCKWISE);\n topCubeSwap();\n }", "public int top() {\n int size = q.size();\n for(int i = 1; i<size;i++){\n q.offer(q.poll());\n }\n int value = q.peek();\n q.offer(q.poll());\n \n return value;\n }", "public void moveDown()\n {\n if (!this.search_zone.isDownBorder(this.y_position))\n {\n this.y_position = (this.y_position + 1);\n }\n }", "public void bottomViewSorted()\r\n\t{\r\n\t\tint hd = 0;\r\n\t\tTreeMap<Integer, Node> map = new TreeMap<>();\r\n\t\tif(root == null)\r\n\t\t\treturn;\r\n\t\tQueue<Node> que = new LinkedList<>();\r\n\t\troot.hd=hd;\r\n\t\tNode node;\r\n\t\tque.add(root);\r\n\t\t\r\n\t\twhile(que.size() != 0)\r\n\t\t{\r\n\t\t\tnode = que.poll();\r\n\t\t\thd = node.hd;\r\n\t\t\tmap.put(hd, node);\r\n\t\t\tif(node.left != null)\r\n\t\t\t{\r\n\t\t\t\tnode.left.hd = hd - 1;\r\n\t\t\t\tque.add(node.left);\r\n\t\t\t}\r\n\t\t\tif(node.right != null)\r\n\t\t\t{\t\r\n\t\t\t\tnode.right.hd = hd + 1;\r\n\t\t\t\tque.add(node.right);\r\n\t\t\t}\t\r\n\t\t}\r\n\t\tSet<Integer> keys = map.keySet();\r\n\r\n\t\tfor(Integer i : keys)\r\n\t\t{\r\n\t\t\tSystem.out.println(\"Key: \" +i+ \" & Value: \" +map.get(i).data);\r\n\t\t}\r\n\t}", "public void moveDown()\n\t{\n\t\ty = y + STEP_SIZE;\n\t}", "public static int topDownApproach(int n, int table[]) {\r\n\t\tif (n < 2)\r\n\t\t\treturn n;\r\n\t\tif (table[n] != 0) {\r\n\t\t\treturn table[n];\r\n\t\t} else {\r\n\t\t\ttable[n] = topDownApproach(n - 1, table)\r\n\t\t\t\t\t+ topDownApproach(n - 2, table);\r\n\t\t}\r\n\r\n\t\treturn table[n];\r\n\t}", "public int getTopSpeed() {\n return topSpeed;\n }", "private void doubleDemoteright (WAVLNode z) {\n\t z.rank--;\r\n\t z.left.rank--;\r\n }", "@NonNull\n public Builder setTop(@NonNull DpProp top) {\n if (top.getDynamicValue() != null) {\n throw new IllegalArgumentException(\"setTop doesn't support dynamic values.\");\n }\n mImpl.setTop(top.toProto());\n mFingerprint.recordPropertyUpdate(\n 3, checkNotNull(top.getFingerprint()).aggregateValueAsInt());\n return this;\n }", "private void fillListUp(int topEdge, final int offset) {\n while (topEdge + offset > 0 && mFirstItemPosition > 0) {\n mFirstItemPosition--;\n final View newTopCild = mAdapter.getView(mFirstItemPosition, getCachedView(), this);\n addAndMeasureChild(newTopCild, LAYOUT_MODE_ABOVE);\n final int childHeight = getChildHeight(newTopCild);\n topEdge -= childHeight;\n\n // update the list offset (since we added a view at the top)\n mListTopOffset -= childHeight;\n }\n }", "public int top() {\r\n return top;\r\n }", "public int top() {\r\n return top;\r\n }", "public T getTop( );", "void upDateKeys(PlayerCameraNode player, double tpf) {\n }", "void flipUp( ) {\n\t\t\t\t\t\tUpCommand . execute ( ) ;\n\n\n\t\t}", "private void packupandslowdown() {\n\t\tif (symbel_int == 1) {\r\n\t\t\tLog.d(\"play_menu\", \"play_menu\");\r\n\t\t\ttran_sur.setVisibility(View.VISIBLE);\r\n\t\t\tplay_menu_arrow1.setImageResource(R.drawable.arrow_up);\r\n\t\t\tsymbel_int = symbel_int * -1;\r\n\t\t\tpackup();\r\n\t\t} else if (symbel_int == -1) {\r\n\t\t\tLog.d(\"play_menu\", \"play_menu\");\r\n\t\t\ttran_sur.setVisibility(View.GONE);\r\n\t\t\tplay_menu_arrow1.setImageResource(R.drawable.arrow_down);\r\n\t\t\tslowdown();\r\n\t\t\tsymbel_int = symbel_int * -1;\r\n\t\t}\r\n\t}", "public static void main(String[] args) {\n\t\tint [] houses= {6,7,1,30,8,2,4};\n\t\tint val=topDown(houses, 0);\n\t\tSystem.out.println(\"Maximum stolen: \"+val);\n\t\tarr=null;\n\t\tint [] houses1= {20,5,1,13,6,11,40};\n\t\tval=topDown(houses1, 0);\n\t\tSystem.out.println(\"Maximum stolen: \"+val);\n\t\tarr=null;\n\t\t\n\t\tval=botUp(houses, 0);\n\t\tSystem.out.println(\"Maximum stolen: \"+val);\n\t\tarr=null;\n\t\tval=botUp(houses1, 0);\n\t\tSystem.out.println(\"Maximum stolen: \"+val);\n\t\tarr=null;\n\t}", "public void setTop(Integer top) {\n this.top = top;\n }", "public static void main(String[] args) {\n\t\t// TODO Auto-generated method stub\n\n\t\tScanner scanner = new Scanner(System.in);\n\t\tint number = scanner.nextInt();\n\t\tint down = 0;\n\t\tint sub = number;\n\t\tint i = 1;\n\t\tint up = 0;\n\t\t\n\t\twhile( true ) {\n\t\t\tsub -= i;\n\t\t\tif(sub<0) {\n\t\t\t\tdown = i ;\n\t\t\t\tbreak;\n\t\t\t} else if(sub==0) {\n\t\t\t\tdown = i ;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\ti++;\n\t\t}\n\t\t\n\t\tSystem.out.print(down+\" \");\n\t\t\n\t\tsub = number;\n\t\twhile( true ) {\n\t\t\tsub -= down;\n\t\t\tif(sub<=0) {\n\t\t\t\tup = sub + down;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tdown -- ;\n\t\t}\n\t\t\n\t\tSystem.out.print(up);\n\t}", "public static void testRoundDown(){\n\t Picture wall = new Picture(\"wall.jpg\");\n\t wall.explore();\n\t wall.roundDownToMultOf8();\n\t wall.explore();\n }", "public void goUp()\r\n\t{\r\n\t\tthis.Y--;\r\n\t}", "public int upright();", "public void past(int back);", "void percolateDown(int index) {\n int l = leftChild(index);\n int r = rightChild(index);\n int smallest = index;\n if (l < size && compare(pq[l], pq[index]) == -1) {\n smallest = l;\n }\n if (r < size && compare(pq[r], pq[smallest]) == -1) {\n smallest = r;\n }\n if (index != smallest) {\n Comparable temp = pq[smallest];\n pq[smallest] = pq[index];\n pq[index] = temp;\n percolateDown(smallest);\n }\n }", "void moveDown(double speed, double destination)\n {\n this.destination = shaftHeight-(destination*floorHeight);\n if(speed == 1.75) speed = 1.25;\n else if(speed == 0.875) speed = 0.6;\n\n elevatorOffset = 1*speed;\n motorTimeline.play();\n }", "public void goDown()\r\n\t{\r\n\t\tthis.Y++;\r\n\t}", "private static int dialGreedy(ArrayList<Pair<Pair <Integer, Integer>,Integer>> wts, int money){\n int prevEdgeIndex = -1;\n int noDials = 10;\n int [][] dialArr = new int[money+1][noDials];\n BooleanHolder flip = new BooleanHolder(false);\n return greedyDialMax(wts, money,prevEdgeIndex,dialArr, flip);\n }", "public void setUpDownTimer(float upDownTimer) {\n this.upDownTimer = upDownTimer;\n }", "public void compactDown() {\n\t// Iteramos a través del tablero partiendo de la primera fila\n\t// y última columna. Si esta contiene un 0 y la fila anterior\n\t// de la misma columna es distinta de 0, el valor se intercambia.\n\t// El proceso se repite hasta que todas las posiciones susceptibles\n\t// al cambio se hayan comprobado.\n\tfor (int i = 0; i < board.length; i++) {\n\t for (int j = board.length - 1; j > 0; j--) {\n\t\tif (board[j][i] == EMPTY && board[j - 1][i] != EMPTY) {\n\t\t board[j][i] = board[j - 1][i];\n\t\t board[j - 1][i] = EMPTY;\n\t\t compactDown();\n\t\t}\n\t }\n\t}\n }", "public void TowerOfHanoi(int diskSize, LinkedList<Integer> src, LinkedList<Integer> dst, LinkedList<Integer> aux){\n numOfDisks = diskSize;\n // even number of disks\n System.out.printf(\"Pegs at start \\n\");\n printStacks(4,src,dst,aux);\n if(numOfDisks % 2 == 0){\n do{\n if( src.peek() != null && (dst.peek() == null || dst.peek().compareTo(src.peek()) > 0) )\n dst.push(src.pop());\n else if(dst.peek() != null && (src.peek() == null || src.peek().compareTo(dst.peek()) > 0))\n src.push(dst.pop());\n\n if (aux.peek() != null && (src.peek() == null || src.peek().compareTo(aux.peek()) > 0))\n src.push(aux.pop());\n else if(src.peek() != null && ( aux.peek() == null || aux.peek().compareTo(src.peek()) > 0))\n aux.push(src.pop());\n\n if(aux.peek() != null && (dst.peek() == null || dst.peek().compareTo(aux.peek()) > 0))\n dst.push(aux.pop());\n else if(dst.peek() != null &&(aux.peek() == null || aux.peek().compareTo(dst.peek()) > 0))\n aux.push(dst.pop());\n\n System.out.printf(\"After move \\n\");\n printStacks(4,src,dst,aux);\n }while (!isEnded(4,src,dst,aux));\n }\n // odd number of disks\n if(numOfDisks % 2 != 0){\n do {\n numOfDisks = numOfDisks;\n if (aux.peek() != null && (src.peek() == null || src.peek().compareTo(aux.peek()) > 0))\n src.push(aux.pop());\n else if (src.peek() != null && (aux.peek() == null || aux.peek().compareTo(src.peek()) > 0))\n aux.push(src.pop());\n\n if (src.peek() != null && (dst.peek() == null || dst.peek().compareTo(src.peek()) > 0))\n dst.push(src.pop());\n else if (dst.peek() != null && (src.peek() == null || src.peek().compareTo(dst.peek()) > 0))\n src.push(dst.pop());\n\n if (aux.peek() != null && (dst.peek() == null || dst.peek().compareTo(aux.peek()) > 0))\n dst.push(aux.pop());\n else if (dst.peek() != null && (aux.peek() == null || aux.peek().compareTo(dst.peek()) > 0))\n aux.push(dst.pop());\n\n System.out.printf(\"After move \\n\");\n printStacks(4,src,dst,aux);\n } while (!isEnded(4,src,dst,aux));\n }\n System.out.printf(\"Last status\");\n printStacks(4,src,dst,aux);\n }", "public void shiftUp() {\n\t\tif (next == null) {\n\t\t\tthrow new IllegalStateException(\"Cannot shift \" + this + \" up because it is already at the top\");\n\t\t}\n\t\tDependencyElement n = next;\n\t\tDependencyElement nn = next.next;\n\t\tif (nn != null) {\n\t\t\tnn.prev = this;\n\t\t\tnext = nn;\n\t\t}\n\t\telse {\n\t\t\tnext = null;\n\t\t}\n\t\tn.next = this;\n\t\tn.prev = prev;\n\t\tprev = n;\n\t}" ]
[ "0.64376426", "0.6082887", "0.58246195", "0.5762856", "0.5760242", "0.57246053", "0.5649738", "0.5600869", "0.5510175", "0.54826653", "0.5370316", "0.5348609", "0.5297236", "0.52877194", "0.52442855", "0.5234227", "0.5220881", "0.52087367", "0.51822895", "0.51706135", "0.51407146", "0.51288813", "0.5124128", "0.5107426", "0.50945204", "0.5084915", "0.5082348", "0.5081529", "0.50740564", "0.5068636", "0.50571597", "0.5044415", "0.502827", "0.50249213", "0.50249213", "0.50244415", "0.50229675", "0.5015171", "0.5014679", "0.5008805", "0.5004159", "0.49918717", "0.49918717", "0.49818787", "0.49755877", "0.49546292", "0.49448258", "0.49432662", "0.49376827", "0.4924944", "0.49205765", "0.4918141", "0.49171335", "0.49131113", "0.49076688", "0.49019125", "0.48950636", "0.4893176", "0.48874453", "0.48823917", "0.48804718", "0.48801148", "0.48776996", "0.4874691", "0.48674476", "0.48617008", "0.4858605", "0.4858605", "0.48535416", "0.48519534", "0.48493272", "0.4839723", "0.48359808", "0.4825187", "0.48161688", "0.4815007", "0.481355", "0.48112893", "0.48085395", "0.48075742", "0.48069766", "0.48069766", "0.4804483", "0.4801333", "0.48003003", "0.47982615", "0.47913584", "0.47858956", "0.47850236", "0.47839022", "0.4776868", "0.47755775", "0.4774388", "0.47650403", "0.47634715", "0.47607014", "0.47598594", "0.47518104", "0.475028", "0.47468054", "0.4741161" ]
0.0
-1
Finding Nth Node from End
public int nNodefromEnd(int n) { Node temp1=head; Node temp2=head; if(head==null) { System.out.println("Empty List"); } int i=0; while(temp1!=null && i<n) { temp1=temp1.next; i++; } while(temp1!=null) { temp1=temp1.next; temp2=temp2.next; } return temp2.data; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private Node getNth(int index) \n { \n int currIndex = 0;\n Node currNode = this.head.next;\n while(currIndex < index)\n {\n currNode = currNode.getNext();\n currIndex++;\n }\n return currNode;\n }", "public static Node findNthFromEnd(Node head, int n) {\n\t\t\n\t\t//use 2 pointers\n Node cur = head;\n Node p = head;\n \n int count = 1;\n \n while (count <= n -1 ) { //\n cur = cur.next; // the cur pointer moves forward next node\n count += 1; // increment count by 1\n \n }\n \n while (cur.next != null) {\n \tcur = cur.next;\n p = p.next;\n }\n return p;\n }", "public int getKthNodeFromEnd(int k){\n // [10 -> 20 -> 30 -> 40 -> 50]\n // k = 1(50) dist = 0;\n // k = 2(40) dist = 1\n\n if(isEmpty()) throw new IllegalStateException();\n\n int distance = k - 1;\n var pointerOne = first;\n var pointerSecond = first;\n\n for(int i = 0; i < distance; i++){\n if(pointerSecond.next != null)\n pointerSecond = pointerSecond.next;\n else\n throw new IllegalArgumentException();\n }\n\n while(pointerSecond.next != null){\n pointerOne = pointerOne.next;\n pointerSecond = pointerSecond.next;\n }\n\n return pointerOne.value;\n }", "private Node findNode(int index){\n Node current = start;\n for(int i = 0; i < index; i++){\n current = current.getNext();\n }\n return current;\n }", "private int findNthElement(int index) {\n if (head == null)\n return 0;\n ListNode pointer1 = head;\n ListNode pointer2 = head;\n int count = 0;\n while (count < index) {\n pointer1 = pointer1.next;\n count++;\n }\n while (pointer1.next != null) {\n pointer1 = pointer1.next;\n pointer2 = pointer2.next;\n }\n return pointer2.data;\n }", "protected abstract Object getNthObject(int n);", "public E findKthNodeFromEnd(int k) {\n\t\tif (k <= 0 || k > size())\n\t\t\tthrow new IllegalArgumentException();\n\n\t\tNode current = first;\n\t\tNode next = current;\n\n\t\twhile (k > 0) {\n\t\t\tnext = next.next;\n\t\t\tk--;\n\t\t}\n\n\t\twhile (next != null) {\n\t\t\tcurrent = current.next;\n\t\t\tnext = next.next;\n\t\t}\n\t\treturn (E) current.value;\n\t}", "int getNthFromLast(Node head, int n)\n {\n \t\n Node s=head;\n for(int i=0;i<n;i++)\n {\n if(s==null)\n return -1;\n s=s.next;\n }\n Node f=head;\n while(s!=null)\n {\n f=f.next;\n s=s.next;\n }\n return f.data;\n }", "public int nth(int n) {\r\n int count = -1;\r\n BTNode currentPos = root;\r\n\r\n if (n < 0 || n >= Nodes(currentPos)) throw new NoSuchElementException();\r\n\r\n // loop iterates through the tree (using currentPos = currentPost.left), until it finds\r\n // an item which; the sum of its left nodes is less than n\r\n while (currentPos != null){\r\n int countNodes = Nodes(currentPos.left)+1+count;\r\n if (countNodes > n && Nodes(currentPos.left) != 0) {\r\n currentPos = currentPos.left;\r\n\r\n }\r\n\r\n // if countNodes is less than n, updates a count, then breaks the loop if count == n\r\n else {\r\n count += Nodes(currentPos.left);\r\n count++;\r\n if (count == n)\r\n break;\r\n currentPos = currentPos.right;\r\n }\r\n\r\n }\r\n\r\n\r\n return (int) (currentPos.data);\r\n }", "int node(final int index) {\r\n\t\tif (index < (size >> 1)) {\r\n\t\t\tint x = first;\r\n\t\t\tfor (long l = 0; l < index; l++) {\r\n\t\t\t\tx = getNextPointer(x);\r\n\t\t\t}\r\n\t\t\treturn x;\r\n\t\t} else {\r\n\t\t\tint x = last;\r\n\t\t\tfor (int i = size - 1; i > index; i--) {\r\n\t\t\t\tx = getPrevPointer(x);\r\n\t\t\t}\r\n\t\t\treturn x;\r\n\t\t}\r\n\t}", "public Node returnNthFromLast(Node head, int n) {\n if (head == null) {\n System.out.println(\"LL length less than \" + n);\n return null;\n }\n\n Node first = head;\n Node second = head;\n\n //difference between first and second's position should be equal to n\n for (int i = 0; i < n; i++) {\n if (second != null) {\n second = second.next;\n } else {\n System.out.println(\"LL length less than \" + n);\n return null;\n }\n }\n\n while (second != null) {\n second = second.next;\n first = first.next;\n }\n\n return first;\n }", "public ListNode findIndexNode(int index)\n {\n //should probably hande this by throwing an exception when head == null rather than using the if statement.\n if (head != null)\n {\n int counter = 0;\n ListNode iteratorNode = head;\n do\n { \n if (counter + 1 == index)\n {\n return iteratorNode;\n }\n if (iteratorNode.getNext() != null)\n {\n iteratorNode = iteratorNode.getNext();\n counter++;\n }\n } while(counter + 1 <= size);\n }\n return head;\n }", "private Node getNodeAt(int index) {\n\t\tNode node = head;\n\t\t// follow the links between nodes until it counts off the right number\n\t\tfor (int i = 0; i < index; i++) {\n\t\t\tif (node == null) {\n\t\t\t\t// In case we run out of nodes before we get up to the desired index, return null\n\t\t\t\treturn null;\n\t\t\t}\n\t\t\tnode = node.getNext();\n\t\t}\n\t\treturn node;\n\t}", "public int findMiddleNode2() {\n\t\tif (this.head!=null) {\n\t\t\tint len = 0;\n\t\t\tNode temp1 = this.head;\n\t\t\t// calculating the length. 0 based index for len\n\t\t\twhile (temp1.next != null) {\n\t\t\t\ttemp1 = temp1.next;\n\t\t\t\tlen++;\n\t\t\t}\n\t\t\t//System.out.println(\"length: \"+len);\n\t\t\t// temp2 to iterate once\n\t\t\tNode temp2 = this.head;\n\t\t\t/*\n\t\t\t * // temp3 travels twice as faster than temp2 (hare and tortoise approach). \n\t\t\t * while temp3 travels the entire LL, temp2 will be reaching exactly the middle of the LL\n\t\t\t */\n\t\t\tNode temp3 = this.head;\n\t\t\twhile (temp3!=null && temp3.next!=null && temp3.next.next!=null) {\n\t\t\t\ttemp2 = temp2.next;\n\t\t\t\ttemp3 = temp3.next.next;\n\t\t\t}\n\t\t\t// for even len -> middle is (len/2)+1 th index\n\t\t\tif ((len+1)%2 == 0) {\n\t\t\t\treturn temp2.next.data;\n\t\t\t}\n\t\t\t// for odd len -> middle is (len/2) th index\n\t\t\telse {\n\t\t\t\treturn temp2.data;\n\t\t\t}\n\t\t\t\n\t\t}\n\t\telse {\n\t\t\treturn -1;\n\t\t}\n\n\t\t\n\t}", "Node nthToLast(int k) {\n Node p1 = head;\n Node p2 = head;\n for (int i = 0; i < k; i++) {\n if (p1 == null) return null;\n p1 = p1.getNext();\n }\n\n while (p1 != null) {\n p1 = p1.getNext();\n p2 = p2.getNext();\n }\n return p2;\n }", "private FSMNode get(FSMNode n, int index) {\n while (n != null && n.index != index && n.index <= index) {\n n = n.next;\n }\n if (n == null || n.index != index) {\n return null;\n }\n return n;\n }", "@Test\n public void elementLocationTestIterative() {\n int elementNumber = 3;\n System.out.println(nthToLastReturnIterative(list.getHead(), elementNumber).getElement());\n }", "private LinkedListNode getNode(int index, boolean endMarkerAllowed)\n\t\t\t {\n\t\tif (index < 0) {\n\t\t\t{roops.util.Goals.reached(0, roops.util.Verdict.REACHABLE);}\n\t\t\tthrow new RuntimeException();\n\t\t}\n\t\tif (endMarkerAllowed == false && index == size) {\n\t\t\t{roops.util.Goals.reached(1, roops.util.Verdict.REACHABLE);}\n\t\t\tthrow new RuntimeException();\n\t\t}\n\t\tif (index > size) {\n\t\t\t{roops.util.Goals.reached(2, roops.util.Verdict.REACHABLE);}\n\t\t\tthrow new RuntimeException();\n\t\t}\n\t\t// Search the list and get the node\n\t\tLinkedListNode node;\n\t\tint size_div_2 = size /2;\n\t\t\n\t\tif (index < size_div_2) {\n\t\t\t{roops.util.Goals.reached(3, roops.util.Verdict.REACHABLE);}\n\t\t\t// Search forwards\n\t\t\tnode = header.next;\n\t\t\tint currentIndex = 0;\n\t\t\twhile(currentIndex < index){\n\t\t\t\t{roops.util.Goals.reached(4, roops.util.Verdict.REACHABLE);}\n\t\t\t\tnode = node.next;\n\t\t\t\tcurrentIndex++;\n\t\t\t}\n\t\t} else {\n\t\t\t\n\t\t\t{roops.util.Goals.reached(5, roops.util.Verdict.REACHABLE);}\n\t\t\t\n\t\t\t// Search backwards\n\t\t\tnode = header;\n\t\t\tint currentIndex = size;\n\t\t\twhile(currentIndex > index){\n\t\t\t\t{roops.util.Goals.reached(6, roops.util.Verdict.REACHABLE);}\n\t\t\t\tnode = node.previous;\n\t\t\t\tcurrentIndex--;\n\t\t\t}\n\t\t}\n\t\t{roops.util.Goals.reached(7, roops.util.Verdict.REACHABLE);}\n\t\treturn node;\n\t}", "private Node getNodeAt(int index){\n // first check if index is within valid index range [0,size]:\n if(index<0 || index>size) \n throw new IndexOutOfBoundsException(\"Faild to perfomr getNode() because the \"+ index +\" index that you have specified is way out of bounds!\");\n Node temp = first;\n while(index>=0) {\n temp = temp.next; // advance the reference to the next node in the list\n index--;\n }\n return temp;\n }", "protected Node<U> getNodeAtIndex(int index) {\n\t\t\tNode<U> currNode;\n\n\t\t\tif (index < Math.ceil(mLength / 2)) {\n\t\t\t\tcurrNode = mHead;\n\t\t\t\tfor (int i = 0; i < index; ++i) {\n\t\t\t\t\tcurrNode = currNode.getNext();\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tcurrNode = mTail;\n\t\t\t\tfor (int i = mLength - 1; i > index; --i) {\n\t\t\t\t\tcurrNode = currNode.getPrev();\n\t\t\t\t}\n\t\t\t}\n\n\t\t\treturn currNode;\n\t\t}", "public abstract LinkedList<Integer> getNeighbours(int index);", "@Test\n public void elementLocationTestRecursive() {\n ReverseCount reverseCount = new ReverseCount();\n int elementNumber = 3;\n System.out.println(nthToLastReturnRecursive(list.getHead(), elementNumber, reverseCount).getElement());\n }", "public int getNtoLastValue(int n){\n\tint nodeValue=0, llSize=0, brojac=1,index;\n\tNode current=head;\n\twhile(current!=null){\n\t\tllSize++;\n\t\tcurrent=current.next;\n\t}\n\tindex=llSize-n;\n\tcurrent=head;\n\twhile(brojac!=index){\n\t\tcurrent=current.next;\n\t\tbrojac++;\n\t}\n\tnodeValue=current.value;\n\treturn nodeValue;\n}", "public abstract int getEndIndex();", "private Node findNode(int index) {\n if (index > size && index < 0) {\n return head;\n }\n Node curNode = head;\n for (int i = 0; i < index; i++) {\n curNode = curNode.next;\n }\n return curNode;\n }", "public ListNode removeNthFromEndTraverse(ListNode head, int n) {\n if (head == null) {\n return null;\n }\n int listLen = 0;\n ListNode curNode = head;\n while (curNode != null) {\n listLen ++;\n curNode = curNode.next;\n }\n if (n < 1 || n > listLen) {\n return head;\n }\n int removeIdx = listLen - n;\n int curIdx = 0;\n curNode = head;\n ListNode prevNode = null;\n while (curIdx < removeIdx) {\n curIdx++;\n prevNode = curNode;\n curNode = curNode.next;\n }\n // now remove the curNode\n if (curNode == head) {\n return curNode.next;\n } else if (curNode.next == null) {\n prevNode.next = null;\n return head;\n } else {\n curNode.val = curNode.next.val;\n curNode.next = curNode.next.next;\n }\n return head;\n }", "public abstract int getNeighboursNumber(int index);", "public Nodo getNextHijo() {\n Nodo result = null;\n Vector<Nodo> hijos = this.getHijos();\n int lastIndex = hijos.size() - 1;\n if (this.nextChildIndex <= lastIndex) {\n result = hijos.get(this.nextChildIndex);\n this.nextChildIndex++;\n }\n return result;\n }", "public NodeList<T> getNode(int index){\n if(index < 0){ throw new IndexOutOfBoundsException(); }\n\n NodeList<T> f = getFirst();\n\n// for(int i = 0; (f != null) && (i < index); i++){\n// f = f.getNext();\n// }\n\n while ((f != null) && (index > 0)){\n index--;\n f = f.getNext();\n }\n\n if(f == null){ throw new IndexOutOfBoundsException(); }\n return f;\n }", "public static void main(String[] args) {\n Node current = new Node(1, null);\n for (int i = 2; i < 8; i++) {\n current = new Node(i, current);\n }\n Node head = current;\n // head = 7 -> 6 -> 5 -> 4 -> 3 -> 2 -> 1 -> (null)\n\n Node current2 = new Node(4, null);\n for (int i = 3; i > 0; i--) {\n current2 = new Node(i, current2);\n }\n Node head2 = current2;\n // head2 = 1 -> 2 -> 3 -> 4 -> (null)\n\n System.out.println(nthFromLast(head, 1)); // should return 1.\n System.out.println(nthFromLast(head, 5)); // should return 5.\n System.out.println(nthFromLast(head2, 2)); // should return 3.\n System.out.println(nthFromLast(head2, 4)); // should return 1.\n System.out.println(nthFromLast(head2, 5)); // should return null.\n System.out.println(nthFromLast(null, 1)); // should return null.\n }", "private int findNextElement() {\n\t\tif (hasNext()) {\n\t\t\tint value = this.index + 1;\n\t\t\treturn value;\n\n\t\t}\n\t\treturn -1;\n\t}", "private Element getElementForwards(int index) {\n Element element = this._headAndTail.getNext();\n\n for (int i = index; i > 0; --i) {\n element = element.getNext();\n }\n\n return element;\n }", "public RTWLocation firstN(int n);", "@Override\n public E get(int index) throws IndexOutOfBoundsException\n {\n if(index > size() - 1 || index < 0)\n {\n throw new IndexOutOfBoundsException();\n }\n Node currNode = getNth(index);\n return currNode.getElement(); \n }", "int getNext(int node_index) {\n\t\treturn m_list_nodes.getField(node_index, 2);\n\t}", "private int elementNC(int i) {\n return first + i * stride;\n }", "public Node removeNthFromEnd(Node head, int n) {\n\t\tNode first = head, second = head;\n\t\tfor(int i = 0; i < n; i++) {\n\t\t\tfirst = first.next;\n\t\t}\n\t\twhile(first.next != null) {\n\t\t\tfirst = first.next;\n\t\t\tsecond = second.next;\n\t\t}\n\t\tsecond.next = second.next.next;\n\t\treturn head;\n\t}", "static ListNode removeNthFromEnd(ListNode head, int n) {\n \tif(n<=0){\n \t\treturn null;\n \t}\n \tListNode pre=new ListNode(0);\n \tpre.next=head;\n \tListNode cur=pre;\n \tfor(int i=0;i<n;i++){\n \t\tif(head==null){\n \t\t\treturn null;\n \t\t}\n \t\thead=head.next;\n \t}\n \twhile(head!=null){\n \t\thead=head.next;\n \t\tpre=pre.next;\n \t}\n \tpre.next=pre.next.next;\n \treturn cur.next;\n }", "public ListNode removeNthFromEnd(ListNode head, int n) {\n // want deep to probe to end, with nBack lagging behind\n ListNode deep = head, nBack = head;\n // put deep n ahead\n for (int i = 0; i < n; i++) {\n deep = deep.next;\n }\n\n // if deep has gone through whole list, then we're just removing first element\n if (deep == null) {\n return head.next;\n }\n\n // move them both down together until deep gets to end\n while (deep.next != null) {\n deep = deep.next;\n nBack = nBack.next;\n }\n\n // cut node out of list\n nBack.next = nBack.next.next;\n return head;\n }", "public int kthFromEnd(int k) {\r\n\r\n if (head == null) {\r\n return 0;\r\n }\r\n Node lead = head;\r\n while (k >= 0) {\r\n lead = lead.next;\r\n k--;\r\n }\r\n Node tail = head;\r\n while (lead != null) {\r\n lead = lead.next;\r\n tail = tail.next;\r\n }\r\n int i = tail.data;\r\n return i;\r\n }", "public static Node removeNthFromEnd(Node head, int n) {\n\t\t\n\t\t//use 2 pointers\n Node cur = head;\n Node p = head;\n int count = 1;\n \n while (cur.next != null) {\n count += 1; // increment count from 1 to 2, 3, 4, 5\n cur = cur.next; // move forward next node 1->2->3->4-> 5\n if (count > n + 1) // count = 4 > 2 + 1 = 3\n p = p.next; // count = 4: p -> node 2 , count = 5, p-> node 3\n }\n \n if (count == n)\n return head.next;\n else { // count = 5\n p.next = p.next.next; //p.next point to 5, p.next.next is null\n return head ;\n }\n }", "private Node getNode(int index) {\n \tif (index < 0 || index >= size)\n \t\tthrow new IndexOutOfBoundsException();\n \tNode result = sentinel;\n \t// invariant for both loops: result = this[i]\n \tif (index < size / 2)\n \t\tfor (int i = -1; i < index; i++)\n \t\t\tresult = result.succ;\n \telse\n \t\tfor (int i = this.size; i > index; i--)\n \t\t\tresult = result.pred;\n \treturn result;\n }", "public static int searchXElement(int n) {\n if (inicio != null) { // Verifica se a lista e vazia\n auxiliar = inicio; // Aponta o auxiliar para o inicio\n for (int i = 0; i < n - 1; i++) {\n auxiliar = auxiliar.getNext(); // Aponta o auxiliar para o\n // proximo ate chegar a posicao\n // desejada\n }\n \n return auxiliar.getInfo();// Retorna a info do node buscado\n }\n return 0;\n }", "public static int getNth(ListNode head, int index){\n\t\tif(head == null){\n\t\t\tthrows new IllegalAugumentException(\"Empty List\");\n\t\t} \n\t\t\n\t\tListNode current = head;\n\t\t//int count = 0;\n\t\twhile(current != null){\n\t\t\tfor(int count = 0; count < index; count++){\n\t\t\t\tcurrent = current.next;\n\t\t\t}\t\t\n\t\t\t\n\t\t}\n\t\t\n\t\tif(current = null){\n\t\t\tthrows new IndexOutOfBountException();\n\t\t}else{\n\t\t\treturn current.value;\n\t\t}\n\t}", "@Override\n public int indexOf(Node<T> e)\n {\n if(e.equals(lastNode)) return size - 1;\n else return super.indexOf(e);\n }", "private Node<T> find(int index) throws IndexException {\n if (!isValid(index)) {\n throw new IndexException();\n }\n\n Node<T> node = head;\n int counter = 0;\n while (node != null && counter < index) {\n node = node.next;\n counter = counter + 1;\n }\n return node;\n }", "private int first_leaf() { return n/2; }", "private Node<AnyType> getNode(int index) throws IndexOutOfBoundsException {\n \n /**\n * -------------------------------------------\n * TODO: You fully implement this method\n * \n * Your implementation MUST do the following link traversals:\n * \n * 1) If the index location is <= floor( size/2 ), start traversal from head node\n * 2) if the index location is > floor( size/2), start traversal from tail node\n * \n * Your code will be reviewed by instructor to ensure the two conditions\n * are fully meet by your solution.\n * \n */\n \n if ( index < 0 || index >= size ) {\n \n throw new IndexOutOfBoundsException();\n \n }\n \n Node<AnyType> node = null;\n \n if ( index <= Math.floor( ((double)size)/2.0 ) ) {\n \n node = headNode;\n \n for ( int i=1; i<=index; i++ ) {\n \n node = node.getNextNode();\n \n }\n \n } else {\n \n node = tailNode;\n \n for ( int i=(size-1); i>index; i-- ) {\n \n node = node.getPreviousNode();\n \n }\n \n }\n \n return node;\n \n }", "private int get_right_child(int index){\r\n return 2 * index + 2;\r\n }", "private DoublyLinkedNode<E> getNodeAt(int index) {\n if (index >= 0 && index <= size && !this.isEmpty()) {\n DoublyLinkedNode<E> iter = head.getNext();\n for (int i = 0; i < index; i++) {\n iter = iter.getNext();\n }\n\n return iter;\n }\n else {\n throw new IndexOutOfBoundsException();\n }\n }", "public Node<E> findNode(int index){\t\r\n\t\tcheckIndex(index);\r\n\t\tint k = 0;\r\n\t\tNode<E> foundNode = headNode;\r\n\t\twhile(k < index - 1) {\r\n\t\t\tfoundNode = foundNode.link;\r\n\t\t}\r\n\t\t\r\n\t\treturn foundNode;\r\n\t}", "private int getPositionInList(Node n) \n\t//PRE: Node n is initialized\n\t//POST: FCTVAL == the position of the Node n in the list\n\t{\n\t\tNode<T> tmp = start;\n\t\tint count = 0;\t//set counter variable to keep track of position\n\t\twhile(tmp != n) //while current node != to node being searched for\n\t\t{\n\t\t\tif(count > length) //make sure position is not greater than max size of list\n\t\t\t{\n\t\t\t\treturn -1;\n\t\t\t}\n\t\t\tcount++;\t//increment position\n\t\t\ttmp = tmp.next;\t//move to next element\n\t\t}\n\t\treturn count;\t//return count which is the position of the node n in the list\n\t}", "public ListNode removeNthFromEnd(ListNode head, int n) {\n\t\t\tif (head == null)\n\t\t\t\treturn null;\n\t\t\tListNode begin = new ListNode(-1);\n\t\t\tbegin.next = head;\n\t\t\tListNode fast = begin;\n\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\tif (fast == null)\n\t\t\t\t\treturn null;\n\t\t\t\tfast = fast.next;\n\t\t\t}\n\t\t\tif (fast == null)\n\t\t\t\treturn null;\n\t\t\tListNode slow = begin;\n\t\t\twhile (fast.next != null) {\n\t\t\t\tfast = fast.next;\n\t\t\t\tslow = slow.next;\n\t\t\t}\n\t\t\tslow.next = slow.next.next;\n\t\t\treturn begin.next;\n\t\t}", "private Node<T> finnNode(int indeks) {\n int k = antall / 2;\n int i = 0;\n\n Node<T> node = hode;\n\n if (indeks <= k)\n while (i++ != indeks) node = node.neste;\n else {\n node = hale;\n i = antall - 1;\n while (i-- != indeks) node = node.forrige;\n }\n\n return node;\n }", "private Node getNode(int index) {\n\t\treturn getNode(index, 0, size() - 1);\n\t}", "Node<E> node(int index) {\n\t // assert isElementIndex(index);\n\n\t if (index < (size >> 1)) {\n\t Node<E> x = first;\n\t for (int i = 0; i < index; i++)\n\t x = x.next;\n\t return x;\n\t } else {\n\t Node<E> x = last;\n\t for (int i = size - 1; i > index; i--)\n\t x = x.prev;\n\t return x;\n\t }\n\t }", "protected ArrayNode<T> getNode(int idx){\r\n\t\tif ((idx < 0)||(idx>nodeCount()-1))\r\n\t\t\tthrow new IndexOutOfBoundsException();\r\n\t\t//loops through nodes to find\r\n\t\tArrayNode<T> current = beginMarker.next;\r\n\t\tfor(int i=0; i<idx; i++){\r\n\t\t\t current = current.next;\r\n\t\t}\r\n\t\treturn current;\r\n\t}", "private Node<E> getNode(int index)\n {\n Node<E> node = head;\n for (int i = 0; i < index && node != null; i++) {\n node = node.next;\n }\n return node;\n }", "private int getParentOf(int index) {\n // TODO: YOUR CODE HERE\n return index / 2;\n }", "private Node find(int index)\n {\n Node curr = head;\n for(int i = 0; i < index; i++)\n {\n curr = curr.next;\n }\n return curr;\n }", "public long getNodeIndex();", "public ListNode removeNthFromEnd(ListNode head, int n) {\n if(n==0)\n return head;\n \n ListNode pa=head, pb=head;\n int i=0;\n for(i=0; i<n+1; i++){\n if(pb!=null)\n pb=pb.next;\n else\n break;\n }\n if(i==n){\n head=head.next;\n pa.next=null;\n }else if(i==n+1){\n while(pb!=null){\n pb=pb.next;\n pa=pa.next;\n }\n pa.next=pa.next.next;\n }\n \n return head;\n \n }", "public abstract int getStartIndex();", "private Node<T> getNodeAtIndex(int index) {\r\n if (index < 0 || size() <= index) {\r\n throw new IndexOutOfBoundsException(\"No element exists at \"\r\n + index);\r\n }\r\n Node<T> current = head.next(); // as we have a sentinel node\r\n for (int i = 0; i < index; i++) {\r\n current = current.next();\r\n }\r\n return current;\r\n }", "public ListNode removeNthFromEnd(ListNode head, int n) {\n\n ListNode start = new ListNode(0);\n ListNode slow = start, fast = start;\n slow.next = head;\n\n //Move fast in front so that the gap between slow and fast becomes n\n for(int i=1; i<=n+1; i++) {\n fast = fast.next;\n }\n //Move fast to the end, maintaining the gap\n while(fast != null) {\n slow = slow.next;\n fast = fast.next;\n }\n //Skip the desired node\n slow.next = slow.next.next;\n return start.next;\n }", "private DoublyNode find(int index) {\r\n\t\tDoublyNode curr = head;\r\n\r\n\t\t// due to the dummy head, we skip nodes for index times\r\n\t\tfor (int skip = 1; skip <= index; skip++) {\r\n\t\t\tcurr = curr.getNext();\r\n\t\t}\r\n\t\treturn curr;\r\n\t}", "public static IntegerNode nthToLast(LinkedList linkedList, int n) {\r\n\t\treturn null;\r\n\t}", "private int getIndex(Entity entity){\n int currentIndex = 0;\n\n for(QuadTree node: this.getNodes()){\n\n /*PhysicsComponent bp = (PhysicsComponent)entity.getProperty(PhysicsComponent.ID);\n if( node.getBounds().contains(bp.getBounds())){\n return currentIndex;\n }*/\n currentIndex++;\n }\n return -1; // Subnode not found (part of the root then)\n }", "public int getEndNode(){\n\t\treturn endNode;\n\t}", "AssignmentPathSegment beforeLast(int n);", "private int rightChild(int index) {\n return index * 2 + 1;\n }", "public Node getLast() {\r\n\t\treturn getNode(this.size());\r\n\t}", "public ListNode removeNthFromEnd(ListNode head, int n){\n\t\tif ( head == null || head.next == null )\t\t\t\t\t//'n will always be valid.' mean 1<= n <= length?\n\t\t\treturn null;\n\t\t\t\n\t\t//core logic\n\t\tListNode dummy = new ListNode(-1);\n\t\tdummy.next = head;\n\t\t\n\t\tListNode slow = dummy;\t\t\t\t// slow is the node just before the one to delete, no need to set pre\n\t\tListNode fast = dummy;\n// \t\tListNode pre = dummy;\n\t\t\n// \t\tint i = n - 1;\n\t\t\n\t\twhile ( n >= 1 ){\t\t\t\t\t// slow + n_step = fast\n\t\t\tfast = fast.next;\n\t\t\tn--;\n\t\t}\n\t\t\n\t\twhile ( fast.next != null ){\n\t\t\tfast = fast.next;\n\t\t\tslow = slow.next;\n// \t\t\tpre = pre.next;\n\t\t}\n\t\t\n// \t\tslow.next = fast;\t\t\t\t\t// when n==1, fast is the one to be deleted\n\t\tslow.next = slow.next.next;\n\t\treturn dummy.next;\n\t\t\n\t}", "public ListNode removeNthFromEnd(ListNode head, int n) {\n\t\tif(head == null)\n\t\t\treturn null;\n\t\tListNode p1 = head;\n\t\tListNode p2 = head;\n\t\tListNode pre = head;\n\t\tint i = 0;\n\t\twhile(i++ < n)\n\t\t{\n\t\t\tp2 = p2.next;\n\t\t}\n\t\twhile(p2 != null)\n\t\t{\n\t\t\tpre = p1;\n\t\t\tp1 = p1.next;\n\t\t\tp2 = p2.next;\n\t\t}\n\t\tif(pre == p1)\n\t\t\treturn p1.next;\n\t\tpre.next = p1.next;\n\t\treturn head;\n\t\t\n\t}", "public ListNode removeNthFromEnd(ListNode head, int n) {\n ListNode dummy = new ListNode(0);\n dummy.next = head;\n ListNode slowPointer = dummy;\n ListNode fastPointer = dummy;\n for(int i = 0; i <= n; i ++){\n fastPointer = fastPointer.next;\n }\n \n while(fastPointer != null){\n fastPointer = fastPointer.next;\n slowPointer = slowPointer.next;\n }\n slowPointer.next = slowPointer.next.next;\n return dummy.next;\n }", "public ListNode removeNthFromEnd2(ListNode head, int n) {\n\n\t\tListNode dummy = new ListNode(-1);\n\t\tdummy.next = head;\n\t\tListNode p1 = dummy;\n\t\tfor (int i = 0; i < n + 1; i++) {\n\t\t\tp1 = p1.next;\n\t\t}\n\t\tListNode p2 = dummy;\n\t\twhile (p1 != null) {\n\t\t\tp1 = p1.next;\n\t\t\tp2 = p2.next;\n\t\t}\n\t\tp2.next = p2.next.next;\n\t\treturn dummy.next;\n\t}", "public static <T> int findKthElement2(Node<T> head, int K){ \n\t\n\t\tif (K <= 0 ){\n\t\t\tSystem.out.println(\"Error!!\");\n\t\t\tSystem.exit(0);; // return null!!! \n\t\t\n\t\t}\n\t\t\n\t\tif (head == null)\n\t\t\treturn 0;\n\t\t\n\t\telse{\n\t\t\t\n\t\t\tint i = findKthElement2(head.next, K) + 1; \n\t\t\tif (i == K)\n\t\t\t\tSystem.out.println(head.data.toString());\n\t\t\t\n\t\t\n\t\treturn i;\n\t}\n\t}", "public static void main(String[] args) {\n\t\t\r\n\t\tNode current=new Node(10);\r\n\t\tcurrent.next = new Node(20); \r\n\t\tcurrent.next.next = new Node(320); \r\n\t\tcurrent.next.next.next = new Node(910); \r\n\t\tcurrent.next.next.next.next = new Node(920); \r\n Node r=kthlastelement(current,3);\r\n if(r==null)\r\n {\r\n \t System.out.print(\"no element to return\");\r\n }\r\n else System.out.print(r.data);\r\n //System.out.print(prev);\r\n /*while(r != null)\r\n {\r\n \t System.out.print(r.data);\r\n \t r=r.next;\r\n }*/\r\n\r\n\t}", "private int get_left_child(int index){\r\n return 2 * index + 1;\r\n }", "private Node<T> finnNode(int indeks){\n Node<T> curr;\n // begin på hode\n if (indeks < antall/2){\n curr= hode;\n for ( int i=0; i<indeks; i++){\n curr= curr.neste;\n }// end for\n }// end if\n else {\n curr= hale;\n for (int i = antall-1; i>indeks; i--){\n curr= curr.forrige;\n }// end for\n }// end else\n return curr;\n }", "public int\ngetNodeIndexMax();", "public Integer at(int i){\n\t\tint cont = 0;\n\t\tNodo aux = first;\n\t\twhile(i<this.size()){\n\t\t\tif(cont == i){\n\t\t\t\treturn aux.getInfo();\n\t\t\t}else{\n\t\t\t\taux = aux.getNext();\n\t\t\t\tcont++;\n\t\t\t}\n\t\t}\n\t\treturn null;\n\t}", "public Node getNode(int position)throws ListExeption;", "public Node getNode(int index) {\r\n\t\tif (index < 1 || index > this.size()) {\r\n\t\t\ttry {\r\n\t\t\t\tthrow new IllegalIndexException(\"Exception: the index's out of boundary!\");\r\n\t\t\t} catch (IllegalIndexException e) {\r\n\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\tSystem.out.println(e.getMessage());\r\n\t\t\t\treturn null;\r\n\t\t\t}\r\n\t\t}\r\n\t\tif (index == 1) {\r\n\t\t\treturn head;\r\n\t\t}else if (index == this.size()) {\r\n\t\t\treturn tail;\r\n\t\t}else {\r\n\t\t\tint pointerIndex = 1;\r\n\t\t\tpointer = head;\r\n\t\t\twhile (pointerIndex < index) {\r\n\t\t\t\tpointer = pointer.getNext();\r\n\t\t\t\tpointerIndex++;\r\n\t\t\t}\r\n\t\t\treturn pointer;\r\n\t\t}\r\n\t}", "public int kToTheEnd(int k) {\n\n if(k<1 || k > this.size())\n return 0;\n\n Node p1=head, p2=head;\n\n for(int i=0; i<k; i++) {\n p2=p2.next;\n }\n\n while(null!=p2.next) {\n p1=p1.next;\n p2=p2.next;\n }\n\n print(\"k to end, k:\" + k + \" data: \" + p1.data);\n return p1.data;\n\n }", "public abstract TreeNode getNode(int i);", "private Element findByIndex(int index) {\n\t\tElement e = head;\n\t\tfor (int i = 0; i < index; i++) {\n\t\t\te = e.next;\n\t\t}\n\t\treturn e;\n\t}", "private void findNeighbour(int offset) {\n TreeNodeImpl node = (TreeNodeImpl) projectTree.getLastSelectedPathComponent();\n TreePath parentPath = projectTree.getSelectionPath().getParentPath();\n NodeList list = (NodeList) node.getParent().children();\n\n for (int i = 0; i < list.size(); ++i) {\n if (list.get(i).equals(node)) {\n if (offset > 0 && i < list.size() - offset) {\n projectTree.setSelectionPath(parentPath.pathByAddingChild(list.get(i + offset)));\n break;\n }\n if (offset < 0 && i >= offset) {\n projectTree.setSelectionPath(parentPath.pathByAddingChild(list.get(i + offset)));\n break;\n }\n }\n }\n }", "public static Node findLastKth3(Node n, int k) {\n\t\tif (n == null) {\n\t\t\treturn null;\n\t\t}\n\t\tNode result = findLastKth3(n.next, k);\n\t\tindex++;\n\t\tif (index == k)\n\t\t\treturn n;\n\t\telse\n\t\t\treturn result;\n\t}", "private nodeClass findLast(){\n nodeClass aux = pivot; \n do{\n aux=aux.next;\n }while (aux.next!=pivot);\n return aux; //esto te devuelve el ultimo nodo de la lista\n }", "public Node<T> getLast() \r\n {\r\n if (isEmpty()) return sentinel;\r\n return sentinel.prev;\r\n }", "public Node returnNextChild(){\n try{\n return children.get(counter);\n }catch(Exception ex){\n return null;\n }\n }", "public Node getNodeFromGivenIndex(int index){\n //Index validation\n checkIndex(index);\n\n int i = 0;\n Node current = head;\n while (i<index){\n current = current.next;\n i++;\n }\n return current;\n }", "public NonTerminal getNextNonTerminal() {\n\t\tif (marker < getRhs().length && getRhs()[marker] instanceof NonTerminal)\n\t\t\treturn (NonTerminal) getRhs()[marker];\n\t\telse\n\t\t\treturn null;\n\t}", "public ListNode removeNthFromEnd(ListNode list, int n)\r\n {\r\n ListNode head = new ListNode();\r\n head.next = list;\r\n ListNode prev = head;\r\n ListNode after = head;\r\n for (int i = 0; i < n; i++)\r\n {\r\n if (after.next == null && i < n)\r\n {\r\n return head.next;\r\n }\r\n after = after.next;\r\n }\r\n while (after.next != null)\r\n {\r\n prev = prev.next;\r\n after = after.next;\r\n }\r\n prev.next = prev.next.next;\r\n return head.next;\r\n }", "@Override\n public Node<T> get(int i)\n {\n if(i == size - 1) return lastNode;\n else return super.get(i);\n }", "public ListNode removeNthFromEnd(ListNode head, int n) {\n ListNode p1=head;\n ListNode p2=head;\n for(int i=1;i<=n;i++)\n {\n p1=p1.next;\n }\n \n if(p1==null)\n return head.next;//n==head.size(), easy to forget\n \n while(p1.next!=null)\n {\n p1=p1.next;\n p2=p2.next;\n }\n \n p2.next=p2.next.next;\n \n return head;\n }", "private Node<E> getNode(int index)\n {\n Node<E> node=head;\n for(int i=0;i < index && node != null;++i)\n node = node.next;\n return node;\n }", "public ListNode removeNthFromEnd(ListNode A, int B) {\n int sz=0;\n ListNode temp=A;\n while(temp!=null){\n temp=temp.next;\n sz++;\n }\n // B is now the node to be removed from the starting\n B=sz-B+1;\n if(B<=1){\n return A.next;\n }\n // aim is to get to the node just before the node to be deleted\n int aim=B-1;\n int curr=1;\n temp=A;\n \n while(temp!=null){\n // if we have reached the prev node of the node which has to be deleted\n if(curr==aim){\n // if node to be removed is not null \n if(temp.next!=null){\n // forming a new link of prev and next's next node\n ListNode deletedNode=temp.next;\n temp.next=deletedNode.next;\n // unlinking that node from the chain\n deletedNode.next=null;\n }\n }\n curr++;\n temp=temp.next;\n }\n return A;\n }", "private Node<T> getNode(int idx) {\r\n\t\treturn getNode(idx, 0, size() - 1);\r\n\t}" ]
[ "0.7092252", "0.69912755", "0.6919013", "0.6725684", "0.67187184", "0.6589374", "0.6564621", "0.6484838", "0.6458707", "0.6434477", "0.63920873", "0.6388564", "0.6295404", "0.6249552", "0.62335724", "0.62075114", "0.6201663", "0.619101", "0.617347", "0.6141421", "0.61396664", "0.6130347", "0.608764", "0.6075555", "0.6073387", "0.6070484", "0.60692", "0.60365844", "0.60007256", "0.597384", "0.5966872", "0.5959298", "0.595575", "0.59547794", "0.5942623", "0.5934044", "0.5932917", "0.5912143", "0.59097266", "0.58918226", "0.5870012", "0.58600587", "0.5853827", "0.5842081", "0.58400697", "0.58393973", "0.58369213", "0.5836614", "0.5821441", "0.58153355", "0.5814519", "0.58144635", "0.57749516", "0.5768922", "0.57677865", "0.5758129", "0.5741456", "0.57352376", "0.5732707", "0.57299626", "0.5725628", "0.5688346", "0.5686319", "0.5679859", "0.5676034", "0.56629443", "0.5654107", "0.5644792", "0.5630902", "0.5630677", "0.5629694", "0.5625653", "0.5624816", "0.5624628", "0.56130576", "0.5603249", "0.55859065", "0.5585818", "0.5584654", "0.55840427", "0.55756646", "0.55698234", "0.55635005", "0.55580586", "0.5556511", "0.55563146", "0.5553849", "0.55517375", "0.5551267", "0.554599", "0.5545365", "0.5541708", "0.5521353", "0.55205333", "0.5517269", "0.5513063", "0.54869586", "0.5486482", "0.54753447", "0.54748845" ]
0.6015422
28
getFragmentManager().popBackStackImmediate(); AppCompatActivity activity = (AppCompatActivity)getContext(); popBackStack(); Fragment myFragment = new GunType(); getSupportFragmentManager().beginTransaction().replace(R.id.callfrag, myFragment).addToBackStack("old").commit();
public static void onBackPressed() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void onClick(View v) {\n if (v == backclick){\n getFragmentManager().popBackStack();\n\n }\n\nelse if(v == improvelisting){\n\n\n Fragment fr = new Improvelisting();\n FragmentChangeListener fc = (FragmentChangeListener) getActivity();\n fc.replaceFragment(fr);\n }\n\n /*else if (v == thingstodoattractionavailable)\n {\n Toast.makeText(getActivity(),\"things\",Toast.LENGTH_SHORT).show();\n\n }*/\n /* else if (v == peoplewviewd){\n\n getFragmentManager().popBackStack();\n }*/\n\n\n\n\n\n }", "@Override\n public void onClick(View view) {\n\n FragmentManager fm = getActivity().getSupportFragmentManager();\n if(fm.getBackStackEntryCount()>0){\n fm.popBackStack();\n }else{\n Toast.makeText(getActivity().getApplicationContext(),\"Nothing to POP\",Toast.LENGTH_LONG).show();\n }\n\n\n }", "@Override\n public void onClick(View view) {\n FragmentManager fm = getActivity().getSupportFragmentManager();\n if(fm.getBackStackEntryCount()>0){\n fm.popBackStack();\n }else{\n Toast.makeText(getActivity().getApplicationContext(),\"Nothing to POP\",Toast.LENGTH_LONG).show();\n }\n\n }", "@Override\n public void handleOnBackPressed() {\n F4_Muell goBack = new F4_Muell();\n FragmentTransaction transaction = getFragmentManager().beginTransaction();\n //altest Fragment in mainLayout wird ersetzt mit dem neuem Fragment\n transaction.replace(R.id.mainLayoutQuestionActivity, goBack);\n transaction.commit();\n }", "@Override\n public void onClick(View v) {\n getFragmentManager().popBackStack();\n }", "@Override\n public void onClick(View v) {\n CompteEnsg nextFrag = new CompteEnsg();\n getActivity().getFragmentManager().beginTransaction()\n .replace(R.id.content_frame, nextFrag, \"TAG_FRAGMENT\")\n .addToBackStack(null)\n .commit();\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View v = inflater.inflate(R.layout.fragment_permit_valid, container, false);\n\n // Button Exit\n Button btnExitVerifiedPermits = (Button) v.findViewById(R.id.btnExitVerifiedPermits);\n btnExitVerifiedPermits.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View view) {\n\n Toast.makeText(getActivity(), \"Exit clicked\", Toast.LENGTH_SHORT).show();\n sendJSON();\n\n// // Works...but crashes\n// // https://www.youtube.com/watch?v=eUG3VWnXFtg\n// // https://www.programcreek.com/java-api-examples/?class=android.support.v4.app.FragmentManager&method=popBackStack\n// FragmentManager manager = getActivity().getSupportFragmentManager();\n// manager.popBackStack(null, POP_BACK_STACK_INCLUSIVE);\n\n\n// FragmentManager manager = getActivity().getSupportFragmentManager();\n// manager.popBackStack(\"fragment map B\", POP_BACK_STACK_INCLUSIVE);\n\n FragmentManager manager = getActivity().getSupportFragmentManager();\n manager.popBackStack();\n\n\n\n// final PermitValidFragment fragment = new PermitValidFragment();\n// FragmentManager manager = getActivity().getSupportFragmentManager();\n// android.support.v4.app.FragmentTransaction trans = manager.beginTransaction();\n// trans.remove(fragment);\n// trans.commit();\n// manager.popBackStack();\n\n// FragmentManager fm = getActivity().getSupportFragmentManager();\n// fm.popBackStack(FragmentManager.POP_BACK_STACK_INCLUSIVE);\n// fm.popBackStack(\"PermitValidFragment\", FragmentManager.POP_BACK_STACK_INCLUSIVE);\n\n\n// MapAFragment fragment = new MapAFragment();\n// final android.support.v4.app.FragmentTransaction ft = getFragmentManager().beginTransaction();\n// ft.replace(R.id.frame, fragment, \"fragment map A\");\n// ft.commit();\n\n// String userid = \"1429392\";\n// String uuidTwelve = \"defaultTwelve\";\n//\n// MapBFragment fragment = null;\n// fragment = new MapBFragment().newInstance(userid, uuidTwelve);\n// final android.support.v4.app.FragmentTransaction ft = getFragmentManager().beginTransaction();\n// ft.replace(R.id.frame, fragment, \"fragment map B\");\n// ft.commit();\n\n// if (getFragmentManager().getBackStackEntryCount() == 0) {\n// getActivity().finish();\n// } else {\n// getFragmentManager().popBackStack();\n// }\n\n// getActivity().getFragmentManager().beginTransaction().remove(fragment).commit();\n\n// getActivity().getSupportFragmentManager().popBackStackImmediate();\\\n\n\n// FragmentActivity myContext = null;\n//\n// final FragmentManager fragManager = myContext.getSupportFragmentManager();\n// while (fragManager.getBackStackEntryCount() != 0) {\n// fragManager.popBackStackImmediate();\n// }\n\n// MapAFragment fragment = new MapAFragment();\n// final android.support.v4.app.FragmentTransaction ft = getFragmentManager().beginTransaction();\n// ft.replace(R.id.frame, fragment, \"fragment map A\");\n// ft.commit();\n\n// MapAFragment fragment = new MapAFragment();\n// final android.support.v4.app.FragmentTransaction ft = getFragmentManager().beginTransaction();\n// ft.replace(R.id.frame, fragment, \"fragment map A\");\n// ft.commit();\n\n// // This portion works\n// String userid = \"1429392\";\n// String uuidTwelve = \"defaultTwelve\";\n// final android.support.v4.app.FragmentTransaction ft = getFragmentManager().beginTransaction();\n// ft.replace(R.id.frame, new MapBFragment().newInstance(userid, uuidTwelve), \"waiting fragment\");\n// ft.commit();\n\n\n }\n });\n\n return v;\n }", "@Override\n public void onBackPressed() {\n if (getSupportFragmentManager().getBackStackEntryCount() >= 1) {\n\n // Get the current fragment on single_patient_fragment_container\n Fragment f = getSupportFragmentManager().findFragmentById(R.id.single_patient_fragment_container);\n if (f instanceof OptionFragment) {\n // Go back to PatientsActivity\n Intent intent = new Intent(this, PatientsActivity.class);\n startActivity(intent);\n overridePendingTransition(0, 0);\n finish();\n return;\n }\n\n if (f instanceof CheckupListFragment) {\n // Go back to OptionFragment\n Fragment fragment = new OptionFragment();\n Bundle bundle = new Bundle();\n bundle.putParcelable(\"selectedPatient\", patient);\n fragment.setArguments(bundle);\n getSupportFragmentManager().beginTransaction().replace(R.id.single_patient_fragment_container, fragment).commit();\n return;\n }\n\n if (f instanceof NewCheckupFragment) {\n // Go back to CheckupListFragment\n Fragment fragment = new CheckupListFragment();\n Bundle bundle = new Bundle();\n bundle.putParcelable(\"selectedPatient\", patient);\n bundle.putInt(\"bedNumber\", patient.getBedNr());\n bundle.putParcelableArrayList(\"selectedCheckups\", (ArrayList<? extends Parcelable>) patient.getCheckups());\n fragment.setArguments(bundle);\n getSupportFragmentManager().beginTransaction().replace(R.id.single_patient_fragment_container, fragment).commit();\n return;\n }\n\n if (f instanceof CheckupReportFragment) {\n // Go back to CheckupListFragment\n Fragment fragment = new CheckupListFragment();\n Bundle bundle = new Bundle();\n bundle.putParcelable(\"selectedPatient\", patient);\n bundle.putInt(\"bedNumber\", patient.getBedNr());\n bundle.putParcelableArrayList(\"selectedCheckups\", (ArrayList<? extends Parcelable>) patient.getCheckups());\n fragment.setArguments(bundle);\n getSupportFragmentManager().beginTransaction().replace(R.id.single_patient_fragment_container, fragment).commit();\n return;\n }\n\n if (f instanceof CheckupEmailFragment) {\n // Just pop the element on the stack.\n getSupportFragmentManager().popBackStack();\n return;\n }\n }\n return;\n }", "@Override\n public void onBackPressed() {\n /*if(!BaseViewHolder.getInstance().onBackPressed()) {\n super.onBackPressed();\n }*/\n FragmentManager fragmentManager = getSupportFragmentManager();\n /*FragmentManager.BackStackEntry backEntry=fragmentManager.getBackStackEntryAt(fragmentManager.getBackStackEntryCount()-1);\n Logger.i(TAG+\"onBackPressed\", backEntry.toString());*/\n //Logger.i(TAG+\"onBackPressed\", Integer.toString(BaseViewHolder.getInstance().onBackPressed()));\n fragmentManager.popBackStack();\n fragmentManager.executePendingTransactions();\n if(fragmentManager.getBackStackEntryCount()==0){\n super.onBackPressed();\n }else {\n BaseViewHolder.getInstance().onBackPressed();\n }\n }", "@Override\n public void gonearbypage() {\n getSupportFragmentManager().beginTransaction().replace(R.id.fragment_container_home,new NearbyFragment()).addToBackStack(\"Homepage\").commit();\n }", "@Override\n public void onBackPressed() {\n \n BaseFragment contentFragment = getContentFragment();\n if (contentFragment == null) {\n finish();\n return;\n }\n FragmentType contentFragmentType = FragmentType.getFragmentFor(contentFragment.getClass());\n while (true) {\n if (! getSupportFragmentManager().popBackStackImmediate()) {\n finish();\n return;\n }\n \n BaseFragment current = getContentFragment();\n if (current == null) {\n finish();\n return;\n }\n \n FragmentType currentFragmentType = FragmentType.getFragmentFor(current.getClass());\n if (currentFragmentType != contentFragmentType) {\n break;\n }\n }\n \n updateNavigationVisibility();\n }", "@Override\n public void onClick(View v) {\n FragmentManager fragmentManager = getFragmentManager();\n AllRequestedColleges allRequestedColleges=AllRequestedColleges.newInstance();\n FragmentTransaction transaction = fragmentManager.beginTransaction();\n transaction.add(android.R.id.content,allRequestedColleges).addToBackStack(\"faf\").commit();\n\n }", "private void backPressHandling() {\r\n FragmentManager manager = getSupportFragmentManager();\r\n if (manager.getBackStackEntryCount() <= 1) {\r\n finish();\r\n } else {\r\n manager.popBackStack();\r\n }\r\n }", "@Override\r\n\t\t\tpublic void onClick(View v)\r\n\t\t\t{\r\n\t\t\t\tgetFragmentManager().popBackStack();\r\n\t\t\t}", "@Override\n public void onBackPressed() {\n if (getFragmentManager().getBackStackEntryCount() == 0) {\n finish();\n } else {\n getFragmentManager().popBackStack();\n }\n }", "@Override\n public void onClick(View view) {\n Fragment newFragment = new QuestFragment();\n FragmentTransaction transaction = getFragmentManager().beginTransaction();\n transaction.replace(R.id.container, newFragment);\n transaction.addToBackStack(null);\n transaction.commit();\n }", "@Override\n public void onClick(View view) {\n Fragment newCase=new TripNoteAddFragment();\n FragmentTransaction transaction=getFragmentManager().beginTransaction();\n transaction.replace(R.id.content_frames,newCase); // give your fragment container id in first parameter\n transaction.addToBackStack(null); // if written, this transaction will be added to backstack\n transaction.commit();\n }", "@Override\n public void onClick(View v) {\n CompteEtudiant nextFrag = new CompteEtudiant();\n getActivity().getFragmentManager().beginTransaction()\n .replace(R.id.content_frame, nextFrag, \"TAG_FRAGMENT\")\n .addToBackStack(null)\n .commit();\n }", "@Override\n public void onBackPressed() {\n if(inRestaurantMenu||inDropDetail||inOtherFragment||inPastOrder||inProcessOrder) {\n FragmentManager fm = getSupportFragmentManager();\n for(int i = 0; i < fm.getBackStackEntryCount(); ++i) {\n fm.popBackStack();\n }\n loadHomeFragment();\n }\n else if(inPickDetail||inCompleteDetail) {\n getSupportFragmentManager().popBackStack();\n }else {\n super.onBackPressed();\n }\n\n }", "@Override\n public boolean onSupportNavigateUp() {\n getSupportFragmentManager().popBackStack();\n return true;\n }", "@Override\n public void gofavouritepage() {\n getSupportFragmentManager().beginTransaction().replace(R.id.fragment_container_home,new FavouriteFragment()).addToBackStack(\"Homepage\").commit();\n }", "private void switchFragment(int pos) {\n Fragment fragment=bottomBarList.get(pos);\n String backStateName = fragment.getClass().getName();\n String fragmentTag = backStateName;\n\n FragmentManager manager = getSupportFragmentManager();\n boolean fragmentPopped = manager.popBackStackImmediate (backStateName, 0);\n\n if (!fragmentPopped && manager.findFragmentByTag(fragmentTag) == null){ //fragment not in back stack, create it.\n FragmentTransaction ft = manager.beginTransaction();\n ft.replace(R.id.bottomNavFrameLayout, fragment, fragmentTag);\n ft.setTransition(FragmentTransaction.TRANSIT_FRAGMENT_FADE);\n ft.addToBackStack(backStateName);\n ft.commit();\n }\n\n\n }", "@Override\n public void onBackPressed(){\n\n int count = prevFragments.size();\n if(drawerLayout.isDrawerOpen(drawerListLeft)){\n\n drawerLayout.closeDrawer(drawerListLeft);\n\n } else if(drawerLayout.isDrawerOpen(drawerListRight)){\n\n drawerLayout.closeDrawer(drawerListRight);\n\n }else if (count > 1) {\n //super.onBackPressed();\n //additional code\n int last = fragmentsVisitedName.size() - 2;\n prevFragments.pop();\n\n fragmentTransaction = getSupportFragmentManager().beginTransaction();\n Fragment fragment = prevFragments.peek();\n getSupportActionBar().setTitle(fragmentsVisitedName.get(last));\n fragmentTransaction.replace(R.id.container, fragment);\n fragmentTransaction.addToBackStack(null);\n fragmentTransaction.commit();\n //fragment.onResume();\n\n\n fragmentsVisitedName.remove(last + 1);\n\n }\n }", "public void onUPP()\r\n {\r\n Fragment frag = getSupportFragmentManager().findFragmentById(R.id.fragmentSad);\r\n// //android.app.FragmentManager fm = getFragmentManager();\r\n// FragmentTransaction ft = getFragmentManager().beginTransaction();\r\n// ft.remove(frag);\r\n// ft.commit();\r\n//}\r\n\r\n FragmentManager fm = getSupportFragmentManager();\r\n fm.beginTransaction()\r\n .setCustomAnimations(android.R.anim.fade_in, android.R.anim.fade_out)\r\n .show(frag)\r\n .commit();\r\n\r\n }", "@Override\n public void onBackPressed() {\n if (drawer.isDrawerOpen(GravityCompat.START)) {\n drawer.closeDrawer(GravityCompat.START);\n } else {\n if (getSupportFragmentManager().getBackStackEntryCount() == 1){\n finish();\n\n } else {\n getSupportFragmentManager().popBackStack();\n }\n\n }\n\n\n }", "private void clearBackstack() {\n FragmentManager manager = getSupportFragmentManager();\n if (manager.getBackStackEntryCount() > 0) {\n FragmentManager.BackStackEntry first = manager.getBackStackEntryAt(0);\n manager.popBackStack(first.getId(), FragmentManager.POP_BACK_STACK_INCLUSIVE);\n }\n }", "@Override\r\n public boolean onKey(View v, int keyCode, KeyEvent event) {\n if( keyCode == KeyEvent.KEYCODE_BACK && event.getAction() == KeyEvent.ACTION_UP) {\r\n //Log.i(tag, \"onKey Back listener is working!!!\");\r\n // getFragmentManager().popBackStack(null, FragmentManager.POP_BACK_STACK_INCLUSIVE);\r\n getFragmentManager().beginTransaction().replace(R.id.container , new TeacherDay()).commit() ;\r\n return true;\r\n }\r\n return false;\r\n }", "@Override\n public void handleOnBackPressed() {\n Log.d(\"see\", \"onResume: lo\");\n singleton = Singleton.getInstance();\n singleton.setGo_massage_from_find(null);\n Navigation.findNavController(view).navigate(R.id.action_messages_Fragment_to_host_Tabs_Fragment);\n\n //Navigation.findNavController(view).navigate(R.id.action_messages_Fragment_to_host_Tabs_Fragment);\n// Fragment fragment = Messages_Fragment.this;\n// FragmentManager fragmentManager = getActivity().getSupportFragmentManager();\n// FragmentTransaction fragmentTransaction = fragmentManager.beginTransaction();\n//\n// fragmentTransaction.remove(fragment);\n// fragmentTransaction.commit();\n }", "@Override\n public void onClick(View v) {\n fragment = fragmentManager.findFragmentByTag(\"frag1\"); // you gonna find a fragment by a tag ..u defined that in acitivty when you called that fragment\n FragmentTransaction fragmentTransaction = fragmentManager.beginTransaction();\n if (fragment != null) {\n fragmentTransaction.remove(fragment); // remove Transaction\n }\n\n // now calling and adding another fragment after remove its parent fragment (where you are calling fragmetn from) fragment to fragment call\n fragment = new Fragment2();\n fragmentTransaction.add(R.id.base_layout, fragment, \"frag2\"); //giving tag to fragment\n fragmentTransaction.commit();\n }", "public void goMainStampCard() {\n FragmentManager fragmentManager = getSupportFragmentManager();\n FragmentTransaction fragmentTransaction = fragmentManager\n .beginTransaction();\n fragmentTransaction.setCustomAnimations(R.anim.abc_fade_in,\n R.anim.abc_fade_out);\n fragmentTransaction.addToBackStack(null);\n FragmentMainStampCard fragmentMain = FragmentMainStampCard\n .newInstances();\n fragmentTransaction.replace(R.id.container, fragmentMain);\n fragmentTransaction.commit();\n }", "@Override\n\tpublic void onClick(View v) {\n\t\tgetSupportFragmentManager().popBackStack(\"Homefrag\",\n\t\t\t\tFragmentManager.POP_BACK_STACK_INCLUSIVE);\n\n\t}", "public void onReturnGame() {\n setContentView(R.layout.activity_main);\n // Pop gameFragment\n fm.popBackStack(\"game\", FragmentManager.POP_BACK_STACK_INCLUSIVE);\n }", "public void replaceFragmentWithBack(Fragment mFragment) {\n FragmentManager fragmentManager = getSupportFragmentManager();\n fragmentManager.beginTransaction()\n .replace(R.id.tabswitch, mFragment).addToBackStack(null)\n .commit();\n }", "private void openTeacherCheck() {\n FragmentTransaction fr1 = getFragmentManager().beginTransaction().addToBackStack(\"Tag\");\n fr1.replace(R.id.fragment_container, new Fragment_View_In_Out());\n fr1.commit();\n }", "public void replaceFragment(Fragment fragment, String TAG) {\n\n FragmentManager fragmentManager = getSupportFragmentManager();\n fragmentManager.popBackStack(TAG, FragmentManager.POP_BACK_STACK_INCLUSIVE);\n FragmentTransaction fragmentTransaction = fragmentManager .beginTransaction();\n fragmentTransaction .replace(R.id.content_restaurant_main_cl_fragment, fragment);\n fragmentTransaction .addToBackStack(TAG);\n fragmentTransaction .commit();\n//\n// getSupportFragmentManager()\n// .beginTransaction()\n// .disallowAddToBackStack()\n//// .setCustomAnimations(R.anim.slide_left, R.anim.slide_right)\n// .replace(R.id.content_restaurant_main_cl_fragment, fragment, TAG)\n// .commit();\n }", "@Override\n public void onClick(View v) {\n Fragment newFragment = new NewMovimientoFragment();\n FragmentTransaction transaction = getFragmentManager().beginTransaction();\n\n // Replace whatever is in the fragment_container view with this fragment,\n // and add the transaction to the back stack\n transaction.replace(R.id.frame_container, newFragment);\n transaction.addToBackStack(null);\n\n // Commit the transaction\n transaction.commit();\n }", "@Override\n public void onClick(View v) {\n\n Bundle bundle = new Bundle();\n bundle.putString(\"tglawal\",tglawal);\n bundle.putString(\"tglakhir\",tglakhir);\n\n\n FragmentTransaction fragmentTransaction = getFragmentManager().beginTransaction();\n select_tanggal_report_akumulasi select_tanggal_report_akumulasi = new select_tanggal_report_akumulasi();\n select_tanggal_report_akumulasi.setArguments(bundle);\n\n fragmentTransaction.replace(R.id.layout, select_tanggal_report_akumulasi);\n getFragmentManager().popBackStackImmediate();\n fragmentTransaction.addToBackStack(null);\n fragmentTransaction.commit();\n//\n }", "public void onBack(View v){\r\n finish();\r\n }", "private void fragmentChange(){\n HCFragment newFragment = new HCFragment();\n FragmentTransaction transaction = getSupportFragmentManager().beginTransaction();\n\n // Replace whatever is in the fragment_container view with this fragment,\n // and add the transaction to the back stack if needed\n transaction.replace(R.id.hc_layout, newFragment);\n transaction.addToBackStack(null);\n\n // Commit the transaction\n transaction.commit();\n }", "@Override\n public boolean onKeyDown(int keyCode, KeyEvent event) {\n switch (event.getAction()) {\n case KeyEvent.ACTION_DOWN:\n\n if (keyCode == KeyEvent.KEYCODE_BACK) {\n if (getSupportFragmentManager().getBackStackEntryCount() > 0) {\n //Log.d(\"picher\", \"stackCount:\" + getSupportFragmentManager().getBackStackEntryCount() + \"fragments:\" + getSupportFragmentManager().getFragments().size());\n\n for (int i = 0; i < getSupportFragmentManager().getBackStackEntryCount(); i++) {\n // Log.d(\"picher\", \"backStackName:\" + getSupportFragmentManager().getBackStackEntryAt(i).getName());\n }\n getSupportFragmentManager().popBackStackImmediate();\n for (int i = 0; i < getSupportFragmentManager().getBackStackEntryCount(); i++) {\n //Log.d(\"picher\", \"弹栈之后backStackName:\" + getSupportFragmentManager().getBackStackEntryAt(i).getName());\n }\n return true;\n }\n\n }\n break;\n }\n return super.onKeyDown(keyCode, event);\n }", "void switchToFragment(Fragment newFrag) {\n getSupportFragmentManager().beginTransaction()\n .replace(R.id.fragment, newFrag)\n .addToBackStack(null)\n .commit();\n }", "@Override\n public boolean onKey(View v, int keyCode, KeyEvent event) {\n if( keyCode == KeyEvent.KEYCODE_BACK && event.getAction() == KeyEvent.ACTION_UP) {\n //Log.i(tag, \"onKey Back listener is working!!!\");\n getFragmentManager().popBackStack(\"newPoll\", FragmentManager.POP_BACK_STACK_INCLUSIVE);\n return true;\n }\n getActivity().onBackPressed();\n return false;\n }", "@Override\n public void onBackPressed() {\n Fragment currentFragment = getSupportFragmentManager().findFragmentById(R.id.homeFragmentContainer);\n\n DrawerLayout drawer = (DrawerLayout) findViewById(R.id.drawer_layout);\n if (drawer.isDrawerOpen(GravityCompat.START)) {\n drawer.closeDrawer(GravityCompat.START);\n } else if (!drawer.isDrawerOpen(GravityCompat.START)\n && ((currentFragment instanceof HomeFragment)\n || currentFragment instanceof SearchContactsFragment)) {\n super.onBackPressed();\n } else {\n loadFragment(new HomeFragment());\n updateNotificationsUI();\n }\n\n }", "@Override\n public void onBackPressed(){\n Fragment fragment = getSupportFragmentManager().findFragmentById(R.id.fragment_container);\n\n if (fragment instanceof HomeFragment || fragment instanceof UploadFragment\n || fragment instanceof ProfileFragment || fragment instanceof HistoryFragment) {\n Intent homeIntent = new Intent(Intent.ACTION_MAIN);\n homeIntent.addCategory( Intent.CATEGORY_HOME );\n homeIntent.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);\n startActivity(homeIntent);\n } else\n super.onBackPressed();\n }", "@Override\n public void onClick(View v) {\n\n Bundle args = new Bundle();\n\n args.putInt(\"index\",getAdapterPosition());\n\n MyFragmentClass fragment = new MyFragmentClass();\n\n fragment.setArguments(args);\n\n\n AppCompatActivity activity = (AppCompatActivity) v.getContext();\n\n activity.getSupportFragmentManager().beginTransaction().addToBackStack(null).replace(R.id.fragment_container,fragment).commit();\n }", "@Override\n public void onBackPressed()\n {\n // instead of going to new activity open up dialog fragment\n BackButtonDialogFragment backButtonDialogFragment = new BackButtonDialogFragment(this);\n backButtonDialogFragment.show(getSupportFragmentManager(),\"back\");\n }", "@Override\n public void onBackStackChanged() {\n int index = getChildFragmentManager().getBackStackEntryCount() - 1;\n if (index < 0) return;\n\n //noinspection WrongConstant\n changeLayoutFromTag(getChildFragmentManager().getBackStackEntryAt(index).getName());\n }", "public void back_nowShowing(View view){\n finish();\n }", "public void goAddFriends (View view){\n Fragment newFragment = new AddFriendsFragment();\n FragmentTransaction transaction = getSupportFragmentManager().beginTransaction();\n\n // Replace whatever is in the fragment_container view with this fragment,\n // and add the transaction to the back stack if needed\n transaction.replace(R.id.fragment_container, newFragment);\n transaction.addToBackStack(null);\n\n // Commit the transaction\n transaction.commit();\n\n }", "@Override\n public void onBackPressed() {\n if (drawerLayout.isDrawerOpen(GravityCompat.START)) {\n drawerLayout.closeDrawer(GravityCompat.START);\n } else if (getSupportFragmentManager().getBackStackEntryCount() > 1) {\n getSupportFragmentManager().popBackStack();\n }\n }", "@Override\n public void onInvalidTodoListUuid() {\n getActivity().getSupportFragmentManager().popBackStack();\n }", "@Override\n public void onClick(View v) {\n Fragment f = new RecordingFragment();\n mng.beginTransaction().replace(R.id.content_frame, f).addToBackStack(null).commit();\n }", "private void loadFragment(String name) {\n FragmentTransaction fragmentTransaction = MainActivity.fm.beginTransaction();\n // replace the FrameLayout with the new Fragment\n fragmentTransaction.replace(R.id.mainFrameLayout, MainActivity.currentFragment);\n fragmentTransaction.addToBackStack(name);\n fragmentTransaction.commit();\n }", "public void popFragments(boolean animation) {\n try {\n Fragment fragment;\n fragment = mStacks.get(mCurrentTab).elementAt(mStacks.get(mCurrentTab).size() - 2);\n\n\n /*pop current fragment from stack.. */\n mStacks.get(mCurrentTab).pop();\n\n /* We have the target fragment in hand.. Just show it.. Show a standard navigation animation*/\n FragmentManager manager = getSupportFragmentManager();\n FragmentTransaction ft = manager.beginTransaction();\n\n\n if (animation) {\n if (StaticFunction.INSTANCE.getLanguage(MainActivity.this) == 15) {\n ft.setCustomAnimations(R.anim.slide_in_right, R.anim.slide_out_left);\n } else {\n ft.setCustomAnimations(R.anim.slide_in_left, R.anim.slide_out_right);\n }\n }\n ft.replace(R.id.flContainer, fragment);\n\n if (fragment.isVisible())\n fragment.onResume();\n\n ft.commit();\n } catch (Exception e) {\n e.printStackTrace();\n }\n }", "private void loadFragment(Fragment fragment, boolean addToBackStack) {\n FragmentTransaction transaction = getSupportFragmentManager()\n .beginTransaction()\n .replace(R.id.frame, fragment);\n if(addToBackStack) {\n transaction.addToBackStack(null);\n }\n transaction.commit();\n }", "@Override\n public void onViewCreated(View view, Bundle savedInstanceState) {\n super.onViewCreated(view, savedInstanceState);\n view.findViewById(R.id.image_back).setOnClickListener(\n new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n getFragmentManager().popBackStack();\n }\n });\n }", "@Override\n public void onClick(View v) {\n android.app.Fragment onjF = null;\n onjF = new BlankFragment();\n FragmentManager fragmentManager = getFragmentManager();\n fragmentManager.beginTransaction().replace(R.id.fragment,onjF).commit();\n }", "@Override\n\tpublic void onBackStackChanged() {\n\t\t// the root fragment is the first one\n\t\tfinal int entryCount = getSupportFragmentManager().getBackStackEntryCount();\n\t\tif(entryCount == 1){\n\t\t\tmActionBar.setTitle(R.string.app_name);\n\t\t\tmActionBar.setDisplayHomeAsUpEnabled(false);\n\t\t}else if(entryCount == 0){\n\t\t\t// no fragment in stack, so destroy the activity\n\t\t\tfinish();\n\t\t}\n\t}", "@Override\n public void onBackPressed() {\n\n\n if ( activar==1 )//se asigna 1 en el fragment principal chofer y usuario\n {//the fragment on which you want to handle your back press\n finish();\n }\n else{// si es diferente a inicio, principal usuario o principa chofer\n super.onBackPressed();\n\n\n }\n }", "@Override\n public void onBackPressed() {\n if (Utils.isTablet(getApplicationContext())) {\n finish();\n } else {\n final Fragment fragment = getSupportFragmentManager().findFragmentByTag(FRAGMENT_TAG);\n\n if (fragment instanceof ListingItemFragment) {\n if (fragment.isAdded() && fragment.isVisible()) {\n getSupportFragmentManager().beginTransaction().remove(fragment).commit();\n changeActivityViewsVisibility(true);\n\n setTitle(getString(R.string.search_results_title));\n } else {\n finish();\n }\n\n } else if (fragment instanceof MapViewFragment) {\n getSupportFragmentManager().popBackStackImmediate();\n } else {\n finish();\n }\n\n }\n }", "@Override\n public void onBackPressed() {\n int count = getSupportFragmentManager().getBackStackEntryCount();\n\n if (count == 0) {\n final CharSequence[] items = {\"Save\", \"Exit without saving\", \"Cancel\"};\n AlertDialog.Builder builder = new AlertDialog.Builder(this);\n builder.setTitle(\"Select an option:\");\n\n builder.setItems(items, new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialogInterface, int i) {\n if (items[i].equals(\"Save\")) {\n //check if age and/or name is empty\n if (m_ChangeAge.getText().toString().isEmpty() || m_ChangeName.getText().toString().isEmpty()) {\n //display error message\n Toasty.error(m_context, \"Name and Age must be present\", Toast.LENGTH_SHORT).show();\n } else {\n //if not, proceed with saving data\n //use a thread to upload the data to firebase\n ThreadForUpload threadForUpload = new ThreadForUpload();\n Thread t = new Thread(threadForUpload);\n t.start();\n\n AppCompatDelegate.setCompatVectorFromResourcesEnabled(true);\n setContentView(R.layout.menu_container);\n Profile profileFragment = new Profile();\n m_Transaction = getFragmentManager().beginTransaction();\n m_Transaction.replace(R.id.display, profileFragment);\n m_Transaction.commit();\n finish();\n }\n\n } else if (items[i].equals(\"Exit without saving\")) {\n //Nothing is saved and a user is redirected to his profile page\n //Move to Profile\n AppCompatDelegate.setCompatVectorFromResourcesEnabled(true);\n setContentView(R.layout.menu_container);\n\n Profile profileFragment = new Profile();\n m_Transaction = getFragmentManager().beginTransaction();\n m_Transaction.replace(R.id.display, profileFragment);\n m_Transaction.commit();\n finish();\n\n } else if (items[i].equals(\"Cancel\")) {\n dialogInterface.dismiss();\n }\n }\n });\n builder.show();\n\n } else {\n getSupportFragmentManager().popBackStack();\n }\n\n }", "@Override\n public void onBackPressed() {\n DrawerLayout drawer = (DrawerLayout) findViewById(R.id.drawer_layout);\n boolean drawerOpen = drawer.isDrawerOpen(GravityCompat.START);\n if (drawerOpen) drawer.closeDrawer(GravityCompat.START);\n else {\n if (getSupportFragmentManager().getBackStackEntryCount() > 0) {\n getSupportFragmentManager().popBackStack();\n } else {\n super.onBackPressed();\n }\n }\n }", "@Override\n public void onClick(View v) {\n FragmentTransaction ft = getActivity().getSupportFragmentManager().beginTransaction();\n ft.setCustomAnimations(R.anim.enter_from_right, R.anim.exit_to_left, R.anim.enter_from_left, R.anim.exit_to_right);\n ft.replace(R.id.fragment_container, new SignUpFragment());\n ft.addToBackStack(null);\n ft.commit();\n }", "private void returnBack()\n {\n getActivity().onBackPressed();\n }", "public static void replaceFragmentHistory(Fragment fragment, AppCompatActivity context) {\n /* if (isUsedBundle) {\n Bundle args = new Bundle();\n args.putInt(bundleParameterName, bundleValue);\n fragment.setArguments(args);\n }*/\n if (context != null) {\n try {\n FragmentTransaction transaction =\n context.getSupportFragmentManager().beginTransaction();\n transaction.setCustomAnimations(R.anim.slide_in_left, R.anim.slide_in_right);\n\n transaction.replace(R.id.menuContainer, fragment);\n transaction.addToBackStack(null);\n transaction.commitAllowingStateLoss();\n\n } catch (IllegalStateException e) {\n e.printStackTrace();\n context.finish();\n }\n }\n }", "private void showHomeOnClick(){\n //create a new fragment and transaction\n homeFragment = new HomeFragment();\n FragmentTransaction ft = getFragmentManager().beginTransaction();\n //replace whatever is in the fragment container view with this fragment\n //and add the transaction to the back stack\n ft.add(R.id.fragment_container,homeFragment);\n ft.addToBackStack(null);\n ft.commit();\n }", "public void loadFragment(Fragment fragment) { Animation connectingAnimation = AnimationUtils.loadAnimation(getContext(), R.anim.slide_up);\n//\n FragmentTransaction transaction = getActivity().getSupportFragmentManager().beginTransaction();\n transaction.replace(R.id.nowShowingFrame, fragment);\n transaction.addToBackStack(null);\n transaction.commit();\n }", "public void returnFromFragment(View v) {\n blankFrag.setVisibility(View.VISIBLE);\n itemFrag.setVisibility(View.INVISIBLE);\n userFrag.setVisibility(View.INVISIBLE);\n Toast.makeText(AdminActivity.this, \"Back\", Toast.LENGTH_SHORT).show();\n }", "@Override\r\n \tpublic void onDetach() {\r\n \t super.onDetach();\r\n \t try {\r\n \t Field childFragmentManager = Fragment.class.getDeclaredField(\"mChildFragmentManager\");\r\n \t childFragmentManager.setAccessible(true);\r\n \t childFragmentManager.set(this, null);\r\n\r\n \t } catch (NoSuchFieldException e) {\r\n \t throw new RuntimeException(e);\r\n \t } catch (IllegalAccessException e) {\r\n \t throw new RuntimeException(e);\r\n \t }\r\n\r\n \t}", "@Override\n public void onClick(View v) {\n FragmentTransaction FT = getSupportFragmentManager().beginTransaction();\n //FT.add(R.id.Frame_Fragments,new Another Fragment());\n if (simplefragment2.isAdded()){\n FT.show(simplefragment2);\n FT.remove(simplefragment);\n Toast.makeText(getApplicationContext(), \"Fragment di tambahkan sebelumnya\", Toast.LENGTH_SHORT).show();\n }\n else {\n FT.replace(R.id.Frame_Fragments,simplefragment2);\n }\n FT.addToBackStack(null);\n FT.commit();\n\n button2.setVisibility(View.VISIBLE);\n button.setVisibility(View.GONE);\n }", "private void setFragment(Fragment fragment) {\n FragmentTransaction fragmentTransaction = getSupportFragmentManager().beginTransaction();\n fragmentTransaction.replace(R.id.main_frame, fragment);\n// fragmentTransaction.addToBackStack(null);\n fragmentTransaction.commit();\n }", "@Override\n public void onClick(View v){\n SignUpFragment fragment = new SignUpFragment();\n FragmentManager manager = getFragmentManager();\n manager.beginTransaction().replace(R.id.fragmentHolder,fragment,\"Sign Up\").commit();\n }", "@Override\n public void onDestroyView() {\n super.onDestroyView();\n\n/* try {\n Fragment fragment = (getFragmentManager()\n .findFragmentById(R.id.mandiMap));\n if(fragment!=null) {\n FragmentTransaction ft = getActivity().getSupportFragmentManager()\n .beginTransaction();\n ft.remove(fragment);\n ft.commit();\n }\n } catch (Exception e) {\n e.printStackTrace();\n }*/\n }", "@Override\n public void handleOnBackPressed() {\n getActivity().finish();\n }", "@Override\n public void onLoginHelpSuccess() {\n \tgetSupportFragmentManager().popBackStackImmediate();\n }", "public void goBack(View view){\n finish();\n }", "@Override\n public void onClick(View v) {\n FragmentManager fragmentManager = ((AppCompatActivity) getContext()).getSupportFragmentManager();\n FragmentTransaction transaction = fragmentManager.beginTransaction();\n transaction.replace(R.id.rel_main_parentAllView, new FragmentFavoritesApp());\n transaction.commit();\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n rootView = inflater.inflate(R.layout.activity_list,container);\n Button button = (Button) rootView.findViewById(R.id.fragment_button);\n button.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View view) {\n\n android.app.FragmentManager fragmentManager = getActivity().getFragmentManager();\n android.app.FragmentTransaction fragmentTransaction = fragmentManager.beginTransaction();\n Bundle bundle = new Bundle();\n bundle.putString(\"main\", null);\n fragmentTransaction.replace(R.id.fragment_container_framelayout, null);\n fragmentTransaction.addToBackStack(\"next\");\n fragmentTransaction.commit();\n }\n });\n return rootView;\n }", "@Override\n public void onBackPressed() {\n if (curFragment != PAGE_SHOP_CART) {\n backFragment(preFragment);\n } else {\n this.getParent().onBackPressed();\n }\n }", "private void placeNewFragment(Fragment f) {\r\n\t\tFragmentManager manager = getSupportFragmentManager();\r\n FragmentTransaction fragmentTransaction = manager.beginTransaction();\r\n fragmentTransaction.replace(R.id.fragmentHolder, f);\r\n fragmentTransaction.addToBackStack(null);\r\n fragmentTransaction.commit();\r\n\t}", "@Override\n public void onBackPressed() {\n\n if (getSupportFragmentManager().getBackStackEntryCount() == 0) {\n Intent intent = new Intent(Intent.ACTION_MAIN);\n intent.addCategory(Intent.CATEGORY_HOME);\n intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);\n startActivity(intent);\n finish();\n } else if (getSupportFragmentManager().getBackStackEntryCount() == 1) {\n TabLayout.Tab tab = tabLayout.getTabAt(0);\n tab.select();\n getSupportFragmentManager().popBackStack();\n } else {\n getSupportFragmentManager().popBackStack();\n }\n }", "private void replaceFragment(int pos) {\n Fragment fragment = null;\n switch (pos) {\n case 0:\n //mis tarjetas\n fragment = new CardsActivity();\n break;\n case 1:\n //buscador online\n fragment = new CardsActivityOnline();\n break;\n case 2:\n //active camera\n Intent it = new Intent(this, com.google.zxing.client.android.CaptureActivity.class);\n startActivityForResult(it, 0);\n break;\n case 3:\n ParseUser.getCurrentUser().logOut();\n finish();\n onBackPressed();\n break;\n default:\n //fragment = new CardsActivity();\n break;\n }\n\n if(null!=fragment) {\n FragmentManager fragmentManager = getSupportFragmentManager();\n FragmentTransaction transaction = fragmentManager.beginTransaction();\n transaction.replace(R.id.main_content, fragment);\n transaction.addToBackStack(null);\n transaction.commit();\n }\n }", "@Override\n public void onClick(View v){\n FragmentTransaction transaction = getFragmentManager().beginTransaction();\n transaction.replace(R.id.frame_layout,new final_confirmation());\n transaction.commit();\n }", "public void replaceFragment(Fragment fragment, String tag) {\n for (int i = 0; i < fragmentManager.getBackStackEntryCount(); ++i) {\n fragmentManager.popBackStackImmediate();\n }\n FragmentTransaction fragmentTransaction = fragmentManager.beginTransaction();\n fragmentTransaction.replace(R.id.fragment_container, fragment);\n fragmentTransaction.commit();\n fragmentTransaction.addToBackStack(tag);\n\n }", "@Override\n public void goBack() {\n\n }", "@Override\n public void onSaveFABClick() {\n getSupportFragmentManager().popBackStack();\n getSupportActionBar().show();\n }", "public boolean onPopBackStack() {\n return false;\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view=inflater.inflate(R.layout.fragment_work_history, container, false);\n addwork=view.findViewById(R.id.btnaddwork);\n nextdu=view.findViewById(R.id.nextedu);\n l12=view.findViewById(R.id.workexper2);\n nextdu.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n\n\n\n\n\n\n\n Fragment someFragment = new EducationFragment();\n FragmentTransaction transaction = getFragmentManager().beginTransaction();\n transaction.replace(R.id.fragment_container, someFragment ); // give your fragment container id in first parameter\n transaction.addToBackStack(null); // if written, this transaction will be added to backstack\n transaction.commit();\n }\n });\n addwork.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n addwork.setVisibility(View.INVISIBLE);\n l12.setVisibility(View.VISIBLE);\n }\n });\n return view;\n }", "@Override\n\tpublic boolean popBackStack() {\n\t\treturn this.getSupportFragmentManager().popBackStackImmediate();\n\t}", "public void onBack(View w){\n onBackPressed();\n }", "private void goBack() {\n Intent intent = new Intent(this, ReformTypeDetailActivity.class);\n intent.putExtra(Key.REFORM_TYPE_ID, mReformTypeId);\n intent.putExtra(Key.REFORM_TYPE_NAME, mReformType.getName());\n startActivity(intent);\n finish();\n }", "@Override\n public void onBackPressed() {\n Fragment fragment = getSupportFragmentManager().findFragmentById(R.id.main_container);\n if (drawerLayout.isDrawerOpen(GravityCompat.START)) {\n drawerLayout.closeDrawer(GravityCompat.START);\n } else if (fragment instanceof HomeFragment) {\n MainActivity.this.finish();\n System.exit(0);\n } else if (fragment instanceof DetailScreenFragment) { //from car detail screen to car list screen we make invisible share icon\n searchView.setVisibility(View.VISIBLE); // and visible navigation icon and search view\n ivNavigation.setVisibility(View.VISIBLE);\n ivNavigation.setOnClickListener(this);\n ivShare.setVisibility(View.GONE);\n homeFragment();\n }\n }", "@Override\n\t\t\tpublic void onClick(View v) {\n\t\t FragmentManager fm = getFragmentManager(); \n\t\t FragmentTransaction tx = fm.beginTransaction();\n\t\t tx.remove(FragmentManagementHistoryResult.this);\n\t\t tx.commit();\n\t\t\t}", "@Override\n public void onBackPressed() {\n //super.onBackPressed();\n finish();\n }", "@Override\n public void onBackPressed() {\n //super.onBackPressed();\n goBack();\n }", "public void back() {\n Views.goBack();\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View view = inflater.inflate(R.layout.fragment_k_y_c_, container, false);\n Button button = view.findViewById(R.id.btn);\n button.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n Fragment fragment= new FloatButton_Fragment();\n FragmentTransaction transaction = getFragmentManager().beginTransaction();\n transaction.replace(R.id.mainlayout, fragment); // fragmen container id in first parameter is the container(Main layout id) of Activity\n transaction.addToBackStack(null); // this will manage backstack\n transaction.commit(); }\n });\n\n\n return view;\n }", "private void resetFragment() {\n\t\tFragment fragment = hMapTabs.get(mSelectedTab).get(0);\n\t\thMapTabs.get(mSelectedTab).clear();\n\t\thMapTabs.get(mSelectedTab).add(fragment);\n\t\tFragmentManager manager = getSupportFragmentManager();\n\t\tFragmentTransaction ft = manager.beginTransaction();\n\t\tft.setCustomAnimations(android.R.anim.fade_in, android.R.anim.fade_out);\n\t\tft.replace(R.id.realtabcontent, fragment);\n\t\tft.commit();\n\n\t\tshouldDisplayHomeUp();\n\n\t}", "@Override\n\tpublic boolean onKeyDown(int keyCode, KeyEvent event) {\n\n\n\t\tif ((keyCode == KeyEvent.KEYCODE_BACK)) {\n\t\t\t\n\t\t\tint backStackEntryCount = PlayupLiveApplication.getFragmentManager().getBackStackEntryCount();\n\n\t\t\tif ( backStackEntryCount <= 1 ) {\n\t\t\t\tfinish();\n\t\t\t\tConstants.isCurrent = false;\n\t\t\t\treturn true;\n\t\t\t} else {\n\n\t\t\t\tif ( backStackEntryCount == 2 ) {\n\t\t\t\t\tif ( PlayupLiveApplication.getFragmentManager().getBackStackEntryAt( 0 ).getName().equalsIgnoreCase( \"TopBarFragment\") || \n\t\t\t\t\t\t\tPlayupLiveApplication.getFragmentManager().getBackStackEntryAt( 1 ).getName().equalsIgnoreCase( \"TopBarFragment\") ) {\n\n\t\t\t\t\t\tfinish();\n\t\t\t\t\t\tConstants.isCurrent = false;\n\t\t\t\t\t\treturn true;\n\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\tString topFragmentName = PlayupLiveApplication.getFragmentManagerUtil().getTopFragmentName();\n\n\t\t\t\t\n\t\t\t\tString[] fragmentName = topFragmentName.split(\"%\", 2);\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\tif(fragmentName != null && fragmentName.length > 0)\n\t\t\t\t\ttopFragmentName = fragmentName[0];\n\t\t\t\t\n\t\t\t\t\n\n\t\t\t\tif (topFragmentName != null\n\n\t\t\t\t\t\t&& ( topFragmentName.equalsIgnoreCase(\"LeagueSelectionFragment\") \n\t\t\t\t\t\t\t\t|| topFragmentName.equalsIgnoreCase(\"MatchHomeFragment\"))\n\t\t\t\t\t\t\t\t|| topFragmentName.equalsIgnoreCase(\"LiveSportsFragment\")\n\t\t\t\t\t\t\t\t|| topFragmentName.equalsIgnoreCase(\"MatchRoomFragment\")\n\t\t\t\t\t\t\t\t|| topFragmentName.equalsIgnoreCase(\"InviteFriendFragment\")\n\t\t\t\t\t\t\t\t|| topFragmentName.equalsIgnoreCase(\"PrivateLobbyInviteFriendFragment\")\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t|| topFragmentName.equalsIgnoreCase(\"PlayupFriendsFragment\") \n\t\t\t\t\t\t\t\t|| topFragmentName.equalsIgnoreCase(\"DirectConversationFragment\") \n\t\t\t\t\t\t\t\t|| topFragmentName.equalsIgnoreCase(\"DirectMessageFragment\")\n\t\t\t\t\t\t\t\t|| topFragmentName.equalsIgnoreCase(\"WebViewFragment\")\n\t\t\t\t\t\t\t\t|| topFragmentName.equalsIgnoreCase(\"LeagueLobbyFragment\")\n\t\t\t\t\t\t\t\t|| topFragmentName.equalsIgnoreCase(\"AllSportsFragment\")\n\t\t\t\t\t\t\t\t|| topFragmentName.equalsIgnoreCase(\"PostMessageFragment\")) {\n\n\n\n\t\t\t\t\tMessage msg = new Message();\n\t\t\t\t\tmsg.obj = \"handleBackButton\";\n\n\t\t\t\t\tPlayupLiveApplication.callUpdateOnFragments(msg);\n\n\t\t\t\t\ttopFragmentName = null;\n\t\t\t\t\treturn true;\n\t\t\t\t} else if (topFragmentName != null\n\t\t\t\t\t\t&& topFragmentName.equalsIgnoreCase(\"FriendsFragment\")) {\n\n\t\t\t\t\tint backStackCount = PlayupLiveApplication.getFragmentManager().getBackStackEntryCount();\n\t\t\t\t\tBackStackEntry entry = null;\n\t\t\t\t\tBackStackEntry entry2 = null;\n\t\t\t\t\tif ( backStackCount - 2 > -1 ) {\n\t\t\t\t\t\tentry = PlayupLiveApplication.getFragmentManager().getBackStackEntryAt( backStackCount - 2 );\n\t\t\t\t\t}\n\t\t\t\t\tif ( entry != null && entry.getName().contains( \"PlayupFriendsFragment\" ) ) {\n\t\t\t\t\t\tentry = null;\n\t\t\t\t\t\t\n\t\t\t\t\t\tif ( backStackCount - 3 > -1 ) {\n\t\t\t\t\t\t\tentry2 = PlayupLiveApplication.getFragmentManager().getBackStackEntryAt( backStackCount - 3 );\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t\tif ( entry2 != null && entry2.getName().contains( \"DirectConversationFragment\" ) ) {\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tPlayupLiveApplication.getFragmentManagerUtil().popBackStackTill( entry2.getName() );\n\t\t\t\t\t\t\tentry2 = null;\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t} else {\n\t\t\t\t\t\tMessage msg = new Message();\n\t\t\t\t\t\tmsg.obj = \"handleBackButton\";\n\n\t\t\t\t\t\tPlayupLiveApplication.callUpdateOnFragments(msg);\n\n\t\t\t\t\t\ttopFragmentName = null;\n\t\t\t\t\t}\n\t\t\t\t\treturn true;\n\t\t\t\t} else {\n\t\t\t\t\treturn super.onKeyDown(keyCode, event);\n\t\t\t\t}\n\n\t\t\t}\n\t\t}\n\n\n\t\treturn super.onKeyDown(keyCode, event);\n\t}", "public void onBackPressed() {\n Toast.makeText(getActivity().getApplicationContext(), \"Back pressed\", Toast.LENGTH_SHORT).show();\n return;\n }", "protected void closeOnBack(){\n PosNegDialog dialog = new PosNegDialog(\"אזהרה\", \"אם תלחץ על המשך, המשחק יגמר.\\nלהמשיך?\",\n \"המשך\",\"ביטול\", ()-> {\n Intent exit = new Intent(getApplicationContext(), MainActivity.class);\n initGame();\n startActivity(exit);\n }\n ,()->{});\n dialog.show(getSupportFragmentManager(),\"closeOnBack\");\n }" ]
[ "0.79266757", "0.77944434", "0.77667606", "0.75143844", "0.73792624", "0.73405683", "0.7208363", "0.716867", "0.7139277", "0.7133486", "0.70905995", "0.7067123", "0.7061135", "0.7040306", "0.6990355", "0.6981675", "0.6980972", "0.6969796", "0.6955737", "0.69324076", "0.69188", "0.6916702", "0.6910967", "0.68954474", "0.68449223", "0.68001086", "0.6796543", "0.67732054", "0.6755166", "0.67463315", "0.6745763", "0.6709098", "0.67089593", "0.6664753", "0.666325", "0.6662279", "0.6642838", "0.662596", "0.66215336", "0.6620239", "0.6610518", "0.6592346", "0.6583427", "0.65830564", "0.65657043", "0.6542436", "0.6538768", "0.65383327", "0.6528787", "0.652672", "0.6522609", "0.6514131", "0.6503145", "0.6498656", "0.6481152", "0.6478844", "0.6477563", "0.64713913", "0.6469127", "0.64641154", "0.64506227", "0.643621", "0.6434878", "0.64263874", "0.6417968", "0.6397964", "0.6397468", "0.6385508", "0.63773245", "0.63760847", "0.63756466", "0.6366638", "0.6365942", "0.63655186", "0.63611066", "0.636024", "0.63526744", "0.6351013", "0.6348531", "0.63485223", "0.63473153", "0.6340732", "0.63310176", "0.6326332", "0.6323925", "0.6318215", "0.62955636", "0.6289667", "0.62794787", "0.62794286", "0.6275372", "0.6268365", "0.62667155", "0.6266054", "0.62618905", "0.62505996", "0.6248068", "0.62475824", "0.6246314", "0.6235768", "0.6226391" ]
0.0
-1
Inflate the layout for this fragment
@Override public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { view = inflater.inflate(R.layout.company_activity_profile, container, false); b3 = getArguments(); username = b3.getString("username"); myRef = database.getReference("companies/"+username+"/profile"); companyName = view.findViewById(R.id.companyName1); address = view.findViewById(R.id.address1); city = view.findViewById(R.id.city1); contact = view.findViewById(R.id.contact1); update = view.findViewById(R.id.update); update.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View view) { AlertDialog.Builder builder = new AlertDialog.Builder(getActivity()); builder.setMessage("Are you sure to update details") .setPositiveButton("OK", new DialogInterface.OnClickListener() { @Override public void onClick(DialogInterface dialog, int which) { boolean valid = validate(companyName.getText().toString(), address.getText().toString(), city.getText().toString(), contact.getText().toString()); if (valid) { try { myRef.child("companyName").setValue(companyName.getText().toString()); myRef.child("address").setValue(address.getText().toString()); myRef.child("city").setValue(city.getText().toString()); myRef.child("contact").setValue(contact.getText().toString()); Toast.makeText(getActivity(), "Details Updated \n Sucessfully", Toast.LENGTH_LONG).show(); } catch (Exception e) { Toast.makeText(getActivity(), "error updating", Toast.LENGTH_LONG); } } else{ Toast.makeText(getActivity(),"Correct the details",Toast.LENGTH_LONG).show(); } } }).setNegativeButton("cancel",null); AlertDialog alert = builder.create(); alert.show(); } }); myRef.addValueEventListener(new ValueEventListener() { @Override public void onDataChange(DataSnapshot dataSnapshot) { // This method is called once with the initial value and again // whenever data at this location is updated. value = dataSnapshot; // Toast.makeText(getActivity()," loading",Toast.LENGTH_LONG ).show(); try { companyName.setText(value.child("companyName").getValue().toString()); city.setText(value.child("city").getValue().toString()); address.setText(value.child("address").getValue().toString()); contact.setText(value.child("contact").getValue().toString()); } catch(Exception e){ Toast.makeText(getActivity(),"error loading",Toast.LENGTH_LONG ).show(); } } @Override public void onCancelled(DatabaseError error) { // Failed to read value Log.w(TAG, "Failed to read value.", error.toException()); } }); 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
This method is called once with the initial value and again whenever data at this location is updated.
@Override public void onDataChange(DataSnapshot dataSnapshot) { value = dataSnapshot; // Toast.makeText(getActivity()," loading",Toast.LENGTH_LONG ).show(); try { companyName.setText(value.child("companyName").getValue().toString()); city.setText(value.child("city").getValue().toString()); address.setText(value.child("address").getValue().toString()); contact.setText(value.child("contact").getValue().toString()); } catch(Exception e){ Toast.makeText(getActivity(),"error loading",Toast.LENGTH_LONG ).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 Initialized_Data() {\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 }", "@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}", "protected void storeCurrentValues() {\n }", "public void willbeUpdated() {\n\t\t\n\t}", "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 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 }", "private void initialData() {\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 onLocationChanged(Location location) {\n \t\tthis.location = location;\n \t}", "@Override\n\tpublic void update() {}", "@Override\n\tpublic void update() {}", "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\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\r\n\tpublic void update() {\n\t}", "@Override\r\n\tpublic void update() {\n\t}", "@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.68561786", "0.66544884", "0.64456207", "0.64046144", "0.62928224", "0.6258271", "0.62507087", "0.62487507", "0.6216648", "0.6216648", "0.6216648", "0.61928713", "0.6189378", "0.6162831", "0.6159383", "0.6159383", "0.61488473", "0.61449325", "0.6142972", "0.6118543", "0.6087955", "0.607658", "0.60718656", "0.60702163", "0.6055747", "0.6055697", "0.6055696", "0.6052815", "0.6052644", "0.60463345", "0.60386515", "0.6018563", "0.6017468", "0.60085356", "0.5990239", "0.5985794", "0.5985142", "0.5969022", "0.59668905", "0.5960158", "0.5960158", "0.5960158", "0.5960158", "0.5960158", "0.5958618", "0.594116", "0.59402883", "0.59368324", "0.59345484", "0.5914104", "0.59076583", "0.59073514", "0.5905346", "0.59026", "0.58972645", "0.5896338", "0.5882846", "0.5881837", "0.5880455", "0.58643526", "0.5841234", "0.58299667", "0.5826577", "0.58222896", "0.58208704", "0.5819348", "0.5819348", "0.581573", "0.581008", "0.5808547", "0.5805597", "0.5798111", "0.5795907", "0.5791954", "0.5787513", "0.5786977", "0.5785819", "0.5785819", "0.57846636", "0.5771166", "0.5766457", "0.5756925", "0.5756697", "0.5749145", "0.57454413", "0.57403785", "0.5734284", "0.5731307", "0.5730974", "0.5726769", "0.5724409", "0.5724409", "0.5724409", "0.5724409", "0.5724409", "0.5724409", "0.57240975", "0.572106", "0.5717724", "0.57147354", "0.57147354" ]
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 }", "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 }", "@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 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.65218383", "0.6442705", "0.6258159", "0.6077522", "0.60265213", "0.59383893", "0.59274745", "0.58974475", "0.58921486", "0.5891042", "0.58214223", "0.58127886", "0.58127886", "0.58089095", "0.5798501", "0.5798035", "0.57758427", "0.57733274", "0.57357085", "0.5727801", "0.57157075", "0.5698555", "0.5682706", "0.56781024", "0.56753975", "0.56735563", "0.56735563", "0.56387395", "0.56387395", "0.56387395", "0.56387395", "0.56387395", "0.56244725", "0.56244725", "0.56244725", "0.56244725", "0.56244725", "0.56244725", "0.5617852", "0.56137586", "0.56120807", "0.5604088", "0.55841964", "0.5570049", "0.55673003", "0.55673003", "0.5562022", "0.55445325", "0.554327", "0.5542515", "0.5542515", "0.5542515", "0.5542515", "0.5542515", "0.5542515", "0.5542515", "0.5542515", "0.5542515", "0.5542515", "0.55247384", "0.5524301", "0.5521227", "0.5518323", "0.55176514", "0.5515814", "0.5507642", "0.5503217", "0.55021393", "0.54951316", "0.5493348", "0.5481601", "0.5475396", "0.5462484", "0.5431006", "0.5426881", "0.5424482", "0.54230976", "0.54226303", "0.54226303", "0.54226303", "0.5420747", "0.5416985" ]
0.5678387
40
It negates the above operation using un removed connections from above operation.
public void unCover() { linkLR(); DataNode tmp = this.U; while (tmp != this) { //select each row and go through all the left nodes and link from respective columns. DataNode l = tmp.L; while (l!= tmp) { l.linkUD(); l.C.count++; l = l.L; } tmp = tmp.U; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void removeNoMoreExistingOriginalNodes() {\n for (Node mirrorNode : mirrorGraph.nodes()) {\n if (!isPartOfMirrorEdge(mirrorNode) && !originalGraph.has(mirrorNode)) {\n mirrorGraph.remove(mirrorNode);\n }\n }\n }", "private void negateOclIsOps(PlainGraph graph) {\n List<PlainEdge> typeEdges = graph.edgeSet().stream()\n .filter(e -> labelContainsType(e.label().text()))\n .sorted((i1, i2) ->\n Integer.compare(i2.source().getNumber(), i1.source().getNumber()))\n .collect(Collectors.toList());\n\n // negate all except for the first, starting node (which is on the last index)\n for (int i = 0; i < typeEdges.size() - 1; i++) {\n PlainEdge edge = typeEdges.get(i);\n // negate the edge\n List<PlainEdge> notEdge = getNotEdge(graph, edge);\n if (notEdge.isEmpty()) {\n // add not edge\n addEdge(graph, edge.source(), String.format(\"%s:\", NOT), edge.target());\n } else {\n // remove not edge\n removeEdge(graph, notEdge.get(0));\n }\n }\n }", "private void negateProduction(PlainGraph graph) {\n List<? extends PlainEdge> bools = graph.edgeSet().stream().filter(e ->\n e.label().text().equals(String.format(\"%s:%s\", BOOL, TRUE_STRING)) ||\n e.label().text().equals(String.format(\"%s:%s\", BOOL, FALSE_STRING))\n ).collect(Collectors.toList());\n\n for (PlainEdge bool : bools) {\n if (bool.label().text().contains(TRUE_STRING)) {\n addEdge(graph, bool.source(), String.format(\"%s:%s\", BOOL, FALSE_STRING), bool.target());\n } else {\n addEdge(graph, bool.source(), String.format(\"%s:%s\", BOOL, TRUE_STRING), bool.target());\n }\n removeEdge(graph, bool);\n }\n }", "public void removeAllEdges() {\n }", "Relation getNegation();", "private void removeOldConnection(OperatorOutput operatorOutput)\n {\n ActionNode source = operatorOutput.getSource();\n if (source != null)\n {\n source.getOutput().remove(operatorOutput);\n }\n\n operatorOutput.setSource(null);\n operatorOutput.setTarget(null);\n }", "@Override\n\tpublic void discardUnget() {\n\t\t\n\t}", "public void removeAll() {\n/* 105 */ this.connectionToTimes.clear();\n/* */ }", "public void discard();", "public void disconnetti() {\n\t\tconnesso = false;\n\t}", "private static void stripTrivialCycles(CFG cfg) {\n\t\tCollection<SDGEdge> toRemove = new LinkedList<SDGEdge>();\n\t\tfor (SDGEdge e : cfg.edgeSet()) {\n\t\t\tif (e.getSource().equals(e.getTarget())) {\n\t\t\t\ttoRemove.add(e);\n\t\t\t}\n\t\t}\n\t\t\n\t\tcfg.removeAllEdges(toRemove);\n\t}", "public void removeAllInterpretedBy() {\r\n\t\tBase.removeAll(this.model, this.getResource(), INTERPRETEDBY);\r\n\t}", "private void removeNoMoreExistingOriginalEdges() {\n for (MirrorEdge mirrorEdge : directEdgeMap.values()) {\n if (!originalGraph.has(mirrorEdge.original)) {\n for (Edge segment : mirrorEdge.segments) {\n mirrorGraph.forcedRemove(segment);\n reverseEdgeMap.remove(segment);\n }\n for (Node bend : mirrorEdge.bends) {\n mirrorGraph.forcedRemove(bend);\n reverseEdgeMap.remove(bend);\n }\n directEdgeMap.remove(mirrorEdge.original);\n }\n }\n }", "void unsetFurtherRelations();", "public void discard() {\n }", "protected void processDisconnection(){}", "public void removeNeighbours(){\n\t\tgetNeighbours().removeAll(getNeighbours());\n\t}", "@Override\n public void unhighlight() {\n\n // @tag ADJACENT : Removed highlight adjacent\n // boolean highlightedAdjacently = (highlighted == HIGHLIGHT_ADJACENT);\n if (highlighted == HIGHLIGHT_NONE) {\n return;\n }\n // @tag ADJACENT : Removed highlight adjacent\n /*\n * if (!highlightedAdjacently) { // IF we are highlighted as an adjacent\n * node, we don't need to deal // with our connections. if\n * (ZestStyles.checkStyle(getNodeStyle(),\n * ZestStyles.NODES_HIGHLIGHT_ADJACENT)) { // unhighlight the adjacent\n * edges for (Iterator iter = sourceConnections.iterator();\n * iter.hasNext();) { GraphConnection conn = (GraphConnection)\n * iter.next(); conn.unhighlight(); if (conn.getDestination() != this) {\n * conn.getDestination().unhighlight(); } } for (Iterator iter =\n * targetConnections.iterator(); iter.hasNext();) { GraphConnection conn\n * = (GraphConnection) iter.next(); conn.unhighlight(); if\n * (conn.getSource() != this) { conn.getSource().unhighlight(); } } } }\n */\n if (parent.getItemType() == GraphItem.CONTAINER) {\n ((GraphContainer) parent).unhighlightNode(this);\n } else {\n ((Graph) parent).unhighlightNode(this);\n }\n highlighted = HIGHLIGHT_NONE;\n updateFigureForModel(nodeFigure);\n\n }", "final public void disconnect() {\n \n _input.removeInputConnection();\n _output.removeConnection(this);\n\n \n }", "public void delIncomingRelations();", "public Query not() {\n builder.negateQuery();\n return this;\n }", "public LWTRTPdu disConnect() throws IncorrectTransitionException;", "public CommandDataNegate() {\n super();\n }", "@Override\n\tprotected void onNetworkDisConnected() {\n\n\t}", "public void removeOccupiedConnections(List<ConnectionPoint> connections)\n\t\t{\n\t\t\tList<ConnectionPoint> toBeRemoved = new LinkedList<ConnectionPoint>();\n\n\t\t\tfor (ConnectionPoint conn : connections)\n\t\t\t{\n\t\t\t\tif (conn.getAnchor().isOccopied())\n\t\t\t\t\ttoBeRemoved.add(conn);\n\t\t\t}\n\n\t\t\tconnections.removeAll(toBeRemoved);\n\t\t}", "public EligibleQueueUnlink()\n {\n super(\"EligibleQueueUnlink\");\n }", "private void removeConnections(String name_agent) {\n JConnector c;\n int i = 0;\n while (i < connections.size()) {\n c = connections.get(i);\n if(c.isConnection()){\n if(c.getSourceConnectionName().equals(name_agent) || c.getDestConnectionName().equals(name_agent)){\n connections.remove(i);\n i=0;\n }\n i++;\n }else{\n if(c.getAgentName().equals(name_agent)){\n connections.remove(i);\n i=0;\n }\n i++;\n }\n }\n }", "public Matrix opposite(){\r\n \tMatrix opp = Matrix.copy(this);\r\n \tfor(int i=0; i<this.nrow; i++){\r\n \t\tfor(int j=0; j<this.ncol; j++){\r\n \t\topp.matrix[i][j]=-this.matrix[i][j];\r\n \t\t}\r\n \t}\r\n \treturn opp;\r\n \t}", "default void negate()\n {\n getAxis().negate();\n setAngle(-getAngle());\n }", "public void discardLastWeight() {\n this.weights.remove(this.weights.size() - 1);\n // meanwhile flip the accepting flag\n acceptWeight = true;\n }", "public Node removeFromChain();", "void unsetExchange();", "public void testRemoveAllEdges() {\n System.out.println(\"removeAllEdges\");\n\n Graph<Integer, Edge<Integer>> graph = generateGraph();\n Assert.assertTrue(graph.removeAllEdges());\n Assert.assertEquals(graph.edgesSet().size(), 0);\n }", "public SkipGraphOperations(boolean isBlockchain)\r\n {\r\n this.isBlockchain = isBlockchain;\r\n searchRandomGenerator = new Random();\r\n if (isBlockchain)\r\n {\r\n //mBlocks = new Blocks();\r\n mTransactions = new Transactions();\r\n }\r\n\r\n\r\n mTopologyGenerator = new TopologyGenerator();\r\n System.gc(); //a call to system garbage collector\r\n }", "private void deleteConnections() {\n for (int i = 0; !this.sourceConnections.isEmpty(); ) {\n LinkElement wire = (LinkElement) this.sourceConnections.get(i);\n wire.detachSource();\n wire.detachTarget();\n this.graphElement.removeEdge(wire.getEdgeId(), wire);\n }\n\n for (int i = 0; !this.targetConnections.isEmpty(); ) {\n LinkElement wire = (LinkElement) this.targetConnections.get(i);\n wire.detachSource();\n wire.detachTarget();\n this.graphElement.removeEdge(wire.getEdgeId(), wire);\n }\n }", "void unsetCombine();", "public void disconnectConvo() {\n convo = null;\n setConnStatus(false);\n }", "private void clearBlocked() {\n\n blocked_ = false;\n }", "void unpublish() {\n pendingOps.decrementAndGet();\n }", "public LWTRTPdu disConnectReq() throws IncorrectTransitionException;", "private void negateTypeEdges(PlainGraph graph) {\n for (PlainEdge edge : graph.edgeSet()) {\n if (labelContainsType(edge.label().text())) {\n // if there exists a type edge check whether the not edge exists already;\n List<PlainEdge> notEdge = getNotEdge(graph, edge);\n if (notEdge.isEmpty()) {\n // add not edge\n addEdge(graph, edge.source(), String.format(\"%s:\", NOT), edge.target());\n } else {\n // remove not edge\n removeEdge(graph, notEdge.get(0));\n }\n }\n }\n }", "public synchronized void prunePeers() {\n\t\tchecker.checkList(this.getPeers());\n\t}", "private static void RemoveEdge(Point a, Point b)\n {\n //Here we use a lambda expression/predicate to express that we're looking for a match in list\n //Either if (n.A == a && n.B == b) or if (n.A == b && n.B == a)\n edges.removeIf(n -> n.A == a && n.B == b || n.B == a && n.A == b);\n }", "abstract protected void onDisconnection();", "void removeDirectedEdge(final Node first, final Node second)\n {\n if (first.connectedNodes.contains(second))\n first.connectedNodes.remove(second);\n\n }", "public void disbandChannel()\r\n\t{\r\n\t\tif (_partys != null)\r\n\t\tfor (L2Party party : _partys)\r\n\t\t\tif (party != null)\r\n\t\t\t\tremoveParty(party);\r\n\t\t_partys = null;\r\n\t}", "private static void removeNode(CFG cfg, SDGNode toRemove) {\n\t\tfinal List<SDGEdge> edgesToAdd = new LinkedList<SDGEdge>();\n\t\tfinal List<SDGEdge> edgesToRemove = new LinkedList<SDGEdge>();\n\t\tfor (SDGEdge eIncoming : cfg.getIncomingEdgesOfKind(toRemove, SDGEdge.Kind.CONTROL_FLOW)) {\n\t\t\tfor (SDGEdge eOutgoing : cfg\n\t\t\t\t\t.getOutgoingEdgesOfKind(toRemove, SDGEdge.Kind.CONTROL_FLOW)) {\n\t\t\t\tedgesToAdd.add(new SDGEdge(eIncoming.getSource(), eOutgoing.getTarget(),\n\t\t\t\t\t\tSDGEdge.Kind.CONTROL_FLOW));\n\t\t\t\tedgesToRemove.add(eIncoming);\n\t\t\t\tedgesToRemove.add(eOutgoing);\n\t\t\t}\n\t\t}\n\n\t\tcfg.addAllEdges(edgesToAdd);\n\t\tcfg.removeAllEdges(edgesToRemove);\n\t\tcfg.removeVertex(toRemove);\n\t}", "public static void complementaryGraph(mxAnalysisGraph aGraph) {\n ArrayList<ArrayList<mxCell>> oldConnections = new ArrayList<ArrayList<mxCell>>();\n mxGraph graph = aGraph.getGraph();\n Object parent = graph.getDefaultParent();\n //replicate the edge connections in oldConnections\n Object[] vertices = aGraph.getChildVertices(parent);\n int vertexCount = vertices.length;\n\n for (int i = 0; i < vertexCount; i++) {\n mxCell currVertex = (mxCell)vertices[i];\n int edgeCount = currVertex.getEdgeCount();\n mxCell currEdge = new mxCell();\n ArrayList<mxCell> neighborVertexes = new ArrayList<mxCell>();\n\n for (int j = 0; j < edgeCount; j++) {\n currEdge = (mxCell)currVertex.getEdgeAt(j);\n\n mxCell source = (mxCell)currEdge.getSource();\n mxCell destination = (mxCell)currEdge.getTarget();\n\n if (!source.equals(currVertex)) {\n neighborVertexes.add(j, source);\n }\n else {\n neighborVertexes.add(j, destination);\n }\n\n }\n\n oldConnections.add(i, neighborVertexes);\n }\n\n //delete all edges and make a complementary model\n Object[] edges = aGraph.getChildEdges(parent);\n graph.removeCells(edges);\n\n for (int i = 0; i < vertexCount; i++) {\n ArrayList<mxCell> oldNeighbors = new ArrayList<mxCell>();\n oldNeighbors = oldConnections.get(i);\n mxCell currVertex = (mxCell)vertices[i];\n\n for (int j = 0; j < vertexCount; j++) {\n mxCell targetVertex = (mxCell)vertices[j];\n boolean shouldConnect = true; // the decision if the two current vertexes should be connected\n\n if (oldNeighbors.contains(targetVertex)) {\n shouldConnect = false;\n }\n else if (targetVertex.equals(currVertex)) {\n shouldConnect = false;\n }\n else if (areConnected(aGraph, currVertex, targetVertex)) {\n shouldConnect = false;\n }\n\n if (shouldConnect) {\n graph.insertEdge(parent, null, null, currVertex, targetVertex);\n }\n }\n\n }\n }", "public void revoke();", "void removeEdge(int x, int y);", "@Override\r\n\tpublic void unexecute() {\n\t\t\r\n\t}", "@Override\n public void removeConnection(World world, BlockPos pos, Direction direction) {\n for(int i = 0; i < connections.size(); i++) {\n FluidConnection conn = connections.get(i);\n if(conn.direction == direction) {\n if(conn.type == FLUID_IN) conn.type = FLUID_IN_OUT;\n else if(conn.type == FLUID_IN_OUT) conn.type = FLUID_OUT;\n else connections.remove(i);\n return;\n }\n }\n }", "public LWTRTPdu disConnectAcpt() throws IncorrectTransitionException;", "private List<PlainEdge> getNotEdge(PlainGraph graph, PlainEdge edge) {\n return graph.edgeSet().stream().filter(e ->\n e.source().equals(edge.source())\n && e.target().equals(edge.target())\n && e.label().text().equals(String.format(\"%s:\", NOT)))\n .collect(Collectors.toList());\n }", "private List<Graph> possRemove(Graph pag, Map<Edge, Boolean> necEdges) {\n // list of edges that can be removed\n List<Edge> remEdges = new ArrayList<>();\n for (Edge remEdge : necEdges.keySet()) {\n if (!necEdges.get(remEdge))\n remEdges.add(remEdge);\n }\n // powerset of edges that can be removed\n PowerSet<Edge> pset = new PowerSet<>(remEdges);\n List<Graph> possRemove = new ArrayList<>();\n // for each set of edges in the powerset remove edges from graph and add to PossRemove\n for (Set<Edge> set : pset) {\n Graph newPag = new EdgeListGraph(pag);\n for (Edge edge : set) {\n newPag.removeEdge(edge);\n }\n possRemove.add(newPag);\n }\n return possRemove;\n }", "public void retract(){\n\t\tsolenoid1.set(false);\n\t\tsolenoid2.set(false);\n\t}", "private void awayFromCollider(Graph graph, Node a, Node b, Node c) {\n Endpoint BC = graph.getEndpoint(b, c);\n Endpoint CB = graph.getEndpoint(c, b);\n\n if (!(graph.isAdjacentTo(a, c)) &&\n (graph.getEndpoint(a, b) == Endpoint.ARROW)) {\n if (CB == Endpoint.CIRCLE || CB == Endpoint.TAIL) {\n if (BC == Endpoint.CIRCLE) {\n if (!isArrowpointAllowed(graph, b, c)) {\n return;\n }\n\n graph.setEndpoint(b, c, Endpoint.ARROW);\n changeFlag = true;\n }\n }\n\n if (BC == Endpoint.CIRCLE || BC == Endpoint.ARROW) {\n if (CB == Endpoint.CIRCLE) {\n graph.setEndpoint(c, b, Endpoint.TAIL);\n changeFlag = true;\n }\n }\n }\n }", "private void removeStatement(){\n\t\tsynchronized(m_viz){\n\t\t\tTuple firstTuple;\n\t\t\tsynchronized(statementList){\n\t\t\t\tfirstTuple = statementList.getFirst();\n\t\t\t}\n\n\t\t\t// Remove action is synchronized to prevent PreFuse from drawing at the same time\n\t\t\tremoveMessage(firstTuple);\n\t\t\tm_statements.removeTuple(firstTuple);\n\t\t\tstatementList.removeFirst();\t\t\t\n\t\t}\n\t}", "public void removeAll() {\n\t\thead = new DoublyNode(null);\r\n\t\thead.setPrev(head);\r\n\t\thead.setNext(head);\r\n\t\tnumItems = 0;\r\n\t}", "protected void disconnected() {\n\t\tthis.model.setClient(null);\n\t}", "public void sendToAllExcept(String args)\n\t{\n\t\tfor (int ctr = 0; ctr < conns.size(); ctr++)\n\t\t\tif (conns.get(ctr) != this)\n\t\t\t\tconns.get(ctr).sendln(args);\n\t}", "void unsetObjectives();", "void reset() {\n\t\t\t_orderID = UNMARKED;\n\t\t\t_outgoingEdges.clear();\n\t\t\t//TODO when do we call this? when should we mark all edges as received?\n\t\t\tfor(Edge e : _neighborEdges.keySet()) {\n\t\t\t\t_neighborEdges.put(e, false);\n\t\t\t}\n\t\t}", "public void neg_() {\n TH.THTensor_(neg)(this, this);\n }", "@Override\n\tprotected void deactivateFigure() {\n\t\tthis.layer.remove(getFigure());\n\t\tgetConnectionFigure().setSourceAnchor(null);\n\t\tgetConnectionFigure().setTargetAnchor(null);\n\t}", "@Override\n\tpublic int vanish() {\n\t\treturn 1;\n\t}", "public Edge revert (){\n\t\treturn new Edge(dst, src);\n\t}", "public void removeAllInternetRadioStationOwner() {\r\n\t\tBase.removeAll(this.model, this.getResource(), INTERNETRADIOSTATIONOWNER);\r\n\t}", "public abstract ArithValue negate();", "public void negate(PlainGraph graph, boolean negateNodes, boolean negateEdges) {\n if (negateNodes) {\n if (graph.edgeSet().stream().anyMatch(e -> e.label().text().equals(String.format(\"%s:\", PROD)))) {\n // if there exists an label with prod: than negate the production rule\n negateProduction(graph);\n } else if (graph.edgeSet().stream().anyMatch(e -> e.label().text().contains(EQ))) {\n // If there is an label with =, then negate the OclIs/OclAs rule\n negateOclIsOps(graph);\n } else {\n // negate the type edges\n negateTypeEdges(graph);\n }\n }\n if (negateEdges) {\n // if we are talking about negating edges\n negateEdges(graph);\n }\n }", "public void disconnectedFrom(ServerDescriptor desc);", "public void removeAllConductor() {\r\n\t\tBase.removeAll(this.model, this.getResource(), CONDUCTOR);\r\n\t}", "public void abandon() {\n lock.lock();\n try {\n eligibleSyncs.clear();\n abandoned = true;\n } finally {\n lock.unlock();\n }\n }", "void discard();", "void discard();", "public void unExecute()\n\t{\n\t}", "public Complex negate() {\n return new Complex(-re, -im);\n }", "public abstract void removeEdge(int from, int to);", "public void onNetDisConnect() {\n\n\t}", "@DisplayName(\"Delete undirected edges\")\n @Test\n public void testDeleteEdgeUndirected() {\n graph.deleteEdge(new Edge(0, 1));\n Assertions.assertEquals(1, graph.getNeighbours(0).size());\n Assertions.assertEquals(1, graph.getNeighbours(1).size());\n }", "void onDiscardChangesSelected();", "AggregateOperation invert() {\n List<DocumentOperations> invertedDocOps = new ArrayList<DocumentOperations>(docOps.size());\n for (DocumentOperations operations : docOps) {\n invertedDocOps.add(new DocumentOperations(operations.id, invert(operations.operations)));\n }\n return new AggregateOperation(segmentsToAdd, segmentsToRemove, segmentsToStartModifying, segmentsToEndModifying,\n participantsToAdd, participantsToRemove, invertedDocOps);\n }", "@External\n\tpublic void untether() {\n\t\tif (!Context.getOrigin().equals(Context.getOwner()))\n\t\t\tContext.revert(\"Only the owner can call the untether method.\");\n\t}", "public Value joinNotDontDelete() {\n checkNotUnknown();\n if (isMaybeNotDontDelete())\n return this;\n Value r = new Value(this);\n r.flags |= ATTR_NOTDONTDELETE;\n return canonicalize(r);\n }", "public Builder clearDisconnect() {\n bitField0_ = (bitField0_ & ~0x00000008);\n disconnect_ = false;\n onChanged();\n return this;\n }", "protected void discard() {\r\n discarded = true;\r\n onDiscard();\r\n }", "public synchronized void unblock() {\n\t\tsetBlocked(false);\n\t}", "public void disconnect(){\n\t\tfor (NodeInfo peerInfo : peerList) {\r\n\t\t\t// send leave to peer\r\n\t\t\tsend(\"0114 LEAVE \" + ip + \" \" + port, peerInfo.getIp(), peerInfo.getPort());\r\n\t\t\t\r\n\t\t\tfor (NodeInfo peerInfo2 : peerList) {\r\n\t\t\t\tif (!peerInfo.equals(peerInfo2)) {\r\n\t\t\t\t\tString joinString = \"0114 JOIN \" + peerInfo2.getIp() + \" \" + peerInfo2.getPort();\r\n\t\t\t\t\t\r\n\t\t\t\t\tsend(joinString, peerInfo.getIp(), peerInfo.getPort());\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\ttry {\r\n\t\t\tunRegisterBootstrapServer(serverIp, serverPort, ip, port, username);\r\n\t\t\tapp.printInfo(\"Node disconnected from server....\");\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\t\r\n\t\t//socket = null;\r\n\t}", "protected void onDiscard() {\r\n this.setActive(false);\r\n }", "public static void testNegate()\n {\n\t Picture thrudoor = new Picture(\"thruDoor.jpg\");\n\t thrudoor.toNegative();\n\t thrudoor.explore();\n }", "public final void negate() {\n \n \tthis.m00 = -this.m00;\n \tthis.m01 = -this.m01;\n \tthis.m02 = -this.m02;\n this.m10 = -this.m10;\n this.m11 = -this.m11;\n this.m12 = -this.m12;\n this.m20 = -this.m20;\n this.m21 = -this.m21;\n this.m22 = -this.m22;\n }", "private void removeDisconnectedViews() {\n List<View> disconnectedViews;\n synchronized (connectedViews) {\n disconnectedViews = connectedViews\n .stream()\n .filter(view -> !view.isConnected())\n .collect(Collectors.toList());\n connectedViews.removeAll(disconnectedViews);\n }\n synchronized (connectedNicknames) {\n disconnectedViews.forEach(v -> connectedNicknames.remove(v.getNickname()));\n }\n disconnectedViews.forEach(this::closeView);\n }", "public static void removeAll() {\r\n\t\tfor (final Block block : new HashSet<>(instances_.keySet())) {\r\n\t\t\trevertBlock(block, Material.AIR);\r\n\t\t}\r\n\t\tfor (final TempBlock tempblock : REVERT_QUEUE) {\r\n\t\t\ttempblock.state.update(true, applyPhysics(tempblock.state.getType()));\r\n\t\t\tif (tempblock.revertTask != null) {\r\n\t\t\t\ttempblock.revertTask.run();\r\n\t\t\t}\r\n\t\t}\r\n\t\tREVERT_QUEUE.clear();\r\n\t}", "public void removed()\n {\n if (prev == null) {\n IBSPColChecker.setNodeForShape(shape, next);\n }\n else {\n prev.next = next;\n }\n\n if (next != null) {\n next.prev = prev;\n }\n }", "public static void ignoreTransaction() {\n if (active) {\n TransactionAccess.ignore();\n }\n }", "int removeEdges(ExpLineageEdge.FilterOptions options);", "@Override\r\n\tpublic void minusFromCost() {\n\t\t\r\n\t}", "private void clean() {\n // TODO: Your code here.\n for (Long id : vertices()) {\n if (adj.get(id).size() == 1) {\n adj.remove(id);\n }\n }\n }", "private List<MutateOperation> removeAll() {\n return removeDescendantsAndFilter(rootResourceName);\n }", "@DeleteMapping\n void removeCoin() {\n coin = false;\n }", "void unsetCurrentrun();" ]
[ "0.631584", "0.6290583", "0.61720437", "0.60698724", "0.5908322", "0.58778495", "0.5863318", "0.5822206", "0.5821843", "0.5771766", "0.5742365", "0.57294333", "0.5728524", "0.57205194", "0.57150304", "0.57146364", "0.5639421", "0.56059927", "0.5600408", "0.55919147", "0.55854946", "0.5581771", "0.5569013", "0.5544209", "0.55436546", "0.5534385", "0.5511639", "0.55006504", "0.5495293", "0.5490387", "0.54876304", "0.5482515", "0.54721075", "0.54657626", "0.5454592", "0.54412246", "0.5435941", "0.54242814", "0.5407593", "0.5407045", "0.540196", "0.5396816", "0.53890723", "0.53826386", "0.5382168", "0.5379637", "0.5372556", "0.53645647", "0.5361759", "0.53430694", "0.53391516", "0.5338204", "0.53368115", "0.53339046", "0.5332846", "0.532812", "0.53243625", "0.5323682", "0.5309292", "0.5305929", "0.5299286", "0.52984726", "0.52826154", "0.52731824", "0.5262676", "0.5256726", "0.52534634", "0.5250849", "0.52506375", "0.5247394", "0.5236989", "0.52363765", "0.52357364", "0.52346706", "0.52346706", "0.5232513", "0.5223064", "0.52225363", "0.521668", "0.52160275", "0.5213961", "0.52127814", "0.5209417", "0.5202803", "0.5200092", "0.51949644", "0.51933956", "0.5191675", "0.51870906", "0.51863074", "0.51857513", "0.51847774", "0.51819825", "0.516983", "0.5165829", "0.51623464", "0.51608706", "0.5154276", "0.51489085", "0.5148726", "0.51471686" ]
0.0
-1
initialize the minibatch offsets
private void initializeOffsets () { exampleStartOffsets.clear(); int window = exampleLength + predictLength; for (int i = 0; i < train.size() - window; i++) { exampleStartOffsets.add(i); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setInitalOffset(double offset){\n \tmodule.forEach(m -> m.setInitialOffset(offset));\n }", "protected void initialize() {\r\n x = 0;\r\n y = 0;\r\n driveTrain.reInit();\r\n }", "private void initializeLandmarks()\n\t{\n\t\t// Do nothing if not set\n\t\tif (startingMinionPerArea == null)\n\t\t{\n\t\t\treturn;\n\t\t}\n\t\t\n\t\t// Check starting landmark for each area\n\t\tfor(Area area : board.getAreaList())\n\t\t{\n\t\t\tint number = area.getNumber();\n\t\t\tInteger minionCount = startingMinionPerArea.get(number);\n\t\t\tif (minionCount != null)\n\t\t\t{\n\t\t\t\tfor(int i = 0; i < minionCount; i++)\n\t\t\t\t{\n\t\t\t\t\tfor(Player player : playerList)\n\t\t\t\t\t{\n\t\t\t\t\t\tarea.addMinion(player.removeMinion());\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "private void initOffset(){\n\t\tdouble maxDistance = Math.sqrt(Math.pow(getBattleFieldWidth(),2) + Math.pow(getBattleFieldHeight(),2));\n\n\t\tif(eDistance < 100) { \n\t\t\toffset = 0;\n\t\t} else if (eDistance <=700){\n\t\t\tif((getHeadingRadians()-enemy)<-(3.14/2) && (enemy-getHeadingRadians())>= (3.14/2)) {\n\n\t\t\t\toffset=eDistance / maxDistance*0.4;\n\t\t\t} else {\n\t\t\t\toffset=-eDistance / maxDistance*0.4;\n\t\t\t}\n\t\t\toffset*=velocity/8;\n\t\t}\n\t\telse {\n\t\t\tif((getHeadingRadians()-enemy)<-(3.14/2) && (enemy-getHeadingRadians())>= (3.14/2)) {\n\t\t\t\toffset = eDistance / maxDistance*0.4;\n\t\t\t} else {\n\t\t\t\toffset = -eDistance / maxDistance*0.4;\n\t\t\t}\n\t\t\toffset*=velocity/4;\n\t\t}\n\t}", "public void initPos(){\r\n for (int i=0; i< MAX_LENGTH; i++){\r\n pos[i] = i;\r\n }\r\n }", "protected void aInit()\n {\n \ta_available=WindowSize;\n \tLimitSeqNo=WindowSize*2;\n \ta_base=1;\n \ta_nextseq=1;\n }", "private void loadAddressFromLatches(){\r\n horizontalTileCounter = horizontalTileLatch;\r\n verticalTileCounter = verticalTileLatch;\r\n horizontalNameCounter = horizontalNameLatch; // single bit\r\n verticalNameCounter = verticalNameLatch; // single bit\r\n fineVerticalCounter = fineVerticalLatch;\r\n }", "private static void init() {\n\t\t// TODO Auto-generated method stub\n\t\tviewHeight = VIEW_HEIGHT;\n\t\tviewWidth = VIEW_WIDTH;\n\t\tfwidth = FRAME_WIDTH;\n\t\tfheight = FRAME_HEIGHT;\n\t\tnMines = N_MINES;\n\t\tcellSize = MINE_SIZE;\n\t\tnRows = N_MINE_ROW;\n\t\tnColumns = N_MINE_COLUMN;\n\t\tgameOver = win = lost = false;\n\t}", "void initWatermarks(Map<String, Long> initialWatermarks);", "private void setStartValues() {\n startValues = new float[9];\n mStartMatrix = new Matrix(getImageMatrix());\n mStartMatrix.getValues(startValues);\n calculatedMinScale = minScale * startValues[Matrix.MSCALE_X];\n calculatedMaxScale = maxScale * startValues[Matrix.MSCALE_X];\n }", "public void initialize() {\n\t\tnumRows = gridConfig.getNumRows();\n\t\tnumCols = gridConfig.getNumCols();\n\t\tgridCellCount = numRows * numCols;\n\t\tcreateMaps();\n\t\tsetCurrSimulationMap();\n\t\tcellWidth = SIZE / numCols;\n\t\tcellHeight = SIZE / numRows;\n\t\tcurrentGrid = new Cell[numRows][numCols];\n\t\tnewGrid = new Cell[numRows][numCols];\n\t\tempty(currentGrid);\n\t\tempty(newGrid);\n\t\tsetShapes();\n\t\tsetInitialStates();\n\t}", "public void initialize() {\n\t\tmaze = new Block[width][height];\n\t\tborder();\n\t}", "@Override\n public void initialize() {\n int numReduceTasks = conf.getNumReduceTasks();\n String jobID = taskAttemptID.getJobID();\n File mapOutputFolder = new File(\"mapoutput\");\n if (!mapOutputFolder.exists()) {\n mapOutputFolder.mkdir();\n }\n for (int reduceID = 0; reduceID < numReduceTasks; reduceID++) {\n outputFiles.add(\"mapoutput/\" + jobID + \"_r-\" + reduceID + \"_\" + this.partition);\n }\n }", "protected void initialize() {\n \t_finalTickTargetLeft = _ticksToTravel + Robot.driveTrain.getEncoderLeft();\n \t_finalTickTargetRight = _ticksToTravel + Robot.driveTrain.getEncoderRight();\n \t\n }", "@Override\n public void initialize() {\n\n distanceTraveled = 0.0;\n timer.start();\n startTime = timer.get();\n\n leftEncoderStart = drivetrain.getMasterLeftEncoderPosition();\n rightEncoderStart = drivetrain.getMasterRightEncoderPosition();\n\n angleCorrection = 0;\n angleError = 0;\n speedCorrection = 1;\n\n shifter.shiftUp();\n\n }", "public void initialize() {\n grow(0);\n }", "@Override\n public void setFilePosition(int tileIndex, long offset) {\n int row = tileIndex / nColsOfTiles;\n int col = tileIndex - row * nColsOfTiles;\n if (row < 0 || row >= nRowsOfTiles) {\n throw new IllegalArgumentException(\n \"Tile index is out of bounds \" + tileIndex);\n }\n\n // to simplify re-allocation (if any), we process the\n // columns first.\n if (nCols == 0) {\n // first call, nRows is also zero\n nCols = 1;\n nRows = 1;\n col0 = col;\n col1 = col;\n row0 = row;\n row1 = row;\n offsets = new long[1][1];\n offsets[0][0] = offset;\n return;\n }\n\n if (col < col0) {\n int nAdded = col0 - col;\n int n = nCols + nAdded;\n for (int i = 0; i < nRows; i++) {\n long[] x = new long[n];\n System.arraycopy(offsets[i], 0, x, nAdded, nCols);\n offsets[i] = x;\n }\n nCols = n;\n col0 = col;\n } else if (col > col1) {\n int nAdded = col - col1;\n int n = nCols + nAdded;\n for (int i = 0; i < nRows; i++) {\n long[] x = new long[n];\n System.arraycopy(offsets[i], 0, x, 0, nCols);\n offsets[i] = x;\n }\n nCols = n;\n col1 = col;\n }\n\n if (row < row0) {\n int nAdded = row0 - row;\n int n = nRows + nAdded;\n long[][] x = new long[n][];\n System.arraycopy(offsets, 0, x, nAdded, nRows);\n offsets = x;\n for (int i = 0; i < nAdded; i++) {\n offsets[i] = new long[nCols];\n }\n nRows = n;\n row0 = row;\n } else if (row > row1) {\n int nAdded = row - row1;\n int n = nRows + nAdded;\n long[][] x = new long[n][];\n System.arraycopy(offsets, 0, x, 0, nRows);\n offsets = x;\n for (int i = 0; i < nAdded; i++) {\n offsets[nRows + i] = new long[nCols];\n }\n nRows = n;\n row1 = row;\n }\n\n offsets[row - row0][col - col0] = offset;\n }", "public void init() {\n for (Point[] p : prev) {\n Arrays.fill(p, null);\n }\n }", "private void init() {\n _capacity = 1 << 9;\n int holderSize = _capacity << 1;\n _keyValueHolder = new int[holderSize];\n _mask = holderSize - 1;\n _maxNumEntries = (int) (_capacity * LOAD_FACTOR);\n }", "private void resetToBase(){\n\t\t//find number of markers after base\n\t\tSystem.out.println(\"here is the base: \" + base);\n\t\tint numMarkers = 0;\n\n\t\tfor(int i=base+1; i<indices.length; i++){\n\t\t\tif(indices[i]==1){\n\t\t\t\tindices[i] = 0;\n\t\t\t\tnumMarkers++;\n\t\t\t}\n\t\t}\n\t\t\n\t\tfor(int i=base; i<base+numMarkers; i++){\n\t\t\tindices[i+1] = 1;\n\t\t}\n\t}", "public void initializeMaze(){\n for(int i = 0; i < 20; i ++){\n for(int j = 0; j < 15; j ++){\n if((i % 2 == 1) && (j % 2 == 1)){\n maze[i][j] = NOTVISIBLESPACE;\n }\n else{\n maze[i][j] = NOTVISIBLEWALL;\n }\n }\n }\n\n for(int i = 0; i < 15; i ++){\n maze[19][i] = NOTVISIBLEWALL;\n }\n }", "private void init() {\r\n\tlocals = new float[maxpoints * 3];\r\n\ti = new float[] {1, 0, 0};\r\n\tj = new float[] {0, 1, 0};\r\n\tk = new float[] {0, 0, 1};\r\n\ti_ = new float[] {1, 0, 0};\r\n\tk_ = new float[] {0, 0, 1};\r\n }", "private void initTiles(){\n\t\ttiles = new Tile[size * size];\n\t\tfor(int i = 0; i < tiles.length; i++){\n\t\t\ttiles[i] = new Tile(KEYS[i]);\n\t\t}\n\t}", "void setZeroStart();", "private void setUpBlocks() {\n\t\tdouble xStart=0;\n\t\tdouble midPoint = getWidth()/2;\n\t\tint yStart = BRICK_Y_OFFSET;\t\n\t\t\n\t\tfor(int i = 0; i < NBRICK_ROWS; i++) {\n\t\t\t\n\t\t\txStart = midPoint - (NBRICKS_PER_ROW/2 * BRICK_WIDTH) - BRICK_WIDTH/2;\n\t\t\tlayRowOfBricks(xStart, yStart, i);\n\t\t\tyStart += BRICK_HEIGHT + BRICK_SEP;\n\t\t}\t\n\t}", "protected void initialize() {\r\n if (dumper.isLimitSwitchPressed()){ \r\n dumper.stop();\r\n state = STATE_SUCCESS;\r\n }\r\n else {\r\n startPosition = dumper.getPosition();\r\n desiredPosition = startPosition + increment;\r\n dumper.backward();\r\n state = STATE_SEEK_LEFT;\r\n }\r\n }", "public void initialise() {\n number_of_rays = 4; // how many rays are fired from the boat\n ray_angle_range = 145; // the range of the angles that the boat will fire rays out at\n ray_range = 30; // the range of each ray\n ray_step_size = (float) 10;\n regen = false;\n }", "public void init() throws IOException {\n restart(scan.getStartRow());\n }", "private void initializeNumbers() {\n\t\tthis.longitude_e6=Integer.MIN_VALUE;\n\t\tthis.latitude_e6=Integer.MIN_VALUE;\n\t\tthis.visibilityRadius=Integer.MIN_VALUE;\n\t\tthis.visibilityLongitude_e6=Integer.MIN_VALUE;\n\t\tthis.visibilityLatitude_e6=Integer.MIN_VALUE;\n\t\tthis.joinRadius=Integer.MIN_VALUE;\n\t\tthis.joinLongitude_e6=Integer.MIN_VALUE;\n\t\tthis.joinLatitude_e6=Integer.MIN_VALUE;\n\t\tthis.joinStartTime=Long.MIN_VALUE;\n\t\tthis.joinEndTime=Long.MIN_VALUE;\n\t\tthis.startTime=Long.MIN_VALUE;\n\t\tthis.endTime=Long.MIN_VALUE;\n\t}", "@Override\n\tprotected void setup(Reducer<LongWritable, Text, Text, Text>.Context context)\n\t\t\tthrows IOException, InterruptedException {\n\t\tsuper.setup(context);\n\t\tminPnts=Long.parseLong(context.getConfiguration().get(\"minPnts\"));\n\t\tepsilon=Double.parseDouble(context.getConfiguration().get(\"epsilon\"));\n\t\toutput = new MultipleOutputs<Text,Text>(context);\n\t\tPath[] cacheFilesLocal = DistributedCache.getLocalCacheFiles(context.getConfiguration());\n\t\tfor (Path eachPath : cacheFilesLocal) {\n\t\t\t\n\t\t\tloadPartition(eachPath, context);\n\t\t\t\n\t\t}\n\t}", "protected void initialize() {\n \tsetSetpoint(0.0);\n }", "public KnightsPosition() {\r\n row = 0;\r\n column = 0;\r\n }", "private void initiliaze() {\r\n\t\tthis.inputFile = cd.getInputFile();\r\n\t\tthis.flowcell = cd.getFlowcell();\r\n\t\tthis.totalNumberOfTicks = cd.getOptions().getTotalNumberOfTicks();\r\n\t\tthis.outputFile = cd.getOutputFile();\r\n\t\tthis.statistics = cd.getStatistic();\r\n\t}", "private void initialize()\n\t{\n\t\tfor(int i = 0 ; i < SOM.length; i++)\n\t\t{\n\t\t\tfor(int j=0; j < SOM[0].length; j++)\n\t\t\t{ \n\t\t\t\tSOM[i][j] = new Node(INPUT_DIMENSION,i,j);\n\t\t\t}\n\t\t}\n\t\t\n\t\tSOM_HORIZONTAL_LENGTH = SOM[0].length;\n\t\tSOM_VERTICAL_LENGTH = SOM.length;\n\t}", "@Test\n public void testSetBeginNotInMap(){\n smallMaze.setBegin(Maze.position(26, 23));\n }", "private void init() {\n \t\t// Initialise border cells as already visited\n \t\tfor (int x = 0; x < size + 2; x++) {\n \t\t\tvisited[x][0] = true;\n \t\t\tvisited[x][size + 1] = true;\n \t\t}\n \t\tfor (int y = 0; y < size + 2; y++) {\n \t\t\tvisited[0][y] = true;\n \t\t\tvisited[size + 1][y] = true;\n \t\t}\n \t\t\n \t\t\n \t\t// Initialise all walls as present\n \t\tfor (int x = 0; x < size + 2; x++) {\n \t\t\tfor (int y = 0; y < size + 2; y++) {\n \t\t\t\tnorth[x][y] = true;\n \t\t\t\teast[x][y] = true;\n \t\t\t\tsouth[x][y] = true;\n \t\t\t\twest[x][y] = true;\n \t\t\t}\n \t\t}\n \t}", "protected void init() {\n \t\r\n ratios.put(1, 32.0f);\r\n ratios.put(2, 16.0f);\r\n ratios.put(3, 8.0f);\r\n ratios.put(4, 4.0f);\r\n ratios.put(5, 2.0f);\r\n ratios.put(6, 1.0f);\r\n }", "private void setDefaultMonsterCords()\n {\n this.xBeginMap=0;\n this.yBeginMap=0;\n this.xEndMap=16;\n this.yEndMap=16;\n\n this.xBeginSrc=0;\n this.yBeginSrc=0;\n this.xEndSrc=0;\n this.yEndSrc=0;\n\n }", "@Before\r\n\tpublic void init() {\n\t\tfinal List<Integer> container3 = createContainer((int) Math.pow(3, 2));\r\n\t\tcontainer3.set(container3.size() - 1, null);\r\n\t\tgoal3 = new BoardListImpl<>(3, container3);\r\n\r\n\t\t// 4 x 4 board\r\n\t\tfinal List<Integer> container4 = createContainer((int) Math.pow(4, 2));\r\n\t\tcontainer4.set(container4.size() - 1, null);\r\n\t\tgoal4 = new BoardListImpl<>(4, container4);\r\n\t}", "private void setMin(int min) { this.min = new SimplePosition(false,false,min); }", "private void init() throws UnknownHostException, RemoteException {\n\n FileApp.setMapper(this);\n predKey = 0;\n toDistribute = readNodeEntries();\n //System.out.println(\"Mapper.init() :: toDistribute=\"+toDistribute);\n }", "private void initArrayHeightAndWidth() {\n\n\t\theight = 0;\n\t\twidth = 0;\n\n\t\ttry {\n\t\t\tBufferedReader br = new BufferedReader(new FileReader(mapFile));\n\t\t\tString line = br.readLine();\n\t\t\t// get length of map\n\t\t\twidth = line.length();\n\t\t\t// get height of map\n\t\t\twhile (line != null) {\n\t\t\t\theight += 1;\n\t\t\t\tline = br.readLine();\n\t\t\t}\n\t\t\tbr.close();\n\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\n\t\theight_on_display = (height - 1) * 35;\n\t\twidth_on_display = (width - 1) * 35;\n\t\tmapElementStringArray = new String[height][width];\n\t\tmapElementArray = new MapElement[height][width];\n\n\t}", "public int[] reduceInit() {\n return null;\n }", "public void initOffset(int offsetx, int offsety) {\n\t\toffsetX = offsetx;\n\t\toffsetY = offsety;\n\t}", "public void resetCoordinates(){\n pos=0;\n if(this.pIndex<2){\n this.coordinates[0]=TILE_SIZE*15-DICE_SIZE;}\n else{\n this.coordinates[0]=0;}\n if(this.pIndex%3==0){\n this.coordinates[1]=0;}\n else{\n this.coordinates[1]=TILE_SIZE*15-DICE_SIZE;} \n }", "public void InitMap() {\n for (int i=0; i<m_mapSize; i++) {\n SetColour(i, null);\n }\n }", "public void resetNodes() {\n\tmaxX = -100000;\n\tmaxY = -100000;\n\tminX = 100000;\n\tminY = 100000;\n\taverageX = 0;\n\taverageY = 0;\n }", "public void setBeginOffset(Integer beginOffset) {\n this.beginOffset = beginOffset;\n }", "private void setInitialSeekBarPositions() {\n portColumns.setProgress(portColumnsValue);\n portRows.setProgress(portRowsValue);\n landColumns.setProgress(landColumnsValue);\n landRows.setProgress(landRowsValue);\n }", "static void resetMiniCalib() {\n\n maxX--;\n minX++;\n\n //maxY = 0;\n //minY = SCREEN_HEIGHT;\n maxY--;\n minY++;\n\n if (minY > maxY) {\n maxY += 1;\n minY -= 1;\n }\n\n if (minX > maxX) {\n maxX += 1;\n minX -= 1;\n }\n\n cX = (minX + maxX) / 2;\n cY = (minY + maxY) / 2;\n\n runMiniCalib();\n\n }", "@Before\r\n public void setUp() {\r\n for (byte i = 0; i < length; i++) {\r\n cellToCheckAlive[i] = (byte) (64 + i);\r\n cellToCheckDead[i] = i;\r\n }\r\n }", "public void setUp()\r\n {\r\n board = new MineSweeperBoard(4, 4, 1);\r\n }", "private void init() {\n\n MyFileReader finalResultReader = null;\n\n finalResultReader = new MyFileReader(FilePath.billboardCombineResultPath);\n\n String line = \"\";\n\n while (true) {\n\n line = finalResultReader.getNextLine();\n if (line == null)\n break;\n\n String[] elements = line.split(\" \");\n if (elements.length == 1)\n continue; // skip those billboard which can not influence any route\n\n String panelID = elements[0].split(\"~\")[0]; // panelID~weeklyImpression\n int weeklyImpression = Integer.parseInt(elements[0].split(\"~\")[1]);\n\n\n List<Integer> routeIDs = new ArrayList<>();\n\n for (int i = 1; i < elements.length; i++) {\n\n int routeID = Integer.parseInt(elements[i]);\n //if (routeID < length) {\n routeIDs.add(routeID);\n //}\n }\n\n panelIDs.add(panelID);\n weeklyImpressions.add(weeklyImpression);\n routeIDsOfBillboards.add(routeIDs);\n\n }\n setUpRouteIDsAndIndexes();\n finalResultReader.close();\n }", "@SuppressWarnings(\"unchecked\")\n\t\tvoid init() {\n\t\t\tsetNodes(offHeapService.newArray(JudyIntermediateNode[].class, NODE_SIZE, true));\n\t\t}", "protected void initialize() {\r\n Robot.driveTrain.resetRangefinder();\r\n }", "public void init() {\n for (int i = 1; i <= 20; i++) {\n List<Data> dataList = new ArrayList<Data>();\n if (i % 2 == 0 || (1 + i % 10) == _siteIndex) {\n dataList.add(new Data(i, 10 * i));\n _dataMap.put(i, dataList);\n }\n }\n }", "public void initForCup(){\n hdBase = HD_BASED_ON_RANK;\n hdNoHdRankThreshold = -30;\n hdCorrection = 0; \n hdCeiling = 0;\n }", "private void init() {\n\n\t\tinitializeLists();\n\t\tcreateTiles();\n\t\tcreateTileViews();\n\t\tshuffleTiles();\n\n\t}", "private void initCells()\n {\n this.minesweeperCells = new MinesweeperCell[ROWS_COLUMNS][ROWS_COLUMNS];\n int k = 0;\n mines = new ArrayList<>();\n while(k < N_MINES)\n {\n int randomRow, randomColumn;\n randomRow = (int) (Math.random() *this.minesweeperCells.length);\n randomColumn = (int) (Math.random() *this.minesweeperCells[0].length);\n Point mine = new Point(randomRow, randomColumn);\n if(!mines.contains(mine))\n {\n mines.add(mine);\n k++;\n }\n }\n // init the cells\n for(int i = 0; i < this.minesweeperCells.length; i++)\n {\n for(int j = 0; j < this.minesweeperCells[i].length; j++)\n {\n this.minesweeperCells[i][j] = new MinesweeperCell(false, true, getMineCount(i,j), i, j);\n }\n }\n this.minesweeperCustomView.setArray(this.minesweeperCells);\n }", "private static void initTestOffset() {\n ArtMethodSizeTest.method1();\n ArtMethodSizeTest.method2();\n // get test methods\n try {\n testOffsetMethod1 = ArtMethodSizeTest.class.getDeclaredMethod(\"method1\");\n testOffsetMethod2 = ArtMethodSizeTest.class.getDeclaredMethod(\"method2\");\n } catch (NoSuchMethodException e) {\n throw new RuntimeException(\"SandHook init error\", e);\n }\n initTestAccessFlag();\n }", "private void setup() {\n Collections.sort(samples);\n this.pos = 0;\n }", "public void adjustInitialPosition() {\n\n //TelemetryWrapper.setLine(1,\"landFromLatch...\");\n runtime.reset();\n double maxLRMovingDist = 200.0; //millimeters\n double increamentalDist = 50.0;\n while ( runtime.milliseconds() < 5000 ) {\n int loops0 = 0;\n while ((loops0 < 10) && ( mR.getNumM() == 0 )) {\n mR.update();\n loops0 ++;\n }\n if (mR.getNumM() <= 1) {\n int loops = 0;\n while ( mR.getNumM() <= 1 )\n driveTrainEnc.moveLeftRightEnc(increamentalDist, 2000);\n continue;\n } else if ( mR.getHAlignSlope() > 2.0 ) {\n driveTrainEnc.spinEnc(AUTO_DRIVE_SPEED,Math.atan(mR.getHAlignSlope()),2000);\n continue;\n } else if (! mR.isGoldFound()) {\n\n driveTrainEnc.moveLeftRightEnc(increamentalDist,2000);\n continue;\n } else if ( mR.getFirstGoldAngle() > 1.5 ) {\n driveTrainEnc.spinEnc(AUTO_DRIVE_SPEED, mR.getFirstGoldAngle(),2000);\n continue;\n }\n }\n driveTrainEnc.stop();\n }", "private void initMleCluster() {\n\t\tpseudoTf = new double[documents.size()][];\n\t\tpseudoTermIndex = new int[documents.size()][];\n\t\tpseudoTermWeight = new double[documents.size()][];\n\t\t\n\t\tfor(int docIdx=0; docIdx<documents.size(); docIdx++) {\n\t\t\tcountOnePseudoDoc(docIdx);\n\t\t}\n\t}", "public void init() {\n int total_home = 0;\n for (int i = 0; i < _data.anyVec().nChunks(); ++i) {\n if (_data.anyVec().chunkKey(i).home()) {\n total_home++;\n }\n }\n\n // Now generate the mapping\n _chunk_row_mapping = new long[total_home];\n int off=0;\n int cidx=0;\n for (int i = 0; i < _data.anyVec().nChunks(); ++i) {\n if (_data.anyVec().chunkKey(i).home()) {\n _chunk_row_mapping[cidx++] = _data.anyVec().chunk2StartElem(i);\n }\n }\n\n // Initialize number of rows per node\n _rowsPerNode = new int[H2O.CLOUD.size()];\n long chunksCount = _data.anyVec().nChunks();\n for(int ci=0; ci<chunksCount; ci++) {\n Key cKey = _data.anyVec().chunkKey(ci);\n _rowsPerNode[cKey.home_node().index()] += _data.anyVec().chunkLen(ci);\n }\n\n _remoteChunksKeys = new Key[H2O.CLOUD.size()][];\n int[] _remoteChunksCounter = new int[H2O.CLOUD.size()];\n\n for (int i = 0; i < _data.anyVec().nChunks(); ++i) {\n _remoteChunksCounter[_data.anyVec().chunkKey(i).home(H2O.CLOUD)]++;\n }\n\n for (int i = 0; i < H2O.CLOUD.size(); ++i) _remoteChunksKeys[i] = new Key[_remoteChunksCounter[i]];\n\n int[] cnter = new int[H2O.CLOUD.size()];\n for (int i = 0; i < _data.anyVec().nChunks(); ++i) {\n int node_idx = _data.anyVec().chunkKey(i).home(H2O.CLOUD);\n _remoteChunksKeys[node_idx][cnter[node_idx]++] = _data.anyVec().chunkKey(i);\n }\n }", "private static void mineInitialization(){\n\t\tfor (int m = 0; m < BOARD_SIZE; m++)\n\t\t{\n\t\t\tmX = RNG.nextInt(BOARD_SIZE);\n\t\t\tmY = RNG.nextInt(BOARD_SIZE);\n\t\t\tif(gameBoard[mX][mY].equals(Spaces.Empty))\n\t\t\t{\n\t\t\t\tgameBoard[mX][mY] = Spaces.Mine;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tm--;\n\t\t\t}\n\t\t}\n\t}", "void initialise() {\n this.sleep = false;\n this.owner = this;\n renewNeighbourClusters();\n recalLocalModularity();\n }", "protected void initialize() {\n \ttarget = (int) SmartDashboard.getNumber(\"target\", 120);\n \ttarget = (int) (target * Constants.TICKS_TO_INCHES);\n\t\tRobot.drive.stop();\n\t\tmaxCount = (int) SmartDashboard.getNumber(\"max count\", 0);\n\t\ttolerance = (int) SmartDashboard.getNumber(\"tolerance\", 0);\n\t\tRobot.drive.left.motor1.setSelectedSensorPosition(0, Constants.kPIDLoopIdx, Constants.kTimeoutMs);\n\t\tRobot.drive.right.motor1.setSelectedSensorPosition(0, Constants.kPIDLoopIdx, Constants.kTimeoutMs);\n }", "public void initForMM(){\n hdBase = HD_BASED_ON_MMS;\n hdNoHdRankThreshold = 0;\n hdCorrection = 1; \n hdCeiling = 9;\n }", "public void initialize() {\n\t\t// set seed, if defined\n\t\tif (randomSeed > Integer.MIN_VALUE) {\n\t\t\tapp.randomSeed(randomSeed);\n\t\t}\n\n\t\tfor (int x = 0; x < gridX; x++) {\n\t\t\tfor (int y = 0; y < gridY; y++) {\n\t\t\t\tCell c = new Cell(\n\t\t\t\t\tapp,\n\t\t\t\t\tcellSize,\n\t\t\t\t\tcolors[(int)app.random(colors.length)],\n\t\t\t\t\ttrue\n\t\t\t\t);\n\t\t\t\tc.position = PVector.add(offset, new PVector(x * cellSize, y * cellSize));\n\t\t\t\tcells[x + (y * gridX)] = c;\n\t\t\t\tnewCells[x + (y * gridX)] = c;\n\t\t\t}\n\t\t}\n\t}", "@MemoryAnnotations.Initialisation\n public void pumpListInitialisation() {\n for (int i = 0; i < this.configuration.getNumberOfPumps(); i++) {\n this.onOffPumps.add(false);\n }\n for (int i = 0; i < this.configuration.getNumberOfPumps(); i++) {\n this.middlePoints.add(null);\n }\n }", "private void init() {\n for (Node n : reader.getNodes().values()) {\n da_collegare.add(n);\n valori.put(n, Double.MAX_VALUE);\n precedenti.put(n, null);\n }\n valori.put(start_node, 0.0);\n da_collegare.remove(start_node);\n }", "public static void init() {\n init(block -> IntStream.range(0, 16));\n }", "protected void initialize() {\n this.locals = Common.calculateSegmentSize(Common.NUM_CORES);\n this.drvrs = Common.calculateSegmentSize(Common.NUM_CORES);\n reports = new ArrayList<>();\n }", "private static void Initialize()\n\t{\n\t\tcurrentPC = 3996;\n\t\tcurrentFilePointer = 0;\n\t\tmemoryBlocks = new int[4000];\n\t\tregisterFile = new HashMap<String, Integer>();\n\t\tstages = new HashMap<String, Instruction>();\n\t\tlatches = new HashMap<String, Instruction>();\n\t\tspecialRegister = 0;\n\t\tisComplete = false;\n\t\tisValidSource = true;\n\t\tSystem.out.println(\"-----Initialization Completed------\");\n\t}", "public void initializeNeighbors() {\n\t\tfor (int r = 0; r < getRows(); r++) {\n\t\t\tfor (int c = 0; c < getCols(); c++) {\n\t\t\t\tList<Cell> nbs = new ArrayList<>();\n\t\t\t\tinitializeNF(shapeType, r, c);\n\t\t\t\tmyNF.findNeighbors();\n\t\t\t\tfor (int[] arr : myNF.getNeighborLocations()){\n\t\t\t\t\tif (contains(arr[0], arr[1])){\n\t\t\t\t\t\tnbs.add(get(arr[0], arr[1]));\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tget(r, c).setNeighbors(nbs);\n\t\t\t}\n\t\t}\n\t}", "@Override\n public void init(){\n setStartIn18Inches(false);\n super.init();\n //start\n programStage = progStates.allowingUserControl1.ordinal();\n\n //since we are measuring, start at 0,0,0\n setStartingPosition(0,0,Math.toRadians(0));\n }", "private void initialise() {\r\n\t\tfor(int i = 0; i < board.getWidth(); i++) {\r\n\t\t\tfor(int j = 0; j < board.getHeight(); j++) {\r\n\t\t\t\tboard.setSquare(new GridSquare(GridSquare.Type.EMPTY), i, j);\t\r\n\t\t\t}\r\n\t\t}\r\n\t}", "@Override\n protected void initialize() {\n armPID_SetZero.setSetpoint(0);\n armPID_SetZero.getPIDController().setPID(0.00003, 0.00000005, 0.000025);\n armPID_SetZero.setOutputRange(-0.475, 0.475);\n armPID_SetZero.disable();\n\n }", "protected void initNumOfMoves() {\n\t\tthis.numOfMoves = 0;\n\t}", "public void init()\n {\n list = new int[k];\n\n // Initialise my list of integers\n for (int i = 0; i < k; i++) {\n int b = 1;\n while (CommonState.r.nextBoolean())\n b++;\n list[i] = b;\n }\n }", "protected void initialize() {\n\n\t\tfinal int bucketStart = configuration.getGranularity().getMin();\n\t\tfinal int bucketEnd = configuration.getGranularity().getMax();\n\t\tfinal int step = configuration.getGranularity().getBucketSize();\n\t\tfinal IRasterLogic<T> logic = configuration.getLogic();\n\n\t\t// create the granularity raster data\n\t\tfor (int i = bucketStart; i <= bucketEnd; i += step) {\n\n\t\t\t// create the key for this row\n\t\t\tfinal RasterBucket bucket = new RasterBucket(i);\n\n\t\t\t/*\n\t\t\t * now lets create the array for the data of the BaseRaster. We can\n\t\t\t * calculate some values for the RasterFunctions already (i.e. the\n\t\t\t * static once).\n\t\t\t */\n\t\t\tfinal IRasterModelData bucketData = new BaseRasterModelData();\n\n\t\t\t/*\n\t\t\t * Now we will add a the data of the init RasterFunction which is\n\t\t\t * used by this BaseRaster\n\t\t\t */\n\t\t\tfor (final IRasterModelEntry e : model.getEntries()) {\n\t\t\t\te.initTo(bucketData);\n\n\t\t\t\tif (e.isInvariant()) {\n\n\t\t\t\t\t// execute the function\n\t\t\t\t\tfinal Object value = e.execute(modelId, configuration);\n\t\t\t\t\tbucketData.setValue(e.getName(), value);\n\t\t\t\t} else if (e.isDataInvariant()) {\n\t\t\t\t\tfinal Object intervalStart = logic.getBucketStart(bucket);\n\t\t\t\t\tfinal Object intervalEnd = logic.getBucketEnd(bucket);\n\n\t\t\t\t\t// execute the function\n\t\t\t\t\tfinal Object value = e.execute(modelId, configuration,\n\t\t\t\t\t\t\tintervalStart, intervalEnd);\n\t\t\t\t\tbucketData.setValue(e.getName(), value);\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tdataCollection.put(bucket, bucketData);\n\t\t}\n\n\t\t// set the amount of data to 0\n\t\taddedModelData = 0;\n\t}", "protected void initQMark() {\n\t\tINF = calcMaxCapPlus1();\n\t\tmarkVertice(srcId, new Tuple4(NULL_DIRECTION, NO_PRED, INF, false));\n\t}", "private void setUp() {\n move = new MoveSlidingTiles(2, 5, 3, 1);\n }", "private void _initialize(long[][] value, int copy) {\n\t\t_rowCount = value.length;\n\t\t_columnCount = value[0].length;\n\t\t_value = LongMatrixMath.fromMatrixToArray(value);\n\t}", "public BitBoardImpl() {\n\tinitialPosition();\n }", "@Override\r\n protected void initialize() {\r\n //colorMotor = new CANSparkMax(leftDeviceID, MotorType.kBrushless);\r\n //colorEncoder = colorMotor.getEncoder();\r\n \r\n RobotMap.colorEncoder.setPosition(0); // set the encoder to its \"home\" position or zero \r\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 }", "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 void setMinOffset(float minOffset) {\n this.mMinOffset = minOffset;\n }", "private void initTickMarksPixelMap() {\n LogUtil.info(TAG, \"initTickMarksPixelMap() begin\");\n if (mTickMarksDrawable instanceof StateElement) {\n StateElement listDrawable = (StateElement) mTickMarksDrawable;\n try {\n int stateCount = listDrawable.getStateCount();\n if (stateCount == 2) {\n setTickMarksPixelMapValues(listDrawable, stateCount);\n } else {\n\n //please check your selector drawable's format, please see above to correct.\n throw new IllegalArgumentException(\"the format of the selector TickMarks drawable is wrong!\");\n }\n } catch (IllegalArgumentException e) {\n mUnselectedTickMarksPixelMap = getPixelMapFromDrawable(mTickMarksDrawable, false);\n mSelectTickMarksPixelMap = mUnselectedTickMarksPixelMap;\n }\n } else {\n mUnselectedTickMarksPixelMap = getPixelMapFromResId(false, false);\n mSelectTickMarksPixelMap = mUnselectedTickMarksPixelMap;\n }\n LogUtil.info(TAG, \"initTickMarksPixelMap() end\");\n }", "protected void initialize() {\n Robot.m_drivetrain.resetPath();\n Robot.m_drivetrain.addPoint(0, 0);\n Robot.m_drivetrain.addPoint(3, 0);\n Robot.m_drivetrain.generatePath();\n \n\t}", "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 initMaze() {\n\t\tif (mMazeChars == null || mMazeChars.size() == 0)\n\t\t\treturn;\n\t\t\n\t\tint row = mMazeChars.size();\n\t\tint col = getMazeWidth();\n\t\t\n\t\t\n\t\tmIntegerMaze = new int[row][col];\n\t\t\n\t\tfor (int i = 0; i < row; i++) {\n\t\t\tString line = mMazeChars.get(i);\n\t\t\tfor (int j = 0; j < line.length(); j++) {\n\t\t\t\tchar tmpChar = line.charAt(j);\n\t\t\t\tint tmpNum = -1;\n\t\t\t\t\n\t\t\t\tif (tmpChar == LEVEL_WALL_CHAR || tmpChar == LEVEL_BOX_CHAR || tmpChar == LEVEL_BOX_ON_TARGET) {\n\t\t\t\t\ttmpNum = -1;\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\ttmpNum = 0;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tmIntegerMaze[i][j] = tmpNum;\n\t\t\t}\n\t\t}\n\t}", "public void initialize() {\n for (Location apu : this.locations) {\n Node next = new Node(apu.toString());\n this.cells.add(next);\n }\n \n for (Node helper : this.cells) {\n Location next = (Location)this.locations.searchWithString(helper.toString()).getOlio();\n LinkedList<Target> targets = next.getTargets();\n for (Target finder : targets) {\n Node added = this.path.search(finder.getName());\n added.setCoords(finder.getX(), finder.getY());\n helper.addEdge(new Edge(added, finder.getDistance()));\n }\n }\n \n this.startCell = this.path.search(this.source);\n this.goalCell = this.path.search(this.destination);\n \n /**\n * Kun lähtö ja maali on asetettu, voidaan laskea jokaiselle solmulle arvio etäisyydestä maaliin.\n */\n this.setHeuristics();\n }", "public void setNeighbors(){\t\t\t\t\n\t\tint row = position[0];\n\t\tint column = position[1];\t\t\n\t\tif(column+1 < RatMap.SIDELENGTH){\n\t\t\teastCell = RatMap.getMapCell(row,column+1);\t\t\t\n\t\t}else{\n\t\t\teastCell = null;\n\t\t}\t\n\t\tif(row+1 < RatMap.SIDELENGTH){\n\t\t\tnorthCell = RatMap.getMapCell(row+1,column);\n\t\t}else{\n\t\t\tnorthCell = null;\n\t\t}\t\n\t\tif(column-1 > -1){\n\t\t\twestCell = RatMap.getMapCell(row, column-1);\t\t\t\n\t\t}else{\n\t\t\twestCell = null;\n\t\t}\n\t\tif(row-1 > -1){\n\t\t\tsouthCell = RatMap.getMapCell(row-1, column);\n\t\t}else{\n\t\t\tsouthCell = null;\n\t\t}\n\t}", "public void start()\n\t{\n\t\tfor(int i=0;i<n;i++)\n\t\t{\n\t\t\tfor(int j=0;j<n;j++)\n\t\t\t{\n\t\t\t\tcost[i][j] = temp[i][j];\n\t\t\t\tmatrix[i][j]=0;\n\t\t\t}\n\t\t}\n\t\n\t\tfor(int k=0;k<n;k++)\n\t\t{\n\t\t\trowLabelMultiple[k]=0;\n\t\t\tcolumnLabelMultiple[k]=0;\n\t\t}\t\t\t\n\t}", "private void setPointsAs0() {\n\n for (int counter = 0; counter < countOfPoints; counter++) {\n points[counter] = new Point(0,0);\n }\n\n }", "private int[] defineStartingPos() {\n\t\tint[] positions = new int[4];\n\t\tif(initPos.equals(UP)) {\n\t\t\tpositions[0] = 0;\n\t\t\tpositions[1] = (size-1)/2;\n\t\t\tpositions[2] = 1;\n\t\t}else if(initPos.equals(DOWN)) {\n\t\t\tpositions[0] = size-1;\n\t\t\tpositions[1] = (size-1)/2;\n\t\t\tpositions[2] = -1;\n\t\t}else if(initPos.equals(LEFT)) {\n\t\t\tpositions[0] = (size-1)/2;\n\t\t\tpositions[1] = 0;\n\t\t\tpositions[3] = 1;\n\t\t}else if(initPos.equals(RIGHT)) {\n\t\t\tpositions[0] = (size-1)/2;\n\t\t\tpositions[1] = size-1;\n\t\t\tpositions[3] = -1;\n\t\t}\n\t\treturn positions;\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 }", "protected void initialize() {\n \tRobot.driveTrain.driveMotionMagic(distanceToTravel);\n }" ]
[ "0.654323", "0.5862477", "0.5823831", "0.5787613", "0.577727", "0.57298535", "0.57057583", "0.5698888", "0.56777203", "0.5675548", "0.56625223", "0.5607016", "0.55837816", "0.5574618", "0.5573244", "0.55688477", "0.55592245", "0.55206007", "0.54966164", "0.54935485", "0.54932076", "0.54886085", "0.548246", "0.5470995", "0.54667944", "0.5464707", "0.5460876", "0.545633", "0.54543036", "0.54462165", "0.5444504", "0.54415053", "0.5424484", "0.542203", "0.541963", "0.54109156", "0.54014915", "0.53952026", "0.5387488", "0.5369874", "0.5341311", "0.53402966", "0.5336585", "0.53348625", "0.5334669", "0.5318935", "0.5318436", "0.5317912", "0.5317461", "0.5305394", "0.5294743", "0.52909476", "0.52852803", "0.5284872", "0.5283707", "0.5279689", "0.52743554", "0.52734", "0.5273303", "0.52676195", "0.52593607", "0.525509", "0.52531207", "0.52467906", "0.5246192", "0.52437466", "0.5241014", "0.5239317", "0.5236295", "0.5236021", "0.5231866", "0.52309835", "0.52259773", "0.52224904", "0.5211266", "0.521038", "0.5203101", "0.5196942", "0.51952267", "0.5180122", "0.51724434", "0.517032", "0.51693857", "0.5163607", "0.51548874", "0.5154805", "0.51543945", "0.51525337", "0.51523566", "0.5145289", "0.5145014", "0.514454", "0.5142665", "0.5139649", "0.5136756", "0.5136641", "0.51313305", "0.51309687", "0.5128202", "0.51210046" ]
0.71787626
0
Generer le dataset from un ensemble de point
public List<Pair<INDArray, INDArray>> generateTestDataSet (List<Point> stockDataList) { int window = exampleLength + predictLength; List<Pair<INDArray, INDArray>> test = new ArrayList<Pair<INDArray, INDArray>>(); for (int i = 0; i < stockDataList.size() - window; i++) { INDArray input = Nd4j.create(new int[] {exampleLength, VECTOR_SIZE}, 'f'); // f pour la construction rapide (fast) for (int j = i; j < i + exampleLength; j++) { Point stock = stockDataList.get(j); input.putScalar(new int[] {j - i, 0}, (stock.getOpen() - minArray[0]) / (maxArray[0] - minArray[0])); input.putScalar(new int[] {j - i, 1}, (stock.getClose() - minArray[1]) / (maxArray[1] - minArray[1])); input.putScalar(new int[] {j - i, 2}, (stock.getLow() - minArray[2]) / (maxArray[2] - minArray[2])); input.putScalar(new int[] {j - i, 3}, (stock.getHigh() - minArray[3]) / (maxArray[3] - minArray[3])); input.putScalar(new int[] {j - i, 4}, (stock.getVolume() - minArray[4]) / (maxArray[4] - minArray[4])); } Point stock = stockDataList.get(i + exampleLength); INDArray label; if (category.equals(PriceCategory.ALL)) { label = Nd4j.create(new int[]{VECTOR_SIZE}, 'f'); // f pour la construction rapide (fast) label.putScalar(new int[] {0}, stock.getOpen()); label.putScalar(new int[] {1}, stock.getClose()); label.putScalar(new int[] {2}, stock.getLow()); label.putScalar(new int[] {3}, stock.getHigh()); label.putScalar(new int[] {4}, stock.getVolume()); } else { label = Nd4j.create(new int[] {1}, 'f'); switch (category) { case OPEN: label.putScalar(new int[] {0}, stock.getOpen()); break; case CLOSE: label.putScalar(new int[] {0}, stock.getClose()); break; case LOW: label.putScalar(new int[] {0}, stock.getLow()); break; case HIGH: label.putScalar(new int[] {0}, stock.getHigh()); break; case VOLUME: label.putScalar(new int[] {0}, stock.getVolume()); break; default: throw new NoSuchElementException(); } } test.add(new Pair<INDArray, INDArray>(input, label)); } return test; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static List<Point> createConvergingDataset() {\r\n List<Point> data = new ArrayList<Point>();\r\n add(data, 1, 400);\r\n add(data, 5, 700);\r\n add(data, 10, 900);\r\n add(data, 15, 1000);\r\n add(data, 20, 1050);\r\n add(data, 25, 1060);\r\n add(data, 30, 1062);\r\n return data;\r\n }", "private static List<Point> createLinearDataset() {\r\n List<Point> data = new ArrayList<Point>();\r\n add(data, 1, 100);\r\n add(data, 5, 200);\r\n add(data, 10, 300);\r\n add(data, 15, 400);\r\n return data;\r\n }", "private XYDataset createDataset() {\n\t \tXYSeriesCollection dataset = new XYSeriesCollection();\n\t \t\n\t \t//Definir cada Estacao\n\t\t XYSeries aes1 = new XYSeries(\"Estação1\");\n\t\t XYSeries aes2 = new XYSeries(\"Estação2\");\n\t\t XYSeries aes3 = new XYSeries(\"Estação3\");\n\t\t XYSeries aes4 = new XYSeries(\"Estação4\");\n\t\t XYSeries aes5 = new XYSeries(\"Estação5\");\n\t\t XYSeries aes6 = new XYSeries(\"Estação6\");\n\t\t XYSeries aes7 = new XYSeries(\"Estação7\");\n\t\t XYSeries aes8 = new XYSeries(\"Estação8\");\n\t\t XYSeries aes9 = new XYSeries(\"Estação9\");\n\t\t XYSeries aes10 = new XYSeries(\"Estação10\");\n\t\t XYSeries aes11 = new XYSeries(\"Estação11\");\n\t\t XYSeries aes12 = new XYSeries(\"Estação12\");\n\t\t XYSeries aes13 = new XYSeries(\"Estação13\");\n\t\t XYSeries aes14 = new XYSeries(\"Estação14\");\n\t\t XYSeries aes15 = new XYSeries(\"Estação15\");\n\t\t XYSeries aes16 = new XYSeries(\"Estação16\");\n\t\t \n\t\t //Definir numero de utilizadores em simultaneo para aparece na Interface\n\t\t XYSeries au1 = new XYSeries(\"AU1\");\n\t\t XYSeries au2 = new XYSeries(\"AU2\");\n\t\t XYSeries au3 = new XYSeries(\"AU3\");\n\t\t XYSeries au4 = new XYSeries(\"AU4\");\n\t\t XYSeries au5 = new XYSeries(\"AU5\");\n\t\t XYSeries au6 = new XYSeries(\"AU6\");\n\t\t XYSeries au7 = new XYSeries(\"AU7\");\n\t\t XYSeries au8 = new XYSeries(\"AU8\");\n\t\t XYSeries au9 = new XYSeries(\"AU9\");\n\t\t XYSeries au10 = new XYSeries(\"AU10\");\n\t\t \n\t\t //Colocar estacoes no gráfico\n\t\t aes1.add(12,12);\n\t\t aes2.add(12,37);\n\t\t aes3.add(12,62);\n\t\t aes4.add(12,87);\n\t\t \n\t\t aes5.add(37,12);\n\t\t aes6.add(37,37);\n\t\t aes7.add(37,62);\n\t\t aes8.add(37,87);\n\t\t \n\t\t aes9.add(62,12); \n\t\t aes10.add(62,37);\n\t\t aes11.add(62,62);\n\t\t aes12.add(62,87);\n\t\t \n\t\t aes13.add(87,12);\n\t\t aes14.add(87,37);\n\t\t aes15.add(87,62);\n\t\t aes16.add(87,87);\n\t\t \n\t\t//Para a bicicleta 1\n\t\t \t\n\t\t\t for(Entry<String, String> entry : position1.entrySet()) {\n\t\t\t\t String key = entry.getKey();\n\t\t\t\t \n\t\t\t\t String[] part= key.split(\",\");\n\t\t\t\t double keyX=Double.valueOf(part[0]);\n\t\t\t\t double keyY=Double.valueOf(part[1]);\n\t\t\t\t \n\t\t\t\t au1.add(keyX,keyY);\n\t\t\t }\n\t\t \n\t\t\t //Para a bicicleta 2\n\t\t for(Entry<String, String> entry : position2.entrySet()) {\n\t\t\t String key = entry.getKey();\n\t\t\t \n\t\t\t String[] part= key.split(\",\");\n\t\t\t double keyX=Double.valueOf(part[0]);\n\t\t\t double keyY=Double.valueOf(part[1]);\n\t\t\t \n\t\t\t au2.add(keyX,keyY);\n\t\t }\n\t\t \n\t\t //Para a bicicleta 3\n\t\t for(Entry<String, String> entry : position3.entrySet()) {\n\t\t\t String key = entry.getKey();\n\t\t\t \n\t\t\t String[] part= key.split(\",\");\n\t\t\t double keyX=Double.valueOf(part[0]);\n\t\t\t double keyY=Double.valueOf(part[1]);\n\t\t\t \n\t\t\t au3.add(keyX,keyY);\n\t\t }\n\t\t for(Entry<String, String> entry : position4.entrySet()) {\n\t\t\t String key = entry.getKey();\n\t\t\t \n\t\t\t String[] part= key.split(\",\");\n\t\t\t double keyX=Double.valueOf(part[0]);\n\t\t\t double keyY=Double.valueOf(part[1]);\n\t\t\t \n\t\t\t au4.add(keyX,keyY);\n\t\t }\n\t\t for(Entry<String, String> entry : position5.entrySet()) {\n\t\t\t String key = entry.getKey();\n\t\t\t \n\t\t\t String[] part= key.split(\",\");\n\t\t\t double keyX=Double.valueOf(part[0]);\n\t\t\t double keyY=Double.valueOf(part[1]);\n\t\t\t \n\t\t\t au5.add(keyX,keyY);\n\t\t }\n\t\t for(Entry<String, String> entry : position6.entrySet()) {\n\t\t\t String key = entry.getKey();\n\t\t\t \n\t\t\t String[] part= key.split(\",\");\n\t\t\t double keyX=Double.valueOf(part[0]);\n\t\t\t double keyY=Double.valueOf(part[1]);\n\t\t\t \n\t\t\t au6.add(keyX,keyY);\n\t\t }\n\t\t for(Entry<String, String> entry : position7.entrySet()) {\n\t\t\t String key = entry.getKey();\n\t\t\t \n\t\t\t String[] part= key.split(\",\");\n\t\t\t double keyX=Double.valueOf(part[0]);\n\t\t\t double keyY=Double.valueOf(part[1]);\n\t\t\t \n\t\t\t au7.add(keyX,keyY);\n\t\t }\n\t\t for(Entry<String, String> entry : position8.entrySet()) {\n\t\t\t String key = entry.getKey();\n\t\t\t \n\t\t\t String[] part= key.split(\",\");\n\t\t\t double keyX=Double.valueOf(part[0]);\n\t\t\t double keyY=Double.valueOf(part[1]);\n\t\t\t \n\t\t\t au8.add(keyX,keyY);\n\t\t }\n\t\t for(Entry<String, String> entry : position9.entrySet()) {\n\t\t\t String key = entry.getKey();\n\t\t\t \n\t\t\t String[] part= key.split(\",\");\n\t\t\t double keyX=Double.valueOf(part[0]);\n\t\t\t double keyY=Double.valueOf(part[1]);\n\t\t\t \n\t\t\t au9.add(keyX,keyY);\n\t\t }\n\t\t for(Entry<String, String> entry : position10.entrySet()) {\n\t\t\t String key = entry.getKey();\n\t\t\t \n\t\t\t String[] part= key.split(\",\");\n\t\t\t double keyX=Double.valueOf(part[0]);\n\t\t\t double keyY=Double.valueOf(part[1]);\n\t\t\t \n\t\t\t au10.add(keyX,keyY);\n\t\t }\n\t\t \n\t\t //Add series to dataset\n\t\t dataset.addSeries(au1);\n\t\t dataset.addSeries(au2);\n\t\t dataset.addSeries(au3);\n\t\t dataset.addSeries(au4);\n\t\t dataset.addSeries(au5);\n\t\t dataset.addSeries(au6);\n\t\t dataset.addSeries(au7);\n\t\t dataset.addSeries(au8);\n\t\t dataset.addSeries(au9);\n\t\t dataset.addSeries(au10);\n\t\t \n\t\t \n\t\t dataset.addSeries(aes1);\n\t\t dataset.addSeries(aes2);\n\t\t dataset.addSeries(aes3);\n\t\t dataset.addSeries(aes4);\n\t\t dataset.addSeries(aes5);\n\t\t dataset.addSeries(aes6);\n\t\t dataset.addSeries(aes7);\n\t\t dataset.addSeries(aes8);\n\t\t dataset.addSeries(aes9);\n\t\t dataset.addSeries(aes10);\n\t\t dataset.addSeries(aes11);\n\t\t dataset.addSeries(aes12);\n\t\t dataset.addSeries(aes13);\n\t\t dataset.addSeries(aes14);\n\t\t dataset.addSeries(aes15);\n\t\t dataset.addSeries(aes16);\n\t\t \n\t\t return dataset;\n\t }", "private static void fillDataset(Dataset d){\n try{\n\n BufferedReader in = new BufferedReader(new FileReader(\"src/points.txt\"));\n String str;\n while ((str = in.readLine()) != null){\n String[] tmp=str.split(\",\");\n d.addPoint(new Point(Double.parseDouble(tmp[0]), Double.parseDouble(tmp[1])));\n }\n in.close();\n }\n catch (IOException e){\n System.out.println(\"File Read Error\");\n }\n }", "private DataSet normalDataSet(){\n //create normal distribution with mean .05 and sd .05/3 so that 99.7% of events are < .1\n NormalDistribution normalDistribution = new NormalDistribution(TARGET_MEAN, TARGET_MEAN/3D);\n DataSet dataSet = new DataSet();\n Task[] tasks = new Task[NUM_DISTINCT_TASKS];\n //generate costs from sampling from normal distribution\n for(int i=0; i < NUM_DISTINCT_TASKS; i++){\n UUID uuid = UUID.randomUUID();\n Long cost = (long) Math.max(1, normalDistribution.sample()); //make sure no 0 cost events\n tasks[i] = new Task(cost, uuid);\n }\n //generate task multiplities from sampling from uniform distribution\n for(int i=0; i < NUM_TASKS; i++){\n dataSet.getTasks().add(tasks[random.nextInt(NUM_DISTINCT_TASKS)]);\n }\n return dataSet;\n }", "private DataSet constantDataSet(){\n DataSet dataSet = new DataSet();\n Task[] tasks = new Task[NUM_DISTINCT_TASKS];\n //generate taks with all 50 mills\n for(int i=0; i < NUM_DISTINCT_TASKS; i++){\n UUID uuid = UUID.randomUUID();\n tasks[i] = new Task(TARGET_MEAN, uuid);\n }\n for(int i=0; i < NUM_TASKS; i++){\n dataSet.getTasks().add(tasks[random.nextInt(NUM_DISTINCT_TASKS)]);\n }\n return dataSet;\n }", "private void initDataset(){\n dataSet.add(\"Karin\");\n dataSet.add(\"Ingrid\");\n dataSet.add(\"Helga\");\n dataSet.add(\"Renate\");\n dataSet.add(\"Elke\");\n dataSet.add(\"Ursula\");\n dataSet.add(\"Erika\");\n dataSet.add(\"Christa\");\n dataSet.add(\"Gisela\");\n dataSet.add(\"Monika\");\n\n addDataSet.add(\"Anna\");\n addDataSet.add(\"Sofia\");\n addDataSet.add(\"Emilia\");\n addDataSet.add(\"Emma\");\n addDataSet.add(\"Neele\");\n addDataSet.add(\"Franziska\");\n addDataSet.add(\"Heike\");\n addDataSet.add(\"Katrin\");\n addDataSet.add(\"Katharina\");\n addDataSet.add(\"Liselotte\");\n }", "public Dataset(final int dimensions, final int numPoints) {\n this(dimensions);\n\n for (int i = 0; i < numPoints; i++) {\n double[] point = new double[dimensions];\n addPoint(new DataPoint(point));\n }\n }", "private Dataset prepareDataset() {\n // create TAPIR dataset with single endpoint\n Dataset dataset = new Dataset();\n dataset.setKey(UUID.randomUUID());\n dataset.setTitle(\"Beavers\");\n dataset.addEndpoint(endpoint);\n\n // add single Contact\n Contact contact = new Contact();\n contact.setKey(1);\n contact.addEmail(\"[email protected]\");\n dataset.setContacts(Lists.newArrayList(contact));\n\n // add single Identifier\n Identifier identifier = new Identifier();\n identifier.setKey(1);\n identifier.setType(IdentifierType.GBIF_PORTAL);\n identifier.setIdentifier(\"450\");\n dataset.setIdentifiers(Lists.newArrayList(identifier));\n\n // add 2 MachineTags 1 with metasync.gbif.org namespace, and another not having it\n List<MachineTag> machineTags = Lists.newArrayList();\n\n MachineTag machineTag = new MachineTag();\n machineTag.setKey(1);\n machineTag.setNamespace(Constants.METADATA_NAMESPACE);\n machineTag.setName(Constants.DECLARED_COUNT);\n machineTag.setValue(\"1000\");\n machineTags.add(machineTag);\n\n MachineTag machineTag2 = new MachineTag();\n machineTag2.setKey(2);\n machineTag2.setNamespace(\"public\");\n machineTag2.setName(\"IsoCountryCode\");\n machineTag2.setValue(\"DK\");\n machineTags.add(machineTag2);\n\n dataset.setMachineTags(machineTags);\n\n // add 1 Tag\n Tag tag = new Tag();\n tag.setKey(1);\n tag.setValue(\"Invasive\");\n dataset.setTags(Lists.newArrayList(tag));\n\n return dataset;\n }", "void fit(DataSet dataSet);", "private XYDataset createDataset() {\n final XYSeriesCollection dataset = new XYSeriesCollection();\n //dataset.addSeries(totalDemand);\n dataset.addSeries(cerContent);\n //dataset.addSeries(cerDemand);\n dataset.addSeries(comContent);\n //dataset.addSeries(comDemand);\n dataset.addSeries(activation);\n dataset.addSeries(resolutionLevel);\n \n return dataset;\n }", "abstract protected Dataset getNewCandidates();", "private XYDataset createDataset() {\n\t\tfinal XYSeriesCollection dataset = new XYSeriesCollection( ); \n\t\tdataset.addSeries(trainErrors); \n\t\tdataset.addSeries(testErrors);\n\t\treturn dataset;\n\t}", "private XYDataset createDataset(String WellID, String lang) {\n final TimeSeries eur = createEURTimeSeries(WellID, lang);\n final TimeSeriesCollection dataset = new TimeSeriesCollection();\n dataset.addSeries(eur);\n return dataset;\n }", "private DefaultCategoryDataset createDataset() {\n\t\t\n\t\tdataset.clear();\n\t\t\n\t\t// Query HIM to submit data for bar chart display \n\t\tHistoricalInfoMgr.getChartDataset(expNum);\n\n\n\t\treturn dataset; // add the data point (y-value, variable, x-value)\n\t}", "@Override\n\tpublic Instances dataset() {\n\t\treturn null;\n\t}", "public List<Dataset> getDatasets();", "public void dataConfig(String dir) {\n VersatileDataSource source = new CSVDataSource(new File(dir + \"trainData/iris.csv\"), false,\n CSVFormat.DECIMAL_POINT);\n VersatileMLDataSet data = new VersatileMLDataSet(source);\n data.defineSourceColumn(\"sepal-length\", 0, ColumnType.continuous);\n data.defineSourceColumn(\"sepal-width\", 1, ColumnType.continuous);\n data.defineSourceColumn(\"petal-length\", 2, ColumnType.continuous);\n data.defineSourceColumn(\"petal-width\", 3, ColumnType.continuous);\n\n // Define the column that we are trying to predict.\n ColumnDefinition outputColumn = data.defineSourceColumn(\"species\", 4,\n ColumnType.nominal);\n data.analyze();\n data.defineSingleOutputOthersInput(outputColumn);\n\n EncogModel model = new EncogModel(data);\n\n model.selectMethod(data, \"feedforward\");\n data.normalize();\n System.out.println(data.get(0).toString());\n NeuralUtils.dataToFile(data, dir + \"trainData/test.csv\");\n\n NormalizationHelper helper = data.getNormHelper();\n System.out.println(helper.toString());\n NeuralUtils.persistHelper(helper, dir + \"resources/Helper/helper.txt\");\n\n }", "private XYDataset createSampleDataset(GradientDescent gd) {\n XYSeries predictedY = new XYSeries(\"Predicted Y\");\n XYSeries actualY = new XYSeries(\"Actual Y\");\n List<BigDecimal> xValues = gd.getInitialXValues();\n List<BigDecimal> yPred = gd.getPredictedY(xValues);\n List<BigDecimal> yActual = gd.getInitialYValues();\n for (int cont = 0; cont < xValues.size(); cont++){\n \tpredictedY.add(xValues.get(cont), yPred.get(cont));\n \tSystem.out.println(\"pred: \" + xValues.get(cont) + \", \" + yPred.get(cont));\n \tactualY.add(xValues.get(cont), yActual.get(cont));\n \tSystem.out.println(\"actual: \" + xValues.get(cont) + \", \" + yActual.get(cont));\n\t\t}\n XYSeriesCollection dataset = new XYSeriesCollection();\n dataset.addSeries(predictedY);\n dataset.addSeries(actualY);\n return dataset;\n }", "private DataSet caucyDataSet(){\n CauchyDistribution cauchyDistribution = new CauchyDistribution(TARGET_MEAN, TARGET_MEAN/10);\n DataSet dataSet = new DataSet();\n Task[] tasks = new Task[NUM_DISTINCT_TASKS];\n //generate costs from sampling from normal distribution\n for(int i=0; i < NUM_DISTINCT_TASKS; i++){\n UUID uuid = UUID.randomUUID();\n Long cost = (long) Math.max(1, cauchyDistribution.sample()); //make sure no 0 cost events\n tasks[i] = new Task(cost, uuid);\n }\n //generate task multiplities from sampling from uniform distribution\n for(int i=0; i < NUM_TASKS; i++){\n dataSet.getTasks().add(tasks[random.nextInt(NUM_DISTINCT_TASKS)]);\n }\n return dataSet;\n }", "Point(int dimensionPass, int clusters){\n\tthis.dimension = dimensionPass;\n\tthis.data = new double[dimension];\n\tthis.clusterDist = new double[clusters];\n\t\n}", "public IDataSet extractFeatures(String featureType);", "private static List<Point> genererPointsAlea(int nbPoints) {\n /*List<Point> points = new ArrayList<>();\n Random rand = new Random(0);\n for(int i=0; i<nbPoints; i++) {\n Point p = new Point(rand.nextDouble(), rand.nextDouble());\n points.add(p);\n }\n return points;*/\n return null;\n }", "void pretrain(DataSetIterator iterator);", "private CategoryDataset createDataset() {\n\t \n\t \tvar dataset = new DefaultCategoryDataset();\n\t \n\t\t\tSystem.out.println(bic);\n\t\t\t\n\t\t\tfor(Map.Entry<String, Integer> entry : bic.entrySet()) {\n\t\t\t String key = entry.getKey();\n\t\t\t Integer value = entry.getValue();\n\t\t\t dataset.setValue(value, \"# Bicicletas\", key);\n\t \n\t\t\t}\n\t return dataset;\n\t \n\t }", "private XYMultipleSeriesDataset getdemodataset() {\n\t\t\tdataset1 = new XYMultipleSeriesDataset();// xy轴数据源\n\t\t\tseries = new XYSeries(\"温度 \");// 这个事是显示多条用的,显不显示在上面render设置\n\t\t\t// 这里相当于初始化,初始化中无需添加数据,因为如果这里添加第一个数据的话,\n\t\t\t// 很容易使第一个数据和定时器中更新的第二个数据的时间间隔不为两秒,所以下面语句屏蔽\n\t\t\t// 这里可以一次更新五个数据,这样的话相当于开始的时候就把五个数据全部加进去了,但是数据的时间是不准确或者间隔不为二的\n\t\t\t// for(int i=0;i<5;i++)\n\t\t\t// series.add(1, Math.random()*10);//横坐标date数据类型,纵坐标随即数等待更新\n\n\t\t\tdataset1.addSeries(series);\n\t\t\treturn dataset1;\n\t\t}", "public void generateData()\n {\n }", "public VectorSet getMappedData() {\n\t\tMap<double[], ClassDescriptor> newData = new HashMap<double[], ClassDescriptor>();\n\t\tMap<double[], ClassDescriptor> data = orig.getData();\n\t\t\n\t\t// y = A x\n\t\tfor(double[] x: data.keySet()) {\n\t\t\tnewData.put(mapVector(x), data.get(x));\n\t\t}\n\n\t\tString[] labels = new String[resultDimension];\n\t\tfor(int i = 0; i < resultDimension; i++) {\n\t\t\tlabels[i] = Integer.toString(i + 1);\n\t\t}\n\n\t\treturn new VectorSet(newData, labels);\n\t}", "void fit(DataSetIterator iterator);", "public void printDataset() {\n for (int i = 0; i < getNumPoints(); i++) {\n System.out.println(\"\\n\" + getPoint(i));\n }\n System.out.println(\" \");\n }", "@SuppressWarnings({ \"unchecked\", \"rawtypes\" })\r\n\tpublic Data(String table) throws EmptyDatasetException, SQLException, EmptySetException, NoValueException{\r\n\t\tTableData tableData = new TableData(new DbAccess());\r\n\t\tdata = tableData.getDistinctTransazioni(table);\r\n\t\t\r\n\t\tTableSchema tableSchema = new TableSchema(new DbAccess(),table);\r\n\t\tnumberOfExamples=data.size();\r\n\t\t\r\n\t\tQUERY_TYPE min,max;\r\n\t\tmin = QUERY_TYPE.MIN;\r\n\t\tmax = QUERY_TYPE.MAX;\r\n\t\t\r\n\t\tfor (int i=0;i<tableSchema.getNumberOfAttributes();i++) {\r\n\t\t\tif(!tableSchema.getColumn(i).isNumber()) {\r\n\t\t\t\texplanatorySet.add((T) new DiscreteAttribute(tableSchema.getColumn(i).getColumnName(),i,(TreeSet)tableData.getDistinctColumnValues(table, tableSchema.getColumn(i))));\r\n\t\t\t}else {\r\n\t\t\t\texplanatorySet.add((T) new ContinuousAttribute(tableSchema.getColumn(i).getColumnName(),i,(float)tableData.getAggregateColumnValue(table,tableSchema.getColumn(i),min),(float)tableData.getAggregateColumnValue(table,tableSchema.getColumn(i),max)));\r\n\t\t\t}\r\n\t\t\t\t\r\n\t\t}\r\n\t}", "public void KNN() {\n\n\t\t\n\t\t// for each point in test data\n\t\tdouble x = 0;\n\t\tdouble y = 0;\n\t\tdouble xy = 0;\n\t\tdouble sum = 0;\n\t\tdouble m = this.Extracted_TestDataset.length;\n\t\tArrayList<ArrayList<Double>> EucledianDistanceUnsorted = new ArrayList<>(this.Extracted_TestDataset.length);\n\t\tArrayList<ArrayList<Double>> EucledianDistanceSorted = new ArrayList<>(this.Extracted_TestDataset.length);\n\t\t//EucledianDistance\n\t\t\n\t\t// Initialize EucledianDistance List\n\t\tfor(int i=0; i < this.Extracted_TestDataset.length; i++) {\n\t\t\tEucledianDistanceUnsorted.add(new ArrayList());\n\t\t}\n\t\t\n\t\tfor(int i=0; i < this.Extracted_TestDataset.length; i++) {\n\t\t\tEucledianDistanceSorted.add(new ArrayList());\n\t\t}\n\t\t\n\t\t// Testing sorting \n\t\t/*\n\t\tfor(int i=0; i < this.Extracted_TestDataset.length; i++) {\n\t\t\tfor(int k=0; k < this.Extracted_TestDataset[i].length; k++) {\n\t\t\t\tdouble min = 0.0; // Set To Your Desired Min Value\n\t\t double max = 10.0; // Set To Your Desired Max Value\n\t\t double ran = (Math.random() * ((max - min) + 1)) + min; // This Will Create \n\t\t \n\t\t double xrounded = Math.round(ran * 100.0) / 100.0; \n\t\t System.out.print(xrounded); \n\t\t //System.out.print(\" , \"); \n\t\t EucledianDistanceUnsorted.get(i).add(xrounded);\n\t\t\t\t\n\t\t\t}\n\t\t\t//System.out.println(\"\"); \n\t\t\t\n\t\t}\n\t\t*/\n\n\t\t\n\t\t\n\t\t//start at index 1 discard the attribute name row\n\t\tfor ( int p = 1; p < (this.Extracted_TestDataset.length-1) ; p++) {\n\t\t//start at index 1 discard the attribute name row\n\t\tfor ( int i = 1; i < this.Extracted_TrainingDataset.length; i++) {\n\t\t\tsum = 0;\n\t\t\tint k = 0;\n\t\t\t//System.out.println(\"first loop\");\n\t\t\tfor ( ; k < (this.Extracted_TestDataset[0].length-1) ; k++) {\t\t\t\n\t\t\t\t//System.out.println(\"second loop\");\n\t\t\t\t\n\t\t\t\tx = (Double.parseDouble(this.Extracted_TestDataset[p][k]));\n\t\t\t\t\t//System.out.print(\" x value : \");\n\t\t\t\t\t//System.out.print(x);\n\t\t\t\t\n\t\t\t\t\n\t\t\t\ty = (Double.parseDouble(this.Extracted_TrainingDataset[i][k]));\n\t\t\t//\tSystem.out.print(\" y value : \");\n\t\t\t//\tSystem.out.println(y);\n\t\t\t\t\n\t\t\t\t\t\n\t\t\t\txy = x - y;\n\t\t\t\n\t\t\t\txy = (Math.pow(xy, 2));\n\t\t\t\tsum += xy;\n\t\t\t\t\t\t\n\t\t\t\t//System.out.print(\" sum : \");\n\t\t\t\t//System.out.println(sum);\n\t\t\t\t}\n\n\t\t\tEucledianDistanceUnsorted.get(p).add((Math.sqrt(sum/k)));\n\t\t\t\t//System.out.printf(\" distance value of row %i in col %i : %s %n\", i, k ,EucledianDistanceUnsorted.get(i).get(k));\t\t\n\t\t\t}\n\t\t\n\t\t\t//start at index 1 discard the attribute name row\n\t\t\t/*for ( int i = 0; i < (this.Extracted_TrainingDataset.length-1) ; i++) {\t\t\n\t\t\t\tSystem.out.print(\" distance value of row \");\n\t\t\t\tSystem.out.print(p);\n\t\t\t\tSystem.out.print(\" in col \");\n\t\t\t\tSystem.out.print(i);\n\t\t\t\tSystem.out.print(\" = \");\n\t\t\t\tSystem.out.print(EucledianDistanceUnsorted.get(p).get(i));\n\t\t\t\tSystem.out.println(\"\");\t\n\t\t\t}*/\n\t\t\t\n\t\t System.out.print(\"Count : \");\n\t\t System.out.println(p);\n\t\t}\n\t\n\t\tSystem.out.println(\"About to sort distance\");\n\t\t\n\t\tfor( int i = 1; i < (EucledianDistanceUnsorted.size()-1); i++){\n\t\t\tArrayList<Double> temp = EucledianDistanceUnsorted.get(i);\n\t\t\tCollections.sort(temp);\n\t\t\tfor(int k=0; k < (this.Extracted_TrainingDataset.length- 1); k++) {\n\t\t\t\tEucledianDistanceSorted.get(i).add(temp.get(k));\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(\" Sorted eucledian distance of first k values \");\n\t\tfor(int i=1; i < EucledianDistanceSorted.size()-1; i++) {\n\t\t\tfor(int k=0; k < (this.ValueofK); k++) {\n\t\t\t\tSystem.out.print(EucledianDistanceSorted.get(i).get(k));\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\t\t\n\t\tSystem.out.println(\" finding class of first k points \");\n\t\t// find majority distance and find index of distance in unsorted distance \n\t\tdouble majority = 0.0;\n\t\tint IndexofDistance = 0;\n\t\tfor(int i=1; i < (EucledianDistanceSorted.size()-1); i++) {\n\t\t\t\n\t\t\t\tmajority = findMajority(EucledianDistanceSorted.get(i), this.ValueofK);\n\t\t\t\tSystem.out.print(\" index : \");\n\t\t\t\tSystem.out.print(i);\n\t\t\t\tSystem.out.print(\" majority : \");\n\t\t\t\tSystem.out.println(majority);\n\t\t\t\tIndexofDistance = findIndexofMajority(majority,EucledianDistanceUnsorted.get(i));\n\n\t\t\t\t//System.out.print(\" test row original class :\");\n\t\t\t\t//System.out.println(this.Extracted_TestDataset[i][this.feature_extraction.size()-1]);\n\t\t\t\tconfusionmatrix.addTrueValue(Extracted_TestDataset[i][this.feature_extraction.size()-1]);\n\t\t\t\t//System.out.print(\" predectived training row classifier : \");\n\t\t\t\t//System.out.println(this.Extracted_TrainingDataset[IndexofDistance][this.feature_extraction.size()-1]);\t\n\t\t\t\tconfusionmatrix.addPrediction(Extracted_TrainingDataset[IndexofDistance][this.feature_extraction.size()-1]);\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\tSystem.out.println(\"\");\n\t\t\tSystem.out.println(\"Total number of predictions: \" + confusionmatrix.TotalNumberOfPredictions());\n\t\t\tSystem.out.println(\"Number of correct predictions: \"+confusionmatrix.Correct());\n\t\t\tSystem.out.println(\"Number of incorrect predictions: \"+confusionmatrix.Incorrect());\n\t\t\n\t\t\t\n\t\t\tSystem.out.println(\"True positive (TP): correct positive prediction: \" + confusionmatrix.TruePositive());\n\t\t\tSystem.out.println(\"False positive (FP): incorrect positive prediction: \" + confusionmatrix.FalsePositive());\n\t\t\tSystem.out.println(\"True negative (TN): correct negative prediction: \" + confusionmatrix.TrueNegative());\n\t\t\tSystem.out.println(\"False negative (FN): incorrect negative prediction: \" +confusionmatrix.FalseNegative()); \n\t\t\tSystem.out.println(\"Error Rate: \"+confusionmatrix.ErrorRate());\n\t\t\tSystem.out.println(\"Accuracy Rate: \"+confusionmatrix.AccuracyRate());\n\t}", "public hu.blackbelt.epsilon.runtime.model.test1.data.DataModel build() {\n final hu.blackbelt.epsilon.runtime.model.test1.data.DataModel _newInstance = hu.blackbelt.epsilon.runtime.model.test1.data.DataFactory.eINSTANCE.createDataModel();\n if (m_featureNameSet) {\n _newInstance.setName(m_name);\n }\n if (m_featureEntitySet) {\n _newInstance.getEntity().addAll(m_entity);\n } else {\n if (!m_featureEntityBuilder.isEmpty()) {\n for (hu.blackbelt.epsilon.runtime.model.test1.data.util.builder.IDataBuilder<? extends hu.blackbelt.epsilon.runtime.model.test1.data.Entity> builder : m_featureEntityBuilder) {\n _newInstance.getEntity().add(builder.build());\n }\n }\n }\n return _newInstance;\n }", "public static void main(String[] args) throws Exception {\n int numLinesToSkip = 0;\n String delimiter = \",\"; //这是csv文件中的分隔符\n RecordReader recordReader = new CSVRecordReader(numLinesToSkip,delimiter);\n recordReader.initialize(new FileSplit(new ClassPathResource(\"dataSet20170119.csv\").getFile()));\n\n //Second: the RecordReaderDataSetIterator handles conversion to DataSet objects, ready for use in neural network\n\n /**\n * 这是标签(类别)所在列的序号\n */\n int labelIndex = 0; //5 values in each row of the iris.txt CSV: 4 input features followed by an integer label (class) index. Labels are the 5th value (index 4) in each row\n //类别的总数\n int numClasses = 2; //3 classes (types of iris flowers) in the iris data set. Classes have integer values 0, 1 or 2\n\n //一次读取多少条数据。当数据量较大时可以分几次读取,每次读取后就训练。这就是随机梯度下降\n int batchSize = 2000; //Iris data set: 150 examples total. We are loading all of them into one DataSet (not recommended for large data sets)\n\n DataSetIterator iterator = new RecordReaderDataSetIterator(recordReader,batchSize,labelIndex,numClasses);\n //因为我在这里写的2000是总的数据量大小,一次读完,所以一次next就完了。如果分批的话要几次next\n DataSet allData = iterator.next();\n// allData.\n allData.shuffle();\n SplitTestAndTrain testAndTrain = allData.splitTestAndTrain(0.8); //Use 65% of data for training\n\n DataSet trainingData = testAndTrain.getTrain();\n DataSet testData = testAndTrain.getTest();\n //We need to normalize our data. We'll use NormalizeStandardize (which gives us mean 0, unit variance):\n //数据归一化的步骤,非常重要,不做可能会导致梯度中的几个无法收敛\n DataNormalization normalizer = new NormalizerStandardize();\n normalizer.fit(trainingData); //Collect the statistics (mean/stdev) from the training data. This does not modify the input data\n normalizer.transform(trainingData); //Apply normalization to the training data\n normalizer.transform(testData); //Apply normalization to the test data. This is using statistics calculated from the *training* set\n\n\n final int numInputs = 9202;\n int outputNum = 2;\n int iterations = 1000;\n long seed = 142;\n int numEpochs = 50; // number of epochs to perform\n\n log.info(\"Build model....\");\n MultiLayerConfiguration conf = new NeuralNetConfiguration.Builder()\n .seed(seed)\n .optimizationAlgo(OptimizationAlgorithm.STOCHASTIC_GRADIENT_DESCENT)\n .iterations(iterations)\n .activation(Activation.SIGMOID)\n .weightInit(WeightInit.ZERO) //参数初始化的方法,全部置零\n .learningRate(1e-3) //经过测试,这里的学习率在1e-3比较合适\n .regularization(true).l2(5e-5) //正则化项,防止参数过多导致过拟合。2阶范数乘一个比率\n .list()\n\n .layer(0, new OutputLayer.Builder(LossFunctions.LossFunction.NEGATIVELOGLIKELIHOOD)\n .activation(Activation.SIGMOID)\n .nIn(numInputs).nOut(outputNum).build())\n .backprop(true).pretrain(false)\n .build();\n\n //run the model\n MultiLayerNetwork model = new MultiLayerNetwork(conf);\n model.init();\n model.setListeners(new ScoreIterationListener(100));\n\n\n log.info(\"Train model....\");\n for( int i=0; i<numEpochs; i++ ){\n log.info(\"Epoch \" + i);\n model.fit(trainingData);\n\n //每个epoch结束后立马观察模型估计的效果,方便及早停止\n Evaluation eval = new Evaluation(numClasses);\n INDArray output = model.output(testData.getFeatureMatrix());\n eval.eval(testData.getLabels(), output);\n log.info(eval.stats());\n }\n\n }", "private static List<Point> createIncreasingDecreasingDataset() {\r\n List<Point> data = new ArrayList<Point>();\r\n add(data, 1, 400);\r\n add(data, 5, 700);\r\n add(data, 10, 900);\r\n add(data, 15, 1000);\r\n add(data, 20, 900);\r\n add(data, 25, 700);\r\n add(data, 30, 500);\r\n return data;\r\n }", "private List<Tuple2<Integer, Integer>> initSampleDataset() {\n List<Tuple2<Integer, Integer>> rawChapterData = new ArrayList<>();\n rawChapterData.add(new Tuple2<>(96, 1));\n rawChapterData.add(new Tuple2<>(97, 1));\n rawChapterData.add(new Tuple2<>(98, 1));\n rawChapterData.add(new Tuple2<>(99, 2));\n rawChapterData.add(new Tuple2<>(100, 3));\n rawChapterData.add(new Tuple2<>(101, 3));\n rawChapterData.add(new Tuple2<>(102, 3));\n rawChapterData.add(new Tuple2<>(103, 3));\n rawChapterData.add(new Tuple2<>(104, 3));\n rawChapterData.add(new Tuple2<>(105, 3));\n rawChapterData.add(new Tuple2<>(106, 3));\n rawChapterData.add(new Tuple2<>(107, 3));\n rawChapterData.add(new Tuple2<>(108, 3));\n rawChapterData.add(new Tuple2<>(109, 3));\n\n return rawChapterData;\n }", "String getDataSet();", "private IDataSet getDataSet() throws IOException, DataSetException {\r\n\t\tFile file = new File(\"src/test/resources/lote.xml\");\r\n\t\tIDataSet dataSet = new FlatXmlDataSet(file);\r\n\t\treturn dataSet;\r\n\t}", "private Dataset createDataSet(RecordingObject recordingObject, Group parentObject, String name) throws Exception\n\t{\n\t\t// dimension of dataset, length of array and 1 column\n\t\tlong[] dims2D = { recordingObject.getYValuesLength(), recordingObject.getXValuesLength() };\n\n\t\t// H5Datatype type = new H5Dataype(CLASS_FLOAT, 8, NATIVE, -1);\n\t\tDatatype dataType = recordingsH5File.createDatatype(recordingObject.getDataType(), recordingObject.getDataBytes(), Datatype.NATIVE, -1);\n\t\t// create 1D 32-bit float dataset\n\t\tDataset dataset = recordingsH5File.createScalarDS(name, parentObject, dataType, dims2D, null, null, 0, recordingObject.getValues());\n\n\t\t// add attributes for unit and metatype\n\t\tcreateAttributes(recordingObject.getMetaType().toString(), recordingObject.getUnit(), dataset);\n\n\t\treturn dataset;\n\t}", "private static void CreateClassifierVec(Dataset set, int dim_num,\n\t\t\tArrayList<KDNode> class_buff, int vec_offset) {\n\t\t\t\n\t\tAttribute atts[] = new Attribute[set.size()];\n\t\t// Declare the class attribute along with its values\n\t\t FastVector fvClassVal = new FastVector(4);\n\t\t fvClassVal.addElement(\"n2\");\n\t\t fvClassVal.addElement(\"n1\");\n\t\t fvClassVal.addElement(\"p1\");\n\t\t fvClassVal.addElement(\"p2\");\n\t\t Attribute ClassAttribute = new Attribute(\"theClass\", fvClassVal);\n\t \n\t\tFastVector fvWekaAttributes = new FastVector(set.size() + 1);\n\t for(int i=0; i<set.size(); i++) {\n\t \tatts[i] = new Attribute(\"att\"+i);\n\t \tfvWekaAttributes.addElement(atts[i]);\n\t }\n\t \n\t fvWekaAttributes.addElement(ClassAttribute);\n\t \n\t Instances isTrainingSet = new Instances(\"Rel\", fvWekaAttributes, class_buff.size()); \n\t isTrainingSet.setClassIndex(set.size());\n\t\t\n\t for(int k=0; k<class_buff.size(); k++) {\n\t \t\n\t \tArrayList<Integer> data_set = new ArrayList<Integer>();\n\t\t\tfor(int j=0; j<set.size(); j++) {\n\t\t\t\t\n\t\t\t\t\tint offset = 0;\n\t\t\t\t\tSet<Entry<Integer, Double>> s = set.instance(j).entrySet();\n\t\t\t\t\tdouble sample[] = new double[dim_num];\n\t\t\t\t\tfor(Entry<Integer, Double> val : s) {\n\t\t\t\t\t\tsample[offset++] = val.getValue();\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tint output = class_buff.get(k).classifier.Output(sample);\n\t\t\t\t\tdata_set.add(output);\n\t\t\t}\n\t\t\t\n\t\t\tif(data_set.size() != set.size()) {\n\t\t\t\tSystem.out.println(\"dim mis\");System.exit(0);\n\t\t\t}\n\t\t\t\t\t\t\n\t\t\tInstance iExample = new Instance(set.size() + 1);\n\t\t\tfor(int j=0; j<set.size(); j++) {\n\t\t\t\tiExample.setValue(j, data_set.get(j));\n\t\t\t}\n\t\t\t\n\t\t\tif(Math.random() < 0.5) {\n\t\t\t\tiExample.setValue((Attribute)fvWekaAttributes.elementAt(set.size()), \"n1\"); \n\t\t\t} else {\n\t\t\t\tiExample.setValue((Attribute)fvWekaAttributes.elementAt(set.size()), \"p1\"); \n\t\t\t}\n\t\t\t \n\t\t\t// add the instance\n\t\t\tisTrainingSet.add(iExample);\n\t }\n\t\t\n\t System.out.println(dim_num+\" *************\");\n\t int select_num = 16;\n\t\tPrincipalComponents pca = new PrincipalComponents();\n\t\t//pca.setVarianceCovered(0.1);\n Ranker ranker = new Ranker();\n ranker.setNumToSelect(select_num);\n AttributeSelection selection = new AttributeSelection();\n selection.setEvaluator(pca);\n \n Normalize normalizer = new Normalize();\n try {\n normalizer.setInputFormat(isTrainingSet);\n isTrainingSet = Filter.useFilter(isTrainingSet, normalizer);\n \n selection.setSearch(ranker);\n selection.SelectAttributes(isTrainingSet);\n isTrainingSet = selection.reduceDimensionality(isTrainingSet);\n\n } catch (Exception e) {\n e.printStackTrace();\n System.exit(0);\n }\n \n for(int i=0; i<class_buff.size(); i++) {\n \tInstance inst = isTrainingSet.instance(i);\n \tdouble val[] = inst.toDoubleArray();\n \tint offset = vec_offset;\n \t\n \tfloat length = 0;\n \tfor(int j=0; j<select_num; j++) {\n \t\tlength += val[j] * val[j];\n \t}\n \t\n \tlength = (float) Math.sqrt(length);\n \tfor(int j=0; j<select_num; j++) {\n \t\tclass_buff.get(i).class_vect[offset++] = val[j] / length;\n \t}\n }\n\t}", "private Dataset createDataset1() {\n final RDF factory1 = createFactory();\n\n final IRI name = factory1.createIRI(\"http://xmlns.com/foaf/0.1/name\");\n final Dataset g1 = factory1.createDataset();\n final BlankNode b1 = createOwnBlankNode(\"b1\", \"0240eaaa-d33e-4fc0-a4f1-169d6ced3680\");\n g1.add(b1, b1, name, factory1.createLiteral(\"Alice\"));\n\n final BlankNode b2 = createOwnBlankNode(\"b2\", \"9de7db45-0ce7-4b0f-a1ce-c9680ffcfd9f\");\n g1.add(b2, b2, name, factory1.createLiteral(\"Bob\"));\n\n final IRI hasChild = factory1.createIRI(\"http://example.com/hasChild\");\n g1.add(null, b1, hasChild, b2);\n\n return g1;\n }", "public static void main(String[] args) throws Exception {\n DataSet houseVotes = DataParser.parseData(HouseVotes.filename, HouseVotes.columnNames, HouseVotes.dataTypes, HouseVotes.ignoreColumns, HouseVotes.classColumn, HouseVotes.discretizeColumns);\n DataSet breastCancer = DataParser.parseData(BreastCancer.filename, BreastCancer.columnNames, BreastCancer.dataTypes, BreastCancer.ignoreColumns, BreastCancer.classColumn, HouseVotes.discretizeColumns);\n DataSet glass = DataParser.parseData(Glass.filename, Glass.columnNames, Glass.dataTypes, Glass.ignoreColumns, Glass.classColumn, Glass.discretizeColumns);\n DataSet iris = DataParser.parseData(Iris.filename, Iris.columnNames, Iris.dataTypes, Iris.ignoreColumns, Iris.classColumn, Iris.discretizeColumns);\n DataSet soybean = DataParser.parseData(Soybean.filename, Soybean.columnNames, Soybean.dataTypes, Soybean.ignoreColumns, Soybean.classColumn, Soybean.discretizeColumns);\n \n /*\n * The contents of the DataSet are not always random.\n * You can shuffle them using Collections.shuffle()\n */\n \n Collections.shuffle(houseVotes);\n Collections.shuffle(breastCancer);\n Collections.shuffle(glass);\n Collections.shuffle(iris);\n Collections.shuffle(soybean);\n /*\n * Lastly, you want to split the data into a regular dataset and a testing set.\n * DataSet has a function for this, since it gets a little weird.\n * This grabs 10% of the data in the dataset and sets pulls it out to make the testing set.\n * This also means that the remaining 90% in DataSet can serve as our training set.\n */\n\n DataSet houseVotesTestingSet = houseVotes.getTestingSet(.1);\n DataSet breastCancerTestingSet = breastCancer.getTestingSet(.1);\n DataSet glassTestingSet = glass.getTestingSet(.1);\n DataSet irisTestingSet = iris.getTestingSet(.1);\n DataSet soybeanTestingSet = soybean.getTestingSet(.1);\n \n //KNN\n //House Votes\n System.out.println(HouseVotes.class.getSimpleName());\n KNN knn = new KNN(houseVotes, houseVotesTestingSet, HouseVotes.classColumn, 3);\n String[] knnHouseVotes = new String[houseVotesTestingSet.size()];\n for(int i = 0; i < houseVotesTestingSet.size(); i++) {\n knnHouseVotes[i] = knn.classify(houseVotesTestingSet.get(i));\n }\n for(int i = 0; i < houseVotesTestingSet.size(); i++) {\n if(knnHouseVotes[i].equals(houseVotesTestingSet.get(i)[HouseVotes.classColumn].value())) {\n System.out.println(\"KNN: Correct (\" + knnHouseVotes[i] + \")\");\n } else {\n System.out.println(\"KNN: Incorrect (\" + knnHouseVotes[i] + \", actually \" + houseVotesTestingSet.get(i)[HouseVotes.classColumn].value() + \")\");\n }\n }\n \n //Breast Cancer\n System.out.println(BreastCancer.class.getSimpleName());\n knn = new KNN(breastCancer, breastCancerTestingSet, BreastCancer.classColumn, 3);\n String[] knnBreastCancer = new String[breastCancerTestingSet.size()];\n for(int i = 0; i < breastCancerTestingSet.size(); i++) {\n knnBreastCancer[i] = knn.classify(breastCancerTestingSet.get(i));\n }\n for(int i = 0; i < breastCancerTestingSet.size(); i++) {\n if(knnBreastCancer[i].equals(breastCancerTestingSet.get(i)[BreastCancer.classColumn].value())) {\n System.out.println(\"KNN: Correct (\" + knnBreastCancer[i] + \")\");\n } else {\n System.out.println(\"KNN: Incorrect (\" + knnBreastCancer[i] + \", actually \" + breastCancerTestingSet.get(i)[BreastCancer.classColumn].value() + \")\");\n }\n }\n \n //Glass\n System.out.println(Glass.class.getSimpleName());\n knn = new KNN(glass, glassTestingSet, Glass.classColumn, 3);\n String[] knnGlass = new String[glassTestingSet.size()];\n for(int i = 0; i < glassTestingSet.size(); i++) {\n knnGlass[i] = knn.classify(glassTestingSet.get(i));\n }\n for(int i = 0; i < glassTestingSet.size(); i++) {\n if(knnGlass[i].equals(glassTestingSet.get(i)[Glass.classColumn].value())) {\n System.out.println(\"KNN: Correct (\" + knnGlass[i] + \")\");\n } else {\n System.out.println(\"KNN: Incorrect (\" + knnGlass[i] + \", actually \" + glassTestingSet.get(i)[Glass.classColumn].value() + \")\");\n }\n }\n \n //Iris\n System.out.println(Iris.class.getSimpleName());\n knn = new KNN(iris, irisTestingSet, Iris.classColumn, 3);\n String[] knnIris = new String[irisTestingSet.size()];\n for(int i = 0; i < irisTestingSet.size(); i++) {\n knnIris[i] = knn.classify(irisTestingSet.get(i));\n }\n for(int i = 0; i < irisTestingSet.size(); i++) {\n if(knnIris[i].equals(irisTestingSet.get(i)[Iris.classColumn].value())) {\n System.out.println(\"KNN: Correct (\" + knnIris[i] + \")\");\n } else {\n System.out.println(\"KNN: Incorrect (\" + knnIris[i] + \", actually \" + irisTestingSet.get(i)[Iris.classColumn].value() + \")\");\n }\n }\n \n //Soybean\n System.out.println(Soybean.class.getSimpleName());\n knn = new KNN(soybean, soybeanTestingSet, Soybean.classColumn, 3);\n String[] knnSoybean = new String[soybeanTestingSet.size()];\n for(int i = 0; i < soybeanTestingSet.size(); i++) {\n knnSoybean[i] = knn.classify(soybeanTestingSet.get(i));\n }\n for(int i = 0; i < soybeanTestingSet.size(); i++) {\n if(knnSoybean[i].equals(soybeanTestingSet.get(i)[Soybean.classColumn].value())) {\n System.out.println(\"KNN: Correct (\" + knnSoybean[i] + \")\");\n } else {\n System.out.println(\"KNN: Incorrect (\" + knnSoybean[i] + \", actually \" + soybeanTestingSet.get(i)[Soybean.classColumn].value() + \")\");\n }\n }\n \n \n /*\n * Lets setup ID3:\n * DataSet, TestSet, column with the class categorization. (republican, democrat in this case)\n */\n\n System.out.println(HouseVotes.class.getSimpleName());\n ID3 id3 = new ID3(houseVotes, houseVotesTestingSet, HouseVotes.classColumn);\n String[] id3HouseVotes = new String[houseVotesTestingSet.size()];\n for(int i = 0; i < houseVotesTestingSet.size(); i++) {\n id3HouseVotes[i] = id3.classify(houseVotesTestingSet.get(i));\n }\n for(int i = 0; i < houseVotesTestingSet.size(); i++) {\n if(id3HouseVotes[i].equals(houseVotesTestingSet.get(i)[HouseVotes.classColumn].value())) {\n System.out.println(\"ID3: Correct (\" + id3HouseVotes[i] + \")\");\n } else {\n System.out.println(\"ID3: Incorrect (\" + id3HouseVotes[i] + \", actually \" + houseVotesTestingSet.get(i)[HouseVotes.classColumn].value() + \")\");\n }\n }\n\n System.out.println(BreastCancer.class.getSimpleName());\n id3 = new ID3(breastCancer, breastCancerTestingSet, BreastCancer.classColumn);\n String[] id3BreastCancer = new String[breastCancerTestingSet.size()];\n for(int i = 0; i < breastCancerTestingSet.size(); i++) {\n id3BreastCancer[i] = id3.classify(breastCancerTestingSet.get(i));\n }\n for(int i = 0; i < breastCancerTestingSet.size(); i++) {\n if(id3BreastCancer[i].equals(breastCancerTestingSet.get(i)[BreastCancer.classColumn].value())) {\n System.out.println(\"ID3: Correct (\" + id3BreastCancer[i] + \")\");\n } else {\n System.out.println(\"ID3: Incorrect (\" + id3BreastCancer[i] + \", actually \" + breastCancerTestingSet.get(i)[BreastCancer.classColumn].value() + \")\");\n }\n }\n\n System.out.println(Glass.class.getSimpleName());\n id3 = new ID3(glass, glassTestingSet, Glass.classColumn);\n String[] id3Glass = new String[glassTestingSet.size()];\n for(int i = 0; i < glassTestingSet.size(); i++) {\n id3Glass[i] = id3.classify(glassTestingSet.get(i));\n }\n for(int i = 0; i < glassTestingSet.size(); i++) {\n if(id3Glass[i].equals(glassTestingSet.get(i)[Glass.classColumn].value())) {\n System.out.println(\"ID3: Correct (\" + id3Glass[i] + \")\");\n } else {\n System.out.println(\"ID3: Incorrect (\" + id3Glass[i] + \", actually \" + glassTestingSet.get(i)[Glass.classColumn].value() + \")\");\n }\n }\n\n System.out.println(Iris.class.getSimpleName());\n id3 = new ID3(iris, irisTestingSet, Iris.classColumn);\n String[] id3Iris = new String[irisTestingSet.size()];\n for(int i = 0; i < irisTestingSet.size(); i++) {\n id3Iris[i] = id3.classify(irisTestingSet.get(i));\n }\n for(int i = 0; i < irisTestingSet.size(); i++) {\n if(id3Iris[i].equals(irisTestingSet.get(i)[Iris.classColumn].value())) {\n System.out.println(\"ID3: Correct (\" + id3Iris[i] + \")\");\n } else {\n System.out.println(\"ID3: Incorrect (\" + id3Iris[i] + \", actually \" + irisTestingSet.get(i)[Iris.classColumn].value() + \")\");\n }\n }\n\n System.out.println(Soybean.class.getSimpleName());\n id3 = new ID3(soybean, soybeanTestingSet, Soybean.classColumn);\n String[] id3Soybean = new String[soybeanTestingSet.size()];\n for(int i = 0; i < soybeanTestingSet.size(); i++) {\n id3Soybean[i] = id3.classify(soybeanTestingSet.get(i));\n }\n for(int i = 0; i < soybeanTestingSet.size(); i++) {\n if(id3Soybean[i].equals(soybeanTestingSet.get(i)[Soybean.classColumn].value())) {\n System.out.println(\"ID3: Correct (\" + id3Soybean[i] + \")\");\n } else {\n System.out.println(\"ID3: Incorrect (\" + id3Soybean[i] + \", actually \" + soybeanTestingSet.get(i)[Soybean.classColumn].value() + \")\");\n }\n }\n }", "@DataProvider(name=\"dataset\")\r\n\tpublic static Object[][] getdata() throws IOException{\r\n\t\tObject [][] ob= new IO().getdataset(\"./dataset.csv\");\t\r\n\treturn ob;\r\n\t}", "private CategoryDataset createDataset( )\n\t {\n\t final DefaultCategoryDataset dataset = \n\t new DefaultCategoryDataset( ); \n\t \n\t dataset.addValue(23756.0, \"余杭\", \"闲林\");\n\t dataset.addValue(29513.5, \"余杭\", \"良渚\");\n\t dataset.addValue(25722.2, \"余杭\", \"瓶窑\");\n\t dataset.addValue(19650.9, \"余杭\", \"星桥\");\n\t dataset.addValue(19661.6, \"余杭\", \"崇贤\");\n\t dataset.addValue(13353.9, \"余杭\", \"塘栖\");\n\t dataset.addValue(25768.9, \"余杭\", \"勾庄\");\n\t dataset.addValue(12682.8, \"余杭\", \"仁和\");\n\t dataset.addValue(22963.1, \"余杭\", \"乔司\");\n\t dataset.addValue(19695.6, \"余杭\", \"临平\");\n\t \n\t return dataset; \n\t }", "public XYDataset getDataset() {\n\n // Initialize some variables\n XYSeriesCollection dataset = new XYSeriesCollection();\n XYSeries series[][][] = new XYSeries[rois.length][images.length][stats.length];\n String seriesname[][][] = new String[rois.length][images.length][stats.length];\n int currentSlice = ui.getOpenMassImages()[0].getCurrentSlice();\n ArrayList<String> seriesNames = new ArrayList<String>();\n String tempName = \"\";\n double stat;\n\n // Image loop\n for (int j = 0; j < images.length; j++) {\n MimsPlus image;\n if (images[j].getMimsType() == MimsPlus.HSI_IMAGE || images[j].getMimsType() == MimsPlus.RATIO_IMAGE) {\n image = images[j].internalRatio;\n } else {\n image = images[j];\n }\n\n // Plane loop\n for (int ii = 0; ii < planes.size(); ii++) {\n int plane = (Integer) planes.get(ii);\n if (image.getMimsType() == MimsPlus.MASS_IMAGE) {\n ui.getOpenMassImages()[0].setSlice(plane, false);\n } else if (image.getMimsType() == MimsPlus.RATIO_IMAGE) {\n ui.getOpenMassImages()[0].setSlice(plane, image);\n }\n\n // Roi loop\n for (int i = 0; i < rois.length; i++) {\n\n // Set the Roi to the image.\n Integer[] xy = ui.getRoiManager().getRoiLocation(rois[i].getName(), plane);\n rois[i].setLocation(xy[0], xy[1]);\n image.setRoi(rois[i]);\n\n // Stat loop\n for (int k = 0; k < stats.length; k++) {\n\n // Generate a name for the dataset.\n String prefix = \"\";\n if (image.getType() == MimsPlus.MASS_IMAGE || image.getType() == MimsPlus.RATIO_IMAGE) {\n prefix = \"_m\";\n }\n if (seriesname[i][j][k] == null) {\n tempName = stats[k] + prefix + image.getRoundedTitle(true) + \"_r\" + rois[i].getName();\n int dup = 1;\n while (seriesNames.contains(tempName)) {\n tempName = stats[k] + prefix + image.getRoundedTitle(true) + \"_r\" + rois[i].getName() + \" (\" + dup + \")\";\n dup++;\n }\n seriesNames.add(tempName);\n seriesname[i][j][k] = tempName;\n }\n\n // Add data to the series.\n if (series[i][j][k] == null) {\n series[i][j][k] = new XYSeries(seriesname[i][j][k]);\n }\n\n // Get the statistic.\n stat = getSingleStat(image, stats[k], ui);\n if (stat > Double.MAX_VALUE || stat < (-1.0) * Double.MAX_VALUE) {\n stat = Double.NaN;\n }\n series[i][j][k].add(((Integer) planes.get(ii)).intValue(), stat);\n\n } // End of Stat\n } // End of Roi\n } // End of Plane\n } // End of Image\n\n // Populate the final data structure.\n for (int i = 0; i < rois.length; i++) {\n for (int j = 0; j < images.length; j++) {\n for (int k = 0; k < stats.length; k++) {\n dataset.addSeries(series[i][j][k]);\n }\n }\n }\n\n ui.getOpenMassImages()[0].setSlice(currentSlice);\n\n return dataset;\n }", "private PieDataset createDataset() {\n JOptionPane.showMessageDialog(null, \"teste\"+dados.getEntrada());\r\n \r\n DefaultPieDataset result = new DefaultPieDataset();\r\n result.setValue(\"Entrada\", dados.getEntrada());\r\n result.setValue(\"Saida\", dados.getSaida());\r\n result.setValue(\"Saldo do Periodo\", dados.getSaldo());\r\n return result;\r\n\r\n }", "public PointSET() {\n points = new SET<Point2D>();\n }", "public void init( int pointDimension, long randomSeed );", "public DataSet() {\n labels = new HashMap<>();\n locations = new HashMap<>();\n counter= new AtomicInteger(0);\n }", "private void generateData(){\n generateP50boys();\n generateP50girls();\n generateP97boys();\n generateP97girls();\n }", "public void setupDryadCloudDataSets(){\n\t\ttry{\n\t\t\t\n\t\t\t// A Dryad \n\t\t\tDryadDataSet ds = new DryadDataSet(_DRYAD_D1_TREEBASE);\n\t\t\tds.harvestMetadataToRDF();\n\t\t\tds.harvestDataToRDF(_DRYAD_D1_TREEBASE_F1);\n\t\t\t_datasets.add(ds);\n\t\t\tds = new DryadDataSet(_DRYAD_D3_POPULAR);\n\t\t\tds.harvestMetadataToRDF();\n\t\t\tds.harvestDataToRDF(_DRYAD_D3_POPULAR_F1);\n\t\t\t_datasets.add(ds);\n\t\t\tds = new DryadDataSet(_DRYAD_D4_CSV);\n\t\t\tds.harvestMetadataToRDF();\n\t\t\tds.harvestDataToRDF(_DRYAD_D4_CSV_F1);\n\t\t\tds.harvestDataToRDF(_DRYAD_D4_CSV_F2);\n\t\t\t_datasets.add(ds);\n\t\t\tds = new DryadDataSet(_DRYAD_D6_CSV);\n\t\t\tds.harvestMetadataToRDF();\n\t\t\tds.harvestDataToRDF(_DRYAD_D6_CSV_F1);\n\t\t\tds.harvestDataToRDF(_DRYAD_D6_CSV_F2);\n\t\t\t_datasets.add(ds);\n\t\t\tds = new DryadDataSet(_DRYAD_D2_GENBANK);\n\t\t\tds.harvestMetadataToRDF();\n\t\t\tds.harvestDataToRDF(_DRYAD_D2_GENBANK_F1);\t\n\t\t\tds.harvestDataToRDF(_DRYAD_D2_GENBANK_F2);\n\t\t\tds.harvestDataToRDF(_DRYAD_D2_GENBANK_F3);\n\t\t\tds.harvestDataToRDF(_DRYAD_D2_GENBANK_F4);\n\t\t\t_datasets.add(ds);\n\t\t\tds = new DryadDataSet(_DRYAD_D5_CSV);\n\t\t\tds.harvestMetadataToRDF();\n\t\t\tds.harvestDataToRDF(_DRYAD_D5_CSV_F1);\n\t\t\tds.harvestDataToRDF(_DRYAD_D5_CSV_F2);\n\t\t\t_datasets.add(ds);\n\t\t}\n\t\tcatch(Exception ex){\n\t\t\tSystem.out.println(\"ERROR: Exception \"+ex.getMessage());\n\t\t}\n\t}", "private PieDataset createDataset() {\n\t\tDefaultPieDataset result = new DefaultPieDataset();\n\t\tresult.setValue(\"Linux\", 29);\n\t\tresult.setValue(\"Mac\", 20);\n\t\tresult.setValue(\"Windows\", 51);\n\t\treturn result;\n\n\t}", "public static CategoryDataset createDataset() {\r\n DefaultCategoryDataset dataset = new DefaultCategoryDataset();\r\n dataset.addValue(1.0, \"First\", \"C1\");\r\n dataset.addValue(4.0, \"First\", \"C2\");\r\n dataset.addValue(3.0, \"First\", \"C3\");\r\n dataset.addValue(5.0, \"First\", \"C4\");\r\n dataset.addValue(5.0, \"First\", \"C5\");\r\n dataset.addValue(7.0, \"First\", \"C6\");\r\n dataset.addValue(7.0, \"First\", \"C7\");\r\n dataset.addValue(8.0, \"First\", \"C8\");\r\n dataset.addValue(5.0, \"Second\", \"C1\");\r\n dataset.addValue(7.0, \"Second\", \"C2\");\r\n dataset.addValue(6.0, \"Second\", \"C3\");\r\n dataset.addValue(8.0, \"Second\", \"C4\");\r\n dataset.addValue(4.0, \"Second\", \"C5\");\r\n dataset.addValue(4.0, \"Second\", \"C6\");\r\n dataset.addValue(2.0, \"Second\", \"C7\");\r\n dataset.addValue(1.0, \"Second\", \"C8\");\r\n dataset.addValue(4.0, \"Third\", \"C1\");\r\n dataset.addValue(3.0, \"Third\", \"C2\");\r\n dataset.addValue(2.0, \"Third\", \"C3\");\r\n dataset.addValue(3.0, \"Third\", \"C4\");\r\n dataset.addValue(6.0, \"Third\", \"C5\");\r\n dataset.addValue(3.0, \"Third\", \"C6\");\r\n dataset.addValue(4.0, \"Third\", \"C7\");\r\n dataset.addValue(3.0, \"Third\", \"C8\");\r\n return dataset;\r\n }", "static double[][] makeTestData() {\n double[][] data = new double[21][2];\n double xmax = 5;\n double xmin = -5;\n double dx = (xmax - xmin) / (data.length -1);\n for (int i = 0; i < data.length; i++) {\n double x = xmin + dx * i;\n double y = 2.5 * x * x * x - x * x / 3 + 3 * x;\n data[i][0] = x;\n data[i][1] = y;\n }\n return data;\n }", "private PieDataset createDataset() {\n\t\tDefaultPieDataset result = new DefaultPieDataset();\n\n\t\tif (_controler != null) {\n\t\t\tfor (Object cat : _controler.getCategorieData()) {\n\n\t\t\t\tresult.setValue((String) cat, _controler.getTotal((String) cat));\n\n\t\t\t}\n\t\t}\n\t\treturn result;\n\n\t}", "public PointSET() { // construct an empty set of points\n\n }", "private IDataSet getDataSet() throws IOException, DataSetException {\r\n\t\tFile file = new File(\"src/test/resources/tipo_identificacion.xml\");\r\n\t\tIDataSet dataSet = new FlatXmlDataSet(file);\r\n\t\treturn dataSet;\r\n\t}", "@BeforeClass\r\n public static void generateConfigurationOfClassifiersAndLoadData() {\r\n\r\n //one classifier in the ensemble will be ClassifierModel (Model for enach output class)\r\n GaussianMultiModelConfig gmc = new GaussianMultiModelConfig();\r\n gmc.setTrainerClassName(\"QuasiNewtonTrainer\");\r\n gmc.setTrainerCfg(new QuasiNewtonConfig());\r\n LinearModelConfig lmcpso = new LinearModelConfig();\r\n lmcpso.setTrainerClassName(\"PSOTrainer\");\r\n lmcpso.setTrainerCfg(new PSOConfig());\r\n ClassifierModelConfig clc = new ClassifierModelConfig();\r\n clc.setClassModelsDef(BaseModelsDefinition.RANDOM);\r\n clc.addClassModelCfg(lmcpso);\r\n clc.addClassModelCfg(gmc);\r\n clc.setClassRef(ClassifierModel.class);\r\n\r\n //todo second classifier in the ensemble will be Weka decision tree\r\n\r\n ClassifierBaggingConfig bagc = new ClassifierBaggingConfig();\r\n bagc.setClassifiersNumber(2);\r\n bagc.setBaseClassifiersDef(BaseModelsDefinition.UNIFORM);\r\n bagc.addBaseClassifierCfg(clc);\r\n\r\n generatedCfg = bagc;\r\n ConfigurationFactory.saveConfiguration(generatedCfg, cfgfilename);\r\n\r\n data = new FileGameData(datafilename);\r\n\r\n }", "public static List<Person> loadTrainingSet(){\n List<Person> list_of_persons = new LinkedList<Person>();\n String[] names = getAllNames();\n\n try (Connection con = DriverManager.getConnection(url, user, password)){\n for(int i=0; i<names.length; i++){\n List<Histogram> histograms = new ArrayList<>();\n String query = \"SELECT h_json FROM \"+DATABASE_NAME+\".\"+names[i]+\";\";\n \n Statement st = con.createStatement();\n ResultSet rs = st.executeQuery(query);\n\n while (rs.next()) {\n Map<Integer, Integer> map = new HashMap<>();\n JSONObject obje = new JSONObject(rs.getString(1));\n for(int y=0; y<255; y++){\n map.put(y, (int)obje.get(\"\"+y));\n }\n histograms.add(new Histogram(map));\n }\n\n list_of_persons.add(new Person(names[i], histograms));\n }\n con.close();\n } catch (SQLException ex) {\n ex.printStackTrace();\n } \n\n return list_of_persons;\n }", "@DataProvider(name = \"test1\")\n\tpublic Object[][] createData1() {\n\t return new Object[][] {\n\t { \"Cedric\", new Integer(36) },\n\t { \"Anne\", new Integer(37)},\n\t };\n\t}", "@Override\n\tprotected IDataSet getDataSet() throws Exception {\n\t\tInputStream xmlFile = getClass().getResourceAsStream(\"/alumno.xml\");\n\t\treturn new FlatXmlDataSetBuilder().build(xmlFile);\n\t}", "private DataSet zipfDataSet(){\n ZipfDistribution zipfDistribution = new ZipfDistribution(NUM_DISTINCT_TASKS, 1);\n //Magic number which is computed the following way\n //Take the H_{2500,1}/(1+4+9+...) * Target Mean\n //this will result in mean of 50\n Double multiplier = (8.4/1.644)*TARGET_MEAN;\n DataSet dataSet = new DataSet();\n Map<Integer, UUID> ids = new HashMap<>();\n //generate costs from sampling from normal distribution\n for(int i=0; i < NUM_TASKS; i++){\n //zipf gives numbers from 1 to NUM_DISTINCT_TASKS where 1 is most frequent\n int sample = zipfDistribution.sample();\n UUID id = ids.getOrDefault(sample, UUID.randomUUID());\n ids.put(sample, id);\n Double cost = multiplier * (1D/sample);\n dataSet.getTasks().add(new Task(cost.longValue(), id));\n }\n return dataSet;\n }", "private void generateData(int popsize, int ntrials) {\n data = new double[ntrials][100];\n \n for (int i = 0; i < ntrials; i++) {\n Population pop = new Population(popsize, rand);\n for (int j = 0; j < 100; j++) {\n data[i][j] = pop.totalA();\n pop.advance();\n }\n }\n }", "@DataProvider(name = \"test1\")\n\tpublic Object [][] createData1() {\n\t\treturn new Object [][] {\n\t\t\tnew Object [] { 0, 0 },\n\t\t\tnew Object [] { 9, 2 },\n\t\t\tnew Object [] { 15, 0 },\n\t\t\tnew Object [] { 32, 0 },\n\t\t\tnew Object [] { 529, 4 },\n\t\t\tnew Object [] { 1041, 5 },\n\t\t\tnew Object [] { 65536, 0 },\n\t\t\tnew Object [] { 65537, 15 },\n\t\t\tnew Object [] { 100000, 4 }, \n\t\t\tnew Object [] { 2147483, 5 },\n\t\t\tnew Object [] { 2147483637, 1 }, //max - 10\n\t\t\tnew Object [] { 2147483646, 0 }, //max - 1\n\t\t\tnew Object [] { 2147483647, 0 } //max\n\t\t};\n\t}", "private static CategoryDataset createDataset() throws SQLException, InterruptedException \n\t{ \n\t\t// creating dataset \n\t\tDefaultCategoryDataset dataset = new DefaultCategoryDataset();\n\t\t\n\t\t//setting up the connexion\n\t\tConnection con = null;\n\t\tString conUrl = \"jdbc:sqlserver://\"+Login.Host+\"; databaseName=\"+Login.databaseName+\"; user=\"+Login.user+\"; password=\"+Login.password+\";\";\n\t\ttry \n\t\t{\n\t\t\tcon = DriverManager.getConnection(conUrl);\n\t\t} \n\t\tcatch (SQLException e1) \n\t\t{\n\t\t\te1.printStackTrace();\n\t\t}\n\t\t\n\t\t//this counter will allow me to run my while loop only once\n\t\tint cnt=0;\n\t\twhile(cnt<1)\n\t\t{ \n\t\t\t//check the query number at each call to the function in order to know which procedure must me executed\n\t\t\tif (queryNumber==0){\n\t\t\t\tcnt++;\n\t\t\t\tcstmt = con.prepareCall(\"{call avgMonthly(?,?,?,?)}\");\n\t\t\t\t\n\t\t\t\t//setting the procedures parameters with the one chosen by the user\n\t\t\t\tcstmt.setInt(1, Integer.parseInt(year));\n\t\t\t\tcstmt.setInt(2, Integer.parseInt(month));\n\t\t\t\tcstmt.setString(3, featureStringH);\t\n\t\t\t\tcstmt.setString(4, actionStringH);\t\n\t\t\t\tResultSet aveTempAvg = cstmt.executeQuery();\n\t\t\t\t\n\t\t\t\t// extracting the data of my query in order to plot it\n\t\t\t\tResultSetMetaData rsmd = aveTempAvg.getMetaData();\n\t\t\t\tif(rsmd!=null) \n\t\t\t\t{\n\t\t\t\t\twhile (aveTempAvg.next()) \n\t\t\t\t\t{\n\t\t\t\t\t\tString columnValue = aveTempAvg.getString(1);//latency\n\t\t\t\t\t\tint dayAxisNum=aveTempAvg.getInt(2);//average\n\t\t\t\t\t\tif(columnValue!=null) {\n\t\t\t\t\t\t\t//Adding the result of the query to the data set and setting y value to the average latency and x to the corresponding day\n\t\t\t\t\t\t\tdataset.setValue(Double.parseDouble(columnValue),\"series\",Integer.toString(dayAxisNum));\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\tdataset.setValue(0, (\"series\" +\"\"+0), \"\");\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t}\n\n\t\t\telse if (queryNumber==1){\n\t\t\t\tcnt++;\n\t\t\t\tcstmt = con.prepareCall(\"{call avgDaily(?,?,?)}\");\t\n\t\t\t\t/*for the second query , the user will enter seperate year month and day \n\t\t\t\t so we wil have to concatenate the date into a string before setting the date value*/\n\t\t\t\tString newDate= year+\"-\"+month+\"-\"+day;\n\t\t\t\tcstmt.setString(1, newDate);\n\t\t\t\tcstmt.setString(2, featureStringH);\n\t\t\t\tcstmt.setString(3, actionStringH);\t\n\t\t\t\tResultSet aveTempAvg = cstmt.executeQuery();\n\t\t\t\t\n\t\t\t\t//extracting the data of the query\n\t\t\t\tResultSetMetaData rsmd = aveTempAvg.getMetaData();\n\t\t\t\tif(rsmd!=null) \n\t\t\t\t{\n\t\t\t\t\tint hour = 0;\n\t\t\t\t\twhile (aveTempAvg.next()) \n\t\t\t\t\t{\n\t\t\t\t\t\tString columnValue = aveTempAvg.getString(1);\n\t\t\t\t\t\tint hour2=aveTempAvg.getInt(2);\n\t\t\t\t\t\tif(columnValue!=null) {\n\t\t\t\t\t\t\t//setting y value to the average and the x is the corresponding hour\n\t\t\t\t\t\t\tdataset.setValue(Double.parseDouble(columnValue),\"series\",Integer.toString(hour2));\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\t//I will add 0 if I don't have the corresponding value of the specified Hour\n\t\t\t\t\t\t\tdataset.setValue(0, (\"series\" +\"\"+hour), \"\");\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\telse if (queryNumber==2){\n\t\t\t\tcnt++;\n\t\t\t\t//Thread.sleep(100);\n\t\t\t\tcstmt = con.prepareCall(\"{call avgHour(?,?,?,?)}\");\t\n\t\t\t\tString newDate2= year+\"-\"+month+\"-\"+day;\n\t\t\t\t//same as for the daily query we have to set the parameters , we add to that the hour as last parameter\n\t\t\t\tcstmt.setString(1, newDate2);\n\t\t\t\tcstmt.setString(2, featureStringH);\n\t\t\t\tcstmt.setString(3, actionStringH);\n\t\t\t\tcstmt.setInt(4,Integer.parseInt(hourString));\n\t\t\t\tResultSet aveTempAvg = cstmt.executeQuery();\n\t\t\t\t\n\t\t\t\t//extract the data from the query\n\t\t\t\tResultSetMetaData rsmd = aveTempAvg.getMetaData();\n\t\t\t\tif(rsmd!=null) \n\t\t\t\t{\n\t\t\t\t\twhile (aveTempAvg.next()) \n\t\t\t\t\t{\n\t\t\t\t\t\tString columnValue = aveTempAvg.getString(1);\n\t\t\t\t\t\tint min=aveTempAvg.getInt(2);\n\t\t\t\t\t\tif(columnValue!=null) {\n\t\t\t\t\t\t\t//setting y value to the average and the x is the corresponding minute\n\n\t\t\t\t\t\t\tdataset.setValue(Double.parseDouble(columnValue),\"series\",Integer.toString(min));\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\t//adding 0 if I don't have the corresponding minute\n\t\t\t\t\t\t\tdataset.setValue(0, (\"series\"+min),\"\");\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t}\n\t\t}\n\t\treturn dataset; \n\t}", "public List<HashMap<Integer,AttributeInfo>> generateTrainingSetDataseAttributes(Dataset dataset, Properties properties) throws Exception {\n List<HashMap<Integer,AttributeInfo>> candidateAttributesList = new ArrayList<>();\n String[] classifiers = properties.getProperty(\"classifiersForMLAttributesGeneration\").split(\",\");\n\n //obtaining the attributes for the dataset itself is straightforward\n DatasetBasedAttributes dba = new DatasetBasedAttributes();\n for (String classifier : classifiers) {\n\n //For each dataset and classifier combination, we need to get the results on the \"original\" dataset so we can later compare\n Evaluation evaluationResults = runClassifier(classifier, dataset.generateSet(true), dataset.generateSet(false), properties);\n double originalAuc = CalculateAUC(evaluationResults, dataset);\n\n //Generate the dataset attributes\n HashMap<Integer, AttributeInfo> datasetAttributes = dba.getDatasetBasedFeatures(dataset, classifier, properties);\n\n //Add the identifier of the classifier that was used\n\n AttributeInfo classifierAttribute = new AttributeInfo(\"Classifier\", Column.columnType.Discrete, getClassifierIndex(classifier), 3);\n datasetAttributes.put(datasetAttributes.size(), classifierAttribute);\n\n\n //now we need to generate the candidate attributes and evaluate them. This requires a few preliminary steps:\n // 1) Replicate the dataset and create the discretized features and add them to the dataset\n OperatorsAssignmentsManager oam = new OperatorsAssignmentsManager(properties);\n List<Operator> unaryOperators = oam.getUnaryOperatorsList();\n //The unary operators need to be evaluated like all other operator assignments (i.e. attribtues generation)\n List<OperatorAssignment> unaryOperatorAssignments = oam.getOperatorAssignments(dataset, null, unaryOperators, Integer.parseInt(properties.getProperty(\"maxNumOfAttsInOperatorSource\")));\n Dataset replicatedDataset = generateDatasetReplicaWithDiscretizedAttributes(dataset, unaryOperatorAssignments, oam);\n\n // 2) Obtain all other operator assignments (non-unary). IMPORTANT: this is applied on the REPLICATED dataset so we can take advantage of the discretized features\n List<Operator> nonUnaryOperators = oam.getNonUnaryOperatorsList();\n List<OperatorAssignment> nonUnaryOperatorAssignments = oam.getOperatorAssignments(replicatedDataset, null, nonUnaryOperators, Integer.parseInt(properties.getProperty(\"maxNumOfAttsInOperatorSource\")));\n\n // 3) Generate the candidate attribute and generate its attributes\n nonUnaryOperatorAssignments.addAll(unaryOperatorAssignments);\n\n //oaList.parallelStream().forEach(oa -> {\n int counter = 0;\n //for (OperatorAssignment oa : nonUnaryOperatorAssignments) {\n ReentrantLock wrapperResultsLock = new ReentrantLock();\n nonUnaryOperatorAssignments.parallelStream().forEach(oa -> {\n try {\n OperatorsAssignmentsManager oam1 = new OperatorsAssignmentsManager(properties);\n Dataset datasetReplica = dataset.replicateDataset();\n ColumnInfo candidateAttribute = null;\n try {\n candidateAttribute = oam1.generateColumn(datasetReplica, oa, true);\n }\n catch (Exception ex) {\n candidateAttribute = oam1.generateColumn(datasetReplica, oa, true);\n }\n\n\n OperatorAssignmentBasedAttributes oaba = new OperatorAssignmentBasedAttributes();\n HashMap<Integer, AttributeInfo> candidateAttributes = oaba.getOperatorAssignmentBasedAttributes(dataset, oa, candidateAttribute, properties);\n\n datasetReplica.addColumn(candidateAttribute);\n Evaluation evaluationResults1 = runClassifier(classifier, datasetReplica.generateSet(true), datasetReplica.generateSet(false), properties);\n\n double auc = CalculateAUC(evaluationResults1, datasetReplica);\n double deltaAuc = auc - originalAuc;\n AttributeInfo classAttrubute;\n if (deltaAuc > 0.01) {\n classAttrubute = new AttributeInfo(\"classAttribute\", Column.columnType.Discrete, 1,2);\n System.out.println(\"found positive match\");\n } else {\n classAttrubute = new AttributeInfo(\"classAttribute\", Column.columnType.Discrete, 0,2);\n }\n\n //finally, we need to add the dataset attribtues and the class attribute\n for (AttributeInfo datasetAttInfo : datasetAttributes.values()) {\n candidateAttributes.put(candidateAttributes.size(), datasetAttInfo);\n }\n\n candidateAttributes.put(candidateAttributes.size(), classAttrubute);\n wrapperResultsLock.lock();\n candidateAttributesList.add(candidateAttributes);\n wrapperResultsLock.unlock();\n }\n catch (Exception ex) {\n System.out.println(\"Error in ML features generation : \" + oa.getName() + \" : \" + ex.getMessage());\n }\n });\n }\n\n return candidateAttributesList;\n }", "public PointSET() {\n pointSet = new SET<Point2D>();\n }", "private Dataset getDataset()\n throws XMLParsingException, MissingParameterValueException,\n InvalidParameterValueException, OGCWebServiceException {\n\n Element datasetElement = (Element) XMLTools.getRequiredNode( getRootElement(), PRE_WPVS + \"Dataset\", nsContext );\n Dataset dataset = parseDataset( datasetElement, null, null, null );\n\n return dataset;\n }", "private Object createDataset(final ChartConfiguration config) {\n final CategoryChart chart = (CategoryChart) config.chart;\n for (final Fields key: config.fields) {\n chart.addSeries(key.getLocalizedName(), new double[1], new double[1]);\n }\n populateDataset(config);\n return null;\n }", "public static CategoryDataset createSampleDataset() {\n \t\n \t// row keys...\n final String series1 = \"Expected\";\n final String series2 = \"Have\";\n final String series3 = \"Goal\";\n\n // column keys...\n final String type1 = \"Type 1\";\n final String type2 = \"Type 2\";\n final String type3 = \"Type 3\";\n final String type4 = \"Type 4\";\n final String type5 = \"Type 5\";\n final String type6 = \"Type 6\";\n final String type7 = \"Type 7\";\n final String type8 = \"Type 8\";\n\n // create the dataset...\n final DefaultCategoryDataset dataset = new DefaultCategoryDataset();\n\n dataset.addValue(1.0, series1, type1);\n dataset.addValue(4.0, series1, type2);\n dataset.addValue(3.0, series1, type3);\n dataset.addValue(5.0, series1, type4);\n dataset.addValue(5.0, series1, type5);\n dataset.addValue(7.0, series1, type6);\n dataset.addValue(7.0, series1, type7);\n dataset.addValue(8.0, series1, type8);\n\n dataset.addValue(5.0, series2, type1);\n dataset.addValue(7.0, series2, type2);\n dataset.addValue(6.0, series2, type3);\n dataset.addValue(8.0, series2, type4);\n dataset.addValue(4.0, series2, type5);\n dataset.addValue(4.0, series2, type6);\n dataset.addValue(2.0, series2, type7);\n dataset.addValue(1.0, series2, type8);\n\n dataset.addValue(4.0, series3, type1);\n dataset.addValue(3.0, series3, type2);\n dataset.addValue(2.0, series3, type3);\n dataset.addValue(3.0, series3, type4);\n dataset.addValue(6.0, series3, type5);\n dataset.addValue(3.0, series3, type6);\n dataset.addValue(4.0, series3, type7);\n dataset.addValue(3.0, series3, type8);\n\n return dataset;\n \n }", "public XYMultipleSeriesDataset getDataset() {\n\t\tEnvironmentTrackerOpenHelper openhelper = new EnvironmentTrackerOpenHelper(ResultsContent.context);\n\t\tSQLiteDatabase database = openhelper.getReadableDatabase();\n\t\tString[] columns = new String[2];\n\t\tcolumns[0] = \"MOOD\";\n\t\tcolumns[1] = \"HUE_CATEGORY\";\n\t\tCursor results = database.query(true, \"Observation\", columns, null, null, null, null, null, null);\n\t\t\n\t\t// Make sure the cursor is at the start.\n\t\tresults.moveToFirst();\n\t\t\n\t\tint[] meanMoodCategoryHue = new int[4];\n\t\tint[] nrMoodCategoryHue = new int[4];\n\t\t\n\t\t// Overloop de verschillende observaties.\n\t\twhile (!results.isAfterLast()) {\n\t\t\tint mood = results.getInt(0);\n\t\t\tint hue = results.getInt(1);\n\t\t\t\n\t\t\t// Tel de mood erbij en verhoog het aantal met 1 in de juiste categorie.\n\t\t\tmeanMoodCategoryHue[hue-1] = meanMoodCategoryHue[hue-1] + mood;\n\t\t\tnrMoodCategoryHue[hue-1]++;\n\t\t\tresults.moveToNext();\n\t\t}\n\t\t\n\t\t// Bereken voor elke hue categorie de gemiddelde mood.\n\t\tfor (int i=1;i<=4;i++) {\n\t\t\tif (nrMoodCategoryHue[i-1] == 0) {\n\t\t\t\tmeanMoodCategoryHue[i-1] = 0;\n\t\t\t} else {\n\t\t\t\tmeanMoodCategoryHue[i-1] = meanMoodCategoryHue[i-1]/nrMoodCategoryHue[i-1];\n\t\t\t}\n\t\t}\n\t\t\n\t\t// Plaats de gegevens samen in een dataset voor de grafiek.\n\t\tXYMultipleSeriesDataset myData = new XYMultipleSeriesDataset();\n\t XYSeries dataSeries = new XYSeries(\"data\");\n\t dataSeries.add(1,meanMoodCategoryHue[0]);\n\t dataSeries.add(2,meanMoodCategoryHue[1]);\n\t dataSeries.add(3,meanMoodCategoryHue[2]);\n\t dataSeries.add(4,meanMoodCategoryHue[3]);\n\t myData.addSeries(dataSeries);\n\t return myData;\n\t}", "public Dataset getGeneration(int number) {\r\n if (number == 0) {\r\n return InitialData;\r\n } else {\r\n return Candidates.get(number - 1);\r\n }\r\n }", "public void nodata();", "public void addData(DataPoint point)\n {\n data.add(point);\n }", "private Data[] getDoubles(double value, int npoints, int nattributes)\n\t{\n\t\tData[] data = new Data[npoints];\n\t\tfor (int i = 0; i < npoints; i++)\n\t\t\tdata[i] = nattributes == 1 ? new DataDouble(value)\n\t\t: new DataArrayOfDoubles(new double[] { value, value });\n\t\t\treturn data;\n\t}", "private static Set<List<Integer>> createNtuples(Dataset dataset) {\r\n\t\tList<Set<Integer>> ntupleList = new ArrayList<>();\r\n\r\n\t\tfor (Integer dimensionSize : dataset.getSize()) {\r\n\t\t\tSet<Integer> set = new TreeSet<>();\r\n\t\t\tfor (Integer i = 0; i < dimensionSize; i++) {\r\n\t\t\t\tset.add(i);\r\n\t\t\t}\r\n\t\t\tntupleList.add(set);\r\n\t\t}\r\n\r\n\t\treturn Sets.cartesianProduct(ntupleList);\r\n\t}", "public DataSet() {\r\n \r\n }", "private static XYZDataset createDataset(Comparable<?> xKey, \n Comparable<?> yKey, Comparable<?> zKey) {\n Reader in = new InputStreamReader(\n ScatterPlot3D3.class.getResourceAsStream(\"iris.txt\"));\n KeyedValues3D data;\n try {\n data = JSONUtils.readKeyedValues3D(in);\n } catch (IOException ex) {\n throw new RuntimeException(ex);\n }\n return DataUtils.extractXYZDatasetFromColumns(data, xKey, yKey, zKey);\n }", "com.google.cloud.automl.v1beta1.Dataset getDataset();", "@Parameters\n // Método public static que devuelve un elemento iterable de array de objetos\n public static Iterable<Object[]> getData() {\n return Arrays.asList(new Object[][] {\n // Indicamos todas las pruebas {a, b, esperado}\n { 3, 1, 4 }, { 2, 3, 5 }, { 3, 3, 6 } });\n }", "public void TrainDataset(){\n\t\ttry{\n\t\t\t//Testing delegate method\n\t\t\tMessageController.logToConsole(\"Hey, I'm from train button\");\n\t\t\t\n\t\t\t//Pass in the real training dataset\n\t\t\tfindSuitableK(new String[]{\"Hello\", \"World\"});\n\t\t\t\n\t\t\t//Pass in the 'k' and 'query string'\n\t\t\tfindKNN(2, \"anything\");\n\t\t}\n\t\tcatch(Exception ex){\n\t\t\tthrow ex;\n\t\t}\n\t\tfinally{\n\t\t\t\n\t\t}\n\t}", "@Parameters\n\tpublic static Collection<Object[]> data() {\n\t\treturn Arrays.asList(new Object[][]{\n\t\t\t{\"Cuenta de Juan\", 200,1,75, 125},\t\t\t\t// Zone 1\n\t\t\t{\"Cuenta de Maria\", 500, 2, 250, 250},\t\t\t// Zone 2\n\t\t\t{\"Cuenta de Ignacio\", 1850, 3, 50, 1800},\t\t// Zone 3\n\t\t\t}); \n\t}", "public Collection< EDataT > edgeData();", "protected void makeTreeDatasetAndRenderer() throws ModelException {\n TreePopulation oPop = m_oDisturbanceBehaviors.getGUIManager().getTreePopulation();\n Plot oPlot = m_oDisturbanceBehaviors.getGUIManager().getPlot();\n float fXPlotLength = oPlot.getPlotXLength(),\n fYPlotLength = oPlot.getPlotYLength();\n int i,j;\n\n m_oTreeRenderer = new XYTreeRenderer(fXPlotLength, fYPlotLength, \n fXPlotLength, fYPlotLength);\n\n //Split out the trees by species, creating XYZDataItems for each\n ArrayList<ArrayList<XYZDataItem>> p_oTreesBySpecies = new ArrayList<ArrayList<XYZDataItem>>(oPop.getNumberOfSpecies());\n for (i = 0; i < oPop.getNumberOfSpecies(); i++) {\n p_oTreesBySpecies.add(i, new ArrayList<XYZDataItem>(0));\n }\n ArrayList<Tree> p_oTrees = oPop.getTrees();\n Tree oTree;\n for (i = 0; i < p_oTrees.size(); i++) {\n oTree = p_oTrees.get(i);\n int iXCode = oPop.getFloatDataCode(\"X\", oTree.getSpecies(), oTree.getType()),\n iYCode = oPop.getFloatDataCode(\"Y\", oTree.getSpecies(), oTree.getType()),\n iDiamCode = -1;\n if (oTree.getType() > TreePopulation.SEEDLING) {\n iDiamCode = oPop.getFloatDataCode(\"DBH\", oTree.getSpecies(),\n oTree.getType());\n }\n if (iXCode > -1 && iYCode > -1 && iDiamCode > -1) {\n p_oTreesBySpecies.get(oTree.getSpecies()).add(new XYZDataItem(\n oTree.getFloat(iXCode).floatValue(),\n oTree.getFloat(iYCode).floatValue(),\n oTree.getFloat(iDiamCode).floatValue()/100.0)); //in m \n }\n }\n\n //Now add these as series to the dataset - empty series OK because they\n //act as placeholders\n XYZDataItem oItem;\n for (i = 0; i < p_oTreesBySpecies.size(); i++) {\n double[][] p_oSeries = new double[3][p_oTreesBySpecies.get(i).size()];\n for (j = 0; j < p_oTreesBySpecies.get(i).size(); j++) {\n oItem = (XYZDataItem) p_oTreesBySpecies.get(i).get(j);\n p_oSeries[0][j] = oItem.fX;\n p_oSeries[1][j] = oItem.fY;\n p_oSeries[2][j] = oItem.fZ;\n }\n m_oTreeDataset.addSeries(oPop.getSpeciesNameFromCode(i), p_oSeries);\n }\n }", "public static void gbpusdDErand(String dir) {\n \n /**\n * Settings of the evolutionary algorithm - Differential Evolution\n */\n \n Algorithm de;\n int dimension = dim; //Length of an individual - when using functions in GFS with maximum number of required arguments max_arg = 2, 2/3 are designated for program, 1/3 for constant values - for 60 it is 40 and 20\n int NP = 75; //Size of the population - number of competitive solutions\n int generations = gen; //Stopping criterion - number of generations in evolution\n int MAXFES = generations * NP; //Number of fitness function evaluations\n double f = 0.5, cr = 0.8; //Scaling factor f and crossover rate cr\n AP.util.random.Random generator = new AP.util.random.UniformRandom(); //Random number generator\n \n /**\n * Symbolic regression part\n * \n * Settings of the dataset which is regressed\n * Example: Sextic problem\n */\n \n // 50 points from range <-1, 1>, another type of data providing is possible\n double[][] dataset_points = dataset;\n ArrayList<AP_object> GFS = new ArrayList<>();\n GFS.add(new AP_Plus()); //Addition\n GFS.add(new AP_Sub()); //Subtraction\n GFS.add(new AP_Multiply()); //Mulitplication\n GFS.add(new AP_Div()); //Divison\n GFS.add(new AP_Abs());\n GFS.add(new AP_Cos());\n GFS.add(new AP_Cubic());\n GFS.add(new AP_Exp());\n GFS.add(new AP_Ln());\n GFS.add(new AP_Log10());\n GFS.add(new AP_Mod());\n GFS.add(new AP_Quad());\n GFS.add(new AP_Sin());\n GFS.add(new AP_Sigmoid());\n GFS.add(new AP_Sqrt());\n GFS.add(new AP_Tan());\n GFS.add(new AP_aTOb());\n GFS.add(new AP_x1()); //Independent variable x1\n// GFS.add(new AP_Const_static()); //Constant object - value is evolved in the extension of the individuals\n //More functions and terminals for GFS can be found or added to model.ap.objects\n \n double const_min = -10; //Minimum value of constants\n double const_max = 10; //Maximum value of constants\n \n APtf tf = new APdataset(dataset_points, GFS, const_min, const_max); //Dataset constructor\n\n /**\n * Additional variables\n */\n \n int runs = run_count; //Number of runs of the regression\n \n double min; //Helping variable for best individual in terms of fitness function value\n double[] bestArray = new double[runs]; //Array for statistics\n int i, best; //Additional helping variables\n\n /**\n * Runs of the algorithm with statistical analysis\n */\n for (int k = 0; k < runs; k++) {\n\n best = 0;\n i = 0;\n min = Double.MAX_VALUE;\n \n de = new AP_DErand1bin(dimension, NP, MAXFES, tf, generator, f, cr);\n\n de.run();\n\n PrintWriter writer;\n \n try {\n writer = new PrintWriter(dir + tf.name() + \"-DErand\" + k + \".txt\", \"UTF-8\");\n\n writer.print(\"{\");\n \n for (int ii = 0; ii < ((AP_DErand1bin)de).getBestHistory().size(); ii++) {\n\n writer.print(String.format(Locale.US, \"%.10f\", ((AP_DErand1bin)de).getBestHistory().get(ii).fitness));\n\n if (ii != ((AP_DErand1bin)de).getBestHistory().size() - 1) {\n writer.print(\",\");\n }\n\n }\n\n writer.print(\"}\");\n\n writer.close();\n\n } catch (FileNotFoundException | UnsupportedEncodingException ex) {\n Logger.getLogger(AP_LSHADE.class.getName()).log(Level.SEVERE, null, ex);\n }\n \n bestArray[k] = de.getBest().fitness - tf.optimum();\n\n /**\n * AP best result value and equation.\n */\n\n System.out.println(\"=================================\");\n System.out.println(\"Best obtained fitness function value: \\n\" + (de.getBest().fitness - tf.optimum()));\n System.out.println(\"Equation: \\n\" + ((AP_Individual) de.getBest()).equation);\n System.out.println(\"Vector: \\n\" + Arrays.toString(((AP_Individual) de.getBest()).vector));\n System.out.println(\"=================================\");\n \n for(AP_Individual ind : ((AP_DErand1bin)de).getBestHistory()){\n i++;\n if(ind.fitness < min){\n min = ind.fitness;\n best = i;\n }\n if(ind.fitness == 0){\n System.out.println(\"Solution found in \" + i + \" CFE\");\n break;\n }\n }\n System.out.println(\"Best solution found in \" + best + \" CFE\");\n \n System.out.println(\"\\nxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx\\n\");\n \n \n }\n\n System.out.println(\"=================================\");\n System.out.println(\"Min: \" + DoubleStream.of(bestArray).min().getAsDouble());\n System.out.println(\"Max: \" + DoubleStream.of(bestArray).max().getAsDouble());\n System.out.println(\"Mean: \" + new Mean().evaluate(bestArray));\n System.out.println(\"Median: \" + new Median().evaluate(bestArray));\n System.out.println(\"Std. Dev.: \" + new StandardDeviation().evaluate(bestArray));\n System.out.println(\"=================================\");\n \n }", "@DataProvider(name = \"InputData\")\n\t \n\t public static Object[][] inputData() {\n\t \n\t return new Object[][] { { \"20\",\"20\" }, { \"10\",\"10\" }};\n\t \n\t }", "public static Instances convertFeatureSetToWekaInstances(FeatureSet feature_set) throws Exception {\n ArrayList<Attribute> attributes = generateWekaAttributes(feature_set.getFeatures());\n Instances instances = new Instances(\"AuToBI_feature_set\", attributes, feature_set.getDataPoints().size());\n for (Word w : feature_set.getDataPoints()) {\n Instance inst = ClassifierUtils.assignWekaAttributes(instances, w);\n instances.add(inst);\n }\n\n ClassifierUtils.setWekaClassAttribute(instances, feature_set.getClassAttribute());\n return instances;\n }", "@DataProvider\n\tpublic Object[][] getData()\n\t{\n\t\tObject[][] data = new Object[3][2];\n\t\t\n\t\t//1st set\n\t\tdata[0][0] = \"firstsetusername\";\n\t\tdata[0][1] = \"firstpassword\";\n\t\t//couloumns in the row are nothing but values for that particualar combination(row)\n\t\t\n\t\t//2nd set\n\t\tdata[1][0] = \"secondsetisername\";\n\t\tdata[1][1] = \"second password\";\n\t\t\n\t\t//3rd set\n\t\tdata[2][0] = \"thirdsetusername\";\n\t\tdata[2][1] = \"thirdpassword\";\n\t\treturn data;\n\t\t\n\t}", "@Parameters\n public static Iterable<Object[]> getData() {\n List<Object[]> obj = new ArrayList<>();\n obj.add(new Object[] {3, 12});\n obj.add(new Object[] {2, 8});\n obj.add(new Object[] {1, 4});\n \n return obj;\n }", "private static XYDataset createDataset(Double[] x, Double[] y) {\n\t\tlogger.info(\"Creating Dataset\");\n\t\tXYSeries s1 = new XYSeries(Double.valueOf(1));\n\t\tif (x.length != y.length) {\n\t\t\tlogger.error(\"Error in createDataset of ScatterDialog. \" +\n\t\t\t\t\t\"Could not create a dataset for the scatter plot -- missing data\");\n\t\t\treturn null;\n\t\t}\n\t\tfor (int i = 0; i < x.length; i++) {\n\t\t\tif (y[i] != null) {\n\t\t\t\ts1.add(x[i], y[i]);\n\t\t\t}\n\t\t}\n\t\tXYSeriesCollection dataset = new XYSeriesCollection();\n\t\tdataset.addSeries(s1);\n\t\treturn dataset;\n\t}", "public PointSET() {\n pointSet = new TreeSet<>();\n }", "public void addDataPoint2( DataPoint dataPoint ) {\n\t\tif ( dataPoint.x < 50.0 ){\n\t\t\tsumX1 += dataPoint.x;\n\t\t\tsumX1X1 += dataPoint.x*dataPoint.x;\n\t\t\tsumX1Y += dataPoint.x*dataPoint.z;\n\t\t\tsumY += dataPoint.z;\n\t\t\tsumYY += dataPoint.z*dataPoint.z;\n\n\t\t\tif ( dataPoint.x > X1Max ) {\n\t\t\t\tX1Max = (int)dataPoint.x;\n\t\t\t}\n\t\t\tif ( dataPoint.z > YMax ) {\n\t\t\t\tYMax = (int)dataPoint.z;\n\t\t\t}\n\n\t\t\t// 把每個點的具體座標存入 ArrayList中,備用。\n\t\t\txyz[0] = (int)dataPoint.x+ \"\";\n\t\t\txyz[2] = (int)dataPoint.z+ \"\";\n\t\t\tif ( dataPoint.x !=0 && dataPoint.z != 0 ) {\n\t\t\t\ttry {\n\t\t\t\t\tlistX.add( numPoint, xyz[0] );\n\t\t\t\t\tlistZ.add( numPoint, xyz[2] );\n\t\t\t\t} \n\t\t\t\tcatch ( Exception e ) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t\n\t\t\t++numPoint;\n\t\t}\n\t\telse {\n\t\t\t sumX50 += dataPoint.x;\n\t\t \t sumX50X50 += dataPoint.x*dataPoint.x;\n\t\t\t sumX50Y50 += dataPoint.x*dataPoint.z;\n\t\t\t sumY50 += dataPoint.z;\n\t\t\t sumY50Y50 += dataPoint.z*dataPoint.z;\n\n\t\t\t if ( dataPoint.x > X50Max ) {\n\t\t\t\t X50Max = (int)dataPoint.x;\n\t\t\t }\n\t\t\t if ( dataPoint.z > Y50Max ) {\n\t\t\t\t Y50Max = (int)dataPoint.z;\n\t\t\t }\n\n\t\t\t // 把每個點的具體座標存入 ArrayList中,備用。\n\t\t\t xyz50[0] = (int)dataPoint.x+ \"\";\n\t\t\t xyz50[2] = (int)dataPoint.z+ \"\";\n\t\t\t if ( dataPoint.x !=0 && dataPoint.z != 0 ) {\n\t\t\t\t try {\n\t\t\t\t\t listX50.add( numPoint50, xyz50[0] );\n\t\t\t\t\t listZ50.add( numPoint50, xyz50[2] );\n\t\t\t\t } \n\t\t\t\t catch ( Exception e ) {\n\t\t\t\t\t e.printStackTrace();\n\t\t\t\t }\n\t\t\t }\n\t\t\t\n\t\t\t ++numPoint50;\n\t\t}\n\t\tcoefsValid = false;\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 }", "public static CategoryDataset createDataset(DefaultTableModel dtm, ArrayList<BigDecimal> have, BigDecimal goal) {\n \n //Get the data out of the table model\n \tArrayList<DateTime> dates \t\t= TableDataConversion.getDates(dtm);\n \tArrayList<BigDecimal> expected \t= TableDataConversion.getExpectedAmount(dtm);\n \t\n \t//Make the dataset\n \tfinal DefaultCategoryDataset dataset = new DefaultCategoryDataset();\n \t\n \t//Set the print format\n \tDateTimeFormatter formatter = DateTimeFormat.forPattern(\"dd/MM/YY\");\n \t\n \t//Row keys\n final String series1 = \"Expected\";\n final String series2 = \"Have\";\n final String series3 = \"Goal\";\n \t\n \t//Add to the dataset\n \tfor(int i=0; i<dates.size(); i++)\n \t{\n \t\tdataset.addValue(expected.get(i), series1, dates.get(i).toString(formatter));\n \t\tdataset.addValue(have.get(i), series2, dates.get(i).toString(formatter));\n \t\tdataset.addValue(goal, series3, dates.get(i).toString(formatter));\n \t}\n \t\n return dataset;\n \n }", "public void read_data(Connection connection, String query) throws SQLException {\n\t\tPreparedStatement pstmt = connection.prepareStatement(query);\n\t\tResultSet rs = pstmt.executeQuery();\n\t\t\n\t\t/* set feature num */\n\t\tthis.feature_num = rs.getMetaData().getColumnCount() - 1;\n\t\t/* read data */\n\t\twhile(rs.next()) {\n\t\t\tsvm_node[] sample = new svm_node[this.feature_num];\n\t\t\tfor (int i = 0; i < this.feature_num; i++) {\n\t\t\t\tsample[i] = new svm_node();\n\t\t\t\t/* set index */\n\t\t\t\tsample[i].index = i + 1;\n\t\t\t\t/* set value */\n\t\t\t\tif (rs.getObject(i + 2).getClass().getName() == \"java.lang.String\") {\n\t\t\t\t\tsample[i].value = stod(rs.getString(i + 2));\n\t\t\t\t} else if ((rs.getObject(i + 2).getClass().getName() == \"java.lang.Long\")\n\t\t\t\t\t\t|| (rs.getObject(i + 2).getClass().getName() == \"java.math.BigDecimal\")) {\n\t\t\t\t\tsample[i].value = rs.getDouble(i + 2);\n\t\t\t\t} else {\n\t\t\t\t\t// to be continued\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t\toriginal_set.add(sample);\n\t\t labels.add(mklabel(stod(rs.getString(1))));\t// special_flag\n\t\t}\n\t\t\n\t\t/* set sample num */\n this.sample_num = original_set.size();\n\t \n\t /* end data preparation */\n System.out.println(\"Data preparation done! \" + this.get_sample_num() + \" samples in total\");\n\t\tif (rs != null) {\n\t\t\trs.close();\n\t\t}\n\t\tif (pstmt != null) {\n\t\t\tpstmt.close();\n\t\t}\n\t}", "private void run() {\n\t\tfor (int i = 0; i < 1000; i++){\n\t\t\t\n\t\t\tdouble sample = Math.random()*2.0;\n\t\t\tdataset.addObservation(sample);\n\t\t\t\n\t\t\t// stats\n\t\t\tsum += sample;\n\t\t\tn++;\n\t\t\tav = sum/n;\n\n\t\t\t// create new xy dataset\n\t\t\n\t\t\ttry {Thread.sleep(1000L);} catch (Exception e) {}\n\t\t\t\n\t\t}\n\t\t\n\t\t \n\t}", "public Dataset getFullDataset(int iteration) {\r\n try {\r\n if (iteration > CurrentIteration) {\r\n throw new Exception(\"Iteration cannot be greater than the current iteration.\");\r\n }\r\n Dataset output = InitialData.clone();\r\n for (int i = 0; i < iteration; i++) {\r\n output.combine(Candidates.get(i));\r\n }\r\n return output;\r\n } catch (Exception e) {\r\n throw new Error(e);\r\n }\r\n }", "protected void fillDataset(Dataset dataset) {\n dataset.getDefaultModel().getGraph().add(SSE.parseTriple(\"(<x> <p> 'Default graph')\")) ;\n \n Model m1 = dataset.getNamedModel(graph1) ;\n m1.getGraph().add(SSE.parseTriple(\"(<x> <p> 'Graph 1')\")) ;\n m1.getGraph().add(SSE.parseTriple(\"(<x> <p> 'ZZZ')\")) ;\n \n Model m2 = dataset.getNamedModel(graph2) ;\n m2.getGraph().add(SSE.parseTriple(\"(<x> <p> 'Graph 2')\")) ;\n m2.getGraph().add(SSE.parseTriple(\"(<x> <p> 'ZZZ')\")) ;\n calcUnion.add(m1) ;\n calcUnion.add(m2) ;\n }", "private void populateData() {\n\t\tList<TrafficRecord> l = TestHelper.getSampleData();\r\n\t\tfor(TrafficRecord tr: l){\r\n\t\t\tput(tr);\r\n\t\t}\r\n\t\t \r\n\t}", "public XYDataset getLineDataset() {\n\n // Initialize some variables\n XYSeriesCollection dataset = new XYSeriesCollection();\n XYSeries series[][] = new XYSeries[rois.length][images.length];\n String seriesname[][] = new String[rois.length][images.length];\n int currentSlice = ui.getOpenMassImages()[0].getCurrentSlice();\n ArrayList<String> seriesNames = new ArrayList<String>();\n String tempName = \"\";\n map = new HashMap<String, Pair<MimsPlus, Roi>>();\n double stat;\n\n // Image loop\n for (int j = 0; j < images.length; j++) {\n MimsPlus image;\n if (images[j].getMimsType() == MimsPlus.HSI_IMAGE || images[j].getMimsType() == MimsPlus.RATIO_IMAGE) {\n image = images[j].internalRatio;\n } else {\n image = images[j];\n }\n // Roi loop\n for (int i = 0; i < rois.length; i++) {\n\n // Set the Roi to the image.\n Integer[] xy = ui.getRoiManager().getRoiLocation(rois[i].getName(), image.getCurrentSlice());\n rois[i].setLocation(xy[0], xy[1]);\n image.setRoi(rois[i]);\n\n // Stat loop\n for (int k = 0; k < stats.length; k++) {\n\n // Generate a name for the dataset.\n String prefix = \"\";\n if (image.getType() == MimsPlus.MASS_IMAGE || image.getType() == MimsPlus.RATIO_IMAGE) {\n prefix = \"_m\";\n }\n if (seriesname[i][j] == null) {\n tempName = \"mean\" + prefix + image.getRoundedTitle(true) + \"_r\" + rois[i].getName();\n int dup = 1;\n while (seriesNames.contains(tempName)) {\n tempName = \"mean\" + prefix + image.getRoundedTitle(true) + \"_r\" + rois[i].getName() + \" (\" + dup + \")\";\n dup++;\n }\n seriesNames.add(tempName);\n seriesname[i][j] = tempName;\n }\n series[i][j] = new XYSeries(seriesname[i][j]);\n ij.gui.ProfilePlot profileP = new ij.gui.ProfilePlot(image);\n double[] newdata = profileP.getProfile();\n for (int p = 0; p < newdata.length; p++) {\n series[i][j].add(p, newdata[p]);\n }\n Pair tuple = new Pair(images[j], rois[i]);\n map.put(seriesname[i][j], tuple);\n\n } // End of Stat\n } // End of Roi\n } // End of Image\n\n // Populate the final data structure.\n for (int i = 0; i < rois.length; i++) {\n for (int j = 0; j < images.length; j++) {\n dataset.addSeries(series[i][j]);\n }\n }\n\n ui.getOpenMassImages()[0].setSlice(currentSlice);\n\n return dataset;\n }" ]
[ "0.68008655", "0.6072471", "0.6042459", "0.58205485", "0.58060014", "0.57804674", "0.5748976", "0.5733188", "0.573076", "0.5717099", "0.5678822", "0.56382686", "0.5532473", "0.5532", "0.5531803", "0.55216694", "0.5498743", "0.5489193", "0.54604924", "0.5456492", "0.54408014", "0.5439436", "0.5430224", "0.5428597", "0.540512", "0.5379247", "0.53659636", "0.5351549", "0.5347102", "0.5338406", "0.5315554", "0.5312204", "0.53080374", "0.52944285", "0.5286221", "0.52689904", "0.52666765", "0.5254516", "0.5254386", "0.5249732", "0.52402115", "0.5232993", "0.5223925", "0.522073", "0.52047646", "0.52017003", "0.51967645", "0.5165038", "0.5155997", "0.51534474", "0.5142451", "0.5127237", "0.5123357", "0.5120702", "0.5107453", "0.5096209", "0.5092515", "0.50811166", "0.50724876", "0.5068411", "0.50495946", "0.50488573", "0.5047309", "0.50465083", "0.50454456", "0.50327784", "0.50319225", "0.50280184", "0.50252223", "0.5023214", "0.50067675", "0.49936154", "0.49863872", "0.4982559", "0.4982204", "0.4980396", "0.49782494", "0.4975609", "0.49649253", "0.49595383", "0.49587807", "0.49492407", "0.49486345", "0.49461088", "0.4941378", "0.49343386", "0.49224862", "0.49135268", "0.49099663", "0.49091867", "0.49054375", "0.4904421", "0.49015215", "0.49004075", "0.48976123", "0.48954424", "0.4891221", "0.48849103", "0.4880811", "0.4879119" ]
0.5245269
40
Set the properties used to create the RuleAgent. Check the Drools manual for the valid properties; the key of the keyvaluepair is the property name, the value the value.
public void setRuleAgentProperties(KeyValuePairSet kvps) { ruleAgentProperties = kvps; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setProperties(Properties properties);", "@Override\r\n\tpublic void setProperties(Properties properties) {\n\t\t\r\n\t}", "@Override\r\n\tpublic void setProperties(Properties properties) \r\n\t{\n\t}", "public void setProperty(Properties properties) {\r\n this.properties = properties;\r\n }", "@Override\r\n\tpublic void setProperty(Properties prop) {\n\t}", "PropertiesTask setProperties( Properties properties );", "@Override\n\tpublic void setProperties(Properties p) {\n\t\t\n\t}", "public void setProperties(Properties properties) {\n this.properties=properties;\n }", "public void setProperties(Properties properties)\n {\n this.properties = properties;\n }", "public\n void setProperties(YutilProperties argprops)\n {\n if (argprops == null)\n return;\n\n // Copy all key/val pairs\n for (Enumeration ep = argprops.propertyNames(); ep.hasMoreElements(); )\n {\n String key = (String)ep.nextElement();\n String val = key + \"=\" + argprops.getProperty(key);\n setProperties(val, false);\n }\n }", "protected void setProperties(P[] properties) {\n\t\tthis.properties = properties;\n\t}", "PropertyRule createPropertyRule();", "public void setProperties(Properties properties) {\n\t\tthis.properties = properties;\n\t}", "public void setProperties(String properties) throws ParseException {\n\t\tthis.m_corniInterpreter.clear();\n\t\tthis.m_corniInterpreter.parseProperties(properties);\n\t\t\n\t\tthis.m_attributes = m_corniInterpreter.getAttributes();\n\t\tthis.m_tagNames = m_corniInterpreter.getTagNames();\n\t}", "public void setProperties(Map properties);", "@Override\n\tpublic void setProperties(Properties properties) {\n\t\tsuper.setProperties(properties);\n\t}", "@Override\r\n\tpublic void setProperties(Properties arg0) {\n\r\n\t}", "public void setProperties(org.LexGrid.commonTypes.Properties properties) {\n this.properties = properties;\n }", "public void setupProperties() {\n // left empty for subclass to override\n }", "public void setProperties(Properties setList);", "@Override\n public void afterPropertiesSet() {\n validateProperties();\n }", "public void setProperties(GovernanceActionProperties properties)\n {\n this.properties = properties;\n }", "@Override\r\n\tpublic void setPropFile(Properties prop) {\n\t\t\r\n\t}", "PropertiesTask setProperty( String key, String value );", "@Override\n\tpublic void loadProperties() {\n\t\tPropertySet mPropertySet = PropertySet.getInstance();\n\t\tdouble kp = mPropertySet.getDoubleValue(\"angleKp\", 0.05);\n\t\tdouble ki = mPropertySet.getDoubleValue(\"angleKi\", 0.0);\n\t\tdouble kd = mPropertySet.getDoubleValue(\"angleKd\", 0.0001);\n\t\tdouble maxTurnOutput = mPropertySet.getDoubleValue(\"turnPIDMaxMotorOutput\", Constants.kDefaultTurnPIDMaxMotorOutput);\n\t\tmAngleTolerance = mPropertySet.getDoubleValue(\"angleTolerance\", Constants.kDefaultAngleTolerance);\n\t\tsuper.setPID(kp, ki, kd);\n\t\tsuper.setOutputRange(-maxTurnOutput, maxTurnOutput);\n\t}", "public void setProperties(Map<String, String> properties) {\n\t\tthis.properties = properties;\n\t}", "public void setProperties() {\r\n\t\tconfigProps.setProperty(\"Root\", textRoot.getText());\r\n\t\tconfigProps.setProperty(\"Map\", textMap.getText());\r\n\t\tconfigProps.setProperty(\"Out\", textOut.getText());\r\n\t\tconfigProps.setProperty(\"ReportTypeName\",textrtn.getText());\r\n\t\tconfigProps.setProperty(\"ReportedByPersonName\",textrbpn.getText());\r\n\t\tconfigProps.setProperty(\"ReportedDate\",textrd.getText());\r\n\t\tdt.Map = textMap.getText();\r\n\t\tdt.Root = textRoot.getText();\r\n\t\tdt.Out = textOut.getText();\r\n\t\tdt.setReportHeaderData(textrtn.getText(), textrbpn.getText(), textrd.getText());\r\n\t}", "public void setProperties(Map<String, String> properties) {\n this.properties = properties;\n }", "public void setProperties(Map<String, Object> properties) {\n\t\tthis.properties = properties;\n\t}", "public void setProperties(Map<String, Object> properties) {\n this.properties = properties;\n }", "@Override\n\tpublic void applyProperties() throws Exception {\n\t\tsuper.setDefaultsIfMissing();\n\n\t\t// Apply own properties\n\t\tthis.inputdelimiter = this.getProperties().getProperty(\n\t\t\t\tPROPERTYKEY_DELIMITER_INPUT,\n\t\t\t\tthis.getPropertyDefaultValues()\n\t\t\t\t\t\t.get(PROPERTYKEY_DELIMITER_INPUT));\n\t\tthis.edgeDesignator = this.getProperties().getProperty(\n\t\t\t\tPROPERTYKEY_EDGEDESIGNATOR,\n\t\t\t\tthis.getPropertyDefaultValues()\n\t\t\t\t\t\t.get(PROPERTYKEY_EDGEDESIGNATOR));\n\n\t\t// Apply parent object's properties (just the name variable actually)\n\t\tsuper.applyProperties();\n\t}", "public void setProperties(Map<String, List<String>> properties) {\n\t\tthis.properties = properties;\n\t}", "public boolean setProperties(Properties props) {\n String str;\n\n super.setProperties(props);\n str=props.getProperty(\"shun\");\n if(str != null) {\n shun=Boolean.valueOf(str).booleanValue();\n props.remove(\"shun\");\n }\n\n str=props.getProperty(\"merge_leader\");\n if(str != null) {\n merge_leader=Boolean.valueOf(str).booleanValue();\n props.remove(\"merge_leader\");\n }\n\n str=props.getProperty(\"print_local_addr\");\n if(str != null) {\n print_local_addr=Boolean.valueOf(str).booleanValue();\n props.remove(\"print_local_addr\");\n }\n\n str=props.getProperty(\"join_timeout\"); // time to wait for JOIN\n if(str != null) {\n join_timeout=Long.parseLong(str);\n props.remove(\"join_timeout\");\n }\n\n str=props.getProperty(\"join_retry_timeout\"); // time to wait between JOINs\n if(str != null) {\n join_retry_timeout=Long.parseLong(str);\n props.remove(\"join_retry_timeout\");\n }\n\n str=props.getProperty(\"leave_timeout\"); // time to wait until coord responds to LEAVE req.\n if(str != null) {\n leave_timeout=Long.parseLong(str);\n props.remove(\"leave_timeout\");\n }\n\n str=props.getProperty(\"merge_timeout\"); // time to wait for MERGE_RSPS from subgroup coordinators\n if(str != null) {\n merge_timeout=Long.parseLong(str);\n props.remove(\"merge_timeout\");\n }\n\n str=props.getProperty(\"digest_timeout\"); // time to wait for GET_DIGEST_OK from PBCAST\n if(str != null) {\n digest_timeout=Long.parseLong(str);\n props.remove(\"digest_timeout\");\n }\n\n str=props.getProperty(\"view_ack_collection_timeout\");\n if(str != null) {\n view_ack_collection_timeout=Long.parseLong(str);\n props.remove(\"view_ack_collection_timeout\");\n }\n\n str=props.getProperty(\"resume_task_timeout\");\n if(str != null) {\n resume_task_timeout=Long.parseLong(str);\n props.remove(\"resume_task_timeout\");\n }\n\n str=props.getProperty(\"disable_initial_coord\");\n if(str != null) {\n disable_initial_coord=Boolean.valueOf(str).booleanValue();\n props.remove(\"disable_initial_coord\");\n }\n\n str=props.getProperty(\"handle_concurrent_startup\");\n if(str != null) {\n handle_concurrent_startup=Boolean.valueOf(str).booleanValue();\n props.remove(\"handle_concurrent_startup\");\n }\n\n str=props.getProperty(\"num_prev_mbrs\");\n if(str != null) {\n num_prev_mbrs=Integer.parseInt(str);\n props.remove(\"num_prev_mbrs\");\n }\n\n if(props.size() > 0) {\n log.error(\"GMS.setProperties(): the following properties are not recognized: \" + props);\n\n return false;\n }\n return true;\n }", "Properties modifyProperties(Properties properties);", "public void setProperties(java.util.Map<String, Double> properties) {\n this.properties = new HashMap<String, Double>(properties);\n }", "public void setProperties(java.util.Map<String,String> properties) {\n this.properties = properties;\n }", "void configure(Properties properties);", "public void setProp(String key, String value){\t\t\n \t\t//Check which of property to set & set it accordingly\n \t\tif(key.equals(\"UMPD.latestReport\")){\n \t\t\tthis.setLatestReport(value);\n<<<<<<< HEAD\n\t\t} \n=======\n \t\t\treturn;\n \t\t} \n \t\tif (key.equals(\"UMPD.latestVideo\")) {\n \t\t\tthis.setLastestVideo(value);\n \t\t\treturn;\n \t\t}\n>>>>>>> 45a14c6cf04ac0844f8d8b43422597ae953e0c42\n \t}\n //-----------------------------------------------------------------------------\n \t/**\n \t * @return - a list of <code>FieldAndval</code> objects representing the set \n \t * properties\n \t */\n \tpublic ArrayList<FieldAndVal> getSetPropsList(){\n \t\tcreateSetPropsList();\n \t\treturn setPropsList;\n \t}\n //-----------------------------------------------------------------------------\n \t/**\n \t * \n \t */\n \tprivate void createSetPropsList(){\n \t\tif((this.latestReport).length()>0){\n \t\t\tsetPropsList.add(new FieldAndVal(\"UMPD.latestReport\", this.latestReport));\n \t\t}\n \t}\n //-----------------------------------------------------------------------------\n \t/**\n \t * @return lastestVideo - \n \t */\n \tpublic String getLastestVideo() {\n \t\treturn lastestVideo;\n \t}", "public void setProperties(Map<String, Object> properties) {\n mProperties = properties;\n }", "PropertiesTask setProperties( File propertiesFile );", "public void setConfiguration(Properties props);", "public static void setProperties(final HashMap<String, String> properties) {\n for (String propertyName : properties.keySet()) {\n Conf.properties.setProperty(propertyName, properties.get(propertyName));\n }\n try {\n commit();\n } catch (IOException e) {\n Log.error(e);\n }\n }", "protected void setProperties(WekaAlgorithmWrapper target,\n\t\t\tMap<String, String> propertiesToSet) {\n\t\tfor (Map.Entry<String, String> e : propertiesToSet.entrySet()) {\n\t\t\tString propName = e.getKey();\n\t\t\tString propVal = e.getValue().trim();\n\t\t\tif (propVal.length() == 0) {\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\ttry {\n\t\t\t\tif (propName.length() == 0) {\n\t\t\t\t\t// assume the value is scheme + options for specifying the\n\t\t\t\t\t// wrapped algorithm\n\n\t\t\t\t\tString[] schemeAndOpts = Utils.splitOptions(propVal);\n\t\t\t\t\tif (schemeAndOpts.length > 0) {\n\t\t\t\t\t\tString schemeName = schemeAndOpts[0];\n\t\t\t\t\t\tschemeAndOpts[0] = \"\";\n\t\t\t\t\t\tObject valToSet = Utils.forName(null, schemeName, schemeAndOpts);\n\t\t\t\t\t\tsetValue(target, target.getName(), \"wrappedAlgorithm\", valToSet);\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\t// single property on the wrapped algorithm\n\t\t\t\t\tString[] propPath = propName.split(\"\\\\.\");\n\t\t\t\t\tObject propRoot = target.getWrappedAlgorithm();\n\t\t\t\t\tString propToSet = propPath[propPath.length - 1];\n\t\t\t\t\tList<String> remainingPath = new ArrayList<>();\n\t\t\t\t\tfor (int i = 0; i < propPath.length - 1; i++) {\n\t\t\t\t\t\tremainingPath.add(propPath[i]);\n\t\t\t\t\t}\n\t\t\t\t\tif (remainingPath.size() > 0) {\n\t\t\t\t\t\tpropRoot = drillToProperty(propRoot, remainingPath);\n\t\t\t\t\t}\n\t\t\t\t\tObject valToSet = stringToVal(propVal, propRoot, propToSet);\n\t\t\t\t\tsetValue(propRoot, propRoot.getClass().getCanonicalName(), propToSet,\n\t\t\t\t\t\t\tvalToSet);\n\t\t\t\t}\n\t\t\t} catch (Exception ex) {\n\t\t\t\tString pN = propName.length() == 0 ? \"wrapped algorithm\" : propName;\n\t\t\t\tgetStepManager().logWarning(\n\t\t\t\t\t\t\"Unable to set \" + pN + \" with value: \" + propVal + \" on step \"\n\t\t\t\t\t\t\t\t+ target.getName() + \". Reason: \" + ex.getMessage());\n\t\t\t}\n\t\t}\n\n\t\t// re-initialize (just in case KF environment has called initStep() on\n\t\t// the target WekaAlgorithmWrapper before we get to set its properties\n\t\ttry {\n\t\t\ttarget.stepInit();\n\t\t} catch (WekaException e) {\n\t\t\tgetStepManager().logWarning(\n\t\t\t\t\t\"Was unable to re-initialize step '\" + target.getName()\n\t\t\t\t\t\t\t+ \"' after setting properties\");\n\t\t}\n\t}", "@Override\n public void afterPropertiesSet() {\n }", "@Override\n\t\tpublic void setProperty(String key, Object value) {\n\n\t\t}", "public void setProperty(String property) {\n }", "public final void setActualProperties(java.util.Properties properties) {\n this.actualProperties = properties;\n }", "public void setGameProperties(GameProperty [] GameProperties) {\n this.GameProperties = GameProperties;\n }", "public void setProperty(Object key, Object value) {\r\n\t\tproperties.put(key, value);\r\n\t}", "public void setParameters(Properties props) {\n\n\t}", "public\n YutilProperties(YutilProperties argprops)\n {\n super(new Properties());\n setPropertiesDefaults(argprops);\n }", "public void addProperties( Properties props )\n {\n if ( props != null )\n {\n for ( Enumeration<?> e = props.propertyNames(); e.hasMoreElements(); )\n {\n // This LDAP attr is stored as a name-value pair separated by a ':'.\n String key = ( String ) e.nextElement();\n String val = props.getProperty( key );\n addProperty( key, val );\n }\n }\n }", "public void setupProp() {\r\n\t\tprop = new Properties();\r\n\t\tInputStream in = getClass().getResourceAsStream(\"C:/Users/Marcus/git/EmailProgram/EmailProgram/resources/config.properties\");\r\n\t\ttry {\r\n\t\t\tprop.load(in);\r\n\t\t\tFileInputStream fin = new FileInputStream(\"C:/Users/Marcus/git/EmailProgram/EmailProgram/resources/config.properties\");\r\n\t\t\tObjectInputStream ois = new ObjectInputStream(fin);\r\n\t\t\tdblogic = (PatronDBLogic) ois.readObject();\r\n\t\t\tois.close();\r\n\r\n\t\t} catch (IOException | ClassNotFoundException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}", "public void setControlFlowProperties(ControlFlowProperties controlFlowProperties)\n {\n this.controlFlowProperties = controlFlowProperties;\n }", "void setRule(Rule rule);", "@Override\n\tpublic void afterPropertiesSet() throws Exception {\n\t\t\n\t}", "@Override\n\tpublic void afterPropertiesSet() throws Exception {\n\t\t\n\t}", "@Override\n\tpublic void afterPropertiesSet() throws Exception {\n\t\t\n\t}", "public void configure(PropertiesGetter properties) {\n\t\t// TODO Auto-generated method stub\n\n\t}", "private void addProperties() {\n\n\t\t/**\n\t\t * Add fusion.conf = src/test/resource\n\t\t */\n\t\tif (isPropertyRequired(\"fusion.conf.dir\")) {\n\t\t\texpect(bundleContextMock.getProperty(\"fusion.conf.dir\")).andReturn(\n\t\t\t\t\t\"src/test/resources/\").anyTimes();\n\t\t}\n\t\t/**\n\t\t * set fusion.process.dir\n\t\t */\n\t\tif (isPropertyRequired(\"fusion.process.dir\")) {\n\t\t\texpect(bundleContextMock.getProperty(\"fusion.process.dir\"))\n\t\t\t\t\t.andReturn(\"src/test/resources/\").anyTimes();\n\t\t}\n\n\t\t/**\n\t\t * set fusion.process.temp\n\t\t */\n\t\tif (isPropertyRequired(\"fusion.process.temp.dir\")) {\n\t\t\texpect(bundleContextMock.getProperty(\"fusion.process.temp.dir\"))\n\t\t\t\t\t.andReturn(\"src/test/resources/\").anyTimes();\n\t\t}\n\n\t\t/**\n\t\t * set fusion.home\n\t\t */\n\t\tif (isPropertyRequired(\"fusion.home\")) {\n\t\t\texpect(bundleContextMock.getProperty(\"fusion.home\")).andReturn(\n\t\t\t\t\t\"src/test/resources/\").anyTimes();\n\t\t}\n\t}", "private void setAttributesIntoStrategy() {\n ResolverStrategy strategy = _resolverStrategy;\n strategy.setProperty(\n ResolverStrategy.PROPERTY_LOAD_PACKAGE_MAPPINGS, \n _loadPackageMappings);\n strategy.setProperty(\n ResolverStrategy.PROPERTY_USE_INTROSPECTION, _useIntrospector);\n strategy.setProperty(\n ResolverStrategy.PROPERTY_MAPPING_LOADER, _mappingLoader);\n strategy.setProperty(\n ResolverStrategy.PROPERTY_INTROSPECTOR, _introspector);\n }", "private void storeProperties() {\n storeValue(Variable.MODE);\n storeValue(Variable.ITEM);\n storeValue(Variable.DEST_PATH);\n storeValue(Variable.MAXTRACKS_ENABLED);\n storeValue(Variable.MAXTRACKS);\n storeValue(Variable.MAXSIZE_ENABLED);\n storeValue(Variable.MAXSIZE);\n storeValue(Variable.MAXLENGTH_ENABLED);\n storeValue(Variable.MAXLENGTH);\n storeValue(Variable.ONE_MEDIA_ENABLED);\n storeValue(Variable.ONE_MEDIA);\n storeValue(Variable.CONVERT_MEDIA);\n storeValue(Variable.CONVERT_COMMAND);\n storeValue(Variable.NORMALIZE_FILENAME);\n storeValue(Variable.RATING_LEVEL);\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}", "public void setProperties(String prefix, Properties setList);", "void updateProperties(@NotNull List<NlComponent> components,\n @NotNull Map<String, NlProperty> properties,\n @NotNull PropMgr propertiesManager);", "@Override\n protected void updateProperties() {\n }", "@Override\r\n\tpublic void afterPropertiesSet() throws Exception {\n\t\tloadRules2();\r\n\t}", "@Override\r\n\tpublic void afterPropertiesSet() throws Exception {\n\t\t\r\n\t}", "@Override\n\tpublic void setProperty(String propertyName, Object value) {\n\t\t\n\t}", "public void setProperties(Hashtable<String, String> h) {\n\t\t_props = h;\n\t}", "public void test1_5Properties() throws Exception {\n getReverb(0);\n try {\n EnvironmentalReverb.Settings settings = mReverb.getProperties();\n String str = settings.toString();\n settings = new EnvironmentalReverb.Settings(str);\n short level = (short)((settings.roomLevel == 0) ? -1000 : 0);\n settings.roomLevel = level;\n mReverb.setProperties(settings);\n settings = mReverb.getProperties();\n assertTrue(\"setProperties failed\",\n (settings.roomLevel >= (level - MILLIBEL_TOLERANCE)) &&\n (settings.roomLevel <= (level + MILLIBEL_TOLERANCE)));\n } catch (IllegalArgumentException e) {\n fail(\"Bad parameter value\");\n } catch (UnsupportedOperationException e) {\n fail(\"get parameter() rejected\");\n } catch (IllegalStateException e) {\n fail(\"get parameter() called in wrong state\");\n } finally {\n releaseReverb();\n }\n }", "public void setProperties() {\n\n Properties props = new Properties();\n props.setProperty(\"JOptExitCondition.JOptGenerationCount\", \"1000\");\n props.setProperty(\"JOpt.Algorithm.PreOptimization.SA.NumIterations\", \"1000\");\n\n // We have to tell the optimizer that we have an high interest in capacity planning, Default is\n // 100\n props.setProperty(\"JOptWeight.Capacity\", \"200\");\n this.addElement(props);\n }", "@Override\n\tpublic void afterPropertiesSet() throws Exception {\n\n\t}", "@Override\n\tpublic void afterPropertiesSet() throws Exception {\n\n\t}", "@Override\n public void afterPropertiesSet() throws Exception {\n System.out.println(\"After Properties Set Method is called and Properties are set for \" + triangle.toString()\n + \" And \" + shapeService.toString());\n name = \"Vedika\";\n }", "public void initProperties() {\n propAssetClass = addProperty(AssetComponent.PROP_CLASS, \"MilitaryOrganization\");\n propAssetClass.setToolTip(PROP_CLASS_DESC);\n propUniqueID = addProperty(AssetComponent.PROP_UID, \"UTC/RTOrg\");\n propUniqueID.setToolTip(PROP_UID_DESC);\n propUnitName = addProperty(AssetComponent.PROP_UNITNAME, \"\");\n propUnitName.setToolTip(PROP_UNITNAME_DESC);\n propUIC = addProperty(PROP_UIC, \"\");\n propUIC.setToolTip(PROP_UIC_DESC);\n }", "private void setQuestionProperties(QuestionDef questionDef){\n\t\tenableQuestionOnlyProperties(true);\n\n\t\t//txtDescTemplate.setVisible(false);\n\t\tenableDescriptionTemplate(false);\n\n\t\ttxtText.setText(questionDef.getText());\n\t\ttxtBinding.setText(questionDef.getBinding());\n\t\ttxtHelpText.setText(questionDef.getHelpText());\n\t\ttxtDefaultValue.setText(questionDef.getDefaultValue());\n\n\t\tchkVisible.setValue(questionDef.isVisible());\n\t\tchkEnabled.setValue(questionDef.isEnabled());\n\t\tchkLocked.setValue(questionDef.isLocked());\n\t\tchkRequired.setValue(questionDef.isRequired());\n\n\t\tsetDataType(questionDef.getDataType());\n\t\t\n\t\tString calculationExpression = null;\n\t\tCalculation calculation = Context.getFormDef().getCalculation(questionDef);\n\t\tif(calculation != null)\n\t\t\tcalculationExpression = calculation.getCalculateExpression();\n\t\ttxtCalculation.setText(calculationExpression);\n\n\t\t//Skip logic processing is a bit slow and hence we wanna update the \n\t\t//UI with the rest of simple quick properties as we process skip logic\n\t\tDeferredCommand.addCommand(new Command(){\n\t\t\tpublic void execute() {\n\t\t\t\tskipRulesView.setQuestionDef((QuestionDef)propertiesObj);\n\t\t\t\tvalidationRulesView.setQuestionDef((QuestionDef)propertiesObj);\n\t\t\t\tdynamicListsView.setQuestionDef((QuestionDef)propertiesObj);\n\t\t\t}\n\t\t});\n\t}", "public void setEnvProperties(Map<String, String> envProperties) {\n\t\tthis.envProperties = envProperties;\n\t}", "private void processProperties(Map<String, String> properties,\n Configuration auConfig, CIProperties headers) {\n log.debug2(\"properties = {}\", properties);\n log.debug2(\"auConfig = {}\", auConfig);\n log.debug2(\"headers = {}\", headers);\n\n if (properties != null && properties.size() > 0) {\n for (String key : properties.keySet()) {\n\tlog.trace(\"key = {}\", key);\n\n\tString value = properties.get(key);\n\tlog.trace(\"value = {}\", value);\n\n\tif (auConfig != null && auConfigKeys.contains(key)) {\n\t auConfig.put(key, value);\n\t log.trace(\"property '{}={}' stored in auConfig\", key, value);\n\t} else {\n\t headers.put(key, value);\n\t log.trace(\"property '{}={}' stored in headers\", key, value);\n\t}\n }\n }\n }", "void setCommandProperties(String commandID, AttributeList properties);", "private static void setProperty(String key, String value)\r\n/* 84: */ throws IOException\r\n/* 85: */ {\r\n/* 86: 83 */ log.finest(\"OSHandler.setProperty. Key=\" + key + \" Value=\" + value);\r\n/* 87: 84 */ File propsFile = getPropertiesFile();\r\n/* 88: 85 */ FileInputStream fis = new FileInputStream(propsFile);\r\n/* 89: 86 */ Properties props = new Properties();\r\n/* 90: 87 */ props.load(fis);\r\n/* 91: 88 */ props.setProperty(key, value);\r\n/* 92: 89 */ FileOutputStream fos = new FileOutputStream(propsFile);\r\n/* 93: 90 */ props.store(fos, \"\");\r\n/* 94: 91 */ fos.close();\r\n/* 95: */ }", "private static synchronized void setProperties(final String[] astrArgs) {\n try {\n final String strPropertiesFilename;\n\n if (Args.exists(astrArgs,\n AdaptiveReplicationTool.KEY_PROPERTIES_FILENAME)) {\n final Args args = AdaptiveReplicationTool.KEY_PROPERTIES_FILENAME\n .get(astrArgs);\n\n strPropertiesFilename = args.getArg(0);\n } else {\n strPropertiesFilename = DEFAULT_PROPERTIES_FILENAME;\n }\n setProperties(strPropertiesFilename);\n } catch (Exception excp) {\n throw new RuntimeException(excp);\n } // end try\n }", "@Override\n\tpublic void agentSetup() {\n\n\t\t// load the class names of each object\n\t\tString os = dagent.getOfferingStrategy().getClassname();\n\t\tString as = dagent.getAcceptanceStrategy().getClassname();\n\t\tString om = dagent.getOpponentModel().getClassname();\n\t\tString oms = dagent.getOMStrategy().getClassname();\n\n\t\t// createFrom the actual objects using reflexion\n\n\t\tofferingStrategy = BOAagentRepository.getInstance().getOfferingStrategy(os);\n\t\tacceptConditions = BOAagentRepository.getInstance().getAcceptanceStrategy(as);\n\t\topponentModel = BOAagentRepository.getInstance().getOpponentModel(om);\n\t\tomStrategy = BOAagentRepository.getInstance().getOMStrategy(oms);\n\n\t\t// init the components.\n\t\ttry {\n\t\t\topponentModel.init(negotiationSession, dagent.getOpponentModel().getParameters());\n\t\t\topponentModel.setOpponentUtilitySpace(fNegotiation);\n\t\t\tomStrategy.init(negotiationSession, opponentModel, dagent.getOMStrategy().getParameters());\n\t\t\tofferingStrategy.init(negotiationSession, opponentModel, omStrategy,\n\t\t\t\t\tdagent.getOfferingStrategy().getParameters());\n\t\t\tacceptConditions.init(negotiationSession, offeringStrategy, opponentModel,\n\t\t\t\t\tdagent.getAcceptanceStrategy().getParameters());\n\t\t\tacceptConditions.setOpponentUtilitySpace(fNegotiation);\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\t// remove the reference to the information object such that the garbage\n\t\t// collector can remove it.\n\t\tdagent = null;\n\t}", "protected void setPropertyTree(PropertyTree tree) {\n propertyTree = tree;\n }", "public void setProperties(String primitive, AnimationProperties properties){\r\n\t\tpropMap.put(primitive, properties);\r\n\t}", "public void setProperty(String name,Object value);", "private void parseProperties()\n {\n List children = rootElement.getChildren(\"property\");\n\n for (Object aChildren : children)\n {\n Element child = (Element) aChildren;\n Property property = new Property(child, properties, this);\n }\n }", "@Override\r\n public void afterPropertiesSet() throws Exception {\n }", "public\n void setPropertiesDefaults(YutilProperties argprops)\n {\n if (argprops == null)\n return;\n\n // Copy all key/val pairs\n for (Enumeration ep = argprops.propertyNames(); ep.hasMoreElements(); )\n {\n String key = (String)ep.nextElement();\n String val = key + \"=\" + argprops.getProperty(key);\n setPropertiesDefaults(val, false);\n }\n }", "@Override\n\tpublic void afterPropertiesSet() throws Exception {\n\t\tSystem.out.println(\"After Properties Set\");\n\t\t\n\t}", "public void genProperties(PropertiesModel propModel) {\n\t\tpropModel.addProp(\"X\", position.x());\n\t\tpropModel.addProp(\"Y\", position.y());\n\t\tpropModel.addProp(\"Collision Radius\", collisionRadius);\n\t}", "private void initializeTestProperties(InputStream is)\n throws IOException, MissingRequiredTestPropertyException\n {\n testProperties.load(is);\n \n // TODO This method should perform validation, i.e. make sure that properties\n // that are required for Java are set when they should be set, etc. We\n // should fail as soon as we have a test.properties file that doesn't make sense\n // (at load time) rather than waiting until we try to load a property that is broken\n setLanguage(getRequiredStringProperty(BUILD_LANGUAGE));\n setPerformCodeCoverage(getOptionalBooleanProperty(PERFORM_CODE_COVERAGE, false));\n setMaxDrainOutputInBytes(getOptionalIntegerProperty(MAX_DRAIN_OUTPUT_IN_BYTES, DEFAULT_MAX_DRAIN_OUTPUT_IN_BYTES));\n setJavaSourceVersion(getOptionalStringProperty(SOURCE_VERSION, DEFAULT_JAVA_SOURCE_VERSION));\n setTestRunnerInTestfileDir(getOptionalBooleanProperty(RUN_IN_TESTFILES_DIR, false));\n setLdLibraryPath(getOptionalStringProperty(LD_LIBRARY_PATH));\n setVmArgs(getOptionalStringProperty(VM_ARGS));\n \n setMakeCommand(getOptionalStringProperty(MAKE_COMMAND, DEFAULT_MAKE_COMMAND));\n setMakefileName(getOptionalStringProperty(MAKE_FILENAME));\n setStudentMakefileName(getOptionalStringProperty(STUDENT_MAKE_FILENAME));\n\n // XXX For legacy reasons, the test.properties file used to support:\n // test.timeout.testProcess\n // This was the timeout for the entire process from back when we tried to run\n // each test case in a separate thread.\n // Now instead we just use:\n // test.timeout.testCase\n // So we're going to ignore test.timeout.testProcess because it's almost certainly\n // going to be too long.\n\n // If no individual test timeout is specified, then use the default.\n // Note that we ignore test.timeout.testProcess since we're not timing out\n // the entire process anymore.\n setTestTimeoutInSeconds(getOptionalIntegerProperty(TEST_TIMEOUT, DEFAULT_PROCESS_TIMEOUT));\n }", "private void addProperties() {\n\t\tfor (PropertyGenerator pg : this.getPropertyGenerators()) {\n\t\t\tpg.generate();\n\t\t\tthis.enqueuePropertyTypeIfNeeded(pg);\n\t\t\tthis.addToSubBindingsIfNeeded(pg);\n\t\t}\n\t}", "public void setProperty(String name, Object value)\n {\n if (additionalProperties == null)\n {\n additionalProperties = new HashMap<String, Object>();\n }\n additionalProperties.put(name, value);\n }", "public void setProperties(HashMap<String, String> map)\n {\n this.properties = map;\n }", "@Test\n public void testCreateFromProperties_Properties() throws Exception {\n System.out.println(\"createFromProperties\");\n Properties props = new Properties();\n props.load(Thread.currentThread().getContextClassLoader().getResourceAsStream(propertiesName));\n EngineConfiguration result = EngineConfiguration.createFromProperties(props);\n assertProperties(result);\n }", "public void setRuntimeProperty(String name, String value) {\n if (_properties == null) {\n _properties = new HashMap<String, String>();\n }\n _properties.put(name, value);\n }", "void setParameters(Map<String, Object> propertyValues);", "protected void fromProperties(Properties properties) {\r\n value = reader.read(properties, key, value);\r\n }", "private void overrideProperties() throws BuildException {\n // remove duplicate properties - last property wins\n // Needed for backward compatibility\n Set set = new HashSet();\n for (int i = properties.size() - 1; i >= 0; --i) {\n Property p = (Property) properties.get(i);\n if (p.getName() != null && !p.getName().equals(\"\")) {\n if (set.contains(p.getName())) {\n properties.remove(i);\n } else {\n set.add(p.getName());\n }\n }\n }\n Enumeration e = properties.elements();\n while (e.hasMoreElements()) {\n Property p = (Property) e.nextElement();\n p.setProject(newProject);\n p.execute();\n }\n getProject().copyInheritedProperties(newProject);\n }" ]
[ "0.6482077", "0.6479002", "0.6447634", "0.63462436", "0.6341576", "0.62317175", "0.62083924", "0.61611027", "0.6108046", "0.6069529", "0.60320014", "0.6026275", "0.6009555", "0.59966034", "0.5990971", "0.5967282", "0.59120727", "0.59021133", "0.58558816", "0.5826785", "0.57444763", "0.5658938", "0.5648711", "0.56316465", "0.56266433", "0.5598258", "0.55695987", "0.55467135", "0.55386627", "0.5525384", "0.5512261", "0.55105567", "0.5510134", "0.54463625", "0.54373026", "0.5432258", "0.5427221", "0.54253525", "0.54222286", "0.5332023", "0.5329318", "0.53031707", "0.52988267", "0.52974176", "0.5295012", "0.5292737", "0.52913123", "0.528416", "0.52786535", "0.5268907", "0.52644044", "0.5261838", "0.525748", "0.5256218", "0.5251473", "0.5241408", "0.5241408", "0.5241408", "0.5237762", "0.52331597", "0.5232896", "0.52289164", "0.522495", "0.5222144", "0.5203951", "0.5196463", "0.51889217", "0.5177065", "0.51621616", "0.51612973", "0.5158035", "0.51526195", "0.5145911", "0.5145911", "0.5145195", "0.5141894", "0.51398945", "0.513444", "0.5134418", "0.51297444", "0.5129422", "0.51248443", "0.51247746", "0.5109188", "0.5105772", "0.509848", "0.509609", "0.5087034", "0.5083986", "0.5083931", "0.50829196", "0.50810707", "0.507741", "0.50676167", "0.5057736", "0.50574243", "0.5055329", "0.5046286", "0.5045898", "0.5043454" ]
0.7720098
0
Specify the listener for handling Agent lifecycle events.
public void setAgentEventListener(AgentEventListener ael) { agentEventListener = ael; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface AgentShutDownListener {\n\t\t/**\n\t\t * AgentShutdown listening method.\n\t\t */\n\t\tvoid shutdownAgent();\n\t}", "@Override\n\tpublic void addLifecycleListener(LifecycleListener listener) {\n\t\tlifecycle.addLifecycleListener(listener);\n\t}", "public interface AgentlessInstallerListener {\n\n\t/*****\n\t * Callback method invoked for each event fired by the installer.\n\t * IMPORTANT: Do not run long tasks on the thread that called this method,\n\t * as this will block the installation process.\n\t * \n\t * @param eventName\n\t * A string identifier for the event.\n\t * @param args\n\t * optional event arguments.\n\t */\n\tvoid onInstallerEvent(String eventName, Object... args);\n}", "public void addListener(IEpzillaEventListner listener)\n\t\t\tthrows RemoteException;", "public void initListener() {\n }", "private void setListener() {\n\t}", "@Override\r\n\tprotected void initListener() {\n\t\tsuper.initListener();\r\n\t}", "@Override\r\n\tpublic void setListener() {\n\r\n\t}", "@Override\r\n\tpublic void setListener() {\n\r\n\t}", "private void initListener() {\n }", "@Override\n\tpublic void setListener() {\n\n\t}", "protected void listener(Listener listener) {\n Bukkit.getServer().getPluginManager().registerEvents(listener, RedPractice.getInstance());\n }", "public interface LifecycleEventListener {\n\n /**\n * Called when host (activity/service) receives resume event (e.g. {@link Activity#onResume}\n */\n void onHostResume();\n\n /**\n * Called when host (activity/service) receives pause event (e.g. {@link Activity#onPause}\n */\n void onHostPause();\n\n /**\n * Called when host (activity/service) receives destroy event (e.g. {@link Activity#onDestroy}\n */\n void onHostDestroy();\n\n}", "@Override\n\tpublic void getListener(){\n\t}", "void setListener(Listener listener);", "@Override\r\n\tpublic void addJobEventListener(JobEventListener eventListener) {\n\r\n\t}", "@Override\r\n\tpublic void initListener() {\n\r\n\t}", "@Override\n\tpublic void addGameEventListener(GameEventListener listener) throws RemoteException {\n\t\t\n\t}", "@Override\n\tprotected void initListener() {\n\n\t}", "protected Listener(){super();}", "@Override\n public void addHandlerListener(IHandlerListener handlerListener) {\n\n }", "public void addListener(EventListener listener);", "@Override\n\tprotected void setListener() {\n\n\t}", "@Override\n\tprotected void setListener() {\n\n\t}", "public void agentDestroyed(ShellLaunchEvent ev);", "public interface ShellLaunchListener {\n /**\n * Called when the connection to the target machine is initiated, for example\n * when debugger reports machine attach.\n * @param ev \n */\n public void connectionInitiated(ShellLaunchEvent ev);\n \n /**\n * The handshake with the target VM has succeeded, or failed. The 'agent' field\n * is valid.\n * @param ev \n */\n public void handshakeCompleted(ShellLaunchEvent ev);\n \n /**\n * Called when the connection has been closed. The connection and\n * agent fields are valid. Agent may be still live, so a new Connection\n * can be opened.\n * @param ev \n */\n public void connectionClosed(ShellLaunchEvent ev);\n \n /**\n * The VM agent has been destroyed. Perhaps the entire VM went down or something.\n * @param ev \n */\n public void agentDestroyed(ShellLaunchEvent ev);\n}", "public void setOnLifeLostListener(OnLifeLostListener lifeLostListener)\n\t{\n\t\tthis.lifeLostListener = lifeLostListener;\n\t}", "public FluoriteListener() {\r\n\t\tidleTimer = new IdleTimer();\r\n\t\tEHEventRecorder eventRecorder = EHEventRecorder.getInstance();\r\n//\t\tEventRecorder eventRecorder = EventRecorder.getInstance();\r\n\r\n//\t\teventRecorder.addCommandExecutionListener(this);\r\n//\t\teventRecorder.addDocumentChangeListener(this);\r\n//\t\teventRecorder.addRecorderListener(this);\r\n\t\teventRecorder.addEclipseEventListener(this);\r\n\t}", "@Override\n\tpublic void addHandlerListener(IHandlerListener handlerListener) {\n\n\t}", "public interface OnEDHGameStartListener {\n // TODO: Update argument type and name\n void onEDHGameStart();\n }", "@Override\n public void addListener(Class<? extends EventListener> listenerClass) {\n\n }", "void addCompletedEventListener(IGameStateListener listener);", "public void addListener(MoocListener listener) {\n\n\t\ttry {\n\t\t\t logger.info(\"add listener in MoocChannel is called and its \"+handler);\n\t\t\thandler.addListener(listener);\n\t\t} catch (Exception e) {\n\t\t\tlogger.error(\"failed to add listener\", e);\n\t\t}\n\t}", "public void addDirectorToHmiEventListener( DirectorToHmiEventListener listener );", "@EventName(\"targetCreated\")\n EventListener onTargetCreated(EventHandler<TargetCreated> eventListener);", "void addDeviceAgentListener(DeviceId deviceId, ProviderId providerId,\n DeviceAgentListener listener);", "public ASListener(){\n \t\treload();\n \t}", "@Override\r\n public void addStreamEventListener(IStreamEventListener eventListener) {\r\n listener = eventListener;\r\n }", "public int addListener(Value listener) {\n\n IApplication adapter = new IApplication() {\n private boolean execute(Value jsObject, String memberName, Object... args) {\n if (jsObject == null)\n return true;\n Value member = jsObject.getMember(memberName);\n if (member == null) {\n return true;\n }\n Value result = plugin.executeInContext(member, app);\n return result != null && result.isBoolean() ? result.asBoolean() : true;\n }\n\n @Override\n public boolean appStart(IScope app) {\n return execute(listener, \"appStart\", app);\n }\n\n @Override\n public boolean appConnect(IConnection conn, Object[] params) {\n return execute(listener, \"appConnect\", conn, params);\n }\n\n @Override\n public boolean appJoin(IClient client, IScope app) {\n return execute(listener, \"appJoin\", client, app);\n }\n\n @Override\n public void appDisconnect(IConnection conn) {\n execute(listener, \"appDisconnect\", conn);\n }\n\n @Override\n public void appLeave(IClient client, IScope app) {\n execute(listener, \"appLeave\", client, app);\n }\n\n @Override\n public void appStop(IScope app) {\n execute(listener, \"appStop\", app);\n }\n\n @Override\n public boolean roomStart(IScope room) {\n return execute(listener, \"roomStart\", room);\n }\n\n @Override\n public boolean roomConnect(IConnection conn, Object[] params) {\n return execute(listener, \"roomConnect\", conn, params);\n }\n\n @Override\n public boolean roomJoin(IClient client, IScope room) {\n return execute(listener, \"roomJoin\", client, room);\n }\n\n @Override\n public void roomDisconnect(IConnection conn) {\n execute(listener, \"roomDisconnect\", conn);\n }\n\n @Override\n public void roomLeave(IClient client, IScope room) {\n execute(listener, \"roomLeave\", client, room);\n }\n\n @Override\n public void roomStop(IScope room) {\n execute(listener, \"roomStop\", room);\n }\n };\n this.app.addListener(adapter);\n this.listeners.add(adapter);\n return this.listeners.indexOf(adapter);\n }", "void addListener(GameEventListener listener);", "void addListener( AvailabilityListener listener );", "void onEvent(GuiceyLifecycleEvent event);", "public void setExamEventListener(ExamEventListener listener) {\n mExamEventListener = listener;\n }", "public abstract void addListener(EventListener eventListener, String componentName);", "@Override\r\n\tnative long createListenerProxy(EventSink eventSink);", "protected void installListeners() {\n }", "protected void installListeners() {\n }", "protected void registerListener() {\r\n\t\t// do nothing\r\n\t}", "@Override\n\tpublic void listenerStarted(ConnectionListenerEvent evt) {\n\t\t\n\t}", "private void initListener()\n {\n listenerTimer = new Timer();\n listenerTimer.schedule(new RemoteListner(this), 1000, 2000);\n }", "@EventName(\"receivedMessageFromTarget\")\n EventListener onReceivedMessageFromTarget(EventHandler<ReceivedMessageFromTarget> eventListener);", "@Listener\n public void onServerStart(GameStartedServerEvent event) {\n logger.debug(\"*************************\");\n logger.debug(\"HI! MY PLUGIN IS WORKING!\");\n logger.debug(\"*************************\");\n }", "public MyEventListenerProxy(MyEventListener listener) {\n super(listener);\n }", "public void setGameEventListener(GameEventListener eventListener) {\n\t\tthis.eventListener = eventListener;\n\t}", "public void addEventListener(EventListener listener){\n listenerList.add(EventListener.class, listener);\n }", "public void addReadyListener(ComponentSystemEventListener listener) {\n listeners.add(listener);\n }", "public void addEventListener(Object listener) {\n API.addEventListener(listener);\n }", "public void handshakeCompleted(ShellLaunchEvent ev);", "protected void installListeners() {\n\n\t}", "Future<CreateListenerResponse> createListener(\n CreateListenerRequest request,\n AsyncHandler<CreateListenerRequest, CreateListenerResponse> handler);", "void registerGameStateListener(EngineListener listener);", "public ReplicationEventListener() {\n // connect to both the process and storage cluster\n this.hzClient = HazelcastClientFactory.getStorageClient();\n // get references to the system metadata map and events queue\n this.systemMetadata = this.hzClient.getMap(systemMetadataMap);\n // listen for changes on system metadata\n this.systemMetadata.addEntryListener(this, true);\n log.info(\"Added a listener to the \" + this.systemMetadata.getName() + \" map.\");\n this.replicationTaskRepository = ReplicationFactory.getReplicationTaskRepository();\n // start replication manager\n ReplicationFactory.getReplicationManager();\n }", "public interface ApplicationListener extends EventListener {\n\n /**\n * Handle an application event\n *\n * @param e event to respond to\n */\n void onApplicationEvent(ApplicationEvent e);\n\n}", "public void setServiceListener(Listener listener) {\n \t\tlocalListener = listener;\n \t}", "@Override\n\tpublic void registListener(IListener listener) throws RemoteException {\n\t\tremoteCallbackList.register(listener);\n\t}", "LavoisierListener(JDA jda) {\n instance = jda;\n }", "void onServerStarted();", "protected abstract void startListener();", "@Override\r\n\tpublic void initListeners() {\n\t\t\r\n\t}", "@Override\n\tpublic void addListener() {\n\t\t\n\t}", "@Override\n\tpublic void contextInitialized(ServletContextEvent sce) {\n\t\tSystem.out.println(\"MyListener.contextInitialized() 初始化\");\n//\t\t当server启动时 就初始化applic\n\t\t\n\t}", "@FunctionalInterface\npublic interface ServerBecomesAvailableListener extends GloballyAttachableListener {\n\n /**\n * This method is called every time a server became unavailable.\n *\n * @param event The event.\n */\n void onServerBecomesAvailable(ServerBecomesAvailableEvent event);\n}", "protected void installListeners() {\n\t}", "@Override\n\tprotected void initListeners() {\n\t\t\n\t}", "public void addAnalysisServerListener(AnalysisServerListener listener);", "public AccessibilityEventListener() {\n EventQueueMonitor.addTopLevelWindowListener(this);\n }", "void addListener(BotListener l);", "void subscribeToEvents(Listener listener);", "public interface EventActorListener {\n\n public void onFinished(ActorDet actor);\n}", "public void setInitializationListener(SdkInitializationListener sdkInitializationListener) {\n this.mInitializationListener = sdkInitializationListener;\n if (this.initialized) {\n reportInitializationComplete();\n }\n }", "public void addListener(AwaleListener awaleListener) {\r\n\tthis.listeners.add(awaleListener);\r\n }", "@Override\n\tpublic void addMessageReceivedListener(MessageReceivedListener messageReceivedListener) {\n\n\t}", "LateListenerNotifier()\r\n/* :17: */ {\r\n/* :18:858 */ this.l = l;\r\n/* :19: */ }", "@Override\r\n\t\tpublic ApplicationListener createApplicationListener() {\n\t\t\treturn new FishchickenGame();\r\n\t\t}", "public void setListener(EndlessListener listener) {\n this.listener = listener;\n }", "@OnLifecycleEvent(Lifecycle.Event.ON_START)\n public void onMoveToForeground() {\n Log.i(\"AppLifecycleListener\", \"Foreground\");\n\n }", "public ACListener(AccessControl plugin) {\n // Register the listener\n plugin.getServer().getPluginManager().registerEvents(this, plugin);\n \n this.plugin = plugin;\n }", "public static void setListener(QuadConsumer listener) {\n\t\t\n\t\tnotificationListener = listener;\n\t\t\n\t}", "public MyListener() {\r\n }", "public interface EventListener {\n\t/**\n\t * Add an EventHandler to handle events for processing.\n\t * @param handler the EventHandler to add\n\t */\n\tpublic void addHandler(EventHandler handler);\n}", "@Override\r\n\tprotected void listeners() {\n\t\t\r\n\t}", "public synchronized void addListener(IIpcEventListener listener) {\n\t\tlisteners.add(listener);\n\t}", "public void contextInitialized(ServletContextEvent event) { \n super.contextInitialized(event); \n ApplicationContext applicationContext = WebApplicationContextUtils.getWebApplicationContext(event.getServletContext()); \n //获取bean \n // emailListener = (EmailListener) applicationContext.getBean(\"emailListener\"); \n // birthdayListener = (BirthdayListener) applicationContext.getBean(\"birthdayListener\"); \n /* \n 具体地业务代码 \n */ \n // emailListener.contextInitialized(event);\n // birthdayListener.contextInitialized(event);\n }", "abstract public void addListener(Listener listener);", "public void addMenuCreationListener(MenuCreationListener listener) {\n menuCreationListeners.add(listener);\n }", "public void setListener(Listener listener) {\n this.mListener = listener;\n }", "public void setListener(Listener listener) {\n this.mListener = listener;\n }", "public static void addGenomeChangedListener(Listener<GenomeChangedEvent> l) {\n genomeController.addListener(l);\n }", "void addOnRuntimePermissionStateChangedListener(\n @NonNull OnRuntimePermissionStateChangedListener listener);", "public abstract void addServiceListener(PhiDiscoverListener listener);" ]
[ "0.6427109", "0.63068986", "0.61987644", "0.61219335", "0.6084458", "0.6047959", "0.6030819", "0.6025448", "0.6025448", "0.6012958", "0.60021746", "0.59761727", "0.59672713", "0.59207547", "0.58847237", "0.587644", "0.5870445", "0.58697474", "0.5861156", "0.58531", "0.5839292", "0.5833869", "0.5830644", "0.5830644", "0.58022326", "0.5763701", "0.574083", "0.5739562", "0.57020277", "0.5666124", "0.56633884", "0.5662663", "0.565596", "0.5641598", "0.5634674", "0.5631479", "0.56165224", "0.5582483", "0.55592275", "0.55397433", "0.5536765", "0.55308366", "0.5522825", "0.55155826", "0.5506439", "0.55049634", "0.55049634", "0.54850245", "0.5477117", "0.5472492", "0.5465535", "0.5451848", "0.54494387", "0.54467267", "0.5446304", "0.5420752", "0.5420081", "0.5415646", "0.5413179", "0.54049826", "0.5403816", "0.5402839", "0.5397476", "0.53963184", "0.5387689", "0.53845555", "0.5382393", "0.5376743", "0.5376637", "0.5375338", "0.5371314", "0.53660583", "0.53609985", "0.53409445", "0.5337065", "0.53331184", "0.53270686", "0.531613", "0.5315785", "0.5311284", "0.53022057", "0.5299931", "0.5291563", "0.5291229", "0.52809495", "0.5280862", "0.5274134", "0.52706397", "0.52604234", "0.5259549", "0.5258048", "0.5257711", "0.5252859", "0.52511936", "0.52495456", "0.5248287", "0.5248287", "0.5233568", "0.522924", "0.52277726" ]
0.6501716
0
MST will not create loops, this will
private void supplementMST(){ List<Village> noOutRoads = getNoOutRoadVillages(); List<Village> noInRoads = getNoInRoadVillages(); for(Village v: noOutRoads){ Village closestVillage = findClosestVillageTo(v,noInRoads); noInRoads.remove(closestVillage); new Road(v,closestVillage); } for(Village v: noInRoads){ new Road(findClosestVillageTo(v,villages),v); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Loop createLoop();", "private static void task1111(int nUMS, SplayTree<Integer> j, GenerateInt generateInt) {\n\t\tlong start = System.nanoTime();\n\t System.out.println( \"Fill in the table...SPLAY TREE\" );\n\t int count=0;\n\t\tfor( int z = 1; z <= nUMS; z++)\n\t\t{\n\t\t\t \t\t \n\t\t\tj.insert(z);\n\t\t\tcount = z;\n//\t\t\tSystem.out.println(GenerateInt.generateNumber());\n\n\t\t}\n\t\tSystem.out.println(\"Total Size \" + count);\n\t\tlong end = System.nanoTime();;\n\t\tlong elapsedTime = end - start;\n\t\tSystem.out.println(elapsedTime + \" NanoSeconds\");\n\t\tSystem.out.println(\"Average Time \" + elapsedTime/nUMS);\n\n\t}", "public void loop(){\n\t\t\n\t}", "public static void main(String[] args) throws FileNotFoundException, IOException {\nfor (double b = 0.5; b < 0.51; b+=0.1) {\n for (double k = 4.40; k < 4.5; k+=0.5) {\n Machine.b = 0.5; //0.2 - ATCnon-delay\n Machine.k = 1.5; //1.4 - ATCnon delay\n int hits = 0;\n engineJob = new cern.jet.random.engine.MersenneTwister(99999);\n noise = new cern.jet.random.Normal(0, 1, engineJob);\n SmallStatistics[] result = new SmallStatistics[5];\n result[0] = new SmallStatistics();\n result[1] = new SmallStatistics();\n for (int ds = 0; ds < 2; ds++) {\n JSPFramework[] jspTesting = new JSPFramework[105];\n for (int i = 0; i < jspTesting.length; i++) {\n jspTesting[i] = new JSPFramework();\n jspTesting[i].getJSPdata(i*2 + 1);\n }\n //DMU - instances (1-80)//la - instances (81-120)\n //mt - instances (121/-123)//orb - instances (124-133)//ta -instances (134-173)\n //////////////////////////////////////////////\n for (int i = 0; i < jspTesting.length; i++) {\n double countEval = 0;\n double tempObj = Double.POSITIVE_INFINITY;\n double globalBest = Double.POSITIVE_INFINITY;\n boolean[] isApplied_Nk = new boolean[2]; //Arrays.fill(isApplied_Nk, Boolean.TRUE);\n int Nk = 0; // index of the Iterative dispatching rule to be used\n jspTesting[i].resetALL();\n boolean firstIteration = true;\n double countLargeStep = 0;\n do{\n countEval++;\n //start evaluate schedule\n jspTesting[i].reset();\n int N = jspTesting[i].getNumberofOperations();\n jspTesting[i].initilizeSchedule();\n int nScheduledOp = 0;\n\n //choose the next machine to be schedule\n while (nScheduledOp<N){\n\n Machine M = jspTesting[i].Machines[jspTesting[i].nextMachine()];\n\n jspTesting[i].setScheduleStrategy(Machine.scheduleStrategy.HYBRID );\n jspTesting[i].setPriorityType(Machine.priorityType.ATC);\n jspTesting[i].setNonDelayFactor(0.3);\n //*\n jspTesting[i].setInitalPriority(M);\n for (Job J:M.getQueue()) {\n double RJ = J.getReadyTime();\n double RO = J.getNumberRemainingOperations();\n double RT = J.getRemainingProcessingTime();\n double PR = J.getCurrentOperationProcessingTime();\n double W = J.getWeight();\n double DD = J.getDuedate();\n double RM = M.getReadyTime();\n double RWT = J.getCurrentOperationWaitingTime();\n double RFT = J.getFinishTime();\n double RNWT = J.getNextOperationWaitingTime();\n int nextMachine = J.getNextMachine();\n\n if (nextMachine==-1){\n RNWT=0;\n } else {\n RNWT = J.getNextOperationWaitingTime();\n if (RNWT == -1){\n RNWT = jspTesting[i].getMachines()[nextMachine].getQueueWorkload()/2.0;\n }\n }\n if (RWT == -1){\n RWT = M.getQueueWorkload()/2.0;\n }\n //J.addPriority((W/PR)*Math.exp(-maxPlus((DD-RM-PR-(RT-PR+J.getRemainingWaitingTime(M)))/(3*M.getQueueWorkload()/M.getNumberofJobInQueue())))); //iATC\n //J.addPriority((PR*PR*0.614577*(-RM-RM/W)-RT*PR*RT/W)\n // -(RT*PR/(W-0.5214191)-RM/W*PR*0.614577+RT*PR/(W-0.5214191)*2*RM/W));\n //J.addPriority(((W/PR)*((W/PR)/(RFT*RFT)))/(max(div((RFT-RT),(RWT/W)),IF(RFT/W-max(RFT-RT,DD),DD,RFT))+DD/RFT+RFT/W-max(RFT-RFT/W,DD))); //best TWT priorityIterative\n if (Nk==0)\n //J.addPriority(min(W/PR-RFT+min(RT,W/RFT),((min(RT,RNWT-RFT)/(RJ-min(RWT,RFT*0.067633785)))/(RJ-min(RWT,RFT*0.067633785))))/RFT);\n J.addPriority(min(W/PR-RFT+min(RT,W/RFT),((div(min(RT,RNWT-RFT),(RJ-min(RWT,RFT*0.067633785))))/(RJ-min(RWT,RFT*0.067633785))))/RFT);\n else\n J.addPriority(min((((W/PR)/RFT)/(2*RNWT+max(RO,RFT)))/(PR+RNWT+max(RO,RFT)),((W/PR)/RFT)/PR)/RFT);\n }\n //jspTesting[i].calculatePriority(M);\n jspTesting[i].sortJobInQueue(M);\n Job J = M.completeJob();\n if (!J.isCompleted()) jspTesting[i].Machines[J.getCurrentMachine()].joinQueue(J);\n nScheduledOp++;\n }\n double currentObj = -100;\n currentObj = jspTesting[i].getTotalWeightedTardiness();\n if (tempObj > currentObj){\n tempObj = currentObj;\n jspTesting[i].recordSchedule();\n Arrays.fill(isApplied_Nk, Boolean.FALSE);\n //System.out.println(\"Improved!!!\");\n }\n else {\n isApplied_Nk[Nk] = true;\n if (!isNextApplied(Nk, isApplied_Nk)) Nk = circleShift(Nk, isApplied_Nk.length);\n else {\n if (globalBest>tempObj) {\n globalBest = tempObj;\n jspTesting[i].storeBestRecordSchedule();\n } jspTesting[i].restoreBestRecordSchedule();\n if (countLargeStep<1) {\n tempObj = Double.POSITIVE_INFINITY;\n Arrays.fill(isApplied_Nk, Boolean.FALSE);\n jspTesting[i].shakeRecordSchedule(noise, engineJob, globalBest);\n countLargeStep++;\n }\n else break;\n }\n }\n firstIteration = false;\n \n } while(true);\n result[ds].add(jspTesting[i].getDevREFTotalWeightedTardiness(globalBest));\n if (jspTesting[i].getDevLBCmax()==0) hits++;\n System.out.println(jspTesting[i].instanceName + \" & \"+ globalBest + \" & \" + countEval);\n }\n }\n //jsp.schedule();\n //*\n System.out.println(\"*************************************************************************\");\n System.out.println(\"[ & \" + formatter.format(result[0].getMin()) + \" & \"\n + formatter.format(result[0].getAverage()) + \" & \" + formatter.format(result[0].getMax()) +\n \" & \" + formatter.format(result[1].getMin()) + \" & \"\n + formatter.format(result[1].getAverage()) + \" & \" + formatter.format(result[1].getMax()) + \"]\");\n //*/\n System.out.print(\"\"+formatter.format(result[0].getAverage()) + \" \");\n }\n System.out.println(\"\");\n}\n }", "@Test\n public void testLoop() {\n // initialize template neuron\n NetworkGlobalState.templateNeuronDescriptor = new NeuronDescriptor();\n NetworkGlobalState.templateNeuronDescriptor.firingLatency = 0;\n NetworkGlobalState.templateNeuronDescriptor.firingThreshold = 0.4f;\n\n // initialize template neuroid network\n NeuroidNetworkDescriptor templateNeuroidNetwork = new NeuroidNetworkDescriptor();\n templateNeuroidNetwork.numberOfInputNeurons = 1; // we exite the hidden neurons directly\n templateNeuroidNetwork.numberOfOutputNeurons = 1; // we read out the impulse directly\n\n templateNeuroidNetwork.neuronLatencyMin = 0;\n templateNeuroidNetwork.neuronLatencyMax = 0;\n\n templateNeuroidNetwork.neuronThresholdMin = 0.4f;\n templateNeuroidNetwork.neuronThresholdMax = 0.4f;\n\n templateNeuroidNetwork.connectionDefaultWeight = 0.5f;\n\n\n\n List<Integer> neuronFamily = new ArrayList<>();\n neuronFamily.add(5);\n GenerativeNeuroidNetworkDescriptor generativeNeuroidNetworkDescriptor = GenerativeNeuroidNetworkDescriptor.createAfterFamily(neuronFamily, NetworkGlobalState.templateNeuronDescriptor);\n\n generativeNeuroidNetworkDescriptor.neuronClusters.get(0).addLoop(GenerativeNeuroidNetworkDescriptor.NeuronCluster.EnumDirection.ANTICLOCKWISE);\n\n generativeNeuroidNetworkDescriptor.inputConnections = new GenerativeNeuroidNetworkDescriptor.OutsideConnection[1];\n generativeNeuroidNetworkDescriptor.inputConnections[0] = new GenerativeNeuroidNetworkDescriptor.OutsideConnection(0, 0);\n\n generativeNeuroidNetworkDescriptor.outputConnections = new GenerativeNeuroidNetworkDescriptor.OutsideConnection[0];\n\n // generate network\n NeuroidNetworkDescriptor neuroidNetworkDescriptor = GenerativeNeuroidNetworkTransformator.generateNetwork(templateNeuroidNetwork, generativeNeuroidNetworkDescriptor);\n\n Neuroid<Float, Integer> neuroidNetwork = NeuroidCommon.createNeuroidNetworkFromDescriptor(neuroidNetworkDescriptor);\n\n // simulate and test\n\n // we stimulate the first neuron and wait till it looped around to the last neuron, then the first neuron again\n neuroidNetwork.input[0] = true;\n\n // propagate the input to the first neuron\n neuroidNetwork.timestep();\n\n neuroidNetwork.input[0] = false;\n\n neuroidNetwork.timestep();\n neuroidNetwork.timestep();\n neuroidNetwork.timestep();\n neuroidNetwork.timestep();\n neuroidNetwork.timestep();\n\n // index 1 because its anticlockwise\n Assert.assertTrue(neuroidNetwork.getActiviationOfNeurons()[1]);\n\n neuroidNetwork.timestep();\n\n Assert.assertTrue(neuroidNetwork.getActiviationOfNeurons()[0]);\n Assert.assertFalse(neuroidNetwork.getActiviationOfNeurons()[1]);\n }", "public boolean eliminateLoop(){ return false; }", "private static void task01111(int nUMS, SplayTree<Integer> j, GenerateInt generateInt) {\n\t\t\n\t\t long start = System.nanoTime();\n\t\t System.out.println( \"Fill in the table...Splay Tree\" );\n\t\t int count=1;\n\t\t\tfor( int i = 1; i <= nUMS; i++)\n\t\t\t{\n\t\t\t\t \t\t \n\t\t\t\tj.insert(GenerateInt.generateNumber());\n//\t\t\t\tSystem.out.println(GenerateInt.generateNumber());\n\t\t\t\tcount = i;\n\n\t\t\t}\n\t\t\tSystem.out.println(\"Total Size \" + count);\n\t\t\tlong end = System.nanoTime();;\n\t\t\tlong elapsedTime = end - start;\n\t\t\tSystem.out.println(elapsedTime + \" NanoSeconds\");\n\t\t\tSystem.out.println(\"Average Time \" + elapsedTime/nUMS);\n\n\n\t\t\n\t}", "@Test(timeout = 5000)\n public void graphTest_runtime() {\n int v=1000*50, e=v*6;\n graph g = graph_creator(v,e,1);\n // while(true) {;}\n }", "int calculateMST();", "public void kruskalMST()\n\t\t{\n\t\t\tPriorityQueue<Edge> pq = new PriorityQueue<>(allEdges.size(), Comparator.comparingInt(o -> o.roadCost));\n\n\t\t\tfor(int i = 0; i < allEdges.size(); i++)\n\t\t\t{\t\n\t\t\t\tpq.add(allEdges.get(i));\n\t\t\t}\t\t\t\n\n\t\t\tint [] parent = new int[edges];\n\t\t\tmakeSet(parent);\n\t\t\tArrayList<Edge> mst = new ArrayList<>();\n\t\t\tint index = 0, tempCost = 0;\n\n\t\t\t// Step 2: Pick the lowest cost edges to add to our result\n\t\t\twhile(index < edges - 1)\n\t\t\t{\n\t\t\t\tEdge edge = pq.remove();\n\t\t\t\tint x_set = find(parent, edge.source);\n\t\t\t\tint y_set = find(parent, edge.destination);\n\n\t\t\t\t// If creates a cycle, or a road with n wagons can't support the total weight ignore it\n\t\t\t\tif(x_set == y_set /* ||edge.weightCap * wagons < shipWeight */ ){\n\t\t\n\t\t\t\t}else{\n\t\t\t\t\t// These are valid edges for our MST\n\t\t\t\t\tmst.add(edge);\n\t\t\t\t\ttempCost += edge.roadCost;\n\t\t\t\t\tindex++;\n\t\t\t\t\tunion(parent, x_set, y_set);\n\t\t\t\t}\n\t\t\t\t// If there are no edges left, break out of the while loop\n\t\t\t\tif(pq.size() < 1)\n\t\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\t// ----------- Output working MSTs ----------- \n\t\t\t// printGraph(allEdges);\n\t\t\t// printCities(allCities);\n\n\t\t}", "public void loop(){\n\t}", "public static void main(String[] args){\n\n Mystack ms = new Mystack();\n for ( int i = 0; i <= 11; i++){\n ms.push(i+1);\n }\n\n for( int j = 0 ; j < 1 ; j++){\n ms.pop();\n }\n \n ms.print(); \n\n for( int j = 0 ; j <= 1; j++){\n ms.push(j);\n }\n \n ms.print(); \n\n }", "@Override\n protected void generateMonsters()\n {\n generateWeakEnemies(2);\n generateStrongEnemies(12);\n generateElites(10);\n }", "void primMST(int graph[][]){\r\n List<Ride> sTRides = new ArrayList<>();\r\n List<Integer> visitedRides = new ArrayList<>();\r\n int weights[] = new int[rideCount];\r\n int previousNodes[] = new int[rideCount];\r\n Boolean mstSet[] = new Boolean[rideCount];\r\n\r\n for(int i =0; i<rideCount;i++){\r\n weights[i] = Integer.MAX_VALUE;\r\n mstSet[i] = false;\r\n }\r\n\r\n //weights - indexed by row in the graph\r\n weights[0] = 0;\r\n //previously visited nodes\r\n previousNodes[0] = -1;\r\n\r\n for(int count=0; count<rideCount; count++){\r\n int u = minWeightST(weights, mstSet);\r\n mstSet[u] = true;\r\n visitedRides.add(u);\r\n sTRides.add(rides.get(u));\r\n\r\n for(int v = 0; v<rideCount;v++){\r\n if(graph[u][v] != 0 && !mstSet[v] && calculateWeight(graph[u][v], rides.get(v).getWaitingTime()) < weights[v]){\r\n previousNodes[v] = u;\r\n weights[v] = calculateWeight(graph[u][v], rides.get(v).getWaitingTime());\r\n }\r\n }\r\n }\r\n printMST(sTRides, visitedRides, graph, previousNodes);\r\n }", "public void loop(){\n \n \n }", "public boolean hasSelfLoops();", "private void closedLoopAlgo() {\n\t\tsimonsSimpleAlgo();\n\t}", "public static void main(String[] args) {\n /* *************** */\n /* * QUESTION 7 * */\n /* *************** */\n /* *************** */\n\n for(double p=0; p<1; p+=0.1){\n for(double q=0; q<1; q+=0.1){\n int res_1 = 0;\n int res_2 = 0;\n for(int i=0; i<100; i++){\n Graph graph_1 = new Graph();\n graph_1.generate_full_symmetric(p, q, 100);\n //graph_2.setVertices(new ArrayList<>(graph_1.getVertices()));\n Graph graph_2 = (Graph) deepCopy(graph_1);\n res_1+=graph_1.resolve_heuristic_v1().size();\n res_2+=graph_2.resolve_heuristic_v2();\n }\n res_1/=100;\n System.out.format(\"V1 - f( %.1f ; %.1f) = %s \\n\", p, q, res_1);\n res_2/=100;\n System.out.format(\"V2 - f( %.1f ; %.1f) = %s \\n\", p, q, res_2);\n }\n }\n\n }", "public static void modifiedNussinov() {\r\n // Declare j\r\n int j;\r\n\r\n // Fill in DPMatrix\r\n for (int k = 0; k < sequence.length(); k++) {\r\n for (int i = 0; i < sequence.length()-1; i++) {\r\n // If bigger than allowed loop size\r\n if (k > minimumLoop - 1) {\r\n // Index is in bounds\r\n if ((i + k + 1) <= sequence.length()-1) {\r\n // Set j to i + k + 1\r\n j = i + k + 1;\r\n\r\n // Set min to max value\r\n double minimum = Double.MAX_VALUE;\r\n\r\n // Check for minimum\r\n minimum = Math.min(minimum, Math.min((DPMatrix[i + 1][j] ), (DPMatrix[i][j - 1] )) );\r\n\r\n // Adjust for pair scores\r\n if (checkPair(sequence.charAt(i), sequence.charAt(j)) == 1) {\r\n // Check for minimum\r\n minimum = Math.min(minimum, DPMatrix[i + 1][j - 1] - 2);\r\n } else if (checkPair(sequence.charAt(i), sequence.charAt(j)) == 2) {\r\n // Check for minimum\r\n minimum = Math.min(minimum, DPMatrix[i + 1][j - 1] - 3);\r\n }\r\n for (int l = i + 1; l < j; l++) {\r\n // Check for minimum\r\n minimum = Math.min(minimum, (DPMatrix[i][l]) + (DPMatrix[l + 1][j]));\r\n }\r\n\r\n // Set the matrix value\r\n DPMatrix[i][j] = minimum;\r\n }\r\n }\r\n }\r\n }\r\n\r\n // Run the traceback\r\n String structure = structureTraceback();\r\n\r\n // Create file for writer\r\n File file = new File(\"5.o1\");\r\n\r\n // Create writer\r\n try {\r\n // Writer\r\n BufferedWriter writer = new BufferedWriter(new FileWriter(file));\r\n\r\n // Write sequence\r\n writer.write(sequence);\r\n writer.write('\\n');\r\n\r\n // Write MFE\r\n writer.write(Double.toString(DPMatrix[0][sequenceLength - 1]));\r\n writer.write('\\n');\r\n\r\n // Write structure\r\n writer.write(structure);\r\n\r\n // Close writer\r\n writer.close();\r\n\r\n } catch (IOException e) {\r\n // Print error\r\n System.out.println(\"Error opening file 5.o1\");\r\n }\r\n\r\n }", "public void multiSolver() {\n\t\tmsSize = 0;\n\t\tmsMin = Integer.MAX_VALUE;\n\t\tmsMax = Integer.MIN_VALUE;\n\t\tmsHeight = 0;\n\t\tmultiSolver(root, 0);\n\t\tSystem.out.println(\"Size = \" + msSize);\n\t\tSystem.out.println(\"Min = \" + msMin);\n\t\tSystem.out.println(\"Max = \" + msMax);\n\t\tSystem.out.println(\"Height = \" + msHeight);\n\t}", "@Test\n public void testLoop2() throws IOException {\n MapMatching mapMatching = new MapMatching(hopper, algoOptions);\n // TODO smaller sigma like 40m leads to U-turn at Tschaikowskistraße\n mapMatching.setMeasurementErrorSigma(50);\n Gpx gpx = xmlMapper.readValue(getClass().getResourceAsStream(\"/tour-with-loop.gpx\"), Gpx.class);\n MatchResult mr = mapMatching.doWork(gpx.trk.get(0).getEntries());\n assertEquals(Arrays.asList(\"Jahnallee, B 87, B 181\", \"Jahnallee, B 87, B 181\",\n \"Jahnallee, B 87, B 181\", \"Jahnallee, B 87, B 181\", \"Funkenburgstraße\",\n \"Gustav-Adolf-Straße\", \"Tschaikowskistraße\", \"Jahnallee, B 87, B 181\",\n \"Lessingstraße\", \"Lessingstraße\"), fetchStreets(mr.getEdgeMatches()));\n }", "@Test\r\n public void Test028generateNextPatternBlock()\r\n {\r\n\r\n gol.makeLiveCell(4, 4);\r\n gol.makeLiveCell(4, 5);\r\n gol.makeLiveCell(5, 4);\r\n gol.makeLiveCell(5, 5);\r\n gol.generateNextPattern();\r\n\r\n assertEquals(4, gol.getTotalAliveCells());\r\n }", "public void start()\n\t{\n\t\tfor(int i=0;i<n;i++)\n\t\t{\n\t\t\tfor(int j=0;j<n;j++)\n\t\t\t{\n\t\t\t\tcost[i][j] = temp[i][j];\n\t\t\t\tmatrix[i][j]=0;\n\t\t\t}\n\t\t}\n\t\n\t\tfor(int k=0;k<n;k++)\n\t\t{\n\t\t\trowLabelMultiple[k]=0;\n\t\t\tcolumnLabelMultiple[k]=0;\n\t\t}\t\t\t\n\t}", "@Test\n\tpublic void testRun1() {\n\t\n\t\tRingSum s = new RingSum(3);\n\t\tfor( int i = 0; i < 120; ++i )\n\t\t{\n\t\t\ts.push(0);\n\t\t\ts.push(1);\n\t\t\ts.push(0);\n\t\t\tassertTrue(s.get() == 1);\n\t\t}\n\t\t\n\t}", "public static void runTest() {\n Graph mnfld = new Graph();\n float destTank = 7f;\n\n // Adding Tanks\n mnfld.addPipe( new Node( 0f, 5.0f ) );\n mnfld.addPipe( new Node( 1f, 5.0f ) );\n mnfld.addPipe( new Node( 7f, 5.0f ) );\n\n // Adding Pipes\n mnfld.addPipe( new Node( 2f, 22f, 100f ) );\n mnfld.addPipe( new Node( 3f, 33f, 150f ) );\n mnfld.addPipe( new Node( 4f, 44f, 200f ) );\n mnfld.addPipe( new Node( 5f, 55f, 250f ) );\n mnfld.addPipe( new Node( 6f, 66f, 300f ) );\n mnfld.addPipe( new Node( 8f, 88f, 200f ) );\n mnfld.addPipe( new Node( 9f, 99f, 150f ) );\n mnfld.addPipe( new Node( 10f, 1010f, 150f ) );\n mnfld.addPipe( new Node( 20f, 2020f, 150f ) );\n\n // Inserting Edges to the graph\n mnfld.insertConnection( new Edge( mnfld.getPipe( 0f ), mnfld.getPipe( 2f ), 1f ) );\n mnfld.insertConnection( new Edge( mnfld.getPipe( 0f ), mnfld.getPipe( 3f ), 1f ) );\n mnfld.insertConnection( new Edge( mnfld.getPipe( 1f ), mnfld.getPipe( 2f ), 1f ) );\n mnfld.insertConnection( new Edge( mnfld.getPipe( 22f ), mnfld.getPipe( 4f ), 1f ) );\n mnfld.insertConnection( new Edge( mnfld.getPipe( 33f ), mnfld.getPipe( 5f ), 1f ) );\n mnfld.insertConnection( new Edge( mnfld.getPipe( 44f ), mnfld.getPipe( 5f ), 1f ) );\n mnfld.insertConnection( new Edge( mnfld.getPipe( 44f ), mnfld.getPipe( 7f ), 500f ) );\n mnfld.insertConnection( new Edge( mnfld.getPipe( 55f ), mnfld.getPipe( 6f ), 1f ) );\n mnfld.insertConnection( new Edge( mnfld.getPipe( 66f ), mnfld.getPipe( 7f ), 100f ) );\n mnfld.insertConnection( new Edge( mnfld.getPipe( 66f ), mnfld.getPipe( 8f ), 1f ) );\n mnfld.insertConnection( new Edge( mnfld.getPipe( 88f ), mnfld.getPipe( 7f ), 1f ) );\n mnfld.insertConnection( new Edge( mnfld.getPipe( 33f ), mnfld.getPipe( 9f ), 1f ) );\n mnfld.insertConnection( new Edge( mnfld.getPipe( 99f ), mnfld.getPipe( 5f ), 1f ) );\n mnfld.insertConnection( new Edge( mnfld.getPipe( 33f ), mnfld.getPipe( 1010f ), 1f ) );\n mnfld.insertConnection( new Edge( mnfld.getPipe( 1010f ), mnfld.getPipe( 7f ), 1f ) );\n mnfld.insertConnection( new Edge( mnfld.getPipe( 1f ), mnfld.getPipe( 20f ), 1f ) );\n mnfld.insertConnection( new Edge( mnfld.getPipe( 2020f ), mnfld.getPipe( 3f ), 1f ) );\n\n // -- Running Dijkstra & Finding shortest Paths -- //\n// Dijkstra.findPaths( mnfld, 10, \"0.0\", destTank );\n//\n// mnfld.restoreDroppedConnections();\n//\n// System.out.println( \"\\n\\n\" );\n Dijkstra.findMinPaths( mnfld, mnfld.getPipe( 0f ) );\n Dijkstra.mergePaths( mnfld, 1f, mnfld.getPipe( destTank ).getPath(), mnfld.getPipe( destTank ) );\n\n }", "public void run() {\n\t\tint time=0;\n\t\twhile(true)\n\t\t{\n\t\t\t\n\t\t\t\n\t\t\tswitch (this.direct) {\n\t\t\tcase 0:\n\t\t\t\t\n\t\t\t\t//设置for循环是为了不出现幽灵坦克\n\t\t\t\t//使得坦克有足够长的时间走动,能看得清楚\n\t\t\t\tfor(int i=0;i<30;i++)\n\t\t\t\t{ \n\t\t\t\t\t//判断是否到达边界\n\t\t\t\t\tif(y>0 && !this.isTouchEnemyTank() && !this.isTouchJinshuWall &&!this.isTouchTuWall){\n\t\t\t\t\t\ty-=speed;\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\ttry {\n\t\t\t\t\t\tThread.sleep(50);\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\te.printStackTrace();\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase 1:\n\t\t\t\t\n\t\t\t\tfor(int i=0;i<30;i++)\n\t\t\t\t{\n\t\t\t\t\tif(x<MyRules.panelX-35 && !this.isTouchEnemyTank() && !this.isTouchJinshuWall &&!this.isTouchTuWall)\n\t\t\t\t\t{\n\t\t\t\t\t\tx+=speed;\n\t\t\t\t\t}\t\n\t\t\t\t\ttry {\n\t\t\t\t\t\tThread.sleep(50);\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\te.printStackTrace();\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase 2:\n\t\t\t\n\t\t\t\tfor(int i=0;i<30;i++)\n\t\t\t\t{\n\t\t\t\t\t\n\t\t\t\t\tif(y<MyRules.panelY-35 && !this.isTouchEnemyTank()&& !this.isTouchJinshuWall &&!this.isTouchTuWall)\n\t\t\t\t\t{\n\t\t\t\t\t\ty+=speed;\n\t\t\t\t\t}try {\n\t\t\t\t\t\tThread.sleep(50);\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\te.printStackTrace();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase 3:\n\t\t\t\t\n\t\t\t\tfor(int i=0;i<30;i++)\n\t\t\t\t{\n\t\t\t\t\t\n\t\t\t\t\tif(x>0 && !this.isTouchEnemyTank()&& !this.isTouchJinshuWall &&!this.isTouchTuWall){\n\t\t\t\t\t\tx-=speed;\n\t\t\t\t\t}try {\n\t\t\t\t\t\tThread.sleep(50);\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\te.printStackTrace();\n\t\t\t\t\t}\n\t\t\t\t\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\n\t\t\t//走动之后应该产生一个新方向\n\t\t\tthis.direct=(int)(Math.random()*4);\n\t\t\t\n\t\t\t\n\t\t\ttime++;\n\t\t\tif(time%2==0)\n\t\t\t{\n\t\t\t\t//判断敌人坦克是否需要添加子弹\n\t\t\t\tif(this.state)\n\t\t\t\t{\n\t\t\t\t\tBullet enBullet=new Bullet();\n\t\t\t\t\t//每个坦克每次可以发射炮弹的数目\n\t\t\t\t\tif(enbu.size()<5)\n\t\t\t\t\t{\n\t\t\t\t\t\tenBullet.setDirect(direct);\n\t\t\t\t\t\tswitch (enBullet.direct) {\n\t\t\t\t\t\t\tcase 0:\n\t\t\t\t\t\t\t\tenBullet.setX(this.getX()+9);\n\t\t\t\t\t\t\t\tenBullet.setY(this.getY()-6);\n\t\t\t\t\t\t\t\tenbu.add(enBullet);\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\tcase 1:\n\t\t\t\t\t\t\t\tenBullet.setX(this.getX()+31);\n\t\t\t\t\t\t\t\tenBullet.setY(this.getY()+8);\n\t\t\t\t\t\t\t\tenbu.add(enBullet);\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\tcase 2:\n\t\t\t\t\t\t\t\tenBullet.setX(this.getX()+8);\n\t\t\t\t\t\t\t\tenBullet.setY(this.getY()+31);\n\t\t\t\t\t\t\t\tenbu.add(enBullet);\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\tcase 3:\n\t\t\t\t\t\t\t\tenBullet.setX(this.getX()-6);\n\t\t\t\t\t\t\t\tenBullet.setY(this.getY()+9);\n\t\t\t\t\t\t\t\tenbu.add(enBullet);\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t Thread thread=new Thread(enBullet);\n\t\t\t\t\t\t\t thread.start();\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}//if(time%2==0)\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\t//判断坦克是否死亡\n\t\t\tif(this.state==false)\n\t\t\t{\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t}//whlie\n\t}", "@Override public void init_loop() {\n loop_cnt_++;\n }", "public void generate() {\n\t\tMirror m = new Mirror();\n\t\tpoints.addAll(m.fish());\n\t\twhile (remainingPoints > 0) {\n\t\t\titerate();\n\t\t\tremainingPoints--;\n\t\t}\n\n\t}", "public void run() {\n\t\tArrays.fill(label, NOT_AN_INDEX);\r\n\t\t\r\n\t\t// while there is a u in V with considered[u]=0 and mate[u]=0 do\r\n\t\tstage: for (int u = 0; u < gOrig.numVertices(); u++ ) {\r\n\t\t\t// if(mate[u] == NOT_AN_INDEX){\r\n\t\t\tif (gOrig.vertex(u) == null) {\r\n\t\t\t\tcontinue;\r\n\t\t\t}\r\n\t\t\tif (matching.matches() == gOrig.numVertices() / 2) {\r\n\t\t\t\t// we are done\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\t\t\tSystem.out.print(String.format(\"considering vertex u%d\\n\", u));\r\n\t\t\tif ( ! matching.isMatched(u)) {\r\n\t\t\t\t\r\n\t\t\t\t// considered[u]=1,A={empty}\r\n\t\t\t\t// A = new WeightedDigraph(gOrig.numVertices()/2);\r\n\t\t\t\tA.clear();\r\n\t\t\t\t\r\n\t\t\t\t// forall v in V do exposed[v]=0\r\n\t\t\t\tArrays.fill(exposed, NOT_AN_INDEX);\r\n\t\t\t\t\r\n\t\t\t\t// Construct the auxiliary digraph\r\n\t\t\t\t\r\n\t\t\t\t// for all (v,w) in E do\r\n\t\t\t\tfor (int v = 0; v < gOrig.numVertices(); v++ ) {\r\n\t\t\t\t\tfor (Edge e : gOrig.eOuts(v)) {\r\n\t\t\t\t\t\tint w = e.right;\r\n\t\t\t\t\t\tassert e.left == v : \"vertex correspondence is wrong\";\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\t// if mate[w]=0 and w!=u then exposed[v]=w else if mate[w] !=v,0 then A=union(A,{v,mate[w]})\r\n\t\t\t\t\t\t// if(mate[w] == NOT_AN_INDEX && w != u){\r\n\t\t\t\t\t\t// exposed[v] = w;\r\n\t\t\t\t\t\t// }else if(mate[w] != v && mate[w] != NOT_AN_INDEX){\r\n\t\t\t\t\t\t// A.addEdge(new Edge(v,mate[w]));\r\n\t\t\t\t\t\t// }\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\tif ( ! matching.isMatched(w) && w != u) {\r\n\t\t\t\t\t\t\t// DEBUG(String.format(\"adding (%d,%d) to exposed\\n\", v, w));\r\n\t\t\t\t\t\t\tif (exposed[v] == NOT_AN_INDEX) {\r\n\t\t\t\t\t\t\t\texposed[v] = w;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t} else if (matching.mate(w) != v && matching.isMatched(w)) {\r\n\t\t\t\t\t\t\t// DEBUG(String.format(\"adding (%d,%d) to A\\n\", v, matching.mate(w)));\r\n\t\t\t\t\t\t\tA.add(new Edge(v, matching.mate(w)));\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\tDEBUG(String.format(\"Exposed vertices={%s}\\n\", printExposed()));\r\n\t\t\t\tif (exposed().size() == 0) {\r\n\t\t\t\t\tcontinue;\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\t// forall v in V do seen[v]=0\r\n\t\t\t\tArrays.fill(seen, false);\r\n\t\t\t\t\r\n\t\t\t\t// Q={u}; label[u]=0; if exposed[u]!=0 then augment(u), goto stage;\r\n\t\t\t\tQ.clear();\r\n\t\t\t\tQ.add(u);\r\n\t\t\t\tArrays.fill(label, NOT_AN_INDEX);// unsure whether it was meant to clear label or just unset label[u] OLD_CODE=label[u] = NOT_AN_INDEX;\r\n\t\t\t\tif (isExposed(u)) {\r\n\t\t\t\t\taugment(u);\r\n\t\t\t\t\tDEBUG(String.format(\"new matching %s\\n\", matching.toString()));\r\n\t\t\t\t\tcontinue;\r\n\t\t\t\t}\r\n\t\t\t\t// need to figure out how to handle blossom()\r\n\t\t\t\t\r\n\t\t\t\t// while Q != {empty} do\r\n\t\t\t\twhile ( ! Q.isEmpty()) {\r\n\t\t\t\t\tint v = Q.pop();\r\n\t\t\t\t\t\r\n\t\t\t\t\t// forall unlabeled nodes w in V such that (v,w) in A\r\n\t\t\t\t\tfor (Edge e : A) {\r\n\t\t\t\t\t\tint w = e.left;\r\n\t\t\t\t\t\tif (e.right == v && label[w] == NOT_AN_INDEX && label[v] != w) {\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t// Q=union(Q,w), label[w]=v\r\n\t\t\t\t\t\t\tif ( ! Q.contains(w)) {\r\n\t\t\t\t\t\t\t\tQ.offer(w);\r\n\t\t\t\t\t\t\t}else{\r\n\t\t\t\t\t\t\t\tcontinue; ///THIS CONTINUE WAS ADDED LATE AT NIGHT\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\tlabel[w] = v;\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t// seen[mate[w]] = 1;\r\n\t\t\t\t\t\t\ttry{\r\n\t\t\t\t\t\t\t\tint mate = findMate(w);\r\n\t\t\t\t\t\t\t\tseen[mate] = true;\r\n\t\t\t\t\t\t\t}catch(Exception err){\r\n\t\t\t\t\t\t\t\tDEBUG(String.format(\"error marking mate of %d as seen, mate not found\\n\", w));\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t// if exposed[w]!=0 then augment(w) goto stage;\r\n\t\t\t\t\t\t\tif (isExposed(w)) {\r\n\t\t\t\t\t\t\t\taugment(w);\r\n\t\t\t\t\t\t\t\tDEBUG(String.format(\"new matching %s\\n\", matching.toString()));\r\n\t\t\t\t\t\t\t\tcontinue stage;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t// if seen[w]=1 then blossom(w)\r\n\t\t\t\t\t\t\tif (seen[w]) {\r\n\t\t\t\t\t\t\t\tblossom(w);\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t\t// remove loops created by the blossoms\r\n\t\t\t\t\tremoveSelfLoops(A);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}", "private void CreatingBeautyContent(int count,int typeSymmetry, int methodSearch) {\n\t\t\tConstraintsPlacement objConstraints= new ConstraintsPlacement(this);\r\n\t\t\t//Creating array with states\r\n\t\t\tArrayList<BlockNode> states = new ArrayList<BlockNode>();\r\n\t\t\t//Building the graph in a deph way\r\n\t \tGraphBuilder objGrapB= new GraphBuilder(1);\r\n\t \tGraphBuilder objGrapB2= new GraphBuilder(1);\r\n\t \tGraphBuilder objGrapB3= new GraphBuilder(1);\r\n\t \tGraphBuilder objGrapB3a= new GraphBuilder(1);\r\n\t \tGraphBuilder objGrapB4= new GraphBuilder(1);\r\n\t \tGraphBuilder objGrapB5= new GraphBuilder(1);\r\n\t \tGraphBuilder objGrapB6= new GraphBuilder(1);\r\n\t \tGraphBuilder objGrapB7= new GraphBuilder(1);\r\n\t \tGraphBuilder objGrapB8= new GraphBuilder(1);\r\n\t \t\r\n\t \tobjGrapB.setWparamether(wParamether);\r\n\t \tobjGrapB2.setWparamether(wParamether);\r\n\t \tobjGrapB3.setWparamether(wParamether);\r\n\t \tobjGrapB3a.setWparamether(wParamether);\r\n\t \tobjGrapB4.setWparamether(wParamether);\r\n\t \tobjGrapB5.setWparamether(wParamether);\r\n\t \tobjGrapB6.setWparamether(wParamether);\r\n\t \tobjGrapB7.setWparamether(wParamether);\r\n\t \tobjGrapB8.setWparamether(wParamether);\r\n\t \t\r\n\t \tint numElements=objElem.getNumberObjects();\r\n\t \tint numEnemies=objElem.getNumberObjectsEnemies();\r\n\t \tint globalControlSearch=0;\r\n\t \t\r\n\t \tdouble time6=0;\r\n\t \tdouble time7=0;\r\n\t \tdouble time3=0;\r\n\t \tdouble time4=0;\r\n\t \tdouble time5=0;\r\n\t \tdouble time8=0;\r\n\t \t\r\n\t \tdouble startTime=0;\r\n\t \tdouble stopTime=0;\r\n\t \t\r\n\t \tdouble sum3=0;\r\n\t \tdouble sum4=0;\r\n\t \tdouble sum5=0;\r\n\t \tdouble sum6=0;\r\n\t \tdouble sum7=0;\r\n\t \tdouble sum8=0;\r\n\r\n\t \t\r\n\t \t//Beststates=objGrapB.basicDepthSearch(mediumStraight,height,numElements,numElements,states,objConstraints, objElem.getFinalList(),objElem);\r\n\t \t//Beststates=objGrapB.relativePositionDepthSearch(mediumStraight,height,numElements-numEnemies,numElements-numEnemies,states,objConstraints, objElem.getFinalList(),objElem,-mediumStraight+2,mediumStraight-2,floorTileHeight,0,0,numEnemies,random,globalControlSearch);\r\n\t \t//Beststates=objGrapB.relativeTransPositionDepthSearch(mediumStraight,height,numElements,numElements,states,objConstraints, objElem.getFinalList(),objElem,-mediumStraight+1,mediumStraight-1,floorTileHeight,0,0,currentState,hTable);\r\n\t \t//Beststates=objGrapB.DepthSearchCenterFrame(mediumStraight,height,numElements-numEnemies,numElements-numEnemies,states,objConstraints, objElem.getFinalList(),objElem,1,mediumStraight-2,floorTileHeight,0,0,numEnemies,random,globalControlSearch);\r\n\t \t//Beststates=objGrapB.DepthSearchPruningAlt(mediumStraight,height,numElements-numEnemies,numElements-numEnemies,states,objConstraints, objElem.getFinalList(),objElem,1,mediumStraight-2,floorTileHeight,0,0,numEnemies,random,globalControlSearch);\r\n\t \t\r\n\t \r\n\r\n\t \r\n\t //3.3) Brute-force search\r\n\t //objElem.setFinalList(objElem.getFinalListNoOrder());\r\n\t \tfor(int i=0;i<1;i++)\r\n\t \t{\r\n\t \t\tstartTime = System.currentTimeMillis();\r\n\t \t\tBeststates3=objGrapB3.DepthSearchCenterFrameNoPruningNoRegionsNoObjects(mediumStraight,height,numElements-numEnemies,numElements-numEnemies,states,objConstraints, objElem.getFinalList(),objElem,0,mediumStraight-2,floorTileHeight,0,0,numEnemies,random,globalControlSearch,8,typeSymmetry);\r\n\t \t\tstopTime = System.currentTimeMillis();\r\n\t \t\ttime3 = stopTime - startTime;\r\n//\t \t\tround(time3,2);\r\n//\t \t\tdouble nodes3=round((double)objGrapB3.getCounterIDs(),2);\r\n//\t \t\tSystem.out.println(objGrapB3.bestSymmetryV+\" \"+time3+\" \"+((objGrapB3.getCounterIDs())));\r\n\t \t\tsum3=sum3+time3;\r\n\t \t}\r\n\t \ttime3=sum3/1;\r\n\t \ttime3=round(time3,2);\r\n\t //System.out.println(\"Time Brute-force search \"+elapsedTime);\r\n\t \t\r\n\t \r\n\t \r\n\t //3.7) B&B+heuristic\r\n\t //objElem.setFinalList(objElem.getFinalListNoOrder());\r\n\t \tfor(int i=0;i<1;i++)\r\n\t \t{\r\n\t \t\tstartTime = System.currentTimeMillis();\r\n\t \t\tBeststates7=objGrapB7.depthSearchBBHeuristic(mediumStraight,height,numElements-numEnemies,numElements-numEnemies,states,objConstraints, objElem.getFinalList(),objElem,0,mediumStraight-2,floorTileHeight,0,0,numEnemies,random,globalControlSearch,8,typeSymmetry);\r\n\t \t\tstopTime = System.currentTimeMillis();\r\n\t \t\ttime7 = stopTime - startTime;\r\n//\t \t\tround(time7,2);\r\n//\t \t\tdouble nodes7=round((double)objGrapB3.getCounterIDs(),2);\r\n//\t \t\tSystem.out.println(objGrapB6.bestSymmetryV+\" \"+time6+\" \"+((objGrapB6.getCounterIDs())));\r\n\t \t\tsum7=sum7+time7;\r\n\t \t}\r\n\t \ttime7=sum7/1;\r\n\t \ttime7=round(time7,2);\r\n\t //System.out.println(\"Time B&B+heuristic + region ordering \"+elapsedTime);\r\n\t \t\r\n\t \t\r\n\t \t\r\n//\t \tif(objGrapB3.bestSymmetryV<objGrapB5.bestSymmetryV)\r\n//\t \t{\r\n//\t \t\tdouble bestSYmmetry=objGrapB3.bestSymmetryV;\r\n//\t \t\t//System.out.println(\"bestSym \"+bestSYmmetry);\r\n//\t \t\tBestGlobalstates=Beststates3;\r\n//\t \t\t\r\n//\t \t}\r\n//\t \telse\r\n//\t \t{\r\n//\t \t\tdouble bestSYmmetry=objGrapB5.bestSymmetryV;\r\n//\t \t\t//System.out.println(\"bestSym \"+bestSYmmetry);\r\n//\t \t\tBestGlobalstates=Beststates5;\r\n//\t \t}\r\n\t \t\r\n\t \tBestGlobalstates=Beststates7;\r\n\t \r\n\t \r\n\t \t//**System.out.println(\"Simetry 0-> Brute-force search order \"+objGrapB3a.bestSymmetryV);\t\r\n\t \t//System.out.println(\"Simetry 1-> Brute-force search \"+objGrapB3.bestSymmetryV);\t \t\r\n\t \t//System.out.println(\"Simetry 2-> B&B+oldheuristic \"+objGrapB4.bestSymmetryV);\r\n\t \t//**System.out.println(\"Simetry 3-> B&B+heuristic + object ordering \"+objGrapB2.bestSymmetryV);\t \t\r\n\t \t//System.out.println(\"Simetry 4-> B&B+ region + leviheuristic\"+objGrapB5.bestSymmetryV);\r\n\t \t//**System.out.println(\"Simetry 5-> B&B+heuristic + region ordering + object ordering \"+objGrapB.bestSymmetryV);\r\n\t \t//System.out.println(\"Simetry 6-> B&B+heuristic + leviheuristic \"+objGrapB6.bestSymmetryV);\r\n\t \t//System.out.println(\"Simetry 7-> B&B+oldoldheuristic \"+objGrapB7.bestSymmetryV);\r\n\t \t\r\n\t \t//**System.out.println( \"States 0 \"+objGrapB3a.getCounterIDs() );\r\n\t \t//System.out.println( \"States 1 \"+objGrapB3.getCounterIDs() );\r\n\t \t//System.out.println( \"States 2 \"+objGrapB4.getCounterIDs() );\r\n\t \t//**System.out.println( \"States 3 \"+objGrapB2.getCounterIDs() );\t \t\t \t\r\n\t \t//System.out.println( \"States 4 \"+objGrapB5.getCounterIDs() );\r\n\t \t//**System.out.println( \"States 5 \"+objGrapB.getCounterIDs() );\r\n\t \t//System.out.println( \"States 6 \"+objGrapB6.getCounterIDs() );\r\n\t \t//System.out.println( \"States 7 \"+objGrapB7.getCounterIDs() );\r\n\t \t\r\n\t \tdouble TimeRate7=time3/time7;\r\n\t \tdouble TimeRate6=time3/time6;\r\n\t \tdouble TimeRate5=time3/time5;\r\n\t \t\r\n\t \tTimeRate7=round(TimeRate7,2);\r\n\t \tTimeRate6=round(TimeRate6,2);\r\n\t \tTimeRate5=round(TimeRate5,2);\r\n\t \t\r\n\t \tdouble NodesRate7=(double)objGrapB3.getCounterIDs()/(double)objGrapB7.getCounterIDs();\r\n\t \tdouble NodesRate6=(double)objGrapB3.getCounterIDs()/(double)objGrapB6.getCounterIDs();\r\n\t \tdouble NodesRate5=(double)objGrapB3.getCounterIDs()/(double)objGrapB5.getCounterIDs();\r\n\t \t\r\n\t \tNodesRate7=round(NodesRate7,2);\r\n\t \tNodesRate6=round(NodesRate6,2);\r\n\t \tNodesRate5=round(NodesRate5,2);\r\n\r\n\t \t\r\n\t \t\r\n\r\n\t //imprimiendo los estados visitados\r\n\t /*\r\n\t Iterator<BlockNode> nombreIterator = states.iterator();\r\n\t while(nombreIterator.hasNext()){\r\n\t \tBlockNode elemento = nombreIterator.next();\r\n\t \tSystem.out.print(elemento.getID()+\" / \");\r\n\t }*/\r\n\t \r\n\t //here we are painting as the best branch founded\r\n\t \r\n\t //System.out.println(\"nene \"+BestGlobalstates.size());\r\n\t Iterator<BlockNode> nombreIterator = BestGlobalstates.iterator();\r\n\t while(nombreIterator.hasNext()){\r\n\t \tBlockNode elemento = nombreIterator.next();\r\n\t \t//System.out.print(elemento.getID()+\"(\"+elemento.getX()+\" \"+elemento.getY()+\" ) - \"+elemento.getType()+\" \"+elemento.getIdElement()+ \" / \");\r\n\t }\r\n\t \r\n\t \r\n\t //Here we will put the elements on the tile\r\n\t try {\r\n\t Level levelScreen=PaintElements(BestGlobalstates,this);\r\n\t Screen objScreen=new Screen();\r\n\t\t\tobjScreen.SaveScreen(levelScreen,odds,objElem);\r\n \t\tInformacoesTelas info = new InformacoesTelas();\r\n\t CopiaArquivos copiador = new CopiaArquivos();\r\n\t \r\n\t info = info.carregaInfoTela(\"infoTela\");\r\n\t\t\tinfo.setOutrasVariaveis(0, 0); // Salva outras informacoes da Tela\r\n\t\t\tinfo.salvaInfoTela(\"infoTela\", info);\t\t\t\t\t\r\n\t\t\tcopiador.copy(\"\" + count, \"Screens/\");\r\n\t\t\t\r\n\t } catch (ClassNotFoundException e) {\r\n\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t} catch (IOException 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}", "private static void normal(){\n ProblemKnapsackFromFile problem = new ProblemKnapsackFromFile(macPathGetProblemFrom);\n\n //NSGAII algorithm = new NSGAII();\n SPEA2 algorithm = new SPEA2();\n //SPEAHADKA algorithm = new SPEAHADKA();\n //AEMMT algorithm = new AEMMT();\n //AEMMD algorithm = new AEMMD();\n //MOEAD algorithm = new MOEAD();\n\n int x =1;\n int counter = 0;\n\n if (AEMMD.class.isInstance(algorithm) || AEMMT.class.isInstance(algorithm)){\n Parameters.NUMBER_OF_GENERATIONS = 15000;\n }\n else{\n Parameters.NUMBER_OF_GENERATIONS = problem.items.size() < 100? 100 : 200;\n }\n\n while (counter < x) {\n algorithm.runAlgorithm(problem);\n counter++;\n }\n }", "public void NestedLoopDetection(int windowSlice) throws TransformerException, ParserConfigurationException, SQLException, InstantiationException, IllegalAccessException {\n\n long startTime = 0;\n long finishTime = 0;\n long elapsedTime = 0;\n List<String> allCTPconsts = null;\n List<String> tmpCTP = null;\n\n long tmpTime = System.nanoTime();\n System.out.println(\"[START] ---> Triple Pattern's extraction\");\n System.out.println();\n allCTPs = getCTPsfromGraphs(dedGraphSelect);\n System.out.println(\"[FINISH] ---> Triple Pattern's extraction (Elapsed time: \" + (System.nanoTime() - tmpTime) / 1000000000 + \" seconds)\");\n System.out.println();\n System.out.println(\"-----------------------------------------------------------------------------------------------------------------\");\n System.out.println(\"-----------------------------------------------------------------------------------------------------------------\");\n System.out.println();\n startTime = System.nanoTime();\n System.out.println(\"[START] ---> NestedLoopDetection heuristic\");\n System.out.println();\n\n //Try to match every CTP's constant value, (IRI/Literal) to reveal hidden\n //variables, or, directly match a CTP (when inverseMapping is disabled \n //or CTP's subject and object are variables)\n for (int i = 0; i < allCTPs.size(); i++) {\n\n allCTPconsts = myBasUtils.sortAndRemoveRedundancy(myDedUtils.getValuesFromCTP(i));\n tmpCTP = myDedUtils.getCleanTP(allCTPs.get(i));\n\n if (!inverseMapping) {\n\n myDedUtils.setDTPHashInfo(tmpCTP, i);\n allCTPconsts = myDedUtils.getValuesFromCTP(i);\n flagSTOPNONPROJECTEDvars = myDedUtils.setDTPtoSrcAns(i, allCTPconsts, allCTPs.get(i), flagSTOPNONPROJECTEDvars);\n } else {\n\n getMatchVarsOfCTP(i);\n }\n\n }\n\n //Get FILTER values, for ANAPSID trace's inner subqueres of NLFO\n checkNLFOJoin();\n\n //Cancel exclusive groups, if they are identified as a NLEG implementation of FedX\n cancelJoinsNLEGJoin();\n\n //Search for possible double NLBJ implementation of FedX on subject and object \n //The second NLBJ is implemented as FILTER option\n checkNLBJwithFilter();\n\n finishTime = System.nanoTime();\n elapsedTime = finishTime - startTime;\n System.out.println();\n System.out.println(\"[FINISH] ---> NestedLoopDetection heuristic (Elapsed time: \" + elapsedTime / 1000000000 + \" seconds)\");\n }", "@Override\n public void loop()\n {\n }", "@Test\r\n public void Test030generateNextPattern()\r\n {\r\n gol.makeLiveCell(2, 5);\r\n gol.makeLiveCell(2, 6);\r\n gol.makeLiveCell(2, 7);\r\n gol.makeLiveCell(3, 5);\r\n gol.makeLiveCell(3, 7);\r\n gol.makeLiveCell(4, 5);\r\n gol.makeLiveCell(4, 6);\r\n gol.makeLiveCell(4, 7);\r\n\r\n gol.generateNextPattern();\r\n\r\n assertEquals(8, gol.getTotalAliveCells());\r\n\r\n }", "private double[][] makeMSTDouble(GaneshaLakeId[] gla, GaneshaLakeDist[] gla1, GaneshaGaneshaDist[] gla2, int noofganesha, int nooflakes, Ganesha[] ganesha, Lake[] lake, PrintWriter pw) {\n double[][] resultPlot = new double[noofganesha+nooflakes+1][5];\n int re = 1;\n \n boolean visited[] = new boolean[noofganesha];\n \n// int lid = 1;\n// \n// int minvaldist=Integer.MAX_VALUE;\n// int misvalganeshaat = -1;\n// for(int i=0;i<noofganesha;i++){\n//// pw.println(gla[i].lakeId +\"--\"+ lid );\n// if(gla[i].lakeId == lid && minvaldist>gla1[lid*noofganesha+i].distance){\n// minvaldist = gla1[lid*noofganesha+i].distance;\n// misvalganeshaat = i;\n// }\n// }\n \n// for(int lid =0;lid<nooflakes;lid++){\n// int countCO1Lake = countClusterOfOneLake(gla,lid);\n// for(int i=0;i<noofganesha;i++){\n// at = 'k';\n// mintill = Integer.MAX_VALUE;\n// minisat = 0;\n// int start = lid*noofganesha;\n// for(int j=start;j<start+noofganesha;j++){\n// if(mintill > gla1[j].distance && !visited[gla[j].ganesha] && gla[gla[j].ganesha].lakeId == lid){\n// minisat=lid;\n// mintill=gla1[j].distance;\n// at='k';\n// minis=j;\n// }\n// }\n// }\n\n for(int i=0;i<nooflakes;i++)\n {\n \n int minvaldist=Integer.MAX_VALUE;\n int misvalganeshaat = -1;\n int noofginclust = 0;\n for(int ij=0;ij<noofganesha;ij++){\n// pw.println(gla[i].lakeId +\"--\"+ lid );\n if(gla[ij].lakeId == i && minvaldist>gla1[i*noofganesha+ij].distance){\n minvaldist = gla1[i*noofganesha+ij].distance;\n misvalganeshaat = ij;\n noofginclust++;\n }\n }\n newClass nc[]=new newClass[noofganesha+1];\n int p=0;\n nc[0]=new newClass();\n nc[0].isLake=true;\n nc[0].lakeId=i;\n Ganesha g[]=new Ganesha[noofganesha];\n int k1=0;\n for(int j=0;j<noofganesha;j++)\n {\n if(gla[j].lakeId == i)\n {\n g[k1]=new Ganesha();\n g[k1].ganeshaId=j;\n \n// pw.println(j+\" j+++\");\n k1++;\n \n }\n }\n pw.println(k1+\" k1+++\");\n for(int k=0;k<k1;k++)\n {\n int min=Integer.MAX_VALUE;\n int minIs=0;\n// pw.println(gla2.length);\n for(int l=0;l<gla2.length;l++)\n {\n if( g[k]!=null && gla2[l].ganesha1==g[k].ganeshaId && gla[gla2[l].ganesha2].lakeId == i)\n {\n// pw.println( gla[g[k].ganeshaId].lakeId+\" lakeid\");\n if(min>gla2[l].distance && visited[gla2[l].ganesha2]==false && gla2[l].distance !=0)\n {\n// pw.println(gla2[l].ganesha2+\"--\"+i);\n minIs=l;\n min=gla2[l].distance;\n visited[gla2[l].ganesha2]=true;\n }\n }\n }\n newClass nc1=new newClass();\n nc1.lakeId=i;\n nc1.ganeshaId=gla2[minIs].ganesha2;\n nc1.src=g[k].ganeshaId;\n nc1.isLake=false;\n p++;\n nc[p]=nc1;\n }\n if(misvalganeshaat != -1){\n resultPlot[re][0] = lake[i].lan;\n resultPlot[re][1] = lake[i].lng;\n resultPlot[re][2] = ganesha[misvalganeshaat].lan;\n resultPlot[re][3] = ganesha[misvalganeshaat].lng;\n \n resultPlot[re][4] = lake[i].lakeId;\n re++;\n pw.println(\"Lake: \"+i+\" (lan, log): (\"+lake[i].lan+\", \"+lake[i].lng+\" to ganesha: \"+misvalganeshaat+\" (lan, log): (\"+ganesha[misvalganeshaat].lan+\", \"+ganesha[misvalganeshaat].lng+\")\");\n for(int k=1;k<p;k++)\n {\n \n resultPlot[re][0] = ganesha[nc[k].src].lan;\n resultPlot[re][1] = ganesha[nc[k].src].lng;\n resultPlot[re][2] = ganesha[nc[k].ganeshaId].lan;\n resultPlot[re][3] = ganesha[nc[k].ganeshaId].lng;\n //change 1\n resultPlot[re][4] = lake[i].lakeId;\n re++;\n // pw.println(\"ganesha\\t\"+nc[k].ganeshaId+\"\\t from\\t ganesha: \"+nc[k].src);\n pw.println(\"ganesha: \"+nc[k].src+\"(lan, lng): (\"+ganesha[nc[k].src].lan+\", \"+ganesha[nc[k].src].lng+\") to ganesha: \"+nc[k].ganeshaId+\"(lan, lng): (\"+ganesha[nc[k].ganeshaId].lan+\", \"+ganesha[nc[k].ganeshaId].lng+\")\");\n }\n }\n else{\n \n resultPlot[re][0] = lake[i].lan;\n resultPlot[re][1] = lake[i].lng;\n resultPlot[re][2] = lake[i].lan;\n resultPlot[re][3] = lake[i].lng;\n resultPlot[re][4] = lake[i].lakeId;\n re++;\n pw.println(\"Lake \"+i+\" (lan, log): (\"+lake[i].lan+\", \"+lake[i].lng+\") is Too Far.\");\n }\n pw.println();\n }\n resultPlot[0][0] = re;\n \n// for(int j=0;j<noofganesha;j++){\n// int k1 = j*noofganesha;\n// for(int k=j*noofganesha;k<(j+1)*noofganesha;k++){\n// if((mintill>gla2[k].distance)&& !visited[j] && gla[j].lakeId==lid){\n// minisat = j;\n// mintill = gla2[j].distance;\n// minis = k1-j;\n// at = 'g';\n// }\n// }\n// }\n// for(int i=0;i<noofganesha;i++){\n// int j = i;\n// pw.println(gla[i].lakeId+\" - \"+lid);\n// if(gla[i].lakeId == lid)\n// while(j<gla2.length){\n// pw.println(mintill+\" - \"+gla2[j].distance+\" - \"+visited[gla2[j].ganesha1]+\" + \"+gla[gla2[j].ganesha1].lakeId);\n// if((mintill>gla2[j].distance)&& gla2[j].distance != 0 &&\n// visited[gla2[j].ganesha1] && lid==gla[gla2[j].ganesha1].lakeId && lid==gla[gla2[j].ganesha2].lakeId){\n// minisat = gla2[j].ganesha2;;\n// mintill = gla2[j].distance;\n// minis = gla2[j].ganesha1;\n// at = 'g';\n// }\n// j = j + noofganesha;\n// }\n// pw.println(\"+\"+minis);\n// visited[minis]=true;\n// pw.println(minisat +\"-\"+at+\"\\t---------------->\"+minis);\n// \n// }\n// pw.println(\"#\");\n// \n return resultPlot;\n }", "@Override public void loop() {\n }", "private static void drukaf()\n\t{\n\t\tint a;\n\t\tint oplossing;\n\t\tfor(a=1; a<10; a++)\n\t\t{\n\t\t\tint b;\n\t\t\tfor(b=1; b<10; b++)\n\t\t\t{\n\t\t\t\toplossing = a*b;\n\t\t\t\tSystem.out.println(a + \" x \" + b + \" = \" + oplossing);\n\t\t\t}\t\n\t\t}\n\t}", "public boolean foundLoop();", "static void test2() {\n\n System.out.println( \"Begin test2. ===============================\\n\" );\n\n Thread init = Thread.currentThread(); // init spawns the Mogwais\n\n System.out.println( \"TODO: write a more involved test here.\" );\n //\n // Create a GremlinsBridge of capacity 3.\n // Set an OPTIONAL, test delay to stagger the start of each mogwai.\n // Create the Mogwais and store them in an array.\n // Run them by calling their start() method.\n // Now, the test must give the mogwai time to finish their crossings.\n //\n System.out.println( \"TODO: follow the pattern of the example tests.\" );\n System.out.println( \"\\n=============================== End test2.\" );\n }", "public void removeGraphCycles() {\n\t\tMap<Integer, MovingFObject> map = sc.getInitPos();\r\n\t\tint[] cycleCount = new int[map.size()];\r\n\t\tforComplexMotion = new boolean[map.size()];\r\n\t\t//count cycles\r\n\t\tfor(int i = 0; i < map.size(); i++) {\r\n\t\t\tfor(int j = 0; j < map.size(); j++) {\r\n\t\t\t\tif(i != j) {\r\n\t\t\t\t\tif(graph[i][j] && graph[j][i]) {\r\n\t\t\t\t\t\tcycleCount[i]++;\r\n\t\t\t\t\t\tcycleCount[j]++;\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//remove fobjects from linear motion planning\r\n\t\tboolean hasCycles = true;\r\n\t\twhile(hasCycles) {\r\n\t\t\tint max = 0;\r\n\t\t\tint maxIndex = -1;\r\n\t\t\tfor(int i = 0; i < cycleCount.length; i++) {\r\n\t\t\t\tif(cycleCount[i] > max) {\r\n\t\t\t\t\tmax = cycleCount[i];\r\n\t\t\t\t\tmaxIndex = i;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tif(maxIndex == -1) {\r\n\t\t\t\thasCycles = false;\r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\tcycleCount[maxIndex] = 0;\r\n\t\t\t\tforComplexMotion[maxIndex] = true;\r\n\t\t\t\tfor(int i = 0; i < cycleCount.length; i++) {\r\n\t\t\t\t\tgraph[maxIndex][i] = false;\r\n\t\t\t\t\tgraph[i][maxIndex] = false;\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}\r\n\t\t\r\n\t}", "@Override public void loop () {\n }", "private static void task111(int nUMS, RedBlackBST<Integer, Integer> i, GenerateInt generateInt) {\n\t\tlong start = System.nanoTime();\n\t System.out.println( \"Fill in the table...RED BLAST BST TREE\" );\n\t int count=0;\n\t\tfor( int z = 1; z <= nUMS; z++)\n\t\t{\n\t\t\t \t\t \n\t\t\ti.put(z, z);\n\t\t\tcount = z;\n//\t\t\tSystem.out.println(GenerateInt.generateNumber());\n\n\t\t}\n\t\tSystem.out.println(\"Total Size \" + count);\n\t\tlong end = System.nanoTime();;\n\t\tlong elapsedTime = end - start;\n\t\tSystem.out.println(elapsedTime + \" NanoSeconds\");\n\t\tSystem.out.println(\"Average Time \" + elapsedTime/nUMS);\n\n\t}", "public void generateSolution() {\n if (this.stateOfTheMaze != 1)\n throw new IllegalArgumentException(\"To generate the maze the state of it must be \\\"generated maze\\\".\");\n Queue<Box> queue = new LinkedList<>();\n queue.add(this.startBox);\n boolean notFinished = true;\n while (notFinished) {\n Box aux = queue.peek();\n LinkedList<Box> movements = movementWithWalls(aux);\n movements.remove(aux.getPrevious());\n for (Box box : movements) {\n box.setPrevious(aux);\n queue.add(box);\n if (box.equals(this.endBox))\n notFinished = false;\n }\n queue.remove();\n }\n Box anotherAux = this.endBox;\n while (!anotherAux.equals(this.startBox)) {\n anotherAux.setAsSolution();\n anotherAux = anotherAux.getPrevious();\n }\n this.stateOfTheMaze++;\n }", "public TSPMSTSolution(int iterations)\n {\n// System.out.println(\"NODE CREATED\");\n this.included = new int[0];\n this.includedT = new int[0];\n this.excluded = new int[0];\n this.excludedT = new int[0];\n this.iterations = iterations;\n }", "public void loop(){\n\n test1.setPower(1);\n test1.setTargetPosition(150);\n\n\n }", "public void loop() {\n this.instructionList.restart();\t\n }", "public void run(){\n\n for (int locIdx = begN; locIdx < endN; locIdx++) {\n\n // do mean-shift for profiles at these locations\n\n for (int profileIdx=0; profileIdx<profiles.get(locIdx).size(); profileIdx++) {\n\n // access the detection\n// int profileLength = profiles.get(locIdx).get(profileIdx).length;\n\n // calculate peaks for the ring 'profileIdx'\n ArrayList<Float> currPeaks = extractPeakIdxsList(profiles.get(locIdx).get(profileIdx), startIdx.get(profileIdx), finishIdx.get(locIdx).get(profileIdx));\n\n //if (currPeaks.size()<3) {\n // // it is not a bifurcation according to MS for this ring, don't calculate further, leave empty fields of peakIdx at this location\n // break;\n //}\n //else {\n // add those points\n for (int pp=0; pp<currPeaks.size(); pp++){\n peakIdx.get(locIdx).get(profileIdx).add(pp, currPeaks.get(pp));\n }\n //}\n\n/*\n\t\t\t\tfor (int k=0; k<nrPoints; k++) {\n start[k] = ((float) k / nrPoints) * profileLength;\n }\n\n\t\t\t\tTools.runMS( \tstart,\n \tprofiles.get(locIdx).get(profileIdx),\n \tmaxIter,\n \tepsilon,\n \th,\n\t\t\t\t\t\t\t\tmsFinish);\n*/\n\n /*\n for (int i1=0; i1<nrPoints; i1++) {\n convIdx.get(locIdx).get(profileIdx)[i1] = (float) msFinish[i1];\n }\n*/\n/*\n int inputProfileLength = profiles.get(locIdx).get(profileIdx).length;\n Vector<float[]> cls = Tools.extractClusters1(msFinish, minD, M, inputProfileLength);\n\t\t\t\textractPeakIdx(cls, locIdx, profileIdx); // to extract 3 major ones (if there are three)\n*/\n\n }\n\n }\n\n }", "private void run(Node startNode) {\n Node sim_node = startNode;\n Node terminalNode = null;\n int winner = 0; // 1 is red, 2 is black\n boolean playOut = false;\n sim_node.incrementPlays();\n for (int i = 0; i < max_moves; i++) {\n if (i > simulationDepth) {\n simulationDepth = i;\n if (debug && simulationDepth > (max_moves - 50)) {\n System.out.println(\"Cycle spotted!: \");\n System.out.println(\"State: \" + sim_node);\n System.out.println(\"Board: \" + Arrays.deepToString(sim_node.getState().getBoard()));\n System.out.println(\"Turn: \" + sim_node.getState().getTurn());\n System.out.println(\"Legal moves size: \" + sim_node.getState().getLegalMoves().size());\n System.out.println(\"State plays: \" + sim_node.getPlays());\n System.out.println(\"Depth: \" + simulationDepth);\n System.out.println();\n }\n }\n // Break loop if game is over\n if (Logic.gameOver(sim_node.getState())) {\n winner = Logic.getWinner(sim_node.getState());\n if (terminalNode == null) terminalNode = sim_node;\n break;\n }\n if (playOut) {\n if (useMinimax) {\n // Shallow minimax search as rollout\n minimax.setTeam(sim_node.getState().getTurn());\n ai.Minimax.Node node = new ai.Minimax.Node(sim_node.getState());\n Move move = minimax.minimax(node, minimaxDepth, Integer.MIN_VALUE,\n Integer.MAX_VALUE, System.currentTimeMillis()).move;\n\n sim_node = sim_node.getNextNode(move);\n } else {\n // Random playout, no node expansion\n int r = new Random().nextInt(sim_node.getState().getLegalMoves().size());\n Move m = sim_node.getState().getLegalMoves().get(r);\n sim_node = sim_node.getNextNode(m);\n }\n continue;\n }\n ArrayList<Node> unexplored = new ArrayList<>();\n boolean containsAll = true;\n for (Node child : sim_node.getChildren()) {\n if (child.getPlays() == 0) {\n containsAll = false;\n unexplored.add(child);\n }\n }\n Node bestNode = null;\n if (containsAll) {\n double bestUCB = 0.0;\n for (Node child : sim_node.getChildren()) {\n if (child.UCB(1) >= bestUCB) {\n bestUCB = child.UCB(1);\n bestNode = child;\n }\n }\n } else {\n int rIndex = new Random().nextInt(unexplored.size());\n bestNode = unexplored.get(rIndex);\n playOut = true;\n terminalNode = bestNode;\n }\n sim_node = bestNode;\n }\n // Game is over, backpropagating\n terminalNode.backPropagate(winner);\n }", "@Override\r\n public void initialRun(){\r\n tProcess = parser.nextSimProcessTime();\r\n System.out.println();\r\n boolean goRun=true;\r\n while(goRun){\r\n\r\n if(currentTime == tProcess){\r\n mc = parser.simProcess(mc);\r\n tProcess = parser.nextSimProcessTime();\r\n }\r\n mc.doOneStep();\r\n\r\n if(makeVideo){\r\n if(currentTime%FrameRate ==0){\r\n\r\n vid.addLatticeFrame(mc.getSimSystem().getSystemImg());\r\n makeVideo = vid.isWritten();\r\n }\r\n }\r\n\r\n if((currentTime % 10) ==0){System.out.println(\"t:\"+currentTime+\" M:\"+mc.getM());}\r\n currentTime++;\r\n\r\n\r\n goRun = !(mc.nucleated());\r\n if(mc.getM()<0 && currentTime> 300){goRun=false;}\r\n if(currentTime > maxT){goRun= false;}\r\n }\r\n\r\n if(makeVideo){\r\n vid.writeVideo();\r\n }\r\n }", "public void run(){\n \n while (true){\n double p1Xnext =l1.getStart().getX()+v1p1;\n double p2Xnext =l2.getStart().getX()+v1p2;\n double p3Xnext =l3.getStart().getX()+v1p3;\n double p1Ynext =l1.getStart().getY()+v2p1;\n double p2Ynext =l2.getStart().getY()+v2p2;\n double p3Ynext =l3.getStart().getY()+v2p3;\n double p4Xnext =l1.getEnd().getX()+v1p1;\n double p5Xnext =l2.getEnd().getX()+v1p2;\n double p6Xnext =l3.getEnd().getX()+v1p3;\n double p4Ynext =l1.getEnd().getY()+v2p1;\n double p5Ynext =l2.getEnd().getY()+v2p2;\n double p6Ynext =l3.getEnd().getY()+v2p3;\n\n if (p1Xnext > l1.getCanvas().getWidth()){\n v1p1=-v1p1; \n }\n if (p1Xnext< 0){\n v1p1=-v1p1;\n \n }\n if (p1Ynext > l1.getCanvas().getHeight()){\n v2p1=-v2p1;\n \n }\n if (p1Ynext< 0){\n v2p1=-v2p1;\n }\n if (p2Xnext > l1.getCanvas().getWidth()){\n v1p2=-v1p2; \n }\n if (p2Xnext< 0){\n v1p2=-v1p2;\n \n }\n if (p2Ynext > l1.getCanvas().getHeight()){\n v2p2=-v2p2;\n \n }\n if (p2Ynext< 0){\n v2p2=-v2p2;\n \n }\n if (p3Xnext > l1.getCanvas().getWidth()){\n v1p3=-v1p3; \n }\n if (p3Xnext< 0){\n v1p3=-v1p3;\n \n }\n if (p3Ynext > l1.getCanvas().getHeight()){\n v2p3=-v2p3;\n \n }\n if (p3Ynext< 0){\n v2p3=-v2p3;\n }\n l1.setStart(l1.getStart().getX()+v1p1, l1.getStart().getY()+v2p1);\n l2.setStart(l2.getStart().getX()+v1p2, l2.getStart().getY()+v2p2);\n l3.setStart(l3.getStart().getX()+v1p3, l3.getStart().getY()+v2p3);\n l1.setEnd(l3.getStart());\n l2.setEnd(l1.getStart());\n l3.setEnd(l2.getStart());\n pause(10);\n \n \n \n }\n}", "private static void testLongLoop() {\n test(1000 * 1000 * 1000);\n //uncomment the following line to see the hand-written cache performance\n //testManual( 1000 * 1000 * 1000 );\n }", "private static void testLongLoop() {\n test(1000 * 1000 * 1000);\n //uncomment the following line to see the hand-written cache performance\n //testManual( 1000 * 1000 * 1000 );\n }", "@Override\n public void loop() {\n\n }", "@Override\n public void loop() {\n\n }", "public static Vector<int []> UCS(int[] startPosition,int[] unexploreNode, mapNode[][] nodes){\n\t\t\r\n\t\tVector<int []> shortestPath;\r\n\t\t\r\n\t\t//initial all nodes' distance to INF\r\n\t\tfor(int i = 0; i < nodes.length; i++)\r\n\t\t{\r\n\t\t\tfor(int j = 0; j < nodes[i].length;j++)\r\n\t\t\t{\r\n\t\t\t\tnodes[i][j].setTotDistance(999999999);//set the initial distance to INF\r\n\t\t\t\tnodes[i][j].gridPosition[0] = i;//save current node x position\r\n\t\t\t\tnodes[i][j].gridPosition[1] = j;//save current node y position\r\n\t\t\t\tnodes[i][j].setNodeVistied(false);//set all nodes are not visited yet\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\t//set the start point total distance to 0\r\n\t\tnodes[startPosition[0]][startPosition[1]].setTotDistance(0);\r\n\t\t//create start node and add it into the execution queue\r\n\t\tmapNode tempNode = new mapNode();\r\n\t\ttempNode = nodes[startPosition[0]][startPosition[1]];\r\n\t\tVector<mapNode> tempQueue = new Vector<mapNode>();\r\n\t\ttempQueue.add(tempNode);\r\n\t\t//main loop: check all nodes on the map\r\n\t\twhile(tempQueue.size() != 0)\r\n\t\t{\r\n\t\t\t//create four nearby nodes\r\n\t\t\tmapNode tempTopNode = new mapNode();\r\n\t\t\tmapNode tempBottomNode = new mapNode();\r\n\t\t\tmapNode tempLeftNode = new mapNode();\r\n\t\t\tmapNode tempRightNode = new mapNode();\r\n\t\t\t\t\r\n\t\t\t//update Top node information from original nodes matrix\r\n\t\t\tif(tempQueue.get(0).topNode != null)\r\n\t\t\t{\r\n\t\t\t\ttempTopNode = nodes[tempQueue.get(0).topNode.gridPosition[0]][tempQueue.get(0).topNode.gridPosition[1]];\r\n\t\t\t}\r\n\t\t\telse\r\n\t\t\t{\r\n\t\t\t\ttempTopNode = null;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//update Bottom node information from original nodes matrix\r\n\t\t\tif(tempQueue.get(0).bottomNode != null)\r\n\t\t\t{\r\n\t\t\t\ttempBottomNode = nodes[tempQueue.get(0).bottomNode.gridPosition[0]][tempQueue.get(0).bottomNode.gridPosition[1]];\r\n\t\t\t}\r\n\t\t\telse\r\n\t\t\t{\r\n\t\t\t\ttempBottomNode = null;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//update Left node information from original nodes matrix\r\n\t\t\tif(tempQueue.get(0).leftNode != null)\r\n\t\t\t{\r\n\t\t\t\ttempLeftNode = nodes[tempQueue.get(0).leftNode.gridPosition[0]][tempQueue.get(0).leftNode.gridPosition[1]];\r\n\t\t\t}\r\n\t\t\telse\r\n\t\t\t{\r\n\t\t\t\ttempLeftNode = null;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//update Right node information from original nodes matrix\r\n\t\t\tif(tempQueue.get(0).rightNode != null)\r\n\t\t\t{\r\n\t\t\t\ttempRightNode = nodes[tempQueue.get(0).rightNode.gridPosition[0]][tempQueue.get(0).rightNode.gridPosition[1]];\r\n\t\t\t}\r\n\t\t\telse\r\n\t\t\t{\r\n\t\t\t\ttempRightNode = null;\r\n\t\t\t}\r\n\t\t\t\t\r\n\t\t\t//start re-calculate distance of each node\r\n\t\t\t//check the top node and update new distance\r\n\t\t\tif(tempTopNode != null)\r\n\t\t\t{\r\n\t\t\t\tif(tempTopNode.getTotDistance()>tempQueue.get(0).getTotDistance()+tempQueue.get(0).getTopWeight())\r\n\t\t\t\t{\r\n\t\t\t\t\t//update new distance to the top node \r\n\t\t\t\t\ttempTopNode.setTotDistance(tempQueue.get(0).getTotDistance()+tempQueue.get(0).getTopWeight());\t\r\n\t\t\t\t\tVector<int[]> tempPath = new Vector<int[]>();\r\n\t\t\t\t\t//record the path\r\n\t\t\t\t\tfor(int m = 0; m < tempQueue.get(0).getTotPath().size(); m++)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tint[] tempXY = new int[2];\r\n\t\t\t\t\t\ttempXY = tempQueue.get(0).getTotPath().get(m);\r\n\t\t\t\t\t\ttempPath.add(tempXY);\r\n\t\t\t\t\t}\r\n\t\t\t\t\t//check new node to see if exists in path\r\n\t\t\t\t\tif(checkPositionInPath(tempPath, tempQueue.get(0).gridPosition[0], tempQueue.get(0).gridPosition[1]) == false)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tint[] tempXY2 = new int[2];\r\n\t\t\t\t\t\ttempXY2 = tempQueue.get(0).gridPosition;\r\n\t\t\t\t\t\ttempPath.add(tempXY2);\r\n\t\t\t\t\t}\r\n\t\t\t\t\t//assign new path to the node\r\n\t\t\t\t\ttempTopNode.setTotPath(tempPath);\r\n\t\t\t\t\t//update data back to original matrix\r\n\t\t\t\t\tnodes[tempTopNode.gridPosition[0]][tempTopNode.gridPosition[1]] = tempTopNode;\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tif(nodes[tempTopNode.gridPosition[0]][tempTopNode.gridPosition[1]].getNodeVisited()== false && checkNodeInQueue(tempQueue, tempTopNode.gridPosition[0], tempTopNode.gridPosition[1]) == false)\r\n\t\t\t\t{\r\n\t\t\t\t\t//check un-visited nodes and add new node into execution queue\r\n\t\t\t\t\ttempQueue.add(tempTopNode);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t//check the bottom node and update new distance\r\n\t\t\tif(tempBottomNode != null)\r\n\t\t\t{\r\n\t\t\t\tif(tempBottomNode.getTotDistance()>tempQueue.get(0).getTotDistance()+tempQueue.get(0).getBottomWeight())\r\n\t\t\t\t{\r\n\t\t\t\t\ttempBottomNode.setTotDistance(tempQueue.get(0).getTotDistance()+tempQueue.get(0).getBottomWeight());\r\n\t\t\t\t\tVector<int[]> tempPath = new Vector<int[]>();\r\n\t\t\t\t\t//record the path\r\n\t\t\t\t\tfor(int m = 0; m < tempQueue.get(0).getTotPath().size(); m++)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tint[] tempXY = new int[2];\r\n\t\t\t\t\t\ttempXY = tempQueue.get(0).getTotPath().get(m);\r\n\t\t\t\t\t\ttempPath.add(tempXY);\r\n\t\t\t\t\t}\r\n\t\t\t\t\t//check new node to see if it exists in path\r\n\t\t\t\t\tif(checkPositionInPath(tempPath, tempQueue.get(0).gridPosition[0], tempQueue.get(0).gridPosition[1]) == false)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tint[] tempXY2 = new int[2];\r\n\t\t\t\t\t\ttempXY2 = tempQueue.get(0).gridPosition;\r\n\t\t\t\t\t\ttempPath.add(tempXY2);\r\n\t\t\t\t\t}\t\t\t\t\r\n\t\t\t\t\t//assign new path to the node\r\n\t\t\t\t\ttempBottomNode.setTotPath(tempPath);\r\n\t\t\t\t\t//update data back to original matrix\r\n\t\t\t\t\tnodes[tempQueue.get(0).bottomNode.gridPosition[0]][tempQueue.get(0).bottomNode.gridPosition[1]] = tempBottomNode;\r\n\t\t\t\t}\r\n\t\t\t\tif(nodes[tempBottomNode.gridPosition[0]][tempBottomNode.gridPosition[1]].getNodeVisited()== false && checkNodeInQueue(tempQueue, tempBottomNode.gridPosition[0], tempBottomNode.gridPosition[1]) == false)\r\n\t\t\t\t{\r\n\t\t\t\t\t//check un-visited nodes and add new node into execution queue\r\n\t\t\t\t\ttempQueue.add(tempBottomNode);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t//check the left node and update new distance\r\n\t\t\tif(tempLeftNode != null)\r\n\t\t\t{\r\n\t\t\t\tif(tempLeftNode.getTotDistance()>tempQueue.get(0).getTotDistance()+tempQueue.get(0).getLeftWeight())\r\n\t\t\t\t{\r\n\t\t\t\t\ttempLeftNode.setTotDistance(tempQueue.get(0).getTotDistance()+tempQueue.get(0).getLeftWeight());\r\n\t\t\t\t\tVector<int[]> tempPath = new Vector<int[]>();\r\n\t\t\t\t\t//record the path\r\n\t\t\t\t\tfor(int m = 0; m < tempQueue.get(0).getTotPath().size(); m++)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tint[] tempXY = new int[2];\r\n\t\t\t\t\t\ttempXY = tempQueue.get(0).getTotPath().get(m);\r\n\t\t\t\t\t\ttempPath.add(tempXY);\r\n\t\t\t\t\t}\r\n\t\t\t\t\t//check new node to see if it exists in path\r\n\t\t\t\t\tif(checkPositionInPath(tempPath, tempQueue.get(0).gridPosition[0], tempQueue.get(0).gridPosition[1]) == false)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tint[] tempXY2 = new int[2];\r\n\t\t\t\t\t\ttempXY2 = tempQueue.get(0).gridPosition;\r\n\t\t\t\t\t\ttempPath.add(tempXY2);\r\n\t\t\t\t\t}\t\t\t\t\r\n\t\t\t\t\t//assign new path to the node\r\n\t\t\t\t\ttempLeftNode.setTotPath(tempPath);\r\n\t\t\t\t\t//update data back to original matrix\r\n\t\t\t\t\tnodes[tempQueue.get(0).leftNode.gridPosition[0]][tempQueue.get(0).leftNode.gridPosition[1]] = tempLeftNode;\r\n\t\t\t\t}\r\n\t\t\t\tif(nodes[tempLeftNode.gridPosition[0]][tempLeftNode.gridPosition[1]].getNodeVisited()== false && checkNodeInQueue(tempQueue, tempLeftNode.gridPosition[0], tempLeftNode.gridPosition[1]) == false)\r\n\t\t\t\t{\r\n\t\t\t\t\t//check un-visited nodes and add new node into execution queue\r\n\t\t\t\t\ttempQueue.add(tempLeftNode);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t//check the right node and update new distance\r\n\t\t\tif(tempRightNode != null)\r\n\t\t\t{\r\n\t\t\t\tif(tempRightNode.getTotDistance()>tempQueue.get(0).getTotDistance()+tempQueue.get(0).getRightWeight())\r\n\t\t\t\t{\r\n\t\t\t\t\ttempRightNode.setTotDistance(tempQueue.get(0).getTotDistance()+tempQueue.get(0).getRightWeight());\r\n\t\t\t\t\tVector<int[]> tempPath = new Vector<int[]>();\r\n\t\t\t\t\t//record the path\r\n\t\t\t\t\tfor(int m = 0; m < tempQueue.get(0).getTotPath().size(); m++)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tint[] tempXY = new int[2];\r\n\t\t\t\t\t\ttempXY = tempQueue.get(0).getTotPath().get(m);\r\n\t\t\t\t\t\ttempPath.add(tempXY);\r\n\t\t\t\t\t}\r\n\t\t\t\t\t//check to see if new node existed in path\r\n\t\t\t\t\tif(checkPositionInPath(tempPath, tempQueue.get(0).gridPosition[0], tempQueue.get(0).gridPosition[1]) == false)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tint[] tempXY2 = new int[2];\r\n\t\t\t\t\t\ttempXY2 = tempQueue.get(0).gridPosition;\r\n\t\t\t\t\t\ttempPath.add(tempXY2);\r\n\t\t\t\t\t}\r\n\t\t\t\t\t//assign new path to the node\r\n\t\t\t\t\ttempRightNode.setTotPath(tempPath);\r\n\t\t\t\t\t//update data back to original matrix\r\n\t\t\t\t\tnodes[tempQueue.get(0).rightNode.gridPosition[0]][tempQueue.get(0).rightNode.gridPosition[1]] = tempRightNode;\r\n\t\t\t\t}\r\n\t\t\t\tif(nodes[tempRightNode.gridPosition[0]][tempRightNode.gridPosition[1]].getNodeVisited()== false && checkNodeInQueue(tempQueue, tempRightNode.gridPosition[0], tempRightNode.gridPosition[1]) == false)\r\n\t\t\t\t{\r\n\t\t\t\t\t//check un-visited nodes and add new node into execution queue\r\n\t\t\t\t\ttempQueue.add(tempRightNode);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t//set current node to visited node and\r\n\t\t\t//remove current node from execution queue\r\n\t\t\ttempQueue.get(0).setNodeVistied(true);\r\n\t\t\tnodes[tempQueue.get(0).gridPosition[0]][tempQueue.get(0).gridPosition[1]].setNodeVistied(true);\r\n\t\t\ttempQueue.remove(0);\t\r\n\t\t}\r\n\t\t//print out the end node\r\n\t\t//print out the total distance between two points\r\n\t\t//print out the total number node of path\r\n\t\t//End point not Found\r\n\t\t//System.out.println(\"End Point: \"+(nodes[unexploreNode[0]][unexploreNode[1]].gridPosition[0]+1)+\" \"+(nodes[unexploreNode[0]][unexploreNode[1]].gridPosition[1]+1));\r\n\t\t//System.out.println(\"Total number of nodes: \"+nodes[unexploreNode[0]][unexploreNode[1]].getTotPath().size());\r\n\t\tshortestPath = nodes[unexploreNode[0]][unexploreNode[1]].getTotPath();\r\n\t\tshortestPath.add(unexploreNode);\r\n\t\treturn shortestPath;\t\t\r\n\t}", "private static TaskResult task4(int iterations) {\n\n System.out.println(\"\\n\\nTASK 4:\");\n System.out.printf(\"Generating a graph using HillClimbing algorithm \" +\n \"with %s iterations...\\n\", iterations);\n int[] puzzleSizes = new int[]{5, 7, 9, 11};\n int ITERATIONS = iterations;\n Solution solutions[][] = new Solution[puzzleSizes.length][ITERATIONS];\n double times_ms[][] = new double[puzzleSizes.length][ITERATIONS];\n int maxK = 0;\n Graph maxGraph = null;\n for (int i = 0; i < puzzleSizes.length; i++) { // for each puzzle size\n maxK = 0;\n maxGraph = null;\n for (int j = 0; j < ITERATIONS; j++) {\n Graph graph = new Graph(puzzleSizes[i]);\n graph.populateGraph();\n graph.populateNeighbors();\n graph.setDistances();\n Solution solution = Algorithms.BFS(graph);\n Result hillResult = Algorithms.HillClimbing(graph, solution, j);\n solution = hillResult.getSolution();\n double time_ms = hillResult.getComputationTime_ms();\n if (solution.getK() > maxK){\n maxK = solution.getK();\n maxGraph = new Graph(graph);\n }\n solutions[i][j] = solution;\n times_ms[i][j] = time_ms;\n }\n }\n System.out.printf(\"Hill Climbing Algorithm Complete!\\n\\n\");\n TaskResult result = new TaskResult(solutions, times_ms, maxK, maxGraph);\n return result;\n }", "public void Generator(Graph<MyNode, MyEdge> Graph, ArrayList<MySFC> S,int R,int x,int y,int z) {\n Map<MyEdge, Integer> r_e2 = new HashMap<>();\n for (MyEdge e : Graph.getEdges()) r_e2.put(e, r_e.get(e));\n Map<MyNode, Integer> r_n2 = new HashMap<>();\n for (MyNode n : Graph.getVertices()) r_n2.put(n, r_n.get(n));\n /**Sort SFC set in reverse order*/\n S.sort(new MyComparator());\n whole:for (MySFC s : S) {\n /**Deep copy of graph*/\n Graph<MyNode, MyEdge> Copy_Graph = Clone_Graph(Graph);\n /**Remove links which don't have enough capacity*/\n for (MyEdge e : Copy_Graph.getEdges()) if (s.Demand_Link_Resource > r_e.get(find_edge(e))) Copy_Graph.removeEdge(e);\n /**finding shortest path*/\n DijkstraShortestPath<MyNode, MyEdge> ds = new DijkstraShortestPath<>(Copy_Graph, new MyTransformer());\n DijkstraDistance<MyNode, MyEdge> dd = new DijkstraDistance<>(Copy_Graph);\n List<MyEdge> path;\n MyNode source = find_original_Node(Copy_Graph, s.source);\n MyNode sink = find_original_Node(Copy_Graph, s.sink);\n if (dd.getDistance(source, sink) != null) path = ds.getPath(source, sink);\n else {\n cost_link = 0;\n cost_node = 0;\n break whole;\n }\n Graph<MyNode, MyEdge> p = Dijkstra_Path(Copy_Graph, path, source);\n for (int i = 0; i < R; i++) {\n Map<MyNode, Set<MyVNF>> Deploy_List = new HashMap<>();\n ArrayList<MyNode> U = new ArrayList<MyNode>(p.getVertices());\n MyNode before = source;\n for (MyVNF f : s.VNF) {\n U = Capacity_Confirm(U, f, r_n2);\n if (U.size() != 0)before = Deploy_Value(U, Copy_Graph, p, Deploy_List, r_n2, f, s, x, y, z);\n else {\n step1:for (;;) {\n /**selecting the before and next node*/\n MyNode next = find_original_Node(Copy_Graph, Next_Generator(p, s.source, before));\n MyEdge e = Copy_Graph.findEdge(before, next);\n Copy_Graph.removeEdge(e);\n Graph_Modificator(Copy_Graph, p, before, next, s);\n step2:for (;;){\n dd = new DijkstraDistance<>(Copy_Graph,new MyTransformer());\n ds = new DijkstraShortestPath<>(Copy_Graph, new MyTransformer());\n List<MyEdge> path2 = new ArrayList<>();\n if (dd.getDistance(before, next) != null) {\n path2 = ds.getPath(before, next);\n Graph<MyNode, MyEdge> p2 = Dijkstra_Path(Copy_Graph, path2, source);\n for (MyNode n : p2.getVertices()) if(before.Node_Num!= n.Node_Num&&next.Node_Num!=n.Node_Num)U.add(n);\n if(U.size()!=0)Capacity_Confirm(U, f, r_n2);\n if (U.size() != 0) {\n List<MyEdge> path3 = new ArrayList<MyEdge>(path);\n path3.remove(e);\n path3.addAll(path2);\n Graph<MyNode, MyEdge> p3 = Dijkstra_Path(Graph, path3, source);\n before = find_original_Node(Copy_Graph,Deploy_Value(U, Graph, p3, Deploy_List, r_n2, f, s, x, y, z));\n U = List_Modificator(U, p3, before, source);\n p = p3;\n path = new ArrayList<MyEdge>(p3.getEdges());\n break step1;\n } else {\n ArrayList<MyNode> nl = new ArrayList<>(p2.getNeighbors(find_original_Node(p2,before)));\n Copy_Graph.removeEdge(Copy_Graph.findEdge(find_original_Node(Copy_Graph, nl.get(0)), find_original_Node(Copy_Graph, before)));\n }\n } else {\n before = next;\n if (before.Node_Num == s.sink.Node_Num) {\n cost_link = 0;\n cost_node = 0;\n break whole;\n } else break step2;\n }\n }\n }\n }\n }\n }\n if (cost_node != 0) for (MyEdge e : p.getEdges()) cost_link += c_e.get(find_edge(e)) * s.Demand_Link_Resource;\n }\n }", "private void generate () {\n\t\t\n\t\tArrayList<Integer[]> copyToCheck = new ArrayList<Integer[]> ();\n\t\tfor (int i = 0; i < Math.pow(size, 3); i++) { // Filling up the maze with blocks\n\t\t\tint x, y, z;\n\t\t\tx = i / (size * size); // Get the x, y, and z\n\t\t\ty = i % (size * size) / size;\n\t\t\tz = i % (size * size) % size;\n\t\t\t// spaces each block out by 1\n\t\t\tif (x%2 == 1 && y%2 == 1 && z%2 == 1) {\n\t\t\t\tmaze.add(new Block (x, y, z, ' ')); // 'w' means wall\n\t\t\t\t\n\t\t\t} else {\n\t\t\t\tmaze.add(new Block (x, y, z, 'w'));\n\t\t\t\tif (x > 0 && y > 0 && z > 0 && x < size-1 && y < size-1 && z < size-1) { // if the blocks are within the outer shell, add the blocks to the list of walls to check\n\t\t\t\t\tif (x%2+y%2+z%2 == 2)copyToCheck.add(new Integer[] {x, y, z});\n\t\t\t\t}\n\t\t\t}\n\t\t\t//if (x > 0 && y > 0 && z > 0 && x < size-1 && y < size-1 && z < size-1) { // checks if the coordinates are within the smaller cube that is below the first layer.\n\t\t\t\t//copyToCheck.add(new Integer[] { x, y, z });\t// the Block coords left to check\n\t\t\t//}\n\t\t}\n\t\t\n\t\tint starty, startx, startz; // x, y and z of current block\n\t\tstartz = 0; // the starting block will be at z = 0 because that is the bottom-most layer\n\n\t\tstartx = ((int)(Math.random() * (size/2)))*2 + 1; \n\t\tstarty = ((int)(Math.random() * (size/2)))*2 + 1;\n\t\tstart = get(startx, starty, startz);\n\t\t\n\t\tint endx, endy, endz; // x, y and z of end block\n\t\tendx = ((int)(Math.random() * (size/2)))*2 + 1; \n\t\tendy = ((int)(Math.random() * (size/2)))*2 + 1;\n\t\tendz = size-1;\n\t\tend = get(endx, endy, endz);\n\t\t\n\t\tArrayList<Integer[]> toCheck;\n\t\tboolean removed = true;\n\t\twhile (removed) {\n\t\t\tremoved = false;\n\t\t\ttoCheck = new ArrayList<Integer[]> ();\n\t\t\tfor (Integer[] thing : copyToCheck) {\n\t\t\t\ttoCheck.add(thing);\n\t\t\t}\n\t\t\tCollections.shuffle(toCheck); // Randomizes the order of the list of coordinates to check.\n\t\t\tfor (Integer[] coords : toCheck) {\n\t\t\t\tBlock curr = get(coords[0], coords[1], coords[2]);\n\t\t\t\tArrayList<Block> neighbors = getAdj(curr);\n\t\t\t\tboolean isJoint = false;\n\t\t\t\t\tfor (int i = 0; i < neighbors.size() - 1 && !isJoint; i++) {\n\t\t\t\t\t\tfor (int j = i+1; j < neighbors.size(); j++) {\n\t\t\t\t\t\t\tif (neighbors.get(j).t == ' ')\n\t\t\t\t\t\t\t\tif (neighbors.get(i).tree == neighbors.get(j).tree) {\n\t\t\t\t\t\t\t\t\tisJoint = true;\n\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif (isJoint) { // Even if it doesn't matter too much, don't want to spend a bunch of time iterating through the stuff unless I have too.\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\tif (!isJoint) {\n\t\t\t\t\t\tremoved = true;\n\t\t\t\t\t\tcopyToCheck.remove(coords);\n\t\t\t\t\t\tjoin(curr); // Joins all of the sets, changes the type of the block.\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t}\n\t\tArrayList<Block> t = new ArrayList<Block>();\n\t\tfor (int i = 0; i < 5*size; i++) {\n\t\t\tArrayList<Block> b = getWalls();\n\t\t\t\n\t\t\tint rand = (int)(Math.random()*b.size());\n\t\t\tint x = b.get(rand).x;\n\t\t\tint y = b.get(rand).y;\n\t\t\tint z = b.get(rand).z;\n\t\t\tset(x, y, z, new Trap (x, y, z));\n\t\t}\n\t\tstart.t = ' '; // sets the type of the start and end blocks\n\t\tend.t = 'e';\n\t}", "public void Main(){\n\t\t\n\t\tfillSFG();\n\t\tboolean[] visited = new boolean[AdjMatrix.length];\n\t\tLinkedList<Integer> pathdump = new LinkedList<Integer>();\n\t\textractForwardPaths(startNode, endNode, startNode, visited, pathdump);\n\t\textractLoops();\n\t\tgetForwardGains();\n\t\tgetLoopGains();\n\t\tprintForwardPaths();\n\t\tSystem.out.println(\"----------------------------------------------\");\n\t\tprintLoops();\n\t\t\n\t\t\n\t\tcalculateDeltas();\n\t\tcalculateTotalGain();\n\t\tprintDeltasAndTotalGain();\n\t\t\n\t\tfor (int i = 1; i < nonTouching.length; i++) {\n\t\t\tSystem.out.println(\"Level = \"+i);\n\t\t\tfor (int j = 0; j < nonTouching[i].size(); j++) {\n\t\t\t\tLinkedList<Integer> dump = new LinkedList<Integer>();\n\t\t\t\tdump = nonTouching[i].get(j);\n\t\t\t\tfor (int k = 0; k < dump.size(); k++) {\n\t\t\t\t\tSystem.out.print(dump.get(k)+\" \");\n\t\t\t\t}\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\t\t\tSystem.out.println(\"************************************************\");\n\t\t}\n\t\t\n\t\tProgramWindow.getInstance().showResults(forwardPaths,forwardGains,loops,loopGains,deltas,TotalGain,nonTouching);\n\t}", "private static void task0111(int nUMS, RedBlackBST<Integer, Integer> i, GenerateInt generateInt) {\n\t\tlong start = System.nanoTime();\n\t System.out.println( \"Fill in the table...RedBlast BST Tree\" );\n\t int count=1;\n\t\tfor( int z = 1; z <= nUMS; z++)\n\t\t{\n\t\t\t \t\t \n\t\t\ti.put(GenerateInt.generateNumber(), GenerateInt.generateNumber());\n//\t\t\tSystem.out.println(GenerateInt.generateNumber());\n\t\t\tcount = z;\n\n\t\t}\n\t\tSystem.out.println(\"Total Size \" + count);\n\t\tlong end = System.nanoTime();;\n\t\tlong elapsedTime = end - start;\n\t\tSystem.out.println(elapsedTime + \" NanoSeconds\");\n\t\tSystem.out.println(\"Average Time \" + elapsedTime/nUMS);\n\n\t\t\n\t}", "@Override\n public void generateMaze() {\n //Opens up the entrance to the maze\n MazeCell current=maze[0][0];\n current.openWall(Directions.North.getBValue());\n\n //A list of sets. The sets contain the cells which can be accessed from one another.\n List<List<MazeCell>> sets=new LinkedList<>();\n //All the walls in the maze\n List<InnerWall> wallList=new LinkedList<>();\n //Initially create a set for each cell\n //Also add the walls to the list\n for(int row=0;row< maze.length;row++){\n for(int column=0;column<maze[0].length;column++){\n sets.add(Arrays.asList(maze[row][column]));\n List<MazeCell> valid=returnValidNeighbours(maze[row][column].getX(), maze[row][column].getY());\n for(int i=0;i<valid.size();i++){\n wallList.add(new InnerWall(maze[row][column], valid.get(i)));\n }\n }\n }\n //Now we have as many wall sets as maze cells, each containing four walls.\n\n Random rnd=new Random();\n int idx;\n //Loops until only one set remains, meaning all cells can be reached from any cell\n while(sets.size()!=1){\n //Select a random wall\n idx=wallList.size()>1 ? rnd.nextInt(wallList.size()) : 0;\n InnerWall w= wallList.get(idx);\n //The two neighbouring cells\n MazeCell c1=w.parent;\n MazeCell c2=w.connected;\n\n //Their relative directions\n Directions d=Directions.getOffsetDirection(c1.getX(),c1.getY(),c2.getX(),c2.getY());\n\n //Check if the two cells are already connected\n if((c1.getOpenWalls() % d.getBValue())==d.getBValue())\n continue;\n\n //Two new sets\n List<MazeCell> set1=null;\n List<MazeCell> set2=null;\n //We get the sets\n boolean b1,b2;\n b1=b2=false;\n //We loop through the set of sets looking for the two which contains the two cells\n for(List<MazeCell> list : sets) {\n if(list.contains(c1)){\n set1=list;\n b1=true;\n }\n if(list.contains(c2)) {\n set2=list;\n b2=true;\n }\n if(b1 && b2)\n break;\n }\n //If the two sets are disjoint then we join them together\n if(set1!=null && set2!=null && !set1.equals(set2)){\n\n //We connect the two cells\n c1.openWall(d.getBValue());\n c2.openOppositeWall(d.getBValue());\n\n if(sleepDrawTime>0) {\n try {\n Thread.sleep(sleepDrawTime);\n mf.repaint();\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n }\n\n //Join the two sets\n List<MazeCell> temp= Stream.concat(set1.stream(), set2.stream())\n .collect(Collectors.toList());\n sets.remove(set2);\n sets.remove(set1);\n sets.add(temp);\n }\n //We remove the wall from the list\n wallList.remove(w);\n //As the walls are double-sided, two cells share a wall, we have to find the opposite cell's wall in the list\n InnerWall oppositeWall=wallList.stream().filter((x)->x.parent==w.connected).findFirst().orElse(null);\n wallList.remove(oppositeWall);\n\n\n }\n //We open an exit in the last row.\n maze[maze.length-1][rnd.nextInt(maze[0].length)].openWall(Directions.South.getBValue());\n\n }", "void a(bu var1_1, f var2_2, Map var3_3, double var4_4, double var6_5) {\n block6 : {\n var14_6 = fj.z;\n var8_7 = M.b();\n var9_8 = var2_2.a();\n while (var9_8.f()) {\n var10_9 = var9_8.a();\n if (var14_6) break block6;\n if (!var10_9.e() || var1_1.i((y.c.d)var10_9).bendCount() > 1) ** GOTO lbl-1000\n var11_10 = var1_1.i((y.c.d)var10_9);\n var12_11 = var11_10.getSourceRealizer();\n if (var1_1.i((y.c.d)var10_9).bendCount() == 0) {\n var11_10.appendBend(var11_10.getSourcePort().a(var12_11), var11_10.getSourcePort().b(var12_11) - 20.0 - var12_11.getHeight());\n }\n this.a(var1_1, var4_4, var6_5, (y.c.d)var10_9, true, false, false, var10_9.c());\n if (var14_6) lbl-1000: // 2 sources:\n {\n var8_7.a(var10_9, true);\n var8_7.a((Object)var3_3.get(var10_9), true);\n }\n var9_8.g();\n if (!var14_6) continue;\n }\n var1_1.a(as.a, var8_7);\n }\n var9_8 = new as();\n var9_8.a(5.0);\n var9_8.b(false);\n var9_8.a(true);\n try {\n var10_9 = new bI(1);\n var10_9.a(false);\n var10_9.b(true);\n var10_9.d().a(true);\n var10_9.a(var1_1, (ah)var9_8);\n return;\n }\n finally {\n var1_1.d_(as.a);\n }\n }", "public static void main(String args[]){\n int count = 1; \n long time1, time2;\n long redSum= 0;\n long blackSum =0;\n char[][] board = {\n {'W','B','W','B','W','B','W','B'},\n {'B','W','B','W','B','W','B','W'},\n {'W','B','X','B','X','B','X','B'},\n {'B','W','B','E','B','W','B','W'},\n {'W','B','X','B','X','B','X','B'},\n {'B','W','B','W','B','W','B','X'},\n {'X','B','X','B','X','B','X','B'},\n {'B','X','B','W','B','W','B','W'}\n \n } ;\n \n char[][] oldBoard = board;\n System.out.println(\"WIBB\");\n printBoard(board);\n while(count>0){\n \n time1 = new Date().getTime();\n for(int i =0; i<6; i++){\n \n // AlphaBetaTree isRedAI = new AlphaBetaTree(null, true, 0, -1000, 1000, 0, board, i);\n \n //isRedAI.getBestMove();\n \n }\n ArrayList<MoveCoordinates> aThing = new ArrayList<>();\n \n AlphaBetaTree isRedAI = new AlphaBetaTree(null, true, 0, -1000, 1000, 0, board, 3, aThing);\n // time1 = new Date().getTime();\n BoardMovesPair best= isRedAI.getBestMove();\n board = best.getBoard();\n if(board.equals(oldBoard)){\n \n break;\n }\n oldBoard = board;\n time2 = new Date().getTime();\n System.out.println(\"\\nRed's turn: \" + (count +1) );\n redSum+= (time2-time1);\n System.out.println(\"It took \" + (time2-time1 ) + \"ms\");\n printBoard(board);\n ArrayList<MoveCoordinates> allMoves = best.getAllMoves();\n if(allMoves == null){\n \n System.out.println(\"IS A NULL!!!\");\n \n }\n for(int i =0; i<allMoves.size(); i++){\n \n \n System.out.println(allMoves.get(i).getRow() + \" - \" + allMoves.get(i).getCol());\n \n }\n \n \n AlphaBetaTree isBlackAI = new AlphaBetaTree(null, false, 0, -1000, 1000, 0, board, 3, aThing);\n \n \n time1 = new Date().getTime();\n best = isBlackAI.getBestMove();\n board = best.getBoard();\n if(board.equals(oldBoard)){\n \n break;\n }\n oldBoard = board;\n time2 = new Date().getTime();\n System.out.println(\"\\nBlacks's turn: \" + (count +1) );\n blackSum+= (time2-time1);\n System.out.println(\"It took \" + (time2-time1 ) + \"ms\");\n \n printBoard(board);\n \n allMoves = best.getAllMoves();\n for(int i =0; i<allMoves.size(); i++){\n \n System.out.println(\"UM!? \" + allMoves.get(i).getRow() + \" - \" + allMoves.get(i).getCol());\n \n }\n \n count--;\n System.out.println(\"Count is: \" +count);\n }\n System.out.println(\"Red pieces: \" + BoardUtilities.countPieces('O', board));\n System.out.println(\"Red Kings: \" + BoardUtilities.countPieces('E', board));\n System.out.println(\"Average move: \" + (redSum/(count+1)) + \"ms\" );\n \n System.out.println(\"Black pieces: \" + BoardUtilities.countPieces('X', board));\n System.out.println(\"Black Kings: \" + BoardUtilities.countPieces('K', board));\n System.out.println(\"Average move: \" + (blackSum/(count+1)) + \"ms\" );\n printBoard(board);\n \n }", "public static void main(String args[]){\n NodeLoop A = new NodeLoop(\"A\");\n NodeLoop B = new NodeLoop(\"B\");\n NodeLoop C = new NodeLoop(\"C\");\n NodeLoop D = new NodeLoop(\"D\");\n NodeLoop E = new NodeLoop(\"E\");\n //A->B->C->D->E->C\n A.next = B;\n B.next = C;\n C.next = D;\n D.next = E;\n E.next = C;\n\n LoopDetection go = new LoopDetection();\n go.findLoop(A);\n\n }", "public static void pause() {\n int m = 0;\n for (int j = 0; j <= 1000000000; ++j) {\n for (int i = 0; i <= 1000000000; ++i) ++m;\n }\n\n }", "static void loopcomp () {\r\n\t\tint t40k= timer(8000,40000); \r\n\t\tint t1k= timer(8000,1000); \r\n\t\tSystem.out.println(\"Total number of loops for printing every 40k loops = \" + t40k);\r\n\t\tSystem.out.println(\"Total number of loops for printing every 1k loops = \"+ t1k);\r\n\t}", "void initLoop(){\n Context c = getContext();\n if (c == null){\n if (getLoop() > 0){\n setContext(new Context());\n initContext(getContext());\n }\n }\n else {\n initContext(getContext());\n }\n }", "public void resetLoop(){\n\t\tloopTime = 0;\n\t}", "public void execute(){\n \n double default_weight = 0; //This is the weight we change each time we process a new Node\n GraphNode default_node = Source; //we begin with source\n MinDistance.set(findNode(Source), 0.0); //sets the weight of the source node to 0\n MinDistanceStatus.set(findNode(Source), true); //sets the weight as final\n References.set(findNode(Source), new ArcGraph(0.0, Source, Source)); //sets the source of the as himself so no null pointer exception occurs\n \n for (int i = 0; i < Nodes.size(); i++){ //We execute the cicle the number of nodes we have\n \n setWeights(default_node, default_weight); //updates the weight of the weight list\n int min_weight_pos = getMinDistanceArray(); //returns the pos of the min weight\n double min_weight = MinDistance.get(min_weight_pos); //returns the min weight\n GraphNode min_node = Nodes.get(min_weight_pos); //Returns the node with the min weight\n int pos_node = findNode(min_node); //returns the pos of the destiny node \n MinDistanceStatus.set(min_weight_pos, true); //sets the weight as final REVISAR\n \n default_weight = min_weight; //Change of values to continue the cicle\n default_node = min_node; //Change of values to continue the \n \n }\n \n }", "public void run(){\n\t\tlong start_time, end_time, time_elapsed;\n System.out.println(\"Starting Problem \"+problem_number);\n start_time = System.currentTimeMillis();\n\t\t\n\t\tint matrixRows = 20;\n\t\tint matrixColumns = 20;\n\t\tint counter = 0;\n\t\tint num_of_adj = 4;\n\t\tString source = \"08 02 22 97 38 15 00 40 00 75 04 05 07 78 52 12 50 77 91 08 49 49 99 40 17 81 18 57 60 87 17 40 98 43 69 48 04 56 62 00 81 49 31 73 55 79 14 29 93 71 40 67 53 88 30 03 49 13 36 65 52 70 95 23 04 60 11 42 69 24 68 56 01 32 56 71 37 02 36 91 22 31 16 71 51 67 63 89 41 92 36 54 22 40 40 28 66 33 13 80 24 47 32 60 99 03 45 02 44 75 33 53 78 36 84 20 35 17 12 50 32 98 81 28 64 23 67 10 26 38 40 67 59 54 70 66 18 38 64 70 67 26 20 68 02 62 12 20 95 63 94 39 63 08 40 91 66 49 94 21 24 55 58 05 66 73 99 26 97 17 78 78 96 83 14 88 34 89 63 72 21 36 23 09 75 00 76 44 20 45 35 14 00 61 33 97 34 31 33 95 78 17 53 28 22 75 31 67 15 94 03 80 04 62 16 14 09 53 56 92 16 39 05 42 96 35 31 47 55 58 88 24 00 17 54 24 36 29 85 57 86 56 00 48 35 71 89 07 05 44 44 37 44 60 21 58 51 54 17 58 19 80 81 68 05 94 47 69 28 73 92 13 86 52 17 77 04 89 55 40 04 52 08 83 97 35 99 16 07 97 57 32 16 26 26 79 33 27 98 66 88 36 68 87 57 62 20 72 03 46 33 67 46 55 12 32 63 93 53 69 04 42 16 73 38 25 39 11 24 94 72 18 08 46 29 32 40 62 76 36 20 69 36 41 72 30 23 88 34 62 99 69 82 67 59 85 74 04 36 16 20 73 35 29 78 31 90 01 74 31 49 71 48 86 81 16 23 57 05 54 01 70 54 71 83 51 54 69 16 92 33 48 61 43 52 01 89 19 67 48\";\n\t\t\n\t\tString[] individualNums = source.split(\" \");\n\t\tmyMatrix m = new myMatrix(matrixRows, matrixColumns);\n\t\tArrayList<Integer> highest_factors = new ArrayList<Integer>();\n\t\tint highest_factor_product = 0;\n\t\tint temp_highest_factor_product = 1;\n\t\t\n\t\tfor(int i=0; i<m.getNumOfRows(); i++){\n\t\t\tfor(int j=0; j<m.getNumOfColumns(); j++){\t\t\t\t\n\t\t\t\tm.setMatrixEntry(i, j, Integer.valueOf(individualNums[counter]));\n\t\t\t\tcounter++;\n\t\t\t}\n\t\t}\n\t\t\n\t\tSystem.out.println(m);\n\t\t\n\t\t//up and down products\n\t\tfor(int i=0; i<m.getNumOfRows()-num_of_adj; i++){\t\t\t\n\t\t\tfor(int j=0; j<m.getNumOfColumns(); j++){\n\t\t\t\t\n\t\t\t\ttemp_highest_factor_product = 1;\n\t\t\t\tfor(int k=0;k<num_of_adj; k++){\n\t\t\t\t\ttemp_highest_factor_product = temp_highest_factor_product * m.getMatrixEntry(i+k, j);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif(temp_highest_factor_product > highest_factor_product){\n\t\t\t\t\thighest_factor_product = temp_highest_factor_product;\n\t\t\t\t\thighest_factors.clear();\n\t\t\t\t\t\n\t\t\t\t\tfor(int k=0;k<num_of_adj; k++){\n\t\t\t\t\t\thighest_factors.add(m.getMatrixEntry(i+k, j));\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\t//left and right products\n\t\tfor(int i=0; i<m.getNumOfRows(); i++){\t\t\t\n\t\t\tfor(int j=0; j<m.getNumOfColumns()-num_of_adj; j++){\n\t\t\t\t\n\t\t\t\ttemp_highest_factor_product = 1;\n\t\t\t\tfor(int k=0;k<num_of_adj; k++){\n\t\t\t\t\ttemp_highest_factor_product = temp_highest_factor_product * m.getMatrixEntry(i, j+k);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif(temp_highest_factor_product > highest_factor_product){\n\t\t\t\t\thighest_factor_product = temp_highest_factor_product;\n\t\t\t\t\thighest_factors.clear();\n\t\t\t\t\t\n\t\t\t\t\tfor(int k=0;k<num_of_adj; k++){\n\t\t\t\t\t\thighest_factors.add(m.getMatrixEntry(i, j+k));\n\t\t\t\t\t}\t\n\t\t\t\t}\t\t\n\t\t\t}\n\t\t}\t\t\n\t\t\n\t\t//NW to SE diagonals\n\t\tfor(int i=0; i<m.getNumOfRows()-num_of_adj; i++){\t\t\t\n\t\t\tfor(int j=0; j<m.getNumOfColumns()-num_of_adj; j++){\n\t\t\t\t\n\t\t\t\ttemp_highest_factor_product = 1;\n\t\t\t\tfor(int k=0;k<num_of_adj; k++){\n\t\t\t\t\ttemp_highest_factor_product = temp_highest_factor_product * m.getMatrixEntry(i+k, j+k);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif(temp_highest_factor_product > highest_factor_product){\n\t\t\t\t\thighest_factor_product = temp_highest_factor_product;\n\t\t\t\t\thighest_factors.clear();\n\t\t\t\t\t\n\t\t\t\t\tfor(int k=0;k<num_of_adj; k++){\n\t\t\t\t\t\thighest_factors.add(m.getMatrixEntry(i, j+k));\n\t\t\t\t\t}\t\n\t\t\t\t}\t\t\t\n\t\t\t}\n\t\t}\t\t\n\t\t\n\t\t//SW to NE diagonals\n\t\tfor(int i=0+num_of_adj-1; i<m.getNumOfRows(); i++){\t\t\t\n\t\t\tfor(int j=0+num_of_adj-1; j<m.getNumOfColumns(); j++){\n\t\t\t\t\n\t\t\t\ttemp_highest_factor_product = 1;\n\t\t\t\tfor(int k=0;k<num_of_adj; k++){\n\t\t\t\t\ttemp_highest_factor_product = temp_highest_factor_product * m.getMatrixEntry(i-k, j+k);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif(temp_highest_factor_product > highest_factor_product){\n\t\t\t\t\thighest_factor_product = temp_highest_factor_product;\n\t\t\t\t\thighest_factors.clear();\n\t\t\t\t\t\n\t\t\t\t\tfor(int k=0;k<num_of_adj; k++){\n\t\t\t\t\t\thighest_factors.add(m.getMatrixEntry(i-k, j+k));\n\t\t\t\t\t}\n\t\t\t\t}\t\t\t\t\n\t\t\t}\n\t\t}\n\t\t\n\t\tSystem.out.println(highest_factor_product + \"\\n\\n\" + highest_factors);\n\t\t\n\t\tend_time = System.currentTimeMillis();\n System.out.println(\"Finished Problem\");\n time_elapsed = end_time - start_time;\n System.out.println(\"Time taken to finish problem: \"+time_elapsed);\n\t\t\n\t}", "public void execute() {\r\n\t\tgraph = new Graph();\r\n\t\tfor (int i = 0; i < WIDTH_TILES; i++) {// loops x-coords\r\n\t\t\tfor (int j = 0; j < HEIGHT_TILES; j++) {// loops y-coords\r\n\t\t\t\taddNeighbours(i, j);// adds neighbours/connections for each node\r\n\t\t\t}// for (j)\r\n\t\t}// for (i)\r\n\t\t\r\n\t\trunning = true;// sets the simulation to running\r\n\t}", "public void step(){\n //System.out.println(\"step\");\n //display();\n Cell[][] copy = new Cell[world.length][world.length];\n for(int r = 0; r<world.length;r++){\n for(int c=0; c<world[r].length;c++){\n copy [r][c] = new Cell();\n copy[r][c].setState(world[r][c].isAlive());\n }\n }\n\n for(int r = 0; r<world.length;r++){\n for(int c=0; c<world[r].length;c++){ \n int n = getNumberOfLiveNeighbours(r,c);\n if(world[r][c].isAlive()){\n if(n<2||n>3){\n copy[r][c].setState(false);\n }\n }else{\n if(n==3){\n copy[r][c].setState(true);\n }\n }\n }\n }\n for(int r = 0; r<world.length;r++){\n for(int c=0; c<world[r].length;c++){\n world[r][c].setState(copy[r][c].isAlive());\n }\n }\n }", "public void nextIterate() {\n\tdd1[0] = POW2_53 * d1;\n\tdd1[1] = 0.0;\n\tdddivd(dd1, POW3_33, dd2);\n\tddmuldd(POW3_33, Math.floor(dd2[0]), dd2);\n\tddsub(dd1, dd2, dd3);\n\td1 = dd3[0];\n\tif (d1 < 0.0) {\n\t d1 += POW3_33;\n\t}\n }", "private void fletcher_loop(){\r\n\t\tfor(; i.getPosition() < array1.getLength(); i.increment(null, duration)){\r\n\t\t\tlang.nextStep();\r\n\t\t\t\r\n\t\t\tsc.toggleHighlight(2,3);\r\n\t\t\tshowCalc_1(sum1.get(), array1.getData(i.getPosition()));\r\n\t\t\t\r\n\t\t\tsc_calc.hide();\r\n\t\t\tsum1.add(array1.getData(i.getPosition())); sum1.mod(255); sum1.switchHighlight(); op_counter.add(2);\r\n\t\t\tlang.nextStep();\r\n\t\t\t\r\n\t\t\tsc.toggleHighlight(3,4);\r\n\t\t\tsum1.switchHighlight(); \r\n\t\t\tshowCalc_1(sum2.get(), sum1.get());\r\n\t\t\t\r\n\t\t\tsc_calc.hide();\r\n\t\t\tsum2.add(sum1.get()); sum2.mod(255); sum2.switchHighlight(); op_counter.add(2);\r\n\t\t\tlang.nextStep();\r\n\t\t\t\r\n\t\t\tsum2.switchHighlight();\r\n\t\t\tsc.toggleHighlight(4,2);\r\n\t\t}\r\n\t}", "public static void main(String[] args) {\n long startTime = System.nanoTime();\n Board b = new Board();\n b.board = InitialPositions.kiwiPeteBoard; // perft test\n\n int p2 = 0;\n int p3 = 0;\n int p4 = 0;\n int p5 = 0;\n\n List<Move> p1Moves = b.validMoves();\n int p1 = p1Moves.size();\n for (Move m : p1Moves){\n b.makeMove(m);\n List<Move> p2Moves = b.validMoves();\n p2 += p2Moves.size();\n for (Move n : p2Moves){\n b.makeMove(n);\n List<Move> p3Moves = b.validMoves();\n for (Move m3 : p3Moves){\n b.makeMove(m3);\n List<Move> moves4 = b.validMoves();\n p4 += moves4.size();\n for (Move m4 : moves4){\n b.makeMove(m4);\n p5 += b.validMoves().size();\n b.undoMove(m4);\n }\n b.undoMove(m3);\n }\n p3 += p3Moves.size();\n b.undoMove(n);\n }\n b.undoMove(m);\n }\n System.out.println();\n System.out.println(p1);\n System.out.println(p2);\n System.out.println(p3);\n System.out.println(p4);\n System.out.println(p5); // 193690690\n System.out.println(\"Time taken: \"+(System.nanoTime()-startTime)); // with int castles : 35003485400\n }", "public void buildPathes() {\n\n for (Fruit fruit :game.getFruits()) {\n\n GraphNode.resetCounterId();\n changePlayerPixels();\n addBlocksVertices();\n Point3D fruitPixels = new Point3D(fruit.getPixels()[0],fruit.getPixels()[1]);\n GraphNode fruitNode = new GraphNode(fruitPixels);\n vertices.add(fruitNode);\n Target target = new Target(fruitPixels, fruit);\n\n //find the neigbours\n BFS();\n\n // build the grpah\n buildGraph(target);\n }\n }", "private void run() {\n final int[][] graph = new int[][] {\n {0, 16, 13, 0, 0, 0},\n {0, 0, 10, 12, 0, 0},\n {0, 4, 0, 0, 14, 0},\n {0, 0, 9, 0, 0, 20},\n {0, 0, 0, 7, 0, 4},\n {0, 0, 0, 0, 0, 0}\n };\n\n System.out.println(String.format(\"The maximum possible flow is %d\", fordFulkerson(graph, 0, 5)));\n }", "public void createWorldMap() {\r\n\t\tdo {\r\n\t\t\t//\t\t@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ Recursive map generation method over here@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@\r\n\t\t\t//Generation loop 1 *ADDS VEIN STARTS AND GRASS*\r\n\r\n\t\t\tfor (int i = 0; i < tileMap.length; i++) {\r\n\t\t\t\tfor (int j = 0; j < tileMap[i].length; j++) {\r\n\r\n\t\t\t\t\tif (Math.random()*10000>9999) { //randomly spawn a conore vein start\r\n\t\t\t\t\t\ttileMap[i][j] = new ConoreTile (conore, true);\r\n\t\t\t\t\t\tconoreCount++;\r\n\t\t\t\t\t}else if (Math.random()*10000>9999){\r\n\t\t\t\t\t\ttileMap[i][j] = new KannaiteTile(kanna, true);\r\n\t\t\t\t\t\tkannaiteCount++;\r\n\t\t\t\t\t}else if(Math.random()*10000>9999){\r\n\t\t\t\t\t\ttileMap[i][j] = new FuelTile(fuel, true);\r\n\t\t\t\t\t\tfuelCount++;\r\n\t\t\t\t\t}else if(Math.random()*10000>9999) {\r\n\t\t\t\t\t\ttileMap[i][j] = new ForestTile(forest, true);\r\n\t\t\t\t\t\tforestCount++;\r\n\t\t\t\t\t}else if(Math.random()*10000>9999){\r\n\t\t\t\t\t\ttileMap[i][j] = new OilTile(oil,true);\r\n\t\t\t\t\t}else if(Math.random()*10000>9997) {\r\n\t\t\t\t\t\ttileMap[i][j] = new MountainTile(mountain, true);\r\n\t\t\t\t\t}else {\r\n\t\t\t\t\t\ttileMap[i][j] = new GrassTile(dirt);\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t} // End for loop \r\n\t\t\t} // End for loop\r\n\t\t\t//End generation loop 1\r\n\r\n\t\t\t//Generation loop 2 *EXPANDS ON THE VEINS*\r\n\t\t\tdo {\r\n\t\t\t\tif (conoreCount<6) {\r\n\t\t\t\t\ttileMap[(int)Math.random()*200][(int)Math.random()*200] = new ConoreTile (conore,true);\r\n\t\t\t\t\tconoreCount++;\r\n\t\t\t\t}else {\r\n\t\t\t\t\tconorePass = true;\r\n\t\t\t\t}\r\n\t\t\t\tif (kannaiteCount<6) {\r\n\t\t\t\t\ttileMap[(int)Math.random()*200][(int)Math.random()*200] = new KannaiteTile (kanna,true);\r\n\t\t\t\t\tkannaiteCount++;\r\n\t\t\t\t}else {\r\n\t\t\t\t\tkannaitePass = true;\r\n\t\t\t\t}\r\n\t\t\t\tif (fuelCount<6) {\r\n\t\t\t\t\ttileMap[(int)Math.random()*200][(int)Math.random()*200] = new FuelTile (fuel,true);\r\n\t\t\t\t\tfuelCount++;\r\n\t\t\t\t}else {\r\n\t\t\t\t\tfuelPass = true;\r\n\t\t\t\t}\r\n\t\t\t\tif (forestCount<6) {\r\n\t\t\t\t\ttileMap[(int)Math.random()*200][(int)Math.random()*200] = new ForestTile (forest,true);\r\n\t\t\t\t\tforestCount++;\r\n\t\t\t\t}else {\r\n\t\t\t\t\tforestPass = true;\r\n\t\t\t\t}\r\n\r\n\t\t\t\tSystem.out.println(\"Conore: \" + conoreCount + \" - \" + conorePass);\r\n\t\t\t\tSystem.out.println(\"Kannaite: \" + kannaiteCount + \" - \" + kannaitePass);\r\n\t\t\t\tSystem.out.println(\"Fuel: \" + fuelCount + \" - \" + fuelPass);\r\n\t\t\t\tSystem.out.println(\"Forest: \" + forestCount + \" - \" + forestPass);\r\n\t\t\t\tSystem.out.println(\"\");\r\n\t\t\t}while(!conorePass || !kannaitePass || !fuelPass || !forestPass);\r\n\r\n\t\t\tfor (int i = 0; i < tileMap.length; i++) {\r\n\t\t\t\tfor (int j = 0; j < tileMap[i].length; j++) {\r\n\t\t\t\t\tbuildConore(i,j);\r\n\t\t\t\t\tbuildKannaite(i,j);\r\n\t\t\t\t\tbuildFuel(i,j);\r\n\t\t\t\t\tbuildForest(i,j);\r\n\t\t\t\t}//End of for loop\r\n\t\t\t}//End of for loop\r\n\t\t\t//End of generation loop 2\r\n\r\n\t\t\t//Generation loop 3 *COUNT ORES*\r\n\t\t\tint loop3Count = 0;\r\n\t\t\tconorePass = false;\r\n\t\t\tkannaitePass = false;\r\n\t\t\tfuelPass = false;\r\n\t\t\tforestPass = false;\r\n\t\t\tdo {\r\n\t\t\t\tconoreCount = 0;\r\n\t\t\t\tkannaiteCount = 0;\r\n\t\t\t\tfuelCount = 0;\r\n\t\t\t\tforestCount = 0;\r\n\t\t\t\tfor (int i = 0; i < tileMap.length; i++) {\r\n\t\t\t\t\tfor (int j = 0; j < tileMap[i].length; j++) {\r\n\t\t\t\t\t\tif (tileMap[i][j] instanceof ConoreTile) {\r\n\t\t\t\t\t\t\tconoreCount++;\r\n\t\t\t\t\t\t}else if(tileMap[i][j] instanceof KannaiteTile) {\r\n\t\t\t\t\t\t\tkannaiteCount++;\r\n\t\t\t\t\t\t}else if(tileMap[i][j] instanceof FuelTile) {\r\n\t\t\t\t\t\t\tfuelCount++;\r\n\t\t\t\t\t\t}else if(tileMap[i][j] instanceof ForestTile) {\r\n\t\t\t\t\t\t\tforestCount++;\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\tfor (int i = 0; i < tileMap.length; i++) {\r\n\t\t\t\t\tfor (int j = 0; j < tileMap[i].length; j++) {\r\n\t\t\t\t\t\tif (conoreCount < 220) {\r\n\t\t\t\t\t\t\tbuildConore(i,j);\r\n\t\t\t\t\t\t}else {\r\n\t\t\t\t\t\t\tconorePass = true;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tif (kannaiteCount < 220) {\r\n\t\t\t\t\t\t\tbuildKannaite(i,j);\r\n\t\t\t\t\t\t}else {\r\n\t\t\t\t\t\t\tkannaitePass = true;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tif (fuelCount< 220) {\r\n\t\t\t\t\t\t\tbuildFuel(i,j);\r\n\t\t\t\t\t\t}else {\r\n\t\t\t\t\t\t\tfuelPass = true;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tif (forestCount < 220) {\r\n\t\t\t\t\t\t\tbuildForest(i,j);\r\n\t\t\t\t\t\t}else {\r\n\t\t\t\t\t\t\tforestPass = true;\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\tSystem.out.println(\"Conore: \" + conoreCount + \" - \" + conorePass);\r\n\t\t\t\tSystem.out.println(\"Kannaite: \" + kannaiteCount + \" - \" + kannaitePass);\r\n\t\t\t\tSystem.out.println(\"Fuel: \" + fuelCount + \" - \" + fuelPass);\r\n\t\t\t\tSystem.out.println(\"Forest: \" + forestCount + \" - \" + forestPass);\r\n\t\t\t\tSystem.out.println(\"\");\r\n\t\t\t\tloop3Count++;\r\n\t\t\t\tif (loop3Count > 100) {\r\n\t\t\t\t\tSystem.out.println(\"map generation failed! restarting\");\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t}while(!conorePass || !kannaitePass || !fuelPass || !forestPass);\r\n\t\t\t//END OF LOOP 3\r\n\r\n\t\t\t//LOOP 4: THE MOUNTAIN & OIL LOOP\r\n\t\t\tfor (int i = 0; i < tileMap.length; i++) {\r\n\t\t\t\tfor (int j = 0; j < tileMap[i].length; j++) {\r\n\t\t\t\t\tbuildMountain(i,j);\r\n\t\t\t\t\tbuildOil(i,j);\r\n\t\t\t\t}\r\n\t\t\t}//End of THE Mountain & OIL LOOP\r\n\r\n\t\t\t//ADD MINIMUM AMOUNT OF ORES\r\n\r\n\t\t\t//Generation Loop 5 *FINAL SETUP*\r\n\t\t\tfor (int i = 0; i < tileMap.length; i++) {\r\n\t\t\t\tfor (int j = 0; j < tileMap[i].length; j++) {\r\n\r\n\t\t\t\t\tif(i == 1 || j == 1 || i == tileMap.length-2 || j == tileMap[i].length-2) {\r\n\t\t\t\t\t\ttileMap[i][j] = new DesertTile(desert);\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\tif (i == 0 || j == 0 || i == tileMap.length-1 || j == tileMap[i].length-1) {\r\n\t\t\t\t\t\ttileMap[i][j] = new WaterTile(water);\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t}//End of for loop\r\n\t\t\t}//End of for loop\r\n\t\t\t//End of generation loop 5\r\n\t\t\t//mapToString();//TEST RUN\r\n\t\t} while(!conorePass || !kannaitePass || !fuelPass || !forestPass); // End createWorldMap method\r\n\t}", "private static void Simulate(int noCycles) throws IOException\n\t{\n\t\tfor (int i = 1; i <= noCycles; i++)\n\t\t{\n\t\t\tSystem.out.println(\"---------------------------- Cycle : \" + i + \"--------------------------------\");\n\t\t\tfetchStage();\n\t\t\tdecodeStage();\n\t\t\texecute1();\n\t\t\texecute2Stage();\n\t\t\tbranchStage();\n\t\t\tdelayStage();\n\t\t\tmemoryStage();\n\t\t\twritebackStage();\n\t\t\tDisplay();\n\t\t\tSystem.out.println(\"-----------------------------------------------------------------------------\");\n\t\t\tif (isComplete)\n\t\t\t\tbreak;\n\t\t}\n\t}", "void createWires() {\n this.splitBoard(new Posn(0, 0), this.height, this.width);\n int counter = 0;\n for (int i = 0; i < this.width; i++) {\n for (int j = 0; j < this.height; j++) {\n nodes.set(counter, this.board.get(i).get(j));\n counter++;\n }\n }\n }", "public boolean isLoopMode();", "private void run(){\r\n\t\tArrayList<Integer> parcours = new ArrayList<Integer>();\r\n\t\tArrayList<Integer> sommets = new ArrayList<Integer>();\r\n\t\t\r\n\t\t//initialisation de la liste des sommets\r\n\t\tfor (int i=1; i<super.g.getDim();i++) {\r\n\t\t\tsommets.add(i);\r\n\t\t}\r\n\r\n\t\t//g�n�ration d'un parcours initial\r\n\t\tAlgo2opt algo = new Algo2opt(super.g);\r\n\t\tsuper.parcoursMin = algo.parcoursMin;\r\n\t\tsuper.dist = algo.dist;\r\n\r\n\t\tcheminMin(parcours,sommets,super.g.getDim(), 0);\r\n\t}", "public static void main(String[] args){\n\t\tint increment=1;\n\t\tfor(int m=0;m<=5000;m+=increment){\n\t\t\tif(m==10)\n\t\t\t\tincrement=5;\n\t\t\tif(m==100)\n\t\t\t\tincrement=100;\n\t\t\tif(m==500)\n\t\t\t\tincrement=500;\n\n\t\t\tfor(int l=0;l<30;++l){\n\t\t\t\tdouble[][][] AFFINITY3=new double[Task.TYPES_OF_TASK_NUMBER][Task.TYPES_OF_TASK_NUMBER][Task.TYPES_OF_TASK_NUMBER];\n\t\t\t\tRandom r=new Random(l);\n\t\t\t\tdouble affinity;\n\t\t\t\tfor(int i=0;i<Task.TYPES_OF_TASK_NUMBER;++i){\n\t\t\t\t\tfor(int j=0;j<Task.TYPES_OF_TASK_NUMBER;++j){\n\t\t\t\t\t\tfor(int k=0;k<Task.TYPES_OF_TASK_NUMBER;++k){\n\t\t\t\t\t\t\tdo{\n\t\t\t\t\t\t\t\taffinity=r.nextDouble();\n\t\t\t\t\t\t\t}while(affinity==0);\n\t\t\t\t\t\t\tAFFINITY3[i][j][k]=AFFINITY3[i][k][j]=AFFINITY3[k][i][j]=AFFINITY3[j][i][k]=AFFINITY3[k][j][i]=AFFINITY3[j][k][i]=affinity;\t\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tList<Node> infrastructure=new ArrayList<>();\n\t\t\t\tfor(int i=0; i<TEST_NUMBER_OF_NODES;++i)\n\t\t\t\t\tinfrastructure.add(new Node(TEST_NUMBER_OF_CORES, TEST_RAM_SIZE));\n\t\t\t\tList<Task> tasks=new ArrayList<>();\n\t\t\t\tTaskType[] types=TaskType.values();\n\t\t\t\tfor(int i=0;i<TEST_NUMBER_OF_PROCESS;++i){\n\t\t\t\t\tTaskType type=types[r.nextInt(Task.TYPES_OF_TASK_NUMBER)];\n\t\t\t\t\tint instanceNumber=r.nextInt(101)+10;//from 10 to 100 instances\n\t\t\t\t\tint coresPerInstance=r.nextInt(12)+1;//from 1 to 12\n\t\t\t\t\tint ramPerinstance=r.nextInt(12*1024+101)+100;//from 100MB to 12GB\n\t\t\t\t\tdouble baseTime=r.nextInt(10001)+1000;//from 100 cycles to 1000\n\t\t\t\t\ttasks.add(new Task(type,instanceNumber,coresPerInstance,ramPerinstance,baseTime));\n\t\t\t\t}\n\t\t\t\tList<Integer> arrivalOrder=new ArrayList<>();\n\t\t\t\tint tasksSoFar=0;\n\t\t\t\tdo{\n\t\t\t\t\ttasksSoFar+=r.nextInt(11);\n\t\t\t\t\tarrivalOrder.add((tasksSoFar<tasks.size())?tasksSoFar:tasks.size());\n\t\t\t\t}while(tasksSoFar<tasks.size());\n\t\t\t\tfinal Scheduler scheduler=new AffinityAwareFifoScheduler(tasks, arrivalOrder, infrastructure,AFFINITY3,AffinityType.NORMAL,m);\n\t\t\t\tThread t=new Thread(new Runnable() {\t\t\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\tscheduler.runScheduler();\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t\tt.start();\n\t\t\t\ttry {\n\t\t\t\t\tt.join();\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\tSystem.out.println(\"Finished running.\");\n\t\t\t}\n\t\t}\n\t}", "public void solveSA() {\r\n initState();\r\n for (int ab = 0; ab < Config.NumberOfMetropolisResets; ab++) {\r\n LogTool.print(\"==================== INACTIVE: START CALC FOR OUTER ROUND \" + ab + \"=========================\",\"notification\");\r\n\r\n if (Config.SAverboselvl>1) {\r\n //<editor-fold defaultstate=\"collapsed\" desc=\"My custom code folding\">\r\n LogTool.print(\"SolveSA: Cur_State Read before Metropolis : A)\" + Cur_state[0] + \" B) \" + Cur_state[1] + \" C) \" + Cur_state[2],\"notification\");\r\n LogTool.print(\"Debug: GLS get before loop only once each reset: \" + this.getGlobal_Lowest_state_string(),\"notification\");\r\n LogTool.print(\"Debug: GLC_field get before loop only once each reset: \" + Cur_cost,\"notification\");\r\n LogTool.print(\"Debug: GLC_getter get before loop only once each reset: \" + this.getCur_cost(),\"notification\");\r\n LogTool.print(\"Debug: NXC_field get before loop only once each reset: \" + New_cost,\"notification\");\r\n LogTool.print(\"Debug: NXC_getter get before loop only once each reset: \" + this.getNew_cost(),\"notification\");\r\n //</editor-fold>\r\n }\r\n setCur_cost(costCURsuperfinal()); //One of four possible costNEX variants\r\n //<editor-fold defaultstate=\"collapsed\" desc=\"My custom code folding\">\r\n LogTool.print(\"CUR COST SUPER FINAL \",\"notification\");\r\n LogTool.print(\"SolveSA: Cur_State Read before Metropolis : A)\" + Cur_state[0] + \" B) \" + Cur_state[1] + \" C) \" + Cur_state[2],\"notification\");\r\n LogTool.print(\"Debug: GLS get before loop only once each reset: \" + this.getGlobal_Lowest_state_string(),\"notification\");\r\n LogTool.print(\"Debug: GLC_field get before loop only once each reset: \" + Cur_cost,\"notification\"); \r\n LogTool.print(\"Debug: GLC_getter get before loop only once each reset: \" + this.getCur_cost(),\"notification\");\r\n LogTool.print(\"Debug: NXC_field get before loop only once each reset: \" + New_cost,\"notification\");\r\n LogTool.print(\"Debug: NXC_getter get before loop only once each reset: \" + this.getNew_cost(),\"notification\");\r\n //</editor-fold>\r\n /* [Newstate] with random dwelltimes */\r\n New_state = newstater(); \r\n //<editor-fold defaultstate=\"collapsed\" desc=\"My custom code folding\">\r\n LogTool.print(\"NEW STATE \",\"notification\");\r\n LogTool.print(\"SolveSA: Cur_State Read before Metropolis : A)\" + Cur_state[0] + \" B) \" + Cur_state[1] + \" C) \" + Cur_state[2],\"notification\");\r\n LogTool.print(\"Debug: GLS get before loop only once each reset: \" + this.getGlobal_Lowest_state_string(),\"notification\");\r\n LogTool.print(\"Debug: GLC_field get before loop only once each reset: \" + Cur_cost,\"notification\"); \r\n LogTool.print(\"Debug: GLC_getter get before loop only once each reset: \" + this.getCur_cost(),\"notification\");\r\n LogTool.print(\"Debug: NXC_field get before loop only once each reset: \" + New_cost,\"notification\");\r\n LogTool.print(\"Debug: NXC_getter get before loop only once each reset: \" + this.getNew_cost(),\"notification\");\r\n //</editor-fold>\r\n// newstater();\r\n if (Config.SAverboselvl>1) {\r\n LogTool.print(\"SolveSA: New State before Metropolis: A)\" + New_state[0] + \" B) \" + New_state[1] + \" C) \" + New_state[2],\"notification\");\r\n }\r\n \r\n setNew_cost(costNEXsuperfinal()); //One of four possible costNEX variants\r\n //<editor-fold defaultstate=\"collapsed\" desc=\"My custom code folding\">\r\n LogTool.print(\"NEW COST SUPER FINAL \",\"notification\");\r\n LogTool.print(\"SolveSA: Cur_State Read before Metropolis : A)\" + Cur_state[0] + \" B) \" + Cur_state[1] + \" C) \" + Cur_state[2],\"notification\");\r\n LogTool.print(\"Debug: GLS get before loop only once each reset: \" + this.getGlobal_Lowest_state_string(),\"notification\");\r\n LogTool.print(\"Debug: GLC_field get before loop only once each reset: \" + Cur_cost,\"notification\"); \r\n LogTool.print(\"Debug: GLC_getter get before loop only once each reset: \" + this.getCur_cost(),\"notification\");\r\n LogTool.print(\"Debug: NXC_field get before loop only once each reset: \" + New_cost,\"notification\");\r\n LogTool.print(\"Debug: NXC_getter get before loop only once each reset: \" + this.getNew_cost(),\"notification\");\r\n //</editor-fold>\r\n if (Config.SAverboselvl>1) {\r\n LogTool.print(\"SolveSA: New Cost : \" + New_cost,\"notification\");\r\n }\r\n\r\n /**\r\n * MetropolisLoop\r\n * @param Config.NumberOfMetropolisRounds\r\n */\r\n\r\n for(int x=0;x<Config.NumberOfMetropolisRounds;x++) { \r\n LogTool.print(\"SolveSA Iteration \" + x + \" Curcost \" + Cur_cost + \" Newcost \" + New_cost,\"notification\");\r\n if ((Cur_cost - New_cost)>0) { // ? die Kosten\r\n \r\n if (Config.SAverboselvl>1) {\r\n LogTool.print(\"Fall 1 START\",\"notification\");\r\n }\r\n \r\n if (Config.SAdebug) {\r\n //<editor-fold defaultstate=\"collapsed\" desc=\"My custom code folding\">\r\n LogTool.print(\"SolveSA: (Fall 1) Metropolis NewCost : \" + this.getNew_cost(),\"notification\");\r\n LogTool.print(\"SolveSA: (Fall 1) Metropolis CurCost : \" + this.getCur_cost(),\"notification\");\r\n LogTool.print(\"SolveSA Cost delta \" + (Cur_cost - New_cost) + \" \",\"notification\");\r\n //</editor-fold>\r\n }\r\n Cur_state = New_state;\r\n Cur_cost = New_cost;\r\n if (Config.SAverboselvl>1) {\r\n //<editor-fold defaultstate=\"collapsed\" desc=\"My custom code folding\">\r\n LogTool.print(\"SolveSA: (Fall 1 nach set) Metropolis NewCost : \" + this.getNew_cost(),\"notification\");\r\n LogTool.print(\"SolveSA: (Fall 1 nach set) Metropolis CurCost : \" + this.getCur_cost(),\"notification\");\r\n LogTool.print(\"SolveSA: (Fall 1 nach set): NewState : \" + this.getNew_state_string(),\"notification\");\r\n LogTool.print(\"SolveSA: (Fall 1 nach set): CurState : \" + this.getCur_state_string(),\"notification\");\r\n //</editor-fold>\r\n }\r\n New_state = newstater();\r\n if (Config.SAdebug) {\r\n //<editor-fold defaultstate=\"collapsed\" desc=\"My custom code folding\">\r\n LogTool.print(\"SolveSA C1 after generate: NewCost : \" + this.getNew_cost(),\"notification\");\r\n LogTool.print(\"SolveSA C1 after generate: CurCost : \" + this.getCur_cost(),\"notification\");\r\n LogTool.print(\"SolveSA C1 after generate: NewState : \" + this.getNew_state_string(),\"notification\");\r\n LogTool.print(\"SolveSA C1 after generate: CurState : \" + this.getCur_state_string(),\"notification\");\r\n //</editor-fold>\r\n }\r\n if (Config.SAverboselvl>1) {\r\n LogTool.print(\"Fall 1 STOP \",\"notification\");\r\n }\r\n } else if (Math.exp(-(New_cost - Cur_cost)/temperature)> RandGenerator.randDouble(0.01, 0.99)) {\r\n if (Config.SAverboselvl>1) {\r\n LogTool.print(\"Fall 2 START: Zufallsgenerierter Zustand traegt hoehere Kosten als vorhergehender Zustand. Iteration: \" + x,\"notification\");\r\n }\r\n if (Config.SAdebug) {\r\n //<editor-fold defaultstate=\"collapsed\" desc=\"My custom code folding\">\r\n LogTool.print(\"SolveSA C2 before set: NewCost : \" + this.getNew_cost(),\"notification\");\r\n LogTool.print(\"SolveSA C2 before set: CurCost : \" + this.getCur_cost(),\"notification\");\r\n LogTool.print(\"SolveSA C2 before set: NewState : \" + this.getNew_state_string(),\"notification\");\r\n LogTool.print(\"SolveSA C2 before set: CurState : \" + this.getCur_state_string(),\"notification\");\r\n //</editor-fold>\r\n }\r\n Cur_state = New_state;\r\n Cur_cost = New_cost;\r\n \r\n if (Config.SAdebug) {\r\n //<editor-fold defaultstate=\"collapsed\" desc=\"My custom code folding\">\r\n LogTool.print(\"SolveSA C2 after set: NewCost : \" + this.getNew_cost(),\"notification\");\r\n LogTool.print(\"SolveSA C2 after set: CurCost : \" + this.getCur_cost(),\"notification\");\r\n //</editor-fold>\r\n }\r\n New_state = newstater();\r\n if (Config.SAdebug) {\r\n //<editor-fold defaultstate=\"collapsed\" desc=\"My custom code folding\">\r\n LogTool.print(\"SolveSA C2 after generate: NewCost : \" + this.getNew_cost(),\"notification\");\r\n LogTool.print(\"SolveSA C2 after generate: CurCost : \" + this.getCur_cost(),\"notification\");\r\n LogTool.print(\"SolveSA C2 after generate: NewState : \" + this.getNew_state_string(),\"notification\");\r\n LogTool.print(\"SolveSA C2 after generate: CurState : \" + this.getCur_state_string(),\"notification\");\r\n //</editor-fold>\r\n }\r\n if (Config.SAverboselvl>1) {\r\n LogTool.print(\"Fall 2 STOP: Zufallsgenerierter Zustand traegt hoehere Kosten als vorhergehender Zustand. Iteration: \" + x,\"notification\");\r\n }\r\n } else {\r\n New_state = newstater();\r\n }\r\n temperature = temperature-1;\r\n if (temperature==0) {\r\n break;\r\n }\r\n \r\n setNew_cost(costNEXsuperfinal());\r\n LogTool.print(\"NEW COST SUPER FINAL \",\"notification\");\r\n //<editor-fold defaultstate=\"collapsed\" desc=\"My custom code folding\">\r\n LogTool.print(\"SolveSA: Cur_State Read before Metropolis : A)\" + Cur_state[0] + \" B) \" + Cur_state[1] + \" C) \" + Cur_state[2],\"notification\");\r\n LogTool.print(\"Debug: GLS get before loop only once each reset: \" + this.getGlobal_Lowest_state_string(),\"notification\");\r\n LogTool.print(\"Debug: GLC_field get before loop only once each reset: \" + Cur_cost,\"notification\"); \r\n LogTool.print(\"Debug: GLC_getter get before loop only once each reset: \" + this.getCur_cost(),\"notification\");\r\n LogTool.print(\"Debug: NXC_field get before loop only once each reset: \" + New_cost,\"notification\");\r\n LogTool.print(\"Debug: NXC_getter get before loop only once each reset: \" + this.getNew_cost(),\"notification\");\r\n//</editor-fold>\r\n if ((x==58)&(ab==0)) {\r\n LogTool.print(\"Last internal Iteration Checkpoint\",\"notification\");\r\n if ((Cur_cost - New_cost)>0) {\r\n Cur_state = New_state;\r\n Cur_cost = New_cost; \r\n }\r\n }\r\n if ((x>58)&(ab==0)) {\r\n LogTool.print(\"Last internal Iteration Checkpoint\",\"notification\");\r\n }\r\n }\r\n //<editor-fold defaultstate=\"collapsed\" desc=\"Auskommentierter GLowestState Object Class\">\r\n// if (ab==9) {\r\n// double diff=0;\r\n// }\r\n \r\n // Hier wird kontrolliert, ob das minimalergebnis des aktuellen\r\n // Metropolisloops kleiner ist als das bsiher kleinste\r\n \r\n// if (Cur_cost<Global_lowest_cost) {\r\n// this.setGlobal_lowest_cost(Cur_cost);\r\n// GlobalState GLowestState = new GlobalState(this.Cur_state);\r\n// String rGLSOvalue = GLowestState.getGlobal_Lowest_state_string();\r\n// LogTool.print(\"GLS DEDICATED OBJECT STATE OUTPUT -- \" + GLowestState.getGlobal_Lowest_state_string(),\"notification\");\r\n// this.setGlobal_Lowest_state(GLowestState.getDwelltimes());\r\n // LogTool.print(\"READ FROM OBJECT OUTPUT -- \" + this.getGlobal_Lowest_state_string(),\"notification\");\r\n// LogTool.print(\"DEBUG: CurCost direct : \" + this.getCur_cost(),\"notification\"); \r\n// LogTool.print(\"Debug: Cur<global CurState get : \" + this.getCur_state_string(),\"notification\");\r\n// LogTool.print(\"Debug: Cur<global GLS get : \" + this.getGlobal_Lowest_state_string(),\"notification\");\r\n// this.setGlobal_Lowest_state(this.getCur_state(Cur_state));\r\n// LogTool.print(\"Debug: Cur<global GLS get after set : \" + this.getGlobal_Lowest_state_string(),\"notification\"); \r\n// }\r\n //</editor-fold>\r\n LogTool.print(\"SolveSA: Outer Iteration : \" + ab,\"notification\");\r\n LogTool.print(\"SolveSA: Last Calculated New State/Possible state inner loop (i.e. 99) : \" + this.getNew_state_string(),\"notification\");\r\n// LogTool.print(\"SolveSA: Best Solution : \" + this.getCur_state_string(),\"notification\");\r\n LogTool.print(\"SolveSA: GLS after all loops: \" + this.getGlobal_Lowest_state_string(),\"notification\");\r\n LogTool.print(\"SolveSA: LastNewCost, unchecked : \" + this.getNew_cost(),\"notification\");\r\n LogTool.print(\"SolveSA: CurCost : \" + this.getCur_cost() + \"i.e. lowest State of this round\",\"notification\"); \r\n }\r\n // return GLowestState;\r\n }", "static void test0() {\n\n System.out.println( \"Begin test0. ===============================\\n\" );\n\n Thread init = Thread.currentThread(); // init spawns the Mogwais\n\n // Create a GremlinsBridge of capacity 3.\n GremlinsBridge gremlinBridge = new GremlinsBridge( 3 );\n\n // Set an optional, test delay to stagger the start of each mogwai.\n int delay = 4000;\n\n // Create the Mogwais and store them in an array.\n Thread peds[] = {\n new Mogwai( \"Al\", 3, SIDE_ONE, gremlinBridge ),\n new Mogwai( \"Bob\", 4, SIDE_TWO, gremlinBridge ),\n };\n\n for ( int j = 0; j < peds.length; ++j ) {\n // Run them by calling their start() method.\n try {\n peds[j].start();\n init.sleep( delay );\n }\n catch ( InterruptedException e ) {\n System.err.println( \"Abort. Unexpected thread interruption.\" );\n break;\n }\n }\n // Now, the test must give the mogwai time to finish their crossings.\n for ( int j = 0; j < peds.length; ++j ) {\n try {\n peds[j].join();\n }\n catch ( InterruptedException e ) {\n System.err.println( \"Abort. Unexpected thread interruption.\" );\n break;\n }\n }\n System.out.println( \"\\n=============================== End test0.\" );\n return;\n }", "public void loop() {\n\t\tloop(1.0f, 1.0f);\n\t}", "private void run() {\n int code = memory[pc];\n while (code != 0) {\n nextCode(code);\n code = memory[++pc];\n }\n }", "@Override\n public void run() {\n \n initExplorationBounds();\n \n long timer = System.currentTimeMillis();\n \n // ITERATE THROUGH ALL THE POSSIBLE OBJECT SCOPES\n while (configuration.isIncrementalLoopUnroll() ||\n configuration.getObjectScope() <= configuration.getMaximumObjectScope())\n {\n \n // FOR EACH OBJECT SCOPE ITERATE THROUGH ALL THE LOOP UNROLLS\n // UNTIL NO LOOP EXHAUSTION IS ENCOUNTERED\n {\n FajitaRunner.printStep(\"FAJITA: Decorating Java code for \" +\n configuration.getObjectScope() + \" scope and \" +\n configuration.getLoopUnroll() + \" unroll\");\n runFajitaCodeDecorator();\n \n FajitaRunner.printStep(\"FAJITA: Translating Java -> Alloy\");\n runTaco();\n \n if (configuration.isIncrementalLoopUnroll())\n configuration.setInfiniteScope(true);\n \n if (configuration.isOnlyTranslateToAlloy()) {\n System.out.println(\"Translation to Alloy completed.\"); \n return;\n }\n \n if (configuration.getDiscoveredGoals() == 0) {\n System.out.println(\"No goals found for the chosen test selection criterion.\");\n return;\n }\n \n FajitaRunner.printStep(\"FAJITA: Enumerating Solutions using AlloyCLI\");\n runAlloyCli();\n \n FajitaRunner.printStep(\"Reporting Coverage\");\n FajitaOutputProcessor.newProcessor(configuration).getCoverage();\n \n/// boolean loopExhaustionEncountered = configuration.getCoveredGoals().removeAll(\n/// configuration.getLoopExhaustionIncarnations());\n\n System.out.println((System.currentTimeMillis() - timer) / 1000 + \" s\");\n \n // CHECK STOP CONDITIONS\n if (configuration.getCoveredGoals().size() == configuration.getDiscoveredGoals() ||\n configuration.getCoverageCriteria() == CoverageCriteria.CLASS_COVERAGE ||\n (configuration.getCoverageCriteria() == CoverageCriteria.DUAL_CLASS_BRANCH_COVERAGE &&\n (configuration.getDualClassBranchIteration() == 0 ||\n configuration.getCoveredGoals().size() == configuration.getDualDiscoveredBranches())))\n {\n return;\n }\n \n/// if (!loopExhaustionEncountered) break;\n }\n \n if (!configuration.isInfiniteScope()) {\n System.out.println(\"Finite scope exhausted.\");\n break;\n }\n \n configuration.setObjectScope(configuration.getObjectScope() + 1);\n configuration.setLoopUnroll(configuration.getObjectScope() / 2); \n }\n }", "public void generateGraph() {\n\t\tMap<Integer, MovingFObject> map = sc.getInitPos();\r\n\t\tgraph = new boolean[map.size()][map.size()];\r\n\t\tfor(int i = 0; i < map.size(); i++) {\r\n\t\t\tMovingFObject cloned = map.get(i).duplicate();\r\n\t\t\tArrayList<Location> locs = sc.traceLinearMotion(i,sc.getMaxVelocity(),cloned.getGoal());\r\n\t\t\tfor(int j = 0; j < map.size(); j++) {\r\n\t\t\t\tif(j != i) {\r\n\t\t\t\t\tfor(int k = 0; k < locs.size(); k++) {\r\n\t\t\t\t\t\tcloned.setLocation(locs.get(k));\r\n\t\t\t\t\t\tif(cloned.locationTouchingLocation(1, map.get(j), 2)) {\r\n\t\t\t\t\t\t\tgraph[i][j] = true;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tif(cloned.locationTouchingLocation(1, map.get(j), 0)) {\r\n\t\t\t\t\t\t\tgraph[j][i] = true;\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}", "public void run(){\n int i=0;\n while(i<times){\n g.set(m);\n m=g.get();\n printBoards(m);\n if(i<times-1)\n System.out.println();\n i++;\n }\n \n }", "public static void main(String[] args) {\n\t\tint loopidx = 1\r\n\t\tint sum =0;\r\n\t\tfinal LAST_loop_IDX =10;\r\n\t}", "private void setWinningTuples() {\n\t\tWINS = new ArrayList<Set<CMNMove>>();\n\t\tSet<CMNMove> winSet = new TreeSet<CMNMove>();\n\t\tfor (int i = MM; i > 0; i--) {\n\t\t\tknapsack(winSet, CC, i, NN);\n\t\t}// end for\n\n\t}", "private static void generateWorld(){\n for(int i = 0; i < SIZE*SIZE; i++){\n new Chunk();\n }\n }", "@Override\n\tpublic void run() {\n\t\tfileName = \"out_\" + Program.getProgram().getFileName() + \"_\";\n\t\tint numAddStop = 0;\n\t\t//fileName = \"out_themida_\";\n\n\t\t//fileState.clearContentFile();\n\t\t//bkFile.clearContentFile();\n\t\toverallStartTime = System.currentTimeMillis();\n\t\tlong overallStartTemp = overallStartTime;\n\t\t// BE-PUM algorithm\n\t\tSystem.out.println(\"Starting On-the-fly Model Generation algorithm.\");\n\t\tprogram.getResultFileTemp().appendInLine('\\n' + program.getFileName() + '\\t');\n\t\t\n\t\t// Set up initial context\n\t\tX86TransitionRule rule = new X86TransitionRule();\n\t\tBPCFG cfg = Program.getProgram().getBPCFG();\n\t\tEnvironment env = new Environment();\n\t\t//env.getMemory().resetImportTable(program);\n\t\tAbsoluteAddress location = Program.getProgram().getEntryPoint();\n\t\tInstruction inst = Program.getProgram().getInstruction(location, env);\n\t\tList<BPPath> pathList = new ArrayList<BPPath>();\n\t\t\n\t\t// Insert start node\n\t\tBPVertex startNode = null;\n\t\tstartNode = new BPVertex(location, inst);\n\t\tstartNode.setType(0);\n\t\tcfg.insertVertex(startNode);\n\n\t\tBPState curState = null;\n\t\tBPPath path = null;\n\t\tcurState = new BPState(env, location, inst);\n\t\tpath = new BPPath(curState, new PathList(), new Formulas());\n\t\tpath.setCurrentState(curState);\n\t\tpathList.add(path);\n\n\t\t/*if (Program.getProgram().getFileName().equals(\"api_test_v2.3_lvl1.exe\") \n\t\t\t\t&& isRestored) {\n\t\t\tSystem.out.println(\"Restore State from File.\");\n\t\t\tFileProcess reFile = new FileProcess(\"data/data/restoreState.txt\");\n\t\t\tpathList = restoreState(reFile);\n\t\t\t// bkFile.clearContentFile();\n\t\t\tSystem.out.println(\"Finished restoring state!\");\n\t\t}*/\n\n\t\t// Update at first -----------------------------\n\t\tTIB.setBeUpdated(true);\n\t\tTIB.updateTIB(curState);\n\t\t// ---------------------------------------------\n\n\t\t// PHONG - 20150801 /////////////////////////////\n\t\t// Packer Detection via Header\n\t\tSystem.out.println(\"================PACKER DETECTION VIA HEADER ======================\");\n\t\tif (OTFModelGeneration.detectPacker)\n\t\t{\n\t\t\tprogram.getDetection().detectViaHeader(program);\n\t\t\tprogram.getDetection().setToLogFirst(program);\n\t\t}\n\t\tSystem.out.println(\"==================================================================\");\n\t\t/////////////////////////////////////////////////\n\t\t\n\t\tsynchronized (OTFThreadManager.getInstance()) {\n\t\t\ttry {\n\t\t\t\tOTFThreadManager.getInstance().check(this, pathList);\n\t\t\t\tOTFThreadManager.getInstance().wait();\n\t\t\t} catch (Exception e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t\t// PHONG - 20150724\n\t\tSystem.out.println(\"================PACKER DETECTION VIA OTF======================\");\n\t\tprogram.getDetection().packedByTechniques();\n\t\tprogram.getDetection().packedByTechniquesFrequency();\n\t\tSystem.out.println(\"==============================================================\");\n\t}", "public void generate()\n {\n System.out.println(\"Initial allocated space for Set: Not supported\");\n// System.out.println(\"Initial allocated space for Set: \" + theMap.capacity());\n final long startTime = TimeUtils.nanoTime();\n Mnemonic m = new Mnemonic(123456789L);\n// GridPoint2 gp = new GridPoint2(0, 0);\n for (int x = -width; x < width; x++) {\n for (int y = -height; y < height; y++) {\n// for (int z = -height; z < height; z++) {\n\n// long z = (x & 0xFFFFFFFFL) << 32 | (y & 0xFFFFFFFFL);\n// z = ((z & 0x00000000ffff0000L) << 16) | ((z >>> 16) & 0x00000000ffff0000L) | (z & 0xffff00000000ffffL);\n// z = ((z & 0x0000ff000000ff00L) << 8 ) | ((z >>> 8 ) & 0x0000ff000000ff00L) | (z & 0xff0000ffff0000ffL);\n// z = ((z & 0x00f000f000f000f0L) << 4 ) | ((z >>> 4 ) & 0x00f000f000f000f0L) | (z & 0xf00ff00ff00ff00fL);\n// z = ((z & 0x0c0c0c0c0c0c0c0cL) << 2 ) | ((z >>> 2 ) & 0x0c0c0c0c0c0c0c0cL) | (z & 0xc3c3c3c3c3c3c3c3L);\n// z = ((z & 0x2222222222222222L) << 1 ) | ((z >>> 1 ) & 0x2222222222222222L) | (z & 0x9999999999999999L);\n// theMap.put(z, null); // uses 23312536 bytes of heap\n// long z = szudzik(x, y);\n// theMap.put(z, null); // uses 18331216 bytes of heap?\n// unSzudzik(pair, z);\n// theMap.put(0xC13FA9A902A6328FL * x ^ 0x91E10DA5C79E7B1DL * y, null); // uses 23312576 bytes of heap\n// theMap.put((x & 0xFFFFFFFFL) << 32 | (y & 0xFFFFFFFFL), null); // uses 28555456 bytes of heap\n theMap.add(new Vector2(x - width * 0.5f, y - height * 0.5f)); // crashes out of heap with 720 Vector2\n// gp.set(x, y);\n// theMap.add(gp.hashCode());\n// long r, s;\n// r = (x ^ 0xa0761d65L) * (y ^ 0x8ebc6af1L);\n// s = 0xa0761d65L * (z ^ 0x589965cdL);\n// r -= r >> 32;\n// s -= s >> 32;\n// r = ((r ^ s) + 0xeb44accbL) * 0xeb44acc8L;\n// theMap.add((int)(r - (r >> 32)));\n\n// theMap.add(m.toMnemonic(szudzik(x, y)));\n }\n }\n// }\n// final GridPoint2 gp = new GridPoint2(x, y);\n// final int gpHash = gp.hashCode(); // uses the updated GridPoint2 hashCode(), not the current GDX code\n// theMap.put(gp, gpHash | 0xFF000000); //value doesn't matter; this was supposed to test ObjectMap\n //theMap.put(gp, (53 * 53 + x + 53 * y) | 0xFF000000); //this is what the hashCodes would look like for the current code\n \n //final int gpHash = x * 0xC13F + y * 0x91E1; // updated hashCode()\n //// In the updated hashCode(), numbers are based on the plastic constant, which is\n //// like the golden ratio but with better properties for 2D spaces. These don't need to be prime.\n \n //final int gpHash = 53 * 53 + x + 53 * y; // equivalent to current hashCode()\n long taken = TimeUtils.timeSinceNanos(startTime);\n System.out.println(taken + \"ns taken, about 10 to the \" + Math.log10(taken) + \" power.\");\n// System.out.println(\"Post-assign allocated space for Set: \" + theMap.capacity());\n System.out.println(\"Post-assign allocated space for Set: Not supported\");\n }", "@Test\n public void TestIfNoCycle() {\n final int NUMBER_OF_ELEMENTS = 100;\n TripleList<Integer> tripleList = new TripleList<>();\n for (int i = 0; i < NUMBER_OF_ELEMENTS; ++i) {\n tripleList.add(i);\n }\n /**\n * Created 2 TripleLists, first jumps every single element, another\n * every two elements, in out case every two elements means every\n * NextElement*\n */\n TripleList<Integer> tripleListEverySingleNode = tripleList;\n TripleList<Integer> tripleListEveryTwoNodes = tripleList.getNext();\n for (int i = 0; i < NUMBER_OF_ELEMENTS * NUMBER_OF_ELEMENTS; ++i) {\n Assert.assertNotSame(tripleListEverySingleNode, tripleListEveryTwoNodes);\n //JumpToNextElement(ref tripleListEverySingleNode);\n if (null == tripleListEveryTwoNodes.getNext()) {\n // if list has end means there are no cycles\n break;\n } else {\n tripleListEveryTwoNodes = tripleListEveryTwoNodes.getNext();\n }\n }\n }", "@Test public void testPublic12() {\n Graph<Integer> graph= new Graph<Integer>();\n int i;\n\n // note this adds the adjacent vertices in the process\n for (i= 0; i < 10; i++)\n graph.addEdge(i, i + 1, 1);\n graph.addEdge(10, 0, 1);\n\n for (Integer vertex : graph.getVertices())\n assertTrue(graph.isInCycle(vertex));\n }", "public void generateOffspringPopulation() throws JMException{\n\n offspringPopulation_ = new SolutionSet[problemSet_.size()];\n\n for (int task = 0; task < problemSet_.size(); task++){\n offspringPopulation_[task] = new SolutionSet(populationSize_);\n if (crossover_.getClass() == SBXCrossover.class){\n Solution[] parents = new Solution[2];\n for (int i = 0; i < (populationSize_); i++) {\n // obtain parents\n parents = (Solution[]) selection_.execute(population_[task]);\n\n Solution[] offSpring = (Solution[]) crossover_\n .execute(parents);\n mutation_.execute(offSpring[0]);\n problemSet_.get(task).evaluate(offSpring[0]);\n problemSet_.get(task).evaluateConstraints(offSpring[0]);\n offspringPopulation_[task].add(offSpring[0]);\n } // for\n }\n else if (crossover_.getClass() == EGG.class){\n\n int[] permutation = new int[populationSize_];\n Utils.randomPermutation(permutation, populationSize_);\n etmo.util.Ranking ranking = new etmo.util.Ranking(population_[task]);\n SolutionSet front = ranking.getSubfront(0);\n\n front.Suppress();\n SolutionSet KP = null;\n if(front.size()> problemSet_.get(task).getNumberOfObjectives())\n KP = findingKneePoint(front, task);\n if(KP == null){\n KP = population_[task];\n }\n\n for (int i = 0; i < (populationSize_); i++) {\n // obtain parents\n int n = permutation[i];\n // STEP 2.1. Mating selection\n int r1,r2;\n r1 = PseudoRandom.randInt(0, KP.size() - 1);\n do {\n r2 = PseudoRandom.randInt(0, KP.size() - 1);\n } while (r2==r1);\n // STEP 2.2. Reproduction\n Solution child;\n Solution[] parents = new Solution[3];\n\n// 加入迁移:\n double tranRand = PseudoRandom.randDouble();\n if (tranRand <= 0.1){\n parents[1] = population_[PseudoRandom.randInt(0, problemSet_.size() - 1)].get(PseudoRandom.randInt(0, populationSize_ - 1));\n parents[2] = population_[PseudoRandom.randInt(0, problemSet_.size() - 1)].get(PseudoRandom.randInt(0, populationSize_ - 1));\n parents[0] = population_[task].get(n);\n child = (Solution) crossover_.execute(parents);\n\n mutation_.execute(child);\n\n problemSet_.get(task).evaluate(child);\n problemSet_.get(task).evaluateConstraints(child);\n offspringPopulation_[task].add(child);\n }\n\n\n\n else {\n parents[1] = KP.get(r1);\n parents[2] = KP.get(r2);\n parents[0] = population_[task].get(n);\n child = (Solution) crossover_.execute(parents);\n\n mutation_.execute(child);\n\n problemSet_.get(task).evaluate(child);\n problemSet_.get(task).evaluateConstraints(child);\n offspringPopulation_[task].add(child);\n }\n\n\n } // for\n }\n\n }\n\n\n\n\n }", "private static void Run() {\n\t\tfor (int i = 0; i < Width; i++) {\n\t\t\tfor (int j = 0; j < Height; j++) {\n\t\t\t\tUpdate(CountNeighbors(i, j), i, j);\n\t\t\t}\n\t\t}\n\t}", "public abstract void loop();" ]
[ "0.6058858", "0.59093153", "0.59056336", "0.59045994", "0.58642817", "0.58451456", "0.5837942", "0.5777387", "0.5760709", "0.5745271", "0.5660529", "0.56535935", "0.5644554", "0.5640298", "0.56391525", "0.5629283", "0.56183493", "0.55973226", "0.5576972", "0.5567588", "0.55674475", "0.55320686", "0.5524901", "0.5520672", "0.5518208", "0.5514885", "0.55128264", "0.5501298", "0.5501014", "0.5497001", "0.54959905", "0.5490687", "0.548554", "0.5473415", "0.5461111", "0.5460932", "0.5449337", "0.5446799", "0.5430258", "0.5429123", "0.54270756", "0.54131407", "0.5411279", "0.54109764", "0.5408966", "0.539295", "0.5390157", "0.5390009", "0.5388963", "0.5386431", "0.5368849", "0.5368849", "0.5367023", "0.5367023", "0.53651893", "0.5355786", "0.53518915", "0.53518224", "0.5347777", "0.5344743", "0.53432447", "0.53409725", "0.5340583", "0.5331437", "0.53265226", "0.53187716", "0.5316984", "0.5304905", "0.5304894", "0.52934885", "0.52928984", "0.5286154", "0.52824426", "0.5276465", "0.5275484", "0.5271155", "0.52669144", "0.5265715", "0.5265397", "0.52592736", "0.5256241", "0.5254061", "0.5252392", "0.5251125", "0.5250957", "0.5247613", "0.52411723", "0.5233561", "0.5232775", "0.5227237", "0.52200985", "0.5214273", "0.5213704", "0.5213702", "0.5213574", "0.52109426", "0.52049905", "0.5203066", "0.5202952", "0.5194509" ]
0.5400835
45
TODO Autogenerated method stub
protected void show(JPanel cardPanel2, String string) { }
{ "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
We check permission to know if they are granted
private void checkPermissions(){ if (ActivityCompat.checkSelfPermission(this, Manifest.permission.ACCESS_FINE_LOCATION) != PackageManager.PERMISSION_GRANTED && ActivityCompat.checkSelfPermission(this,Manifest.permission.ACCESS_COARSE_LOCATION) != PackageManager.PERMISSION_GRANTED){ ActivityCompat.requestPermissions(this, new String[]{ Manifest.permission.ACCESS_FINE_LOCATION, Manifest.permission.ACCESS_COARSE_LOCATION },PERMS_CALL_ID); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void checkRunTimePermission() {\n\n if(checkPermission()){\n\n Toast.makeText(MainActivity.this, \"All Permissions Granted Successfully\", Toast.LENGTH_LONG).show();\n\n }\n else {\n\n requestPermission();\n }\n }", "private boolean permisos() {\n for(String permission : PERMISSION_REQUIRED) {\n if(ContextCompat.checkSelfPermission(getContext(), permission) != PackageManager.PERMISSION_GRANTED) {\n return false;\n }\n }\n return true;\n }", "@Override\n public void checkPermission(Permission perm) {\n }", "public boolean isAllGranted(){\n //PackageManager.PERMISSION_GRANTED\n return false;\n }", "public boolean isPermissionGranted(String permission){\n return true;\n// else\n// return false;\n }", "public boolean hasPerms()\n {\n return ContextCompat.checkSelfPermission(itsActivity, itsPerm) ==\n PackageManager.PERMISSION_GRANTED;\n }", "public void permission_check() {\n //Usage Permission\n if (!isAccessGranted()) {\n new LovelyStandardDialog(MainActivity.this)\n .setTopColorRes(R.color.colorPrimaryDark)\n .setIcon(R.drawable.ic_perm_device_information_white_48dp)\n .setTitle(getString(R.string.permission_check_title))\n .setMessage(getString(R.string.permission_check_message))\n .setPositiveButton(android.R.string.ok, new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n Intent intent = new Intent(android.provider.Settings.ACTION_USAGE_ACCESS_SETTINGS);\n startActivity(intent);\n }\n })\n .setNegativeButton(android.R.string.no, null)\n .show();\n }\n }", "public boolean accesspermission()\n {\n AppOpsManager appOps = (AppOpsManager) context.getSystemService(Context.APP_OPS_SERVICE);\n int mode = 0;\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.KITKAT) {\n mode = appOps.checkOpNoThrow(AppOpsManager.OPSTR_GET_USAGE_STATS,\n Process.myUid(),context.getPackageName());\n }\n if (mode == AppOpsManager.MODE_ALLOWED) {\n\n return true;\n }\n return false;\n\n }", "public void checkpermission()\n {\n permissionUtils.check_permission(permissions,\"Need GPS permission for getting your location\",1);\n }", "private boolean checkPermission() {\n if (Build.VERSION.SDK_INT >= 23 &&\n ContextCompat.checkSelfPermission(this,\n Manifest.permission.ACCESS_FINE_LOCATION) != PackageManager.PERMISSION_GRANTED) {\n // Permission is not granted\n return false;\n } else {\n return true;// Permission has already been granted }\n }\n }", "private boolean checkPermission() {\r\n int result = ContextCompat.checkSelfPermission(getApplicationContext(), READ_CONTACTS);\r\n int result1 = ContextCompat.checkSelfPermission(getApplicationContext(), CAMERA);\r\n int result2 = ContextCompat.checkSelfPermission(getApplicationContext(), ACCESS_FINE_LOCATION);\r\n int result3 = ContextCompat.checkSelfPermission(getApplicationContext(), READ_EXTERNAL_STORAGE);\r\n int result4 = ContextCompat.checkSelfPermission(getApplicationContext(), WRITE_EXTERNAL_STORAGE);\r\n int result5 = ContextCompat.checkSelfPermission(getApplicationContext(), READ_PHONE_STATE);\r\n int result6 = ContextCompat.checkSelfPermission(getApplicationContext(), RECORD_AUDIO);\r\n int result7 = ContextCompat.checkSelfPermission(getApplicationContext(), SEND_SMS);\r\n //int result8 = ContextCompat.checkSelfPermission(getApplicationContext(), BLUETOOTH);\r\n\r\n return result == PackageManager.PERMISSION_GRANTED && result1 == PackageManager.PERMISSION_GRANTED && result2 == PackageManager.PERMISSION_GRANTED &&\r\n result3 == PackageManager.PERMISSION_GRANTED && result4 == PackageManager.PERMISSION_GRANTED && result5 == PackageManager.PERMISSION_GRANTED &&\r\n result6 == PackageManager.PERMISSION_GRANTED && result7 == PackageManager.PERMISSION_GRANTED/*&& result8== PackageManager.PERMISSION_GRANTED*/;\r\n }", "@Override\n public void checkPermission(Permission perm, Object context) {\n }", "public boolean checkPermission(Permission permission);", "private boolean checkAndRequestPermissions() {\n List<String> listPermissionsNeeded = new ArrayList<>();\n for (String pem : appPermissions){\n if (ContextCompat.checkSelfPermission(this, pem) != PackageManager.PERMISSION_GRANTED){\n listPermissionsNeeded.add(pem);\n }\n }\n\n //ask for non-granted permissions\n if (!listPermissionsNeeded.isEmpty()) {\n ActivityCompat.requestPermissions(this, listPermissionsNeeded.toArray(new String[listPermissionsNeeded.size()]), PERMISSION_REQUEST_CODE);\n return false;\n }\n return true;\n }", "public void checkPermissions(){\n //Check if some of the core permissions are not already granted\n if ((ContextCompat.checkSelfPermission(LoginActivity.this, Manifest.permission.ACCESS_FINE_LOCATION)!= PackageManager.PERMISSION_GRANTED)\n || (ContextCompat.checkSelfPermission(LoginActivity.this,Manifest.permission.CAMERA)!= PackageManager.PERMISSION_GRANTED)\n || (ContextCompat.checkSelfPermission(LoginActivity.this,Manifest.permission.WRITE_EXTERNAL_STORAGE)!= PackageManager.PERMISSION_GRANTED)) {\n Toast.makeText(this, \"Some permissions are not granted. Please enable them.\", Toast.LENGTH_SHORT).show();\n\n //If so, request the activation of this permissions\n ActivityCompat.requestPermissions(LoginActivity.this,\n new String[]{\n Manifest.permission.ACCESS_FINE_LOCATION,\n Manifest.permission.CAMERA,\n Manifest.permission.WRITE_EXTERNAL_STORAGE},\n REQUEST_CODE_ASK_PERMISSIONS);\n }\n else{\n //Permissions already granted\n }\n }", "boolean isHasPermissions();", "public boolean isAccessGranted() {\n try {\n PackageManager packageManager = getPackageManager();\n ApplicationInfo applicationInfo = packageManager.getApplicationInfo(getPackageName(), 0);\n AppOpsManager appOpsManager = (AppOpsManager) getSystemService(Context.APP_OPS_SERVICE);\n int mode;\n assert appOpsManager != null;\n mode = appOpsManager.checkOpNoThrow(AppOpsManager.OPSTR_GET_USAGE_STATS,\n applicationInfo.uid, applicationInfo.packageName);\n return (mode == AppOpsManager.MODE_ALLOWED);\n\n } catch (PackageManager.NameNotFoundException e) {\n return false;\n }\n }", "private boolean checkPermission() {\n\n if ((ContextCompat.checkSelfPermission(this, Manifest.permission.CAMERA)\n != PackageManager.PERMISSION_GRANTED) &&\n (ContextCompat.checkSelfPermission(this, Manifest.permission.WRITE_EXTERNAL_STORAGE)\n != PackageManager.PERMISSION_GRANTED) &&\n (ContextCompat.checkSelfPermission(this, Manifest.permission.READ_EXTERNAL_STORAGE)\n != PackageManager.PERMISSION_GRANTED) &&\n (ContextCompat.checkSelfPermission(this,\n Manifest.permission.RECORD_AUDIO) != PackageManager.PERMISSION_GRANTED)\n\n ) {\n\n // Permission is not granted\n return false;\n\n }\n return true;\n }", "private Boolean checkRuntimePermission() {\n List<String> permissionsNeeded = new ArrayList<String>();\n\n final List<String> permissionsList = new ArrayList<String>();\n if (!addPermission(permissionsList, Manifest.permission.READ_EXTERNAL_STORAGE))\n permissionsNeeded.add(\"Storage\");\n if (!addPermission(permissionsList, Manifest.permission.CAMERA))\n permissionsNeeded.add(\"Camera\");\n /* if (!addPermission(permissionsList, Manifest.permission.WRITE_CONTACTS))\n permissionsNeeded.add(\"Write Contacts\");*/\n\n if (permissionsList.size() > 0) {\n if (permissionsNeeded.size() > 0) {\n // Need Rationale\n String message = \"You need to grant access to \" + permissionsNeeded.get(0);\n for (int i = 1; i < permissionsNeeded.size(); i++)\n message = message + \", \" + permissionsNeeded.get(i);\n showMessageOKCancel(message,\n new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M) {\n requestPermissions(permissionsList.toArray(new String[permissionsList.size()]),\n REQUEST_CODE_ASK_MULTIPLE_PERMISSIONS);\n }\n }\n });\n return false;\n }\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M) {\n requestPermissions(permissionsList.toArray(new String[permissionsList.size()]),\n REQUEST_CODE_ASK_MULTIPLE_PERMISSIONS);\n }\n return false;\n }\n return true;\n }", "void askForPermissions();", "private boolean checkAndRequestPermissions() {\n\n List<String> listPermissionsNeeded = new ArrayList<>();\n /*if (camera != PackageManager.PERMISSION_GRANTED) {\n listPermissionsNeeded.add(android.Manifest.permission.CAMERA);\n }\n\n if (wstorage != PackageManager.PERMISSION_GRANTED) {\n listPermissionsNeeded.add(android.Manifest.permission.WRITE_EXTERNAL_STORAGE);\n }\n\n if (rstorage != PackageManager.PERMISSION_GRANTED) {\n listPermissionsNeeded.add(Manifest.permission.READ_EXTERNAL_STORAGE);\n }\n if (rphoneState != PackageManager.PERMISSION_GRANTED)\n {\n listPermissionsNeeded.add(Manifest.permission.READ_PHONE_STATE);\n }*/\n\n// if(cLocation != PackageManager.PERMISSION_GRANTED){\n// listPermissionsNeeded.add(Manifest.permission.ACCESS_COARSE_LOCATION);\n// }\n//\n// if(fLocation != PackageManager.PERMISSION_GRANTED){\n// listPermissionsNeeded.add(Manifest.permission.ACCESS_FINE_LOCATION);\n// }\n\n if (!listPermissionsNeeded.isEmpty()) {\n ActivityCompat.requestPermissions(this, listPermissionsNeeded.toArray\n (new String[listPermissionsNeeded.size()]), REQUEST_ID_MULTIPLE_PERMISSIONS);\n return false;\n }\n success();\n return true;\n }", "private void checkPermission(){\n // vérification de l'autorisation d'accéder à la position GPS\n if (ContextCompat.checkSelfPermission(this,\n Manifest.permission.ACCESS_FINE_LOCATION)\n != PackageManager.PERMISSION_GRANTED) {\n\n// // l'autorisation n'est pas acceptée\n// if (ActivityCompat.shouldShowRequestPermissionRationale(this,\n// Manifest.permission.ACCESS_FINE_LOCATION)) {\n// // l'autorisation a été refusée précédemment, on peut prévenir l'utilisateur ici\n// } else {\n // l'autorisation n'a jamais été réclamée, on la demande à l'utilisateur\n ActivityCompat.requestPermissions(this,\n new String[]{Manifest.permission.ACCESS_FINE_LOCATION},\n FINE_LOCATION_REQUEST);\n\n // MY_PERMISSIONS_REQUEST_READ_CONTACTS is an\n // app-defined int constant. The callback method gets the\n // result of the request.\n // }\n } else {\n // TODO : autorisation déjà acceptée, on peut faire une action ici\n initLocation();\n }\n }", "private boolean checkPermissions(HttpServletRequest request, RouteAction route) {\n\t\treturn true;\n\t}", "private boolean checkPermissions() {\n int permissionState1 = ActivityCompat.checkSelfPermission(this,\n android.Manifest.permission.ACCESS_FINE_LOCATION);\n\n int permissionState2 = ActivityCompat.checkSelfPermission(this,\n Manifest.permission.ACCESS_COARSE_LOCATION);\n return permissionState1 == PackageManager.PERMISSION_GRANTED && permissionState2 == PackageManager.PERMISSION_GRANTED;\n }", "public boolean checkPermissions(String check)\n {\n Log.d(TAG,\"check single PErmission\");\n int permissionRequest= ActivityCompat.checkSelfPermission(UploadActivity.this,check);\n if(permissionRequest!= PackageManager.PERMISSION_GRANTED)\n {\n Log.d(TAG,\"check PErmission\\nPermission was not granted for:\"+check);\n return false;\n }\n else\n {\n Log.d(TAG,\"check PErmission\\nPermission was granted for:\"+check);\n return true;\n }\n\n }", "private boolean checkPermissions() {\n if (!read_external_storage_granted ||\n !write_external_storage_granted ||\n !write_external_storage_granted) {\n Toast.makeText(getApplicationContext(), \"Die App braucht Zugang zur Kamera und zum Speicher.\", Toast.LENGTH_SHORT).show();\n return false;\n }\n return true;\n }", "private void checkPermissions() {\n List<String> permissions = new ArrayList<>();\n String message = \"osmdroid permissions:\";\n if (ContextCompat.checkSelfPermission(this, Manifest.permission.ACCESS_FINE_LOCATION) != PackageManager.PERMISSION_GRANTED) {\n permissions.add(Manifest.permission.ACCESS_FINE_LOCATION);\n message += \"\\nLocation to show user location.\";\n }\n if (ContextCompat.checkSelfPermission(this, Manifest.permission.WRITE_EXTERNAL_STORAGE) != PackageManager.PERMISSION_GRANTED) {\n permissions.add(Manifest.permission.WRITE_EXTERNAL_STORAGE);\n message += \"\\nStorage access to store map tiles.\";\n }\n if (ContextCompat.checkSelfPermission(this, Manifest.permission.READ_PHONE_STATE) != PackageManager.PERMISSION_GRANTED) {\n permissions.add(Manifest.permission.READ_PHONE_STATE);\n message += \"\\n access to read phone state.\";\n //requestReadPhoneStatePermission();\n }\n if (ContextCompat.checkSelfPermission(this, Manifest.permission.RECEIVE_SMS) != PackageManager.PERMISSION_GRANTED) {\n permissions.add(Manifest.permission.RECEIVE_SMS);\n message += \"\\n access to receive sms.\";\n //requestReadPhoneStatePermission();\n }\n if (ContextCompat.checkSelfPermission(this, Manifest.permission.GET_ACCOUNTS) != PackageManager.PERMISSION_GRANTED) {\n permissions.add(Manifest.permission.GET_ACCOUNTS);\n message += \"\\n access to read sms.\";\n //requestReadPhoneStatePermission();\n }\n if (!permissions.isEmpty()) {\n // Toast.makeText(this, message, Toast.LENGTH_LONG).show();\n String[] params = permissions.toArray(new String[permissions.size()]);\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M) {\n requestPermissions(params, REQUEST_CODE_ASK_MULTIPLE_PERMISSIONS);\n }\n } // else: We already have permissions, so handle as normal\n }", "private static boolean isPermissionGranted(Context context, String permission) {\n if (ContextCompat.checkSelfPermission(context, permission)\n == PackageManager.PERMISSION_GRANTED) {\n Log.i(TAG, permission + \" granted\");\n return true;\n }\n Log.i(TAG, permission + \" not granted yet\");\n return false;\n }", "private boolean checkPermission() {\n Log.d(\"TAG\", \"checkPermission()\");\n // Ask for permission if it wasn't granted yet\n return (ContextCompat.checkSelfPermission(this, Manifest.permission.ACCESS_FINE_LOCATION) == PackageManager.PERMISSION_GRANTED );\n }", "void permissionGranted(int requestCode);", "public void checkPermission() {\n if (ContextCompat.checkSelfPermission(this,\n Manifest.permission.RECORD_AUDIO) +\n ContextCompat.checkSelfPermission(this, Manifest.permission.MODIFY_AUDIO_SETTINGS)\n != PackageManager.PERMISSION_GRANTED) {\n\n ActivityCompat.requestPermissions(this, perms, permsRequestCode);\n permissionGranted = false;\n } else {\n permissionGranted = true;\n }\n }", "private void checkIfPermissionGranted() {\n\n //if user already allowed the permission, this condition will be true\n if (ContextCompat.checkSelfPermission(this, PERMISSION_CODE)\n == PackageManager.PERMISSION_GRANTED) {\n Intent launchIntent = getPackageManager().getLaunchIntentForPackage(\"com.example.a3\");\n if (launchIntent != null) {\n startActivity(launchIntent);//null pointer check in case package name was not found\n }\n }\n //if user didn't allow the permission yet, then ask for permission\n else {\n ActivityCompat.requestPermissions(this, new String[]{PERMISSION_CODE}, 0);\n }\n }", "private boolean checkPermissions() {\n int res = ContextCompat.checkSelfPermission(getApplicationContext(),android.Manifest.permission.READ_EXTERNAL_STORAGE);\n if (res == PackageManager.PERMISSION_GRANTED)\n return true;\n else\n return false;\n }", "private void checkPermission() {\n if (ContextCompat.checkSelfPermission(this, Manifest.permission.RECORD_AUDIO)\n != PackageManager.PERMISSION_GRANTED) {\n\n AlertDialog.Builder builder = new AlertDialog.Builder(this)\n .setMessage(getString(R.string.can_not_handle_calls))\n .setCancelable(false)\n .setPositiveButton(R.string.text_ok, (dialog, id) -> {\n requestPermission();\n });\n\n builder.create().show();\n } else {\n presenter.gotPermissions = true;\n }\n }", "public void checkPermission() {\n Log.e(\"checkPermission\", \"checkPermission\");\n\n // Here, thisActivity is the current activity\n if (ContextCompat.checkSelfPermission(RegisterActivity.this,\n Manifest.permission.ACCESS_FINE_LOCATION)\n != PackageManager.PERMISSION_GRANTED) {\n\n // Should we show an explanation?\n if (ActivityCompat.shouldShowRequestPermissionRationale(RegisterActivity.this,\n Manifest.permission.ACCESS_FINE_LOCATION)) {\n ActivityCompat.requestPermissions(RegisterActivity.this,\n new String[]{Manifest.permission.ACCESS_FINE_LOCATION},\n MY_PERMISSIONS_REQUEST_READ_CONTACTS);\n // Show an expanation to the user *asynchronously* -- don't block\n // this thread waiting for the user's response! After the user\n // sees the explanation, try again to request the permission.\n\n } else {\n\n // No explanation needed, we can request the permission.\n\n ActivityCompat.requestPermissions(RegisterActivity.this,\n new String[]{Manifest.permission.ACCESS_FINE_LOCATION},\n MY_PERMISSIONS_REQUEST_READ_CONTACTS);\n\n // MY_PERMISSIONS_REQUEST_READ_CONTACTS is an\n // app-defined int constant. The callback method gets the\n // result of the request.\n }\n }\n\n\n }", "private void checkPermissions() {\n if (ContextCompat.checkSelfPermission(this,\n Manifest.permission.WRITE_EXTERNAL_STORAGE)\n != PackageManager.PERMISSION_GRANTED ||\n ContextCompat.checkSelfPermission(this,\n Manifest.permission.READ_EXTERNAL_STORAGE)\n != PackageManager.PERMISSION_GRANTED ||\n ContextCompat.checkSelfPermission(this,\n Manifest.permission.ACCESS_COARSE_LOCATION)\n != PackageManager.PERMISSION_GRANTED ||\n ContextCompat.checkSelfPermission(this,\n Manifest.permission.ACCESS_FINE_LOCATION)\n != PackageManager.PERMISSION_GRANTED ||\n ContextCompat.checkSelfPermission(this,\n Manifest.permission.CAMERA)\n != PackageManager.PERMISSION_GRANTED){\n\n ActivityCompat.requestPermissions(this,\n new String[]{android.Manifest.permission.WRITE_EXTERNAL_STORAGE,\n Manifest.permission.READ_EXTERNAL_STORAGE,\n Manifest.permission.ACCESS_COARSE_LOCATION,\n Manifest.permission.ACCESS_FINE_LOCATION,\n Manifest.permission.CAMERA}, 56);\n }\n }", "private void checkpermission() {\n permissionUtils = new PermissionUtils(context, this);\n permissions.add(Manifest.permission.ACCESS_FINE_LOCATION);\n permissions.add(Manifest.permission.ACCESS_COARSE_LOCATION);\n permissionUtils.check_permission(permissions, \"Need GPS permission for getting your location\", LOCATION_REQUEST_CODE);\n }", "private boolean checkPermission() {\n int result = ContextCompat.checkSelfPermission(getApplicationContext(), Manifest.permission.READ_PHONE_STATE);\n\n if (result == PackageManager.PERMISSION_GRANTED) {\n return true;\n } else {\n return false;\n }\n }", "private boolean checkPermissions() {\n boolean permissionGrant = false;\n if (Build.VERSION.SDK_INT >= 23 && checkSelfPermission(Manifest.permission.ACCESS_COARSE_LOCATION) != PackageManager.PERMISSION_GRANTED) {\n ActivityCompat.requestPermissions((Activity) this, new String[]{Manifest.permission.ACCESS_COARSE_LOCATION,\n Manifest.permission.ACCESS_FINE_LOCATION},\n PERMISSION_REQUEST_CODE_ACCESS_COARSE_LOCATION);\n } else {\n permissionGrant = true;\n }\n return permissionGrant;\n\n }", "private boolean checkPermissions() {\n int permissionState = ActivityCompat.checkSelfPermission(\n this, Manifest.permission.ACCESS_FINE_LOCATION\n );\n return permissionState == PackageManager.PERMISSION_GRANTED;\n }", "private void checkPermissions() {\n final ArrayList<String> missedPermissions = new ArrayList<>();\n\n for (final String permission : PERMISSIONS_REQUIRED) {\n if (ActivityCompat.checkSelfPermission(this, permission) != PackageManager.PERMISSION_GRANTED) {\n missedPermissions.add(permission);\n }\n }\n\n if (!missedPermissions.isEmpty()) {\n final String[] permissions = new String[missedPermissions.size()];\n missedPermissions.toArray(permissions);\n\n ActivityCompat.requestPermissions(this, permissions, PERMISSION_REQUEST_CODE);\n }\n }", "void requestNeededPermissions(int requestCode);", "private boolean checkPermission() {\n return (ContextCompat.checkSelfPermission(this, Manifest.permission.ACCESS_FINE_LOCATION)\n == PackageManager.PERMISSION_GRANTED );\n }", "private boolean checkPermission() {\n int fineLocation = ActivityCompat.checkSelfPermission(this, Manifest.permission.ACCESS_FINE_LOCATION);\n\n if (fineLocation != PackageManager.PERMISSION_GRANTED) {\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M) {\n ActivityCompat.requestPermissions(this,\n new String[]{Manifest.permission.ACCESS_FINE_LOCATION},\n PERMISSION_REQUEST_CODE_FINE_LOCATION);\n }\n return false;\n } else {\n return true;\n }\n }", "private boolean checkPermissions() {\n return PackageManager.PERMISSION_GRANTED == ActivityCompat.checkSelfPermission(this,\n Manifest.permission.ACCESS_FINE_LOCATION);\n }", "private boolean checkPermissions() {\r\n int permissionState = ActivityCompat.checkSelfPermission(this,\r\n Manifest.permission.ACCESS_FINE_LOCATION);\r\n return permissionState == PackageManager.PERMISSION_GRANTED;\r\n }", "private boolean checkPermission() {\n Log.d(TAG, \"checkPermission()\");\n // Ask for permission if it wasn't granted yet\n return (ContextCompat.checkSelfPermission(this, Manifest.permission.ACCESS_FINE_LOCATION)\n == PackageManager.PERMISSION_GRANTED);\n }", "public void verifyAppPermissions() {\n boolean hasAll = true;\n mHasBluetoothPermissions = ActivityCompat.checkSelfPermission(this, Manifest.permission.BLUETOOTH) == PackageManager.PERMISSION_GRANTED;\n mHasBluetoothAdminPermissions = ActivityCompat.checkSelfPermission(this, Manifest.permission.BLUETOOTH_ADMIN) == PackageManager.PERMISSION_GRANTED;\n hasAll &= ActivityCompat.checkSelfPermission(this, Manifest.permission.ACCESS_FINE_LOCATION) == PackageManager.PERMISSION_GRANTED;\n hasAll &= ActivityCompat.checkSelfPermission(this, Manifest.permission.ACCESS_COARSE_LOCATION) == PackageManager.PERMISSION_GRANTED;\n\n if (!hasAll) {\n // We don't have permission so prompt the user\n ActivityCompat.requestPermissions(\n this,\n APP_PERMISSIONS,\n REQUEST_PERMISSIONS\n );\n }\n }", "private void checkAndRequestForPermission() {\n if(ContextCompat.checkSelfPermission(RegisterActivity.this, Manifest.permission.READ_EXTERNAL_STORAGE)\n != PackageManager.PERMISSION_GRANTED){\n if(ActivityCompat.shouldShowRequestPermissionRationale(RegisterActivity.this,\n Manifest.permission.READ_EXTERNAL_STORAGE)){\n Toast.makeText(RegisterActivity.this, \"Please accept for required permission\",\n Toast.LENGTH_SHORT).show();\n }\n else{\n ActivityCompat.requestPermissions(RegisterActivity.this,\n new String []{Manifest.permission.READ_EXTERNAL_STORAGE},PReqCode);\n }\n }\n else{\n openGallery();\n }\n }", "private boolean checkPermissions() {\n int permissionState = ActivityCompat.checkSelfPermission(this,\n Manifest.permission.ACCESS_FINE_LOCATION);\n return permissionState == PackageManager.PERMISSION_GRANTED;\n }", "private boolean checkPermissions() {\n int permissionState = ActivityCompat.checkSelfPermission(this,\n Manifest.permission.ACCESS_FINE_LOCATION);\n return permissionState == PackageManager.PERMISSION_GRANTED;\n }", "@Override\n protected void onActivityResult(int requestCode, int resultCode, Intent data) {\n if (requestCode == REQUEST_PERMISSION_SETTING) {\n checkPermission();\n }\n }", "private boolean checkPermission() {\r\n int result = ContextCompat.checkSelfPermission(UniformDrawer.this, android.Manifest.permission.WRITE_EXTERNAL_STORAGE);\r\n if (result == PackageManager.PERMISSION_GRANTED) {\r\n return true;\r\n } else {\r\n return false;\r\n }\r\n }", "public boolean checkPerms()\n {\n boolean perms = hasPerms();\n if (!perms) {\n ActivityCompat.requestPermissions(\n itsActivity, new String[] { itsPerm }, itsPermsRequestCode);\n }\n return perms;\n }", "static boolean checkPermissionAllowed(Context context, String permission) {\n if (android.os.Build.VERSION.SDK_INT >= 23) {\n boolean hasPermission = false;\n try {\n // Invoke checkSelfPermission method from Android 6 (API 23 and UP)\n java.lang.reflect.Method methodCheckPermission = Activity.class.getMethod(\"checkSelfPermission\", java.lang.String.class);\n Object resultObj = methodCheckPermission.invoke(context, permission);\n int result = Integer.parseInt(resultObj.toString());\n hasPermission = (result == PackageManager.PERMISSION_GRANTED);\n } catch (Exception ex) {\n\n }\n\n return hasPermission;\n } else {\n return true;\n }\n }", "private boolean checkForPermission() {\n\n int permissionCode = ContextCompat.checkSelfPermission(this, Manifest.permission.READ_EXTERNAL_STORAGE);\n\n if(permissionCode == PackageManager.PERMISSION_GRANTED) return true;\n else return false;\n }", "public boolean checkForPermission() {\r\n int permissionCAMERA = ContextCompat.checkSelfPermission(this, Manifest.permission.CAMERA);\r\n int storagePermission = ContextCompat.checkSelfPermission(this, Manifest.permission.READ_EXTERNAL_STORAGE);\r\n int accessCoarseLocation = ContextCompat.checkSelfPermission(this, Manifest.permission.ACCESS_COARSE_LOCATION);\r\n int accessFineLocation = ContextCompat.checkSelfPermission(this, Manifest.permission.ACCESS_FINE_LOCATION);\r\n\r\n List<String> listPermissionsNeeded = new ArrayList<>();\r\n if (storagePermission != PackageManager.PERMISSION_GRANTED) {\r\n listPermissionsNeeded.add(Manifest.permission.READ_EXTERNAL_STORAGE);\r\n }\r\n if (permissionCAMERA != PackageManager.PERMISSION_GRANTED) {\r\n listPermissionsNeeded.add(Manifest.permission.CAMERA);\r\n }\r\n if (accessCoarseLocation != PackageManager.PERMISSION_GRANTED) {\r\n listPermissionsNeeded.add(Manifest.permission.ACCESS_COARSE_LOCATION);\r\n }\r\n if (accessFineLocation != PackageManager.PERMISSION_GRANTED) {\r\n listPermissionsNeeded.add(Manifest.permission.ACCESS_FINE_LOCATION);\r\n }\r\n if (!listPermissionsNeeded.isEmpty()) {\r\n ActivityCompat.requestPermissions(this,\r\n listPermissionsNeeded.toArray(new String[listPermissionsNeeded.size()]), MY_PERMISSIONS_REQUEST);\r\n return false;\r\n }\r\n\r\n return true;\r\n }", "@Override\n\tpublic boolean can(String permission)\n\t{\n\t\treturn this.auth() != null && this.auth().getRole() != null && this.auth().getRole().getPermissions().parallelStream().filter(p -> Pattern.compile(p.getName()).matcher(permission).groupCount() == 0).count() != 0;\n\t}", "public boolean checkPermissions(String permission) {\r\n Log.d(TAG, \"checkPermissions: checking permission: \" + permission);\r\n\r\n int permissionRequest = ActivityCompat.checkSelfPermission(EditProfileActivity.this, permission);\r\n\r\n if (permissionRequest != PackageManager.PERMISSION_GRANTED) {\r\n Log.d(TAG, \"checkPermissions: \\n Permission was not granted for: \" + permission);\r\n Toast.makeText(this, \"Permissions not granted to access camera,\\n\" +\r\n \"please give permissions to GetAplot\", Toast.LENGTH_SHORT).show();\r\n return false;\r\n } else {\r\n Log.d(TAG, \"checkPermissions: \\n Permission was granted for: \" + permission);\r\n return true;\r\n }\r\n }", "private boolean checkAndRequestPermissions() {\n int locationPermission = ContextCompat.checkSelfPermission(this, Manifest.permission.ACCESS_FINE_LOCATION);\n List<String> listPermissionsNeeded = new ArrayList<>();\n if (locationPermission != PackageManager.PERMISSION_GRANTED) {\n listPermissionsNeeded.add(Manifest.permission.ACCESS_FINE_LOCATION);\n }\n// if (permissionSendMessage != PackageManager.PERMISSION_GRANTED) {\n// listPermissionsNeeded.add(Manifest.permission.SEND_SMS);\n// }\n if (!listPermissionsNeeded.isEmpty()) {\n ActivityCompat.requestPermissions(this, listPermissionsNeeded.toArray(new String[listPermissionsNeeded.size()]), REQUEST_ID_MULTIPLE_PERMISSIONS);\n return false;\n }\n return true;\n }", "private void chkPermission() {\n permissionStatus = getSharedPreferences(\"permissionStatus\", MODE_PRIVATE);\n\n if (ActivityCompat.checkSelfPermission(LoginActivity.this, permissionsRequired[0]) != PackageManager.PERMISSION_GRANTED\n || ActivityCompat.checkSelfPermission(LoginActivity.this, permissionsRequired[1]) != PackageManager.PERMISSION_GRANTED) {\n if (ActivityCompat.shouldShowRequestPermissionRationale(LoginActivity.this, permissionsRequired[0])\n || ActivityCompat.shouldShowRequestPermissionRationale(LoginActivity.this, permissionsRequired[1])) {\n //Show Information about why you need the permission\n ActivityCompat.requestPermissions(LoginActivity.this, permissionsRequired, PERMISSION_CALLBACK_CONSTANT);\n\n } else if (permissionStatus.getBoolean(permissionsRequired[0], false)) {\n //Previously Permission Request was cancelled with 'Dont Ask Again',\n // Redirect to Settings after showing Information about why you need the permission\n sentToSettings = true;\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, REQUEST_PERMISSION_SETTING);\n Toast.makeText(getBaseContext(), \"Go to Permissions to Grant Camera, Phone and Storage\", Toast.LENGTH_LONG).show();\n\n } else {\n //just request the permission\n ActivityCompat.requestPermissions(LoginActivity.this, permissionsRequired, PERMISSION_CALLBACK_CONSTANT);\n }\n\n //txtPermissions.setText(\"Permissions Required\");\n\n SharedPreferences.Editor editor = permissionStatus.edit();\n editor.putBoolean(permissionsRequired[0], true);\n editor.commit();\n } else {\n //You already have the permission, just go ahead.\n //proceedAfterPermission();\n }\n\n }", "public void checkRequestPermission(){\n\n\n hasPermission = (ActivityCompat.checkSelfPermission(this, Manifest.permission.VIBRATE)\n == PackageManager.PERMISSION_GRANTED &&\n ActivityCompat.checkSelfPermission(this, Manifest.permission.CAMERA)\n == PackageManager.PERMISSION_GRANTED &&\n ActivityCompat.checkSelfPermission(this, Manifest.permission.WRITE_EXTERNAL_STORAGE)\n == PackageManager.PERMISSION_GRANTED && ActivityCompat.checkSelfPermission(this, Manifest.permission.READ_EXTERNAL_STORAGE)\n == PackageManager.PERMISSION_GRANTED );\n//check group permissons\n if (!hasPermission){\n ActivityCompat.requestPermissions(this,\n new String[]{\n Manifest.permission.VIBRATE,\n Manifest.permission.CAMERA,\n Manifest.permission.WRITE_EXTERNAL_STORAGE,\n Manifest.permission.READ_EXTERNAL_STORAGE\n\n },\n REQUEST_NETWORK_ACCESS);\n }\n }", "public boolean checkPermissions() {\n if (ContextCompat.checkSelfPermission(this,\n Manifest.permission.ACCESS_FINE_LOCATION)\n != PackageManager.PERMISSION_GRANTED) {\n\n // Should we show an explanation?\n if (ActivityCompat.shouldShowRequestPermissionRationale(this,\n Manifest.permission.ACCESS_FINE_LOCATION)) {\n\n // Show an explanation to the user *asynchronously* -- don't block\n // this thread waiting for the user's response! After the user\n // sees the explanation, try again to request the permission.\n new AlertDialog.Builder(this)\n .setTitle(\"TITLE\")\n .setMessage(\"TEXT\")\n .setPositiveButton(\"OKAY\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialogInterface, int i) {\n //Prompt the user once explanation has been shown\n ActivityCompat.requestPermissions(MapsActivity.this,\n new String[]{\n Manifest.permission.ACCESS_FINE_LOCATION},\n PERMISSION_REQ_LOC);\n }\n })\n .create()\n .show();\n\n\n } else {\n // No explanation needed, we can request the permission.\n ActivityCompat.requestPermissions(this,\n new String[]{\n Manifest.permission.ACCESS_FINE_LOCATION},\n PERMISSION_REQ_LOC);\n }\n return false;\n } else {\n return true;\n }\n }", "private boolean requrstpermission(){\r\n if(ContextCompat.checkSelfPermission(getActivity(), Manifest.permission.READ_EXTERNAL_STORAGE) == PackageManager.PERMISSION_GRANTED){\r\n return true;\r\n }\r\n else {\r\n ActivityCompat.requestPermissions(getActivity(), new String[]{Manifest.permission.READ_EXTERNAL_STORAGE}, IMAGEREQUESTCODE);\r\n return false;\r\n }\r\n }", "private boolean checkDeviceSettings()\n {\n List<String> listPermissionNeeded= new ArrayList<>();\n boolean ret = true;\n for(String perm : permission)\n {\n if(ContextCompat.checkSelfPermission(this,perm)!= PackageManager.PERMISSION_GRANTED)\n listPermissionNeeded.add(perm);\n }\n if(!listPermissionNeeded.isEmpty())\n {\n ActivityCompat.requestPermissions(this,listPermissionNeeded.toArray(new String[listPermissionNeeded.size()]),REQUEST_PERMISSION);\n ret = false;\n }\n\n return ret;\n }", "public boolean granted(){\n\t\treturn this.granted;\n\t}", "private boolean checkPermissions() {\n int permissionState = ActivityCompat.checkSelfPermission(this,\n Manifest.permission.ACCESS_COARSE_LOCATION);\n return permissionState == PackageManager.PERMISSION_GRANTED;\n }", "private void permissionChecks() {\n if(Build.VERSION.SDK_INT < 23)\n return;\n\n if (checkSelfPermission(Manifest.permission.WRITE_EXTERNAL_STORAGE) != PackageManager.PERMISSION_GRANTED || checkSelfPermission(Manifest.permission.READ_EXTERNAL_STORAGE) != PackageManager.PERMISSION_GRANTED) {\n requestPermissions(new String[]{Manifest.permission.WRITE_EXTERNAL_STORAGE, Manifest.permission.READ_EXTERNAL_STORAGE}, 0);\n }\n }", "private void checkForPermission() {\n if (ContextCompat.checkSelfPermission(QuizConfirmationActivity.this,\n Manifest.permission.READ_EXTERNAL_STORAGE) != PackageManager.PERMISSION_GRANTED) {\n\n if (ActivityCompat.shouldShowRequestPermissionRationale(QuizConfirmationActivity.this\n , Manifest.permission.READ_EXTERNAL_STORAGE)) {\n Toast.makeText(QuizConfirmationActivity.this,\n \"Please provide the required storage permission in the app setting\", Toast.LENGTH_SHORT).show();\n\n } else {\n\n ActivityCompat.requestPermissions(QuizConfirmationActivity.this,\n new String[]{Manifest.permission.READ_EXTERNAL_STORAGE},\n\n PreqCode);\n }\n } else {\n imageSelect(QuizConfirmationActivity.this);\n }\n\n\n }", "private void checkPermissions() {\n // if permissions are not granted for camera, and external storage, request for them\n if ((ActivityCompat.checkSelfPermission(this, Manifest.permission.CAMERA)\n != PackageManager.PERMISSION_GRANTED) ||\n (ActivityCompat.checkSelfPermission(this,\n Manifest.permission.WRITE_EXTERNAL_STORAGE)\n != PackageManager.PERMISSION_GRANTED)) {\n ActivityCompat.\n requestPermissions(this,\n new String[]{Manifest.permission.CAMERA,\n Manifest.permission.WRITE_EXTERNAL_STORAGE},\n REQUEST_CODE_CAMERA_PERMISSION);\n\n }\n }", "private boolean checkPermissions() {\n if (ContextCompat.checkSelfPermission(this, android.Manifest.permission.READ_EXTERNAL_STORAGE)\n != PackageManager.PERMISSION_GRANTED && ContextCompat.checkSelfPermission(this,\n android.Manifest.permission.WRITE_EXTERNAL_STORAGE) != PackageManager.PERMISSION_GRANTED) {\n return false;\n\n } else {\n return true;\n }\n }", "boolean ignoresPermission();", "private boolean isLocationAllowed() {\n int result = ContextCompat.checkSelfPermission(this, Manifest.permission.ACCESS_FINE_LOCATION);\r\n\r\n //If permission is granted returning true\r\n if (result == PackageManager.PERMISSION_GRANTED)\r\n return true;\r\n\r\n //If permission is not granted returning false\r\n return false;\r\n }", "public boolean CheckPermissions() {\n int result = ContextCompat.checkSelfPermission(getApplicationContext(), WRITE_EXTERNAL_STORAGE);\r\n int result1 = ContextCompat.checkSelfPermission(getApplicationContext(), RECORD_AUDIO);\r\n return result == PackageManager.PERMISSION_GRANTED && result1 == PackageManager.PERMISSION_GRANTED;\r\n }", "private void askPermission() {\n if (ContextCompat.checkSelfPermission(this,\n android.Manifest.permission.ACCESS_FINE_LOCATION)\n != PackageManager.PERMISSION_GRANTED) {\n ActivityCompat.requestPermissions(this,\n new String[]{android.Manifest.permission.ACCESS_FINE_LOCATION},\n Parameters.MY_PERMISSIONS_REQUEST_ACCESS_FINE_LOCATION);\n }\n }", "private void checkAndRequestPermissions() {\n missingPermission = new ArrayList<>();\n // Check for permissions\n for (String eachPermission : REQUIRED_PERMISSION_LIST) {\n if (ContextCompat.checkSelfPermission(this, eachPermission) != PackageManager.PERMISSION_GRANTED) {\n missingPermission.add(eachPermission);\n }\n }\n // Request for missing permissions\n if (missingPermission.isEmpty()) {\n DroneModel.getInstance(this).setDjiProductStateCallBack(this);\n DroneModel.getInstance(this).startSDKRegistration();\n } else if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M) {\n ActivityCompat.requestPermissions(this,\n missingPermission.toArray(new String[missingPermission.size()]),\n REQUEST_PERMISSION_CODE);\n }\n }", "private boolean runtime_permissions() {\n if(Build.VERSION.SDK_INT >= 23 && ContextCompat.checkSelfPermission(this, android.Manifest.permission.ACCESS_FINE_LOCATION) != PackageManager.PERMISSION_GRANTED && ContextCompat.checkSelfPermission(this, android.Manifest.permission.ACCESS_COARSE_LOCATION) != PackageManager.PERMISSION_GRANTED){\n\n requestPermissions(new String[]{android.Manifest.permission.ACCESS_FINE_LOCATION, android.Manifest.permission.ACCESS_COARSE_LOCATION},100);\n\n return true;\n }\n return false;\n }", "public void verifyPermission() {\n Permissions.check(this/*context*/, Manifest.permission.WRITE_EXTERNAL_STORAGE, null, new PermissionHandler() {\n @Override\n public void onGranted() {\n addVideoInFolder();\n setupExoPlayer();\n settingListener();\n }\n\n @Override\n public void onDenied(Context context, ArrayList<String> deniedPermissions) {\n super.onDenied(context, deniedPermissions);\n verifyPermission();\n }\n });\n\n }", "private boolean checkPermissions() {\n boolean hasPermission = true;\n\n int result = ContextCompat.checkSelfPermission(\n this,\n Manifest.permission.ACCESS_FINE_LOCATION\n );\n if (result == PERMISSION_DENIED) {\n hasPermission = false;\n }\n\n // ACCESS_BACKGROUND_LOCATION is only required on API 29 and higher\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.Q) {\n result = ContextCompat.checkSelfPermission(\n this,\n Manifest.permission.ACCESS_BACKGROUND_LOCATION\n );\n if (result == PERMISSION_DENIED) {\n hasPermission = false;\n }\n }\n\n return hasPermission;\n }", "@Override\n public boolean checkPermissions() {\n int permissionState = ActivityCompat.checkSelfPermission(this,\n Manifest.permission.ACCESS_FINE_LOCATION);\n return permissionState == PackageManager.PERMISSION_GRANTED;\n }", "boolean isWritePermissionGranted();", "@Override\n public void onPermissionGranted() {\n }", "private boolean isReadStorageAllowed() {\n int result = ContextCompat.checkSelfPermission(this, Manifest.permission.READ_EXTERNAL_STORAGE);\n int write = ContextCompat.checkSelfPermission(this, Manifest.permission.WRITE_EXTERNAL_STORAGE);\n\n //If permission is granted returning true\n if (result == PackageManager.PERMISSION_GRANTED && write == PackageManager.PERMISSION_DENIED) {\n return true;\n } else {\n\n //If permission is not granted returning false\n return false;\n }\n }", "private boolean validateAccess(String permission) {\n\t\tif (\"READ\".equalsIgnoreCase(permission)) {\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}", "private boolean isReadStorageAllowed() {\n //Getting the permission status\n int result = ContextCompat.checkSelfPermission(this, Manifest.permission.READ_EXTERNAL_STORAGE);\n\n //If permission is granted returning true\n if (result == PackageManager.PERMISSION_GRANTED)\n return true;\n\n //If permission is not granted returning false\n return false;\n }", "abstract public void getPermission();", "public boolean checkPermission() {\n int cameraPermissionResult = ContextCompat.checkSelfPermission(getApplicationContext(), Manifest.permission.CAMERA);\n int readContactPermissionResult = ContextCompat.checkSelfPermission(getApplicationContext(), Manifest.permission.READ_CONTACTS);\n return cameraPermissionResult == PackageManager.PERMISSION_GRANTED && readContactPermissionResult == PackageManager.PERMISSION_GRANTED;\n }", "private boolean checkPermissionStorage() {\n\n boolean isPermissionGranted = true;\n\n int permissionStorage = ContextCompat.checkSelfPermission(this, Manifest.permission.WRITE_EXTERNAL_STORAGE);\n\n if (permissionStorage != PackageManager.PERMISSION_GRANTED)\n {\n isPermissionGranted = false;\n }\n\n return isPermissionGranted;\n }", "@Override\n public void onPermissionGranted() {\n }", "public void checkPermission(String permission, int requestCode)\n {\n if (ContextCompat.checkSelfPermission(this, permission) == PackageManager.PERMISSION_DENIED) {\n // Requesting the permission\n ActivityCompat.requestPermissions(this, new String[] { permission }, requestCode);\n }\n else {\n Toast.makeText(this, \"Permission already granted\", Toast.LENGTH_SHORT).show();\n }\n }", "private void checkLocationPermission() {\n\n if(ContextCompat.checkSelfPermission(this, Manifest.permission.ACCESS_FINE_LOCATION)\n != PackageManager.PERMISSION_GRANTED){\n //location permission required\n ActivityCompat.requestPermissions(this, new String[]\n {Manifest.permission.ACCESS_FINE_LOCATION}, PERMISSION_FINE_LOCATION);\n\n }else{\n //location already granted\n checkCoarseAddress();\n }\n }", "public void onPermissionGranted() {\n\n }", "public boolean CheckingPermissionIsEnabledOrNot()\n {\n int CameraPermissionResult = ContextCompat.checkSelfPermission(getApplicationContext(), CAMERA);\n int WriteStoragePermissionResult = ContextCompat.checkSelfPermission(getApplicationContext(), WRITE_EXTERNAL_STORAGE);\n int ReadStoragePermissionResult = ContextCompat.checkSelfPermission(getApplicationContext(), READ_EXTERNAL_STORAGE);\n\n return CameraPermissionResult == PackageManager.PERMISSION_GRANTED &&\n WriteStoragePermissionResult == PackageManager.PERMISSION_GRANTED &&\n ReadStoragePermissionResult == PackageManager.PERMISSION_GRANTED;\n }", "@RequiresApi(api = Build.VERSION_CODES.M)\n private boolean arePermissionsEnabled(){\n for(String permission : mPermissions){\n if(checkSelfPermission(permission) != PackageManager.PERMISSION_GRANTED)\n return false;\n }\n return true;\n }", "private boolean mayRequestStoragePermission() {\r\n\r\n if(Build.VERSION.SDK_INT < Build.VERSION_CODES.M)\r\n return true;\r\n\r\n if((checkSelfPermission(WRITE_EXTERNAL_STORAGE) == PackageManager.PERMISSION_GRANTED) &&\r\n (checkSelfPermission(CAMERA) == PackageManager.PERMISSION_GRANTED))\r\n return true;\r\n\r\n if((shouldShowRequestPermissionRationale(WRITE_EXTERNAL_STORAGE)) || (shouldShowRequestPermissionRationale(CAMERA))){\r\n Snackbar.make(mRlView, \"Los permisos son necesarios para poder usar la aplicación\",\r\n Snackbar.LENGTH_INDEFINITE).setAction(android.R.string.ok, new View.OnClickListener() {\r\n @TargetApi(Build.VERSION_CODES.M)\r\n @Override\r\n public void onClick(View v) {\r\n requestPermissions(new String[]{WRITE_EXTERNAL_STORAGE, CAMERA}, MY_PERMISSIONS);\r\n }\r\n });\r\n }else{\r\n requestPermissions(new String[]{WRITE_EXTERNAL_STORAGE, CAMERA}, MY_PERMISSIONS);\r\n }\r\n\r\n return false;\r\n }", "private boolean isReadStorageAllowed() {\n int result = ContextCompat.checkSelfPermission(this, Manifest.permission.WRITE_EXTERNAL_STORAGE);\n\n //If permission is granted returning true\n if (result == PackageManager.PERMISSION_GRANTED)\n return true;\n\n //If permission is not granted returning false\n return false;\n }", "public boolean validatePermissions()\r\n\t{\n\t\treturn true;\r\n\t}", "private boolean checkPermissions() {\n return ActivityCompat.checkSelfPermission(this, Manifest.permission.ACCESS_COARSE_LOCATION) == PackageManager.PERMISSION_GRANTED && ActivityCompat.checkSelfPermission(this, Manifest.permission.ACCESS_FINE_LOCATION) == PackageManager.PERMISSION_GRANTED;\n\n // If we want background location\n // on Android 10.0 and higher,\n // use:\n // ActivityCompat.checkSelfPermission(this, Manifest.permission.ACCESS_BACKGROUND_LOCATION) == PackageManager.PERMISSION_GRANTED\n }", "private boolean checkPermissions() {\n return ActivityCompat.checkSelfPermission(this, Manifest.permission.ACCESS_COARSE_LOCATION) == PackageManager.PERMISSION_GRANTED && ActivityCompat.checkSelfPermission(this, Manifest.permission.ACCESS_FINE_LOCATION) == PackageManager.PERMISSION_GRANTED;\n\n // If we want background location\n // on Android 10.0 and higher,\n // use:\n // ActivityCompat.checkSelfPermission(this, Manifest.permission.ACCESS_BACKGROUND_LOCATION) == PackageManager.PERMISSION_GRANTED\n }", "private void checkPermission() {\n if (ContextCompat.checkSelfPermission(MainActivity.this,\n Manifest.permission.READ_EXTERNAL_STORAGE)\n != PackageManager.PERMISSION_GRANTED) {\n\n ActivityCompat.requestPermissions(MainActivity.this,\n new String[]{Manifest.permission.READ_EXTERNAL_STORAGE},\n MY_PERMISSIONS_REQUEST_READ_EXTERNAL_STORAGE);\n }\n }" ]
[ "0.81211346", "0.79945993", "0.78899664", "0.7822918", "0.7802339", "0.779783", "0.7740955", "0.77274066", "0.7706828", "0.7702695", "0.7678095", "0.766236", "0.76292276", "0.76258886", "0.7580487", "0.75791895", "0.7548371", "0.7532175", "0.74950564", "0.7478986", "0.7450744", "0.74465436", "0.74465173", "0.74446356", "0.74356776", "0.74343675", "0.74222636", "0.74022627", "0.7386065", "0.7379218", "0.73564965", "0.7354898", "0.7346432", "0.7343793", "0.7340579", "0.7335716", "0.73199034", "0.7309703", "0.73008615", "0.729972", "0.72957927", "0.7292233", "0.7291142", "0.72901154", "0.7288067", "0.7286929", "0.72834325", "0.72816277", "0.7279083", "0.7262811", "0.7262811", "0.7250308", "0.72396034", "0.7235067", "0.7234645", "0.7230954", "0.7225844", "0.72161967", "0.7203622", "0.7201599", "0.7188456", "0.7180144", "0.71683514", "0.7166607", "0.71622956", "0.716084", "0.7157682", "0.7146863", "0.71420604", "0.71321976", "0.7130458", "0.7122089", "0.71120113", "0.70933086", "0.7084407", "0.7080624", "0.7077961", "0.7068262", "0.70626307", "0.7056693", "0.7051415", "0.7050162", "0.7042634", "0.7036907", "0.70320827", "0.702188", "0.7019372", "0.70160747", "0.7013314", "0.70068", "0.6985662", "0.6983229", "0.69814557", "0.6980805", "0.6979101", "0.6965766", "0.6960472", "0.69561976", "0.69561976", "0.6955324" ]
0.7234759
54
add request mapping for leaders
@GetMapping("/leaders") public String showLeaders() { return "leaders"; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void mapContext(ManagedPlugin managedPlugin) {\n RequestMappingHandlerMapping mapper = new RequestMappingHandlerMapping();\n mapper.setApplicationContext(managedPlugin.getPluginContext());\n mapper.afterPropertiesSet();\n this.handlerMappings.add(mapper);\n this.pluginMappings.put(managedPlugin.getPlugin().getDescriptor().getId(), mapper);\n }", "private void addRequest(InstanceRequest request) {\r\n\t\t\r\n\t}", "public void mapping() {\n\t\t\n\t}", "public void addRequest(Request req) {\n\n }", "public void addRequestGenerator(RequestGenerator rg) {\n requestGenerators.add(rg);\n }", "public void addRequest( Request currentRequest)\r\n\t{\r\n\t\r\n\t\tif(availableElevadors.isEmpty())\r\n\t\t{\r\n\t\t\tSystem.out.println(\"--------- Currently all elevators in the system are Occupied ------\");\t\r\n\t\t\tSystem.out.println(\"--------- Request to Go to Floor \" + currentRequest.getDestinationflour()+\" From Floor\" + currentRequest.getCurrentFlour() +\" has been added to the System --------\");\r\n\t\t\tcheckAvaliableElevators();\t\r\n\t\t}\r\n\t\t\r\n\t\tprocessRequest(currentRequest);\t\t\r\n\t\t\r\n\t}", "void requestMapChange(String path);", "@Override\n public void loadFromRequestAdditional(PortletRequest request) {\n // ProtectBlock extraLoadFromRequestAdditional\n // ProtectBlock End\n }", "@Override\n public void addLoaders(WorldLoader wl, WorldInfo info) {\n }", "protected Map initDefaultLookupMap(HttpServletRequest request) {\r\n\t\tMap lookupMap = new HashMap();\r\n\t\tthis.keyMethodMap = this.getKeyMethodMap();\r\n\r\n\t\tModuleConfig moduleConfig = (ModuleConfig) request\r\n\t\t\t\t.getAttribute(Globals.MODULE_KEY);\r\n\r\n\t\tMessageResourcesConfig[] mrc = moduleConfig\r\n\t\t\t\t.findMessageResourcesConfigs();\r\n\r\n\t\t// Look through all module's MessageResources\r\n\t\tfor (int i = 0; i < mrc.length; i++) {\r\n\t\t\tMessageResources resources = this.getResources(request, mrc[i]\r\n\t\t\t\t\t.getKey());\r\n\r\n\t\t\t// Look for key in MessageResources\r\n\t\t\tIterator iter = this.keyMethodMap.keySet().iterator();\r\n\t\t\twhile (iter.hasNext()) {\r\n\t\t\t\tString key = (String) iter.next();\r\n\t\t\t\tString text = resources.getMessage(Locale.ENGLISH, key);\r\n\r\n\t\t\t\t// Found key and haven't added to Map yet, so add the text\r\n\t\t\t\tif ((text != null) && !lookupMap.containsKey(text)) {\r\n\t\t\t\t\tlookupMap.put(text, key);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\treturn lookupMap;\r\n\t}", "public void loadMapping(final InputSource source, final String type) {\r\n _mappings.add(new MappingSource(source, type, _resolver));\r\n }", "public void addRequest(LocationRequest request) {\n if (request != null) {\n this.request.addRequest(request);\n enable();\n }\n }", "public void addMapAdvice(MapAdvice mapAdvice);", "public void setRequest(Map<String, Object> request)\r\n\t{\n\t\tthis.request = request;\r\n\t}", "public abstract RequestMappingInfo build();", "@Override\n\tpublic void setRequest(Map<String, Object> arg0) {\n\n\t}", "public static void remapRequest(HttpServletRequest request) throws Exception {\n Request connectorReq = (Request) request;\n\n MappingData mappingData = connectorReq.getMappingData();\n mappingData.recycle();\n\n connectorReq.getConnector().\n getMapper().map(connectorReq.getCoyoteRequest().serverName(),\n connectorReq.getCoyoteRequest().decodedURI(), null,\n mappingData);\n\n connectorReq.setContext((Context) connectorReq.getMappingData().context);\n connectorReq.setWrapper((Wrapper) connectorReq.getMappingData().wrapper);\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 }", "protected ActionMapping processMapping( HttpServletRequest request,\n HttpServletResponse response,\n String path)\n throws IOException\n { //20030425AH\n ActionMapping mapping = super.processMapping(request, response, path);\n if(mapping instanceof GTActionMapping)\n {\n if( ((GTActionMapping)mapping).isLogParameters() )\n {\n StaticWebUtils.logRequestDetails(request, _log);\n }\n }\n return mapping;\n }", "@Override\n\tpublic void onRequestStart(String reqId) {\n\t\t\n\t}", "private HttpRequestRouterParametersMap(final HttpRequest request) {\n super();\n this.request = request;\n }", "public void handleRequest(HttpServletRequest request,\n\t\t\tHttpServletResponse response) throws ServletException, IOException {\n\t\tList<EmpDTO> emps=empService.loadEmps();\n\t\tList<LoomDTO> looms=loomService.loadLooms();\n\t\trequest.setAttribute(\"emps\", emps);\n\t\trequest.setAttribute(\"looms\", looms);\n\t\tRequestDispatcher rd=request.getRequestDispatcher(\"WEB-INF/Pages/AddLoomEmp.jsp\");\n\t\trd.forward(request, response);\n\t\t\n\t}", "public void addRequest(CustomerRequest request) {\n\n\t}", "@Override\r\n\t\t\tprotected Vector prepareRequests(ACLMessage request) {\n\t\t\t\tString incomingRequestKey = (String) ((AchieveREResponder) parent).REQUEST_KEY;\r\n\t\t\t\tACLMessage incomingRequest = (ACLMessage) getDataStore().get(incomingRequestKey);\r\n\t\t\t\t// Prepare the request to forward to the responder\r\n\t\t\t\tSystem.out.println(\"Agent \"+getLocalName()+\": Forward the request to \"+bestOffer.getName());\r\n\t\t\t\tACLMessage outgoingRequest = new ACLMessage(ACLMessage.REQUEST);\r\n\t\t\t\toutgoingRequest.setProtocol(FIPANames.InteractionProtocol.FIPA_REQUEST);\r\n\t\t\t\toutgoingRequest.addReceiver(bestOffer);\r\n\t\t\t\toutgoingRequest.setContent(incomingRequest.getContent());\r\n\t\t\t\toutgoingRequest.setReplyByDate(incomingRequest.getReplyByDate());\r\n\t\t\t\tVector v = new Vector(1);\r\n\t\t\t\tv.addElement(outgoingRequest);\r\n\t\t\t\treturn v;\r\n\t\t\t}", "@Override\n\tpublic void setRequest(Map<String, Object> arg0) {\n\t\tthis.request = arg0;\n\t}", "private void initMapNameMapping() {\n mMapNameMapping.clear();\n\n // Load the name mapping from the config\n ConfigurationSection mappingSection = getConfig().getConfigurationSection(MappingSectionName);\n if (mappingSection != null) {\n // Load and check the mapping found in the config\n Map<String, Object> configMap = mappingSection.getValues(false);\n for (Map.Entry<String, Object> entry : configMap.entrySet()) {\n mMapNameMapping.put(entry.getKey(), (String) entry.getValue());\n }\n } else {\n getLogger().warning(String.format(\"[%s] found no configured mapping, creating a default one.\", mPdfFile.getName()));\n }\n\n // If there are new worlds in the server add them to the mapping\n List<World> serverWorlds = getServer().getWorlds();\n for (World w : serverWorlds) {\n if (!mMapNameMapping.containsKey(w.getName())) {\n mMapNameMapping.put(w.getName(), w.getName());\n }\n }\n\n // Set the new mapping in the config\n getConfig().createSection(MappingSectionName, mMapNameMapping);\n }", "private void addMakerToMap() {\n if (mapboxMap != null) {\r\n mapboxMap.removeAnnotations();\r\n if (res.getData().size() > 0) {\r\n for (UserBasicInfo info : res.getData()) {\r\n if (info.getRole().equalsIgnoreCase(\"student\")) {\r\n if (isStudentSwitchOn) {\r\n setMarker(info);\r\n }\r\n }\r\n if (info.getRole().equalsIgnoreCase(\"teacher\")) {\r\n if (isTeacherSwitchOn) {\r\n setMarker(info);\r\n }\r\n }\r\n }\r\n } else {\r\n getMvpView().noRecordFound();\r\n }\r\n }\r\n }", "@GetMapping(\"/leaders\")\r\n\tpublic String showLeaders() {\r\n\r\n\t\treturn \"leaders\";\r\n\t}", "public void addRequest(T request) {\n\t\tinputQueue.add(request);\n\t}", "public void handleRequest(Request req) {\n\n }", "public void addToFilenameMap(String filename, Nodemapper nodemapper)\n {\n HashSet<Nodemapper> nodemappers = this.loadedFiles.get(filename);\n if (nodemappers != null)\n {\n nodemappers.add(nodemapper);\n } \n }", "@Override\n\tprotected void updateTargetRequest() {\n\t}", "@Override\n\tpublic List<Map<String,String>> dispatchRequest(Map<String, String[]> request) {\n\n\t\t// ********* LOGGING ********* \n\t\tSystem.out.println(\"reached DispatchRequest\");\n\t\tSystem.out.println(\"Request Keys : \");\n\t\tSystem.out.println(request.keySet());\n\t\t// ********* LOGGING ********* \n\n\n\t\tString classPrefix = request.get(\"requestID\")[0]; \n\n\t\t// ********* LOGGING ********* \n\t\tSystem.out.println(\"class name : \"+PACKAGE_NAME+classPrefix+CLASS_SUFFIX);\n\t\t// ********* LOGGING ********* \n\n\t\t// obtain class reference\t\t\n\t\tiManagementRequestHandlerObject = (IManagementRequestHandler) \n\t\t\t\tiReflectionManagerObject.getClass(PACKAGE_NAME+classPrefix+CLASS_SUFFIX);\n\n\t\t// ********* LOGGING *********\n\t\tSystem.out.println(\"object reference : \"+ iManagementRequestHandlerObject);\n\t\t// ********* LOGGING *********\n\n\t\t// Delegate the request to the appropriate class.\n\t\treturn (iManagementRequestHandlerObject.handleManagementRequest(request));\n\n\t}", "public void addRequestListener(TransportAddress localAddr, RequestListener listener) {\n addMessageListener(localAddr, new RequestListenerMessageEventHandler(listener));\n }", "@Override\n\tpublic void dispatch(Request request) {\n\t\tif(request instanceof ElevatorRequest){\n\t\t\tfor(RequestListener listener: listeners){\n\t\t\t\tlistener.handleRequest((ElevatorRequest)request);\n\t\t\t}\n\t\t}\n\t}", "@Override\n\tpublic void initRequest() {\n\n\t}", "public void onDeviceMappingCreateRequest(String hardwareId, String originator, IDeviceMappingCreateRequest request)\r\n\t throws SiteWhereException;", "@RequestMapping(value = \"defaultServletRequestParams\", method = RequestMethod.POST, produces = \"application/json;charset=UTF-8\")\n\t@ResponseBody\n\tpublic Map<String, Object> defaultServletRequestParams(HttpServletRequest request) {\n\t\tlogger.info(\"---------------use request data---------------------\");\n\t\tMap<String, Object> myMap = new HashMap<String, Object>();\n\t\tString elevatorID = request.getParameter(\"elevatorID\");\n\t String elevatorName = request.getParameter(\"elevatorName\");\n\t logger.info(\"--------elevatorID: \" + elevatorID + \"----elevatorName: \" + elevatorName + \"-----------\");\n\t\tmyMap.put(\"defaultServletRequestParams\", elevatorID + elevatorName);\n\t\treturn myMap;\n\t}", "protected abstract void nextRequest ();", "void onRequest(Member member, Map<String, ?> input, JSONObject output);", "@Override\n public void addRequest(Request<?> request, Object tag) {\n request.setTag(tag);\n getRequestQueue().add(request);\n }", "void addRequest(@NonNull OverrideRequest request) {\n OverrideRequest previousRequest = mRequest;\n mRequest = request;\n mListener.onStatusChanged(request, STATUS_ACTIVE);\n\n if (previousRequest != null) {\n cancelRequestLocked(previousRequest);\n }\n }", "@Override\n public void addInterceptors( InterceptorRegistry registry ) {\n }", "private void configureMapping(final UrlMappingInfo mapping, final GrailsWebRequest grailsRequest,\n \t\t\tfinal Map<String, Object> savedParams) {\n \t\tGrailsParameterMap params = grailsRequest.getParams();\n \t\tparams.clear();\n \t\tparams.putAll(savedParams);\n \n \t\tmapping.configure(grailsRequest);\n \t}", "@Override\n public void loadRequestHandlers(List<String> list) {\n\n this.requestHandlers.add(\n new SoletDispatcher(\n this.workingDir,\n new ApplicationLoadingServiceImpl(\n new EmbeddedApplicationScanningService(configService, workingDir),\n this.configService,\n this.workingDir + configService.getConfigParam(ConfigConstants.ASSETS_DIR_NAME, String.class)\n ),\n this.configService\n ));\n\n this.requestHandlers.add(new ResourceHandler(workingDir, s -> Collections.singletonList(\"\"), this.configService));\n }", "private void getMall(HttpServletRequest request, HttpServletResponse response) {\n\t\t\n\t}", "public void initMap()\r\n/* */ {\r\n///* 36 */ putHandler(\"vwkgcode\", PDWkHeadTailVWkgcodeHandler.class);\r\n///* 37 */ putHandler(\"fcapacitycalc\", PDWkHeadTailFcapacitycalcHandler.class);\r\n///* 38 */ putHandler(\"bprodline\", PDWkHeadTailBprodlineHandler.class);\r\n/* */ }", "private void addSTOPedRequestsToClientManager() {\n\n List<TOMMessage> messagesFromSTOP = lcManager.getRequestsFromSTOP();\n if (messagesFromSTOP != null) {\n\n logger.debug(\"Adding to client manager the requests contained in STOP messages\");\n\n for (TOMMessage m : messagesFromSTOP) {\n tom.requestReceived(m, false);\n\n }\n }\n\n }", "public void addRequestListener(RequestListener listener) {\n addMessageListener(new RequestListenerMessageEventHandler(listener));\n }", "private void addRequest(HttpPipelineRequest p_addRequest_1_, List<HttpPipelineRequest> p_addRequest_2_) {\n/* 86 */ p_addRequest_2_.add(p_addRequest_1_);\n/* 87 */ notifyAll();\n/* */ }", "protected ForwardingMap() {}", "protected void preload(HttpServletRequest request) {\r\n/* 39 */ log.debug(\"RoomCtl preload method start\");\r\n/* 40 */ HostelModel model = new HostelModel();\r\n/* */ try {\r\n/* 42 */ List l = model.list();\r\n/* 43 */ request.setAttribute(\"hostelList\", l);\r\n/* 44 */ } catch (ApplicationException e) {\r\n/* 45 */ log.error(e);\r\n/* */ } \r\n/* 47 */ log.debug(\"RoomCtl preload method end\");\r\n/* */ }", "@Override\n public void addInterceptors(InterceptorRegistry registry) {\n registry.addInterceptor(new RequestInterceptor());\n registry.addInterceptor(new LocaleChangeInterceptor());\n }", "private void addGeofence(GeofencingRequest request) {\n\n T.t(TripMapsActivity.this, \"addGeofence\");\n if (checkPermission())\n LocationServices.GeofencingApi.addGeofences(\n googleApiClient,\n request,\n createGeofencePendingIntent()\n ).setResultCallback(this);// check here\n }", "public void addMapping(XContentBuilder mapping) {\n try {\n HttpEntity entity = new StringEntity(mapping.string(), ContentType.APPLICATION_JSON);\n\n esrResource\n .getClient()\n .performRequest(\"PUT\", \"/\" + index + \"/_mapping/\" + type, Collections.emptyMap(), entity);\n } catch (IOException ioe) {\n getMonitor().error(\"Unable to add mapping to index\", ioe);\n }\n }", "public void addPlanTarget(String accessKey, Map<String,String> dataMap) throws org.apache.thrift.TException;", "public void addUserRequest(UserRequest request){\n userRequests.add(request);\n }", "@Override\n protected final void parseRequest(final HttpServletRequest request, HttpServletResponse response) {\n\n parsePath(request);\n\n LOGGER.warning(\"[REST]: \" + request.getMethod() + \"|\" + apiName + \"/\" + resourceName + \"|\" + request.getHeader(\"Current-Page\"));\n\n // Fixes BS-400. This is ugly.\n I18n.getInstance();\n\n api = APIs.get(apiName, resourceName);\n api.setCaller(this);\n\n super.parseRequest(request, response);\n\n }", "public synchronized void addRequest(Request request)\n {\n if (request.getStream().isBlacklisted())\n throw new BlacklistedStreamExcception();\n requests.add(request);\n needsReorder = true;\n notifyAll();\n }", "private void loadMapping( String route, Config config ) {\n // if we have a route\n if ( StringUtil.isNotEmpty( route ) ) {\n // pull out the class name\n String className = config.getString( CLASS );\n\n // get the priority of the routing\n int priority = 0;\n if ( config.contains( PRIORITY ) ) {\n try {\n priority = config.getAsInt( PRIORITY );\n } catch ( DataFrameException e ) {\n Log.warn( \"Problems parsing mapping priority into a numeric value for rout '\" + route + \"' using default\" );\n }\n }\n\n // If we found a class to map to the route\n if ( StringUtil.isNotBlank( className ) ) {\n try {\n // load the class\n Class<?> clazz = Class.forName( className );\n Log.info( \"Loading \" + className + \" to handle requests for '\" + route + \"'\" );\n if ( priority > 0 ) {\n server.addRoute( route, priority, clazz, this, config );\n } else {\n server.addRoute( route, clazz, this, config );\n }\n } catch ( Exception e ) {\n Log.warn( \"Problems adding route mapping '\" + route + \"', handler: \" + className + \" Reason:\" + e.getClass().getSimpleName() );\n }\n } else {\n Log.warn( \"No class defined in mapping for '\" + route + \"' - \" + config );\n }\n } else {\n Log.warn( \"No route specified in mapping for \" + config );\n }\n }", "public MapGameRequest(String map){\n super(map);\n this.content=\"MapRequest\";\n }", "private void registerRequestProxyHandler(BeanDefinitionRegistry registry) {\n GenericBeanDefinition jdbcDaoProxyDefinition = new GenericBeanDefinition();\n jdbcDaoProxyDefinition.setBeanClass(DaoProxy.class);\n registry.registerBeanDefinition(\"daoProxy\", jdbcDaoProxyDefinition);\n }", "private void addGeofence(GeofencingRequest request) {\n Log.d(TAG, \"addGeofence\");\n if (checkPermission())\n LocationServices.GeofencingApi.addGeofences(\n googleApiClient,\n request,\n createGeofencePendingIntent()\n ).setResultCallback(this);\n }", "public void loadMapping(final InputSource source) {\r\n loadMapping(source, DEFAULT_SOURCE_TYPE);\r\n }", "private void exposePluginRequestContext(Map<String, Object> model, HttpServletRequest request, HttpServletResponse response) {\n\n OpenAksessPlugin plugin = (OpenAksessPlugin) request.getAttribute(PluginDelegatingHandlerMapping.DELEGATED_PLUGIN_ATTR);\n\n if(plugin!= null) {\n model.put(PluginRequestContext.PLUGIN_REQUEST_CONTEXT_ATTRIBUTE, new DefaultPluginRequestContext(plugin, request, response, getServletContext(), model));\n }\n }", "private void addRouteMArkers()\n {\n //routeMarker.add(new MarkerOptions().position(new LatLng(geo1Dub,geo2Dub)));\n\n }", "public void addRequest(Request q) {\n\t\trequestList.add(q);\n\t}", "public static HashMap<String, String> generateRequest (String request){\n LOGGER.info(\"Request generator got line => \" + request);\n /**\n * we split on spaces as that is the http convention\n */\n String[] brokenDownRequest = request.split(\" \");\n\n /**\n * creating anf then filling up the request hashmap\n */\n HashMap<String, String> parsedRequest = new HashMap<>();\n parsedRequest.put(\"Type\", brokenDownRequest[0]);\n parsedRequest.put(\"Path\", brokenDownRequest[1]);\n parsedRequest.put(\"HttpVersion\", brokenDownRequest[2]);\n\n /**\n * returning the request hashmap\n */\n return parsedRequest;\n }", "public void startPrefixMapping(String prefix, String uri) {\n if (_prefixMapping == null) {\n _prefixMapping = new HashMap<>();\n }\n _prefixMapping.put(prefix, uri);\n }", "protected void processRequest(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n long id = new Integer(request.getParameter(\"id\"));\n\n \n ResourcePOJO res = null;\n// try {\n res = manager.getResource(id, false);\n// } catch (JAXBException e) {\n// throw new IOException(e.getMessage());\n// }\n LayerManager layerBean = new LayerManager(res);\n \n try {\n \n request.setAttribute(\"layer\", layerBean);\n \n String layerName = layerBean.getName();\n \n List<ResourcePOJO> relatedStatsDefs = manager.searchStatsDefByLayer(layerName);\n request.setAttribute(\"statsDefs\", relatedStatsDefs);\n \n List<ResourcePOJO> relatedLayerUpdates = manager.searchLayerUpdatesByLayerName(layerName);\n request.setAttribute(\"layerUpdates\", relatedLayerUpdates);\n \n String data = manager.getData(id, MediaType.WILDCARD_TYPE.toString());\n layerBean.setData(data);\n \n request.setAttribute(\"storedData\", data);\n \n } catch (Exception ex) {\n Logger.getLogger(LayerShow.class.getName()).log(Level.SEVERE, null, ex);\n }\n String outputPage = getServletConfig().getInitParameter(\"outputPage\");\n RequestDispatcher rd = request.getRequestDispatcher(outputPage);\n rd.forward(request, response);\n }", "protected void addDependencies(MRSubmissionRequest request) {\n // Guava\n request.addJarForClass(ThreadFactoryBuilder.class);\n }", "private void changeRequest(InstanceRequest request) {\r\n\t\t\r\n\t}", "private void processLayerMap() {\r\n for (int l = 0; l < layers.size(); l++) {\r\n Layer layer = layers.get(l);\r\n this.layerNameToIDMap.put(layer.name, l);\r\n }\r\n }", "public RequestAction geRequestHandler(String request){\n RequestAction requestHandler =requestHandlerMap.get(request);\n if(requestHandler ==null)\n return requestHandlerMap.get(\"notSupported\");\n return requestHandler;\n }", "private void mappingMethods() throws SecurityException, NoSuchMethodException{\n\t\tmappingMethodGet();\n\t\tmappingMethodSet();\n\t}", "public void addRR(Request req) {\n\n }", "public interface RequestHandler {\n\tpublic Map<String,Object> handleRequest(Map<String,Object> request,\n\t\t\t InetAddress client);\n}", "void addKeyMapping(KeyMap map){\n this.addKeyListener(map);\n this.km = map;\n }", "public WMS100MapRequest() {\n\n }", "public void startPrefixMapping( String prefix, String uri )\n throws SAXException\n {\n if( inProlog ) {\n // TODO: map the prefix.\n eventList.add(new StartPrefixMappingEvent(prefix, uri));\n }\n else {\n super.startPrefixMapping( prefix, uri );\n }\n }", "public void addAgent(String layer, Agent a)\n/* 170: */ {\n/* 171:240 */ this.mapPanel.addAgent(layer, a);\n/* 172: */ }", "public ServletInfo addMapping(final String mapping) {\n\t\tif (!mapping.startsWith(\"/\") && !mapping.startsWith(\"*\") && !mapping.isEmpty()) {\n\t\t\t//if the user adds a mapping like 'index.html' we transparently translate it to '/index.html'\n\t\t\tmappings.add(\"/\" + mapping);\n\t\t} else {\n\t\t\tmappings.add(mapping);\n\t\t}\n\t\treturn this;\n\t}", "@Autowired(required=true)\n\tpublic void setAgentRequestHandlers(Collection<AgentRequestHandler> agentRequestHandlers) {\n\t\tfor(AgentRequestHandler arh: agentRequestHandlers) {\n\t\t\tfor(OpCode soc: arh.getHandledOpCodes()) {\n\t\t\t\thandlers.put(soc, arh);\n\t\t\t\tinfo(\"Added AgentRequestHandler [\", arh.getClass().getSimpleName(), \"] for Op [\", soc , \"]\");\n\t\t\t}\n\t\t}\n\t\thandlers.put(OpCode.WHO_RESPONSE, this);\n\t\thandlers.put(OpCode.BYE, this);\n\t\thandlers.put(OpCode.HELLO, this);\n\t\thandlers.put(OpCode.HELLO_CONFIRM, this);\n\t\thandlers.put(OpCode.JMX_MBS_INQUIRY_RESPONSE, this);\n\t}", "public synchronized void addFriendRequest(FriendRequest req) {\n \t\t((List<FriendRequest>) getVariable(\"friendRequest\")).add(req);\n \t}", "@Override\n\tpublic void addRequestParams() {\n\t\tparams = new RequestParams();\n\t\tparams.addBodyParameter(NetConst.LOGIN_NAME, name);\n\t\tparams.addBodyParameter(NetConst.LOGIN_PWD, pwd);\n\t}", "public void addListener(ServiceRequest req, NamingService.Listener l) {\n namingService.addListener(req, l);\n }", "private void initializeEmitterConfigs(HttpServletRequest request,\n\t\t\tMap config)\n\t{\n\t\tif (config == null)\n\t\t{\n\t\t\treturn;\n\t\t}\n\n\t\tfor (Iterator itr = request.getParameterMap().entrySet().iterator(); itr.hasNext();)\n\t\t{\n\t\t\tEntry entry = (Entry) itr.next();\n\n\t\t\tString name = String.valueOf(entry.getKey());\n\n\t\t\t// only process parameters start with \"__\"\n\t\t\tif (name.startsWith(\"__\")) //$NON-NLS-1$\n\t\t\t{\n\t\t\t\t// TODO: don't use ParameterAccessor directly (fails in taglib\n\t\t\t\t// mode)\n\t\t\t\tconfig.put(name.substring(2),\n\t\t\t\t\t\tParameterAccessor.getParameter(request, name));\n\t\t\t}\n\t\t}\n\t}", "@Override\n\t\t\t\t\tpublic void onReqStart() {\n\t\t\t\t\t}", "public void registerRequest(){\n\t\tfor (Floor x: F)\n\t\t\tif (x.getPassengersWaiting()>0)\tdestRequest[x.getFloorNumber()] = 'Y';\t//Checks for the waiting passengers on each floor and assigns Y or N\n\t\t\telse destRequest[x.getFloorNumber()] = 'N';\t\t\t\t\t\t\t// based on that.\n\t}", "public RequestMappingInfo(PatternsRequestCondition patterns, RequestMethodsRequestCondition methods, ParamsRequestCondition params, HeadersRequestCondition headers, ConsumesRequestCondition consumes, ProducesRequestCondition produces, RequestCondition<?> custom)\n/* */ {\n/* 93 */ this(null, patterns, methods, params, headers, consumes, produces, custom);\n/* */ }", "public Mapping addMapping() {\n\t\tMapping newType = new Mapping();\n\t\tgetMapping().add(newType);\n\t\treturn newType; \n\t}", "protected HashMap initReqFailedMap() {\n return new HashMap();\n }", "@Funq\n @CloudEventMapping(trigger = \"ADD_ACCEPT_USE\")\n public void handleAddRequestUse(RequestUse requestUse, @Context CloudEvent eventContext) {\n\n new ResourceSchedulerEvent<RequestUse>(\n Type.ACCEPT_USE_ADDED,\n Source.HANDLE_ADD_ACCEPT_USE,\n requestUse)\n .fire();\n }", "@Override\n public void loadRequest(String fileName)\n throws ParserConfigurationException, SAXException, IOException, ParseException {\n resetPlanningRequest();\n //Test extension of XML file name\n String[] words = fileName.split(\"\\\\.\");\n if(!mapLoaded){\n this.setChanged();\n this.notifyObservers(\"No map loaded, load a map and try again.\");\n throw new IOException();\n }else if(!(words[(words.length)-1].equals(\"XML\")) && !(words[(words.length)-1].equals(\"xml\"))){\n this.setChanged();\n this.notifyObservers(\"Filename extension is not correct.\");\n throw new IOException();\n }else {\n DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance();\n try {\n // parse XML file\n DocumentBuilder db = dbf.newDocumentBuilder();\n Document doc = db.parse(new File(fileName));\n doc.getDocumentElement().normalize();\n\n // Check the document root name\n Element root = doc.getDocumentElement();\n if(!root.getNodeName().equals(\"planningRequest\")){\n throw new NumberFormatException();\n }\n\n // get all nodes <intersection>\n NodeList nodeListRequest = doc.getElementsByTagName(\"request\");\n for (int temp = 0; temp < nodeListRequest.getLength(); temp++) {\n Node node = nodeListRequest.item(temp);\n if (node.getNodeType() == Node.ELEMENT_NODE) {\n Element element = (Element) node;\n\n // get request's attribute\n long pickupIntersectionId = Long.parseLong(element.getAttribute(\"pickupAddress\"));\n Intersection pickupIntersection = getIntersectionById(pickupIntersectionId);\n long deliveryIntersectionId = Long.parseLong(element.getAttribute(\"deliveryAddress\"));\n Intersection deliveryIntersection = getIntersectionById(deliveryIntersectionId);\n if((pickupIntersection==null) || (deliveryIntersection==null)){\n throw new NumberFormatException();\n }\n int pickupDuration = Integer.parseInt(element.getAttribute(\"pickupDuration\"));\n int deliveryDuration = Integer.parseInt(element.getAttribute(\"deliveryDuration\"));\n Address pickupAddress = new Address(pickupIntersectionId,pickupIntersection.getLatitude(),pickupIntersection.getLongitude(),pickupDuration, 1 /*for pickup*/);\n Address deliveryAddress = new Address(deliveryIntersectionId,deliveryIntersection.getLatitude(),deliveryIntersection.getLongitude(),deliveryDuration, 2 /*for delivery*/);\n\n planningRequest.addRequest(new Request(pickupAddress, deliveryAddress));\n }\n }\n // get the depot\n NodeList nodeListDepot = doc.getElementsByTagName(\"depot\");\n for (int temp = 0; temp < nodeListDepot.getLength(); temp++) {\n Node node = nodeListDepot.item(temp);\n if (node.getNodeType() == Node.ELEMENT_NODE) {\n Element element = (Element) node;\n\n // get request's attribute\n long addressId = Long.parseLong(element.getAttribute(\"address\"));\n String departTime = element.getAttribute(\"departureTime\");\n planningRequest.setStartingPoint(getIntersectionById(addressId));\n planningRequest.setDepartureTime(new SimpleDateFormat(\"HH:mm:ss\").parse(departTime));\n }\n }\n } catch (ParserConfigurationException | SAXException err) {\n this.setChanged();\n this.notifyObservers(\"Parsing XML file failed. Please choose another XML file.\");\n throw err;\n } catch (ParseException err) {\n this.setChanged();\n this.notifyObservers(\"Bad departureTime format.\");\n throw err;\n } catch (IOException err) {\n this.setChanged();\n this.notifyObservers(\"Opening XML file failed. Please choose another XML file.\");\n throw err;\n }catch (NumberFormatException err){}\n if((planningRequest.getRequestList().isEmpty())\n || (planningRequest.getStartingPoint()==null)\n || (planningRequest.getDepartureTime()==null)){\n resetPlanningRequest();\n this.setChanged();\n this.notifyObservers(\"Planning is empty. Check your XML file.\");\n throw new IOException();\n }\n planningLoaded = true;\n this.setChanged();\n }\n }", "void setRequest(Request req);", "public void addMapping(final String prefix, final File path) {\n final String _prefix = prefix.startsWith(\"/\") ? prefix : \"/\" + prefix;\n final Mapping mapping = new Mapping(_prefix, path);\n\n synchronized (mapped) {\n mapped.add(mapping);\n }\n }", "@Override\n protected void handleRequest (@Nonnull final IRequestWebScopeWithoutResponse aRequestScope,\n @Nonnull final UnifiedResponse aUnifiedResponse) throws Exception\n {\n String sKey = aRequestScope.getPathWithinServlet ();\n if (sKey.length () > 0)\n sKey = sKey.substring (1);\n\n SimpleURL aTargetURL = null;\n final GoMappingItem aGoItem = getResolvedGoMappingItem (sKey);\n if (aGoItem == null)\n {\n s_aLogger.warn (\"No such go-mapping item '\" + sKey + \"'\");\n // Goto start page\n aTargetURL = getURLForNonExistingItem (aRequestScope, sKey);\n s_aStatsError.increment (sKey);\n }\n else\n {\n // Base URL\n if (aGoItem.isInternal ())\n {\n final IMenuTree aMenuTree = getMenuTree ();\n if (aMenuTree != null)\n {\n // If it is an internal menu item, check if this internal item is an\n // \"external menu item\" and if so, directly use the URL of the\n // external menu item\n final IRequestManager aARM = ApplicationRequestManager.getRequestMgr ();\n final String sTargetMenuItemID = aARM.getMenuItemFromURL (aGoItem.getTargetURL ());\n\n final IMenuObject aMenuObj = aMenuTree.getItemDataWithID (sTargetMenuItemID);\n if (aMenuObj instanceof IMenuItemExternal)\n {\n aTargetURL = new SimpleURL (((IMenuItemExternal) aMenuObj).getURL ());\n }\n }\n }\n if (aTargetURL == null)\n {\n // Default case - use target link from go-mapping\n aTargetURL = aGoItem.getTargetURL ();\n }\n\n // Callback\n modifyResultURL (aRequestScope, sKey, aTargetURL);\n\n s_aStatsOK.increment (sKey);\n }\n\n // Append all request parameters of this request\n // Don't use the request attributes, as there might be more of them\n final Enumeration <?> aEnum = aRequestScope.getRequest ().getParameterNames ();\n while (aEnum.hasMoreElements ())\n {\n final String sParamName = (String) aEnum.nextElement ();\n final String [] aParamValues = aRequestScope.getRequest ().getParameterValues (sParamName);\n if (aParamValues != null)\n for (final String sParamValue : aParamValues)\n aTargetURL.add (sParamName, sParamValue);\n }\n\n if (s_aLogger.isDebugEnabled ())\n s_aLogger.debug (\"Following go-mapping item '\" + sKey + \"' to \" + aTargetURL.getAsString ());\n else\n if (GlobalDebug.isDebugMode ())\n s_aLogger.info (\"Following go-mapping item '\" + sKey + \"' to \" + aTargetURL.getAsString ());\n\n // Main redirect :)\n aUnifiedResponse.setRedirect (aTargetURL);\n }", "void chooseMap(String username);", "private void processStoreRequest(boolean initiatorPeer, Message request, ConcurrentHashMap<Integer, ChunkInfo> hashMap) {\n if (hashMap.get(request.getHeader().getChunkNo()) == null)\n return;\n\n ConcurrentHashMap<Integer, CopyOnWriteArrayList<Integer>> storesReceivedHash = peer.getFileSystem().getStoresReceived().get(request.getHeader().getFileId());\n\n if (storesReceivedHash == null) {\n storesReceivedHash = new ConcurrentHashMap<>();\n storesReceivedHash.put(request.getHeader().getSenderId(), new CopyOnWriteArrayList<>());\n }\n\n CopyOnWriteArrayList<Integer> listOfReceivedChunkOfThatSender = storesReceivedHash.get(request.getHeader().getSenderId());\n\n if (listOfReceivedChunkOfThatSender == null) {\n CopyOnWriteArrayList<Integer> newList = new CopyOnWriteArrayList<>();\n storesReceivedHash.put(request.getHeader().getSenderId(), newList);\n listOfReceivedChunkOfThatSender = newList;\n }\n\n\n if (listOfReceivedChunkOfThatSender.contains(request.getHeader().getChunkNo()))\n return;\n\n //Add the chunk No to the record\n listOfReceivedChunkOfThatSender.add(request.getHeader().getChunkNo());\n\n ChunkInfo chunkInfo = hashMap.get(request.getHeader().getChunkNo());\n\n chunkInfo.incrementReplicationLevel();\n\n hashMap.put(request.getHeader().getChunkNo(), chunkInfo);\n\n try {\n if (initiatorPeer) {\n peer.getFileSystem().writeInternalFileMetadataToDisk();\n } else {\n peer.getFileSystem().writeExternalFileChunksMetadataToDisk();\n }\n } catch (IOException e){\n log.error(\"Error while registering an increment of the perceivedReplication\");\n }\n }", "public void handleRequest(ExtractionRequest request);" ]
[ "0.5697534", "0.5604975", "0.5530659", "0.5516496", "0.5421142", "0.53704643", "0.5360368", "0.53265136", "0.5262183", "0.52511436", "0.5244428", "0.5215254", "0.5198757", "0.519676", "0.51643974", "0.5159357", "0.5142064", "0.51175416", "0.50770664", "0.5049754", "0.50461996", "0.50235313", "0.5007703", "0.49945724", "0.49780694", "0.49661887", "0.4962181", "0.49578026", "0.49470273", "0.49227923", "0.4913091", "0.49033237", "0.49010155", "0.48896715", "0.48860565", "0.4880256", "0.4869991", "0.48689458", "0.4854935", "0.48521942", "0.48484594", "0.4840665", "0.48244548", "0.4818259", "0.48071232", "0.4806562", "0.47990254", "0.4793695", "0.47909948", "0.47729048", "0.47696656", "0.4763628", "0.47621828", "0.47587475", "0.4757722", "0.47566372", "0.47523493", "0.47353333", "0.47269526", "0.4725868", "0.47203964", "0.47152948", "0.47143382", "0.47116765", "0.47101793", "0.47083727", "0.47069147", "0.47019765", "0.47004807", "0.46881235", "0.4684326", "0.4682421", "0.46769136", "0.46712708", "0.46708295", "0.4670661", "0.46670926", "0.46483612", "0.46418324", "0.46348584", "0.462667", "0.4613163", "0.46055505", "0.45956892", "0.4595661", "0.45940393", "0.45921704", "0.45902056", "0.4588759", "0.4584062", "0.45802227", "0.45768103", "0.45761374", "0.45744532", "0.4571859", "0.45700082", "0.4565304", "0.45650014", "0.45619938", "0.4559075" ]
0.50624627
19
Created by Yann MANCEL on 02/05/2019. Name of the project: NetApp Name of the package: com.mancel.yann.netapp.model
public interface GitHubService { // Retrofit @GET("users/{username}/following") Call<List<GitHubUser>> getFollowing(@Path("username") String username); // Retrofit + ReactiveX @GET("users/{username}/following") Observable<List<GitHubUser>> getFollowingWithReactiveX(@Path("username") String username); // Retrofit + ReactiveX @GET("users/{username}") Observable<GitHubUserInfo> getUserInfoWithReactiveX(@Path("username") String username); // Retrofit public static final Retrofit retrofit = new Retrofit.Builder() .baseUrl("https://api.github.com/") .addConverterFactory(GsonConverterFactory.create()) .build(); // Retrofit + ReactiveX public static final Retrofit retrofitWithReactiveX = new Retrofit.Builder() .baseUrl("https://api.github.com/") .addConverterFactory(GsonConverterFactory.create()) .addCallAdapterFactory(RxJava2CallAdapterFactory.create()) .build(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "String deploymentModel();", "ComponentmodelPackage getComponentmodelPackage();", "private void setupModel() {\n\n //Chooses which model gets prepared\n switch (id) {\n case 2:\n singlePackage = new Node();\n activeNode = singlePackage;\n\n //Builder for model\n ModelRenderable.builder()\n .setSource(ArActivity.this, R.raw.package_solo)\n .build().thenAccept(renderable -> activeRenderable = renderable)\n .exceptionally(\n throwable -> {\n Toast.makeText(this, \"Unable to show \", Toast.LENGTH_SHORT).show();\n return null;\n }\n );\n break;\n\n case 3:\n multiPackage = new Node();\n activeNode = multiPackage;\n\n //Builder for model\n ModelRenderable.builder()\n .setSource(ArActivity.this, R.raw.package_multi_new)\n .build().thenAccept(renderable -> activeRenderable = renderable)\n .exceptionally(\n throwable -> {\n Toast.makeText(this, \"Unable to show \", Toast.LENGTH_SHORT).show();\n return null;\n }\n );\n break;\n\n case 4:\n wagonPackage = new Node();\n activeNode = wagonPackage;\n\n //Builder for model\n ModelRenderable.builder()\n .setSource(ArActivity.this, R.raw.package_car_new)\n .build().thenAccept(a -> activeRenderable = a)\n .exceptionally(\n throwable -> {\n Toast.makeText(this, \"Unable to show \", Toast.LENGTH_SHORT).show();\n return null;\n }\n );\n break;\n\n default:\n mailbox = new Node();\n activeNode = mailbox;\n\n //Builder for model\n ModelRenderable.builder()\n .setSource(ArActivity.this, R.raw.mailbox)\n .build().thenAccept(renderable -> activeRenderable = renderable)\n .exceptionally(\n throwable -> {\n Toast.makeText(this, \"Unable to show \", Toast.LENGTH_SHORT).show();\n return null;\n }\n );\n break;\n }\n }", "public static void main(String args[]) {\n Model model = ModelFactory.createDefaultModel(); \n\n//set namespace\n Resource NAMESPACE = model.createResource( relationshipUri );\n \tmodel.setNsPrefix( \"rela\", relationshipUri);\n \n// Create the types of Property we need to describe relationships in the model\n Property childOf = model.createProperty(relationshipUri,\"childOf\"); \n Property siblingOf = model.createProperty(relationshipUri,\"siblingOf\");\n Property spouseOf = model.createProperty(relationshipUri,\"spouseOf\");\n Property parentOf = model.createProperty(relationshipUri,\"parentOf\"); \n \n \n// Create resources representing the people in our model\n Resource Siddharth = model.createResource(familyUri+\"Siddharth\");\n Resource Dhvanit = model.createResource(familyUri+\"Dhvanit\");\n Resource Rekha = model.createResource(familyUri+\"Rekha\");\n Resource Sandeep = model.createResource(familyUri+\"Sandeep\");\n Resource Kanchan = model.createResource(familyUri+\"Kanchan\");\n Resource Pihu = model.createResource(familyUri+\"Pihu\");\n Resource DwarkaPrasad = model.createResource(familyUri+\"Dwarkesh\");\n Resource Shakuntala = model.createResource(familyUri+\"Shakuntala\");\n Resource Santosh = model.createResource(familyUri+\"Santosh\");\n Resource Usha = model.createResource(familyUri+\"Usha\");\n Resource Priyadarshan = model.createResource(familyUri+\"Priyadarshan\");\n Resource Sudarshan = model.createResource(familyUri+\"Sudarshan\");\n Resource Pragya = model.createResource(familyUri+\"Pragya\");\n Resource Shailendra = model.createResource(familyUri+\"Shailendra\");\n Resource Rajni = model.createResource(familyUri+\"Rajni\");\n Resource Harsh = model.createResource(familyUri+\"Harsh\");\n Resource Satendra = model.createResource(familyUri+\"Satendra\");\n Resource Vandana = model.createResource(familyUri+\"Vandana\");\n Resource Priyam = model.createResource(familyUri+\"Priyam\");\n Resource Darshan = model.createResource(familyUri+\"Darshan\");\n Resource Vardhan = model.createResource(familyUri+\"Vardhan\");\n \n List<Statement> list = new ArrayList(); \n list.add(model.createStatement(Dhvanit,spouseOf,Kanchan)); \n list.add(model.createStatement(Sandeep,spouseOf,Rekha)); \n list.add(model.createStatement(DwarkaPrasad,spouseOf,Shakuntala)); \n list.add(model.createStatement(Santosh,spouseOf,Usha)); \n list.add(model.createStatement(Shailendra,spouseOf,Rajni)); \n list.add(model.createStatement(Satendra,spouseOf,Vandana)); \n list.add(model.createStatement(Sandeep,childOf,DwarkaPrasad)); \n list.add(model.createStatement(Sandeep,childOf,Shakuntala)); \n list.add(model.createStatement(Santosh,childOf,DwarkaPrasad)); \n list.add(model.createStatement(Santosh,childOf,Shakuntala)); \n list.add(model.createStatement(Shailendra,childOf,DwarkaPrasad)); \n list.add(model.createStatement(Shailendra,childOf,Shakuntala)); \n list.add(model.createStatement(Satendra,childOf,DwarkaPrasad)); \n list.add(model.createStatement(Satendra,childOf,Shakuntala)); \n list.add(model.createStatement(DwarkaPrasad,parentOf,Sandeep)); \n list.add(model.createStatement(DwarkaPrasad,parentOf,Santosh)); \n list.add(model.createStatement(DwarkaPrasad,parentOf,Shailendra)); \n list.add(model.createStatement(DwarkaPrasad,parentOf,Satendra)); \n list.add(model.createStatement(Shakuntala,parentOf,Sandeep)); \n list.add(model.createStatement(Shakuntala,parentOf,Santosh)); \n list.add(model.createStatement(Shakuntala,parentOf,Shailendra)); \n list.add(model.createStatement(Shakuntala,parentOf,Satendra)); \n list.add(model.createStatement(Sandeep,parentOf,Siddharth)); \n list.add(model.createStatement(Sandeep,parentOf,Dhvanit)); \n list.add(model.createStatement(Rekha,parentOf,Siddharth)); \n list.add(model.createStatement(Rekha,parentOf,Dhvanit)); \n list.add(model.createStatement(Siddharth,childOf,Rekha)); \n list.add(model.createStatement(Dhvanit,childOf,Rekha)); \n list.add(model.createStatement(Siddharth,childOf,Sandeep)); \n list.add(model.createStatement(Dhvanit,childOf,Sandeep)); \n list.add(model.createStatement(Harsh,childOf,Shailendra)); \n list.add(model.createStatement(Harsh,childOf,Rajni)); \n list.add(model.createStatement(Shailendra,parentOf,Harsh)); \n list.add(model.createStatement(Rajni,parentOf,Harsh)); \n list.add(model.createStatement(Santosh,parentOf,Priyadarshan)); \n list.add(model.createStatement(Santosh,parentOf,Sudarshan));\n list.add(model.createStatement(Santosh,parentOf,Pragya));\n list.add(model.createStatement(Usha,parentOf,Priyadarshan)); \n list.add(model.createStatement(Usha,parentOf,Sudarshan));\n list.add(model.createStatement(Usha,parentOf,Pragya));\n list.add(model.createStatement(Priyadarshan,childOf,Santosh));\n list.add(model.createStatement(Pragya,childOf,Santosh));\n list.add(model.createStatement(Sudarshan,childOf,Santosh));\n list.add(model.createStatement(Priyadarshan,childOf,Usha));\n list.add(model.createStatement(Pragya,childOf,Usha));\n list.add(model.createStatement(Sudarshan,childOf,Usha));\n list.add(model.createStatement(Satendra,parentOf,Priyam)); \n list.add(model.createStatement(Satendra,parentOf,Darshan));\n list.add(model.createStatement(Satendra,parentOf,Vardhan));\n list.add(model.createStatement(Vandana,parentOf,Priyam)); \n list.add(model.createStatement(Vandana,parentOf,Darshan));\n list.add(model.createStatement(Vandana,parentOf,Vardhan));\n list.add(model.createStatement(Priyam,childOf,Satendra));\n list.add(model.createStatement(Darshan,childOf,Satendra));\n list.add(model.createStatement(Vardhan,childOf,Satendra));\n list.add(model.createStatement(Priyam,childOf,Vandana));\n list.add(model.createStatement(Darshan,childOf,Vandana));\n list.add(model.createStatement(Vardhan,childOf,Vandana));\n list.add(model.createStatement(Pihu,childOf,Dhvanit));\n list.add(model.createStatement(Pihu,childOf,Kanchan));\n list.add(model.createStatement(Dhvanit,parentOf,Pihu));\n list.add(model.createStatement(Kanchan,parentOf,Pihu));\n list.add(model.createStatement(Siddharth,siblingOf,Dhvanit));\n list.add(model.createStatement(Dhvanit,siblingOf,Siddharth)); \n list.add(model.createStatement(Priyadarshan,siblingOf,Sudarshan));\n list.add(model.createStatement(Priyadarshan,siblingOf,Pragya));\n list.add(model.createStatement(Sudarshan,siblingOf,Priyadarshan));\n list.add(model.createStatement(Sudarshan,siblingOf,Pragya));\n list.add(model.createStatement(Pragya,siblingOf,Priyadarshan));\n list.add(model.createStatement(Pragya,siblingOf,Sudarshan)); \n list.add(model.createStatement(Priyam,siblingOf,Darshan));\n list.add(model.createStatement(Priyam,siblingOf,Vardhan)); \n list.add(model.createStatement(Darshan,siblingOf,Vardhan)); \n list.add(model.createStatement(Darshan,siblingOf,Priyam));\n list.add(model.createStatement(Vardhan,siblingOf,Priyam));\n list.add(model.createStatement(Vardhan,siblingOf,Darshan));\n list.add(model.createStatement(Santosh,siblingOf,Sandeep));\n list.add(model.createStatement(Santosh,siblingOf,Shailendra));\n list.add(model.createStatement(Santosh,siblingOf,Satendra));\n list.add(model.createStatement(Sandeep,siblingOf,Santosh));\n list.add(model.createStatement(Sandeep,siblingOf,Shailendra));\n list.add(model.createStatement(Sandeep,siblingOf,Satendra));\n list.add(model.createStatement(Shailendra,siblingOf,Santosh));\n list.add(model.createStatement(Shailendra,siblingOf,Sandeep));\n list.add(model.createStatement(Shailendra,siblingOf,Satendra));\n list.add(model.createStatement(Satendra,siblingOf,Shailendra));\n list.add(model.createStatement(Satendra,siblingOf,Santosh));\n list.add(model.createStatement(Satendra,siblingOf,Sandeep));\n \n model.add(list);\n try{\n \t File file=new File(\"/Users/siddharthgupta/Documents/workspace/FamilyModel/src/family/family.rdf\");\n \t \tFileOutputStream f1=new FileOutputStream(file);\n \t \tRDFWriter d = model.getWriter(\"RDF/XML-ABBREV\");\n \t \t\t\td.write(model,f1,null);\n \t\t}catch(Exception e) {}\n }", "GoalModelingPackage getGoalModelingPackage();", "private BasePackage getPackageModel()\r\n {\r\n return packageCartService.getBasePackage();\r\n }", "NCModel getModel();", "DataModelOracle getDataModelOracle( Path project );", "private static void jbptTest2() throws FileNotFoundException, Exception {\n\t\tFile folder = new File(\"models\");\n\t\t\n\t\tFile[] arModels = folder.listFiles(new FileUtil().getFileter(\"pnml\"));\n\t\tfor(File file: arModels)\n\t\t{\n\t\t\t//print the file name\n\t\t\tSystem.out.println(\"========\" + file.getName() + \"========\");\n\n\t\t\t//initialize the counter for conditions and events\n\t\t\tAbstractEvent.count = 0;\n\t\t\tAbstractCondition.count = 0;\n\n\t\t\t//get the file path\n\t\t\tString filePrefix = file.getPath();\n\t\t\tfilePrefix = filePrefix.substring(0, filePrefix.lastIndexOf('.'));\n\t\t\tString filePNG = filePrefix + \".png\";\n\t\t\tString fileCPU = filePrefix + \"-cpu.png\";\n\t\t\tString fileNet = filePrefix + \"-cpu.pnml\";\n\n\t\t\tPnmlImport pnmlImport = new PnmlImport();\n\t\t\tPetriNet p1 = pnmlImport.read(new FileInputStream(file));\n\n\t\t\t// ori\n\t\t\t/*ProvidedObject po1 = new ProvidedObject(\"petrinet\", p1);\n\t\t\t\n\t\t\tDotPngExport dpe1 = new DotPngExport();\n\t\t\tOutputStream image1 = new FileOutputStream(filePNG);\n\t\t\t\n\t\t\tdpe1.export(po1, image1);*/\n\n\t\t\tNetSystem ns = PetriNetConversion.convert(p1);\n\t\t\tProperCompletePrefixUnfolding cpu = new ProperCompletePrefixUnfolding(ns);\n\t\t\tNetSystem netPCPU = PetriNetConversion.convertCPU2NS(cpu);\n\t\t\t// cpu\n\t\t\tPetriNet p2 = PetriNetConversion.convert(netPCPU);\n\t\t\t\n\t\t\tProvidedObject po2 = new ProvidedObject(\"petrinet\", p2);\n\t\t\tDotPngExport dpe2 = new DotPngExport();\n\t\t\tOutputStream image2 = new FileOutputStream(fileCPU);\n\t\t\tdpe2.export(po2, image2);\n//\t\t\t\n\t\t\tExport(p2, fileNet);\n//\t\t\t// net\n//\t\t\tNetSystem nsCPU = PetriNetConversion.convertCPU2NS(cpu);\n//\t\t\tPetriNet pnCPU = PetriNetConversion.convertNS2PN(nsCPU);\n//\t\t\tProvidedObject po3 = new ProvidedObject(\"petrinet\", pnCPU);\n//\t\t\tDotPngExport dpe3 = new DotPngExport();\n//\t\t\tOutputStream image3 = new FileOutputStream(fileNet);\n//\t\t\tdpe3.export(po3, image3);\n\t\t}\n\t\t\tSystem.exit(0);\n\t}", "public void createPackageContents()\n {\n if (isCreated) return;\n isCreated = true;\n\n // Create classes and their features\n modelEClass = createEClass(MODEL);\n createEReference(modelEClass, MODEL__PARAMS);\n createEReference(modelEClass, MODEL__STATES);\n createEReference(modelEClass, MODEL__POPULATION);\n\n paramEClass = createEClass(PARAM);\n createEAttribute(paramEClass, PARAM__NAME);\n createEAttribute(paramEClass, PARAM__VALUE);\n\n agentStateEClass = createEClass(AGENT_STATE);\n createEAttribute(agentStateEClass, AGENT_STATE__NAME);\n createEReference(agentStateEClass, AGENT_STATE__PREFIXS);\n\n prefixEClass = createEClass(PREFIX);\n createEReference(prefixEClass, PREFIX__ACTION);\n createEAttribute(prefixEClass, PREFIX__CONTINUE);\n\n actionEClass = createEClass(ACTION);\n createEAttribute(actionEClass, ACTION__NAME);\n createEReference(actionEClass, ACTION__RATE);\n\n acT_SpNoMsgEClass = createEClass(ACT_SP_NO_MSG);\n\n acT_SpBrEClass = createEClass(ACT_SP_BR);\n createEReference(acT_SpBrEClass, ACT_SP_BR__RANGE);\n\n acT_SpUniEClass = createEClass(ACT_SP_UNI);\n createEReference(acT_SpUniEClass, ACT_SP_UNI__RANGE);\n\n acT_InBrEClass = createEClass(ACT_IN_BR);\n createEReference(acT_InBrEClass, ACT_IN_BR__VALUE);\n\n acT_InUniEClass = createEClass(ACT_IN_UNI);\n createEReference(acT_InUniEClass, ACT_IN_UNI__VALUE);\n\n iRangeEClass = createEClass(IRANGE);\n\n pR_ExprEClass = createEClass(PR_EXPR);\n createEReference(pR_ExprEClass, PR_EXPR__PR_E);\n\n terminal_PR_ExprEClass = createEClass(TERMINAL_PR_EXPR);\n createEAttribute(terminal_PR_ExprEClass, TERMINAL_PR_EXPR__LINKED_PARAM);\n\n ratE_ExprEClass = createEClass(RATE_EXPR);\n createEReference(ratE_ExprEClass, RATE_EXPR__RT);\n\n terminal_RATE_ExprEClass = createEClass(TERMINAL_RATE_EXPR);\n createEAttribute(terminal_RATE_ExprEClass, TERMINAL_RATE_EXPR__LINKED_PARAM);\n\n agenT_NUMEClass = createEClass(AGENT_NUM);\n createEAttribute(agenT_NUMEClass, AGENT_NUM__TYPE);\n\n populationEClass = createEClass(POPULATION);\n createEReference(populationEClass, POPULATION__POPU);\n\n agentsEClass = createEClass(AGENTS);\n createEAttribute(agentsEClass, AGENTS__TYPE);\n }", "public String getModuleName() {\n\t\treturn \"IGA: Prepare data for Model (Decision Tree)\";\n\t}", "public static void main(String[] args) throws Exception {\n Path modelPath = Paths.get(\"saved_graph_file\");\n byte[] graph = Files.readAllBytes(modelPath);\n\n // SavedModelBundle svd = SavedModelBundle.load(\"gin_rummy_nfsp4\", \"serve\");\n // System.out.println(svd.metaGraphDef());\n\n Graph g = new Graph();\n\n g.importGraphDef(graph);\n\n // Print for tags.\n Iterator<Operation> ops = g.operations();\n while (ops.hasNext()) {\n Operation op = ops.next();\n // Types are: Add, Const, Placeholder, Sigmoid, MatMul, Identity\n if (op.type().equals(\"Placeholder\")) {\n System.out.println(\"Type: \" + op.type() + \", Name: \" + op.name() + \", NumOutput: \" + op.numOutputs());\n System.out.println(\"OUTPUT: \" + op.output(0).shape());\n }\n }\n\n //open session using imported graph\n Session sess = new Session(g);\n float[][] inputData = {{4, 3, 2, 1}};\n\n // We have to create tensor to feed it to session,\n // unlike in Python where you just pass Numpy array\n Tensor inputTensor = Tensor.create(inputData, Float.class);\n float[][] output = predict(sess, inputTensor);\n for (int i = 0; i < output[0].length; i++) {\n System.out.println(output[0][i]);\n }\n }", "public void createPackageContents()\n {\n if (isCreated) return;\n isCreated = true;\n\n // Create classes and their features\n modelEClass = createEClass(MODEL);\n createEReference(modelEClass, MODEL__AGENT);\n\n agentEClass = createEClass(AGENT);\n createEAttribute(agentEClass, AGENT__NAME);\n\n intentEClass = createEClass(INTENT);\n createEReference(intentEClass, INTENT__SUPER_TYPE);\n createEReference(intentEClass, INTENT__IS_FOLLOW_UP);\n createEReference(intentEClass, INTENT__QUESTION);\n createEReference(intentEClass, INTENT__TRAINING);\n\n isFollowUpEClass = createEClass(IS_FOLLOW_UP);\n createEReference(isFollowUpEClass, IS_FOLLOW_UP__INTENT);\n\n entityEClass = createEClass(ENTITY);\n createEReference(entityEClass, ENTITY__EXAMPLE);\n\n questionEClass = createEClass(QUESTION);\n createEReference(questionEClass, QUESTION__QUESTION_ENTITY);\n createEAttribute(questionEClass, QUESTION__PROMPT);\n\n questionEntityEClass = createEClass(QUESTION_ENTITY);\n createEReference(questionEntityEClass, QUESTION_ENTITY__WITH_ENTITY);\n\n trainingEClass = createEClass(TRAINING);\n createEReference(trainingEClass, TRAINING__TRAININGREF);\n\n trainingRefEClass = createEClass(TRAINING_REF);\n createEAttribute(trainingRefEClass, TRAINING_REF__PHRASE);\n createEReference(trainingRefEClass, TRAINING_REF__DECLARATION);\n\n declarationEClass = createEClass(DECLARATION);\n createEAttribute(declarationEClass, DECLARATION__TRAININGSTRING);\n createEReference(declarationEClass, DECLARATION__REFERENCE);\n\n entityExampleEClass = createEClass(ENTITY_EXAMPLE);\n createEAttribute(entityExampleEClass, ENTITY_EXAMPLE__NAME);\n\n sysvariableEClass = createEClass(SYSVARIABLE);\n createEAttribute(sysvariableEClass, SYSVARIABLE__VALUE);\n\n referenceEClass = createEClass(REFERENCE);\n createEReference(referenceEClass, REFERENCE__ENTITY);\n createEReference(referenceEClass, REFERENCE__SYSVAR);\n }", "private Model getThisModel(String name, Model model) {\n\t\t\t\n\t\t\t Model modret=ModelFactory.createOntologyModel(OntModelSpec.OWL_MEM);\n\t\t\t\t String text=dbs.getModel(name);\n\t\t\t\t\n\t\t\t\t//System.out.println(\"TEXT\"+text+\"TEXT!!!\");\n\t\t\t\t if(text==null){\n\t\t\t\t\t modret.setNsPrefix(\"foaf\", NS.FOAF);\n\t\t\t\t\t\tmodret.setNsPrefix(\"cisp\", NS.CISP);\n\t\t\t\t\t\tmodret.setNsPrefix(\"prov\", NS.PROV);\n\t\t\t\t\t\tmodret.setNsPrefix(\"rdf\", NS.RDF);\n\t\t\t\t\treturn modret;\n\t\t\t\t }\n\t\t\t\t else{\n\t\t\t\t\t //read model \n\t\t\t\t\t InputStream input = new ByteArrayInputStream(text.getBytes());\n\t \n\t\t\t\t\t modret.read(input, null,\"RDF/JSON\");\n\t\t\t\t\t modret.setNsPrefix(\"foaf\", NS.FOAF);\n\t\t\t\t\t\tmodret.setNsPrefix(\"cisp\", NS.CISP);\n\t\t\t\t\t\tmodret.setNsPrefix(\"prov\", NS.PROV);\n\t\t\t\t\t\tmodret.setNsPrefix(\"rdf\", NS.RDF);\n\t\t\t\t }\n\t\t\t\t return modret;\n\t \n\t\t }", "private static String newModel(Request req) {\n\n if( req.params(\"Version\").equals(\"Updated\") ) {\n\n // make new model, make gson object, convert model to json using gson\n BattleshipModelUpdated game = new BattleshipModelUpdated();\n Gson gson = new Gson();\n return gson.toJson( game );\n\n }else{\n\n // make new model, make gson object, convert model to json using gson\n BattleshipModelNormal game = new BattleshipModelNormal();\n Gson gson = new Gson();\n return gson.toJson( game );\n\n }\n }", "public ModelPackage(String name, String displayName) {\n\t\tsuper(name, displayName);\n\t\tinitInternalObjects();\n\t}", "public void createPackageContents() {\n\t\tif (isCreated)\n\t\t\treturn;\n\t\tisCreated = true;\n\n\t\t// Create classes and their features\n\t\tprojectEClass = createEClass(PROJECT);\n\t\tcreateEReference(projectEClass, PROJECT__PLUGINS);\n\t\tcreateEAttribute(projectEClass, PROJECT__NAME);\n\t\tcreateEReference(projectEClass, PROJECT__REPOSITORIES);\n\t\tcreateEReference(projectEClass, PROJECT__DEPENDENCIES);\n\t\tcreateEReference(projectEClass, PROJECT__VIEWS);\n\t\tcreateEReference(projectEClass, PROJECT__PROPERTIES);\n\n\t\tpluginEClass = createEClass(PLUGIN);\n\t\tcreateEReference(pluginEClass, PLUGIN__REPOSITORIES);\n\t\tcreateEReference(pluginEClass, PLUGIN__OUTPUT_PORTS);\n\t\tcreateEReference(pluginEClass, PLUGIN__DISPLAYS);\n\n\t\tportEClass = createEClass(PORT);\n\t\tcreateEAttribute(portEClass, PORT__NAME);\n\t\tcreateEAttribute(portEClass, PORT__EVENT_TYPES);\n\t\tcreateEAttribute(portEClass, PORT__ID);\n\n\t\tinputPortEClass = createEClass(INPUT_PORT);\n\t\tcreateEReference(inputPortEClass, INPUT_PORT__PARENT);\n\n\t\toutputPortEClass = createEClass(OUTPUT_PORT);\n\t\tcreateEReference(outputPortEClass, OUTPUT_PORT__SUBSCRIBERS);\n\t\tcreateEReference(outputPortEClass, OUTPUT_PORT__PARENT);\n\n\t\tpropertyEClass = createEClass(PROPERTY);\n\t\tcreateEAttribute(propertyEClass, PROPERTY__NAME);\n\t\tcreateEAttribute(propertyEClass, PROPERTY__VALUE);\n\n\t\tfilterEClass = createEClass(FILTER);\n\t\tcreateEReference(filterEClass, FILTER__INPUT_PORTS);\n\n\t\treaderEClass = createEClass(READER);\n\n\t\trepositoryEClass = createEClass(REPOSITORY);\n\n\t\tdependencyEClass = createEClass(DEPENDENCY);\n\t\tcreateEAttribute(dependencyEClass, DEPENDENCY__FILE_PATH);\n\n\t\trepositoryConnectorEClass = createEClass(REPOSITORY_CONNECTOR);\n\t\tcreateEAttribute(repositoryConnectorEClass, REPOSITORY_CONNECTOR__NAME);\n\t\tcreateEReference(repositoryConnectorEClass, REPOSITORY_CONNECTOR__REPOSITORY);\n\t\tcreateEAttribute(repositoryConnectorEClass, REPOSITORY_CONNECTOR__ID);\n\n\t\tdisplayEClass = createEClass(DISPLAY);\n\t\tcreateEAttribute(displayEClass, DISPLAY__NAME);\n\t\tcreateEReference(displayEClass, DISPLAY__PARENT);\n\t\tcreateEAttribute(displayEClass, DISPLAY__ID);\n\n\t\tviewEClass = createEClass(VIEW);\n\t\tcreateEAttribute(viewEClass, VIEW__NAME);\n\t\tcreateEAttribute(viewEClass, VIEW__DESCRIPTION);\n\t\tcreateEReference(viewEClass, VIEW__DISPLAY_CONNECTORS);\n\t\tcreateEAttribute(viewEClass, VIEW__ID);\n\n\t\tdisplayConnectorEClass = createEClass(DISPLAY_CONNECTOR);\n\t\tcreateEAttribute(displayConnectorEClass, DISPLAY_CONNECTOR__NAME);\n\t\tcreateEReference(displayConnectorEClass, DISPLAY_CONNECTOR__DISPLAY);\n\t\tcreateEAttribute(displayConnectorEClass, DISPLAY_CONNECTOR__ID);\n\n\t\tanalysisComponentEClass = createEClass(ANALYSIS_COMPONENT);\n\t\tcreateEAttribute(analysisComponentEClass, ANALYSIS_COMPONENT__NAME);\n\t\tcreateEAttribute(analysisComponentEClass, ANALYSIS_COMPONENT__CLASSNAME);\n\t\tcreateEReference(analysisComponentEClass, ANALYSIS_COMPONENT__PROPERTIES);\n\t\tcreateEAttribute(analysisComponentEClass, ANALYSIS_COMPONENT__ID);\n\t}", "private static void generModeloDePrueba() {\n\t\tCSharpArchIdPackageImpl.init();\n // Retrieve the default factory singleton\n\t\tCSharpArchIdFactory factory = CSharpArchIdFactory.eINSTANCE;\n // create an instance of myWeb\n\t\tModel modelo = factory.createModel();\n\t\tmodelo.setName(\"Prueba\"); \n // create a page\n\t\tCompileUnit cu = factory.createCompileUnit();\n\t\tcu.setName(\"archivo.cs\");\n\t\tClassDeclaration clase = factory.createClassDeclaration();\n\t\t//clase.setName(\"Sumar\");\n\t\t//cu.getTypeDeclaration().add(clase);\n modelo.getCompileUnits().add(cu);\n \n Resource.Factory.Registry reg = Resource.Factory.Registry.INSTANCE;\n Map<String, Object> m = reg.getExtensionToFactoryMap();\n m.put(\"model\", new XMIResourceFactoryImpl());\n\n // Obtain a new resource set\n ResourceSet resSet = new ResourceSetImpl();\n\n // create a resource\n Resource resource = resSet.createResource(URI\n .createURI(\"CSharpArchId.model\"));\n // Get the first model element and cast it to the right type, in my\n // example everything is hierarchical included in this first node\n resource.getContents().add(modelo);\n\n // now save the content.\n try {\n resource.save(Collections.EMPTY_MAP);\n } catch (IOException e) {\n // TODO Auto-generated catch block\n e.printStackTrace();\n }\n\t\t\n // and so on, and so on\n // as you can see the EMF model can be (more or less) used as standard Java\n\t}", "public void createModelFromAlloy(){\n\t\t// Get signatures list\n\t\tSafeList<Sig> sigs = module.getAllSigs();\n\t\t// Check if the list is empty\n\t\tif(sigs.isEmpty()) assertMessage(\"Error in create Model FromAlloy: no sig found!\");\n\t\t// Generate java class source file for one top-level sig at a time\n\t\tfor(int i = 0; i<sigs.size(); i++) {\n\t\t\tSig aSig = sigs.get(i);\n\t\t\tif (!aSig.isTopLevel()) continue;\n\t\t\tif(!aSig.builtin){ // User-defined sig\n\t\t\t\tif(aSig.isSubsig != null){\n\t\t\t\t\tPrimSig pSig = (PrimSig) aSig;\n\t\t\t\t\trecursiveGenerate(null, pSig);\t\n\t\t\t\t} else assertMessage(\"TODO: Dealt with subset sig\");\n\t\t\t}\n\t\t\telse assertMessage(\"TODO: Dealt with built-in sig\");\n\t\t}\n\t}", "public void createPackageContents()\n {\n if (isCreated) return;\n isCreated = true;\n\n // Create classes and their features\n modelEClass = createEClass(MODEL);\n createEReference(modelEClass, MODEL__SPEC);\n\n statementEClass = createEClass(STATEMENT);\n createEReference(statementEClass, STATEMENT__DEF);\n createEReference(statementEClass, STATEMENT__OUT);\n createEReference(statementEClass, STATEMENT__IN);\n createEAttribute(statementEClass, STATEMENT__COMMENT);\n\n definitionEClass = createEClass(DEFINITION);\n createEAttribute(definitionEClass, DEFINITION__NAME);\n createEReference(definitionEClass, DEFINITION__PARAM_LIST);\n createEAttribute(definitionEClass, DEFINITION__TYPE);\n createEReference(definitionEClass, DEFINITION__EXPRESSION);\n\n paramListEClass = createEClass(PARAM_LIST);\n createEAttribute(paramListEClass, PARAM_LIST__PARAMS);\n createEAttribute(paramListEClass, PARAM_LIST__TYPES);\n\n outEClass = createEClass(OUT);\n createEReference(outEClass, OUT__EXP);\n createEAttribute(outEClass, OUT__NAME);\n\n inEClass = createEClass(IN);\n createEAttribute(inEClass, IN__NAME);\n createEAttribute(inEClass, IN__TYPE);\n\n typedExpressionEClass = createEClass(TYPED_EXPRESSION);\n createEReference(typedExpressionEClass, TYPED_EXPRESSION__EXP);\n createEAttribute(typedExpressionEClass, TYPED_EXPRESSION__TYPE);\n\n expressionEClass = createEClass(EXPRESSION);\n\n valueEClass = createEClass(VALUE);\n createEAttribute(valueEClass, VALUE__OP);\n createEReference(valueEClass, VALUE__EXP);\n createEReference(valueEClass, VALUE__STATEMENTS);\n createEAttribute(valueEClass, VALUE__NAME);\n createEReference(valueEClass, VALUE__ARGS);\n\n argEClass = createEClass(ARG);\n createEAttribute(argEClass, ARG__ARG);\n createEReference(argEClass, ARG__EXP);\n\n ifStatementEClass = createEClass(IF_STATEMENT);\n createEReference(ifStatementEClass, IF_STATEMENT__IF);\n createEReference(ifStatementEClass, IF_STATEMENT__THEN);\n createEReference(ifStatementEClass, IF_STATEMENT__ELSE);\n\n operationEClass = createEClass(OPERATION);\n createEReference(operationEClass, OPERATION__LEFT);\n createEAttribute(operationEClass, OPERATION__OP);\n createEReference(operationEClass, OPERATION__RIGHT);\n }", "private synchronized void downloadModel(String modelName) {\n final FirebaseCustomRemoteModel remoteModel =\n new FirebaseCustomRemoteModel\n .Builder(modelName)\n .build();\n FirebaseModelDownloadConditions conditions =\n new FirebaseModelDownloadConditions.Builder()\n .requireWifi()\n .build();\n final FirebaseModelManager firebaseModelManager = FirebaseModelManager.getInstance();\n firebaseModelManager\n .download(remoteModel, conditions)\n .continueWithTask(task ->\n firebaseModelManager.getLatestModelFile(remoteModel)\n )\n .continueWith(executorService, (Continuation<File, Void>) task -> {\n // Initialize a text classifier instance with the model\n File modelFile = task.getResult();\n\n // TODO 6: Initialize a TextClassifier with the downloaded model\n textClassifier = NLClassifier.createFromFile(modelFile);\n\n // Enable predict button\n predictButton.setEnabled(true);\n return null;\n })\n .addOnFailureListener(e -> {\n Log.e(TAG, \"Failed to download and initialize the model. \", e);\n Toast.makeText(\n MainActivity.this,\n \"Model download failed, please check your connection.\",\n Toast.LENGTH_LONG)\n .show();\n predictButton.setEnabled(false);\n });\n }", "public void createPackageContents()\n {\n if (isCreated) return;\n isCreated = true;\n\n // Create classes and their features\n modelEClass = createEClass(MODEL);\n createEReference(modelEClass, MODEL__STMTS);\n\n simpleStatementEClass = createEClass(SIMPLE_STATEMENT);\n\n assignmentEClass = createEClass(ASSIGNMENT);\n createEReference(assignmentEClass, ASSIGNMENT__LEFT_HAND_SIDE);\n createEReference(assignmentEClass, ASSIGNMENT__RIGHT_HAND_SIDE);\n\n expressionEClass = createEClass(EXPRESSION);\n\n unaryMinusExpressionEClass = createEClass(UNARY_MINUS_EXPRESSION);\n createEReference(unaryMinusExpressionEClass, UNARY_MINUS_EXPRESSION__SUB);\n\n unaryPlusExpressionEClass = createEClass(UNARY_PLUS_EXPRESSION);\n createEReference(unaryPlusExpressionEClass, UNARY_PLUS_EXPRESSION__SUB);\n\n logicalNegationExpressionEClass = createEClass(LOGICAL_NEGATION_EXPRESSION);\n createEReference(logicalNegationExpressionEClass, LOGICAL_NEGATION_EXPRESSION__SUB);\n\n bracketExpressionEClass = createEClass(BRACKET_EXPRESSION);\n createEReference(bracketExpressionEClass, BRACKET_EXPRESSION__SUB);\n\n pointerCallEClass = createEClass(POINTER_CALL);\n\n variableCallEClass = createEClass(VARIABLE_CALL);\n createEAttribute(variableCallEClass, VARIABLE_CALL__NAME);\n\n arraySpecifierEClass = createEClass(ARRAY_SPECIFIER);\n\n unarySpecifierEClass = createEClass(UNARY_SPECIFIER);\n createEAttribute(unarySpecifierEClass, UNARY_SPECIFIER__INDEX);\n\n rangeSpecifierEClass = createEClass(RANGE_SPECIFIER);\n createEAttribute(rangeSpecifierEClass, RANGE_SPECIFIER__FROM);\n createEAttribute(rangeSpecifierEClass, RANGE_SPECIFIER__TO);\n\n ioFunctionsEClass = createEClass(IO_FUNCTIONS);\n createEAttribute(ioFunctionsEClass, IO_FUNCTIONS__FILE_NAME);\n\n infoFunctionsEClass = createEClass(INFO_FUNCTIONS);\n\n manipFunctionsEClass = createEClass(MANIP_FUNCTIONS);\n\n arithFunctionsEClass = createEClass(ARITH_FUNCTIONS);\n createEReference(arithFunctionsEClass, ARITH_FUNCTIONS__EXPRESSION);\n createEReference(arithFunctionsEClass, ARITH_FUNCTIONS__FIELD);\n createEReference(arithFunctionsEClass, ARITH_FUNCTIONS__WHERE_EXPRESSION);\n\n loadEClass = createEClass(LOAD);\n\n storeEClass = createEClass(STORE);\n createEReference(storeEClass, STORE__EXPRESSION);\n\n exportEClass = createEClass(EXPORT);\n createEReference(exportEClass, EXPORT__EXPRESSION);\n\n printEClass = createEClass(PRINT);\n createEReference(printEClass, PRINT__EXPRESSION);\n\n depthEClass = createEClass(DEPTH);\n createEReference(depthEClass, DEPTH__EXPRESSION);\n\n fieldInfoEClass = createEClass(FIELD_INFO);\n createEReference(fieldInfoEClass, FIELD_INFO__EXPRESSION);\n\n containsEClass = createEClass(CONTAINS);\n createEReference(containsEClass, CONTAINS__KEYS);\n createEReference(containsEClass, CONTAINS__RIGHT);\n\n selectEClass = createEClass(SELECT);\n createEReference(selectEClass, SELECT__FIELDS);\n createEReference(selectEClass, SELECT__FROM_EXPRESSION);\n createEReference(selectEClass, SELECT__WHERE_EXPRESSION);\n\n lengthEClass = createEClass(LENGTH);\n createEReference(lengthEClass, LENGTH__EXPRESSION);\n\n sumEClass = createEClass(SUM);\n\n productEClass = createEClass(PRODUCT);\n\n constantEClass = createEClass(CONSTANT);\n\n primitiveEClass = createEClass(PRIMITIVE);\n createEAttribute(primitiveEClass, PRIMITIVE__STR);\n createEAttribute(primitiveEClass, PRIMITIVE__INT_NUM);\n createEAttribute(primitiveEClass, PRIMITIVE__FLOAT_NUM);\n createEAttribute(primitiveEClass, PRIMITIVE__BOOL);\n createEAttribute(primitiveEClass, PRIMITIVE__NIL);\n\n arrayEClass = createEClass(ARRAY);\n createEReference(arrayEClass, ARRAY__VALUES);\n\n jSonObjectEClass = createEClass(JSON_OBJECT);\n createEReference(jSonObjectEClass, JSON_OBJECT__FIELDS);\n\n fieldEClass = createEClass(FIELD);\n createEReference(fieldEClass, FIELD__KEY);\n createEReference(fieldEClass, FIELD__VALUE);\n\n disjunctionExpressionEClass = createEClass(DISJUNCTION_EXPRESSION);\n createEReference(disjunctionExpressionEClass, DISJUNCTION_EXPRESSION__LEFT);\n createEReference(disjunctionExpressionEClass, DISJUNCTION_EXPRESSION__RIGHT);\n\n conjunctionExpressionEClass = createEClass(CONJUNCTION_EXPRESSION);\n createEReference(conjunctionExpressionEClass, CONJUNCTION_EXPRESSION__LEFT);\n createEReference(conjunctionExpressionEClass, CONJUNCTION_EXPRESSION__RIGHT);\n\n equalityExpressionEClass = createEClass(EQUALITY_EXPRESSION);\n createEReference(equalityExpressionEClass, EQUALITY_EXPRESSION__LEFT);\n createEReference(equalityExpressionEClass, EQUALITY_EXPRESSION__RIGHT);\n\n inequalityExpressionEClass = createEClass(INEQUALITY_EXPRESSION);\n createEReference(inequalityExpressionEClass, INEQUALITY_EXPRESSION__LEFT);\n createEReference(inequalityExpressionEClass, INEQUALITY_EXPRESSION__RIGHT);\n\n superiorExpressionEClass = createEClass(SUPERIOR_EXPRESSION);\n createEReference(superiorExpressionEClass, SUPERIOR_EXPRESSION__LEFT);\n createEReference(superiorExpressionEClass, SUPERIOR_EXPRESSION__RIGHT);\n\n superiorOrEqualExpressionEClass = createEClass(SUPERIOR_OR_EQUAL_EXPRESSION);\n createEReference(superiorOrEqualExpressionEClass, SUPERIOR_OR_EQUAL_EXPRESSION__LEFT);\n createEReference(superiorOrEqualExpressionEClass, SUPERIOR_OR_EQUAL_EXPRESSION__RIGHT);\n\n inferiorExpressionEClass = createEClass(INFERIOR_EXPRESSION);\n createEReference(inferiorExpressionEClass, INFERIOR_EXPRESSION__LEFT);\n createEReference(inferiorExpressionEClass, INFERIOR_EXPRESSION__RIGHT);\n\n inferiorOrEqualExpressionEClass = createEClass(INFERIOR_OR_EQUAL_EXPRESSION);\n createEReference(inferiorOrEqualExpressionEClass, INFERIOR_OR_EQUAL_EXPRESSION__LEFT);\n createEReference(inferiorOrEqualExpressionEClass, INFERIOR_OR_EQUAL_EXPRESSION__RIGHT);\n\n additionExpressionEClass = createEClass(ADDITION_EXPRESSION);\n createEReference(additionExpressionEClass, ADDITION_EXPRESSION__LEFT);\n createEReference(additionExpressionEClass, ADDITION_EXPRESSION__RIGHT);\n\n substractionExpressionEClass = createEClass(SUBSTRACTION_EXPRESSION);\n createEReference(substractionExpressionEClass, SUBSTRACTION_EXPRESSION__LEFT);\n createEReference(substractionExpressionEClass, SUBSTRACTION_EXPRESSION__RIGHT);\n\n multiplicationExpressionEClass = createEClass(MULTIPLICATION_EXPRESSION);\n createEReference(multiplicationExpressionEClass, MULTIPLICATION_EXPRESSION__LEFT);\n createEReference(multiplicationExpressionEClass, MULTIPLICATION_EXPRESSION__RIGHT);\n\n divisionExpressionEClass = createEClass(DIVISION_EXPRESSION);\n createEReference(divisionExpressionEClass, DIVISION_EXPRESSION__LEFT);\n createEReference(divisionExpressionEClass, DIVISION_EXPRESSION__RIGHT);\n\n moduloExpressionEClass = createEClass(MODULO_EXPRESSION);\n createEReference(moduloExpressionEClass, MODULO_EXPRESSION__LEFT);\n createEReference(moduloExpressionEClass, MODULO_EXPRESSION__RIGHT);\n\n arrayCallEClass = createEClass(ARRAY_CALL);\n createEReference(arrayCallEClass, ARRAY_CALL__CALLEE);\n createEReference(arrayCallEClass, ARRAY_CALL__SPECIFIER);\n\n fieldCallEClass = createEClass(FIELD_CALL);\n createEReference(fieldCallEClass, FIELD_CALL__CALLEE);\n createEAttribute(fieldCallEClass, FIELD_CALL__FIELD);\n }", "public JmlModelImport () throws CGException {\n try {\n\n ivModel = null;\n ivImport = UTIL.ConvertToString(new String());\n }\n catch (Exception e){\n\n e.printStackTrace(System.out);\n System.out.println(e.getMessage());\n }\n }", "opmodelFactory getopmodelFactory();", "private Model generateModel(String groupId, String artifactId, String version) {\n \n Model model = new Model();\n \n model.setModelVersion(\"4.0.0\");\n model.setGroupId(groupId);\n model.setArtifactId(artifactId);\n model.setVersion(version);\n model.setPackaging(HaxeFileExtensions.HAXELIB);\n model.setDescription(\"POM was created from Haxemojos\");\n \n return model;\n }", "private String generateModel() {\n\t\tString model = \"\";\n\t\tint caseNumber = randomGenerator.nextInt(6) + 1;\n\t\t\n\t\tswitch (caseNumber) {\n\t\tcase 1: \n\t\t\tmodel = \"compact\";\n\t\t\tbreak;\n\t\tcase 2: \n\t\t\tmodel = \"intermediate\";\n\t\t\tbreak;\n\t\tcase 3: \n\t\t\tmodel = \"fullSized\";\n\t\t\tbreak;\n\t\tcase 4: \n\t\t\tmodel = \"van\";\n\t\t\tbreak;\n\t\tcase 5: \n\t\t\tmodel = \"suv\";\n\t\t\tbreak;\n\t\tcase 6: \n\t\t\tmodel = \"pickup\";\n\t\t\tbreak;\n\t\tdefault: \n\t\t\tmodel = \"\";\n\t\t\tbreak;\n\t\t}\n\t\treturn model;\n\t}", "protected static String getModelPackageName (Context context){\r\n\t\tString packageName = getMetaDataString(context, METADATA_MODEL_PACKAGE_NAME);\r\n\t\tif (packageName == null)\r\n\t\t\treturn \"\";\r\n\t\treturn packageName;\r\n\t}", "public void modelShow() {\n\t\tSystem.out.println(\"秀衣服\");\n\t}", "private IJavaModel getJavaModel() {\n\t\treturn JavaCore.create(getWorkspaceRoot());\n\t}", "NassishneidermanPackage getNassishneidermanPackage();", "public static void main(String[] args) {\r\n IModel model = new Model();\r\n\r\n model.addShape(\"R\", ShapeType.RECTANGLE, 1, 39, 1, 1, 1, 1, 20, 20, 20);\r\n model.addShape(\"B\", ShapeType.OVAL, 3, 45, 2, 2, 2, 2, 5, 5, 5);\r\n\r\n IMotion motion3 = new ChangeColor(\"R\", 13, 16, 30, 30, 30, 40, 40, 40);\r\n model.addMotion(motion3);\r\n\r\n IMotion motion1 = new ChangeColor(\"R\", 2, 10, 30, 30, 30, 40, 40, 40);\r\n model.addMotion(motion1);\r\n\r\n IMotion motion4 = new Scale(\"R\", 5, 7, 5, 2, 8, 8);\r\n model.addMotion(motion4);\r\n\r\n IMotion motion2 = new ChangeColor(\"R\", 10, 13, 30, 30, 30, 40, 40, 40);\r\n model.addMotion(motion2);\r\n\r\n IMotion motion5 = new ChangeColor(\"R\", 46, 49, 30, 30, 30, 40, 40, 40);\r\n model.addMotion(motion5);\r\n\r\n\r\n System.out.print(model.getState());\r\n\r\n\r\n }", "public static void main(String[] args) {\n//\n// controller.setSoldierRank(0, \"Turai\");\n// controller.addModel(new Model(2, \"Lera\", \"RavSamal\"));\n// controller.updateViews();\n\n Controller controller = new Controller();\n controller.addModel(new Model(1, \"Gal\", \"Citizen\"));\n controller.addModel(new Model(12121, \"bubu\", \"Smar\"));\n controller.addModel(new Model(624, \"Groot\", \"Tree\"));\n controller.addModel(new Model(-10, \"Deadpool\", \"Awesome\"));\n controller.addModel(new Model(100, \"Nikita\", \"Citizen\"));\n\n controller.presentUI();\n\n controller.updateViews();\n }", "public static void main(String[] args) {\r\n\t\t\t\r\n\t\t\tModel model = new Model();\r\n\t\t\tSeason s=new Season(2016);\r\n\t\t\tTeam team=new Team(\"Genoa\");\r\n\t\t\tTeam team2=new Team(\"Sampdoria\");\r\n\t\t\t\r\n\t\t\tmodel.creaGrafo(s) ;\r\n//\t\t\tmodel.creaGrafo2(s) ;\r\n\t\t\tList<Team> vc= model.trovaViciniConnessi(team,s);\t\t\r\n\t\t\tSystem.out.println(vc);\r\n\t\t\tSystem.out.println(\"\\n\");\r\n\t\t\tList<TeamPunteggio> classifica= model.getClassifica(s);\t\t\r\n\t\t\tSystem.out.println(classifica);\r\n\t\t\tSystem.out.println(\" \\n ---CHI RETROCEDE?--- \\n\");\r\n\t\t\tSystem.out.println(classifica.subList(17, 20));\r\n\t\t\tSystem.out.println(\" \\n ---CHI Va in Champions?--- \\n\");\r\n\t\t\tSystem.out.println(classifica.subList(0, 3));\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n//\t\t\tSystem.out.println(\"---------------GRAFO TEAM----------------------\");\r\n\r\n//\t\t\tmodel.creaGrafoTEAM() ;\r\n//\t\t\tList<Team> te= model.getRaggiungibiliInAmpiezza(team);\r\n//\t\t\tSystem.out.println(te);\r\n//\t\t\tList<TeamPunteggio> t= model.getDestinations(team);\t\t\r\n//\t\t\tSystem.out.println(t);\r\n\t\t\t\r\n//\t\t\tSystem.out.println(\"---------------GRAFO Season----------------------\");\r\n//\t\t\tmodel.creaGrafoSEASON() ;\r\n//\t\t\tList<Integer> ss= model.getRaggiungibiliInAmpiezza(2016);\r\n//\t\t\tSystem.out.println(ss);\r\n//\t\t\tList<IntegerPair> ips= model.getDestinations(2016);\t\t\r\n//\t\t\tSystem.out.println(ips);\r\n\t\t\t\r\n//\t\t\tSystem.out.println(\"-----------------GRAFO GOAL----------------------\");\r\n//\t\t\tmodel.creaGrafoGOAL() ;\r\n//\t\t\tList<Integer> te= model.getRaggiungibiliInAmpiezza(3);\r\n//\t\t\tSystem.out.println(te);\r\n//\t\t\tList<IntegerPair> t= model.getDestinations(3);\t\t\r\n//\t\t\tSystem.out.println(t);\r\n\r\n//\t\t\tSystem.out.println(\"---------------------VISITE----------------------\");\t\t\t\r\n//\t\t\t\r\n//\t\t\tSystem.out.println(\"\\n\");\r\n//\t\t\tList<TeamPunteggio> t= model.getDestinations(s, team);\t\t\r\n//\t\t\tSystem.out.println(t);\r\n\t\t\t\t\r\n//\t\t\tSystem.out.println(\" \\n----- successori------ \\n\");\r\n//\t\t\tList<Team> ss= model.trovaSucessori(team);\r\n//\t\t\tSystem.out.println(ss);\r\n//\t\t\t\r\n//\t\t\tSystem.out.println(\" \\n-------predeccessori------ \\n \");\r\n//\t\t\tList<Team> pp= model.trovaPredecessori(team);\r\n//\t\t\tSystem.out.println(pp);\r\n//\r\n//\t\t\tSystem.out.println(\" \\n------ calcolo percorso e il suo tempo------- \\n\");\r\n//\t\t\tSystem.out.println(model.calcolaPercorso(team, team2));\r\n//\t\t\t\r\n//\t\t\tSystem.out.println(\"\\n -------Squadre che il eam ha affrontato in quella stagione------- \\n\");\r\n//\t\t\tList<Team> te= model.getRaggiungibiliInAmpiezza(team);\r\n//\t\t\tSystem.out.println(te);\r\n//\t\t\t\r\n//\t\t\tSystem.out.println(\"\\n------- n raggiungibili------ \\n\");\r\n//\t\t\tint i= model.raggiungibili();\r\n//\t\t\tSystem.out.println(i);\r\n//\t\t\t\r\n//\t\t\tSystem.out.println(\"\\n-------- percorso BELLMAN---> UGUALE A disktra ma tiene conto peso negativo------ \\n\");\r\n//\t\t\tSystem.out.println(model.BELLMANcalcolaPercorso(team));\r\n\r\n\t\t\t\r\n//\t\t\tSystem.out.println(\"-------------CONNECTIVITY INSPECTOR----------------------\");\t\t\t\t\t\r\n//\t\t\tSystem.out.println(\"\\n\");\r\n//\t\t\r\n//\t\t\tSystem.out.println(\"\\n------ è fortemente connesso?------ \\n\");\t\t\t\r\n//\t\t\tSystem.out.println(model.isConnesso());\t\r\n//\t\t\t\r\n//\t\t\tSystem.out.println(\"\\n-------- connessioni grafo--------- \\n\");\r\n//\t\t\tint n=model.getNumberConn();\r\n//\t\t\tSystem.out.println(n);\r\n//\t\t\t\r\n//\t\t\tSystem.out.println(\"\\n------ lista componenti connesse------ \\n\");\t\t\r\n//\t\t\tList<Set<Team>> l =model.getConn(); \r\n//\t\t\tSystem.out.println(l);\t\r\n//\t\t\t\r\n//\t\t\tSystem.out.println(\"\\n------- Arco max connesso------ \\n\");\t\t\t\r\n//\t\t\tSet<Team> t=model.MAXconnesso(); \r\n//\t\t\tSystem.out.println(t);\r\n//\t\t\t\r\n//\t\t\tSystem.out.println(\" \\n ------n archi Arco max connesso------ \"\\n\");\t\t\t\r\n//\t\t\tint nc=model.MAXconnessioni(); \r\n//\t\t\tSystem.out.println(nc);\r\n//\t\t\t\r\n//\t\t\tSystem.out.println(\"\\n--------- 5 Archi di max connesso------- \\n\");\r\n//\t\t\tList<EdgePeso>e= model.get5ArchiMinWeight(); \r\n//\t\t\tSystem.out.println(e);\r\n//\t\t\t\r\n//\t\t\t\t\t\r\n//\t\t\tSystem.out.println(\"--------------------- BEST & WORST-----------------------\");\r\n//\t\t\tSystem.out.println(\"\\n\");\r\n//\t\t\tSystem.out.println(\"\\n------ Best------ \\n\");\t\t\r\n//\t\t\tTeam winner=model.getBestTeam() ;\r\n//\t\t\tSystem.out.println(winner);\r\n//\t\t\tSystem.out.println(\"\\n------ Worst------ \\n\");\t\r\n//\t\t\tTeam loser=model.getWorstTeam() ;\r\n//\t\t\tSystem.out.println(loser);\r\n//\t\t\t\r\n//\t\t\tSystem.out.println(\"\\n\");\r\n//\t\t\tSystem.out.println(\"---------------PIU VICINO & PIU LONTANO Al PUNTEGGIO DEL TEAM DI PARTENZA -----------------------\");\t\t\t\r\n//\t\t\tSystem.out.println(\"\\n\");\r\n//\t\t\tSystem.out.println(\"\\n--------- Team Più Lontano come punti ---------\\n\");\r\n//\t\t\tTeam l =model.getPiLontano(\"Genoa\");\r\n//\t\t\tSystem.out.println(l);\r\n//\t\t\t\r\n//\t\t\tSystem.out.println(\"\\n\");\r\n//\t\t\tSystem.out.println(\"-------- Team Più Vicino come punti ---------\");\r\n//\t\t\tSystem.out.println(\"\\n\");\r\n//\t\t\t\r\n//\t\t\tTeam v =model.getPiuVicino(\"Genoa\");\r\n//\t\t\tSystem.out.println(v);\r\n//\t\t\t\r\n//\t\t\tSystem.out.println(\"\\n\");\r\n//\t\t\tSystem.out.println(\"------- Team Più Lontano come punti per scontri diretti ----------\");\r\n//\t\t\tSystem.out.println(\"\\n\");\r\n//\t\t\t\r\n//\t\t\tTeam ld =model.getPiLontanoByVoloDiretto(\"Genoa\");\r\n//\t\t\tSystem.out.println(ld);\t\r\n\r\n\t}", "com.google.ortools.linearsolver.MPModelProto getModel();", "NgtPackage getNgtPackage();", "EisModel createEisModel();", "public void testBug364450() throws JavaModelException {\n //$NON-NLS-1$\n IPath projectPath = env.addProject(\"Project\");\n env.addExternalJars(projectPath, Util.getJavaClassLibs());\n //$NON-NLS-1$\n env.setOutputFolder(projectPath, \"bin\");\n IPath wPath = //$NON-NLS-1$ //$NON-NLS-2$\n env.addClass(//$NON-NLS-1$ //$NON-NLS-2$\n projectPath, //$NON-NLS-1$ //$NON-NLS-2$\n \"w\", //$NON-NLS-1$ //$NON-NLS-2$\n \"W\", \"package w;\\n\" + \"public class W {\\n\" + //$NON-NLS-1$\n \"\tprivate w.I i;}\");\n IPath aPath = //$NON-NLS-1$ //$NON-NLS-2$\n env.addClass(//$NON-NLS-1$ //$NON-NLS-2$\n projectPath, //$NON-NLS-1$ //$NON-NLS-2$\n \"a\", //$NON-NLS-1$ //$NON-NLS-2$\n \"A\", \"package a;\\n\" + \"import w.I;\\n\" + \"import w.W;\\n\" + //$NON-NLS-1$\n \"public class A {}\");\n env.waitForManualRefresh();\n fullBuild(projectPath);\n env.waitForAutoBuild();\n //$NON-NLS-1$ //$NON-NLS-2$\n expectingSpecificProblemFor(wPath, new Problem(\"W\", \"w.I cannot be resolved to a type\", wPath, 37, 40, CategorizedProblem.CAT_TYPE, IMarker.SEVERITY_ERROR));\n //$NON-NLS-1$ //$NON-NLS-2$\n expectingSpecificProblemFor(aPath, new Problem(\"A\", \"The import w.I cannot be resolved\", aPath, 18, 21, CategorizedProblem.CAT_IMPORT, IMarker.SEVERITY_ERROR));\n aPath = //$NON-NLS-1$ //$NON-NLS-2$\n env.addClass(//$NON-NLS-1$ //$NON-NLS-2$\n projectPath, //$NON-NLS-1$ //$NON-NLS-2$\n \"a\", //$NON-NLS-1$ //$NON-NLS-2$\n \"A\", \"package a;\\n\" + \"import w.I;\\n\" + \"import w.W;\\n\" + //$NON-NLS-1$\n \"public class A {}\");\n env.waitForManualRefresh();\n incrementalBuild(projectPath);\n env.waitForAutoBuild();\n //$NON-NLS-1$ //$NON-NLS-2$\n expectingSpecificProblemFor(aPath, new Problem(\"A\", \"The import w.I cannot be resolved\", aPath, 18, 21, CategorizedProblem.CAT_IMPORT, IMarker.SEVERITY_ERROR));\n env.removeProject(projectPath);\n }", "public static void main(String[] args) {\n\n String resourcePath = SeniorProject.class.getResource(\"/\").getPath();\n String env = System.getenv(\"AppData\") + \"\\\\SeniorProjectDir\\\\\";\n dataFileDir = new File(System.getenv(\"AppData\") + \"\\\\SeniorProjectDir\\\\\");\n\n if (!dataFileDir.exists()) {\n dataFileDir.mkdir();\n } else if (!dataFileDir.isDirectory()) {//just to remove any FILES named like that\n dataFileDir.delete();\n dataFileDir = new File(System.getenv(\"AppData\") + \"\\\\SeniorProjectDir\\\\\");\n dataFileDir.mkdir();\n }\n File res = new File(resourcePath);\n if (dataFileDir.listFiles().length == 0)\n Arrays.asList(res.listFiles()).forEach(file -> {\n if (file.isFile()) {\n String name = file.getName();\n if (name.endsWith(\".txt\") || name.endsWith(\".zip\") || name.endsWith(\".bin\")) {\n Path destination = Paths.get(env, name);\n try {\n System.out.println(Files.copy(file.toPath(), destination, StandardCopyOption.REPLACE_EXISTING));\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n }\n\n });\n recordsWinPairs = new File(env + \"\\\\recordsWinPairs.txt\");\n if (!recordsWinPairs.exists()) {\n try {\n recordsWinPairs.createNewFile();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n recordColumnFile = new File(env + \"\\\\recordColumns.txt\");\n if (!recordColumnFile.exists()) {\n try {\n recordColumnFile.createNewFile();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n UIServer uiServer = UIServer.getInstance();\n StatsStorage statsStorage = new InMemoryStatsStorage();\n uiServer.attach(statsStorage);\n File model = new File(env + \"\\\\EvaluatorModel.zip\");\n File chooser = new File(env + \"\\\\ChooserModel.zip\");\n List<BoardWinPair> record = RestoreRecordFile.readRecords(recordsWinPairs);\n EvaluatorNN.setStats(statsStorage);\n EvaluatorNN.loadNN(model);\n\n BoardNetworkCoordinator networkCoordinator = new BoardNetworkCoordinator(chooser, recordColumnFile);\n networkCoordinator.setStorage(statsStorage);\n networkCoordinator.createChooser(6, 7);\n Board b = new Board(7, 6, env, dataFileDir, recordsWinPairs, model, record, networkCoordinator);\n\n\n }", "@Override\n\tpublic String getModel() {\n\t\treturn \"cool model\";\n\t}", "public static void main(String[] args) throws Exception {\n final int numRows = 28;\n final int numColumns = 28;\n int outputNum = 10; // number of output classes\n int batchSize = 128; // batch size for each epoch\n int rngSeed = 123; // random number seed for reproducibility\n int numEpochs = 15; // number of epochs to perform\n String modelPath = \"モデルパスを入力\";\n\n //Get the DataSetIterators:\n DataSetIterator mnistTrain = new MnistDataSetIterator(batchSize, true, rngSeed);\n DataSetIterator mnistTest = new MnistDataSetIterator(batchSize, false, rngSeed);\n\n\n System.out.println(\"Build model....\");\n MultiLayerConfiguration conf = new NeuralNetConfiguration.Builder()\n .seed(rngSeed) //include a random seed for reproducibility\n // use stochastic gradient descent as an optimization algorithm\n .updater(new Nesterovs(0.006, 0.9))\n .l2(1e-4)\n .list()\n .layer(new DenseLayer.Builder() //create the first, input layer with xavier initialization\n .nIn(numRows * numColumns)\n .nOut(1000)\n .activation(Activation.RELU)\n .weightInit(WeightInit.XAVIER)\n .build())\n .layer(new OutputLayer.Builder(LossFunctions.LossFunction.NEGATIVELOGLIKELIHOOD) //create hidden layer\n .nIn(1000)\n .nOut(outputNum)\n .activation(Activation.SOFTMAX)\n .weightInit(WeightInit.XAVIER)\n .build())\n .build();\n\n\n MultiLayerNetwork model = new MultiLayerNetwork(conf);\n model.init();\n //print the score with every 1 iteration\n UIServer uiServer = UIServer.getInstance();\n InMemoryStatsStorage statsStorage = new InMemoryStatsStorage();\n uiServer.attach(statsStorage);\n model.setListeners(new StatsListener(statsStorage),new ScoreIterationListener(1));\n\n System.out.println(\"Train model....\");\n model.fit(mnistTrain, numEpochs);\n\n\n\n\n System.out.println(\"Evaluate model....\");\n Evaluation eval = model.evaluate(mnistTest);\n System.out.println(eval.stats());\n ModelSerializer.writeModel(model, new File(modelPath), false);\n System.out.println(\"****************Example finished********************\");\n\n }", "public void model() \n\t{\n\t\t\n\t\ttry \n\t\t{\n\t\t GRBEnv env = new GRBEnv();\n\t\t GRBModel model = new GRBModel(env, \"resources/students.lp\");\n\n\t\t model.optimize();\n\n\t\t int optimstatus = model.get(GRB.IntAttr.Status);\n\n\t\t if (optimstatus == GRB.Status.INF_OR_UNBD) {\n\t\t model.getEnv().set(GRB.IntParam.Presolve, 0);\n\t\t model.optimize();\n\t\t optimstatus = model.get(GRB.IntAttr.Status);\n\t\t }\n\n\t\t if (optimstatus == GRB.Status.OPTIMAL) {\n\t\t double objval = model.get(GRB.DoubleAttr.ObjVal);\n\t\t System.out.println(\"Optimal objective: \" + objval);\n\t\t } else if (optimstatus == GRB.Status.INFEASIBLE) {\n\t\t System.out.println(\"Model is infeasible\");\n\n\t\t // Compute and write out IIS\n\t\t model.computeIIS();\n\t\t model.write(\"model.ilp\");\n\t\t } else if (optimstatus == GRB.Status.UNBOUNDED) {\n\t\t System.out.println(\"Model is unbounded\");\n\t\t } else {\n\t\t System.out.println(\"Optimization was stopped with status = \"\n\t\t + optimstatus);\n\t\t }\n\n\t\t // Dispose of model and environment\n\t\t model.write(\"resources/model.sol\");\n\t\t model.dispose();\n\t\t env.dispose();\n\n\t\t } catch (GRBException e) {\n\t\t System.out.println(\"Error code: \" + e.getErrorCode() + \". \" +\n\t\t e.getMessage());\n\t\t }\n\t\t\n\t}", "public void createPackageContents() {\n\t\tif (isCreated) return;\n\t\tisCreated = true;\n\n\t\t// Create classes and their features\n\t\ttaskModelEClass = createEClass(TASK_MODEL);\n\t\tcreateEReference(taskModelEClass, TASK_MODEL__ROOT);\n\t\tcreateEReference(taskModelEClass, TASK_MODEL__TASKS);\n\t\tcreateEAttribute(taskModelEClass, TASK_MODEL__NAME);\n\n\t\ttaskEClass = createEClass(TASK);\n\t\tcreateEAttribute(taskEClass, TASK__ID);\n\t\tcreateEAttribute(taskEClass, TASK__NAME);\n\t\tcreateEReference(taskEClass, TASK__OPERATOR);\n\t\tcreateEReference(taskEClass, TASK__SUBTASKS);\n\t\tcreateEReference(taskEClass, TASK__PARENT);\n\t\tcreateEAttribute(taskEClass, TASK__MIN);\n\t\tcreateEAttribute(taskEClass, TASK__MAX);\n\t\tcreateEAttribute(taskEClass, TASK__ITERATIVE);\n\n\t\tuserTaskEClass = createEClass(USER_TASK);\n\n\t\tapplicationTaskEClass = createEClass(APPLICATION_TASK);\n\n\t\tinteractionTaskEClass = createEClass(INTERACTION_TASK);\n\n\t\tabstractionTaskEClass = createEClass(ABSTRACTION_TASK);\n\n\t\tnullTaskEClass = createEClass(NULL_TASK);\n\n\t\ttemporalOperatorEClass = createEClass(TEMPORAL_OPERATOR);\n\n\t\tchoiceOperatorEClass = createEClass(CHOICE_OPERATOR);\n\n\t\torderIndependenceOperatorEClass = createEClass(ORDER_INDEPENDENCE_OPERATOR);\n\n\t\tinterleavingOperatorEClass = createEClass(INTERLEAVING_OPERATOR);\n\n\t\tsynchronizationOperatorEClass = createEClass(SYNCHRONIZATION_OPERATOR);\n\n\t\tparallelOperatorEClass = createEClass(PARALLEL_OPERATOR);\n\n\t\tdisablingOperatorEClass = createEClass(DISABLING_OPERATOR);\n\n\t\tsequentialEnablingInfoOperatorEClass = createEClass(SEQUENTIAL_ENABLING_INFO_OPERATOR);\n\n\t\tsequentialEnablingOperatorEClass = createEClass(SEQUENTIAL_ENABLING_OPERATOR);\n\n\t\tsuspendResumeOperatorEClass = createEClass(SUSPEND_RESUME_OPERATOR);\n\t}", "public static void main(String[] args) {\n saveModel();\n\t}", "MatchModelPackage getMatchModelPackage();", "public ModelInfo generateInfo() { \n ModelInfo info = new ModelInfo();\n \n // Store basic info\n info.author = Author;\n info.citation = Citation;\n info.description = Description;\n info.property = Property;\n info.training = Model.TrainingStats.NumberTested + \" entries: \" + TrainingSet;\n info.notes = Notes;\n info.trainTime = new SimpleDateFormat(\"dMMMyy HH:mm z\").format(Model.getTrainTime());\n \n // Store units or class names\n if (Model instanceof AbstractClassifier) {\n info.classifier = true;\n info.units = \"\";\n AbstractClassifier clfr = (AbstractClassifier) Model;\n boolean started = false;\n for (String name : clfr.getClassNames()) {\n if (started) {\n info.units += \";\";\n }\n info.units += name;\n started = true;\n }\n } else {\n info.classifier = false;\n info.units = Units;\n }\n \n // Store names of models\n info.dataType = Dataset.printDescription(true);\n info.modelType = Model.printDescription(true);\n \n // Store validation performance data\n info.valMethod = Model.getValidationMethod();\n if (Model.isValidated()) {\n info.valScore = Model.ValidationStats.getStatistics();\n }\n \n return info;\n }", "public void createPackageContents() {\n\t\tif (isCreated) return;\n\t\tisCreated = true;\n\n\t\t// Create classes and their features\n\t\tmealyMachineEClass = createEClass(MEALY_MACHINE);\n\t\tcreateEReference(mealyMachineEClass, MEALY_MACHINE__INITIAL_STATE);\n\t\tcreateEReference(mealyMachineEClass, MEALY_MACHINE__STATES);\n\t\tcreateEReference(mealyMachineEClass, MEALY_MACHINE__INPUT_ALPHABET);\n\t\tcreateEReference(mealyMachineEClass, MEALY_MACHINE__OUTPUT_ALPHABET);\n\t\tcreateEReference(mealyMachineEClass, MEALY_MACHINE__TRANSITIONS);\n\n\t\tstateEClass = createEClass(STATE);\n\t\tcreateEAttribute(stateEClass, STATE__NAME);\n\n\t\talphabetEClass = createEClass(ALPHABET);\n\t\tcreateEAttribute(alphabetEClass, ALPHABET__CHARACTERS);\n\n\t\ttransitionEClass = createEClass(TRANSITION);\n\t\tcreateEReference(transitionEClass, TRANSITION__SOURCE_STATE);\n\t\tcreateEReference(transitionEClass, TRANSITION__TARGET_STATE);\n\t\tcreateEAttribute(transitionEClass, TRANSITION__INPUT);\n\t\tcreateEAttribute(transitionEClass, TRANSITION__OUTPUT);\n\t}", "public void createPackageContents()\n {\n if (isCreated) return;\n isCreated = true;\n\n // Create classes and their features\n ledsCodeDSLEClass = createEClass(LEDS_CODE_DSL);\n createEReference(ledsCodeDSLEClass, LEDS_CODE_DSL__PROJECT);\n\n projectEClass = createEClass(PROJECT);\n createEAttribute(projectEClass, PROJECT__NAME);\n createEReference(projectEClass, PROJECT__INFRASTRUCTURE_BLOCK);\n createEReference(projectEClass, PROJECT__INTERFACE_BLOCK);\n createEReference(projectEClass, PROJECT__APPLICATION_BLOCK);\n createEReference(projectEClass, PROJECT__DOMAIN_BLOCK);\n\n interfaceBlockEClass = createEClass(INTERFACE_BLOCK);\n createEAttribute(interfaceBlockEClass, INTERFACE_BLOCK__NAME);\n createEReference(interfaceBlockEClass, INTERFACE_BLOCK__INTERFACE_APPLICATION);\n\n interfaceApplicationEClass = createEClass(INTERFACE_APPLICATION);\n createEAttribute(interfaceApplicationEClass, INTERFACE_APPLICATION__TYPE);\n createEAttribute(interfaceApplicationEClass, INTERFACE_APPLICATION__NAME);\n createEAttribute(interfaceApplicationEClass, INTERFACE_APPLICATION__NAME_APP);\n\n infrastructureBlockEClass = createEClass(INFRASTRUCTURE_BLOCK);\n createEAttribute(infrastructureBlockEClass, INFRASTRUCTURE_BLOCK__BASE_PACKAGE);\n createEAttribute(infrastructureBlockEClass, INFRASTRUCTURE_BLOCK__PROJECT_VERSION);\n createEReference(infrastructureBlockEClass, INFRASTRUCTURE_BLOCK__LANGUAGE);\n createEReference(infrastructureBlockEClass, INFRASTRUCTURE_BLOCK__FRAMEWORK);\n createEReference(infrastructureBlockEClass, INFRASTRUCTURE_BLOCK__ORM);\n createEReference(infrastructureBlockEClass, INFRASTRUCTURE_BLOCK__DATABASE);\n\n databaseEClass = createEClass(DATABASE);\n createEAttribute(databaseEClass, DATABASE__VERSION_VALUE);\n createEAttribute(databaseEClass, DATABASE__NAME_VALUE);\n createEAttribute(databaseEClass, DATABASE__USER_VALUE);\n createEAttribute(databaseEClass, DATABASE__PASS_VALUE);\n createEAttribute(databaseEClass, DATABASE__HOST_VALUE);\n createEAttribute(databaseEClass, DATABASE__ENV_VALUE);\n\n nameVersionEClass = createEClass(NAME_VERSION);\n createEAttribute(nameVersionEClass, NAME_VERSION__NAME_VALUE);\n createEAttribute(nameVersionEClass, NAME_VERSION__VERSION_VALUE);\n\n applicationBlockEClass = createEClass(APPLICATION_BLOCK);\n createEAttribute(applicationBlockEClass, APPLICATION_BLOCK__NAME);\n createEAttribute(applicationBlockEClass, APPLICATION_BLOCK__APPLICATION_DOMAIN);\n\n domainBlockEClass = createEClass(DOMAIN_BLOCK);\n createEAttribute(domainBlockEClass, DOMAIN_BLOCK__NAME);\n createEReference(domainBlockEClass, DOMAIN_BLOCK__MODULE);\n\n moduleBlockEClass = createEClass(MODULE_BLOCK);\n createEAttribute(moduleBlockEClass, MODULE_BLOCK__NAME);\n createEReference(moduleBlockEClass, MODULE_BLOCK__ENUM_BLOCK);\n createEReference(moduleBlockEClass, MODULE_BLOCK__ENTITY_BLOCK);\n createEReference(moduleBlockEClass, MODULE_BLOCK__SERVICE_BLOCK);\n\n serviceBlockEClass = createEClass(SERVICE_BLOCK);\n createEAttribute(serviceBlockEClass, SERVICE_BLOCK__NAME);\n createEReference(serviceBlockEClass, SERVICE_BLOCK__SERVICE_FIELDS);\n\n serviceMethodEClass = createEClass(SERVICE_METHOD);\n createEAttribute(serviceMethodEClass, SERVICE_METHOD__NAME);\n createEReference(serviceMethodEClass, SERVICE_METHOD__METHOD_ACESS);\n\n entityBlockEClass = createEClass(ENTITY_BLOCK);\n createEAttribute(entityBlockEClass, ENTITY_BLOCK__ACESS_MODIFIER);\n createEAttribute(entityBlockEClass, ENTITY_BLOCK__IS_ABSTRACT);\n createEAttribute(entityBlockEClass, ENTITY_BLOCK__NAME);\n createEReference(entityBlockEClass, ENTITY_BLOCK__CLASS_EXTENDS);\n createEReference(entityBlockEClass, ENTITY_BLOCK__ATTRIBUTES);\n createEReference(entityBlockEClass, ENTITY_BLOCK__REPOSITORY);\n\n attributeEClass = createEClass(ATTRIBUTE);\n createEAttribute(attributeEClass, ATTRIBUTE__ACESS_MODIFIER);\n createEAttribute(attributeEClass, ATTRIBUTE__TYPE);\n createEAttribute(attributeEClass, ATTRIBUTE__NAME);\n createEAttribute(attributeEClass, ATTRIBUTE__PK);\n createEAttribute(attributeEClass, ATTRIBUTE__UNIQUE);\n createEAttribute(attributeEClass, ATTRIBUTE__NULLABLE);\n createEAttribute(attributeEClass, ATTRIBUTE__MIN);\n createEAttribute(attributeEClass, ATTRIBUTE__MAX);\n\n repositoryEClass = createEClass(REPOSITORY);\n createEAttribute(repositoryEClass, REPOSITORY__NAME);\n createEReference(repositoryEClass, REPOSITORY__METHODS);\n\n repositoryFieldsEClass = createEClass(REPOSITORY_FIELDS);\n createEAttribute(repositoryFieldsEClass, REPOSITORY_FIELDS__NAME);\n createEReference(repositoryFieldsEClass, REPOSITORY_FIELDS__METHODS_PARAMETERS);\n createEAttribute(repositoryFieldsEClass, REPOSITORY_FIELDS__RETURN_TYPE);\n\n enumBlockEClass = createEClass(ENUM_BLOCK);\n createEAttribute(enumBlockEClass, ENUM_BLOCK__NAME);\n createEAttribute(enumBlockEClass, ENUM_BLOCK__VALUES);\n\n methodParameterEClass = createEClass(METHOD_PARAMETER);\n createEReference(methodParameterEClass, METHOD_PARAMETER__TYPE_AND_ATTR);\n\n typeAndAttributeEClass = createEClass(TYPE_AND_ATTRIBUTE);\n createEAttribute(typeAndAttributeEClass, TYPE_AND_ATTRIBUTE__TYPE);\n createEAttribute(typeAndAttributeEClass, TYPE_AND_ATTRIBUTE__NAME);\n\n extendBlockEClass = createEClass(EXTEND_BLOCK);\n createEReference(extendBlockEClass, EXTEND_BLOCK__VALUES);\n }", "public void buildModel() {\n }", "IFMLModel createIFMLModel();", "public void createPackageContents() {\n\t\tif (isCreated) return;\n\t\tisCreated = true;\n\n\t\t// Create classes and their features\n\t\tsutEClass = createEClass(SUT);\n\t\tcreateEAttribute(sutEClass, SUT__HOSTNAME);\n\t\tcreateEAttribute(sutEClass, SUT__IP);\n\t\tcreateEAttribute(sutEClass, SUT__HARDWARE);\n\t\tcreateEReference(sutEClass, SUT__SUT);\n\t\tcreateEReference(sutEClass, SUT__METRICMODEL);\n\t\tcreateEAttribute(sutEClass, SUT__TYPE);\n\n\t\tloadGeneratorEClass = createEClass(LOAD_GENERATOR);\n\t\tcreateEAttribute(loadGeneratorEClass, LOAD_GENERATOR__HOSTNAME);\n\t\tcreateEAttribute(loadGeneratorEClass, LOAD_GENERATOR__IP);\n\t\tcreateEAttribute(loadGeneratorEClass, LOAD_GENERATOR__IS_MONITOR);\n\t\tcreateEReference(loadGeneratorEClass, LOAD_GENERATOR__SUT);\n\t\tcreateEReference(loadGeneratorEClass, LOAD_GENERATOR__METRICMODEL);\n\t\tcreateEAttribute(loadGeneratorEClass, LOAD_GENERATOR__HARDWARE);\n\t\tcreateEReference(loadGeneratorEClass, LOAD_GENERATOR__MONITOR);\n\n\t\tmonitorEClass = createEClass(MONITOR);\n\t\tcreateEAttribute(monitorEClass, MONITOR__HOSTNAME);\n\t\tcreateEAttribute(monitorEClass, MONITOR__IP);\n\t\tcreateEReference(monitorEClass, MONITOR__SUT);\n\t\tcreateEAttribute(monitorEClass, MONITOR__HARDWARE);\n\t\tcreateEAttribute(monitorEClass, MONITOR__DESCRIPTION);\n\n\t\tmetricModelEClass = createEClass(METRIC_MODEL);\n\t\tcreateEAttribute(metricModelEClass, METRIC_MODEL__NAME);\n\t\tcreateEReference(metricModelEClass, METRIC_MODEL__MEMORY);\n\t\tcreateEReference(metricModelEClass, METRIC_MODEL__TRANSACTION);\n\t\tcreateEReference(metricModelEClass, METRIC_MODEL__DISK);\n\t\tcreateEReference(metricModelEClass, METRIC_MODEL__CRITERIA);\n\t\tcreateEReference(metricModelEClass, METRIC_MODEL__THRESHOLD);\n\t\tcreateEReference(metricModelEClass, METRIC_MODEL__ASSOCIATIONCOUNTERCRITERIATHRESHOLD);\n\t\tcreateEReference(metricModelEClass, METRIC_MODEL__DISK_COUNTER);\n\t\tcreateEReference(metricModelEClass, METRIC_MODEL__TRANSACTION_COUNTER);\n\t\tcreateEReference(metricModelEClass, METRIC_MODEL__MEMORY_COUNTER);\n\t\tcreateEReference(metricModelEClass, METRIC_MODEL__COUNTER);\n\t\tcreateEReference(metricModelEClass, METRIC_MODEL__METRIC);\n\n\t\t// Create enums\n\t\tsuT_TYPEEEnum = createEEnum(SUT_TYPE);\n\t\thardwareEEnum = createEEnum(HARDWARE);\n\t}", "public static void main(String[] args) {\n\t\tJiangsu_SeProj model = new Jiangsu_SeProj();\r\n\t\tmodel.run();\r\n\t}", "private void generateSolution() {\n\t\t// TODO\n\n\t}", "@Override\n public String modelName() {\n Optional<? extends AnnotationMirror> mirror =\n Mirrors.findAnnotationMirror(element(), Entity.class);\n if (mirror.isPresent()) {\n return Mirrors.findAnnotationValue(mirror.get(), \"model\")\n .map(value -> value.getValue().toString())\n .filter(name -> !Names.isEmpty(name))\n .orElse(\"default\");\n }\n if (Mirrors.findAnnotationMirror(element(), javax.persistence.Entity.class).isPresent()) {\n Elements elements = processingEnvironment.getElementUtils();\n Name packageName = elements.getPackageOf(element()).getQualifiedName();\n String[] parts = packageName.toString().split(\"\\\\.\");\n return parts[parts.length - 1];\n } else {\n throw new IllegalStateException();\n }\n }", "public void createPackageContents() {\n\t\tif (isCreated) return;\n\t\tisCreated = true;\n\n\t\t// Create classes and their features\n\t\tldprojectEClass = createEClass(LDPROJECT);\n\t\tcreateEAttribute(ldprojectEClass, LDPROJECT__NAME);\n\t\tcreateEAttribute(ldprojectEClass, LDPROJECT__LIFECYCLE);\n\t\tcreateEAttribute(ldprojectEClass, LDPROJECT__ROBUSTNESS);\n\t\tcreateEOperation(ldprojectEClass, LDPROJECT___PUBLISH);\n\t\tcreateEOperation(ldprojectEClass, LDPROJECT___UNPUBLISH);\n\t\tcreateEOperation(ldprojectEClass, LDPROJECT___UPDATE);\n\n\t\tlddatabaselinkEClass = createEClass(LDDATABASELINK);\n\t\tcreateEAttribute(lddatabaselinkEClass, LDDATABASELINK__DATABASE);\n\t\tcreateEAttribute(lddatabaselinkEClass, LDDATABASELINK__PORT);\n\n\t\tldprojectlinkEClass = createEClass(LDPROJECTLINK);\n\n\t\tldnodeEClass = createEClass(LDNODE);\n\t\tcreateEAttribute(ldnodeEClass, LDNODE__NAME);\n\t\tcreateEAttribute(ldnodeEClass, LDNODE__MONGO_HOSTS);\n\t\tcreateEAttribute(ldnodeEClass, LDNODE__MAIN_PROJECT);\n\t\tcreateEAttribute(ldnodeEClass, LDNODE__ANALYTICS_READ_PREFERENCE);\n\n\t\t// Create enums\n\t\tlifecycleEEnum = createEEnum(LIFECYCLE);\n\t\trobustnessEEnum = createEEnum(ROBUSTNESS);\n\t}", "public ProcessingTarget buildGraph(){\n \t\tgetTibbrGraph();\n \n \t\t//Init a project - and therefore a workspace\n \t\tProjectController pc = Lookup.getDefault().lookup(ProjectController.class);\n \t\tpc.newProject();\n \t\tWorkspace workspace = pc.getCurrentWorkspace();\n \n \t\t//Get a graph model - it exists because we have a workspace\n \t\tGraphModel graphModel = Lookup.getDefault().lookup(GraphController.class).getModel();\n \t\tAttributeModel attributeModel = Lookup.getDefault().lookup(AttributeController.class).getModel();\n \t\tImportController importController = Lookup.getDefault().lookup(ImportController.class);\n \n \t\t//Import file \n \t\tContainer container;\n \t\ttry {\n \t\t\tFile f = new File(this.filename);\n \t\t\tcontainer = importController.importFile(f);\n \t\t\tcontainer.getLoader().setEdgeDefault(EdgeDefault.DIRECTED); //Force DIRECTED\n \t\t container.setAllowAutoNode(false); //Don't create missing nodes\n \t\t} catch (Exception ex) {\n \t\t\tex.printStackTrace();\n \t\t\treturn null;\n \t\t}\n \n \t\t//Append imported data to GraphAPI\n \t\timportController.process(container, new DefaultProcessor(), workspace);\n \n \t\t//See if graph is well imported\n \t\t//DirectedGraph graph = graphModel.getDirectedGraph();\n \t\t//---------------------------\n \n \t\t//Layout for 1 minute\n \t\tAutoLayout autoLayout = new AutoLayout(5, TimeUnit.SECONDS);\n \t\tautoLayout.setGraphModel(graphModel);\n \t\t//YifanHuLayout firstLayout = new YifanHuLayout(null, new StepDisplacement(1f));\n \t\tForceAtlasLayout secondLayout = new ForceAtlasLayout(null);\n \t\tAutoLayout.DynamicProperty adjustBySizeProperty = AutoLayout.createDynamicProperty(\"forceAtlas.adjustSizes.name\", Boolean.TRUE, 0.1f);//True after 10% of layout time\n \t\tAutoLayout.DynamicProperty repulsionProperty = AutoLayout.createDynamicProperty(\"forceAtlas.repulsionStrength.name\", new Double(10000.), 0f);//500 for the complete period\n \t\t//autoLayout.addLayout( firstLayout, 0.5f );\n \t\tautoLayout.addLayout(secondLayout, 1f, new AutoLayout.DynamicProperty[]{adjustBySizeProperty, repulsionProperty});\n \t\tautoLayout.execute();\n \n \n \n \n \n \t\t//Rank color by Degree\n \t\tRankingController rankingController = Lookup.getDefault().lookup(RankingController.class);\n\t\tRanking<?> degreeRanking = rankingController.getModel().getRanking(Ranking.NODE_ELEMENT, Ranking.DEGREE_RANKING);\n\t\tAbstractColorTransformer<?> colorTransformer = (AbstractColorTransformer<?>) rankingController.getModel().getTransformer(Ranking.NODE_ELEMENT, Transformer.RENDERABLE_COLOR);\n \n \t\tcolorTransformer.setColors(new Color[]{new Color(0xFEF0D9), new Color(0xB30000)});\n \t\trankingController.transform(degreeRanking,colorTransformer);\n \n \t\t//Get Centrality\n \t\tGraphDistance distance = new GraphDistance();\n \t\tdistance.setDirected(true);\n \t\tdistance.execute(graphModel, attributeModel);\n \n \t\t//Rank size by centrality\n \t\tAttributeColumn centralityColumn = attributeModel.getNodeTable().getColumn(GraphDistance.BETWEENNESS);\n\t\tRanking<?> centralityRanking = rankingController.getModel().getRanking(Ranking.NODE_ELEMENT, centralityColumn.getId());\n\t\tAbstractSizeTransformer<?> sizeTransformer = (AbstractSizeTransformer<?>) rankingController.getModel().getTransformer(Ranking.NODE_ELEMENT, Transformer.RENDERABLE_SIZE);\n \t\tsizeTransformer.setMinSize(3);\n \t\tsizeTransformer.setMaxSize(20);\n \t\trankingController.transform(centralityRanking,sizeTransformer);\n \n \t\t//Rank label size - set a multiplier size\n\t\tRanking<?> centralityRanking2 = rankingController.getModel().getRanking(Ranking.NODE_ELEMENT, centralityColumn.getId());\n\t\tAbstractSizeTransformer<?> labelSizeTransformer = (AbstractSizeTransformer<?>) rankingController.getModel().getTransformer(Ranking.NODE_ELEMENT, Transformer.LABEL_SIZE);\n \t\tlabelSizeTransformer.setMinSize(1);\n \t\tlabelSizeTransformer.setMaxSize(3);\n \t\trankingController.transform(centralityRanking2,labelSizeTransformer);\n \n \t\tfloat[] positions = {0f,0.33f,0.66f,1f};\n \t\tcolorTransformer.setColorPositions(positions);\n \t\tColor[] colors = new Color[]{new Color(0x0000FF), new Color(0xFFFFFF),new Color(0x00FF00),new Color(0xFF0000)};\n \t\tcolorTransformer.setColors(colors);\n \n \t\t\n \t\t//---------------------------------\n \t\t//Preview configuration\n \t\tPreviewController previewController = Lookup.getDefault().lookup(PreviewController.class);\n \t\tPreviewModel previewModel = previewController.getModel();\n \t\tpreviewModel.getProperties().putValue(PreviewProperty.DIRECTED, Boolean.TRUE);\n \t\tpreviewModel.getProperties().putValue(PreviewProperty.BACKGROUND_COLOR, Color.BLACK);\n \t\tpreviewModel.getProperties().putValue(PreviewProperty.SHOW_NODE_LABELS, Boolean.TRUE);\n \t\tpreviewModel.getProperties().putValue(PreviewProperty.NODE_LABEL_COLOR, new DependantOriginalColor(Color.YELLOW));\n \t\t\n \t\t\n \t\t//previewModel.getProperties().putValue(PreviewProperty.EDGE_CURVED, Boolean.TRUE);\n \t\t//previewModel.getProperties().putValue(PreviewProperty.EDGE_OPACITY, 100);\n \t\t//previewModel.getProperties().putValue(PreviewProperty.EDGE_RADIUS, 1f);\n \t\t//previewModel.getProperties().putValue(PreviewProperty.EDGE_THICKNESS,0.2f);\n \t\t//previewModel.getProperties().putValue(PreviewProperty.ARROW_SIZE,0.2f);\n \n \t\tpreviewController.refreshPreview();\n \n \t\t//----------------------------\n \n \t\t//New Processing target, get the PApplet\n \t\tProcessingTarget target = (ProcessingTarget) previewController.getRenderTarget(RenderTarget.PROCESSING_TARGET);\n \t\t\n \t\tPApplet applet = target.getApplet();\n \t\tapplet.init();\n \n \t\t// Add .1 second delay to fix stability issue - per Gephi forums\n try {\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 \n \t\t\n \t\t//Refresh the preview and reset the zoom\n \t\tpreviewController.render(target);\n \t\ttarget.refresh();\n \t\ttarget.resetZoom();\n \t\ttarget.zoomMinus();\n \t\ttarget.zoomMinus();\n \t\t\n \t\treturn target;\n \t\t\n \n \t}", "public void createPackageContents()\n {\n if (isCreated) return;\n isCreated = true;\n\n // Create classes and their features\n modelEClass = createEClass(MODEL);\n createEReference(modelEClass, MODEL__ELEMENTS);\n\n elementEClass = createEClass(ELEMENT);\n createEReference(elementEClass, ELEMENT__STATE);\n createEReference(elementEClass, ELEMENT__TRANSITION);\n\n stateEClass = createEClass(STATE);\n createEAttribute(stateEClass, STATE__NAME);\n createEReference(stateEClass, STATE__STATES_PROPERTIES);\n\n statesPropertiesEClass = createEClass(STATES_PROPERTIES);\n createEAttribute(statesPropertiesEClass, STATES_PROPERTIES__COLOR);\n createEAttribute(statesPropertiesEClass, STATES_PROPERTIES__THICKNESS);\n createEAttribute(statesPropertiesEClass, STATES_PROPERTIES__POSITION);\n\n transitionEClass = createEClass(TRANSITION);\n createEReference(transitionEClass, TRANSITION__START);\n createEReference(transitionEClass, TRANSITION__END);\n createEReference(transitionEClass, TRANSITION__TRANSITION_PROPERTIES);\n createEReference(transitionEClass, TRANSITION__LABEL);\n createEAttribute(transitionEClass, TRANSITION__INIT);\n\n labelEClass = createEClass(LABEL);\n createEAttribute(labelEClass, LABEL__TEXT);\n createEAttribute(labelEClass, LABEL__POSITION);\n\n coordinatesStatesTransitionEClass = createEClass(COORDINATES_STATES_TRANSITION);\n createEAttribute(coordinatesStatesTransitionEClass, COORDINATES_STATES_TRANSITION__STATE_TRANSITION);\n\n transitionPropertiesEClass = createEClass(TRANSITION_PROPERTIES);\n createEAttribute(transitionPropertiesEClass, TRANSITION_PROPERTIES__COLOR);\n createEAttribute(transitionPropertiesEClass, TRANSITION_PROPERTIES__THICKNESS);\n createEAttribute(transitionPropertiesEClass, TRANSITION_PROPERTIES__CURVE);\n }", "SModel getOutputModel();", "M getModel();", "private void generateModel() {\n // Initialize a new model object\n mCm = new CategoryModel[nodes.length];\n\n for (int i = 0; i < nodes.length; i++) {\n mCm[i] = new CategoryModel(nodes[i].id, nodes[i].title);\n }\n }", "public void test0103() throws JavaModelException {\n\tIPath projectPath = env.addProject(\"Project\");\n\tenv.addExternalJars(projectPath, Util.getJavaClassLibs());\t\n\tenv.removePackageFragmentRoot(projectPath, \"\");\n\tIPath root = env.addPackageFragmentRoot(projectPath, \"src\");\n\tIPath classTest1 = env.addClass(root, \"p1\", \"Test1\",\n\t\t\"package p1;\\n\" +\n\t\t\"public class Test1 {\\n\" +\n\t\t\" // TODO: marker only\\n\" +\n\t\t\"}\\n\"\n\t);\n\tfullBuild();\n\tProblem[] prob1 = env.getProblemsFor(classTest1);\n\texpectingSpecificProblemFor(classTest1, new Problem(\"p1\", \"TODO : marker only\", classTest1, 38, 55, -1));\n\tassertEquals(JavaBuilder.GENERATED_BY, prob1[0].getGeneratedBy());\n}", "public void createPackageContents() {\r\n\t\tif (isCreated)\r\n\t\t\treturn;\r\n\t\tisCreated = true;\r\n\r\n\t\t// Create classes and their features\r\n\t\tspringProjectEClass = createEClass(SPRING_PROJECT);\r\n\t\tcreateEAttribute(springProjectEClass, SPRING_PROJECT__BASE_PACKAGE);\r\n\t\tcreateEAttribute(springProjectEClass, SPRING_PROJECT__NAME);\r\n\t\tcreateEReference(springProjectEClass, SPRING_PROJECT__DB_SOURCE);\r\n\t\tcreateEReference(springProjectEClass, SPRING_PROJECT__ENTITIES);\r\n\t\tcreateEReference(springProjectEClass, SPRING_PROJECT__CONTROLLERS);\r\n\r\n\t\trestControllerEClass = createEClass(REST_CONTROLLER);\r\n\t\tcreateEAttribute(restControllerEClass, REST_CONTROLLER__NAME);\r\n\t\tcreateEAttribute(restControllerEClass, REST_CONTROLLER__PATH);\r\n\t\tcreateEReference(restControllerEClass, REST_CONTROLLER__USED_ENTITIES);\r\n\t\tcreateEReference(restControllerEClass, REST_CONTROLLER__MAPPINGS);\r\n\r\n\t\trestMappingEClass = createEClass(REST_MAPPING);\r\n\t\tcreateEAttribute(restMappingEClass, REST_MAPPING__PATH);\r\n\t\tcreateEAttribute(restMappingEClass, REST_MAPPING__NAME);\r\n\t\tcreateEReference(restMappingEClass, REST_MAPPING__USED_ENTITY);\r\n\t\tcreateEAttribute(restMappingEClass, REST_MAPPING__BODY);\r\n\r\n\t\tgetMappingEClass = createEClass(GET_MAPPING);\r\n\r\n\t\tpostMappingEClass = createEClass(POST_MAPPING);\r\n\t\tcreateEReference(postMappingEClass, POST_MAPPING__PARAMETERS);\r\n\r\n\t\tentityEClass = createEClass(ENTITY);\r\n\t\tcreateEReference(entityEClass, ENTITY__SUPER_CLASS);\r\n\t\tcreateEAttribute(entityEClass, ENTITY__NAME);\r\n\t\tcreateEAttribute(entityEClass, ENTITY__GENERATE_REPOSITORY);\r\n\t\tcreateEReference(entityEClass, ENTITY__FIELDS);\r\n\t\tcreateEReference(entityEClass, ENTITY__MAPPING);\r\n\r\n\t\tmappingEClass = createEClass(MAPPING);\r\n\t\tcreateEAttribute(mappingEClass, MAPPING__NAME);\r\n\t\tcreateEReference(mappingEClass, MAPPING__ENTITY);\r\n\t\tcreateEAttribute(mappingEClass, MAPPING__IS_LIST);\r\n\t\tcreateEReference(mappingEClass, MAPPING__MAPPING_TYPE);\r\n\r\n\t\tmappingTypeEClass = createEClass(MAPPING_TYPE);\r\n\t\tcreateEAttribute(mappingTypeEClass, MAPPING_TYPE__CASCADE);\r\n\t\tcreateEReference(mappingTypeEClass, MAPPING_TYPE__MAPPED_BY);\r\n\r\n\t\toneToManyEClass = createEClass(ONE_TO_MANY);\r\n\r\n\t\tmanyToOneEClass = createEClass(MANY_TO_ONE);\r\n\r\n\t\tmanyToManyEClass = createEClass(MANY_TO_MANY);\r\n\t\tcreateEAttribute(manyToManyEClass, MANY_TO_MANY__JOIN_TABLE_NAME);\r\n\t\tcreateEAttribute(manyToManyEClass, MANY_TO_MANY__JOIN_COLUMNS);\r\n\t\tcreateEAttribute(manyToManyEClass, MANY_TO_MANY__INVERSE_JOIN_COLUMNS);\r\n\r\n\t\toneToOneEClass = createEClass(ONE_TO_ONE);\r\n\r\n\t\tfieldEClass = createEClass(FIELD);\r\n\t\tcreateEAttribute(fieldEClass, FIELD__IS_ID);\r\n\t\tcreateEAttribute(fieldEClass, FIELD__NAME);\r\n\t\tcreateEAttribute(fieldEClass, FIELD__DATATYPE);\r\n\r\n\t\tdbSourceEClass = createEClass(DB_SOURCE);\r\n\t\tcreateEAttribute(dbSourceEClass, DB_SOURCE__ENABLE_CONSOLE);\r\n\t\tcreateEAttribute(dbSourceEClass, DB_SOURCE__WEB_ALLOW_OOTHERS);\r\n\t\tcreateEAttribute(dbSourceEClass, DB_SOURCE__CONSOLE_PATH);\r\n\t\tcreateEAttribute(dbSourceEClass, DB_SOURCE__URL);\r\n\t\tcreateEAttribute(dbSourceEClass, DB_SOURCE__USER);\r\n\t\tcreateEAttribute(dbSourceEClass, DB_SOURCE__PASSWORD);\r\n\t\tcreateEAttribute(dbSourceEClass, DB_SOURCE__DRIVE_CLASS_NAME);\r\n\t\tcreateEAttribute(dbSourceEClass, DB_SOURCE__SERVER_PORT);\r\n\r\n\t\t// Create enums\r\n\t\tcascadeEEnum = createEEnum(CASCADE);\r\n\t}", "protected void establishTransformationModel() {\r\n\t \r\n\t\tTransformationModel transformModel ;\r\n\t\tArrayList<TransformationStack> modelTransformStacks ;\r\n\t\t\r\n\t\t\r\n\t\t// the variables needed for the profile\r\n\t\t// targetStruc = getTargetVector();\r\n\t\tsomData = soappTransformer.getSomData() ; \r\n\t\t// soappTransformer.setSomData( somApplication.getSomData() );\r\n\t\tsomApplication.setSomData(somData) ;\r\n\t\t\r\n\t\tsomData.getVariablesLabels() ;\r\n\t\t \r\n\t\t\r\n\t\t// from here we transfer...\r\n\t\tmodelTransformStacks = soappTransformer.getTransformationModel().getVariableTransformations();\r\n\t\ttransformModel = soappTransformer.getTransformationModel() ;\r\n\t\t \r\n\t\t\r\n\t\ttransformationModelImported = true;\r\n\t}", "@Override\n\tpublic String getGANModelDirectory() {\n\t\treturn GANProcess.PYTHON_BASE_PATH+\"LodeRunnerGAN\";\n\t}", "public static void main(String[] args) throws FileNotFoundException, IOException, InterruptedException {\n ArrayList<Metric> metrics = new ArrayList<Metric>();\n metrics.add(new ELOC());\n metrics.add(new NOPA());\n metrics.add(new NMNOPARAM());\n MyClassifier c1 = new MyClassifier(\"Logistic Regression\");\n c1.setClassifier(new Logistic());\n String type = \"CodeSmellDetection\";\n String smell = \"Large Class\";\n Model model = new Model(\"antModel1\", \"ant\", \"https://github.com/apache/ant.git\", metrics, c1, \"\", type, smell);\n Process process = new Process();\n String periodLength = \"All\";\n String version = \"rel/1.8.3\";\n \n String projectName = model.getProjName();\n process.initGitRepositoryFromFile(scatteringFolderPath + \"/\" + projectName\n + \"/gitRepository.data\");\n try {\n DeveloperTreeManager.calculateDeveloperTrees(process.getGitRepository()\n .getCommits(), periodLength);\n DeveloperFITreeManager.calculateDeveloperTrees(process.getGitRepository()\n .getCommits(), periodLength);\n } catch (Exception ex) {\n Logger.getLogger(TestFile.class.getName()).log(Level.SEVERE, null, ex);\n }\n \n List<Commit> commits = process.getGitRepository().getCommits();\n PeriodManager.calculatePeriods(commits, periodLength);\n List<Period> periods = PeriodManager.getList();\n \n String dirPath = Config.baseDir + projectName + \"/models/\" + model.getName();\n Files.createDirectories(Paths.get(dirPath));\n \n for (Period p : periods) {\n File periodData = new File(dirPath + \"/predictors.csv\");\n PrintWriter pw1 = new PrintWriter(periodData);\n \n String message1 = \"nome,\";\n for(Metric m : metrics) {\n message1 += m.getNome() + \",\";\n }\n message1 += \"isSmell\\n\";\n pw1.write(message1);\n \n //String baseSmellPatch = \"C:/ProgettoTirocinio/dataset/apache-ant-data/apache_1.8.3/Validated\";\n CalculateSmellFiles cs = new CalculateSmellFiles(model.getProjName(), \"Large Class\", \"1.8.1\");\n \n List<FileBean> smellClasses = cs.getSmellClasses();\n \n String projectPath = baseFolderPath + projectName;\n \n Git.gitReset(new File(projectPath));\n Git.clean(new File(projectPath));\n \n List<FileBean> repoFiles = Git.gitList(new File(projectPath), version);\n System.out.println(\"Repo size: \"+repoFiles.size());\n \n \n for (FileBean file : repoFiles) {\n \n if (file.getPath().contains(\".java\")) {\n File workTreeFile = new File(projectPath + \"/\" + file.getPath());\n\n ClassBean classBean = null;\n \n if (workTreeFile.exists()) {\n ArrayList<ClassBean> code = new ArrayList<>();\n ArrayList<ClassBean> classes = ReadSourceCode.readSourceCode(workTreeFile, code);\n \n String body = file.getPath() + \",\";\n if (classes.size() > 0) {\n classBean = classes.get(0);\n\n }\n for(Metric m : metrics) {\n try{\n body += m.getValue(classBean, classes, null, null, null, null) + \",\";\n } catch(NullPointerException e) {\n body += \"0.0,\";\n }\n }\n \n //isSmell\n boolean isSmell = false;\n for(FileBean sm : smellClasses) {\n if(file.getPath().contains(sm.getPath())) {\n System.out.println(\"ok\");\n isSmell = true;\n break;\n }\n }\n \n body = body + isSmell + \"\\n\";\n pw1.write(body); \n }\n }\n }\n Git.gitReset(new File(projectPath));\n pw1.flush();\n }\n \n WekaEvaluator we1 = new WekaEvaluator(baseFolderPath, projectName, new Logistic(), \"Logistic Regression\", model.getName());\n \n ArrayList<Model> models = new ArrayList<Model>();\n \n models.add(model);\n System.out.println(models);\n //create a project\n Project p1 = new Project(\"https://github.com/apache/ant.git\");\n p1.setModels(models);\n p1.setName(\"ant\");\n p1.setVersion(version);\n \n ArrayList<Project> projects;\n //projects.add(p1);\n \n //create a file\n// try {\n// File f = new File(Config.baseDir + \"projects.txt\");\n// FileOutputStream fileOut;\n// if(f.exists()){\n// projects = ProjectHandler.getAllProjects(); \n// Files.delete(Paths.get(Config.baseDir + \"projects.txt\"));\n// //fileOut = new FileOutputStream(f, true);\n// } else {\n// projects = new ArrayList<Project>();\n// Files.createFile(Paths.get(Config.baseDir + \"projects.txt\"));\n// }\n// fileOut = new FileOutputStream(f);\n// projects.add(p1);\n// ObjectOutputStream out = new ObjectOutputStream(fileOut);\n// out.writeObject(projects);\n// out.close();\n// fileOut.close();\n//\n// } catch (FileNotFoundException e) {\n// e.printStackTrace();\n// } catch (IOException e) {\n// e.printStackTrace();\n// }\n// ProjectHandler.setCurrentProject(p1);\n// Project curr = ProjectHandler.getCurrentProject();\n// System.out.println(curr.getGitURL()+\" --- \"+curr.getModels());\n// ArrayList<Project> projectest = ProjectHandler.getAllProjects();\n// for(Project testp : projectest){\n// System.out.println(testp.getModels());\n// }\n }", "public static void main(String[] _args) {\n \r\n IPmodel IP = new IPmodel(\"XeonIPcore\", false,true,3,2);\r\n IP.add(new Axi4LiteModule(16, 17,true));\r\n IP.add(new Axi4StreamAdaptModuleIn(0, 1, 2, 3));\r\n IP.add(new Axi4StreamAdaptModuleIn(1, 4, 5, 6));\r\n IP.add(new Axi4StreamAdaptModuleIn(2, 7, 8, 9));\r\n\r\n IP.add(new Axi4StreamAdaptModuleOut(0, 1, 2, 3));\r\n IP.add(new Axi4StreamAdaptModuleOut(1, 4, 5, 6));\r\n \r\n System.out.println(IP);\r\n }", "java.lang.String getModel();", "public String getModelPackageStr() {\n\t\tString thepackage = getModelXMLTagValue(\"package\");\n\t\treturn thepackage != null ? thepackage + \".\" : \"\";\n\t}", "public void createPackageContents() {\r\n\t\tif (isCreated) return;\r\n\t\tisCreated = true;\r\n\r\n\t\t// Create classes and their features\r\n\t\tannotationModelEClass = createEClass(ANNOTATION_MODEL);\r\n\t\tcreateEAttribute(annotationModelEClass, ANNOTATION_MODEL__NAME);\r\n\t\tcreateEReference(annotationModelEClass, ANNOTATION_MODEL__HAS_ANNOTATED_ELEMENT);\r\n\t\tcreateEReference(annotationModelEClass, ANNOTATION_MODEL__HAS_ANNOTATION);\r\n\r\n\t\tannotationEClass = createEClass(ANNOTATION);\r\n\r\n\t\tauthorizableResourceEClass = createEClass(AUTHORIZABLE_RESOURCE);\r\n\t\tcreateEReference(authorizableResourceEClass, AUTHORIZABLE_RESOURCE__HAS_RESOURCE_ACCESS_POLICY_SET);\r\n\t\tcreateEReference(authorizableResourceEClass, AUTHORIZABLE_RESOURCE__IS_AUTHORIZABLE_RESOURCE);\r\n\t\tcreateEAttribute(authorizableResourceEClass, AUTHORIZABLE_RESOURCE__BTRACK_OWNERSHIP);\r\n\r\n\t\tresourceAccessPolicySetEClass = createEClass(RESOURCE_ACCESS_POLICY_SET);\r\n\t\tcreateEAttribute(resourceAccessPolicySetEClass, RESOURCE_ACCESS_POLICY_SET__NAME);\r\n\t\tcreateEAttribute(resourceAccessPolicySetEClass, RESOURCE_ACCESS_POLICY_SET__POLICY_COMBINING_ALGORITHM);\r\n\t\tcreateEReference(resourceAccessPolicySetEClass, RESOURCE_ACCESS_POLICY_SET__HAS_RESOURCE_ACCESS_POLICY);\r\n\t\tcreateEReference(resourceAccessPolicySetEClass, RESOURCE_ACCESS_POLICY_SET__HAS_RESOURCE_ACCESS_POLICY_SET);\r\n\r\n\t\tannotatedElementEClass = createEClass(ANNOTATED_ELEMENT);\r\n\r\n\t\tannResourceEClass = createEClass(ANN_RESOURCE);\r\n\t\tcreateEReference(annResourceEClass, ANN_RESOURCE__ANNOTATES_RESOURCE);\r\n\r\n\t\tresourceAccessPolicyEClass = createEClass(RESOURCE_ACCESS_POLICY);\r\n\t\tcreateEAttribute(resourceAccessPolicyEClass, RESOURCE_ACCESS_POLICY__NAME);\r\n\t\tcreateEAttribute(resourceAccessPolicyEClass, RESOURCE_ACCESS_POLICY__RULE_COMBINING_ALGORITHM);\r\n\t\tcreateEReference(resourceAccessPolicyEClass, RESOURCE_ACCESS_POLICY__HAS_APPLY_CONDITION);\r\n\t\tcreateEReference(resourceAccessPolicyEClass, RESOURCE_ACCESS_POLICY__HAS_RESOURCE_ACCESS_RULE);\r\n\r\n\t\tconditionEClass = createEClass(CONDITION);\r\n\t\tcreateEAttribute(conditionEClass, CONDITION__OPERATOR);\r\n\t\tcreateEReference(conditionEClass, CONDITION__HAS_LEFT_SIDE_OPERAND);\r\n\t\tcreateEReference(conditionEClass, CONDITION__HAS_RIGHT_SIDE_OPERAND);\r\n\r\n\t\tattributeEClass = createEClass(ATTRIBUTE);\r\n\t\tcreateEAttribute(attributeEClass, ATTRIBUTE__ATTRIBUTE_CATEGORY);\r\n\t\tcreateEReference(attributeEClass, ATTRIBUTE__IS_ATTRIBUTE_EXISTING_PROPERTY);\r\n\t\tcreateEAttribute(attributeEClass, ATTRIBUTE__VALUE);\r\n\t\tcreateEReference(attributeEClass, ATTRIBUTE__IS_ATTRIBUTE_NEW_PROPERTY);\r\n\t\tcreateEReference(attributeEClass, ATTRIBUTE__IS_ATTRIBUTE_RESOURCE);\r\n\r\n\t\tannPropertyEClass = createEClass(ANN_PROPERTY);\r\n\t\tcreateEReference(annPropertyEClass, ANN_PROPERTY__ANNOTATES_PROPERTY);\r\n\r\n\t\tresourceAccessRuleEClass = createEClass(RESOURCE_ACCESS_RULE);\r\n\t\tcreateEReference(resourceAccessRuleEClass, RESOURCE_ACCESS_RULE__HAS_MATCH_CONDITION);\r\n\t\tcreateEAttribute(resourceAccessRuleEClass, RESOURCE_ACCESS_RULE__NAME);\r\n\t\tcreateEAttribute(resourceAccessRuleEClass, RESOURCE_ACCESS_RULE__RULE_TYPE);\r\n\t\tcreateEReference(resourceAccessRuleEClass, RESOURCE_ACCESS_RULE__HAS_ALLOWED_ACTION);\r\n\r\n\t\tauthorizationSubjectEClass = createEClass(AUTHORIZATION_SUBJECT);\r\n\t\tcreateEReference(authorizationSubjectEClass, AUTHORIZATION_SUBJECT__IS_AUTHORIZATION_SUBJECT);\r\n\r\n\t\tannCRUDActivityEClass = createEClass(ANN_CRUD_ACTIVITY);\r\n\t\tcreateEReference(annCRUDActivityEClass, ANN_CRUD_ACTIVITY__ANNOTATES_CRUD_ACTIVITY);\r\n\r\n\t\tallowedActionEClass = createEClass(ALLOWED_ACTION);\r\n\t\tcreateEReference(allowedActionEClass, ALLOWED_ACTION__IS_ALLOWED_ACTION);\r\n\r\n\t\tnewPropertyEClass = createEClass(NEW_PROPERTY);\r\n\t\tcreateEReference(newPropertyEClass, NEW_PROPERTY__BELONGS_TO_RESOURCE);\r\n\t\tcreateEAttribute(newPropertyEClass, NEW_PROPERTY__NAME);\r\n\t\tcreateEAttribute(newPropertyEClass, NEW_PROPERTY__TYPE);\r\n\t\tcreateEAttribute(newPropertyEClass, NEW_PROPERTY__BIS_UNIQUE);\r\n\r\n\t\t// Create enums\r\n\t\tcombiningAlgorithmEEnum = createEEnum(COMBINING_ALGORITHM);\r\n\t\toperatorEEnum = createEEnum(OPERATOR);\r\n\t\tattributeCategoryEEnum = createEEnum(ATTRIBUTE_CATEGORY);\r\n\t\truleTypeEEnum = createEEnum(RULE_TYPE);\r\n\t}", "public interface App {\n\tpublic static final int FULL_DATA_SIZE = 1460;\n\tpublic static final int TRAINING_BATCH_SIZE = 128;\n\t/** Data used to train and build the network. */\n\tpublic static final String TRAINING_INPUTS_PATH = \"./data/train.csv\";\n\t/** Path to write out data to after spark preprocessing */\n\tpublic static final String TRAINING_SPARK_RESULTS_PATH = \"./data/trainSparkResult\";\n\t/** Data used to generate predictions to submit to kaggle */\n\tpublic static final String SUBMISSION_INPUTS_PATH = \"./data/test.csv\";\n\t/** Path to write out data to after spark preprocessing */\n\tpublic static final String SUBMISSION_SPARK_RESULTS_PATH = \"./data/submissionSparkResult\";\n\n\tpublic abstract void run();\n}", "protected EObject createInitialModel() {\r\n \t\tReqIF root = reqif10Factory.createReqIF();\r\n \r\n \t\tReqIFHeader header = reqif10Factory.createReqIFHeader();\r\n \t\troot.setTheHeader(header);\r\n \r\n \t\t// Setting the time gets more and more complicated...\r\n \t\ttry {\r\n \t\t\tGregorianCalendar cal = new GregorianCalendar();\r\n \t\t\tcal.setTime(new Date());\r\n \t\t\theader.setCreationTime(DatatypeFactory.newInstance()\r\n \t\t\t\t\t.newXMLGregorianCalendar(cal));\r\n \t\t} catch (DatatypeConfigurationException e) {\r\n \t\t\tthrow new RuntimeException(e);\r\n \t\t}\r\n \r\n \t\theader.setSourceToolId(\"ProR (http://pror.org)\");\r\n //\t\theader.setAuthor(System.getProperty(\"user.name\"));\r\n \r\n \t\tReqIFContent content = reqif10Factory.createReqIFContent();\r\n \t\troot.setCoreContent(content);\r\n \r\n \t\t// Add a DatatypeDefinition\r\n \t\tDatatypeDefinitionString ddString = reqif10Factory\r\n \t\t\t\t.createDatatypeDefinitionString();\r\n \t\tddString.setLongName(\"T_String32k\");\r\n \t\tddString.setMaxLength(new BigInteger(\"32000\"));\r\n \t\tcontent.getDatatypes().add(ddString);\r\n \r\n \t\t// Add a Specification\r\n \t\tSpecification spec = reqif10Factory.createSpecification();\r\n \t\tspec.setLongName(\"Specification Document\");\r\n \t\tcontent.getSpecifications().add(spec);\r\n \r\n \t\t// Add a SpecType\r\n \t\tSpecObjectType specType = reqif10Factory.createSpecObjectType();\r\n \t\tspecType.setLongName(\"Requirement Type\");\r\n \t\tcontent.getSpecTypes().add(specType);\r\n \r\n \t\t// Add an AttributeDefinition\r\n \t\tAttributeDefinitionString ad = reqif10Factory\r\n \t\t\t\t.createAttributeDefinitionString();\r\n \t\tad.setType(ddString);\r\n \t\tad.setLongName(\"Description\");\r\n \t\tspecType.getSpecAttributes().add(ad);\r\n \r\n \t\t// Configure the Specification View\r\n \t\tProrToolExtension extension = ConfigurationFactory.eINSTANCE\r\n \t\t\t\t.createProrToolExtension();\r\n \t\troot.getToolExtensions().add(extension);\r\n \t\tProrSpecViewConfiguration prorSpecViewConfiguration = ConfigurationFactory.eINSTANCE\r\n \t\t\t\t.createProrSpecViewConfiguration();\r\n \t\textension.getSpecViewConfigurations().add(prorSpecViewConfiguration);\r\n \t\tprorSpecViewConfiguration.setSpecification(spec);\r\n \t\tColumn col = ConfigurationFactory.eINSTANCE.createColumn();\r\n \t\tcol.setLabel(\"Description\");\r\n \t\tcol.setWidth(400);\r\n \t\tprorSpecViewConfiguration.getColumns().add(col);\r\n \r\n \t\tColumn leftHeaderColumn = ConfigFactory.eINSTANCE.createColumn();\r\n \t\tleftHeaderColumn\r\n \t\t\t\t.setWidth(ConfigurationUtil.DEFAULT_LEFT_HEADER_COLUMN_WIDTH);\r\n \t\tleftHeaderColumn\r\n \t\t\t\t.setLabel(ConfigurationUtil.DEFAULT_LEFT_HEADER_COLUMN_NAME);\r\n \t\tprorSpecViewConfiguration.setLeftHeaderColumn(leftHeaderColumn);\r\n \r\n \t\t// Configure the Label configuration\r\n \t\tProrGeneralConfiguration generalConfig = ConfigurationFactory.eINSTANCE\r\n \t\t\t\t.createProrGeneralConfiguration();\r\n \t\tLabelConfiguration labelConfig = ConfigurationFactory.eINSTANCE\r\n \t\t\t\t.createLabelConfiguration();\r\n \t\tlabelConfig.getDefaultLabel().add(\"Description\");\r\n \t\tgeneralConfig.setLabelConfiguration(labelConfig);\r\n \t\textension.setGeneralConfiguration(generalConfig);\r\n \r\n \t\t// Create one Requirement\r\n \t\tSpecObject specObject = reqif10Factory.createSpecObject();\r\n \t\tspecObject.setType(specType);\r\n \t\tcontent.getSpecObjects().add(specObject);\r\n \t\tAttributeValueString value = reqif10Factory.createAttributeValueString();\r\n \t\tvalue.setTheValue(\"Start editing here.\");\r\n \t\tvalue.setDefinition(ad);\r\n \t\tspecObject.getValues().add(value);\r\n \r\n \t\t// Add the requirement to the Specification\r\n \t\tSpecHierarchy specHierarchy = reqif10Factory.createSpecHierarchy();\r\n \t\tspec.getChildren().add(specHierarchy);\r\n \t\tspecHierarchy.setObject(specObject);\t\r\n \t\treturn root;\r\n \t}", "public void createPackageContents() {\r\n\t\tif (isCreated) return;\r\n\t\tisCreated = true;\r\n\r\n\t\t// Create classes and their features\r\n\t\trunnableEClass = createEClass(RUNNABLE);\r\n\t\tcreateEReference(runnableEClass, RUNNABLE__COMPONENT_INSTANCE);\r\n\t\tcreateEReference(runnableEClass, RUNNABLE__PORT_INSTANCE);\r\n\t\tcreateEReference(runnableEClass, RUNNABLE__PERIOD);\r\n\t\tcreateEReference(runnableEClass, RUNNABLE__LABEL_ACCESSES);\r\n\t\tcreateEReference(runnableEClass, RUNNABLE__DEADLINE);\r\n\r\n\t\tlabelEClass = createEClass(LABEL);\r\n\t\tcreateEReference(labelEClass, LABEL__COMPONENT_INSTANCE);\r\n\t\tcreateEReference(labelEClass, LABEL__COMPONENT_STATECHART);\r\n\t\tcreateEAttribute(labelEClass, LABEL__IS_CONSTANT);\r\n\r\n\t\tlabelAccessEClass = createEClass(LABEL_ACCESS);\r\n\t\tcreateEAttribute(labelAccessEClass, LABEL_ACCESS__ACCESS_KIND);\r\n\t\tcreateEReference(labelAccessEClass, LABEL_ACCESS__ACCESS_LABEL);\r\n\t\tcreateEReference(labelAccessEClass, LABEL_ACCESS__ACCESSING_RUNNABLE);\r\n\r\n\t\t// Create enums\r\n\t\tlabelAccessKindEEnum = createEEnum(LABEL_ACCESS_KIND);\r\n\t}", "ZenModel createZenModel();", "public interface ModelsPackage extends EPackage\n{\n\t/**\n\t * The package name.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t */\n\tString eNAME = \"models\";\n\n\t/**\n\t * The package namespace URI.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t */\n\tString eNS_URI = \"http://www.fever.org/models\";\n\n\t/**\n\t * The package namespace name.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t */\n\tString eNS_PREFIX = \"fever.models\";\n\n\t/**\n\t * The singleton instance of the package.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t */\n\tModelsPackage eINSTANCE = models.impl.ModelsPackageImpl.init();\n\n\t/**\n\t * The meta object id for the '{@link models.impl.VariabilityModelImpl <em>Variability Model</em>}' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @see models.impl.VariabilityModelImpl\n\t * @see models.impl.ModelsPackageImpl#getVariabilityModel()\n\t * @generated\n\t */\n\tint VARIABILITY_MODEL = 0;\n\n\t/**\n\t * The feature id for the '<em><b>Spl</b></em>' reference list.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint VARIABILITY_MODEL__SPL = 0;\n\n\t/**\n\t * The feature id for the '<em><b>Features</b></em>' reference list.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint VARIABILITY_MODEL__FEATURES = 1;\n\n\t/**\n\t * The number of structural features of the '<em>Variability Model</em>' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint VARIABILITY_MODEL_FEATURE_COUNT = 2;\n\n\t/**\n\t * The number of operations of the '<em>Variability Model</em>' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint VARIABILITY_MODEL_OPERATION_COUNT = 0;\n\n\t/**\n\t * The meta object id for the '{@link models.impl.BuildModelImpl <em>Build Model</em>}' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @see models.impl.BuildModelImpl\n\t * @see models.impl.ModelsPackageImpl#getBuildModel()\n\t * @generated\n\t */\n\tint BUILD_MODEL = 1;\n\n\t/**\n\t * The feature id for the '<em><b>Spl</b></em>' reference.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint BUILD_MODEL__SPL = 0;\n\n\t/**\n\t * The feature id for the '<em><b>Features</b></em>' reference list.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint BUILD_MODEL__FEATURES = 1;\n\n\t/**\n\t * The feature id for the '<em><b>Symbols</b></em>' reference list.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint BUILD_MODEL__SYMBOLS = 2;\n\n\t/**\n\t * The number of structural features of the '<em>Build Model</em>' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint BUILD_MODEL_FEATURE_COUNT = 3;\n\n\t/**\n\t * The number of operations of the '<em>Build Model</em>' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint BUILD_MODEL_OPERATION_COUNT = 0;\n\n\t/**\n\t * The meta object id for the '{@link models.impl.ImplementationModelImpl <em>Implementation Model</em>}' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @see models.impl.ImplementationModelImpl\n\t * @see models.impl.ModelsPackageImpl#getImplementationModel()\n\t * @generated\n\t */\n\tint IMPLEMENTATION_MODEL = 2;\n\n\t/**\n\t * The feature id for the '<em><b>Spl</b></em>' reference.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint IMPLEMENTATION_MODEL__SPL = 0;\n\n\t/**\n\t * The feature id for the '<em><b>Value Features</b></em>' reference list.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint IMPLEMENTATION_MODEL__VALUE_FEATURES = 1;\n\n\t/**\n\t * The feature id for the '<em><b>Constants</b></em>' reference list.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint IMPLEMENTATION_MODEL__CONSTANTS = 2;\n\n\t/**\n\t * The feature id for the '<em><b>Blocks</b></em>' containment reference list.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint IMPLEMENTATION_MODEL__BLOCKS = 3;\n\n\t/**\n\t * The feature id for the '<em><b>File name</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint IMPLEMENTATION_MODEL__FILE_NAME = 4;\n\n\t/**\n\t * The feature id for the '<em><b>Chane</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint IMPLEMENTATION_MODEL__CHANE = 5;\n\n\t/**\n\t * The number of structural features of the '<em>Implementation Model</em>' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint IMPLEMENTATION_MODEL_FEATURE_COUNT = 6;\n\n\t/**\n\t * The number of operations of the '<em>Implementation Model</em>' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint IMPLEMENTATION_MODEL_OPERATION_COUNT = 0;\n\n\t/**\n\t * The meta object id for the '{@link models.impl.SPLImpl <em>SPL</em>}' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @see models.impl.SPLImpl\n\t * @see models.impl.ModelsPackageImpl#getSPL()\n\t * @generated\n\t */\n\tint SPL = 3;\n\n\t/**\n\t * The feature id for the '<em><b>Revision</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint SPL__REVISION = 0;\n\n\t/**\n\t * The feature id for the '<em><b>Variabilitymodel</b></em>' reference.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint SPL__VARIABILITYMODEL = 1;\n\n\t/**\n\t * The feature id for the '<em><b>Buildmodel</b></em>' reference.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint SPL__BUILDMODEL = 2;\n\n\t/**\n\t * The feature id for the '<em><b>Implementationmodel</b></em>' reference.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint SPL__IMPLEMENTATIONMODEL = 3;\n\n\t/**\n\t * The number of structural features of the '<em>SPL</em>' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint SPL_FEATURE_COUNT = 4;\n\n\t/**\n\t * The number of operations of the '<em>SPL</em>' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint SPL_OPERATION_COUNT = 0;\n\n\t/**\n\t * The meta object id for the '{@link models.impl.VariabilityModelEntityImpl <em>Variability Model Entity</em>}' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @see models.impl.VariabilityModelEntityImpl\n\t * @see models.impl.ModelsPackageImpl#getVariabilityModelEntity()\n\t * @generated\n\t */\n\tint VARIABILITY_MODEL_ENTITY = 4;\n\n\t/**\n\t * The feature id for the '<em><b>Id</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint VARIABILITY_MODEL_ENTITY__ID = 0;\n\n\t/**\n\t * The feature id for the '<em><b>Flags</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint VARIABILITY_MODEL_ENTITY__FLAGS = 1;\n\n\t/**\n\t * The feature id for the '<em><b>Type</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint VARIABILITY_MODEL_ENTITY__TYPE = 2;\n\n\t/**\n\t * The feature id for the '<em><b>Prompt</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint VARIABILITY_MODEL_ENTITY__PROMPT = 3;\n\n\t/**\n\t * The feature id for the '<em><b>Default Values</b></em>' reference list.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint VARIABILITY_MODEL_ENTITY__DEFAULT_VALUES = 4;\n\n\t/**\n\t * The feature id for the '<em><b>Selects</b></em>' reference list.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint VARIABILITY_MODEL_ENTITY__SELECTS = 5;\n\n\t/**\n\t * The feature id for the '<em><b>Prompt Condition</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint VARIABILITY_MODEL_ENTITY__PROMPT_CONDITION = 6;\n\n\t/**\n\t * The feature id for the '<em><b>Presence Condition</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint VARIABILITY_MODEL_ENTITY__PRESENCE_CONDITION = 7;\n\n\t/**\n\t * The feature id for the '<em><b>Depends</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint VARIABILITY_MODEL_ENTITY__DEPENDS = 8;\n\n\t/**\n\t * The feature id for the '<em><b>External</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint VARIABILITY_MODEL_ENTITY__EXTERNAL = 9;\n\n\t/**\n\t * The number of structural features of the '<em>Variability Model Entity</em>' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint VARIABILITY_MODEL_ENTITY_FEATURE_COUNT = 10;\n\n\t/**\n\t * The number of operations of the '<em>Variability Model Entity</em>' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint VARIABILITY_MODEL_ENTITY_OPERATION_COUNT = 0;\n\n\t/**\n\t * The meta object id for the '{@link models.impl.FeatureImpl <em>Feature</em>}' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @see models.impl.FeatureImpl\n\t * @see models.impl.ModelsPackageImpl#getFeature()\n\t * @generated\n\t */\n\tint FEATURE = 5;\n\n\t/**\n\t * The feature id for the '<em><b>Id</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint FEATURE__ID = VARIABILITY_MODEL_ENTITY__ID;\n\n\t/**\n\t * The feature id for the '<em><b>Flags</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint FEATURE__FLAGS = VARIABILITY_MODEL_ENTITY__FLAGS;\n\n\t/**\n\t * The feature id for the '<em><b>Type</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint FEATURE__TYPE = VARIABILITY_MODEL_ENTITY__TYPE;\n\n\t/**\n\t * The feature id for the '<em><b>Prompt</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint FEATURE__PROMPT = VARIABILITY_MODEL_ENTITY__PROMPT;\n\n\t/**\n\t * The feature id for the '<em><b>Default Values</b></em>' reference list.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint FEATURE__DEFAULT_VALUES = VARIABILITY_MODEL_ENTITY__DEFAULT_VALUES;\n\n\t/**\n\t * The feature id for the '<em><b>Selects</b></em>' reference list.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint FEATURE__SELECTS = VARIABILITY_MODEL_ENTITY__SELECTS;\n\n\t/**\n\t * The feature id for the '<em><b>Prompt Condition</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint FEATURE__PROMPT_CONDITION = VARIABILITY_MODEL_ENTITY__PROMPT_CONDITION;\n\n\t/**\n\t * The feature id for the '<em><b>Presence Condition</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint FEATURE__PRESENCE_CONDITION = VARIABILITY_MODEL_ENTITY__PRESENCE_CONDITION;\n\n\t/**\n\t * The feature id for the '<em><b>Depends</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint FEATURE__DEPENDS = VARIABILITY_MODEL_ENTITY__DEPENDS;\n\n\t/**\n\t * The feature id for the '<em><b>External</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint FEATURE__EXTERNAL = VARIABILITY_MODEL_ENTITY__EXTERNAL;\n\n\t/**\n\t * The feature id for the '<em><b>Name</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint FEATURE__NAME = VARIABILITY_MODEL_ENTITY_FEATURE_COUNT + 0;\n\n\t/**\n\t * The number of structural features of the '<em>Feature</em>' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint FEATURE_FEATURE_COUNT = VARIABILITY_MODEL_ENTITY_FEATURE_COUNT + 1;\n\n\t/**\n\t * The number of operations of the '<em>Feature</em>' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint FEATURE_OPERATION_COUNT = VARIABILITY_MODEL_ENTITY_OPERATION_COUNT + 0;\n\n\t/**\n\t * The meta object id for the '{@link models.impl.ChoiceImpl <em>Choice</em>}' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @see models.impl.ChoiceImpl\n\t * @see models.impl.ModelsPackageImpl#getChoice()\n\t * @generated\n\t */\n\tint CHOICE = 6;\n\n\t/**\n\t * The feature id for the '<em><b>Id</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint CHOICE__ID = VARIABILITY_MODEL_ENTITY__ID;\n\n\t/**\n\t * The feature id for the '<em><b>Flags</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint CHOICE__FLAGS = VARIABILITY_MODEL_ENTITY__FLAGS;\n\n\t/**\n\t * The feature id for the '<em><b>Type</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint CHOICE__TYPE = VARIABILITY_MODEL_ENTITY__TYPE;\n\n\t/**\n\t * The feature id for the '<em><b>Prompt</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint CHOICE__PROMPT = VARIABILITY_MODEL_ENTITY__PROMPT;\n\n\t/**\n\t * The feature id for the '<em><b>Default Values</b></em>' reference list.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint CHOICE__DEFAULT_VALUES = VARIABILITY_MODEL_ENTITY__DEFAULT_VALUES;\n\n\t/**\n\t * The feature id for the '<em><b>Selects</b></em>' reference list.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint CHOICE__SELECTS = VARIABILITY_MODEL_ENTITY__SELECTS;\n\n\t/**\n\t * The feature id for the '<em><b>Prompt Condition</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint CHOICE__PROMPT_CONDITION = VARIABILITY_MODEL_ENTITY__PROMPT_CONDITION;\n\n\t/**\n\t * The feature id for the '<em><b>Presence Condition</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint CHOICE__PRESENCE_CONDITION = VARIABILITY_MODEL_ENTITY__PRESENCE_CONDITION;\n\n\t/**\n\t * The feature id for the '<em><b>Depends</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint CHOICE__DEPENDS = VARIABILITY_MODEL_ENTITY__DEPENDS;\n\n\t/**\n\t * The feature id for the '<em><b>External</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint CHOICE__EXTERNAL = VARIABILITY_MODEL_ENTITY__EXTERNAL;\n\n\t/**\n\t * The number of structural features of the '<em>Choice</em>' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint CHOICE_FEATURE_COUNT = VARIABILITY_MODEL_ENTITY_FEATURE_COUNT + 0;\n\n\t/**\n\t * The number of operations of the '<em>Choice</em>' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint CHOICE_OPERATION_COUNT = VARIABILITY_MODEL_ENTITY_OPERATION_COUNT + 0;\n\n\t/**\n\t * The meta object id for the '{@link models.impl.DefaultValueImpl <em>Default Value</em>}' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @see models.impl.DefaultValueImpl\n\t * @see models.impl.ModelsPackageImpl#getDefaultValue()\n\t * @generated\n\t */\n\tint DEFAULT_VALUE = 7;\n\n\t/**\n\t * The feature id for the '<em><b>Value</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint DEFAULT_VALUE__VALUE = 0;\n\n\t/**\n\t * The feature id for the '<em><b>Condition</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint DEFAULT_VALUE__CONDITION = 1;\n\n\t/**\n\t * The feature id for the '<em><b>Order</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint DEFAULT_VALUE__ORDER = 2;\n\n\t/**\n\t * The feature id for the '<em><b>Id</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint DEFAULT_VALUE__ID = 3;\n\n\t/**\n\t * The number of structural features of the '<em>Default Value</em>' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint DEFAULT_VALUE_FEATURE_COUNT = 4;\n\n\t/**\n\t * The number of operations of the '<em>Default Value</em>' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint DEFAULT_VALUE_OPERATION_COUNT = 0;\n\n\t/**\n\t * The meta object id for the '{@link models.impl.SelectImpl <em>Select</em>}' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @see models.impl.SelectImpl\n\t * @see models.impl.ModelsPackageImpl#getSelect()\n\t * @generated\n\t */\n\tint SELECT = 8;\n\n\t/**\n\t * The feature id for the '<em><b>Target</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint SELECT__TARGET = 0;\n\n\t/**\n\t * The feature id for the '<em><b>Condition</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint SELECT__CONDITION = 1;\n\n\t/**\n\t * The feature id for the '<em><b>Id</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint SELECT__ID = 2;\n\n\t/**\n\t * The number of structural features of the '<em>Select</em>' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint SELECT_FEATURE_COUNT = 3;\n\n\t/**\n\t * The number of operations of the '<em>Select</em>' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint SELECT_OPERATION_COUNT = 0;\n\n\t/**\n\t * The meta object id for the '{@link models.impl.MappedFeatureImpl <em>Mapped Feature</em>}' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @see models.impl.MappedFeatureImpl\n\t * @see models.impl.ModelsPackageImpl#getMappedFeature()\n\t * @generated\n\t */\n\tint MAPPED_FEATURE = 9;\n\n\t/**\n\t * The feature id for the '<em><b>Targets</b></em>' containment reference list.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint MAPPED_FEATURE__TARGETS = 0;\n\n\t/**\n\t * The feature id for the '<em><b>Feature Name</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint MAPPED_FEATURE__FEATURE_NAME = 1;\n\n\t/**\n\t * The feature id for the '<em><b>Id</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint MAPPED_FEATURE__ID = 2;\n\n\t/**\n\t * The number of structural features of the '<em>Mapped Feature</em>' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint MAPPED_FEATURE_FEATURE_COUNT = 3;\n\n\t/**\n\t * The number of operations of the '<em>Mapped Feature</em>' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint MAPPED_FEATURE_OPERATION_COUNT = 0;\n\n\t/**\n\t * The meta object id for the '{@link models.impl.CompilationTargetImpl <em>Compilation Target</em>}' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @see models.impl.CompilationTargetImpl\n\t * @see models.impl.ModelsPackageImpl#getCompilationTarget()\n\t * @generated\n\t */\n\tint COMPILATION_TARGET = 10;\n\n\t/**\n\t * The feature id for the '<em><b>Target Name</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint COMPILATION_TARGET__TARGET_NAME = 0;\n\n\t/**\n\t * The feature id for the '<em><b>Target Type</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint COMPILATION_TARGET__TARGET_TYPE = 1;\n\n\t/**\n\t * The feature id for the '<em><b>Id</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint COMPILATION_TARGET__ID = 2;\n\n\t/**\n\t * The feature id for the '<em><b>Mapped To Symbol</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint COMPILATION_TARGET__MAPPED_TO_SYMBOL = 3;\n\n\t/**\n\t * The number of structural features of the '<em>Compilation Target</em>' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint COMPILATION_TARGET_FEATURE_COUNT = 4;\n\n\t/**\n\t * The number of operations of the '<em>Compilation Target</em>' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint COMPILATION_TARGET_OPERATION_COUNT = 0;\n\n\t/**\n\t * The meta object id for the '{@link models.impl.MakeSymbolImpl <em>Make Symbol</em>}' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @see models.impl.MakeSymbolImpl\n\t * @see models.impl.ModelsPackageImpl#getMakeSymbol()\n\t * @generated\n\t */\n\tint MAKE_SYMBOL = 11;\n\n\t/**\n\t * The feature id for the '<em><b>Name</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint MAKE_SYMBOL__NAME = 0;\n\n\t/**\n\t * The feature id for the '<em><b>Targets</b></em>' containment reference list.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint MAKE_SYMBOL__TARGETS = 1;\n\n\t/**\n\t * The number of structural features of the '<em>Make Symbol</em>' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint MAKE_SYMBOL_FEATURE_COUNT = 2;\n\n\t/**\n\t * The number of operations of the '<em>Make Symbol</em>' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint MAKE_SYMBOL_OPERATION_COUNT = 0;\n\n\t/**\n\t * The meta object id for the '{@link models.impl.ReferencedValueFeatureImpl <em>Referenced Value Feature</em>}' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @see models.impl.ReferencedValueFeatureImpl\n\t * @see models.impl.ModelsPackageImpl#getReferencedValueFeature()\n\t * @generated\n\t */\n\tint REFERENCED_VALUE_FEATURE = 12;\n\n\t/**\n\t * The feature id for the '<em><b>Name</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint REFERENCED_VALUE_FEATURE__NAME = 0;\n\n\t/**\n\t * The number of structural features of the '<em>Referenced Value Feature</em>' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint REFERENCED_VALUE_FEATURE_FEATURE_COUNT = 1;\n\n\t/**\n\t * The number of operations of the '<em>Referenced Value Feature</em>' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint REFERENCED_VALUE_FEATURE_OPERATION_COUNT = 0;\n\n\t/**\n\t * The meta object id for the '{@link models.impl.ConditionalBlockImpl <em>Conditional Block</em>}' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @see models.impl.ConditionalBlockImpl\n\t * @see models.impl.ModelsPackageImpl#getConditionalBlock()\n\t * @generated\n\t */\n\tint CONDITIONAL_BLOCK = 13;\n\n\t/**\n\t * The feature id for the '<em><b>Start</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint CONDITIONAL_BLOCK__START = 0;\n\n\t/**\n\t * The feature id for the '<em><b>End</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint CONDITIONAL_BLOCK__END = 1;\n\n\t/**\n\t * The feature id for the '<em><b>Condition</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint CONDITIONAL_BLOCK__CONDITION = 2;\n\n\t/**\n\t * The feature id for the '<em><b>Value Features</b></em>' reference list.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint CONDITIONAL_BLOCK__VALUE_FEATURES = 3;\n\n\t/**\n\t * The feature id for the '<em><b>Touched</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint CONDITIONAL_BLOCK__TOUCHED = 4;\n\n\t/**\n\t * The feature id for the '<em><b>Expression</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint CONDITIONAL_BLOCK__EXPRESSION = 5;\n\n\t/**\n\t * The feature id for the '<em><b>Lines</b></em>' containment reference list.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint CONDITIONAL_BLOCK__LINES = 6;\n\n\t/**\n\t * The feature id for the '<em><b>Edited By</b></em>' reference list.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint CONDITIONAL_BLOCK__EDITED_BY = 7;\n\n\t/**\n\t * The number of structural features of the '<em>Conditional Block</em>' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint CONDITIONAL_BLOCK_FEATURE_COUNT = 8;\n\n\t/**\n\t * The number of operations of the '<em>Conditional Block</em>' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint CONDITIONAL_BLOCK_OPERATION_COUNT = 0;\n\n\t/**\n\t * The meta object id for the '{@link models.impl.FeatureConstantImpl <em>Feature Constant</em>}' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @see models.impl.FeatureConstantImpl\n\t * @see models.impl.ModelsPackageImpl#getFeatureConstant()\n\t * @generated\n\t */\n\tint FEATURE_CONSTANT = 14;\n\n\t/**\n\t * The feature id for the '<em><b>Name</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint FEATURE_CONSTANT__NAME = 0;\n\n\t/**\n\t * The number of structural features of the '<em>Feature Constant</em>' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint FEATURE_CONSTANT_FEATURE_COUNT = 1;\n\n\t/**\n\t * The number of operations of the '<em>Feature Constant</em>' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint FEATURE_CONSTANT_OPERATION_COUNT = 0;\n\n\t/**\n\t * The meta object id for the '{@link models.impl.ImplementationLineImpl <em>Implementation Line</em>}' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @see models.impl.ImplementationLineImpl\n\t * @see models.impl.ModelsPackageImpl#getImplementationLine()\n\t * @generated\n\t */\n\tint IMPLEMENTATION_LINE = 15;\n\n\t/**\n\t * The feature id for the '<em><b>Line</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint IMPLEMENTATION_LINE__LINE = 0;\n\n\t/**\n\t * The number of structural features of the '<em>Implementation Line</em>' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint IMPLEMENTATION_LINE_FEATURE_COUNT = 1;\n\n\t/**\n\t * The number of operations of the '<em>Implementation Line</em>' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint IMPLEMENTATION_LINE_OPERATION_COUNT = 0;\n\n\t/**\n\t * The meta object id for the '{@link models.impl.CodeEditImpl <em>Code Edit</em>}' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @see models.impl.CodeEditImpl\n\t * @see models.impl.ModelsPackageImpl#getCodeEdit()\n\t * @generated\n\t */\n\tint CODE_EDIT = 16;\n\n\t/**\n\t * The feature id for the '<em><b>Rem idx</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint CODE_EDIT__REM_IDX = 0;\n\n\t/**\n\t * The feature id for the '<em><b>Add idx</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint CODE_EDIT__ADD_IDX = 1;\n\n\t/**\n\t * The feature id for the '<em><b>Rem size</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint CODE_EDIT__REM_SIZE = 2;\n\n\t/**\n\t * The feature id for the '<em><b>Add size</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint CODE_EDIT__ADD_SIZE = 3;\n\n\t/**\n\t * The feature id for the '<em><b>Diff</b></em>' attribute.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint CODE_EDIT__DIFF = 4;\n\n\t/**\n\t * The number of structural features of the '<em>Code Edit</em>' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint CODE_EDIT_FEATURE_COUNT = 5;\n\n\t/**\n\t * The number of operations of the '<em>Code Edit</em>' class.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @generated\n\t * @ordered\n\t */\n\tint CODE_EDIT_OPERATION_COUNT = 0;\n\n\t/**\n\t * The meta object id for the '{@link models.VariabilityTypes <em>Variability Types</em>}' enum.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @see models.VariabilityTypes\n\t * @see models.impl.ModelsPackageImpl#getVariabilityTypes()\n\t * @generated\n\t */\n\tint VARIABILITY_TYPES = 17;\n\n\t/**\n\t * The meta object id for the '{@link models.CompilationTargetType <em>Compilation Target Type</em>}' enum.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @see models.CompilationTargetType\n\t * @see models.impl.ModelsPackageImpl#getCompilationTargetType()\n\t * @generated\n\t */\n\tint COMPILATION_TARGET_TYPE = 18;\n\n\t/**\n\t * The meta object id for the '{@link models.ChangeType <em>Change Type</em>}' enum.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @see models.ChangeType\n\t * @see models.impl.ModelsPackageImpl#getChangeType()\n\t * @generated\n\t */\n\tint CHANGE_TYPE = 19;\n\n\n\t/**\n\t * Returns the meta object for class '{@link models.VariabilityModel <em>Variability Model</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for class '<em>Variability Model</em>'.\n\t * @see models.VariabilityModel\n\t * @generated\n\t */\n\tEClass getVariabilityModel();\n\n\t/**\n\t * Returns the meta object for the reference list '{@link models.VariabilityModel#getSpl <em>Spl</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the reference list '<em>Spl</em>'.\n\t * @see models.VariabilityModel#getSpl()\n\t * @see #getVariabilityModel()\n\t * @generated\n\t */\n\tEReference getVariabilityModel_Spl();\n\n\t/**\n\t * Returns the meta object for the reference list '{@link models.VariabilityModel#getFeatures <em>Features</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the reference list '<em>Features</em>'.\n\t * @see models.VariabilityModel#getFeatures()\n\t * @see #getVariabilityModel()\n\t * @generated\n\t */\n\tEReference getVariabilityModel_Features();\n\n\t/**\n\t * Returns the meta object for class '{@link models.BuildModel <em>Build Model</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for class '<em>Build Model</em>'.\n\t * @see models.BuildModel\n\t * @generated\n\t */\n\tEClass getBuildModel();\n\n\t/**\n\t * Returns the meta object for the reference '{@link models.BuildModel#getSpl <em>Spl</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the reference '<em>Spl</em>'.\n\t * @see models.BuildModel#getSpl()\n\t * @see #getBuildModel()\n\t * @generated\n\t */\n\tEReference getBuildModel_Spl();\n\n\t/**\n\t * Returns the meta object for the reference list '{@link models.BuildModel#getFeatures <em>Features</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the reference list '<em>Features</em>'.\n\t * @see models.BuildModel#getFeatures()\n\t * @see #getBuildModel()\n\t * @generated\n\t */\n\tEReference getBuildModel_Features();\n\n\t/**\n\t * Returns the meta object for the reference list '{@link models.BuildModel#getSymbols <em>Symbols</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the reference list '<em>Symbols</em>'.\n\t * @see models.BuildModel#getSymbols()\n\t * @see #getBuildModel()\n\t * @generated\n\t */\n\tEReference getBuildModel_Symbols();\n\n\t/**\n\t * Returns the meta object for class '{@link models.ImplementationModel <em>Implementation Model</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for class '<em>Implementation Model</em>'.\n\t * @see models.ImplementationModel\n\t * @generated\n\t */\n\tEClass getImplementationModel();\n\n\t/**\n\t * Returns the meta object for the reference '{@link models.ImplementationModel#getSpl <em>Spl</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the reference '<em>Spl</em>'.\n\t * @see models.ImplementationModel#getSpl()\n\t * @see #getImplementationModel()\n\t * @generated\n\t */\n\tEReference getImplementationModel_Spl();\n\n\t/**\n\t * Returns the meta object for the reference list '{@link models.ImplementationModel#getValueFeatures <em>Value Features</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the reference list '<em>Value Features</em>'.\n\t * @see models.ImplementationModel#getValueFeatures()\n\t * @see #getImplementationModel()\n\t * @generated\n\t */\n\tEReference getImplementationModel_ValueFeatures();\n\n\t/**\n\t * Returns the meta object for the reference list '{@link models.ImplementationModel#getConstants <em>Constants</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the reference list '<em>Constants</em>'.\n\t * @see models.ImplementationModel#getConstants()\n\t * @see #getImplementationModel()\n\t * @generated\n\t */\n\tEReference getImplementationModel_Constants();\n\n\t/**\n\t * Returns the meta object for the containment reference list '{@link models.ImplementationModel#getBlocks <em>Blocks</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the containment reference list '<em>Blocks</em>'.\n\t * @see models.ImplementationModel#getBlocks()\n\t * @see #getImplementationModel()\n\t * @generated\n\t */\n\tEReference getImplementationModel_Blocks();\n\n\t/**\n\t * Returns the meta object for the attribute '{@link models.ImplementationModel#getFile_name <em>File name</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the attribute '<em>File name</em>'.\n\t * @see models.ImplementationModel#getFile_name()\n\t * @see #getImplementationModel()\n\t * @generated\n\t */\n\tEAttribute getImplementationModel_File_name();\n\n\t/**\n\t * Returns the meta object for the attribute '{@link models.ImplementationModel#getChane <em>Chane</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the attribute '<em>Chane</em>'.\n\t * @see models.ImplementationModel#getChane()\n\t * @see #getImplementationModel()\n\t * @generated\n\t */\n\tEAttribute getImplementationModel_Chane();\n\n\t/**\n\t * Returns the meta object for class '{@link models.SPL <em>SPL</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for class '<em>SPL</em>'.\n\t * @see models.SPL\n\t * @generated\n\t */\n\tEClass getSPL();\n\n\t/**\n\t * Returns the meta object for the attribute '{@link models.SPL#getRevision <em>Revision</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the attribute '<em>Revision</em>'.\n\t * @see models.SPL#getRevision()\n\t * @see #getSPL()\n\t * @generated\n\t */\n\tEAttribute getSPL_Revision();\n\n\t/**\n\t * Returns the meta object for the reference '{@link models.SPL#getVariabilitymodel <em>Variabilitymodel</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the reference '<em>Variabilitymodel</em>'.\n\t * @see models.SPL#getVariabilitymodel()\n\t * @see #getSPL()\n\t * @generated\n\t */\n\tEReference getSPL_Variabilitymodel();\n\n\t/**\n\t * Returns the meta object for the reference '{@link models.SPL#getBuildmodel <em>Buildmodel</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the reference '<em>Buildmodel</em>'.\n\t * @see models.SPL#getBuildmodel()\n\t * @see #getSPL()\n\t * @generated\n\t */\n\tEReference getSPL_Buildmodel();\n\n\t/**\n\t * Returns the meta object for the reference '{@link models.SPL#getImplementationmodel <em>Implementationmodel</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the reference '<em>Implementationmodel</em>'.\n\t * @see models.SPL#getImplementationmodel()\n\t * @see #getSPL()\n\t * @generated\n\t */\n\tEReference getSPL_Implementationmodel();\n\n\t/**\n\t * Returns the meta object for class '{@link models.VariabilityModelEntity <em>Variability Model Entity</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for class '<em>Variability Model Entity</em>'.\n\t * @see models.VariabilityModelEntity\n\t * @generated\n\t */\n\tEClass getVariabilityModelEntity();\n\n\t/**\n\t * Returns the meta object for the attribute '{@link models.VariabilityModelEntity#getId <em>Id</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the attribute '<em>Id</em>'.\n\t * @see models.VariabilityModelEntity#getId()\n\t * @see #getVariabilityModelEntity()\n\t * @generated\n\t */\n\tEAttribute getVariabilityModelEntity_Id();\n\n\t/**\n\t * Returns the meta object for the attribute '{@link models.VariabilityModelEntity#getFlags <em>Flags</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the attribute '<em>Flags</em>'.\n\t * @see models.VariabilityModelEntity#getFlags()\n\t * @see #getVariabilityModelEntity()\n\t * @generated\n\t */\n\tEAttribute getVariabilityModelEntity_Flags();\n\n\t/**\n\t * Returns the meta object for the attribute '{@link models.VariabilityModelEntity#getType <em>Type</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the attribute '<em>Type</em>'.\n\t * @see models.VariabilityModelEntity#getType()\n\t * @see #getVariabilityModelEntity()\n\t * @generated\n\t */\n\tEAttribute getVariabilityModelEntity_Type();\n\n\t/**\n\t * Returns the meta object for the attribute '{@link models.VariabilityModelEntity#getPrompt <em>Prompt</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the attribute '<em>Prompt</em>'.\n\t * @see models.VariabilityModelEntity#getPrompt()\n\t * @see #getVariabilityModelEntity()\n\t * @generated\n\t */\n\tEAttribute getVariabilityModelEntity_Prompt();\n\n\t/**\n\t * Returns the meta object for the reference list '{@link models.VariabilityModelEntity#getDefaultValues <em>Default Values</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the reference list '<em>Default Values</em>'.\n\t * @see models.VariabilityModelEntity#getDefaultValues()\n\t * @see #getVariabilityModelEntity()\n\t * @generated\n\t */\n\tEReference getVariabilityModelEntity_DefaultValues();\n\n\t/**\n\t * Returns the meta object for the reference list '{@link models.VariabilityModelEntity#getSelects <em>Selects</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the reference list '<em>Selects</em>'.\n\t * @see models.VariabilityModelEntity#getSelects()\n\t * @see #getVariabilityModelEntity()\n\t * @generated\n\t */\n\tEReference getVariabilityModelEntity_Selects();\n\n\t/**\n\t * Returns the meta object for the attribute '{@link models.VariabilityModelEntity#getPromptCondition <em>Prompt Condition</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the attribute '<em>Prompt Condition</em>'.\n\t * @see models.VariabilityModelEntity#getPromptCondition()\n\t * @see #getVariabilityModelEntity()\n\t * @generated\n\t */\n\tEAttribute getVariabilityModelEntity_PromptCondition();\n\n\t/**\n\t * Returns the meta object for the attribute '{@link models.VariabilityModelEntity#getPresenceCondition <em>Presence Condition</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the attribute '<em>Presence Condition</em>'.\n\t * @see models.VariabilityModelEntity#getPresenceCondition()\n\t * @see #getVariabilityModelEntity()\n\t * @generated\n\t */\n\tEAttribute getVariabilityModelEntity_PresenceCondition();\n\n\t/**\n\t * Returns the meta object for the attribute '{@link models.VariabilityModelEntity#getDepends <em>Depends</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the attribute '<em>Depends</em>'.\n\t * @see models.VariabilityModelEntity#getDepends()\n\t * @see #getVariabilityModelEntity()\n\t * @generated\n\t */\n\tEAttribute getVariabilityModelEntity_Depends();\n\n\t/**\n\t * Returns the meta object for the attribute '{@link models.VariabilityModelEntity#isExternal <em>External</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the attribute '<em>External</em>'.\n\t * @see models.VariabilityModelEntity#isExternal()\n\t * @see #getVariabilityModelEntity()\n\t * @generated\n\t */\n\tEAttribute getVariabilityModelEntity_External();\n\n\t/**\n\t * Returns the meta object for class '{@link models.Feature <em>Feature</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for class '<em>Feature</em>'.\n\t * @see models.Feature\n\t * @generated\n\t */\n\tEClass getFeature();\n\n\t/**\n\t * Returns the meta object for the attribute '{@link models.Feature#getName <em>Name</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the attribute '<em>Name</em>'.\n\t * @see models.Feature#getName()\n\t * @see #getFeature()\n\t * @generated\n\t */\n\tEAttribute getFeature_Name();\n\n\t/**\n\t * Returns the meta object for class '{@link models.Choice <em>Choice</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for class '<em>Choice</em>'.\n\t * @see models.Choice\n\t * @generated\n\t */\n\tEClass getChoice();\n\n\t/**\n\t * Returns the meta object for class '{@link models.DefaultValue <em>Default Value</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for class '<em>Default Value</em>'.\n\t * @see models.DefaultValue\n\t * @generated\n\t */\n\tEClass getDefaultValue();\n\n\t/**\n\t * Returns the meta object for the attribute '{@link models.DefaultValue#getValue <em>Value</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the attribute '<em>Value</em>'.\n\t * @see models.DefaultValue#getValue()\n\t * @see #getDefaultValue()\n\t * @generated\n\t */\n\tEAttribute getDefaultValue_Value();\n\n\t/**\n\t * Returns the meta object for the attribute '{@link models.DefaultValue#getCondition <em>Condition</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the attribute '<em>Condition</em>'.\n\t * @see models.DefaultValue#getCondition()\n\t * @see #getDefaultValue()\n\t * @generated\n\t */\n\tEAttribute getDefaultValue_Condition();\n\n\t/**\n\t * Returns the meta object for the attribute '{@link models.DefaultValue#getOrder <em>Order</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the attribute '<em>Order</em>'.\n\t * @see models.DefaultValue#getOrder()\n\t * @see #getDefaultValue()\n\t * @generated\n\t */\n\tEAttribute getDefaultValue_Order();\n\n\t/**\n\t * Returns the meta object for the attribute '{@link models.DefaultValue#getId <em>Id</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the attribute '<em>Id</em>'.\n\t * @see models.DefaultValue#getId()\n\t * @see #getDefaultValue()\n\t * @generated\n\t */\n\tEAttribute getDefaultValue_Id();\n\n\t/**\n\t * Returns the meta object for class '{@link models.Select <em>Select</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for class '<em>Select</em>'.\n\t * @see models.Select\n\t * @generated\n\t */\n\tEClass getSelect();\n\n\t/**\n\t * Returns the meta object for the attribute '{@link models.Select#getTarget <em>Target</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the attribute '<em>Target</em>'.\n\t * @see models.Select#getTarget()\n\t * @see #getSelect()\n\t * @generated\n\t */\n\tEAttribute getSelect_Target();\n\n\t/**\n\t * Returns the meta object for the attribute '{@link models.Select#getCondition <em>Condition</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the attribute '<em>Condition</em>'.\n\t * @see models.Select#getCondition()\n\t * @see #getSelect()\n\t * @generated\n\t */\n\tEAttribute getSelect_Condition();\n\n\t/**\n\t * Returns the meta object for the attribute '{@link models.Select#getId <em>Id</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the attribute '<em>Id</em>'.\n\t * @see models.Select#getId()\n\t * @see #getSelect()\n\t * @generated\n\t */\n\tEAttribute getSelect_Id();\n\n\t/**\n\t * Returns the meta object for class '{@link models.MappedFeature <em>Mapped Feature</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for class '<em>Mapped Feature</em>'.\n\t * @see models.MappedFeature\n\t * @generated\n\t */\n\tEClass getMappedFeature();\n\n\t/**\n\t * Returns the meta object for the containment reference list '{@link models.MappedFeature#getTargets <em>Targets</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the containment reference list '<em>Targets</em>'.\n\t * @see models.MappedFeature#getTargets()\n\t * @see #getMappedFeature()\n\t * @generated\n\t */\n\tEReference getMappedFeature_Targets();\n\n\t/**\n\t * Returns the meta object for the attribute '{@link models.MappedFeature#getFeatureName <em>Feature Name</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the attribute '<em>Feature Name</em>'.\n\t * @see models.MappedFeature#getFeatureName()\n\t * @see #getMappedFeature()\n\t * @generated\n\t */\n\tEAttribute getMappedFeature_FeatureName();\n\n\t/**\n\t * Returns the meta object for the attribute '{@link models.MappedFeature#getId <em>Id</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the attribute '<em>Id</em>'.\n\t * @see models.MappedFeature#getId()\n\t * @see #getMappedFeature()\n\t * @generated\n\t */\n\tEAttribute getMappedFeature_Id();\n\n\t/**\n\t * Returns the meta object for class '{@link models.CompilationTarget <em>Compilation Target</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for class '<em>Compilation Target</em>'.\n\t * @see models.CompilationTarget\n\t * @generated\n\t */\n\tEClass getCompilationTarget();\n\n\t/**\n\t * Returns the meta object for the attribute '{@link models.CompilationTarget#getTargetName <em>Target Name</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the attribute '<em>Target Name</em>'.\n\t * @see models.CompilationTarget#getTargetName()\n\t * @see #getCompilationTarget()\n\t * @generated\n\t */\n\tEAttribute getCompilationTarget_TargetName();\n\n\t/**\n\t * Returns the meta object for the attribute '{@link models.CompilationTarget#getTargetType <em>Target Type</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the attribute '<em>Target Type</em>'.\n\t * @see models.CompilationTarget#getTargetType()\n\t * @see #getCompilationTarget()\n\t * @generated\n\t */\n\tEAttribute getCompilationTarget_TargetType();\n\n\t/**\n\t * Returns the meta object for the attribute '{@link models.CompilationTarget#getId <em>Id</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the attribute '<em>Id</em>'.\n\t * @see models.CompilationTarget#getId()\n\t * @see #getCompilationTarget()\n\t * @generated\n\t */\n\tEAttribute getCompilationTarget_Id();\n\n\t/**\n\t * Returns the meta object for the attribute '{@link models.CompilationTarget#getMappedToSymbol <em>Mapped To Symbol</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the attribute '<em>Mapped To Symbol</em>'.\n\t * @see models.CompilationTarget#getMappedToSymbol()\n\t * @see #getCompilationTarget()\n\t * @generated\n\t */\n\tEAttribute getCompilationTarget_MappedToSymbol();\n\n\t/**\n\t * Returns the meta object for class '{@link models.MakeSymbol <em>Make Symbol</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for class '<em>Make Symbol</em>'.\n\t * @see models.MakeSymbol\n\t * @generated\n\t */\n\tEClass getMakeSymbol();\n\n\t/**\n\t * Returns the meta object for the attribute '{@link models.MakeSymbol#getName <em>Name</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the attribute '<em>Name</em>'.\n\t * @see models.MakeSymbol#getName()\n\t * @see #getMakeSymbol()\n\t * @generated\n\t */\n\tEAttribute getMakeSymbol_Name();\n\n\t/**\n\t * Returns the meta object for the containment reference list '{@link models.MakeSymbol#getTargets <em>Targets</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the containment reference list '<em>Targets</em>'.\n\t * @see models.MakeSymbol#getTargets()\n\t * @see #getMakeSymbol()\n\t * @generated\n\t */\n\tEReference getMakeSymbol_Targets();\n\n\t/**\n\t * Returns the meta object for class '{@link models.ReferencedValueFeature <em>Referenced Value Feature</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for class '<em>Referenced Value Feature</em>'.\n\t * @see models.ReferencedValueFeature\n\t * @generated\n\t */\n\tEClass getReferencedValueFeature();\n\n\t/**\n\t * Returns the meta object for the attribute '{@link models.ReferencedValueFeature#getName <em>Name</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the attribute '<em>Name</em>'.\n\t * @see models.ReferencedValueFeature#getName()\n\t * @see #getReferencedValueFeature()\n\t * @generated\n\t */\n\tEAttribute getReferencedValueFeature_Name();\n\n\t/**\n\t * Returns the meta object for class '{@link models.ConditionalBlock <em>Conditional Block</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for class '<em>Conditional Block</em>'.\n\t * @see models.ConditionalBlock\n\t * @generated\n\t */\n\tEClass getConditionalBlock();\n\n\t/**\n\t * Returns the meta object for the attribute '{@link models.ConditionalBlock#getStart <em>Start</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the attribute '<em>Start</em>'.\n\t * @see models.ConditionalBlock#getStart()\n\t * @see #getConditionalBlock()\n\t * @generated\n\t */\n\tEAttribute getConditionalBlock_Start();\n\n\t/**\n\t * Returns the meta object for the attribute '{@link models.ConditionalBlock#getEnd <em>End</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the attribute '<em>End</em>'.\n\t * @see models.ConditionalBlock#getEnd()\n\t * @see #getConditionalBlock()\n\t * @generated\n\t */\n\tEAttribute getConditionalBlock_End();\n\n\t/**\n\t * Returns the meta object for the attribute '{@link models.ConditionalBlock#getCondition <em>Condition</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the attribute '<em>Condition</em>'.\n\t * @see models.ConditionalBlock#getCondition()\n\t * @see #getConditionalBlock()\n\t * @generated\n\t */\n\tEAttribute getConditionalBlock_Condition();\n\n\t/**\n\t * Returns the meta object for the reference list '{@link models.ConditionalBlock#getValueFeatures <em>Value Features</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the reference list '<em>Value Features</em>'.\n\t * @see models.ConditionalBlock#getValueFeatures()\n\t * @see #getConditionalBlock()\n\t * @generated\n\t */\n\tEReference getConditionalBlock_ValueFeatures();\n\n\t/**\n\t * Returns the meta object for the attribute '{@link models.ConditionalBlock#isTouched <em>Touched</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the attribute '<em>Touched</em>'.\n\t * @see models.ConditionalBlock#isTouched()\n\t * @see #getConditionalBlock()\n\t * @generated\n\t */\n\tEAttribute getConditionalBlock_Touched();\n\n\t/**\n\t * Returns the meta object for the attribute '{@link models.ConditionalBlock#getExpression <em>Expression</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the attribute '<em>Expression</em>'.\n\t * @see models.ConditionalBlock#getExpression()\n\t * @see #getConditionalBlock()\n\t * @generated\n\t */\n\tEAttribute getConditionalBlock_Expression();\n\n\t/**\n\t * Returns the meta object for the containment reference list '{@link models.ConditionalBlock#getLines <em>Lines</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the containment reference list '<em>Lines</em>'.\n\t * @see models.ConditionalBlock#getLines()\n\t * @see #getConditionalBlock()\n\t * @generated\n\t */\n\tEReference getConditionalBlock_Lines();\n\n\t/**\n\t * Returns the meta object for the reference list '{@link models.ConditionalBlock#getEditedBy <em>Edited By</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the reference list '<em>Edited By</em>'.\n\t * @see models.ConditionalBlock#getEditedBy()\n\t * @see #getConditionalBlock()\n\t * @generated\n\t */\n\tEReference getConditionalBlock_EditedBy();\n\n\t/**\n\t * Returns the meta object for class '{@link models.FeatureConstant <em>Feature Constant</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for class '<em>Feature Constant</em>'.\n\t * @see models.FeatureConstant\n\t * @generated\n\t */\n\tEClass getFeatureConstant();\n\n\t/**\n\t * Returns the meta object for the attribute '{@link models.FeatureConstant#getName <em>Name</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the attribute '<em>Name</em>'.\n\t * @see models.FeatureConstant#getName()\n\t * @see #getFeatureConstant()\n\t * @generated\n\t */\n\tEAttribute getFeatureConstant_Name();\n\n\t/**\n\t * Returns the meta object for class '{@link models.ImplementationLine <em>Implementation Line</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for class '<em>Implementation Line</em>'.\n\t * @see models.ImplementationLine\n\t * @generated\n\t */\n\tEClass getImplementationLine();\n\n\t/**\n\t * Returns the meta object for the attribute '{@link models.ImplementationLine#getLine <em>Line</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the attribute '<em>Line</em>'.\n\t * @see models.ImplementationLine#getLine()\n\t * @see #getImplementationLine()\n\t * @generated\n\t */\n\tEAttribute getImplementationLine_Line();\n\n\t/**\n\t * Returns the meta object for class '{@link models.CodeEdit <em>Code Edit</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for class '<em>Code Edit</em>'.\n\t * @see models.CodeEdit\n\t * @generated\n\t */\n\tEClass getCodeEdit();\n\n\t/**\n\t * Returns the meta object for the attribute '{@link models.CodeEdit#getRem_idx <em>Rem idx</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the attribute '<em>Rem idx</em>'.\n\t * @see models.CodeEdit#getRem_idx()\n\t * @see #getCodeEdit()\n\t * @generated\n\t */\n\tEAttribute getCodeEdit_Rem_idx();\n\n\t/**\n\t * Returns the meta object for the attribute '{@link models.CodeEdit#getAdd_idx <em>Add idx</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the attribute '<em>Add idx</em>'.\n\t * @see models.CodeEdit#getAdd_idx()\n\t * @see #getCodeEdit()\n\t * @generated\n\t */\n\tEAttribute getCodeEdit_Add_idx();\n\n\t/**\n\t * Returns the meta object for the attribute '{@link models.CodeEdit#getRem_size <em>Rem size</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the attribute '<em>Rem size</em>'.\n\t * @see models.CodeEdit#getRem_size()\n\t * @see #getCodeEdit()\n\t * @generated\n\t */\n\tEAttribute getCodeEdit_Rem_size();\n\n\t/**\n\t * Returns the meta object for the attribute '{@link models.CodeEdit#getAdd_size <em>Add size</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the attribute '<em>Add size</em>'.\n\t * @see models.CodeEdit#getAdd_size()\n\t * @see #getCodeEdit()\n\t * @generated\n\t */\n\tEAttribute getCodeEdit_Add_size();\n\n\t/**\n\t * Returns the meta object for the attribute '{@link models.CodeEdit#getDiff <em>Diff</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for the attribute '<em>Diff</em>'.\n\t * @see models.CodeEdit#getDiff()\n\t * @see #getCodeEdit()\n\t * @generated\n\t */\n\tEAttribute getCodeEdit_Diff();\n\n\t/**\n\t * Returns the meta object for enum '{@link models.VariabilityTypes <em>Variability Types</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for enum '<em>Variability Types</em>'.\n\t * @see models.VariabilityTypes\n\t * @generated\n\t */\n\tEEnum getVariabilityTypes();\n\n\t/**\n\t * Returns the meta object for enum '{@link models.CompilationTargetType <em>Compilation Target Type</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for enum '<em>Compilation Target Type</em>'.\n\t * @see models.CompilationTargetType\n\t * @generated\n\t */\n\tEEnum getCompilationTargetType();\n\n\t/**\n\t * Returns the meta object for enum '{@link models.ChangeType <em>Change Type</em>}'.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the meta object for enum '<em>Change Type</em>'.\n\t * @see models.ChangeType\n\t * @generated\n\t */\n\tEEnum getChangeType();\n\n\t/**\n\t * Returns the factory that creates the instances of the model.\n\t * <!-- begin-user-doc -->\n\t * <!-- end-user-doc -->\n\t * @return the factory that creates the instances of the model.\n\t * @generated\n\t */\n\tModelsFactory getModelsFactory();\n\n\t/**\n\t * <!-- begin-user-doc -->\n\t * Defines literals for the meta objects that represent\n\t * <ul>\n\t * <li>each class,</li>\n\t * <li>each feature of each class,</li>\n\t * <li>each operation of each class,</li>\n\t * <li>each enum,</li>\n\t * <li>and each data type</li>\n\t * </ul>\n\t * <!-- end-user-doc -->\n\t * @generated\n\t */\n\tinterface Literals\n\t{\n\t\t/**\n\t\t * The meta object literal for the '{@link models.impl.VariabilityModelImpl <em>Variability Model</em>}' class.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @see models.impl.VariabilityModelImpl\n\t\t * @see models.impl.ModelsPackageImpl#getVariabilityModel()\n\t\t * @generated\n\t\t */\n\t\tEClass VARIABILITY_MODEL = eINSTANCE.getVariabilityModel();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Spl</b></em>' reference list feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEReference VARIABILITY_MODEL__SPL = eINSTANCE.getVariabilityModel_Spl();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Features</b></em>' reference list feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEReference VARIABILITY_MODEL__FEATURES = eINSTANCE.getVariabilityModel_Features();\n\n\t\t/**\n\t\t * The meta object literal for the '{@link models.impl.BuildModelImpl <em>Build Model</em>}' class.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @see models.impl.BuildModelImpl\n\t\t * @see models.impl.ModelsPackageImpl#getBuildModel()\n\t\t * @generated\n\t\t */\n\t\tEClass BUILD_MODEL = eINSTANCE.getBuildModel();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Spl</b></em>' reference feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEReference BUILD_MODEL__SPL = eINSTANCE.getBuildModel_Spl();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Features</b></em>' reference list feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEReference BUILD_MODEL__FEATURES = eINSTANCE.getBuildModel_Features();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Symbols</b></em>' reference list feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEReference BUILD_MODEL__SYMBOLS = eINSTANCE.getBuildModel_Symbols();\n\n\t\t/**\n\t\t * The meta object literal for the '{@link models.impl.ImplementationModelImpl <em>Implementation Model</em>}' class.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @see models.impl.ImplementationModelImpl\n\t\t * @see models.impl.ModelsPackageImpl#getImplementationModel()\n\t\t * @generated\n\t\t */\n\t\tEClass IMPLEMENTATION_MODEL = eINSTANCE.getImplementationModel();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Spl</b></em>' reference feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEReference IMPLEMENTATION_MODEL__SPL = eINSTANCE.getImplementationModel_Spl();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Value Features</b></em>' reference list feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEReference IMPLEMENTATION_MODEL__VALUE_FEATURES = eINSTANCE.getImplementationModel_ValueFeatures();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Constants</b></em>' reference list feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEReference IMPLEMENTATION_MODEL__CONSTANTS = eINSTANCE.getImplementationModel_Constants();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Blocks</b></em>' containment reference list feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEReference IMPLEMENTATION_MODEL__BLOCKS = eINSTANCE.getImplementationModel_Blocks();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>File name</b></em>' attribute feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEAttribute IMPLEMENTATION_MODEL__FILE_NAME = eINSTANCE.getImplementationModel_File_name();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Chane</b></em>' attribute feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEAttribute IMPLEMENTATION_MODEL__CHANE = eINSTANCE.getImplementationModel_Chane();\n\n\t\t/**\n\t\t * The meta object literal for the '{@link models.impl.SPLImpl <em>SPL</em>}' class.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @see models.impl.SPLImpl\n\t\t * @see models.impl.ModelsPackageImpl#getSPL()\n\t\t * @generated\n\t\t */\n\t\tEClass SPL = eINSTANCE.getSPL();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Revision</b></em>' attribute feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEAttribute SPL__REVISION = eINSTANCE.getSPL_Revision();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Variabilitymodel</b></em>' reference feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEReference SPL__VARIABILITYMODEL = eINSTANCE.getSPL_Variabilitymodel();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Buildmodel</b></em>' reference feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEReference SPL__BUILDMODEL = eINSTANCE.getSPL_Buildmodel();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Implementationmodel</b></em>' reference feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEReference SPL__IMPLEMENTATIONMODEL = eINSTANCE.getSPL_Implementationmodel();\n\n\t\t/**\n\t\t * The meta object literal for the '{@link models.impl.VariabilityModelEntityImpl <em>Variability Model Entity</em>}' class.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @see models.impl.VariabilityModelEntityImpl\n\t\t * @see models.impl.ModelsPackageImpl#getVariabilityModelEntity()\n\t\t * @generated\n\t\t */\n\t\tEClass VARIABILITY_MODEL_ENTITY = eINSTANCE.getVariabilityModelEntity();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Id</b></em>' attribute feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEAttribute VARIABILITY_MODEL_ENTITY__ID = eINSTANCE.getVariabilityModelEntity_Id();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Flags</b></em>' attribute feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEAttribute VARIABILITY_MODEL_ENTITY__FLAGS = eINSTANCE.getVariabilityModelEntity_Flags();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Type</b></em>' attribute feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEAttribute VARIABILITY_MODEL_ENTITY__TYPE = eINSTANCE.getVariabilityModelEntity_Type();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Prompt</b></em>' attribute feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEAttribute VARIABILITY_MODEL_ENTITY__PROMPT = eINSTANCE.getVariabilityModelEntity_Prompt();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Default Values</b></em>' reference list feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEReference VARIABILITY_MODEL_ENTITY__DEFAULT_VALUES = eINSTANCE.getVariabilityModelEntity_DefaultValues();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Selects</b></em>' reference list feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEReference VARIABILITY_MODEL_ENTITY__SELECTS = eINSTANCE.getVariabilityModelEntity_Selects();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Prompt Condition</b></em>' attribute feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEAttribute VARIABILITY_MODEL_ENTITY__PROMPT_CONDITION = eINSTANCE.getVariabilityModelEntity_PromptCondition();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Presence Condition</b></em>' attribute feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEAttribute VARIABILITY_MODEL_ENTITY__PRESENCE_CONDITION = eINSTANCE.getVariabilityModelEntity_PresenceCondition();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Depends</b></em>' attribute feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEAttribute VARIABILITY_MODEL_ENTITY__DEPENDS = eINSTANCE.getVariabilityModelEntity_Depends();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>External</b></em>' attribute feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEAttribute VARIABILITY_MODEL_ENTITY__EXTERNAL = eINSTANCE.getVariabilityModelEntity_External();\n\n\t\t/**\n\t\t * The meta object literal for the '{@link models.impl.FeatureImpl <em>Feature</em>}' class.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @see models.impl.FeatureImpl\n\t\t * @see models.impl.ModelsPackageImpl#getFeature()\n\t\t * @generated\n\t\t */\n\t\tEClass FEATURE = eINSTANCE.getFeature();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Name</b></em>' attribute feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEAttribute FEATURE__NAME = eINSTANCE.getFeature_Name();\n\n\t\t/**\n\t\t * The meta object literal for the '{@link models.impl.ChoiceImpl <em>Choice</em>}' class.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @see models.impl.ChoiceImpl\n\t\t * @see models.impl.ModelsPackageImpl#getChoice()\n\t\t * @generated\n\t\t */\n\t\tEClass CHOICE = eINSTANCE.getChoice();\n\n\t\t/**\n\t\t * The meta object literal for the '{@link models.impl.DefaultValueImpl <em>Default Value</em>}' class.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @see models.impl.DefaultValueImpl\n\t\t * @see models.impl.ModelsPackageImpl#getDefaultValue()\n\t\t * @generated\n\t\t */\n\t\tEClass DEFAULT_VALUE = eINSTANCE.getDefaultValue();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Value</b></em>' attribute feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEAttribute DEFAULT_VALUE__VALUE = eINSTANCE.getDefaultValue_Value();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Condition</b></em>' attribute feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEAttribute DEFAULT_VALUE__CONDITION = eINSTANCE.getDefaultValue_Condition();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Order</b></em>' attribute feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEAttribute DEFAULT_VALUE__ORDER = eINSTANCE.getDefaultValue_Order();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Id</b></em>' attribute feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEAttribute DEFAULT_VALUE__ID = eINSTANCE.getDefaultValue_Id();\n\n\t\t/**\n\t\t * The meta object literal for the '{@link models.impl.SelectImpl <em>Select</em>}' class.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @see models.impl.SelectImpl\n\t\t * @see models.impl.ModelsPackageImpl#getSelect()\n\t\t * @generated\n\t\t */\n\t\tEClass SELECT = eINSTANCE.getSelect();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Target</b></em>' attribute feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEAttribute SELECT__TARGET = eINSTANCE.getSelect_Target();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Condition</b></em>' attribute feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEAttribute SELECT__CONDITION = eINSTANCE.getSelect_Condition();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Id</b></em>' attribute feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEAttribute SELECT__ID = eINSTANCE.getSelect_Id();\n\n\t\t/**\n\t\t * The meta object literal for the '{@link models.impl.MappedFeatureImpl <em>Mapped Feature</em>}' class.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @see models.impl.MappedFeatureImpl\n\t\t * @see models.impl.ModelsPackageImpl#getMappedFeature()\n\t\t * @generated\n\t\t */\n\t\tEClass MAPPED_FEATURE = eINSTANCE.getMappedFeature();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Targets</b></em>' containment reference list feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEReference MAPPED_FEATURE__TARGETS = eINSTANCE.getMappedFeature_Targets();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Feature Name</b></em>' attribute feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEAttribute MAPPED_FEATURE__FEATURE_NAME = eINSTANCE.getMappedFeature_FeatureName();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Id</b></em>' attribute feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEAttribute MAPPED_FEATURE__ID = eINSTANCE.getMappedFeature_Id();\n\n\t\t/**\n\t\t * The meta object literal for the '{@link models.impl.CompilationTargetImpl <em>Compilation Target</em>}' class.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @see models.impl.CompilationTargetImpl\n\t\t * @see models.impl.ModelsPackageImpl#getCompilationTarget()\n\t\t * @generated\n\t\t */\n\t\tEClass COMPILATION_TARGET = eINSTANCE.getCompilationTarget();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Target Name</b></em>' attribute feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEAttribute COMPILATION_TARGET__TARGET_NAME = eINSTANCE.getCompilationTarget_TargetName();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Target Type</b></em>' attribute feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEAttribute COMPILATION_TARGET__TARGET_TYPE = eINSTANCE.getCompilationTarget_TargetType();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Id</b></em>' attribute feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEAttribute COMPILATION_TARGET__ID = eINSTANCE.getCompilationTarget_Id();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Mapped To Symbol</b></em>' attribute feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEAttribute COMPILATION_TARGET__MAPPED_TO_SYMBOL = eINSTANCE.getCompilationTarget_MappedToSymbol();\n\n\t\t/**\n\t\t * The meta object literal for the '{@link models.impl.MakeSymbolImpl <em>Make Symbol</em>}' class.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @see models.impl.MakeSymbolImpl\n\t\t * @see models.impl.ModelsPackageImpl#getMakeSymbol()\n\t\t * @generated\n\t\t */\n\t\tEClass MAKE_SYMBOL = eINSTANCE.getMakeSymbol();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Name</b></em>' attribute feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEAttribute MAKE_SYMBOL__NAME = eINSTANCE.getMakeSymbol_Name();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Targets</b></em>' containment reference list feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEReference MAKE_SYMBOL__TARGETS = eINSTANCE.getMakeSymbol_Targets();\n\n\t\t/**\n\t\t * The meta object literal for the '{@link models.impl.ReferencedValueFeatureImpl <em>Referenced Value Feature</em>}' class.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @see models.impl.ReferencedValueFeatureImpl\n\t\t * @see models.impl.ModelsPackageImpl#getReferencedValueFeature()\n\t\t * @generated\n\t\t */\n\t\tEClass REFERENCED_VALUE_FEATURE = eINSTANCE.getReferencedValueFeature();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Name</b></em>' attribute feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEAttribute REFERENCED_VALUE_FEATURE__NAME = eINSTANCE.getReferencedValueFeature_Name();\n\n\t\t/**\n\t\t * The meta object literal for the '{@link models.impl.ConditionalBlockImpl <em>Conditional Block</em>}' class.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @see models.impl.ConditionalBlockImpl\n\t\t * @see models.impl.ModelsPackageImpl#getConditionalBlock()\n\t\t * @generated\n\t\t */\n\t\tEClass CONDITIONAL_BLOCK = eINSTANCE.getConditionalBlock();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Start</b></em>' attribute feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEAttribute CONDITIONAL_BLOCK__START = eINSTANCE.getConditionalBlock_Start();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>End</b></em>' attribute feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEAttribute CONDITIONAL_BLOCK__END = eINSTANCE.getConditionalBlock_End();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Condition</b></em>' attribute feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEAttribute CONDITIONAL_BLOCK__CONDITION = eINSTANCE.getConditionalBlock_Condition();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Value Features</b></em>' reference list feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEReference CONDITIONAL_BLOCK__VALUE_FEATURES = eINSTANCE.getConditionalBlock_ValueFeatures();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Touched</b></em>' attribute feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEAttribute CONDITIONAL_BLOCK__TOUCHED = eINSTANCE.getConditionalBlock_Touched();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Expression</b></em>' attribute feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEAttribute CONDITIONAL_BLOCK__EXPRESSION = eINSTANCE.getConditionalBlock_Expression();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Lines</b></em>' containment reference list feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEReference CONDITIONAL_BLOCK__LINES = eINSTANCE.getConditionalBlock_Lines();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Edited By</b></em>' reference list feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEReference CONDITIONAL_BLOCK__EDITED_BY = eINSTANCE.getConditionalBlock_EditedBy();\n\n\t\t/**\n\t\t * The meta object literal for the '{@link models.impl.FeatureConstantImpl <em>Feature Constant</em>}' class.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @see models.impl.FeatureConstantImpl\n\t\t * @see models.impl.ModelsPackageImpl#getFeatureConstant()\n\t\t * @generated\n\t\t */\n\t\tEClass FEATURE_CONSTANT = eINSTANCE.getFeatureConstant();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Name</b></em>' attribute feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEAttribute FEATURE_CONSTANT__NAME = eINSTANCE.getFeatureConstant_Name();\n\n\t\t/**\n\t\t * The meta object literal for the '{@link models.impl.ImplementationLineImpl <em>Implementation Line</em>}' class.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @see models.impl.ImplementationLineImpl\n\t\t * @see models.impl.ModelsPackageImpl#getImplementationLine()\n\t\t * @generated\n\t\t */\n\t\tEClass IMPLEMENTATION_LINE = eINSTANCE.getImplementationLine();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Line</b></em>' attribute feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEAttribute IMPLEMENTATION_LINE__LINE = eINSTANCE.getImplementationLine_Line();\n\n\t\t/**\n\t\t * The meta object literal for the '{@link models.impl.CodeEditImpl <em>Code Edit</em>}' class.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @see models.impl.CodeEditImpl\n\t\t * @see models.impl.ModelsPackageImpl#getCodeEdit()\n\t\t * @generated\n\t\t */\n\t\tEClass CODE_EDIT = eINSTANCE.getCodeEdit();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Rem idx</b></em>' attribute feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEAttribute CODE_EDIT__REM_IDX = eINSTANCE.getCodeEdit_Rem_idx();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Add idx</b></em>' attribute feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEAttribute CODE_EDIT__ADD_IDX = eINSTANCE.getCodeEdit_Add_idx();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Rem size</b></em>' attribute feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEAttribute CODE_EDIT__REM_SIZE = eINSTANCE.getCodeEdit_Rem_size();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Add size</b></em>' attribute feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEAttribute CODE_EDIT__ADD_SIZE = eINSTANCE.getCodeEdit_Add_size();\n\n\t\t/**\n\t\t * The meta object literal for the '<em><b>Diff</b></em>' attribute feature.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @generated\n\t\t */\n\t\tEAttribute CODE_EDIT__DIFF = eINSTANCE.getCodeEdit_Diff();\n\n\t\t/**\n\t\t * The meta object literal for the '{@link models.VariabilityTypes <em>Variability Types</em>}' enum.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @see models.VariabilityTypes\n\t\t * @see models.impl.ModelsPackageImpl#getVariabilityTypes()\n\t\t * @generated\n\t\t */\n\t\tEEnum VARIABILITY_TYPES = eINSTANCE.getVariabilityTypes();\n\n\t\t/**\n\t\t * The meta object literal for the '{@link models.CompilationTargetType <em>Compilation Target Type</em>}' enum.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @see models.CompilationTargetType\n\t\t * @see models.impl.ModelsPackageImpl#getCompilationTargetType()\n\t\t * @generated\n\t\t */\n\t\tEEnum COMPILATION_TARGET_TYPE = eINSTANCE.getCompilationTargetType();\n\n\t\t/**\n\t\t * The meta object literal for the '{@link models.ChangeType <em>Change Type</em>}' enum.\n\t\t * <!-- begin-user-doc -->\n\t\t * <!-- end-user-doc -->\n\t\t * @see models.ChangeType\n\t\t * @see models.impl.ModelsPackageImpl#getChangeType()\n\t\t * @generated\n\t\t */\n\t\tEEnum CHANGE_TYPE = eINSTANCE.getChangeType();\n\n\t}\n\n}", "public static void main (String[] args){\n\t\t Model model1 = ModelFactory.createDefaultModel();\n\t\t Model model2 = ModelFactory.createDefaultModel();\n\t\t // use the FileManager to find the input file\n\t\t InputStream in1 = FileManager.get().open( \"D:\\\\eclipse\\\\carta-de-exigencia-cetesb.rdf\" );\n\t\t InputStream in2 = FileManager.get().open( \"D:\\\\eclipse\\\\liminar-contra-a-usp.rdf\" );\n\t\tif (in1 == null || in2 ==null) {\n\t\t throw new IllegalArgumentException(\n\t\t \"File: \" + \"D:\\\\eclipse\\\\carta-de-exigencia-cetesb.rdf\" + \" not found\");\n\t\t}\n\n\t\t// read the RDF/XML file\n\t\tmodel1.read(in1, null);\n\t\tmodel2.read(new InputStreamReader (in2), \"\");\n\t\tModel model = model1.union(model2);\n\n\t\tmodel.write(System.out);\n\t\t// write it to standard out\n\t\t//model1.write(System.out);\n\t\t//model1.read(new InputStreamReader(in1 ), \"\"); \n\t}", "public interface ModelConstants {\n \n // elements\n @Deprecated\n public final static String ACQUISITION_STRATEGY = \"acquisition-strategy\";\n \n public final static String DATASOURCE = \"datasource\";\n public final static String HISTORY_LEVEL = \"history-level\";\n public final static String JOB_ACQUISITION = \"job-acquisition\";\n public final static String JOB_ACQUISITIONS = \"job-acquisitions\";\n public final static String JOB_EXECUTOR = \"job-executor\";\n public final static String PROCESS_ENGINE = \"process-engine\";\n public final static String PROCESS_ENGINES = \"process-engines\";\n public final static String PROPERTY = \"property\";\n public final static String PROPERTIES = \"properties\";\n public final static String CONFIGURATION = \"configuration\";\n\n public final static String PLUGINS = \"plugins\";\n public final static String PLUGIN = \"plugin\";\n public final static String PLUGIN_CLASS = \"class\";\n \n // attributes\n public final static String DEFAULT = \"default\";\n public final static String NAME = \"name\";\n public final static String THREAD_POOL_NAME = \"thread-pool-name\";\n /** The name of our subsystem within the model. */\n public static final String SUBSYSTEM_NAME = \"camunda-bpm-platform\";\n \n}", "public String getModel() {\n\t\treturn \"0.11.2\";\n\t}", "Build_Model() {\n\n }", "public void createPackageContents() {\n\t\tif (isCreated) return;\n\t\tisCreated = true;\n\n\t\t// Create classes and their features\n\t\tcharacteristicComponentEClass = createEClass(CHARACTERISTIC_COMPONENT);\n\t\tcreateEAttribute(characteristicComponentEClass, CHARACTERISTIC_COMPONENT__NAME);\n\t\tcreateEAttribute(characteristicComponentEClass, CHARACTERISTIC_COMPONENT__MODULE);\n\t\tcreateEAttribute(characteristicComponentEClass, CHARACTERISTIC_COMPONENT__PREFIX);\n\t\tcreateEAttribute(characteristicComponentEClass, CHARACTERISTIC_COMPONENT__CONTAINER);\n\t\tcreateEReference(characteristicComponentEClass, CHARACTERISTIC_COMPONENT__ACTIONS);\n\t\tcreateEReference(characteristicComponentEClass, CHARACTERISTIC_COMPONENT__ATTRIBUTES);\n\t\tcreateEReference(characteristicComponentEClass, CHARACTERISTIC_COMPONENT__PROPERTIES);\n\t\tcreateEReference(characteristicComponentEClass, CHARACTERISTIC_COMPONENT__USED_BACI_TYPES);\n\t\tcreateEReference(characteristicComponentEClass, CHARACTERISTIC_COMPONENT__USED_DEV_IOS);\n\t\tcreateEReference(characteristicComponentEClass, CHARACTERISTIC_COMPONENT__COMPONENT_INSTANCES);\n\n\t\tactionEClass = createEClass(ACTION);\n\t\tcreateEAttribute(actionEClass, ACTION__NAME);\n\t\tcreateEAttribute(actionEClass, ACTION__TYPE);\n\t\tcreateEReference(actionEClass, ACTION__PARAMETERS);\n\n\t\tparameterEClass = createEClass(PARAMETER);\n\t\tcreateEAttribute(parameterEClass, PARAMETER__NAME);\n\t\tcreateEAttribute(parameterEClass, PARAMETER__TYPE);\n\n\t\tattributeEClass = createEClass(ATTRIBUTE);\n\t\tcreateEAttribute(attributeEClass, ATTRIBUTE__NAME);\n\t\tcreateEAttribute(attributeEClass, ATTRIBUTE__TYPE);\n\t\tcreateEAttribute(attributeEClass, ATTRIBUTE__REQUIRED);\n\t\tcreateEAttribute(attributeEClass, ATTRIBUTE__DEFAULT_VALUE);\n\n\t\tpropertyEClass = createEClass(PROPERTY);\n\t\tcreateEAttribute(propertyEClass, PROPERTY__NAME);\n\t\tcreateEReference(propertyEClass, PROPERTY__BACI_TYPE);\n\t\tcreateEReference(propertyEClass, PROPERTY__DEV_IO);\n\n\t\tusedDevIOsEClass = createEClass(USED_DEV_IOS);\n\t\tcreateEReference(usedDevIOsEClass, USED_DEV_IOS__DEV_IOS);\n\n\t\tdevIOEClass = createEClass(DEV_IO);\n\t\tcreateEAttribute(devIOEClass, DEV_IO__NAME);\n\t\tcreateEAttribute(devIOEClass, DEV_IO__REQUIRED_LIBRARIES);\n\t\tcreateEReference(devIOEClass, DEV_IO__DEV_IO_VARIABLES);\n\n\t\tdevIOVariableEClass = createEClass(DEV_IO_VARIABLE);\n\t\tcreateEAttribute(devIOVariableEClass, DEV_IO_VARIABLE__NAME);\n\t\tcreateEAttribute(devIOVariableEClass, DEV_IO_VARIABLE__TYPE);\n\t\tcreateEAttribute(devIOVariableEClass, DEV_IO_VARIABLE__IS_READ);\n\t\tcreateEAttribute(devIOVariableEClass, DEV_IO_VARIABLE__IS_WRITE);\n\t\tcreateEAttribute(devIOVariableEClass, DEV_IO_VARIABLE__IS_PROPERTY_SPECIFIC);\n\n\t\tusedBaciTypesEClass = createEClass(USED_BACI_TYPES);\n\t\tcreateEReference(usedBaciTypesEClass, USED_BACI_TYPES__BACI_TYPES);\n\n\t\tbaciTypeEClass = createEClass(BACI_TYPE);\n\t\tcreateEAttribute(baciTypeEClass, BACI_TYPE__NAME);\n\t\tcreateEAttribute(baciTypeEClass, BACI_TYPE__ACCESS_TYPE);\n\t\tcreateEAttribute(baciTypeEClass, BACI_TYPE__BASIC_TYPE);\n\t\tcreateEAttribute(baciTypeEClass, BACI_TYPE__SEQ_TYPE);\n\n\t\tcomponentInstancesEClass = createEClass(COMPONENT_INSTANCES);\n\t\tcreateEReference(componentInstancesEClass, COMPONENT_INSTANCES__INSTANCES);\n\t\tcreateEReference(componentInstancesEClass, COMPONENT_INSTANCES__CONTAINING_CARACTERISTIC_COMPONENT);\n\n\t\tinstanceEClass = createEClass(INSTANCE);\n\t\tcreateEAttribute(instanceEClass, INSTANCE__NAME);\n\t\tcreateEReference(instanceEClass, INSTANCE__CONTAINING_COMPONENT_INSTANCES);\n\t\tcreateEReference(instanceEClass, INSTANCE__ATTRIBUTE_VALUES_CONTAINER);\n\t\tcreateEReference(instanceEClass, INSTANCE__CHARACTERISTIC_VALUES_CONTAINER);\n\t\tcreateEAttribute(instanceEClass, INSTANCE__AUTO_START);\n\t\tcreateEAttribute(instanceEClass, INSTANCE__DEFAULT);\n\n\t\tattributeValuesEClass = createEClass(ATTRIBUTE_VALUES);\n\t\tcreateEReference(attributeValuesEClass, ATTRIBUTE_VALUES__INSTANCE_ATTRIBUTES);\n\t\tcreateEReference(attributeValuesEClass, ATTRIBUTE_VALUES__CONTAINING_INSTANCE);\n\n\t\tattributeValueEClass = createEClass(ATTRIBUTE_VALUE);\n\t\tcreateEAttribute(attributeValueEClass, ATTRIBUTE_VALUE__NAME);\n\t\tcreateEAttribute(attributeValueEClass, ATTRIBUTE_VALUE__VALUE);\n\n\t\tcharacteristicValuesEClass = createEClass(CHARACTERISTIC_VALUES);\n\t\tcreateEAttribute(characteristicValuesEClass, CHARACTERISTIC_VALUES__PROPERTY_NAME);\n\t\tcreateEReference(characteristicValuesEClass, CHARACTERISTIC_VALUES__INSTANCE_CHARACTERISTICS);\n\t\tcreateEReference(characteristicValuesEClass, CHARACTERISTIC_VALUES__CONTAINING_INSTANCE);\n\n\t\tcharacteristicValueEClass = createEClass(CHARACTERISTIC_VALUE);\n\t\tcreateEAttribute(characteristicValueEClass, CHARACTERISTIC_VALUE__NAME);\n\t\tcreateEAttribute(characteristicValueEClass, CHARACTERISTIC_VALUE__VALUE);\n\n\t\tpropertyDefinitionEClass = createEClass(PROPERTY_DEFINITION);\n\n\t\t// Create enums\n\t\taccessTypeEEnum = createEEnum(ACCESS_TYPE);\n\t\tbasicTypeEEnum = createEEnum(BASIC_TYPE);\n\t\tseqTypeEEnum = createEEnum(SEQ_TYPE);\n\t}", "NfrPackage getNfrPackage();", "public void createPackageContents() {\r\n\t\tif (isCreated)\r\n\t\t\treturn;\r\n\t\tisCreated = true;\r\n\r\n\t\t// Create classes and their features\r\n\t\tissueEClass = createEClass(ISSUE);\r\n\t\tcreateEReference(issueEClass, ISSUE__PROPOSALS);\r\n\t\tcreateEReference(issueEClass, ISSUE__SOLUTION);\r\n\t\tcreateEReference(issueEClass, ISSUE__CRITERIA);\r\n\t\tcreateEAttribute(issueEClass, ISSUE__ACTIVITY);\r\n\t\tcreateEReference(issueEClass, ISSUE__ASSESSMENTS);\r\n\r\n\t\tproposalEClass = createEClass(PROPOSAL);\r\n\t\tcreateEReference(proposalEClass, PROPOSAL__ASSESSMENTS);\r\n\t\tcreateEReference(proposalEClass, PROPOSAL__ISSUE);\r\n\r\n\t\tsolutionEClass = createEClass(SOLUTION);\r\n\t\tcreateEReference(solutionEClass, SOLUTION__UNDERLYING_PROPOSALS);\r\n\t\tcreateEReference(solutionEClass, SOLUTION__ISSUE);\r\n\r\n\t\tcriterionEClass = createEClass(CRITERION);\r\n\t\tcreateEReference(criterionEClass, CRITERION__ASSESSMENTS);\r\n\r\n\t\tassessmentEClass = createEClass(ASSESSMENT);\r\n\t\tcreateEReference(assessmentEClass, ASSESSMENT__PROPOSAL);\r\n\t\tcreateEReference(assessmentEClass, ASSESSMENT__CRITERION);\r\n\t\tcreateEAttribute(assessmentEClass, ASSESSMENT__VALUE);\r\n\r\n\t\tcommentEClass = createEClass(COMMENT);\r\n\t\tcreateEReference(commentEClass, COMMENT__SENDER);\r\n\t\tcreateEReference(commentEClass, COMMENT__RECIPIENTS);\r\n\t\tcreateEReference(commentEClass, COMMENT__COMMENTED_ELEMENT);\r\n\r\n\t\taudioCommentEClass = createEClass(AUDIO_COMMENT);\r\n\t\tcreateEReference(audioCommentEClass, AUDIO_COMMENT__AUDIO_FILE);\r\n\t}", "public static void main(String[] args) {\n\t\tBuilderHelp builders = new BuilderHelp();\n\t\tbuilders.getBaoMaModel().run();\n\t\tbuilders.getBenciModel().run();\n\t}", "public static void main(String[] args) {\r\n\t\tnew CreateDataModelForFile(PROJECT_NAME, RELATIVE_FILE_PATH).execute();\r\n\t}", "@Override\n\tprotected void generatePkgImports() {\n\t\toutputList.add(new OutputLine(indentLvl, \"import uvm_pkg::*;\"));\n\t\toutputList.add(new OutputLine(indentLvl, \"import ordt_uvm_reg_translate1_pkg::*;\"));\n\t\tif (UVMRdlTranslate1Classes.altModelPackage != null) outputList.add(new OutputLine(indentLvl, \"import \" + UVMRdlTranslate1Classes.altModelPackage + \";\")); // add alt model pkg\n\t\toutputList.add(new OutputLine(indentLvl, \"import jspec::*;\"));\n\t}", "public RepomodelSwitch() {\n\t\tif (modelPackage == null) {\n\t\t\tmodelPackage = RepomodelPackage.eINSTANCE;\n\t\t}\n\t}", "String getModelB();", "public void loadModel(){\n remoteModel = new FirebaseCustomRemoteModel.Builder(dis).build();\n FirebaseModelManager.getInstance().getLatestModelFile(remoteModel)\n .addOnCompleteListener(new OnCompleteListener<File>() {\n @Override\n public void onComplete(@NonNull Task<File> task) {\n File modelFile = task.getResult();\n if (modelFile != null) {\n interpreter = new Interpreter(modelFile);\n // Toast.makeText(MainActivity2.this, \"Hosted Model loaded.. Running interpreter..\", Toast.LENGTH_SHORT).show();\n runningInterpreter();\n }\n else{\n try {\n InputStream inputStream = getAssets().open(dis+\".tflite\");\n byte[] model = new byte[inputStream.available()];\n inputStream.read(model);\n ByteBuffer buffer = ByteBuffer.allocateDirect(model.length)\n .order(ByteOrder.nativeOrder());\n buffer.put(model);\n //Toast.makeText(MainActivity2.this, dis+\"Bundled Model loaded.. Running interpreter..\", Toast.LENGTH_SHORT).show();\n interpreter = new Interpreter(buffer);\n runningInterpreter();\n } catch (IOException e) {\n // File not found?\n Toast.makeText(MainActivity2.this, \"No hosted or bundled model\", Toast.LENGTH_SHORT).show();\n }\n }\n }\n });\n }", "public static void main(String[] args) {\n\n try ( LLModel gptjModel = new LLModel(Path.of(\"C:\\\\Users\\\\felix\\\\AppData\\\\Local\\\\nomic.ai\\\\GPT4All\\\\ggml-gpt4all-j-v1.3-groovy.bin\")) ){\n\n LLModel.GenerationConfig config = LLModel.config()\n .withNPredict(4096).build();\n\n // String result = gptjModel.generate(prompt, config, true);\n gptjModel.chatCompletion(\n List.of(Map.of(\"role\", \"system\", \"content\", \"You are a helpful assistant\"),\n Map.of(\"role\", \"user\", \"content\", \"Add 2+2\")), config, true, true);\n\n\n } catch (Exception e) {\n throw new RuntimeException(e);\n }\n }", "public abstract String getTargetPackage();", "public abstract String getTargetPackage();", "public String identity () throws CGException {\n return new String(\"ModelImport\");\n }", "public void createPackageContents() {\n\t\tif (isCreated) return;\n\t\tisCreated = true;\n\n\t\t// Create classes and their features\n\t\telementEClass = createEClass(ELEMENT);\n\t\tcreateEOperation(elementEClass, ELEMENT___GET_ONTOLOGY);\n\t\tcreateEOperation(elementEClass, ELEMENT___EXTRA_VALIDATE__DIAGNOSTICCHAIN_MAP);\n\n\t\tannotationEClass = createEClass(ANNOTATION);\n\t\tcreateEReference(annotationEClass, ANNOTATION__PROPERTY);\n\t\tcreateEReference(annotationEClass, ANNOTATION__LITERAL_VALUE);\n\t\tcreateEReference(annotationEClass, ANNOTATION__REFERENCE_VALUE);\n\t\tcreateEReference(annotationEClass, ANNOTATION__OWNING_ELEMENT);\n\t\tcreateEOperation(annotationEClass, ANNOTATION___GET_VALUE);\n\t\tcreateEOperation(annotationEClass, ANNOTATION___GET_ANNOTATED_ELEMENT);\n\n\t\tidentifiedElementEClass = createEClass(IDENTIFIED_ELEMENT);\n\t\tcreateEReference(identifiedElementEClass, IDENTIFIED_ELEMENT__OWNED_ANNOTATIONS);\n\t\tcreateEOperation(identifiedElementEClass, IDENTIFIED_ELEMENT___GET_IRI);\n\n\t\timportEClass = createEClass(IMPORT);\n\t\tcreateEAttribute(importEClass, IMPORT__KIND);\n\t\tcreateEAttribute(importEClass, IMPORT__NAMESPACE);\n\t\tcreateEAttribute(importEClass, IMPORT__PREFIX);\n\t\tcreateEReference(importEClass, IMPORT__OWNING_ONTOLOGY);\n\t\tcreateEOperation(importEClass, IMPORT___GET_IRI);\n\t\tcreateEOperation(importEClass, IMPORT___GET_SEPARATOR);\n\n\t\tinstanceEClass = createEClass(INSTANCE);\n\t\tcreateEReference(instanceEClass, INSTANCE__OWNED_PROPERTY_VALUES);\n\n\t\taxiomEClass = createEClass(AXIOM);\n\t\tcreateEOperation(axiomEClass, AXIOM___GET_CHARACTERIZED_TERM);\n\n\t\tassertionEClass = createEClass(ASSERTION);\n\t\tcreateEOperation(assertionEClass, ASSERTION___GET_SUBJECT);\n\t\tcreateEOperation(assertionEClass, ASSERTION___GET_OBJECT);\n\n\t\tpredicateEClass = createEClass(PREDICATE);\n\t\tcreateEReference(predicateEClass, PREDICATE__ANTECEDENT_RULE);\n\t\tcreateEReference(predicateEClass, PREDICATE__CONSEQUENT_RULE);\n\n\t\targumentEClass = createEClass(ARGUMENT);\n\t\tcreateEAttribute(argumentEClass, ARGUMENT__VARIABLE);\n\t\tcreateEReference(argumentEClass, ARGUMENT__LITERAL);\n\t\tcreateEReference(argumentEClass, ARGUMENT__INSTANCE);\n\n\t\tliteralEClass = createEClass(LITERAL);\n\t\tcreateEOperation(literalEClass, LITERAL___GET_VALUE);\n\t\tcreateEOperation(literalEClass, LITERAL___GET_STRING_VALUE);\n\t\tcreateEOperation(literalEClass, LITERAL___GET_LEXICAL_VALUE);\n\t\tcreateEOperation(literalEClass, LITERAL___GET_TYPE_IRI);\n\n\t\tontologyEClass = createEClass(ONTOLOGY);\n\t\tcreateEAttribute(ontologyEClass, ONTOLOGY__NAMESPACE);\n\t\tcreateEAttribute(ontologyEClass, ONTOLOGY__PREFIX);\n\t\tcreateEReference(ontologyEClass, ONTOLOGY__OWNED_IMPORTS);\n\t\tcreateEOperation(ontologyEClass, ONTOLOGY___GET_IRI);\n\t\tcreateEOperation(ontologyEClass, ONTOLOGY___GET_SEPARATOR);\n\n\t\tmemberEClass = createEClass(MEMBER);\n\t\tcreateEAttribute(memberEClass, MEMBER__NAME);\n\t\tcreateEOperation(memberEClass, MEMBER___GET_REF);\n\t\tcreateEOperation(memberEClass, MEMBER___IS_REF);\n\t\tcreateEOperation(memberEClass, MEMBER___RESOLVE);\n\t\tcreateEOperation(memberEClass, MEMBER___GET_IRI);\n\t\tcreateEOperation(memberEClass, MEMBER___GET_ABBREVIATED_IRI);\n\n\t\tvocabularyBoxEClass = createEClass(VOCABULARY_BOX);\n\n\t\tdescriptionBoxEClass = createEClass(DESCRIPTION_BOX);\n\n\t\tvocabularyEClass = createEClass(VOCABULARY);\n\t\tcreateEReference(vocabularyEClass, VOCABULARY__OWNED_STATEMENTS);\n\n\t\tvocabularyBundleEClass = createEClass(VOCABULARY_BUNDLE);\n\n\t\tdescriptionEClass = createEClass(DESCRIPTION);\n\t\tcreateEReference(descriptionEClass, DESCRIPTION__OWNED_STATEMENTS);\n\n\t\tdescriptionBundleEClass = createEClass(DESCRIPTION_BUNDLE);\n\n\t\tstatementEClass = createEClass(STATEMENT);\n\n\t\tvocabularyMemberEClass = createEClass(VOCABULARY_MEMBER);\n\n\t\tdescriptionMemberEClass = createEClass(DESCRIPTION_MEMBER);\n\n\t\tvocabularyStatementEClass = createEClass(VOCABULARY_STATEMENT);\n\t\tcreateEReference(vocabularyStatementEClass, VOCABULARY_STATEMENT__OWNING_VOCABULARY);\n\n\t\tdescriptionStatementEClass = createEClass(DESCRIPTION_STATEMENT);\n\t\tcreateEReference(descriptionStatementEClass, DESCRIPTION_STATEMENT__OWNING_DESCRIPTION);\n\n\t\ttermEClass = createEClass(TERM);\n\n\t\truleEClass = createEClass(RULE);\n\t\tcreateEReference(ruleEClass, RULE__REF);\n\t\tcreateEReference(ruleEClass, RULE__ANTECEDENT);\n\t\tcreateEReference(ruleEClass, RULE__CONSEQUENT);\n\n\t\tbuiltInEClass = createEClass(BUILT_IN);\n\t\tcreateEReference(builtInEClass, BUILT_IN__REF);\n\n\t\tspecializableTermEClass = createEClass(SPECIALIZABLE_TERM);\n\t\tcreateEReference(specializableTermEClass, SPECIALIZABLE_TERM__OWNED_SPECIALIZATIONS);\n\n\t\tpropertyEClass = createEClass(PROPERTY);\n\n\t\ttypeEClass = createEClass(TYPE);\n\n\t\trelationBaseEClass = createEClass(RELATION_BASE);\n\t\tcreateEReference(relationBaseEClass, RELATION_BASE__SOURCES);\n\t\tcreateEReference(relationBaseEClass, RELATION_BASE__TARGETS);\n\t\tcreateEReference(relationBaseEClass, RELATION_BASE__REVERSE_RELATION);\n\t\tcreateEAttribute(relationBaseEClass, RELATION_BASE__FUNCTIONAL);\n\t\tcreateEAttribute(relationBaseEClass, RELATION_BASE__INVERSE_FUNCTIONAL);\n\t\tcreateEAttribute(relationBaseEClass, RELATION_BASE__SYMMETRIC);\n\t\tcreateEAttribute(relationBaseEClass, RELATION_BASE__ASYMMETRIC);\n\t\tcreateEAttribute(relationBaseEClass, RELATION_BASE__REFLEXIVE);\n\t\tcreateEAttribute(relationBaseEClass, RELATION_BASE__IRREFLEXIVE);\n\t\tcreateEAttribute(relationBaseEClass, RELATION_BASE__TRANSITIVE);\n\n\t\tspecializablePropertyEClass = createEClass(SPECIALIZABLE_PROPERTY);\n\t\tcreateEReference(specializablePropertyEClass, SPECIALIZABLE_PROPERTY__OWNED_EQUIVALENCES);\n\n\t\tclassifierEClass = createEClass(CLASSIFIER);\n\t\tcreateEReference(classifierEClass, CLASSIFIER__OWNED_EQUIVALENCES);\n\t\tcreateEReference(classifierEClass, CLASSIFIER__OWNED_PROPERTY_RESTRICTIONS);\n\n\t\tscalarEClass = createEClass(SCALAR);\n\t\tcreateEReference(scalarEClass, SCALAR__REF);\n\t\tcreateEReference(scalarEClass, SCALAR__OWNED_ENUMERATION);\n\t\tcreateEReference(scalarEClass, SCALAR__OWNED_EQUIVALENCES);\n\n\t\tentityEClass = createEClass(ENTITY);\n\t\tcreateEReference(entityEClass, ENTITY__OWNED_KEYS);\n\n\t\tstructureEClass = createEClass(STRUCTURE);\n\t\tcreateEReference(structureEClass, STRUCTURE__REF);\n\n\t\taspectEClass = createEClass(ASPECT);\n\t\tcreateEReference(aspectEClass, ASPECT__REF);\n\n\t\tconceptEClass = createEClass(CONCEPT);\n\t\tcreateEReference(conceptEClass, CONCEPT__REF);\n\t\tcreateEReference(conceptEClass, CONCEPT__OWNED_ENUMERATION);\n\n\t\trelationEntityEClass = createEClass(RELATION_ENTITY);\n\t\tcreateEReference(relationEntityEClass, RELATION_ENTITY__REF);\n\t\tcreateEReference(relationEntityEClass, RELATION_ENTITY__FORWARD_RELATION);\n\n\t\tannotationPropertyEClass = createEClass(ANNOTATION_PROPERTY);\n\t\tcreateEReference(annotationPropertyEClass, ANNOTATION_PROPERTY__REF);\n\n\t\tsemanticPropertyEClass = createEClass(SEMANTIC_PROPERTY);\n\t\tcreateEOperation(semanticPropertyEClass, SEMANTIC_PROPERTY___IS_FUNCTIONAL);\n\t\tcreateEOperation(semanticPropertyEClass, SEMANTIC_PROPERTY___GET_DOMAIN_LIST);\n\t\tcreateEOperation(semanticPropertyEClass, SEMANTIC_PROPERTY___GET_RANGE_LIST);\n\n\t\tscalarPropertyEClass = createEClass(SCALAR_PROPERTY);\n\t\tcreateEReference(scalarPropertyEClass, SCALAR_PROPERTY__REF);\n\t\tcreateEAttribute(scalarPropertyEClass, SCALAR_PROPERTY__FUNCTIONAL);\n\t\tcreateEReference(scalarPropertyEClass, SCALAR_PROPERTY__DOMAINS);\n\t\tcreateEReference(scalarPropertyEClass, SCALAR_PROPERTY__RANGES);\n\t\tcreateEOperation(scalarPropertyEClass, SCALAR_PROPERTY___GET_DOMAIN_LIST);\n\t\tcreateEOperation(scalarPropertyEClass, SCALAR_PROPERTY___GET_RANGE_LIST);\n\n\t\tstructuredPropertyEClass = createEClass(STRUCTURED_PROPERTY);\n\t\tcreateEReference(structuredPropertyEClass, STRUCTURED_PROPERTY__REF);\n\t\tcreateEAttribute(structuredPropertyEClass, STRUCTURED_PROPERTY__FUNCTIONAL);\n\t\tcreateEReference(structuredPropertyEClass, STRUCTURED_PROPERTY__DOMAINS);\n\t\tcreateEReference(structuredPropertyEClass, STRUCTURED_PROPERTY__RANGES);\n\t\tcreateEOperation(structuredPropertyEClass, STRUCTURED_PROPERTY___GET_DOMAIN_LIST);\n\t\tcreateEOperation(structuredPropertyEClass, STRUCTURED_PROPERTY___GET_RANGE_LIST);\n\n\t\trelationEClass = createEClass(RELATION);\n\t\tcreateEOperation(relationEClass, RELATION___IS_INVERSE_FUNCTIONAL);\n\t\tcreateEOperation(relationEClass, RELATION___IS_SYMMETRIC);\n\t\tcreateEOperation(relationEClass, RELATION___IS_ASYMMETRIC);\n\t\tcreateEOperation(relationEClass, RELATION___IS_REFLEXIVE);\n\t\tcreateEOperation(relationEClass, RELATION___IS_IRREFLEXIVE);\n\t\tcreateEOperation(relationEClass, RELATION___IS_TRANSITIVE);\n\t\tcreateEOperation(relationEClass, RELATION___GET_DOMAINS);\n\t\tcreateEOperation(relationEClass, RELATION___GET_RANGES);\n\t\tcreateEOperation(relationEClass, RELATION___GET_INVERSE);\n\t\tcreateEOperation(relationEClass, RELATION___GET_DOMAIN_LIST);\n\t\tcreateEOperation(relationEClass, RELATION___GET_RANGE_LIST);\n\n\t\tforwardRelationEClass = createEClass(FORWARD_RELATION);\n\t\tcreateEReference(forwardRelationEClass, FORWARD_RELATION__RELATION_ENTITY);\n\t\tcreateEOperation(forwardRelationEClass, FORWARD_RELATION___GET_REF);\n\t\tcreateEOperation(forwardRelationEClass, FORWARD_RELATION___IS_FUNCTIONAL);\n\t\tcreateEOperation(forwardRelationEClass, FORWARD_RELATION___IS_INVERSE_FUNCTIONAL);\n\t\tcreateEOperation(forwardRelationEClass, FORWARD_RELATION___IS_SYMMETRIC);\n\t\tcreateEOperation(forwardRelationEClass, FORWARD_RELATION___IS_ASYMMETRIC);\n\t\tcreateEOperation(forwardRelationEClass, FORWARD_RELATION___IS_REFLEXIVE);\n\t\tcreateEOperation(forwardRelationEClass, FORWARD_RELATION___IS_IRREFLEXIVE);\n\t\tcreateEOperation(forwardRelationEClass, FORWARD_RELATION___IS_TRANSITIVE);\n\t\tcreateEOperation(forwardRelationEClass, FORWARD_RELATION___GET_DOMAINS);\n\t\tcreateEOperation(forwardRelationEClass, FORWARD_RELATION___GET_RANGES);\n\t\tcreateEOperation(forwardRelationEClass, FORWARD_RELATION___GET_INVERSE);\n\n\t\treverseRelationEClass = createEClass(REVERSE_RELATION);\n\t\tcreateEReference(reverseRelationEClass, REVERSE_RELATION__RELATION_BASE);\n\t\tcreateEOperation(reverseRelationEClass, REVERSE_RELATION___GET_REF);\n\t\tcreateEOperation(reverseRelationEClass, REVERSE_RELATION___IS_FUNCTIONAL);\n\t\tcreateEOperation(reverseRelationEClass, REVERSE_RELATION___IS_INVERSE_FUNCTIONAL);\n\t\tcreateEOperation(reverseRelationEClass, REVERSE_RELATION___IS_SYMMETRIC);\n\t\tcreateEOperation(reverseRelationEClass, REVERSE_RELATION___IS_ASYMMETRIC);\n\t\tcreateEOperation(reverseRelationEClass, REVERSE_RELATION___IS_REFLEXIVE);\n\t\tcreateEOperation(reverseRelationEClass, REVERSE_RELATION___IS_IRREFLEXIVE);\n\t\tcreateEOperation(reverseRelationEClass, REVERSE_RELATION___IS_TRANSITIVE);\n\t\tcreateEOperation(reverseRelationEClass, REVERSE_RELATION___GET_DOMAINS);\n\t\tcreateEOperation(reverseRelationEClass, REVERSE_RELATION___GET_RANGES);\n\t\tcreateEOperation(reverseRelationEClass, REVERSE_RELATION___GET_INVERSE);\n\n\t\tunreifiedRelationEClass = createEClass(UNREIFIED_RELATION);\n\t\tcreateEReference(unreifiedRelationEClass, UNREIFIED_RELATION__REF);\n\t\tcreateEOperation(unreifiedRelationEClass, UNREIFIED_RELATION___GET_DOMAINS);\n\t\tcreateEOperation(unreifiedRelationEClass, UNREIFIED_RELATION___GET_RANGES);\n\t\tcreateEOperation(unreifiedRelationEClass, UNREIFIED_RELATION___GET_INVERSE);\n\n\t\tnamedInstanceEClass = createEClass(NAMED_INSTANCE);\n\t\tcreateEReference(namedInstanceEClass, NAMED_INSTANCE__OWNED_TYPES);\n\n\t\tconceptInstanceEClass = createEClass(CONCEPT_INSTANCE);\n\t\tcreateEReference(conceptInstanceEClass, CONCEPT_INSTANCE__REF);\n\n\t\trelationInstanceEClass = createEClass(RELATION_INSTANCE);\n\t\tcreateEReference(relationInstanceEClass, RELATION_INSTANCE__REF);\n\t\tcreateEReference(relationInstanceEClass, RELATION_INSTANCE__SOURCES);\n\t\tcreateEReference(relationInstanceEClass, RELATION_INSTANCE__TARGETS);\n\n\t\tstructureInstanceEClass = createEClass(STRUCTURE_INSTANCE);\n\t\tcreateEReference(structureInstanceEClass, STRUCTURE_INSTANCE__TYPE);\n\t\tcreateEReference(structureInstanceEClass, STRUCTURE_INSTANCE__OWNING_AXIOM);\n\t\tcreateEReference(structureInstanceEClass, STRUCTURE_INSTANCE__OWNING_ASSERTION);\n\n\t\tkeyAxiomEClass = createEClass(KEY_AXIOM);\n\t\tcreateEReference(keyAxiomEClass, KEY_AXIOM__PROPERTIES);\n\t\tcreateEReference(keyAxiomEClass, KEY_AXIOM__OWNING_ENTITY);\n\t\tcreateEOperation(keyAxiomEClass, KEY_AXIOM___GET_KEYED_ENTITY);\n\t\tcreateEOperation(keyAxiomEClass, KEY_AXIOM___GET_CHARACTERIZED_TERM);\n\n\t\tspecializationAxiomEClass = createEClass(SPECIALIZATION_AXIOM);\n\t\tcreateEReference(specializationAxiomEClass, SPECIALIZATION_AXIOM__SUPER_TERM);\n\t\tcreateEReference(specializationAxiomEClass, SPECIALIZATION_AXIOM__OWNING_TERM);\n\t\tcreateEOperation(specializationAxiomEClass, SPECIALIZATION_AXIOM___GET_SUB_TERM);\n\t\tcreateEOperation(specializationAxiomEClass, SPECIALIZATION_AXIOM___GET_CHARACTERIZED_TERM);\n\n\t\tinstanceEnumerationAxiomEClass = createEClass(INSTANCE_ENUMERATION_AXIOM);\n\t\tcreateEReference(instanceEnumerationAxiomEClass, INSTANCE_ENUMERATION_AXIOM__INSTANCES);\n\t\tcreateEReference(instanceEnumerationAxiomEClass, INSTANCE_ENUMERATION_AXIOM__OWNING_CONCEPT);\n\t\tcreateEOperation(instanceEnumerationAxiomEClass, INSTANCE_ENUMERATION_AXIOM___GET_ENUMERATED_CONCEPT);\n\t\tcreateEOperation(instanceEnumerationAxiomEClass, INSTANCE_ENUMERATION_AXIOM___GET_CHARACTERIZED_TERM);\n\n\t\tpropertyRestrictionAxiomEClass = createEClass(PROPERTY_RESTRICTION_AXIOM);\n\t\tcreateEReference(propertyRestrictionAxiomEClass, PROPERTY_RESTRICTION_AXIOM__PROPERTY);\n\t\tcreateEReference(propertyRestrictionAxiomEClass, PROPERTY_RESTRICTION_AXIOM__OWNING_CLASSIFIER);\n\t\tcreateEReference(propertyRestrictionAxiomEClass, PROPERTY_RESTRICTION_AXIOM__OWNING_AXIOM);\n\t\tcreateEOperation(propertyRestrictionAxiomEClass, PROPERTY_RESTRICTION_AXIOM___GET_RESTRICTING_DOMAIN);\n\t\tcreateEOperation(propertyRestrictionAxiomEClass, PROPERTY_RESTRICTION_AXIOM___GET_CHARACTERIZED_TERM);\n\n\t\tliteralEnumerationAxiomEClass = createEClass(LITERAL_ENUMERATION_AXIOM);\n\t\tcreateEReference(literalEnumerationAxiomEClass, LITERAL_ENUMERATION_AXIOM__LITERALS);\n\t\tcreateEReference(literalEnumerationAxiomEClass, LITERAL_ENUMERATION_AXIOM__OWNING_SCALAR);\n\t\tcreateEOperation(literalEnumerationAxiomEClass, LITERAL_ENUMERATION_AXIOM___GET_ENUMERATED_SCALAR);\n\t\tcreateEOperation(literalEnumerationAxiomEClass, LITERAL_ENUMERATION_AXIOM___GET_CHARACTERIZED_TERM);\n\n\t\tclassifierEquivalenceAxiomEClass = createEClass(CLASSIFIER_EQUIVALENCE_AXIOM);\n\t\tcreateEReference(classifierEquivalenceAxiomEClass, CLASSIFIER_EQUIVALENCE_AXIOM__SUPER_CLASSIFIERS);\n\t\tcreateEReference(classifierEquivalenceAxiomEClass, CLASSIFIER_EQUIVALENCE_AXIOM__OWNED_PROPERTY_RESTRICTIONS);\n\t\tcreateEReference(classifierEquivalenceAxiomEClass, CLASSIFIER_EQUIVALENCE_AXIOM__OWNING_CLASSIFIER);\n\t\tcreateEOperation(classifierEquivalenceAxiomEClass, CLASSIFIER_EQUIVALENCE_AXIOM___GET_SUB_CLASSIFIER);\n\t\tcreateEOperation(classifierEquivalenceAxiomEClass, CLASSIFIER_EQUIVALENCE_AXIOM___GET_CHARACTERIZED_TERM);\n\n\t\tscalarEquivalenceAxiomEClass = createEClass(SCALAR_EQUIVALENCE_AXIOM);\n\t\tcreateEReference(scalarEquivalenceAxiomEClass, SCALAR_EQUIVALENCE_AXIOM__SUPER_SCALAR);\n\t\tcreateEReference(scalarEquivalenceAxiomEClass, SCALAR_EQUIVALENCE_AXIOM__OWNING_SCALAR);\n\t\tcreateEAttribute(scalarEquivalenceAxiomEClass, SCALAR_EQUIVALENCE_AXIOM__LENGTH);\n\t\tcreateEAttribute(scalarEquivalenceAxiomEClass, SCALAR_EQUIVALENCE_AXIOM__MIN_LENGTH);\n\t\tcreateEAttribute(scalarEquivalenceAxiomEClass, SCALAR_EQUIVALENCE_AXIOM__MAX_LENGTH);\n\t\tcreateEAttribute(scalarEquivalenceAxiomEClass, SCALAR_EQUIVALENCE_AXIOM__PATTERN);\n\t\tcreateEAttribute(scalarEquivalenceAxiomEClass, SCALAR_EQUIVALENCE_AXIOM__LANGUAGE);\n\t\tcreateEReference(scalarEquivalenceAxiomEClass, SCALAR_EQUIVALENCE_AXIOM__MIN_INCLUSIVE);\n\t\tcreateEReference(scalarEquivalenceAxiomEClass, SCALAR_EQUIVALENCE_AXIOM__MIN_EXCLUSIVE);\n\t\tcreateEReference(scalarEquivalenceAxiomEClass, SCALAR_EQUIVALENCE_AXIOM__MAX_INCLUSIVE);\n\t\tcreateEReference(scalarEquivalenceAxiomEClass, SCALAR_EQUIVALENCE_AXIOM__MAX_EXCLUSIVE);\n\t\tcreateEOperation(scalarEquivalenceAxiomEClass, SCALAR_EQUIVALENCE_AXIOM___GET_SUB_SCALAR);\n\t\tcreateEOperation(scalarEquivalenceAxiomEClass, SCALAR_EQUIVALENCE_AXIOM___GET_CHARACTERIZED_TERM);\n\n\t\tpropertyEquivalenceAxiomEClass = createEClass(PROPERTY_EQUIVALENCE_AXIOM);\n\t\tcreateEReference(propertyEquivalenceAxiomEClass, PROPERTY_EQUIVALENCE_AXIOM__SUPER_PROPERTY);\n\t\tcreateEReference(propertyEquivalenceAxiomEClass, PROPERTY_EQUIVALENCE_AXIOM__OWNING_PROPERTY);\n\t\tcreateEOperation(propertyEquivalenceAxiomEClass, PROPERTY_EQUIVALENCE_AXIOM___GET_SUB_PROPERTY);\n\t\tcreateEOperation(propertyEquivalenceAxiomEClass, PROPERTY_EQUIVALENCE_AXIOM___GET_CHARACTERIZED_TERM);\n\n\t\tpropertyRangeRestrictionAxiomEClass = createEClass(PROPERTY_RANGE_RESTRICTION_AXIOM);\n\t\tcreateEAttribute(propertyRangeRestrictionAxiomEClass, PROPERTY_RANGE_RESTRICTION_AXIOM__KIND);\n\t\tcreateEReference(propertyRangeRestrictionAxiomEClass, PROPERTY_RANGE_RESTRICTION_AXIOM__RANGE);\n\n\t\tpropertyCardinalityRestrictionAxiomEClass = createEClass(PROPERTY_CARDINALITY_RESTRICTION_AXIOM);\n\t\tcreateEAttribute(propertyCardinalityRestrictionAxiomEClass, PROPERTY_CARDINALITY_RESTRICTION_AXIOM__KIND);\n\t\tcreateEAttribute(propertyCardinalityRestrictionAxiomEClass, PROPERTY_CARDINALITY_RESTRICTION_AXIOM__CARDINALITY);\n\t\tcreateEReference(propertyCardinalityRestrictionAxiomEClass, PROPERTY_CARDINALITY_RESTRICTION_AXIOM__RANGE);\n\n\t\tpropertyValueRestrictionAxiomEClass = createEClass(PROPERTY_VALUE_RESTRICTION_AXIOM);\n\t\tcreateEReference(propertyValueRestrictionAxiomEClass, PROPERTY_VALUE_RESTRICTION_AXIOM__LITERAL_VALUE);\n\t\tcreateEReference(propertyValueRestrictionAxiomEClass, PROPERTY_VALUE_RESTRICTION_AXIOM__STRUCTURE_INSTANCE_VALUE);\n\t\tcreateEReference(propertyValueRestrictionAxiomEClass, PROPERTY_VALUE_RESTRICTION_AXIOM__NAMED_INSTANCE_VALUE);\n\t\tcreateEOperation(propertyValueRestrictionAxiomEClass, PROPERTY_VALUE_RESTRICTION_AXIOM___GET_VALUE);\n\n\t\tpropertySelfRestrictionAxiomEClass = createEClass(PROPERTY_SELF_RESTRICTION_AXIOM);\n\n\t\ttypeAssertionEClass = createEClass(TYPE_ASSERTION);\n\t\tcreateEReference(typeAssertionEClass, TYPE_ASSERTION__TYPE);\n\t\tcreateEReference(typeAssertionEClass, TYPE_ASSERTION__OWNING_INSTANCE);\n\t\tcreateEOperation(typeAssertionEClass, TYPE_ASSERTION___GET_SUBJECT);\n\t\tcreateEOperation(typeAssertionEClass, TYPE_ASSERTION___GET_OBJECT);\n\n\t\tpropertyValueAssertionEClass = createEClass(PROPERTY_VALUE_ASSERTION);\n\t\tcreateEReference(propertyValueAssertionEClass, PROPERTY_VALUE_ASSERTION__PROPERTY);\n\t\tcreateEReference(propertyValueAssertionEClass, PROPERTY_VALUE_ASSERTION__LITERAL_VALUE);\n\t\tcreateEReference(propertyValueAssertionEClass, PROPERTY_VALUE_ASSERTION__STRUCTURE_INSTANCE_VALUE);\n\t\tcreateEReference(propertyValueAssertionEClass, PROPERTY_VALUE_ASSERTION__NAMED_INSTANCE_VALUE);\n\t\tcreateEReference(propertyValueAssertionEClass, PROPERTY_VALUE_ASSERTION__OWNING_INSTANCE);\n\t\tcreateEOperation(propertyValueAssertionEClass, PROPERTY_VALUE_ASSERTION___GET_VALUE);\n\t\tcreateEOperation(propertyValueAssertionEClass, PROPERTY_VALUE_ASSERTION___GET_SUBJECT);\n\t\tcreateEOperation(propertyValueAssertionEClass, PROPERTY_VALUE_ASSERTION___GET_OBJECT);\n\n\t\tunaryPredicateEClass = createEClass(UNARY_PREDICATE);\n\t\tcreateEReference(unaryPredicateEClass, UNARY_PREDICATE__ARGUMENT);\n\n\t\tbinaryPredicateEClass = createEClass(BINARY_PREDICATE);\n\t\tcreateEReference(binaryPredicateEClass, BINARY_PREDICATE__ARGUMENT1);\n\t\tcreateEReference(binaryPredicateEClass, BINARY_PREDICATE__ARGUMENT2);\n\n\t\tbuiltInPredicateEClass = createEClass(BUILT_IN_PREDICATE);\n\t\tcreateEReference(builtInPredicateEClass, BUILT_IN_PREDICATE__BUILT_IN);\n\t\tcreateEReference(builtInPredicateEClass, BUILT_IN_PREDICATE__ARGUMENTS);\n\n\t\ttypePredicateEClass = createEClass(TYPE_PREDICATE);\n\t\tcreateEReference(typePredicateEClass, TYPE_PREDICATE__TYPE);\n\n\t\trelationEntityPredicateEClass = createEClass(RELATION_ENTITY_PREDICATE);\n\t\tcreateEReference(relationEntityPredicateEClass, RELATION_ENTITY_PREDICATE__TYPE);\n\n\t\tpropertyPredicateEClass = createEClass(PROPERTY_PREDICATE);\n\t\tcreateEReference(propertyPredicateEClass, PROPERTY_PREDICATE__PROPERTY);\n\n\t\tsameAsPredicateEClass = createEClass(SAME_AS_PREDICATE);\n\n\t\tdifferentFromPredicateEClass = createEClass(DIFFERENT_FROM_PREDICATE);\n\n\t\tquotedLiteralEClass = createEClass(QUOTED_LITERAL);\n\t\tcreateEAttribute(quotedLiteralEClass, QUOTED_LITERAL__VALUE);\n\t\tcreateEAttribute(quotedLiteralEClass, QUOTED_LITERAL__LANG_TAG);\n\t\tcreateEReference(quotedLiteralEClass, QUOTED_LITERAL__TYPE);\n\t\tcreateEOperation(quotedLiteralEClass, QUOTED_LITERAL___GET_LEXICAL_VALUE);\n\t\tcreateEOperation(quotedLiteralEClass, QUOTED_LITERAL___GET_TYPE_IRI);\n\n\t\tintegerLiteralEClass = createEClass(INTEGER_LITERAL);\n\t\tcreateEAttribute(integerLiteralEClass, INTEGER_LITERAL__VALUE);\n\t\tcreateEOperation(integerLiteralEClass, INTEGER_LITERAL___GET_TYPE_IRI);\n\n\t\tdecimalLiteralEClass = createEClass(DECIMAL_LITERAL);\n\t\tcreateEAttribute(decimalLiteralEClass, DECIMAL_LITERAL__VALUE);\n\t\tcreateEOperation(decimalLiteralEClass, DECIMAL_LITERAL___GET_TYPE_IRI);\n\n\t\tdoubleLiteralEClass = createEClass(DOUBLE_LITERAL);\n\t\tcreateEAttribute(doubleLiteralEClass, DOUBLE_LITERAL__VALUE);\n\t\tcreateEOperation(doubleLiteralEClass, DOUBLE_LITERAL___GET_TYPE_IRI);\n\n\t\tbooleanLiteralEClass = createEClass(BOOLEAN_LITERAL);\n\t\tcreateEAttribute(booleanLiteralEClass, BOOLEAN_LITERAL__VALUE);\n\t\tcreateEOperation(booleanLiteralEClass, BOOLEAN_LITERAL___IS_VALUE);\n\t\tcreateEOperation(booleanLiteralEClass, BOOLEAN_LITERAL___GET_TYPE_IRI);\n\n\t\t// Create enums\n\t\tseparatorKindEEnum = createEEnum(SEPARATOR_KIND);\n\t\trangeRestrictionKindEEnum = createEEnum(RANGE_RESTRICTION_KIND);\n\t\tcardinalityRestrictionKindEEnum = createEEnum(CARDINALITY_RESTRICTION_KIND);\n\t\timportKindEEnum = createEEnum(IMPORT_KIND);\n\n\t\t// Create data types\n\t\tunsignedIntEDataType = createEDataType(UNSIGNED_INT);\n\t\tunsignedIntegerEDataType = createEDataType(UNSIGNED_INTEGER);\n\t\tdecimalEDataType = createEDataType(DECIMAL);\n\t\tidEDataType = createEDataType(ID);\n\t\tnamespaceEDataType = createEDataType(NAMESPACE);\n\t}", "public static String getDeviceModel() {\n String deviceName = SystemProperties.get(\"prize.system.boot.rsc\");\n // prize modify for bug66476 by houjian end\n deviceName = !TextUtils.isEmpty(deviceName) ? deviceName : Build.MODEL + DeviceInfoUtils.getMsvSuffix();\n //prize modified by xiekui, fix bug 74122, 20190408-start\n return UtilsExt.useDeviceInfoSettingsExt() == null ? deviceName : UtilsExt.useDeviceInfoSettingsExt().customeModelInfo(deviceName);\n //prize modified by xiekui, fix bug 74122, 20190408-end\n }", "String getModelA();", "public void test0104() throws JavaModelException {\n\tIPath projectPath = env.addProject(\"Project\");\n\tenv.removePackageFragmentRoot(projectPath, \"\");\n\tIPath root = env.addPackageFragmentRoot(projectPath, \"src\");\n\tIPath classTest1 = env.addClass(root, \"p1\", \"Test1\",\n\t\t\"package p1;\\n\" +\n\t\t\"public class Test1 {}\"\n\t);\n\tfullBuild();\n\tProblem[] prob1 = env.getProblemsFor(classTest1);\n\texpectingSpecificProblemFor(classTest1, \n\t\tnew Problem(\"p1\", \"The type java.lang.Object cannot be resolved. It is indirectly referenced from required .class files\", classTest1, 0, 1, 10));\n\tassertEquals(JavaBuilder.GENERATED_BY, prob1[0].getGeneratedBy());\n}", "public void createPackageContents() {\n\t\tif (isCreated) return;\n\t\tisCreated = true;\n\n\t\t// Create classes and their features\n\t\topenStackRequestEClass = createEClass(OPEN_STACK_REQUEST);\n\t\tcreateEAttribute(openStackRequestEClass, OPEN_STACK_REQUEST__PROJECT_NAME);\n\n\t\topenstackRequestDeleteEClass = createEClass(OPENSTACK_REQUEST_DELETE);\n\t\tcreateEAttribute(openstackRequestDeleteEClass, OPENSTACK_REQUEST_DELETE__OBJECT_TYPE);\n\t\tcreateEAttribute(openstackRequestDeleteEClass, OPENSTACK_REQUEST_DELETE__OBJECT_NAME);\n\n\t\topenstackRequestPollEClass = createEClass(OPENSTACK_REQUEST_POLL);\n\n\t\tvirtualMachineTypeEClass = createEClass(VIRTUAL_MACHINE_TYPE);\n\t\tcreateEAttribute(virtualMachineTypeEClass, VIRTUAL_MACHINE_TYPE__DESCRIPTION);\n\t\tcreateEAttribute(virtualMachineTypeEClass, VIRTUAL_MACHINE_TYPE__NUMBER_OF_CORES);\n\t\tcreateEAttribute(virtualMachineTypeEClass, VIRTUAL_MACHINE_TYPE__MEMORY_SIZE_MB);\n\t\tcreateEAttribute(virtualMachineTypeEClass, VIRTUAL_MACHINE_TYPE__ROOT_DISK_SIZE_GB);\n\t\tcreateEAttribute(virtualMachineTypeEClass, VIRTUAL_MACHINE_TYPE__DISK_SIZE_GB);\n\t\tcreateEAttribute(virtualMachineTypeEClass, VIRTUAL_MACHINE_TYPE__VOLUME_SIZE_GB);\n\t\tcreateEAttribute(virtualMachineTypeEClass, VIRTUAL_MACHINE_TYPE__IMAGE_NAME);\n\t\tcreateEAttribute(virtualMachineTypeEClass, VIRTUAL_MACHINE_TYPE__FLAVOR_NAME);\n\t\tcreateEAttribute(virtualMachineTypeEClass, VIRTUAL_MACHINE_TYPE__NEED_PUBLIC_IP);\n\t\tcreateEAttribute(virtualMachineTypeEClass, VIRTUAL_MACHINE_TYPE__DEPLOYMENT_STATUS);\n\t\tcreateEReference(virtualMachineTypeEClass, VIRTUAL_MACHINE_TYPE__INCOMING_SECURITY_RULES);\n\t\tcreateEReference(virtualMachineTypeEClass, VIRTUAL_MACHINE_TYPE__OUTBOUND_SECURITY_RULES);\n\n\t\tsecurityRuleEClass = createEClass(SECURITY_RULE);\n\t\tcreateEAttribute(securityRuleEClass, SECURITY_RULE__PORT_RANGE_START);\n\t\tcreateEAttribute(securityRuleEClass, SECURITY_RULE__PORT_RANGE_END);\n\t\tcreateEAttribute(securityRuleEClass, SECURITY_RULE__PREFIX);\n\t\tcreateEAttribute(securityRuleEClass, SECURITY_RULE__IP_PROTOCOL);\n\n\t\t// Create enums\n\t\tsecurityRuleProtocolEEnum = createEEnum(SECURITY_RULE_PROTOCOL);\n\t}", "public void createPackageContents() {\r\n\t\tif (isCreated) return;\r\n\t\tisCreated = true;\r\n\r\n\t\t// Create classes and their features\r\n\t\tgemmaEClass = createEClass(GEMMA);\r\n\t\tcreateEReference(gemmaEClass, GEMMA__MACRO_OMS);\r\n\t\tcreateEReference(gemmaEClass, GEMMA__TRANSICIONES);\r\n\t\tcreateEReference(gemmaEClass, GEMMA__VARIABLES_GEMMA);\r\n\r\n\t\tmacroOmEClass = createEClass(MACRO_OM);\r\n\t\tcreateEAttribute(macroOmEClass, MACRO_OM__NAME);\r\n\t\tcreateEAttribute(macroOmEClass, MACRO_OM__TIPO);\r\n\t\tcreateEReference(macroOmEClass, MACRO_OM__OMS);\r\n\r\n\t\tomEClass = createEClass(OM);\r\n\t\tcreateEAttribute(omEClass, OM__NAME);\r\n\t\tcreateEAttribute(omEClass, OM__TIPO);\r\n\t\tcreateEAttribute(omEClass, OM__ES_OM_RAIZ);\r\n\t\tcreateEReference(omEClass, OM__VARIABLES_OM);\r\n\t\tcreateEAttribute(omEClass, OM__ES_VISIBLE);\r\n\r\n\t\ttrasicionEntreOmOmEClass = createEClass(TRASICION_ENTRE_OM_OM);\r\n\t\tcreateEReference(trasicionEntreOmOmEClass, TRASICION_ENTRE_OM_OM__ORIGEN);\r\n\t\tcreateEReference(trasicionEntreOmOmEClass, TRASICION_ENTRE_OM_OM__DESTINO);\r\n\r\n\t\ttransicionEntreMacroOmOmEClass = createEClass(TRANSICION_ENTRE_MACRO_OM_OM);\r\n\t\tcreateEReference(transicionEntreMacroOmOmEClass, TRANSICION_ENTRE_MACRO_OM_OM__ORIGEN);\r\n\t\tcreateEReference(transicionEntreMacroOmOmEClass, TRANSICION_ENTRE_MACRO_OM_OM__DESTINO);\r\n\r\n\t\texpresionBinariaEClass = createEClass(EXPRESION_BINARIA);\r\n\t\tcreateEReference(expresionBinariaEClass, EXPRESION_BINARIA__EXPRESION_IZQUIERDA);\r\n\t\tcreateEReference(expresionBinariaEClass, EXPRESION_BINARIA__EXPRESION_DERECHA);\r\n\t\tcreateEAttribute(expresionBinariaEClass, EXPRESION_BINARIA__OPERADOR);\r\n\r\n\t\telementoExpresionEClass = createEClass(ELEMENTO_EXPRESION);\r\n\r\n\t\tvariableOmEClass = createEClass(VARIABLE_OM);\r\n\t\tcreateEAttribute(variableOmEClass, VARIABLE_OM__NAME);\r\n\r\n\t\ttransicionEClass = createEClass(TRANSICION);\r\n\t\tcreateEAttribute(transicionEClass, TRANSICION__NAME);\r\n\t\tcreateEReference(transicionEClass, TRANSICION__ELEMENTO_EXPRESION);\r\n\r\n\t\tvariableGemmaEClass = createEClass(VARIABLE_GEMMA);\r\n\t\tcreateEAttribute(variableGemmaEClass, VARIABLE_GEMMA__NAME);\r\n\r\n\t\trefVariableGemmaEClass = createEClass(REF_VARIABLE_GEMMA);\r\n\t\tcreateEReference(refVariableGemmaEClass, REF_VARIABLE_GEMMA__VARIABLE_GEMMA);\r\n\t\tcreateEAttribute(refVariableGemmaEClass, REF_VARIABLE_GEMMA__NIVEL_DE_ESCRITURA);\r\n\r\n\t\texpresionNotEClass = createEClass(EXPRESION_NOT);\r\n\t\tcreateEReference(expresionNotEClass, EXPRESION_NOT__ELEMENTO_EXPRESION);\r\n\r\n\t\trefVariableOmEClass = createEClass(REF_VARIABLE_OM);\r\n\t\tcreateEReference(refVariableOmEClass, REF_VARIABLE_OM__VARIABLE_OM);\r\n\r\n\t\texpresionConjuntaEClass = createEClass(EXPRESION_CONJUNTA);\r\n\t\tcreateEReference(expresionConjuntaEClass, EXPRESION_CONJUNTA__ELEMENTO_EXPRESION);\r\n\r\n\t\t// Create enums\r\n\t\ttipoOmEEnum = createEEnum(TIPO_OM);\r\n\t\ttipoMacroOmEEnum = createEEnum(TIPO_MACRO_OM);\r\n\t\ttipoOperadorEEnum = createEEnum(TIPO_OPERADOR);\r\n\t\tnivelDeEscrituraEEnum = createEEnum(NIVEL_DE_ESCRITURA);\r\n\t}", "GoalModel createGoalModel();", "private static String newModel() {\n\n End end = new End(0,0);\n Start start = new Start(0,0);\n End end1 = new End(0,0);\n Start start1 = new Start(0,0);\n End end2 = new End(0,0);\n Start start2 = new Start(0,0);\n Start start3 = new Start(0,0);\n End end3 = new End(0,0);\n Start start4 = new Start(0,0);\n End end4 = new End(0,0);\n\n Start start5 = new Start(2,2);\n End end5 = new End(2,7);\n Start start6 = new Start(2,8);\n End end6 = new End(6,8);\n Start start7 = new Start(4,1);\n End end7 = new End(4,4);\n Start start8 = new Start(7,3);\n End end8 = new End(7,5);\n Start start9 = new Start(9,6);\n End end9 = new End(9,8);\n\n\n\n AircraftCarrier aircraftCarrier = new AircraftCarrier(\"AircraftCarrier\",5,start,end);\n Battleship battleship = new Battleship(\"Battleship\",4,start1,end1);\n Cruiser cruiser = new Cruiser(\"Cruiser\",3,start2,end2);\n Destroyer destroyer = new Destroyer(\"Destroyer\",2,start3,end3);\n Submarine submarine = new Submarine(\"Submarine\",2,start4,end4);\n\n ComputerAircraftCarrier computer_aircraftCarrier = new ComputerAircraftCarrier(\"Computer_AircraftCarrier\",5,start5,end5);\n ComputerBattleship computer_battleship = new ComputerBattleship(\"Computer_Battleship\",4,start6,end6);\n ComputerCruiser computer_cruiser = new ComputerCruiser(\"Computer_Cruiser\",3,start7,end7);\n ComputerDestroyer computer_destroyer = new ComputerDestroyer(\"Computer_Destroyer\",2,start8,end8);\n ComputerSubmarine computer_submarine = new ComputerSubmarine(\"Computer_Submarine\",2,start9,end9);\n ArrayList<Hits>playerHits = new ArrayList<Hits>();\n ArrayList<Misses>playerMisses = new ArrayList<Misses>();\n ArrayList<Misses>computerMisses = new ArrayList<Misses>();\n ArrayList<Hits>computerHits = new ArrayList<Hits>();\n\n BattleshipModel battleshipModel = new BattleshipModel(aircraftCarrier,battleship,cruiser,destroyer,submarine,\n computer_aircraftCarrier,computer_battleship,computer_cruiser,computer_destroyer,computer_submarine,\n playerHits,playerMisses,computerHits,computerMisses);\n\n Gson gson = new Gson();\n String battleshipModelWithJson = gson.toJson(battleshipModel);\n return battleshipModelWithJson;\n }", "public void createPackageContents() {\n\t\tif (isCreated) return;\n\t\tisCreated = true;\n\n\t\t// Create classes and their features\n\t\trepositoryEClass = createEClass(REPOSITORY);\n\t\tcreateEAttribute(repositoryEClass, REPOSITORY__NAME);\n\t\tcreateEAttribute(repositoryEClass, REPOSITORY__LOCATION);\n\n\t\trepositoryManagerEClass = createEClass(REPOSITORY_MANAGER);\n\t}", "io.deniffel.dsl.useCase.useCase.Package getPackage();", "RapidmlPackage getRapidmlPackage();" ]
[ "0.60670763", "0.59671116", "0.5919569", "0.58928293", "0.58000207", "0.57741606", "0.577205", "0.57491034", "0.57094353", "0.56330955", "0.56295156", "0.56224346", "0.56018573", "0.55804384", "0.5578008", "0.55693805", "0.5554002", "0.55420274", "0.55331546", "0.5502256", "0.54892707", "0.54787475", "0.54766154", "0.54721016", "0.5459392", "0.54536754", "0.5452691", "0.5446644", "0.54355204", "0.543116", "0.5427817", "0.54209006", "0.54134834", "0.54080075", "0.53921175", "0.539058", "0.5390055", "0.5388224", "0.5380987", "0.53666145", "0.536635", "0.5361978", "0.5353375", "0.5349519", "0.5333429", "0.53246266", "0.5318447", "0.53163284", "0.53137493", "0.53115535", "0.5307926", "0.53028685", "0.5293809", "0.52910507", "0.52865845", "0.5284684", "0.5282661", "0.5267916", "0.52670383", "0.5263055", "0.52550983", "0.52528703", "0.5246597", "0.52394927", "0.5229846", "0.5227724", "0.52270514", "0.5220884", "0.5217422", "0.5213441", "0.521204", "0.52061534", "0.52012837", "0.519821", "0.51928365", "0.51916116", "0.5191511", "0.5188788", "0.51866573", "0.51805305", "0.5178359", "0.5175899", "0.51722723", "0.51657337", "0.51625127", "0.51550627", "0.515331", "0.5151168", "0.5151168", "0.51487553", "0.51462805", "0.5139801", "0.51374537", "0.51359063", "0.51320994", "0.5120288", "0.51168084", "0.51159817", "0.511569", "0.511433", "0.5114239" ]
0.0
-1
Construtor da classe RepositorioMicromedicaoHBM
private RepositorioAtendimentoPublicoHBM() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private RepositorioOrdemServicoHBM() {\n\n\t}", "public RepositorioTransacaoHBM() {\n\n\t}", "public FiltroMicrorregiao() {\r\n }", "public EmoticonBO()\n {}", "public LocalResidenciaColaborador() {\n //ORM\n }", "public BoletajeResource() {\n }", "public MARealEstateBuildingVORowImpl() {\n }", "private BaseDatos() {\n }", "public TipoDocumentoMB() {\n tipoDoc = new TipoDocPersona();\n }", "public Unidadmedida() {\r\n\t}", "public RhSubsidioBean ()\n {\n }", "public UsuarioMB() {\n }", "public DABeneficios() {\n }", "public Carrinho() {\n\t\tsuper();\n\t}", "public CadastroMicrobio() {\n initComponents();\n setIcon();\n }", "public MnjMfgFabinsProdLEOImpl() {\n }", "public RecipeMB() {\n }", "public Medico() {\r\n\t\tsuper();\r\n\t codmedico = \"\";\r\n\t\tespecialidad = null;\r\n\t}", "public Odontologo() {\n }", "public CorreoElectronico() {\n }", "public TacChrtypmstVOImpl() {\n }", "public Mitarbeit() {\r\n }", "public ContaBancaria() {\n }", "@Ignore\n public Proba() {\n }", "public TCubico(){}", "public Billfold()\n {\n \n }", "public CTematicaBienestar() {\r\n\t}", "public BeanDatosAlumno() {\r\n bo = new BoPrestamoEjemplarImpl();\r\n verEjemplares(\"ABC0001\"); \r\n numerodelibrosPrestados();\r\n }", "public CarroResource() {\r\n }", "public Ov_Chipkaart() {\n\t\t\n\t}", "public MPaciente() {\r\n\t}", "public NuevaTablaResource() {\r\n }", "public BOEmpresa() {\r\n\t\tdaoEmpresa = new DAOEmpresaJPA();\r\n\t}", "private MApi() {}", "public ControladorPrueba() {\r\n }", "private ObiWanKenobi(){\n }", "public ConsultaMedica() {\n super();\n }", "public Magazzino() {\r\n }", "public OOP_207(){\n\n }", "public RcivControlDAOImpl(){\r\n \r\n }", "public QueryBO() {\r\n }", "public Boleta(){\r\n\t\tsuper();\r\n\t}", "public Mobile() { }", "@Override\r\n\tpublic Bloco0 criarBloco(MovimentoMensalIcmsIpi movimentoMensalIcmsIpi) {\n\t\tLOG.log(Level.INFO, \"Montando o BLOCO 0, com INICIO em: {0} e TERMINO: {1} \", movimentoMensalIcmsIpi.getDataInicio());\r\n\t\tBloco0 bloco0 = new Bloco0();\r\n\t\t\r\n\t\t/**\r\n\t\t * TODO (Para ver/pensar melhor)\r\n\t\t * Ver se eu tenho que fazer alguma validação aqui. Ex.: irá preecher registro X para aquele Mês?\r\n\t\t * Tentar capturar possiveis erros.: Ex o famosão -> @NullPointerException\r\n\t\t */\r\n\t\t\r\n\t\tbloco0.setReg0000(reg0000Service.montarGrupoDeRegistroSimples(movimentoMensalIcmsIpi));\r\n\t\tbloco0.setReg0001(reg0001Service.montarGrupoDeRegistroSimples(movimentoMensalIcmsIpi));\r\n\t\tbloco0.setReg0005(reg0005Service.montarGrupoDeRegistroSimples(movimentoMensalIcmsIpi));\r\n\t\tbloco0.setReg0100(reg0100Service.montarGrupoDeRegistroSimples(movimentoMensalIcmsIpi));\r\n\t\tbloco0.setReg0150(reg0150Service.montarGrupoDeRegistro(movimentoMensalIcmsIpi));\r\n\t\tbloco0.setReg0190(reg0190Service.montarGrupoDeRegistro(movimentoMensalIcmsIpi));\r\n\t\tbloco0.setReg0200(reg0200Service.montarGrupoDeRegistro(movimentoMensalIcmsIpi));\r\n\t\tbloco0.setReg0400(reg0400Service.montarGrupoDeRegistro(movimentoMensalIcmsIpi));\r\n\t\tbloco0.setReg0450(reg0450Service.montarGrupoDeRegistro(movimentoMensalIcmsIpi));\r\n//\t\tbloco0.setReg0460(reg0460Service.montarGrupoDeRegistro(movimentoMensalIcmsIpi));\r\n//\t\tbloco0.setReg0990(montarEncerramentoDoBloco0(bloco0));\r\n\t\t\r\n\t\tLOG.log(Level.INFO, \"Montagem do BLOCO 0, TEMINADA! {0} \" ,bloco0);\r\n\t\treturn bloco0;\r\n\t}", "public OVChipkaart() {\n\n }", "public CambioComplementariosDTO() { }", "public Boop() {\n\t\tsuper();\n\t}", "public Sobre() {\n\t\tsuper();\n\t\tinitialize();\n\t}", "public Candidatura (){\n \n }", "public Caso_de_uso () {\n }", "public QLNhanVien(){\n \n }", "public HiloM() { }", "public ControladorCoche() {\n\t}", "public RecruitingAppManagementImpl() {\n }", "HdbdtiModel createHdbdtiModel();", "public ModelBolting(){}", "protected MedicoDao() {\n super(Medico.class);\n }", "public Libro() {\r\n }", "public Banco(){}", "public ModeloRecycler(){\n\n }", "public Alojamiento() {\r\n\t}", "public ControladorCatalogoServicios() {\r\n }", "public Livro() {\n\n\t}", "public CommonVO() {\r\n }", "public X837Ins_2320_MOA_MedicareOutpatientAdjudicationInformation() {}", "public StudentChoresAMImpl() {\n }", "public MorteSubita() {\n }", "public BillResource() {\n super();\n }", "public ContatosResource() {\n }", "public LargeObjectAvro() {}", "public CMN() {\n\t}", "public FiltroBoletoBancarioLancamentoEnvio() {\n\n\t}", "public BuscaMedicamento() {\n initComponents();\n }", "public DarAyudaAcceso() {\r\n }", "public Cgg_jur_anticipo(){}", "public ModelResource() {\n }", "public Pojo1110110(){\r\n\t}", "public Busca(){\n }", "public mbvBoletinPeriodo() {\r\n }", "public Corso() {\n\n }", "private bildeBaseColumns() {\n\n }", "public Brand()\n {\n\t\tsuper();\n }", "public MySqlModelBean() {\r\n \r\n }", "public Carrera(){\n }", "public VRpDyIpbbCpuMemDAOImpl() {\r\n super();\r\n }", "public InventarioControlador() {\n }", "public\r\n Mobile() {}", "public VRpDyHlrforbeDAOImpl() {\r\n super();\r\n }", "public ABMServicio(ControladoraVisual unaControladora) {\n initComponents();\n unaControladoraVisual = unaControladora;\n modelo.addColumn(\"ID\");\n modelo.addColumn(\"Nombre\");\n modelo.addColumn(\"Descripcion\");\n modelo.addColumn(\"Precio\");\n cargarTabla();\n }", "public Exercicio(){\n \n }", "public ProtoVehicle() {\n super();\n }", "public MovimientoControl() {\n }", "public DetailVORowImpl() {\n }", "public Phl() {\n }", "public SecurityMB() {\n }", "public Vehiculo() {\r\n }", "public DetArqueoRunt () {\r\n\r\n }", "public Pitonyak_09_02() {\r\n }", "private Medicamento(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "public DonusturucuBean() {\n }" ]
[ "0.73617655", "0.73604065", "0.6656702", "0.62645215", "0.6153025", "0.60340464", "0.6022172", "0.60047865", "0.6003811", "0.596246", "0.59265995", "0.59067994", "0.5903069", "0.5898312", "0.5891714", "0.5886345", "0.58777136", "0.5870922", "0.5856688", "0.5855287", "0.58507246", "0.58408237", "0.58335894", "0.58179134", "0.5801402", "0.57992405", "0.5794843", "0.57931286", "0.57550174", "0.57385373", "0.57334894", "0.573273", "0.57321674", "0.5729212", "0.572682", "0.5725175", "0.57137907", "0.56901824", "0.56864566", "0.5686398", "0.5685004", "0.5681965", "0.5680325", "0.56744814", "0.56741065", "0.5669038", "0.56683046", "0.56624824", "0.56615657", "0.5660174", "0.56524473", "0.56517565", "0.56450963", "0.56444347", "0.5641306", "0.5640337", "0.562969", "0.56276953", "0.56241494", "0.5619886", "0.56148356", "0.5602333", "0.560018", "0.559612", "0.55935854", "0.55933994", "0.55916274", "0.5591599", "0.55871326", "0.55769", "0.557343", "0.5572365", "0.5555986", "0.5545244", "0.55424815", "0.55403244", "0.55390847", "0.5535127", "0.55333513", "0.55330634", "0.5532701", "0.5529462", "0.5522799", "0.5522752", "0.55188036", "0.550824", "0.5506976", "0.55040765", "0.5502063", "0.5502", "0.5501335", "0.550123", "0.5500315", "0.5495887", "0.54957336", "0.54917204", "0.54792374", "0.5476911", "0.5476217", "0.54737216" ]
0.7202609
2
A unique identifier for determining the EscidocReference id.
String getReferenceType();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getReferenceId();", "public EI getHealthDocumentReferenceIdentifier() { \r\n\t\tEI retVal = this.getTypedField(19, 0);\r\n\t\treturn retVal;\r\n }", "public String getReferenceId() {\n return refid;\n }", "public String generateReferenceId(){\n String lastSequenceNumber = databaseAccessResource.getLastRequestSequenceNumber();\n //ToDo : write the logic to generate the next sequence number.\n return null;\n }", "public E getReferenceId() {\n return referenceId;\n }", "public java.lang.String getRefID()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.SimpleValue target = null;\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(REFID$4, 0);\n if (target == null)\n {\n return null;\n }\n return target.getStringValue();\n }\n }", "public java.lang.String getRefId() {\n return refId;\n }", "Object getRefid();", "private String getUniqueId(JCas jCas) {\n return ConsumerUtils.getExternalId(getDocumentAnnotation(jCas), contentHashAsId);\n }", "public long getRefId() {\n return refId;\n }", "public EI getPsl19_HealthDocumentReferenceIdentifier() { \r\n\t\tEI retVal = this.getTypedField(19, 0);\r\n\t\treturn retVal;\r\n }", "public java.lang.String getIdentifier()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.SimpleValue target = null;\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(IDENTIFIER$0, 0);\n if (target == null)\n {\n return null;\n }\n return target.getStringValue();\n }\n }", "java.lang.String getDocumentId();", "Identifier getId();", "String getExecRefId();", "java.lang.String getIdentifier();", "@NonNull String identifier();", "public int getUniqueReference ()\n\t{\n\t\treturn uniqueReference;\n\t}", "public org.apache.xmlbeans.XmlString xgetRefID()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.XmlString target = null;\n target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(REFID$4, 0);\n return target;\n }\n }", "@Schema(example = \"inv_1815_ref_1\", description = \"ID for the reference of the API consumer.\")\n public String getReferenceId() {\n return referenceId;\n }", "public String getIdentifierString();", "public java.lang.String getIdentifier() {\n java.lang.Object ref = identifier_;\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 identifier_ = s;\n }\n return s;\n }\n }", "public String id() {\n return definition.getString(ID);\n }", "public String getId()\r\n\t{\n\t\treturn id.substring(2, 5);\r\n\t}", "java.lang.String getID();", "public Integer getRefId() {\n return refId;\n }", "public String getExecRefId() {\n Object ref = execRefId_;\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 if (bs.isValidUtf8()) {\n execRefId_ = s;\n }\n return s;\n }\n }", "public String getIdentifier();", "public String getIdentifier();", "public java.lang.String getDocumentId() {\n java.lang.Object ref = documentId_;\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 documentId_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public java.lang.String getIdentifier() {\n java.lang.Object ref = identifier_;\n if (!(ref instanceof java.lang.String)) {\n java.lang.String s = ((com.google.protobuf.ByteString) ref)\n .toStringUtf8();\n identifier_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public static String id()\n {\n return _id;\n }", "String getIdentifier();", "String getIdentifier();", "String getIdentifier();", "String getIdentifier();", "String getIdentifier();", "String getIdentifier();", "String getIdentifier();", "public String getExecRefId() {\n Object ref = execRefId_;\n if (!(ref instanceof String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n String s = bs.toStringUtf8();\n if (bs.isValidUtf8()) {\n execRefId_ = s;\n }\n return s;\n } else {\n return (String) ref;\n }\n }", "@JsonIgnore\r\n public String getReferenceId() {\r\n return OptionalNullable.getFrom(referenceId);\r\n }", "public static String getID(EObject eObject) {\n\n\t\tResource resource = eObject.eResource();\n\n\t\tString id = null;\n\n\t\tif (resource == null)\n\t\t\tid = GMFResource.getSavedID(eObject);\n\n\t\telse if (resource instanceof XMLResource)\n\t\t\tid = ((XMLResource) resource).getID(eObject);\n\n\t\tif (id != null)\n\t\t\treturn id;\n\t\telse\n\t\t\treturn MSLConstants.EMPTY_STRING;\n\t}", "@java.lang.Override\n public java.lang.String getDocumentId() {\n java.lang.Object ref = documentId_;\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 documentId_ = s;\n return s;\n }\n }", "public int getIdentifier();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "String getId();", "java.lang.String getId();", "java.lang.String getId();", "java.lang.String getId();", "java.lang.String getId();", "java.lang.String getId();", "java.lang.String getId();", "java.lang.String getId();", "java.lang.String getId();", "java.lang.String getId();", "java.lang.String getId();", "java.lang.String getId();", "java.lang.String getId();", "java.lang.String getId();", "java.lang.String getId();" ]
[ "0.76199025", "0.73750883", "0.7197252", "0.7135674", "0.71314603", "0.7055629", "0.6988972", "0.6961276", "0.691167", "0.6876198", "0.6798716", "0.67732704", "0.6767456", "0.6754755", "0.67315084", "0.6712309", "0.66754514", "0.66640186", "0.66622466", "0.6635646", "0.6578601", "0.6545426", "0.65387803", "0.6537184", "0.65294594", "0.6515426", "0.6501814", "0.6487063", "0.6487063", "0.64840424", "0.6483574", "0.6461896", "0.6452804", "0.6452804", "0.6452804", "0.6452804", "0.6452804", "0.6452804", "0.6452804", "0.6451443", "0.6446638", "0.6430892", "0.6420147", "0.64170563", "0.6416307", "0.6416307", "0.6416307", "0.6416307", "0.6416307", "0.6416307", "0.6416307", "0.6416307", "0.6416307", "0.6416307", "0.6416307", "0.6416307", "0.6416307", "0.6416307", "0.6416307", "0.6416307", "0.6416307", "0.6416307", "0.6416307", "0.6416307", "0.6416307", "0.6416307", "0.6416307", "0.6416307", "0.6416307", "0.6416307", "0.6416307", "0.6416307", "0.6416307", "0.6416307", "0.6416307", "0.6416307", "0.6416307", "0.6416307", "0.6416307", "0.6416307", "0.6416307", "0.6416307", "0.6416307", "0.6416307", "0.6416307", "0.6416307", "0.6416307", "0.641167", "0.641167", "0.641167", "0.641167", "0.641167", "0.641167", "0.641167", "0.641167", "0.641167", "0.641167", "0.641167", "0.641167", "0.641167", "0.641167" ]
0.0
-1
Metodo constructor que crea DAORestaurantes post: Crea la instancia del DAO e inicializa el Arraylist de recursos
public DAOPedidoMesa() { recursos = new ArrayList<Object>(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public DAOCliente() {\n\t\trecursos = new ArrayList<Object>();\n\t}", "public RAMContactoDAO() {\r\n /*contacto.add(c1);\r\n contacto.add(c2);\r\n contacto.add(c3);\r\n contacto.add(c4);*/\r\n }", "public ArrayList<DataRestaurante> listarRestaurantes();", "public DescritoresDAO() {\n\t\t\n\t}", "public void AddReliquias(){\n DLList reliquias = new DLList();\n reliquias.insertarInicio(NombreReliquia); \n }", "public Recursos() {\n }", "private void caricaLista() {\n /** variabili e costanti locali di lavoro */\n ArrayList unaLista = null;\n CampoDati unCampoDati = null;\n CDBLinkato unCampoDBLinkato = null;\n //@todo da cancellare\n try { // prova ad eseguire il codice\n /* recupera il campo DB specializzato */\n unCampoDBLinkato = (CDBLinkato)unCampoParente.getCampoDB();\n\n /* recupera la lista dal campo DB */\n unaLista = unCampoDBLinkato.caricaLista();\n\n /* recupera il campo dati */\n unCampoDati = unCampoParente.getCampoDati();\n\n /* registra i valori nel modello dei dati del campo */\n if (unaLista != null) {\n unCampoDati.setValoriInterni(unaLista);\n// unCampoDatiElenco.regolaElementiAggiuntivi();\n } /* fine del blocco if */\n\n } catch (Exception unErrore) { // intercetta l'errore\n /* mostra il messaggio di errore */\n Errore.crea(unErrore);\n } /* fine del blocco try-catch */\n\n }", "public DAOTablaOperador() {\r\n\t\trecursos = new ArrayList<Object>();\r\n\t}", "public empresaDAO(){\r\n \r\n }", "public DAOTablaOperador() {\n\t\trecursos = new ArrayList<Object>();\n\t}", "private void populaDiasTreinoCat()\n {\n DiasTreinoCat dias1 = new DiasTreinoCat(\"1 vez por semana\", 1);\n diasTreinoCatDAO.insert(dias1);\n DiasTreinoCat dias2 = new DiasTreinoCat(\"2 vez por semana\", 2);\n diasTreinoCatDAO.insert(dias2);\n DiasTreinoCat dias3 = new DiasTreinoCat(\"3 vez por semana\", 3);\n diasTreinoCatDAO.insert(dias3);\n DiasTreinoCat dias4 = new DiasTreinoCat(\"4 vez por semana\", 4);\n diasTreinoCatDAO.insert(dias4);\n DiasTreinoCat dias5 = new DiasTreinoCat(\"5 vez por semana\", 5);\n diasTreinoCatDAO.insert(dias5);\n DiasTreinoCat dias6 = new DiasTreinoCat(\"6 vez por semana\", 6);\n diasTreinoCatDAO.insert(dias6);\n DiasTreinoCat dias7 = new DiasTreinoCat(\"7 vez por semana\", 7);\n diasTreinoCatDAO.insert(dias7);\n\n }", "public List<Departamento> obtenerInstancias() {\n List<Departamento> lstDepas = new ArrayList();\n if (conectado) {\n try {\n String Query = \"SELECT * FROM instancias ORDER BY nombre ASC\";\n Statement st = Conexion.createStatement();\n ResultSet resultSet;\n resultSet = st.executeQuery(Query);\n while (resultSet.next()) {\n Departamento depa = new Departamento();\n depa.setCodigo(resultSet.getString(\"codigo\"));\n depa.setNombre(resultSet.getString(\"nombre\"));\n depa.setJefe(resultSet.getString(\"jefe\"));\n lstDepas.add(depa);\n }\n Logy.m(\"Consulta de datos de las instancias: exitosa\");\n return lstDepas;\n\n } catch (SQLException ex) {\n Logy.me(\"Error!! en la consulta de datos en la tabla instancias\");\n return new ArrayList();\n }\n } else {\n Logy.me(\"Error!!! no se ha establecido previamente una conexion a la DB\");\n return lstDepas;\n }\n }", "public void initialiserBD() {\n\n // on crée une personne avec tous les champs à vide, cela nous permettra de tester l'existence de la BD pour les futurs lancements.\n pdao.open();\n pdao.creerPersonnePremierLancement();\n pdao.close();\n\n // création des 3 listes\n Liste liste1 = new Liste(1, \"Maison\", \"La liste de ma maison\");\n Liste liste2 = new Liste(2, \"Garage\", \"La liste de mon garage\");\n Liste liste3 = new Liste(3, \"Magasin\", \"La liste de mon magasin\");\n\n // ajout des listes\n ldao.open();\n ldao.ajouterListe(liste1);\n ldao.ajouterListe(liste2);\n ldao.ajouterListe(liste3);\n ldao.close();\n\n // on ajoute 3 catégories\n CategorieDAO categorieDAO = new CategorieDAO(this);\n categorieDAO.open();\n Categorie cuisine = new Categorie(0, \"Cuisine\", \"Tous les objets de la cuisine\");\n Categorie salon = new Categorie(0, \"Salon\", \"Tous les objets du Salon\");\n Categorie chambre = new Categorie(0, \"Chambre\", \"Tous les objets de la chambre\");\n categorieDAO.addCategorie(cuisine);\n categorieDAO.addCategorie(salon);\n categorieDAO.addCategorie(chambre);\n categorieDAO.close();\n\n Date date = new Date();\n\n // Création de la classe utilitaire pour les dates\n Utils utils = new Utils(this);\n String dateSimpleDateFormat = utils.getDateSimpleDateFormat();\n SimpleDateFormat sdf = new SimpleDateFormat(dateSimpleDateFormat);\n String dateDuJour = sdf.format(date);\n\n // texte explicatif\n String explication = \"Cet objet est crée au demarrage de l'application, vous pouvez le supprimer en cliquant dessus.\";\n\n // on ajoute 6 bien pour exemple\n Bien bien1 = new Bien(1, \"Lunette\", dateDuJour, dateDuJour, \"\", \"Légèrement rayées sur le coté\", \"251\", \"\", \"\", \"\", \"\", 2, explication, \"\");\n Bien bien2 = new Bien(2, \"Frigo\", dateDuJour, dateDuJour, \"\", \"\", \"3599\", \"\", \"\", \"\", \"\", 1, explication, \"45DG425845DA\");\n Bien bien3 = new Bien(3, \"Ordinateur\", dateDuJour, dateDuJour, \"\", \"Manque une touche\", \"1099\", \"\", \"\", \"\", \"\", 3, explication, \"515D-TGH2336\");\n Bien bien4 = new Bien(4, \"Vaisselle\", dateDuJour, dateDuJour, \"\", \"Vaisselle de Mémé\", \"6902\", \"\", \"\", \"\", \"\", 1, explication, \"\");\n Bien bien5 = new Bien(5, \"TV\", dateDuJour, dateDuJour, \"\", \"\", \"350\", \"\", \"\", \"\", \"\", 2, explication, \"\");\n Bien bien6 = new Bien(6, \"Home cinéma\", dateDuJour, dateDuJour, \"\", \"Marque Pioneer - Une enceinte grésille un peu\", \"400\", \"\", \"\", \"\", \"\", 2, explication, \"\");\n\n\n // dans la liste 1\n ArrayList<Integer> listeIdListe1 = new ArrayList<Integer>();\n listeIdListe1.add(1);\n\n\n bdao.open();\n\n bdao.addBien(bien1, listeIdListe1);\n bdao.addBien(bien2, listeIdListe1);\n bdao.addBien(bien3, listeIdListe1);\n bdao.addBien(bien4, listeIdListe1);\n bdao.addBien(bien5, listeIdListe1);\n bdao.addBien(bien6, listeIdListe1);\n\n bdao.close();\n }", "public ArrayList<DataRestaurante> listarRestaurantes(String patron) throws Exception;", "public PacienteDAO(){ \n }", "public Exposicao() {\n obras = new TreeSet<Obra>();\n }", "protected DAO()\r\n\t{\r\n\t\tcustomers = new ArrayList<Customer>();\r\n\t}", "public List<Restaurant> restaurantList(){\r\n\t\treturn DataDAO.getRestaurantList();\r\n\t}", "public UtentiDB(){\r\n this.utenti = new LinkedList<Utente>();\r\n }", "public PlantillaFacturaLogic()throws SQLException,Exception {\r\n\t\tsuper();\r\n\t\t\r\n\t\ttry\t{\t\t\t\t\t\t\r\n\t\t\tthis.plantillafacturaDataAccess = new PlantillaFacturaDataAccess();\r\n\t\t\t\r\n\t\t\tthis.plantillafacturas= new ArrayList<PlantillaFactura>();\r\n\t\t\tthis.plantillafactura= new PlantillaFactura();\r\n\t\t\t\r\n\t\t\tthis.plantillafacturaObject=new Object();\r\n\t\t\tthis.plantillafacturasObject=new ArrayList<Object>();\r\n\t\t\t\t\r\n\t\t\t/*\r\n\t\t\tthis.connexion=new Connexion();\r\n\t\t\tthis.datosCliente=new DatosCliente();\r\n\t\t\tthis.arrDatoGeneral= new ArrayList<DatoGeneral>();\r\n\t\t\t\r\n\t\t\t//INICIALIZA PARAMETROS CONEXION\r\n\t\t\tthis.connexionType=Constantes.CONNEXIONTYPE;\r\n\t\t\tthis.parameterDbType=Constantes.PARAMETERDBTYPE;\r\n\t\t\t\r\n\t\t\tif(Constantes.CONNEXIONTYPE.equals(ConnexionType.HIBERNATE)) {\r\n\t\t\t\tthis.entityManagerFactory=ConstantesCommon.JPAENTITYMANAGERFACTORY;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tthis.datosDeep=new DatosDeep();\r\n\t\t\tthis.isConDeep=false;\r\n\t\t\t*/\r\n\t\t\t\r\n\t\t\tthis.plantillafacturaDataAccess.setConnexionType(this.connexionType);\r\n\t\t\tthis.plantillafacturaDataAccess.setParameterDbType(this.parameterDbType);\r\n\t\t\t\r\n\t\t\t\r\n\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\tthis.invalidValues=new InvalidValue[0];\r\n\t\t\tthis.stringBuilder=new StringBuilder();\r\n\t\t\tthis.conMostrarMensajesStringBuilder=true;\r\n\t\t\t\r\n\t\t} catch(Exception e) {\r\n\t\t\tFunciones.manageException(logger,e);\r\n\t\t\tthrow e;\r\n\t\t}\t \r\n }", "JoueurManager()\n\t{\n\t\tListJoueur = new ArrayList<Joueur>();\n\t}", "List<O> obtenertodos() throws DAOException;", "public Restaurant() {\n\t\t\n\t}", "public DAO(List<String> listName) {\n super(listName);\n }", "public RecipeDataBase(){\n //recipes = new ArrayList<>();\n loadDatabase();\n \n }", "public Controlador() {\n\t\t// m\n\t\tdatosPrueba1 = new ListaEnlazada();\n\t\t// m\n\t\tdatosPrueba2 = new ListaEnlazada();\n\t\t// add\n\t\tdatosPrueba3 = new ListaEnlazada();\n\t\tdatosPrueba4 = new ListaEnlazada();\n\t\tprueba1 = new Estadisticas(datosPrueba1);\n\t\tprueba2 = new Estadisticas(datosPrueba2);\n\t\tprueba3 = new Estadisticas(datosPrueba3);\n\t\tprueba4 = new Estadisticas(datosPrueba4);\n\t\t// finAdd\n\t}", "@Override\n public void run() {\n mRestaurantsDao.deleteAllRestaurants();\n mRestaurantsDao.insertAllResturants(list);\n }", "public ClienteArchivoLogic()throws SQLException,Exception {\r\n\t\tsuper();\r\n\t\t\r\n\t\ttry\t{\t\t\t\t\t\t\r\n\t\t\tthis.clientearchivoDataAccess = new ClienteArchivoDataAccess();\r\n\t\t\t\r\n\t\t\tthis.clientearchivos= new ArrayList<ClienteArchivo>();\r\n\t\t\tthis.clientearchivo= new ClienteArchivo();\r\n\t\t\t\r\n\t\t\tthis.clientearchivoObject=new Object();\r\n\t\t\tthis.clientearchivosObject=new ArrayList<Object>();\r\n\t\t\t\t\r\n\t\t\t/*\r\n\t\t\tthis.connexion=new Connexion();\r\n\t\t\tthis.datosCliente=new DatosCliente();\r\n\t\t\tthis.arrDatoGeneral= new ArrayList<DatoGeneral>();\r\n\t\t\t\r\n\t\t\t//INICIALIZA PARAMETROS CONEXION\r\n\t\t\tthis.connexionType=Constantes.CONNEXIONTYPE;\r\n\t\t\tthis.parameterDbType=Constantes.PARAMETERDBTYPE;\r\n\t\t\t\r\n\t\t\tif(Constantes.CONNEXIONTYPE.equals(ConnexionType.HIBERNATE)) {\r\n\t\t\t\tthis.entityManagerFactory=ConstantesCommon.JPAENTITYMANAGERFACTORY;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tthis.datosDeep=new DatosDeep();\r\n\t\t\tthis.isConDeep=false;\r\n\t\t\t*/\r\n\t\t\t\r\n\t\t\tthis.clientearchivoDataAccess.setConnexionType(this.connexionType);\r\n\t\t\tthis.clientearchivoDataAccess.setParameterDbType(this.parameterDbType);\r\n\t\t\t\r\n\t\t\t\r\n\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\tthis.invalidValues=new InvalidValue[0];\r\n\t\t\tthis.stringBuilder=new StringBuilder();\r\n\t\t\tthis.conMostrarMensajesStringBuilder=true;\r\n\t\t\t\r\n\t\t} catch(Exception e) {\r\n\t\t\tFunciones.manageException(logger,e);\r\n\t\t\tthrow e;\r\n\t\t}\t \r\n }", "public void crearNodos()\n\t{\n\t\tfor(List<String> renglon: listaDeDatos)\n\t\t{\n\t\t\tPersona persona = new Persona(Integer.parseInt(renglon.get(1)), Integer.parseInt(renglon.get(2))); //crea la persona\n\t\t\t\n\t\t\tNodo nodo = new Nodo(Integer.parseInt(renglon.get(0)), 0, 0, false); //crea el nodo con id en posicion 1\n\t\t\t\n\t\t\tnodo.agregarPersona(persona);\n\t\t\tlistaNodos.add(nodo);\n\t\t}\n\t\t\n\t}", "public List<Revista> getRevistas(){\n List<Revista> revistas = new ArrayList<>();\n Revista r = null;\n String id, nome, categoria, nrConsultas, editorID, empresaID;\n LocalDate edicao;\n\n\n try {\n connection = con.connect();\n PreparedStatement stm = connection.prepareStatement(\"SELECT * FROM Revista\");\n ResultSet rs = stm.executeQuery();\n\n while(rs.next()){\n id = rs.getString(\"ID\");\n nome = rs.getString(\"Nome\");\n edicao = rs.getDate(\"Edicao\").toLocalDate();\n categoria = rs.getString(\"Categoria\");\n nrConsultas = rs.getString(\"NrConsultas\");\n editorID = rs.getString(\"Editor_ID\");\n empresaID = rs.getString(\"Empresa_ID\");\n r = new Revista(id,nome,edicao,categoria,nrConsultas,editorID,empresaID);\n revistas.add(r);\n }\n } catch (SQLException e1) {\n e1.printStackTrace();\n }\n finally{\n con.close(connection);\n }\n return revistas;\n }", "public List<TipoDocumento> listar() throws SQLException{\n ArrayList<TipoDocumento> tipodocumentos = new ArrayList();\n TipoDocumento tipodocumento;\n ResultSet resultado;\n String sentenciaSQL = \"SELECT documentoid, descripcion FROM tipodocumento;\";\n \n resultado = gestorJDBC.ejecutarConsulta(sentenciaSQL);\n while(resultado.next()){ \n //para hacer \"new Genero\" necesito tener un Construtor vacio.\n tipodocumento = new TipoDocumento();\n tipodocumento.setTipodocumentoid(resultado.getInt(\"documentoid\"));\n tipodocumento.setDescripcion(resultado.getString(\"descripcion\"));\n tipodocumentos.add(tipodocumento);\n }\n resultado.close();\n return tipodocumentos; \n }", "public List<Produto> consultarProdutos(int consulta, String valor) {\r\n ConexaoBDJavaDB conexaoBD = new ConexaoBDJavaDB(\"routeexpress\");\r\n Connection conn = null;\r\n Statement stmt = null;\r\n ResultSet rs = null;\r\n List<Produto> produtos = new ArrayList<>();\r\n try {\r\n conn = conexaoBD.obterConexao();\r\n stmt = conn.createStatement();\r\n //Se a consulta for igual a zero(0) uma lista de todos os produtos \"cervejas\" e recuperada\r\n if (consulta == 0) {\r\n rs = stmt.executeQuery(consultas[consulta]);\r\n //Se a consulta for igual a tres(3) uma lista de todos os produtos \"cervejas\" e recuperada a parti do preco\r\n } else {\r\n rs = stmt.executeQuery(consultas[consulta] + \"'\" + valor + \"'\");\r\n }\r\n Produto produto;\r\n while (rs.next()) {\r\n produto = new Produto();\r\n produto.setIdCervejaria(rs.getInt(\"ID_CERVEJARIA\"));\r\n produto.setCervejaria(rs.getString(\"CERVEJARIA\"));\r\n produto.setPais(rs.getString(\"PAIS\"));\r\n produto.setIdCerveja(rs.getInt(\"ID_CERVEJA\"));\r\n produto.setIdFkCervajaria(rs.getInt(\"FK_CERVEJARIA\"));\r\n produto.setRotulo(rs.getString(\"ROTULO\"));\r\n produto.setPreco(rs.getString(\"PRECO\"));\r\n produto.setVolume(rs.getString(\"VOLUME\"));\r\n produto.setTeor(rs.getString(\"TEOR\"));\r\n produto.setCor(rs.getString(\"COR\"));\r\n produto.setTemperatura(rs.getString(\"TEMPERATURA\"));\r\n produto.setFamiliaEEstilo(rs.getString(\"FAMILIA_E_ESTILO\"));\r\n produto.setDescricao(rs.getString(\"DESCRICAO\"));\r\n produto.setSabor(rs.getString(\"SABOR\"));\r\n produto.setImagem1(rs.getString(\"IMAGEM_1\"));\r\n produto.setImagem2(rs.getString(\"IMAGEM_2\"));\r\n produto.setImagem3(rs.getString(\"IMAGEM_3\"));\r\n produtos.add(produto);\r\n }\r\n } catch (SQLException ex) {\r\n Logger.getLogger(ProdutoDAO.class.getName()).log(Level.SEVERE, null, ex);\r\n } catch (ClassNotFoundException ex) {\r\n Logger.getLogger(ProdutoDAO.class.getName()).log(Level.SEVERE, null, ex);\r\n } finally {\r\n if (conn != null) {\r\n try {\r\n conn.close();\r\n } catch (SQLException ex) {\r\n Logger.getLogger(ProdutoDAO.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n }\r\n if (stmt != null) {\r\n try {\r\n stmt.close();\r\n } catch (SQLException ex) {\r\n Logger.getLogger(ProdutoDAO.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n }\r\n if (rs != null) {\r\n try {\r\n rs.close();\r\n } catch (SQLException ex) {\r\n Logger.getLogger(ProdutoDAO.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n }\r\n }\r\n return produtos;\r\n }", "public void Listar() {\n try {\n ApelacionesDao apelacionesDao = new ApelacionesDao();\n this.listaApelaciones.clear();\n setListaApelaciones(apelacionesDao.cargaApelaciones());\n } catch (ExceptionConnection ex) {\n Logger.getLogger(ApelacionController.class.getName()).log(Level.SEVERE, null, ex);\n }\n }", "public Restaurant() { }", "protected void creaNavigatori() {\n /* variabili e costanti locali di lavoro */\n Navigatore nav;\n\n try { // prova ad eseguire il codice\n nav = new NavigatoreRisultati(this);\n this.addNavigatore(nav);\n } catch (Exception unErrore) { // intercetta l'errore\n Errore.crea(unErrore);\n }// fine del blocco try-catch\n\n }", "public Lista(){\n inicio=null;\n fin=null;\n }", "public List<Tripulante> obtenerTripulantes();", "public DAOTablaMenuProductos() {\r\n\t\trecursos = new ArrayList<Object>();\r\n\t}", "public OnibusDAO() {}", "public interface PreguntaDao {\n\n\t/** Devuelve las preguntas mas recientes, ordenadas desde la mas reciente hacia la mas antigua.\n\t * @param page La pagina de preguntas (comienza de la 1)\n\t * @param pageSize El numero de resultados a devolver por pagina. */\n\tpublic List<Pregunta> getPreguntasRecientes(int page, int pageSize);\n\n\t/** Devuelve las preguntas hechas por el usuario indicado. */\n\tpublic List<Pregunta> getPreguntasUsuario(Usuario user);\n\n\t/** Devuelve las preguntas que contienen el tag especificado. */\n\tpublic List<Pregunta> getPreguntasConTag(TagPregunta tag);\n\n\t/** Devuelve todas las preguntas que tengan al menos uno de los tags especificados. */\n\tpublic List<Pregunta> getPreguntasConTags(Set<TagPregunta> tags);\n\n\t/** Devuelve las preguntas que contienen el tag especificado. */\n\tpublic List<Pregunta> getPreguntasConTag(String tag);\n\n\t/** Devuelve los tags mas utilizados en preguntas.\n\t * @param limit El numero maximo de tags a devolver. */\n\tpublic List<TagPregunta> getTagsPopulares(int limit);\n\n\t/** Devuelve la pregunta con el id especificado. */\n\tpublic Pregunta getPregunta(int id);\n\n\t/** Devuelve las respuestas a la pregunta especificada.\n\t * @param pageSize El numero maximo de preguntas a devolver.\n\t * @param page El numero de pagina a devolver (la primera pagina es 1)\n\t * @param crono Indica si se deben ordenar las respuestas en orden cronologico, en vez de por votos\n\t * (default es por votos). */\n\tpublic List<Respuesta> getRespuestas(Pregunta q, int pageSize, int page, boolean crono);\n\n\t/** Devuelve la lista de preguntas con mas votos positivos.\n\t * @param limit El numero maximo de preguntas a devolver. */\n\tpublic List<Pregunta> getPreguntasMasVotadas(int limit);\n\n\t/** Devuelve la lista de preguntas que no tienen ni una sola respuesta. */\n\tpublic List<Pregunta> getPreguntasSinResponder(int limit);\n\n\t/** Devuelve la lista de preguntas cuyo autor no ha elegido una respuesta. */\n\tpublic List<Pregunta> getPreguntasSinResolver(int limit);\n\n\t/** Registra un voto que un usuario hace a una pregunta.\n\t * @param user El usuario que hace el voto\n\t * @param pregunta La pregunta a la cual se aplica el voto\n\t * @param up Indica si el voto es positivo (true) o negativo (false).\n\t * @throws PrivilegioInsuficienteException si el usuario no tiene reputacion suficiente para dar un voto negativo. */\n\tpublic VotoPregunta vota(Usuario user, Pregunta pregunta, boolean up) throws PrivilegioInsuficienteException;\n\n\t/** Registra un voto que un usuario hace a una respuesta que se hizo a una pregunta.\n\t * @param user El usuario que hace el voto.\n\t * @param resp La respuesta a la cual se aplica el voto.\n\t * @param up Indica si el voto es positivo (true) o negativo (false).\n\t * @throws PrivilegioInsuficienteException si el usuario no tiene reputacion suficiente para dar un voto negativo. */\n\tpublic VotoRespuesta vota(Usuario user, Respuesta resp, boolean up) throws PrivilegioInsuficienteException;\n\n\t/** Busca y devuelve el voto realizado por el usuario indicado a la pregunta especificada, si es que existe. */\n\tpublic VotoPregunta findVoto(Usuario user, Pregunta pregunta);\n\n\t/** Busca y devuelve el voto hecho por el usuario indicado a la respuesta especificada, si es que existe. */\n\tpublic VotoRespuesta findVoto(Usuario user, Respuesta respuesta);\n\n\tpublic void insert(Pregunta p);\n\n\tpublic void update(Pregunta p);\n\n\tpublic void delete(Pregunta p);\n\n\t/** Crea una respuesta con el texto especificado, para la pregunta especificada, por el autor especificado.\n\t * @return La respuesta recien creada. */\n\tpublic Respuesta addRespuesta(String resp, Pregunta p, Usuario autor);\n\n\t/** Agrega un comentario a la pregunta especificada, a nombre del usuario especificado. */\n\tpublic ComentPregunta addComentario(String c, Pregunta p, Usuario autor);\n\n\t/** Agrega un comentario a la respuesta especificada, a nombre del usuario especificado. */\n\tpublic ComentRespuesta addComentario(String c, Respuesta r, Usuario autor);\n\n\t/** Agrega el tag especificado a la pregunta. Primero se busca el tag existente para relacionarlo con la\n\t * pregunta, pero si no existe, se crea uno nuevo. */\n\tpublic void addTag(String tag, Pregunta p);\n\n\t/** Devuelve una lista con tags que contengan el texto parcial especificado. */\n\tpublic List<TagPregunta> findMatchingTags(String parcial);\n\n}", "public List<tipoDetalle> obtenerDetallesBD(){\n List<tipoDetalle> detalles=new ArrayList<>();\n try{\n //Obteniendo el ID del auto desde la activity de Mostrar_datos\n String idAuto;\n Bundle extras=getIntent().getExtras();\n if(extras!=null)\n {\n idAuto=extras.getString(\"id_auto\");\n Log.e(\"auto\",\"el auto id es= \"+idAuto);\n ResultSet rs = (ResultSet) TNT.mostrarDetalles(idAuto);\n while (rs.next()){\n detalles.add(new tipoDetalle(rs.getString(\"id\"), rs.getString(\"nombre\"), rs.getString(\"fecha_entrada\"), rs.getString(\"fecha_salida\"), rs.getString(\"fecha_terminacion\"), rs.getString(\"estado\"), rs.getString(\"descripcion\"), rs.getString(\"costo\")));\n }\n }\n }catch(SQLException e){\n Toast.makeText(getApplicationContext(),e.getMessage(),Toast.LENGTH_SHORT).show();\n }\n return detalles;\n }", "public ComandosJuego() //constructor\n\t{\n\t\tlista = new ArrayList<String>();\n\t}", "public List<Tripulante> buscarTodosTripulantes();", "public PresuTipoProyectoLogic()throws SQLException,Exception {\r\n\t\tsuper();\r\n\t\t\r\n\t\ttry\t{\t\t\t\t\t\t\r\n\t\t\tthis.presutipoproyectoDataAccess = new PresuTipoProyectoDataAccess();\r\n\t\t\t\r\n\t\t\tthis.presutipoproyectos= new ArrayList<PresuTipoProyecto>();\r\n\t\t\tthis.presutipoproyecto= new PresuTipoProyecto();\r\n\t\t\t\r\n\t\t\tthis.presutipoproyectoObject=new Object();\r\n\t\t\tthis.presutipoproyectosObject=new ArrayList<Object>();\r\n\t\t\t\t\r\n\t\t\t/*\r\n\t\t\tthis.connexion=new Connexion();\r\n\t\t\tthis.datosCliente=new DatosCliente();\r\n\t\t\tthis.arrDatoGeneral= new ArrayList<DatoGeneral>();\r\n\t\t\t\r\n\t\t\t//INICIALIZA PARAMETROS CONEXION\r\n\t\t\tthis.connexionType=Constantes.CONNEXIONTYPE;\r\n\t\t\tthis.parameterDbType=Constantes.PARAMETERDBTYPE;\r\n\t\t\t\r\n\t\t\tif(Constantes.CONNEXIONTYPE.equals(ConnexionType.HIBERNATE)) {\r\n\t\t\t\tthis.entityManagerFactory=ConstantesCommon.JPAENTITYMANAGERFACTORY;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tthis.datosDeep=new DatosDeep();\r\n\t\t\tthis.isConDeep=false;\r\n\t\t\t*/\r\n\t\t\t\r\n\t\t\tthis.presutipoproyectoDataAccess.setConnexionType(this.connexionType);\r\n\t\t\tthis.presutipoproyectoDataAccess.setParameterDbType(this.parameterDbType);\r\n\t\t\t\r\n\t\t\t\r\n\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\tthis.invalidValues=new InvalidValue[0];\r\n\t\t\tthis.stringBuilder=new StringBuilder();\r\n\t\t\tthis.conMostrarMensajesStringBuilder=true;\r\n\t\t\t\r\n\t\t} catch(Exception e) {\r\n\t\t\tFunciones.manageException(logger,e);\r\n\t\t\tthrow e;\r\n\t\t}\t \r\n }", "public ArrayList<ModelAprendizagemTeorica> getListaAprendizagemTeoricaDAO(){\n ArrayList<ModelAprendizagemTeorica> listamodelAprendizagemTeorica = new ArrayList();\n ModelAprendizagemTeorica modelAprendizagemTeorica = new ModelAprendizagemTeorica();\n try {\n this.conectar();\n this.executarSQL(\n \"SELECT \"\n + \"id,\"\n + \"descricao,\"\n + \"texto\"\n + \" FROM\"\n + \" aprendizagem_teorica\"\n + \";\"\n );\n\n while(this.getResultSet().next()){\n modelAprendizagemTeorica = new ModelAprendizagemTeorica();\n modelAprendizagemTeorica.setId(this.getResultSet().getInt(1));\n modelAprendizagemTeorica.setDescricao(this.getResultSet().getString(2));\n modelAprendizagemTeorica.setTexto(this.getResultSet().getString(3));\n listamodelAprendizagemTeorica.add(modelAprendizagemTeorica);\n }\n }catch(Exception e){\n e.printStackTrace();\n }finally{\n this.fecharConexao();\n }\n return listamodelAprendizagemTeorica;\n }", "public static void main(String[]args) {PostagemDAO pDAO = new PostagemDAO();\n////\t\tPostagem postagem = new Postagem();\n////\t\tString s = \"1999-3-9\";\n////\t\tDate data = Date.valueOf(s);\n////\t\tpostagem.setDescPostagem(\"john johnes\");\n////\t\tpostagem.setDataPostagem(data);\n////\t\tpDAO.inserirPostagem(postagem);\n//\t\t\n////\t\tImagensDAO iDAO = new ImagensDAO();\n////\t\tImagens imagens = new Imagens();\n////\t\t\n////\t\timagens.setTipoImagem((short)2);\n////\t\timagens.setArquivoImagem(\"busato\");\n////\t\tiDAO.inserirImagem(imagens);\n//\t\t\n//\t\tUsuarioDAO uDAO = new UsuarioDAO();\n//\t\tUsuario usuario = new Usuario();\n//\t\t\n////\t\tusuario.setEmail(\"sadasda\");\n////\t\tusuario.setNickname(\"sdasdasae\");\n////\t\tusuario.setSenha(\"12345\");\n////\t\tusuario.setSteamid(31231231);\n////\t\tusuario.setFotoPerfil(\"FOTO\");\n////\t\tuDAO.cadastrar(usuario);\n//\t\t\n//\t\t\n//\t\tComentariosDAO cDAO = new ComentariosDAO();\n//\t\tComentarios comentarios = new Comentarios();\n//\t\t\n//\t\tcomentarios.setCorpoComentario(\"comentario comentado\");\n//\t\tcomentarios.setDataComentario(Date.valueOf(\"2018-03-09\"));\n//\t\tcDAO.inserirComentarios(comentarios);\n//\t\t\n//\t\tSystem.out.println(\"sera que comitou\");\n//\t\t\n\t\t\n\t\tPostagem postagem = new Postagem();\n\t\tpostagem.setDescPostagem(\"Uma formiguinha subindo pela parede\");\n\t\tpostagem.setTituloPostagem(\"Formiguinha\");\n\t\t\n\t\tPostagemDAO poDAO = new PostagemDAO();\n\t\tpostagem = poDAO.inserirPostagem(postagem);\n\t\t\n\t\tSystem.out.println(postagem.getIdPostagem());\n\t\t\n\t}", "public static ArrayList cargarEstudiantes() {\r\n try {\r\n Class.forName(\"com.mysql.jdbc.Driver\");\r\n Connection conexion = DriverManager.getConnection(\"jdbc:mysql://localhost/registrolaboratorios\", \"root\", \"admin\");\r\n System.out.printf(\"conexion establesida\");\r\n Statement sentencia = conexion.createStatement();\r\n ResultSet necesario = sentencia.executeQuery(\"select * from estudiante\");\r\n\r\n Estudiante estudiante;\r\n\r\n listaEstudiantes = new ArrayList<>();\r\n while (necesario.next()) {\r\n\r\n String Nro_de_ID = necesario.getString(\"Nro_de_ID\");\r\n String nombres = necesario.getString(\"Nombres\");\r\n String apellidos = necesario.getString(\"Apellidos\");\r\n String laboratorio = necesario.getString(\"Laboratorio\");\r\n String carrera = necesario.getString(\"Carrera\");\r\n String modulo = necesario.getString(\"Modulo\");\r\n String materia = necesario.getString(\"Materia\");\r\n String fecha = necesario.getString(\"Fecha\");\r\n String horaIngreso = necesario.getString(\"Hora_Ingreso\");\r\n String horaSalida = necesario.getString(\"Hora_Salida\");\r\n\r\n estudiante = new Estudiante();\r\n\r\n estudiante.setNro_de_ID(Nro_de_ID);\r\n estudiante.setNombres(nombres);\r\n estudiante.setLaboratorio(laboratorio);\r\n estudiante.setCarrera(carrera);\r\n estudiante.setModulo(modulo);\r\n estudiante.setMateria(materia);\r\n estudiante.setFecha(fecha);\r\n estudiante.setHora_Ingreso(horaIngreso);\r\n estudiante.setHora_Salida(horaSalida);\r\n\r\n listaEstudiantes.add(estudiante);\r\n\r\n }\r\n sentencia.close();\r\n conexion.close();\r\n } catch (Exception ex) {\r\n System.out.println(\"Error en la conexion\" + ex);\r\n }\r\n return listaEstudiantes;\r\n }", "public ProductosPuntoVentaDaoImpl() {\r\n }", "private final void inicializarListas() {\r\n\t\t//Cargo la Lista de orden menos uno\r\n\t\tIterator<Character> it = Constantes.LISTA_CHARSET_LATIN.iterator();\r\n\t\tCharacter letra;\r\n\t\twhile (it.hasNext()) {\r\n\t\t\tletra = it.next();\r\n\t\t\tthis.contextoOrdenMenosUno.crearCharEnContexto(letra);\r\n\t\t}\r\n\t\t\r\n\t\tthis.contextoOrdenMenosUno.crearCharEnContexto(Constantes.EOF);\r\n\t\t\r\n\t\tthis.contextoOrdenMenosUno.actualizarProbabilidades();\r\n\t\t\r\n\t\t//Cargo las listas de ordenes desde 0 al orden definido en la configuración\r\n\t\tOrden ordenContexto;\r\n\t\tfor (int i = 0; i <= this.orden; i++) {\r\n\t\t\tordenContexto = new Orden();\r\n\t\t\tthis.listaOrdenes.add(ordenContexto);\r\n\t\t}\r\n\t}", "public List<GoleadoresDTO> listarTodo(int idTorneo,Connection conexion) throws MiExcepcion {\n ArrayList<GoleadoresDTO> listarGoleadores = new ArrayList();\n\n try {\n String query = \"SELECT DISTINCT usuarios.primerNombre, \" +\n\" usuarios.primerApellido, tablagoleadores.numeroGoles, tablagoleadores.idEquipo, \"+ \n\" tablagoleadores.idTorneo,tablagoleadores.idJugador, \" +\n\" equipo.nombre \" +\n\" FROM tablagoleadores \" +\n\" INNER JOIN jugadoresporequipo \" +\n\" ON tablagoleadores.idJugador = jugadoresporequipo.codigoJugador \" +\n\" INNER JOIN usuarios \" +\n\" ON jugadoresporequipo.codigoJugador = usuarios.idUsuario \" +\n\" INNER JOIN equiposdeltorneo \" +\n\" ON tablagoleadores.idEquipo = equiposdeltorneo.equipoCodigo \" +\n\" INNER JOIN equipo \" +\n\" ON equiposdeltorneo.equipoCodigo = equipo.codigo \" +\n\" INNER JOIN torneo \" +\n\" ON tablagoleadores.idTorneo = torneo.idTorneo \" +\n\" WHERE tablagoleadores.idTorneo = ? \" +\n\" AND equiposdeltorneo.torneoIdTorneo=? \" +\n\" ORDER BY numeroGoles DESC\";\n statement = conexion.prepareStatement(query);\n statement.setInt(1, idTorneo);\n statement.setInt(2, idTorneo);\n rs = statement.executeQuery();\n //mientras que halla registros cree un nuevo dto y pasele la info\n while (rs.next()) {\n //crea un nuevo dto\n GoleadoresDTO gol = new GoleadoresDTO();\n UsuariosDTO usu = new UsuariosDTO();\n EquipoDTO equipo = new EquipoDTO();\n //le pasamos los datos que se encuentren\n gol.setNumeroGoles(rs.getInt(\"numeroGoles\"));\n gol.setIdEquipo(rs.getInt(\"idEquipo\"));\n gol.setIdTorneo(rs.getInt(\"idTorneo\"));\n gol.setIdJugador(rs.getLong(\"idJugador\"));\n usu.setPrimerNombre(rs.getString(\"primerNombre\"));\n usu.setPrimerApellido(rs.getString(\"primerApellido\"));\n gol.setUsu(usu);//paso el usuario al objeto \n equipo.setNombre(rs.getString(\"nombre\"));\n gol.setEquipo(equipo);\n //agregamos el objeto dto al arreglo\n listarGoleadores.add(gol);\n\n }\n } catch (SQLException sqlexception) {\n throw new MiExcepcion(\"Error listando goles\", sqlexception);\n\n } \n// finally {\n// try{\n// if (statement != null) {\n// statement.close(); \n// }\n// }catch (SQLException sqlexception) {\n// throw new MiExcepcion(\"Error listando goles\", sqlexception);\n//\n// }\n// }\n //devolvemos el arreglo\n return listarGoleadores;\n\n }", "@Override\n\tpublic void crearPoblacion() {\n\t\tif(this.terminales == null || this.funciones == null) {\n\t\t\tSystem.out.println(\"Error. Los terminales y las funciones tienen que estar inicializados\");\n\t\t\treturn;\n\t\t}\n\t\t\n\t\tpoblacion = new ArrayList<>();\n\t\tfor(int i = 0; i < this.numIndividuos; i++) {\n\t\t\tIndividuo ind = new Individuo();\n\t\t\tind.crearIndividuoAleatorio(this.profundidad, this.terminales, this.funciones);\n\t\t\tthis.poblacion.add(ind);\n\t\t}\n\t}", "private List<Node<T>> auxiliarRecorridoPost(Node<T> nodo, List<Node<T>> lista) {\r\n\t\tif (nodo.getChildren() != null) {// Si tiene hijos\r\n\t\t\tList<Node<T>> hijos = nodo.getChildren();// Hijos\r\n\t\t\tfor (int i = 1; i <= hijos.size(); i++) {\r\n\t\t\t\tauxiliarRecorridoPost(hijos.get(i), lista);// Recursividad\r\n\t\t\t}\r\n\t\t}\r\n\t\tlista.add(nodo);// Aņade a la lista\r\n\t\treturn lista;// Devuelve lista\r\n\t}", "public void ConsultaVehiculosSQlite() {\n preguntas = mydb.getCartList();\n for( int i = 0 ; i < preguntas.size() ; i++ ){\n //Toast.makeText(getApplicationContext(), preguntas.get( i ).getPregunta(), Toast.LENGTH_SHORT).show();\n persons.add(new Solicitud(\"Pregunta \" + String.valueOf(i+1) +\": \"+preguntas.get( i ).getPregunta(),\"Fecha: \"+ preguntas.get( i ).getFecha(), R.drawable.solicitudes,\"Motivo: \"+preguntas.get( i ).getMotivo(),\"Observacion: \"+preguntas.get( i ).getObservacion(),\"\"));\n }\n }", "public List<Anuncio> getAnuncios(String idRevista) throws Exception{\n List<Anuncio> artigos = new ArrayList<>();\n Anuncio a = null;\n String idR, titulo, conteudo, categoria,nrConsultas,contacto,empresaID;\n\n try{\n connection = con.connect();\n PreparedStatement\n stm = connection.prepareStatement(\"SELECT Anuncio_ID FROM AnuncioRevista \" +\n \"WHERE Revista_ID = \" + idRevista);\n ResultSet rs = stm.executeQuery();\n ResultSet r;\n while(rs.next()){\n stm = connection.prepareStatement(\"SELECT * FROM Anuncio \" +\n \"WHERE ID = \" + rs.getString(\"Anuncio_ID\"));\n r = stm.executeQuery();\n if(r.next()){\n idR = r.getString(\"ID\");\n titulo = r.getString(\"Titulo\");\n conteudo = r.getString(\"Conteudo\");\n categoria = r.getString(\"Categoria\");\n nrConsultas = r.getString(\"NrConsultas\");\n contacto = r.getString(\"Contacto\");\n empresaID = r.getString(\"Empresa_ID\");\n a = new Anuncio(idR,titulo,conteudo,categoria,nrConsultas,contacto,empresaID);\n artigos.add(a);\n }\n }\n }\n catch (Exception e) {\n e.printStackTrace();\n }\n finally {\n con.close(connection);\n }\n return artigos;\n }", "public Listas_simplemente_enlazada(){\r\n inicio=null; // este constructor me va servir para apuntar el elemento\r\n fin=null;\r\n }", "public ProtocoloDAO() {\n }", "public PujaDAO() {\n con = null;\n st = null;\n rs = null;\n }", "public List<DomicilioDTO> getDomicilios() throws LogicaRestauranteException \r\n {\r\n \tif (domicilios == null) {\r\n \t\tlogger.severe(\"Error interno: lista de domicilios no se encuentra.\");\r\n \t\tthrow new LogicaRestauranteException(\"Error interno: lista de domicilios no se encuentra.\"); \t\t\r\n \t}\r\n \t\r\n \tlogger.info(\"retornando todos los domicilios\");\r\n \treturn domicilios;\r\n }", "public List<Location> listarPorAnunciante() throws SQLException {\r\n \r\n //OBJETO LISTA DE COMODOS\r\n List<Location> enderecos = new ArrayList<>(); \r\n \r\n //OBJETO DE CONEXÃO COM O BANCO\r\n Connection conn = ConnectionMVC.getConnection();\r\n \r\n //OBJETO DE INSTRUÇÃO SQL\r\n PreparedStatement pStatement = null;\r\n \r\n //OBJETO CONJUNTO DE RESULTADOS DA TABELA IMOVEL\r\n ResultSet rs = null;\r\n \r\n try {\r\n \r\n //INSTRUÇÃO SQL DE LISTAR IMÓVEIS\r\n pStatement = conn.prepareStatement(\"select * from pessoa inner join anuncio inner join imagem inner join imovel inner join location inner join comodo\");\r\n \r\n //OBJETO DE RESULTADO DA INSTRUÇÃO\r\n rs = pStatement.executeQuery();\r\n \r\n //PERCORRER OS DADOS DA INSTRUÇÃO\r\n while(rs.next()) {\r\n \r\n //OBJETO UTILIZADO PARA BUSCA\r\n Location endereco = new Location();\r\n \r\n //PARAMETROS DE LISTAGEM\r\n endereco.setCep(rs.getString(\"cep\"));\r\n endereco.setRua(rs.getString(\"rua\"));\r\n endereco.setNumero(rs.getInt(\"numero\"));\r\n endereco.setBairro(rs.getString(\"bairro\"));\r\n endereco.setCidade(rs.getString(\"cidade\"));\r\n endereco.setUf(rs.getString(\"uf\"));\r\n\r\n //OBJETO ADICIONADO A LISTA\r\n enderecos.add(endereco); \r\n }\r\n \r\n //MENSAGEM DE ERRO\r\n } catch (SQLException ErrorSql) {\r\n JOptionPane.showMessageDialog(null, \"Erro ao listar do banco: \" +ErrorSql,\"erro\", JOptionPane.ERROR_MESSAGE);\r\n\r\n //FINALIZAR/FECHAR CONEXÃO\r\n }finally {\r\n ConnectionMVC.closeConnection(conn, pStatement, rs);\r\n } \r\n return enderecos;\r\n }", "private static void pruebas() {\n\t\tResultadosDaoImpl resultadosDao = new ResultadosDaoImpl();\r\n\t\tPartidosDaoImpl partidosDao = new PartidosDaoImpl();\r\n\t\tEquiposDaoImpl equiposDao = new EquiposDaoImpl();\r\n\t\tJornadasDaoImpl jornadasDao = new JornadasDaoImpl();\r\n\t\tEstadisticasDaoImpl estadisticasDao = new EstadisticasDaoImpl();\r\n\t\t\r\n//\t\tLong goles = resultadosDao.getGolesTotalesCasa();\r\n\t\t\r\n\t\tEquipos equipoC = equiposDao.getEquipoById(7);\r\n\t\tEquipos equipoF = equiposDao.getEquipoById(6);\r\n\t\tJornadas jornada = jornadasDao.nextJornada();\r\n//\t\t\r\n//\t\tpartidosDao.getPartidosCasa(equipo,jornada);\r\n\t\t\r\n//\t\tLong goles = resultadosDao.getGolesFavorCasa(equipo);\r\n\t\t\r\n//\t\tLong goles = resultadosDao.getGolesContraFuera(equipo);\r\n//\t\tdouble phiVM = staticsC.getValorMercado() / (estadisticasDao.getValorMercadoMedio());\r\n\t\t\r\n\t\tEstadisticas staticsC = estadisticasDao.getStatics(equipoC);\r\n\t\tEstadisticas staticsF = estadisticasDao.getStatics(equipoF);\r\n\t\t\r\n\t\tDouble phiF = PlayMethods.analizeStaticsFuera(staticsF,staticsC,jornada);\r\n\t\tDouble phiC = PlayMethods.analizeStaticsCasa(staticsC,staticsF,jornada);\r\n\t\t\r\n\t\t\r\n\t}", "private void inicializarUsuarios(){\n usuarios = new ArrayList<Usuario>();\n Administrador admin=new Administrador();\n admin.setCodigo(1);\n admin.setApellidos(\"Alcaide Gomez\");\n admin.setNombre(\"Juan Carlos\");\n admin.setDni(\"31000518Z\");\n admin.setPassword(\"admin\");\n admin.setCorreo(\"[email protected]\");\n admin.setDireccion(\"Sebastian Garrido 54\");\n admin.setNacimiento(new Date(1991, 12, 29));\n admin.setNacionalidad(\"España\");\n admin.setCentro(\"Centro\");\n admin.setSexo(\"Varon\");\n admin.setDespacho(\"301\");\n usuarios.add(admin);\n \n JefeServicio js=new JefeServicio();\n js.setCodigo(2);\n js.setApellidos(\"Gutierrez Cazorla\");\n js.setNombre(\"Ruben\");\n js.setDni(\"75895329k\");\n js.setPassword(\"admin\");\n js.setCorreo(\"[email protected]\");\n js.setDireccion(\"Sebastian Garrido 54\");\n js.setNacimiento(new Date(1991, 12, 29));\n js.setNacionalidad(\"España\");\n js.setCentro(\"Centro\");\n js.setSexo(\"Varon\");\n js.setDespacho(\"301\");\n \n usuarios.add(js);\n \n \n Ciudadano c =new Ciudadano();\n c.setCodigo(3);\n c.setApellidos(\"Moreno\");\n c.setNombre(\"Maria\");\n c.setDni(\"123\");\n c.setPassword(\"123\");\n c.setCorreo(\"[email protected]\");\n c.setDireccion(\"Sebastian Garrido 54\");\n c.setNacimiento(new Date(1992, 01, 12));\n c.setCentro(\"Teatinos\");\n c.setNacionalidad(\"España\");\n c.setSexo(\"Mujer\");\n c.setTelefono(\"999\");\n usuarios.add(c);\n \n //--Administrativos--\n Administrativo a =new Administrativo();\n a.setCodigo(4);\n a.setApellidos(\"Fernández\");\n a.setNombre(\"Salva\");\n a.setDni(\"1234\");\n a.setPassword(\"1234\");\n a.setCorreo(\"[email protected]\");\n a.setDireccion(\"Sebastian Garrido 54\");\n a.setNacimiento(new Date(1991, 9, 29));\n a.setNacionalidad(\"España\");\n a.setSexo(\"Hombre\");\n a.setCentro(\"Centro\");\n usuarios.add(a);\n \n Tecnico tec=new Tecnico();\n tec.setCodigo(5);\n tec.setApellidos(\"Alcaide Gomez\");\n tec.setNombre(\"Juan Carlos\");\n tec.setDni(\"tecnico\");\n tec.setPassword(\"tecnico\");\n tec.setCorreo(\"[email protected]\");\n tec.setDireccion(\"Sebastian Garrido 54\");\n tec.setNacimiento(new Date(1991, 12, 29));\n tec.setNacionalidad(\"España\");\n tec.setCentro(\"Centro\");\n tec.setSexo(\"Varon\");\n tec.setDespacho(\"301\");\n tec.setTelefono(\"664671040\");\n tec.setEspecialidad(\"Maltrato\");\n tec.setTfijo(957375546);\n \n usuarios.add(tec);\n \n }", "public List<Location> listarPorCliente() throws SQLException {\r\n \r\n //OBJETO LISTA DE COMODOS\r\n List<Location> enderecos = new ArrayList<>(); \r\n \r\n //OBJETO DE CONEXÃO COM O BANCO\r\n Connection conn = ConnectionMVC.getConnection();\r\n \r\n //OBJETO DE INSTRUÇÃO SQL\r\n PreparedStatement pStatement = null;\r\n \r\n //OBJETO CONJUNTO DE RESULTADOS DA TABELA IMOVEL\r\n ResultSet rs = null;\r\n \r\n try {\r\n \r\n //INSTRUÇÃO SQL DE LISTAR ENDEREÇO ATRAVES DE VIEW CRIADA NO JDBC\r\n pStatement = conn.prepareStatement(\"select * from dados_imovel_cliente;\");\r\n \r\n //OBJETO DE RESULTADO DA INSTRUÇÃO\r\n rs = pStatement.executeQuery();\r\n \r\n //PERCORRER OS DADOS DA INSTRUÇÃO\r\n while(rs.next()) {\r\n \r\n //OBJETO UTILIZADO PARA BUSCA\r\n Location endereco = new Location();\r\n \r\n //PARAMETROS DE LISTAGEM\r\n endereco.setCep(rs.getString(\"cep\"));\r\n endereco.setRua(rs.getString(\"rua\"));\r\n endereco.setNumero(rs.getInt(\"numero\"));\r\n endereco.setBairro(rs.getString(\"bairro\"));\r\n endereco.setCidade(rs.getString(\"cidade\"));\r\n endereco.setUf(rs.getString(\"uf\"));\r\n endereco.setAndar(rs.getInt(\"andar\"));\r\n endereco.setComplemento(rs.getString(\"complemento\"));\r\n \r\n //OBJETO ADICIONADO A LISTA\r\n enderecos.add(endereco); \r\n }\r\n \r\n //MENSAGEM DE ERRO\r\n } catch (SQLException ErrorSql) {\r\n JOptionPane.showMessageDialog(null, \"Erro ao listar do banco: \" +ErrorSql,\"erro\", JOptionPane.ERROR_MESSAGE);\r\n\r\n //FINALIZAR/FECHAR CONEXÃO\r\n }finally {\r\n ConnectionMVC.closeConnection(conn, pStatement, rs);\r\n } \r\n return enderecos;\r\n }", "public ArrayList<AnuncioDTO> ObtenerAnuncios(){\n ArrayList<AnuncioDTO> ret=new ArrayList<AnuncioDTO>();\n\n try{\n Connection conect = getConection();\n Properties sqlProp = new Properties();\n InputStream is = new FileInputStream(sqlPropertiesPath);\n sqlProp.load(is);\n PreparedStatement ps = conect.prepareStatement(sqlProp.getProperty(\"getAll.Anuncio\"));\n ResultSet rs = ps.executeQuery();\n while(rs.next()){\n int id=rs.getInt(1);\n TipoAnuncio tipoAnuncio=TipoAnuncio.valueOf(rs.getString(2));\n String titulo = rs.getString(3);\n String cuerpo = rs.getString(4);\n Date fechaPublicacion = new Date(rs.getDate(5).getTime());\n Date fechaFin=null;\n if(tipoAnuncio.equals(TipoAnuncio.Flash)){\n fechaFin= new Date(rs.getDate(6).getTime());\n }\n String emailPropietario = rs.getString(7);\n EstadoAnuncio estadoAnuncio = EstadoAnuncio.valueOf(rs.getString(8));\n \n ArrayList<String>temas=null;\n if(tipoAnuncio.equals(TipoAnuncio.Tematico)){\n temas=new ArrayList<String>();\n ArrayList<String>temasId = null;\n temasId=new ArrayList<String>(Arrays.asList(rs.getString(9).split(\",\")));\n InteresesDAO interesesDAO = new InteresesDAO(sqlPropertiesPath);\n Hashtable<Integer,String> intereses = interesesDAO.DevolverIntereses();\n for(String interes : temasId){\n temas.add(intereses.get(Integer.parseInt(interes)));\n }\n\n }\n ArrayList<String>destinatarios = ObtenerDestinatariosAnuncio(id);\n AnuncioDTO anuncioDTO=new AnuncioDTO(id, tipoAnuncio, titulo, cuerpo, fechaPublicacion, fechaFin, emailPropietario, estadoAnuncio, temas,destinatarios);\n\n ret.add(anuncioDTO);\n }\n }catch(Exception e){\n e.printStackTrace();\n }\n return ret;\n }", "public void crearAtracciones(){\n \n //Añado atracciones tipo A\n for (int i = 0; i < 4 ; i++){\n Atraccion atraccion = new A();\n atracciones.add(atraccion);\n }\n //Añado atracciones tipo B\n for (int i = 0; i < 6 ; i++){\n Atraccion atraccion = new B();\n atracciones.add(atraccion);\n }\n //Añado atracciones tipo C\n for (int i = 0; i < 4 ; i++){\n Atraccion atraccion = new C();\n atracciones.add(atraccion);\n }\n //Añado atracciones tipo D\n for (int i = 0; i < 3 ; i++){\n Atraccion atraccion = new D();\n atracciones.add(atraccion);\n }\n //Añado atracciones tipo E\n for (int i = 0; i < 7 ; i++){\n Atraccion atraccion = new E();\n atracciones.add(atraccion);\n }\n \n }", "@Override\n public ArrayList<Asesor> getListaAsesores() {\n ArrayList<Asesor> listaAsesores = new ArrayList();\n ConexionSQL conexionSql = new ConexionSQL();\n Connection conexion = conexionSql.getConexion();\n try{\n PreparedStatement orden = conexion.prepareStatement(\"select * from asesor\");\n ResultSet resultadoConsulta = orden.executeQuery();\n String numeroPersonal;\n String nombre;\n String idioma;\n String telefono;\n String correo;\n Asesor asesor;\n while(resultadoConsulta.next()){\n numeroPersonal = resultadoConsulta.getString(1);\n nombre = resultadoConsulta.getString(4) +\" \"+ resultadoConsulta.getString(6) +\" \"+ resultadoConsulta.getString(5);\n idioma = resultadoConsulta.getString(2);\n telefono = resultadoConsulta.getString(8);\n correo = resultadoConsulta.getString(7);\n asesor = new Asesor(numeroPersonal, nombre, idioma,telefono,correo);\n listaAsesores.add(asesor);\n }\n }catch(SQLException | NullPointerException excepcion){\n Logger logger = Logger.getLogger(\"Logger\");\n logger.log(Level.WARNING, \"La conexión podría ser nula | la sentencia SQL esta mal\");\n }\n return listaAsesores;\n }", "public BusquedaLibrosForManagedBean() {\r\n libros=new ArrayList<>();\r\n autores=new ArrayList<>();\r\n libro=new Libro(1, 500, \"Codigo limpio\", new Autor(\"Martin\", \"Robert\"));\r\n autores.add(libro.getAutor());\r\n libros.add(libro);\r\n libro=new Libro(2, 300, \"No me hagas pensar\", new Autor(\"Steve\", \"Krug\"));\r\n autores.add(libro.getAutor());\r\n libros.add(libro);\r\n libro=new Libro(3, 350, \"El libro negro del programador\", new Autor(\"Rafael\", \"Gomes\"));\r\n autores.add(libro.getAutor());\r\n libros.add(libro); \r\n libro=new Libro(4, 800, \"Romeo y Julieta\", new Autor(\"William\", \"Sheakespeare\"));\r\n autores.add(libro.getAutor());\r\n libros.add(libro); \r\n libro=new Libro(5, 700, \"Los hombres que no amaban a las mujeres\", new Autor(\"Larsson\", \"Stieg\"));\r\n autores.add(libro.getAutor());\r\n libros.add(libro);\r\n libro=new Libro();\r\n autor=new Autor();\r\n palabra = new String();\r\n dialogo = false;\r\n dialogo2 = false;\r\n }", "private void createRestaurantTrees() {\r\n while (!restaurantArray.isEmpty()) {\r\n Restaurant element = restaurantArray.dequeue();\r\n ratingTree.add(element);\r\n deliveryTree.add(element);\r\n }\r\n }", "public List<Empresa> getData() {\n lista = new ArrayList<Empresa>();\n aux = new ArrayList<Empresa>();\n Empresa emp = new Empresa(1, \"restaurantes\", \"KFC\", \"Av. Canada 312\", \"tel:5050505\", \"[email protected]\", \"www.kfc.com\", \"https://upload.wikimedia.org/wikipedia/en/thumb/b/bf/KFC_logo.svg/1024px-KFC_logo.svg.png\", \"Restaurante de comida rapida.exe\");\n lista.add(emp);\n emp = new Empresa(2, \"restaurantes\", \"Pizza Hut\", \"Av. Aviación 352\", \"tel:1111111\", \"[email protected]\", \"www.pizzahut.com\", \"https://upload.wikimedia.org/wikipedia/en/thumb/d/d2/Pizza_Hut_logo.svg/1088px-Pizza_Hut_logo.svg.png\", \"Restaurante de comida rapida.exe\");\n lista.add(emp);\n emp = new Empresa(3, \"restaurantes\", \"Chifa XUNFAN\", \"Av. del Aire 122\", \"tel:1233121\", \"[email protected]\", \"www.chifaxunfan.com\", \"https://www.piscotrail.com/sf/media/2011/01/chifa.png\", \"Restaurante de comida oriental.exe\");\n lista.add(emp);\n emp = new Empresa(4, \"Restaurantes\", \"El buen sabor\", \"Av. Benavides 522\", \"tel:5366564\", \"[email protected]\", \"www.elbuensabor.com\", \"http://www.elbuensaborperu.com/images/imagen1.jpg\", \"Restaurante de comida peruana\");\n lista.add(emp);\n emp = new Empresa(5, \"Restaurantes\", \"La Romana\", \"Av. San borja norte 522\", \"tel:6462453\", \"[email protected]\", \"www.laromana.com\", \"https://3.bp.blogspot.com/-rAxbci6-cM4/WE7ZppGVe4I/AAAAAAAA3fY/TkiySUlQJTgR7xkOXViJ1IjFRjOulFWnwCLcB/s1600/pizzeria-la-romana2.jpg\", \"Restaurante de comida italiana\");\n lista.add(emp);\n emp = new Empresa(6, \"Ocio\", \"Cinemark\", \"Av. San borja norte 522\", \"tel:6462453\", \"[email protected]\", \"www.cinemark.com.pe\", \"https://s3.amazonaws.com/moviefone/images/theaters/icons/cienmark-logo.png\", \"El mejor cine XD\");\n lista.add(emp);\n emp = new Empresa(7, \"Educación\", \"TECSUP\", \"Av. cascanueces 233\", \"tel:6462453\", \"[email protected]\", \"www.tecsup.edu.pe\", \"http://www.miningpress.com/media/img/empresas/tecsup_1783.jpg\", \"Instituto tecnologico del Perú\");\n lista.add(emp);\n emp = new Empresa(8, \"Ocio\", \"CC. Arenales\", \"Av. arenales 233\", \"tel:6462453\", \"[email protected]\", \"www.arenales.com.pe\", \"http://4.bp.blogspot.com/-jzojuNRfh_s/UbYXFUsN9wI/AAAAAAAAFjU/ExT_GmT8kDc/s1600/35366235.jpg\", \"Centro comercial arenales ubicado en la avenida Arenales al costado del Metro Arenales\");\n lista.add(emp);\n emp = new Empresa(9, \"Ocio\", \"Jockey Plaza\", \"Av. Javier Prado 233\", \"tel:6462453\", \"[email protected]\", \"www.jockeyplaza.com.pe\", \"http://3.bp.blogspot.com/-a2DHRxS7R8k/T-m6gs9Zn7I/AAAAAAAAAFA/z_KeH2QTu18/s1600/logo+del+jockey.png\", \"Un Centro Comercial con los diversos mercados centrados en la moda y tendencia del mundo moderno\");\n lista.add(emp);\n emp = new Empresa(10, \"Educación\", \"UPC\", \"Av. Monterrico 233\", \"tel:6462453\", \"[email protected]\", \"www.upc.edu.pe\", \"https://upload.wikimedia.org/wikipedia/commons/f/fc/UPC_logo_transparente.png\", \"Universidad Peruana de Ciencias Aplicadas conocida como UPC se centra en la calidad de enseñanza a sus estudiantes\");\n lista.add(emp);\n int contador=0;\n String key = Busqueda.getInstance().getKey();\n for (int i = 0; i < lista.size(); i++) {\n if (lista.get(i).getRubro().equalsIgnoreCase(key)||lista.get(i).getRubro().toLowerCase().contains(key.toLowerCase())) {\n aux.add(lista.get(i));\n }else {\n if (lista.get(i).getNombre().equalsIgnoreCase(key)||lista.get(i).getNombre().toLowerCase().contains(key.toLowerCase())) {\n aux.add(lista.get(i));\n break;\n }else {\n\n }\n }\n\n }\n return aux;\n }", "private void crearElementos() {\n\n\t\tRotonda rotonda1 = new Rotonda(new Posicion(400, 120), \"5 de octubre\");\n\t\tthis.getListaPuntos().add(rotonda1);\n\n\t\tCiudad esquel = new Ciudad(new Posicion(90, 180), \"Esquel\");\n\t\tthis.getListaPuntos().add(esquel);\n\n\t\tCiudad trelew = new Ciudad(new Posicion(450, 200), \"Trelew\");\n\t\tthis.getListaPuntos().add(trelew);\n\n\t\tCiudad comodoro = new Ciudad(new Posicion(550, 400), \"Comodoro\");\n\t\tthis.getListaPuntos().add(comodoro);\n\n\t\tCiudad rioMayo = new Ciudad(new Posicion(350, 430), \"Rio Mayo\");\n\t\tthis.getListaPuntos().add(rioMayo);\n\n\t\t// --------------------------------------------------------\n\n\t\tRutaDeRipio rutaRipio = new RutaDeRipio(230, 230, rotonda1, esquel);\n\t\tthis.getListaRuta().add(rutaRipio);\n\n\t\tRutaPavimentada rutaPavimentada1 = new RutaPavimentada(380, 100, trelew, comodoro);\n\t\tthis.getListaRuta().add(rutaPavimentada1);\n\n\t\tRutaPavimentada rutaPavimentada2 = new RutaPavimentada(800, 120, esquel, comodoro);\n\t\tthis.getListaRuta().add(rutaPavimentada2);\n\n\t\tRutaDeRipio rutaripio3 = new RutaDeRipio(380, 100, trelew, comodoro);\n\t\tthis.getListaRuta().add(rutaripio3);\n\n\t\tRutaEnConstruccion rutaConst1 = new RutaEnConstruccion(180, 70, rioMayo, comodoro);\n\t\tthis.getListaRuta().add(rutaConst1);\n\n\t\tRutaPavimentada rutaPavimentada3 = new RutaPavimentada(600, 110, rioMayo, esquel);\n\t\tthis.getListaRuta().add(rutaPavimentada3);\n\t}", "public Principal() {\n initComponents();\n\n System.out.println(\"lista de hoteles disponibles\");\n List<Document> hoteles = db.getAllDocuments(\"hoteles\");\n for (Document hotel : hoteles) {\n this.hoteles.add(hotel.getString(\"nombre\"));\n System.out.println(hotel.getString(\"nombre\"));\n }\n \n List<Document> ciudades = db.getAllDocuments(\"ciudades\");\n for (Document ciudad : ciudades) {\n this.ciudades_destino.add(ciudad.getString(\"nombre\"));\n }\n \n }", "public ListaPartidas recuperarPartidas() throws SQLException {\n ListaPartidas listaPartidas = null;\n try {\n getConexion();\n String consulta = \"SELECT MANOS.id_mano, CARTAS.valor, CARTAS.palo, JUGADORES.nombre, PARTIDAS.id_partida \" +\n \"FROM MANOS \" +\n \"LEFT JOIN PARTIDAS ON PARTIDAS.id_mano = MANOS.id_mano \" +\n \"LEFT JOIN CARTAS ON CARTAS.id_carta = MANOS.id_carta \" +\n \"LEFT JOIN JUGADORES ON JUGADORES.id_jug = PARTIDAS.id_jug \" +\n \"ORDER BY PARTIDAS.id_mano\";\n Statement statement = conexion.createStatement();\n ResultSet registros = statement.executeQuery(consulta);\n // Compruebo que se han devuelto datos\n if (registros.next()) {\n // Inicializo el contenedor que se devolverá\n listaPartidas = new ListaPartidas();\n // Declaro e inicializo los objetos que servirán de buffer para añadir datos a cada partida\n LinkedList<Jugador> listaJugadores = new LinkedList<Jugador>();\n LinkedList<Mano> resultado = new LinkedList<Mano>();\n Mano mano = new Mano();\n // Variable que sirve para controlar cuando hay una nueva partida\n int numPartida = registros.getInt(\"PARTIDAS.id_partida\");\n // Variable que sirve para controlar cuando hay una nueva mano\n int numMano = registros.getInt(\"MANOS.id_mano\");\n // Devuelvo el cursor del ResultSet a su posición inicial\n registros.beforeFirst();\n // Bucle encargado de añadir datos a los contenedores\n while (registros.next()) {\n // Declaración de variables\n String palo = registros.getString(\"CARTAS.palo\");\n String valor = registros.getString(\"CARTAS.valor\");\n String nombre = registros.getString(\"JUGADORES.nombre\");\n // Se crea una carta con el palo y el valor devuelto por la consulta SQL\n Carta carta = new Carta(palo, valor);\n // Agrego la carta a la mano\n mano.agregarCarta(carta);\n // Agrego jugadores al contenedor de jugadores controlando si hay duplicados\n if (!listaJugadores.contains(nombre) || listaJugadores.isEmpty()) {\n Jugador jugador = new Jugador(nombre);\n listaJugadores.add(jugador);\n }\n // Cuando hay una nueva mano, la añado al contenedor resultados y creo una nueva Mano\n if (numMano != registros.getInt(\"MANOS.id_mano\") || registros.isLast()) {\n numMano = registros.getInt(\"MANOS.id_mano\");\n mano.setPropietario(nombre);\n resultado.add(mano);\n mano = new Mano();\n }\n // Cuando hay una nueva partida, guardo un objeto Partida en el contenedor de partidas\n if (numPartida != registros.getInt(\"PARTIDAS.id_partida\") || registros.isLast()) {\n numPartida = registros.getInt(\"PARTIDAS.id_partida\");\n Partida partida = new Partida(numPartida, listaJugadores, resultado);\n listaPartidas.agregarPartida(partida);\n // Reinicio los buffers de datos\n listaJugadores = new LinkedList<Jugador>();\n resultado = new LinkedList<Mano>();\n }\n }\n }\n } finally {\n closeConexion();\n }\n return listaPartidas;\n }", "private void cargarDeDB() {\n Query query = session.createQuery(\"SELECT p FROM Paquete p WHERE p.reparto is NULL\");\n data = FXCollections.observableArrayList();\n\n List<Paquete> paquetes = query.list();\n for (Paquete paquete : paquetes) {\n data.add(paquete);\n }\n\n cargarTablaConPaquetes();\n }", "public Lista(int idLista, String nombreAgasajado, Date fechaAgasajo,int montoParticipante, int montoRecaudado,Date FechaInicio, Date FechaFin, boolean estado, String mail, UsuarioDeLista admin)\r\n\t{\r\n\t\tthis.idLista = idLista;\r\n\t\tthis.fechaAgasajo = fechaAgasajo;\r\n\t\tthis.montoPorParticipante = montoParticipante;\r\n\t\tthis.montoRecaudado = montoRecaudado;\r\n\t\tthis.administrador = admin;\r\n\t\tthis.fechaInicio = FechaInicio;\r\n\t\tthis.fechaFin = FechaFin;\r\n\t\tthis.nombreAgasajado = nombreAgasajado;\r\n\t\tthis.estado = estado;\r\n\t\tthis.mail = mail;\r\n\t\tthis.administrador = admin;\r\n\t}", "public Database() {\n //Assign instance variables.\n this.movies = new ArrayList<>();\n this.users = new ArrayList<>();\n }", "public Diccionario(){\r\n rz=new BinaryTree<Association<String,String>>(null, null, null, null);\r\n llenDic();\r\n tradOra();\r\n }", "private void populaParteCorpo()\n {\n ParteCorpo p1 = new ParteCorpo(\"Biceps\");\n parteCorpoDAO.insert(p1);\n ParteCorpo p2 = new ParteCorpo(\"Triceps\");\n parteCorpoDAO.insert(p2);\n ParteCorpo p3 = new ParteCorpo(\"Costas\");\n parteCorpoDAO.insert(p3);\n ParteCorpo p4 = new ParteCorpo(\"Lombar\");\n parteCorpoDAO.insert(p4);\n ParteCorpo p5 = new ParteCorpo(\"Peito\");\n parteCorpoDAO.insert(p5);\n ParteCorpo p6 = new ParteCorpo(\"Panturrilha\");\n parteCorpoDAO.insert(p6);\n ParteCorpo p7 = new ParteCorpo(\"Coxas\");\n parteCorpoDAO.insert(p7);\n ParteCorpo p8 = new ParteCorpo(\"Gluteos\");\n parteCorpoDAO.insert(p8);\n ParteCorpo p9 = new ParteCorpo(\"Abdomen\");\n parteCorpoDAO.insert(p9);\n ParteCorpo p10 = new ParteCorpo(\"Antebraço\");\n parteCorpoDAO.insert(p10);\n ParteCorpo p11 = new ParteCorpo(\"Trapezio\");\n parteCorpoDAO.insert(p11);\n ParteCorpo p12 = new ParteCorpo(\"Ombro\");\n parteCorpoDAO.insert(p12);\n }", "public DatoGeneralEmpleadoLogic()throws SQLException,Exception {\r\n\t\tsuper();\r\n\t\t\r\n\t\ttry\t{\t\t\t\t\t\t\r\n\t\t\tthis.datogeneralempleadoDataAccess = new DatoGeneralEmpleadoDataAccess();\r\n\t\t\t\r\n\t\t\tthis.datogeneralempleados= new ArrayList<DatoGeneralEmpleado>();\r\n\t\t\tthis.datogeneralempleado= new DatoGeneralEmpleado();\r\n\t\t\t\r\n\t\t\tthis.datogeneralempleadoObject=new Object();\r\n\t\t\tthis.datogeneralempleadosObject=new ArrayList<Object>();\r\n\t\t\t\t\r\n\t\t\t/*\r\n\t\t\tthis.connexion=new Connexion();\r\n\t\t\tthis.datosCliente=new DatosCliente();\r\n\t\t\tthis.arrDatoGeneral= new ArrayList<DatoGeneral>();\r\n\t\t\t\r\n\t\t\t//INICIALIZA PARAMETROS CONEXION\r\n\t\t\tthis.connexionType=Constantes.CONNEXIONTYPE;\r\n\t\t\tthis.parameterDbType=Constantes.PARAMETERDBTYPE;\r\n\t\t\t\r\n\t\t\tif(Constantes.CONNEXIONTYPE.equals(ConnexionType.HIBERNATE)) {\r\n\t\t\t\tthis.entityManagerFactory=ConstantesCommon.JPAENTITYMANAGERFACTORY;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tthis.datosDeep=new DatosDeep();\r\n\t\t\tthis.isConDeep=false;\r\n\t\t\t*/\r\n\t\t\t\r\n\t\t\tthis.datogeneralempleadoDataAccess.setConnexionType(this.connexionType);\r\n\t\t\tthis.datogeneralempleadoDataAccess.setParameterDbType(this.parameterDbType);\r\n\t\t\t\r\n\t\t\t\r\n\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\tthis.invalidValues=new InvalidValue[0];\r\n\t\t\tthis.stringBuilder=new StringBuilder();\r\n\t\t\tthis.conMostrarMensajesStringBuilder=true;\r\n\t\t\t\r\n\t\t} catch(Exception e) {\r\n\t\t\tFunciones.manageException(logger,e);\r\n\t\t\tthrow e;\r\n\t\t}\t \r\n }", "public ObservableList<Pagadores> carregaPagadores() {\n\t\tcon = Conexao.conectar();\n\t\tObservableList<Pagadores> resultadoPagadores = FXCollections.observableArrayList();\n\t\ttry {\n\t\t\tString query = \"SELECT * FROM pagadores WHERE estpagador = ? ORDER BY agente\";\n\t\t\tprepStmt = con.prepareStatement(query); // create a statement\n\t\t\tprepStmt.setString(1, \"A\");\n\t\t\trs = prepStmt.executeQuery();\n\t\t\t\t\t\t // extract data from the ResultSet\n\t\t\twhile(rs.next()) {\n\t\t\t\tPagadores temp = new Pagadores();\n\t\t\t\ttemp.setCodPagador(rs.getInt(\"codpagador\"));\n\t\t\t\ttemp.setEstPagador(rs.getString(\"estpagador\"));\n\t\t\t\ttemp.setRecDescr(rs.getString(\"recdescr\"));\n\t\t\t\t\n\t\t\t\ttemp.setValContrato(rs.getDouble(\"valcontrato\"));\n\t\t\t\ttemp.setContratoInic(DateUtils.asLocalDate(rs.getDate(\"contratoinic\")));\n\t\t\t\ttemp.setContratoFim(DateUtils.asLocalDate(rs.getDate(\"contratofim\")));\n\t\t\t\t\n\t\t\t\ttemp.setNomeContrato(rs.getString(\"nomecontrato\"));\n\t\t\t\ttemp.setContaVinc(rs.getInt(\"contavinc\"));\n\t\t\t\ttemp.setCentroReceb(rs.getInt(\"centroreceb\"));\n\t\t\t\t\n\t\t\t\ttemp.setSubCentroRec(rs.getInt(\"subcentrorec\"));\n\t\t\t\ttemp.setDataLanc(DateUtils.asLocalDate(rs.getDate(\"datalanc\")));\n\t\t\t\ttemp.setDiaVenc(rs.getInt(\"diavenc\"));\n\t\t\t\ttemp.setAgente(rs.getString(\"agente\"));\n\t\t\t\t\n\t\t\t\tresultadoPagadores.add(temp);\n\t\t\t}\n\t\t\treturn resultadoPagadores;\n\t\t} catch(Exception e) {\n\t\t\tMessageBox.show(\"Erro ao ler pagadores 59\", e.getMessage());\n\t\t\treturn null;\n\t\t} finally {\n\t\t\ttry {\n\t\t\t\trs.close();\n\t\t\t\tprepStmt.close();\n\t\t\t\t//conn.close();\n\t\t\t} catch (SQLException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t}", "public FpLista() {\r\n\t\t\r\n\t}", "private void carregarAgendamentos() {\n agendamentos.clear();\n\n // Carregar os agendamentos do banco de dados\n agendamentos = new AgendamentoDAO(this).select();\n\n // Atualizar a lista\n setupRecyclerView();\n }", "public ArrayList<Mascota> obtenerDatos(){\n\n BaseDatos db = new BaseDatos(context);\n\n ArrayList<Mascota> aux = db.obtenerTodoslosContactos();\n\n if(aux.size()==0){\n insertarMascotas(db);\n aux = db.obtenerTodoslosContactos();\n }\n\n return aux;\n }", "public static void testEmprunt() throws DaoException {\r\n EmpruntDao empruntDao = EmpruntDaoImpl.getInstance();\r\n LivreDao livreDao = LivreDaoImpl.getInstance();\r\n MembreDao membreDao = MembreDaoImpl.getInstance();\r\n\r\n List<Emprunt> list = new ArrayList<Emprunt>();\r\n list = empruntDao.getList();\r\n System.out.println(\"\\n 'Emprunts' list: \" + list);\r\n\r\n list = empruntDao.getListCurrent();\r\n System.out.println(\"\\n Current 'Emprunts' list: \" + list);\r\n\r\n list = empruntDao.getListCurrentByMembre(5);\r\n System.out.println(\"\\n Current 'Emprunts' list by member: \" + list);\r\n\r\n list = empruntDao.getListCurrentByLivre(3);\r\n System.out.println(\"\\n Current 'Emprunts' list by book: \" + list);\r\n\r\n Emprunt test = empruntDao.getById(5);\r\n System.out.println(\"\\n Selected 'Emprunt' : \" + test);\r\n\r\n empruntDao.create(1, 4, LocalDate.now());\r\n list = empruntDao.getList();\r\n System.out.println(\"\\n List updated with one creation: \" + list);\r\n\r\n\r\n int id_book = livreDao.create(\"My Book\", \"My Autor\", \"123456\");\r\n Livre test_livre = new Livre();\r\n test_livre = livreDao.getById(id_book);\r\n int idMember = membreDao.create(\"Rodrigues\", \"Henrique\", \"ENSTA\", \"[email protected]\", \"+33071234567\", Abonnement.VIP);\r\n Membre test_membre = new Membre();\r\n test_membre = membreDao.getById(idMember);\r\n test = new Emprunt(2, test_membre, test_livre, LocalDate.now(), LocalDate.now().plusDays(60));\r\n empruntDao.update(test);\r\n list = empruntDao.getList();\r\n System.out.println(\"\\n List updated: \" + list);\r\n //System.out.println(\"\\n \" + test_livre.getId() + \" \" + test_membre.getId());\r\n\r\n\r\n int total = empruntDao.count();\r\n System.out.println(\"\\n Number of 'emprunts' in DB : \" + total);\r\n\r\n }", "@Override\n public ObservableList<ArchivoPOJO> getArchivos(String matricula) \n throws Exception{\n Connection con = null;\n Statement stm = null;\n ResultSet rs = null;\n String sql = \"SELECT archivo.idarchivo, archivo.titulo, \"\n + \"archivo.fechaEntrega FROM inscripcion JOIN expediente on \"\n + \"inscripcion.matricula = expediente.matricula join archivo \"\n + \"on expediente.clave = archivo.claveexp where not exists \"\n + \"(select archivo.idarchivo from reporte where \"\n + \"reporte.idarchivo = archivo.idarchivo) and \"\n + \"inscripcion.matricula = '\" + matricula + \"';\";\n ObservableList<ArchivoPOJO> obs = FXCollections.observableArrayList();\n try {\n con = new ConexionDB().conectarMySQL();\n stm = con.createStatement();\n rs = stm.executeQuery(sql);\n while (rs.next()) {\n int idArchivo = rs.getInt(\"IDARCHIVO\");\n String titulo = rs.getString(\"TITULO\");\n LocalDate fechaEntrega = LocalDate.\n parse(rs.getString(\"FECHAENTREGA\"), DateTimeFormatter.\n ofPattern(\"yyyy-MM-dd\"));\n System.out.println(\"ID Archivo: \" + idArchivo + \"Titulo: \"\n + titulo + \"Fecha:\" + fechaEntrega);\n ArchivoPOJO c = new ArchivoPOJO(idArchivo, titulo,\n fechaEntrega);\n obs.add(c);\n }\n } catch (SQLException e) { \n throw new Exception(\"Error en create Clase ArchivoDAO, método \"\n + \"readAll: \" + e.getMessage());\n }finally{\n try { if (rs != null) rs.close(); } catch (Exception e) {};\n try { if (stm != null) stm.close(); } catch (Exception e) {};\n try { if (con!= null) con.close(); } catch (Exception e) {};\n }\n \n return obs;\n }", "public ArrayList<clsPago> consultaDataPagosCuotaInicial(int codigoCli)\n { \n ArrayList<clsPago> data = new ArrayList<clsPago>(); \n try{\n bd.conectarBaseDeDatos();\n sql = \" SELECT a.id_pagos_recibo idPago, a.id_usuario, b.name name_usuario, \"\n + \" a.referencia referencia, \"\n + \" a.fecha_pago fecha_pago, a.estado, \"\n + \" a.valor valor_pago, a.id_caja_operacion, e.name_completo nombre_cliente, \"\n + \" a.fecha_pago fecha_registro\"\n + \" FROM ck_pagos_recibo AS a\"\n + \" JOIN ck_usuario AS b ON a.id_usuario = b.id_usuario\"\n + \" JOIN ck_cliente AS e ON a.codigo = e.codigo\"\n + \" WHERE a.estado = 'A'\"\n + \" AND a.cuota_inicial = 'S'\"\n + \" AND a.estado_asignado = 'N'\"\n + \" AND a.codigo = \" + codigoCli; \n \n System.out.println(sql);\n bd.resultado = bd.sentencia.executeQuery(sql);\n \n if(bd.resultado.next())\n { \n do \n { \n clsPago oListaTemporal = new clsPago();\n \n oListaTemporal.setReferencia(bd.resultado.getString(\"referencia\"));\n oListaTemporal.setFechaPago(bd.resultado.getString(\"fecha_pago\"));\n oListaTemporal.setNombreUsuario(bd.resultado.getString(\"name_usuario\"));\n oListaTemporal.setNombreCliente(bd.resultado.getString(\"nombre_cliente\"));\n oListaTemporal.setValor(bd.resultado.getDouble(\"valor_pago\"));\n oListaTemporal.setFechaRegistro(bd.resultado.getString(\"fecha_registro\"));\n oListaTemporal.setIdPago(bd.resultado.getInt(\"idPago\"));\n data.add(oListaTemporal);\n }\n while(bd.resultado.next()); \n //return data;\n }\n else\n { \n data = null;\n } \n }\n catch(Exception ex)\n {\n System.out.print(ex);\n data = null;\n } \n bd.desconectarBaseDeDatos();\n return data;\n }", "public ListaReservasBean() {\r\n\t\tthis.listaReservas = new ArrayList<ReservaDAO>();\r\n\t}", "public RequisicaoDAO() {\n em = JPAUtil.initConnection();\n }", "public interface ServicoDao extends EntidadeDao<Servico> {\n Long contarTotalServicos();\n Long contarServicosStatus(StatusServico statusServico);\n @Override\n List<Servico> listar();\n\n List<Servico> listarServicos();\n public List<Servico> listarMeusServicos(Long id);\n public List<Servico> listarServicosEmAberto();\n Long servicoPorSetor(Long id);\n Servico BuscarPorId(Long id);\n void salvarLogServico(LogServico logServico);\n\n public void verificarConlusaoEAtualizar(Long id);\n\n Long meusServicos();\n Long contarPorSetor(Long id);\n List<Object[]> contarDeAteDataPorSetorDESC(LocalDate dtDe, LocalDate dtAte);\n List<Object[]> contarAPartirDePorSetorDESC(LocalDate dtDe);\n List<Object[]> contarAteDataPorSetorDESC(LocalDate dtAte);\n List<Object[]> contarDeAteDataDESC(LocalDate dtDe, LocalDate dtAte);\n List<Servico> filtrarDeAteDataPorSetorDESC(Long id, LocalDate dtDe, LocalDate dtAte);\n List<Servico> filtrarAPartirDePorSetorDESC(Long id, LocalDate dtDe);\n List<Servico> filtrarAteDataPorSetorDESC(Long id, LocalDate dtAte);\n List<Servico> filtrarDeAteDataDESC(LocalDate dtDe, LocalDate dtAte);\n\n List<Servico> filtrarMaisRecentesPorSetor(Long id);\n}", "public interface SubGeneroDAO {\n /**\n * Método que permite guardar un subgénero.\n * @param subGenero {@link SubGenero} objeto a guardar.\n */\n void guardar(SubGenero subGenero);\n\n /**\n * Método que permite actualizar un subgénero.\n * @param subGenero {@link SubGenero} objeto a actualizar.\n */\n void actualizar(SubGenero subGenero);\n\n /**\n * Método que permite eliminar un subgénero por su identificador.\n * @param id {@link Long} identificador del subgénero a eliminar.\n */\n void eliminiar(Long id);\n\n /**\n * Método que permite consultar la lista de subgéneros.\n * @return {@link List} lista de subgéneros consultados.\n */\n List<SubGenero> consultar();\n\n /**\n * Método que permite consultar un SubGenero a partir de su identificador.\n * @param id {@link Long} identificador del subgénero a consultar.\n * @return {@link SubGenero} un objeto subgénero consultado.\n */\n SubGenero consultarById(Long id);\n\n\n}", "public TermDAOImpl(){\n connexion= new Connexion();\n }", "public Comprador() {\n // initialise instance variables\n super(1,\"\",\"\",\"\",\"\",\"\"); //super(email, nome, password, dataNascimento, morada)\n favoritos = new ArrayList<String>();\n }", "public Funcionalidad() {\n Cajero cajero1 = new Cajero(\"Pepe\", 2);\n empleados.put(cajero1.getID(), cajero1);\n Reponedor reponedor1 = new Reponedor(\"Juan\", 3);\n empleados.put(reponedor1.getID(), reponedor1);\n Producto producto1 = new Producto(\"Platano\", 10, 8);\n productos.add(producto1);\n Perecedero perecedero1 = new Perecedero(LocalDateTime.now(), \"Yogurt\", 10, 8);\n }", "public ArrayList<FavoritoItem> obtenerFavoritos() throws ValidacionException{\n //Obtener las transacciones y filtrarlas\n ArrayList<Transaccion> transacciones = listarTodo();\n ArrayList<FavoritoItem> favoritos = new ArrayList<FavoritoItem>();\n ArrayList<Transaccion> transaccionesFiltradas = new ArrayList<Transaccion>();\n\n transaccionesFiltradas.addAll(transacciones);\n for (Transaccion tr: transacciones){\n if((tr.getFavorito()).equals(false)){\n transaccionesFiltradas.remove(tr);\n }\n }\n\n //Aramar listado de DTO\n for (Transaccion tr: transaccionesFiltradas){\n FavoritoItem fav = new FavoritoItem();\n fav.setIdTransaccion(tr.getId().toString());\n fav.setNombreTransaccion(tr.getNombre());\n fav.setTipo(tr.getTipo());\n\n // Integer cantidadCuentas = obtenerCuentasPorTransaccion()\n fav.setCantidadCuentasAsociadas(\"(ninguna cuenta asociada)\");\n favoritos.add(fav);\n }\n return favoritos;\n }", "public static void main(String[] args) throws Exception {\n datosPronostico=null; \r\n _reloj= new Reloj(); \r\n setRouteCalculatorPronostico(new RouteCalculatorPronostico());\r\n getRouteCalculatorPronostico().inicializaValores();\r\n ManejaDatos m= new ManejaDatos(); \r\n _reloj.detenerReloj();\r\n DiaPronostico.setNumTurnos(3);\r\n _reloj.setReloj(0, 0, 17, 5, 2012);\r\n int diaInicio=369;\r\n //_reloj.getFechaActual().add(Calendar.DAY_OF_YEAR, diaInicio);\r\n getRouteCalculatorPronostico().setReloj(_reloj);\r\n insertaPronostico();\r\n getRouteCalculatorPronostico().setIdPronostico(idPronostico);\r\n try{\r\n \r\n datosPronostico= m.sacaDatosPronostico(\"dat\", datosPronostico,_reloj,servletContext);\r\n procesaDatos();\r\n \r\n GeneraArchivosPronostico generador= new GeneraArchivosPronostico();\r\n /*ArrayList<OrdenEntrega> ordenes; \r\n _reloj.getFechaActual().add(Calendar.DAY_OF_YEAR, 372);\r\n for(int i=1;i<28;i++){\r\n _reloj.getFechaActual().add(Calendar.DAY_OF_YEAR, 1);\r\n ordenes=generador.nuevoGeneraArchivo(372,_reloj, new Mapa(150,100));\r\n }*/\r\n \r\n /*\r\n System.out.println(ordenes.size());*/\r\n /*\r\n Mapa mapa = new Mapa(150, 100);\r\n generador.nuevoGeneraArchivo(diaInicio, _reloj, mapa);*/\r\n GestorVehiculos gestorV= new GestorVehiculos(_reloj); \r\n \r\n getRouteCalculatorPronostico().setGestorVehiculos(gestorV);\r\n _reloj.getFechaActual().add(Calendar.DAY_OF_YEAR, diaInicio);\r\n getRouteCalculatorPronostico().calculaPronostico(diaInicio);\r\n \r\n getRouteCalculatorPronostico().correrDibujaPronostico();\r\n \r\n setRouteCalculatorPronostico(null);\r\n }catch(Exception e){\r\n \r\n throw e;\r\n \r\n }\r\n \r\n }", "@Override\n\tpublic DaoEmpleados crearDAOEmpleados() {\n\t\treturn null;\n\t}", "public ArrayList<DTOcomentarioRta> listadoComentarioxComercio(int idComercio) {\n ArrayList<DTOcomentarioRta> lista = new ArrayList<>();\n try {\n Connection conn = DriverManager.getConnection(CONN, USER, PASS);\n\n PreparedStatement st = conn.prepareStatement(\" select co.id_comercio, c.id_comentario, c.nombreUsuario, c.descripcion, c.valoracion, c.fecha, co.nombre , r.descripcion, r.fecha, r.id_rta, co.id_rubro\\n\"\n + \" from Comentarios c join Comercios co on c.id_comercio = co.id_comercio\\n\"\n + \" left join Respuestas r on r.id_comentario = c.id_comentario\\n\"\n + \" where co.id_comercio = ?\");\n st.setInt(1, idComercio);\n ResultSet rs = st.executeQuery();\n\n while (rs.next()) {\n int id = rs.getInt(1);\n int idcomentario = rs.getInt(2);\n String nombreU = rs.getString(3);\n String descripC = rs.getString(4);\n int valoracion = rs.getInt(5);\n String fechaC = rs.getString(6);\n String nombrecomercio = rs.getString(7);\n String descripcionR = rs.getString(8);\n String fechaR = rs.getString(9);\n int idR = rs.getInt(10);\n int rubro = rs.getInt(11);\n\n rubro rf = new rubro(rubro, \"\", true, \"\", \"\");\n comercio come = new comercio(nombrecomercio, \"\", \"\", id, true, \"\", \"\", rf, \"\");\n Comentario c = new Comentario(idcomentario, descripC, valoracion, nombreU, fechaC, come);\n respuestas r = new respuestas(idR, descripcionR, c, fechaR);\n DTOcomentarioRta cr = new DTOcomentarioRta(c, r);\n\n lista.add(cr);\n }\n\n st.close();\n conn.close();\n } catch (SQLException ex) {\n ex.printStackTrace();\n }\n\n return lista;\n }", "public GestioneDomandeD() {\n this.daoDomande = null;\n this.daoPunteggi = null;\n this.daoDipendenti = null;\n this.gestionePunteggiD = null;\n this.gestioneLog = null;\n this.gestioneBadge = null;\n }", "public void crearDepartamento(String nombredep, String num, int nvJefe, int horIn, int minIn, int horCi, int minCi) {\r\n\t\t// TODO Auto-generated method stub by carlos Sánchez\r\n\t\t//Agustin deberia devolverme algo q me indique si hay un fallo alcrearlo cual es\r\n\t\t//hazlo como mas facil te sea.Yo no se cuantos distintos puede haber.\r\n\t\r\n\t//para añadir el Dpto en la BBDD no se necesita el Nombre del Jefe\r\n\t//pero si su numero de vendedor (por eso lo he puesto como int) que forma parte de la PK \r\n\t\t\r\n\t\tint n= Integer.parseInt(num);\r\n\t\tString horaapertura=aplicacion.utilidades.Util.horaminutosAString(horIn, minIn);\r\n\t\tString horacierre=aplicacion.utilidades.Util.horaminutosAString(horCi, minCi);\r\n\t\tTime thI= Time.valueOf(horaapertura);\r\n\t\tTime thC=Time.valueOf(horacierre);\r\n\t\tthis.controlador.insertDepartamentoPruebas(nombredep, nvJefe,thI,thC); //tabla DEPARTAMENTO\r\n\t\tthis.controlador.insertNumerosDepartamento(n, nombredep); //tabla NumerosDEPARTAMENTOs\r\n\t\tthis.controlador.insertDepartamentoUsuario(nvJefe, nombredep); //tabla DepartamentoUsuario\r\n\r\n\t\t//insertamos en la cache\r\n\t\t//Departamento d=new Departamento(nombredep,Integer.parseInt(num),getEmpleado(nvJefe),null,null);\r\n\t\t//departamentosJefe.add(d);\r\n\t\t/*ArrayList<Object> aux=new ArrayList<Object>();\r\n\t\taux.add(nombredep);\r\n\t\taux.add(n);\r\n\t\taux.add(nvJefe);\r\n\t\tinsertCache(aux,\"crearDepartamento\");*///no quitar el parseInt\r\n\t}", "public AdminDAO()\n {\n con = DataBase.getConnection();//crear una conexión al crear un objeto AdminDAO\n }", "private List<Pelicula> getLista() {\n\t\tSimpleDateFormat formatter = new SimpleDateFormat(\"dd-MM-yyyy\");\n\t\tList<Pelicula> lista = null;\n\t\ttry {\n\t\t\tlista = new LinkedList<>();\n\n\t\t\tPelicula pelicula1 = new Pelicula();\n\t\t\tpelicula1.setId(1);\n\t\t\tpelicula1.setTitulo(\"Power Rangers\");\n\t\t\tpelicula1.setDuracion(120);\n\t\t\tpelicula1.setClasificacion(\"B\");\n\t\t\tpelicula1.setGenero(\"Aventura\");\n\t\t\tpelicula1.setFechaEstreno(formatter.parse(\"02-05-2017\"));\n\t\t\t// imagen=\"cinema.png\"\n\t\t\t// estatus=\"Activa\"\n\n\t\t\tPelicula pelicula2 = new Pelicula();\n\t\t\tpelicula2.setId(2);\n\t\t\tpelicula2.setTitulo(\"La bella y la bestia\");\n\t\t\tpelicula2.setDuracion(132);\n\t\t\tpelicula2.setClasificacion(\"A\");\n\t\t\tpelicula2.setGenero(\"Infantil\");\n\t\t\tpelicula2.setFechaEstreno(formatter.parse(\"20-05-2017\"));\n\t\t\tpelicula2.setImagen(\"bella.png\"); // Nombre del archivo de imagen\n\n\t\t\tPelicula pelicula3 = new Pelicula();\n\t\t\tpelicula3.setId(3);\n\t\t\tpelicula3.setTitulo(\"Contratiempo\");\n\t\t\tpelicula3.setDuracion(106);\n\t\t\tpelicula3.setClasificacion(\"B\");\n\t\t\tpelicula3.setGenero(\"Thriller\");\n\t\t\tpelicula3.setFechaEstreno(formatter.parse(\"28-05-2017\"));\n\t\t\tpelicula3.setImagen(\"contratiempo.png\"); // Nombre del archivo de imagen\n\n\t\t\tPelicula pelicula4 = new Pelicula();\n\t\t\tpelicula4.setId(4);\n\t\t\tpelicula4.setTitulo(\"Kong La Isla Calavera\");\n\t\t\tpelicula4.setDuracion(118);\n\t\t\tpelicula4.setClasificacion(\"B\");\n\t\t\tpelicula4.setGenero(\"Accion y Aventura\");\n\t\t\tpelicula4.setFechaEstreno(formatter.parse(\"06-06-2017\"));\n\t\t\tpelicula4.setImagen(\"kong.png\"); // Nombre del archivo de imagen\n\t\t\tpelicula4.setEstatus(\"Inactiva\"); // Esta pelicula estara inactiva\n\t\t\t\n\t\t\t// Agregamos los objetos Pelicula a la lista\n\t\t\tlista.add(pelicula1);\n\t\t\tlista.add(pelicula2);\n\t\t\tlista.add(pelicula3);\n\t\t\tlista.add(pelicula4);\n\n\t\t\treturn lista;\n\t\t} catch (ParseException e) {\n\t\t\tSystem.out.println(\"Error: \" + e.getMessage());\n\t\t\treturn null;\n\t\t}\n\t}", "@GET\n\t@Produces({ MediaType.APPLICATION_JSON })\n\tpublic Response getRestaurantes() {\n\t\tRotondAndesTM tm = new RotondAndesTM(getPath());\n\t\tList<Restaurante> restaurantes;\n\t\ttry\n\t\t{\n\t\t\trestaurantes = tm.darRestaurantes();\n\t\t\treturn Response.status( 200 ).entity( restaurantes ).build( );\t\t\t\n\t\t}catch( Exception e )\n\t\t{\n\t\t\treturn Response.status( 500 ).entity( doErrorMessage( e ) ).build( );\n\t\t}\n\t}", "private void init(){\n if(solicitudEnviadaDAO == null){\n solicitudEnviadaDAO = new SolicitudEnviadaDAO(getApplicationContext());\n }\n if(solicitudRecibidaDAO == null){\n solicitudRecibidaDAO = new SolicitudRecibidaDAO(getApplicationContext());\n }\n if(solicitudContestadaDAO == null){\n solicitudContestadaDAO = new SolicitudContestadaDAO(getApplicationContext());\n }\n if(preguntaEnviadaDAO == null){\n preguntaEnviadaDAO = new PreguntaEnviadaDAO(getApplicationContext());\n }\n if(preguntaRecibidaDAO == null){\n preguntaRecibidaDAO = new PreguntaRecibidaDAO(getApplicationContext());\n }\n if(preguntaContestadaDAO == null){\n preguntaContestadaDAO = new PreguntaContestadaDAO(getApplicationContext());\n }\n if(puntuacionRecibidaDAO == null){\n puntuacionRecibidaDAO = new PuntuacionRecibidaDAO(getApplicationContext());\n }\n }" ]
[ "0.66434294", "0.64725894", "0.6408097", "0.62390417", "0.6123823", "0.6098255", "0.6080577", "0.606137", "0.6042103", "0.60186344", "0.5978237", "0.5944939", "0.5886319", "0.5870413", "0.5846259", "0.5823064", "0.5820057", "0.5782896", "0.57614475", "0.57288504", "0.57287735", "0.5712637", "0.5711861", "0.5701558", "0.57011163", "0.5684617", "0.568448", "0.56755716", "0.56561553", "0.56489956", "0.5647272", "0.5641259", "0.5636907", "0.56320304", "0.56262517", "0.56064546", "0.5602641", "0.55992997", "0.5592093", "0.55857635", "0.55713725", "0.5558711", "0.55457675", "0.5542613", "0.5533587", "0.551826", "0.5515399", "0.5503176", "0.54932666", "0.54917043", "0.54806507", "0.547558", "0.54747516", "0.54720014", "0.5467637", "0.5449956", "0.5443303", "0.54272926", "0.54245913", "0.5423206", "0.54148763", "0.5412125", "0.5410688", "0.53908074", "0.53907937", "0.5387159", "0.5387155", "0.5385476", "0.53799903", "0.53731847", "0.5372895", "0.5371428", "0.53673893", "0.53634745", "0.53602105", "0.53549904", "0.5346357", "0.5343772", "0.53423107", "0.5340432", "0.5340122", "0.533506", "0.5332939", "0.53327215", "0.532909", "0.5324648", "0.5323278", "0.5316453", "0.531346", "0.53127867", "0.5312278", "0.52996415", "0.52977204", "0.5296457", "0.5295145", "0.529485", "0.5293206", "0.52924377", "0.52904505", "0.52898705", "0.5289576" ]
0.0
-1
Metodo que cierra todos los recursos que estan enel arreglo de recursos post: Todos los recurso del arreglo de recursos han sido cerrados
public void cerrarRecursos() { for(Object ob : recursos){ if(ob instanceof PreparedStatement) try { ((PreparedStatement) ob).close(); } catch (Exception ex) { ex.printStackTrace(); } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void cerrarRecursos() {\r\n\t\tfor(Object ob : recursos){\r\n\t\t\tif(ob instanceof PreparedStatement)\r\n\t\t\t\ttry {\r\n\t\t\t\t\t((PreparedStatement) ob).close();\r\n\t\t\t\t} catch (Exception ex) {\r\n\t\t\t\t\tex.printStackTrace();\r\n\t\t\t\t}\r\n\t\t}\r\n\t}", "public void cerrarRecursos() {\r\n\t\tfor(Object ob : recursos){\r\n\t\t\tif(ob instanceof PreparedStatement)\r\n\t\t\t\ttry {\r\n\t\t\t\t\t((PreparedStatement) ob).close();\r\n\t\t\t\t} catch (Exception ex) {\r\n\t\t\t\t\tex.printStackTrace();\r\n\t\t\t\t}\r\n\t\t}\r\n\t}", "public void cerrarArchivos(){\n cerrarSalNuevoMaest();\n cerrarSalRegistro();\n cerrarEntAntMaest();\n cerrarEntTransaccion();\n }", "public ArrayList<E> postorderNoRecursion()\n {\n ArrayList<E> nonRecursivePostorder= new ArrayList<>();\n\n /**\n * TODO: INSERT YOUR CODE HERE\n * FIND THE POST ORDER TRAVERSAL OF THE TREE WITHOUT USING RECURSION AND RETURN THE RESULT TRAVEL SEQUENCE IN ARRAYLIST nonRecursivePostorder\n */\n\n return nonRecursivePostorder;\n }", "public int endproc(){\n Registro registroAuxiliar = pilaRegistros.pop();\n Procedimiento procActual = this.directorioProcedimientos.obtenerProcedimientoPorId(registroAuxiliar.getIdentificadorProcedimiento());\n for (int i=0; i<procActual.getIndicadorPorReferencia().size(); i++){\n if (procActual.getIndicadorPorReferencia().get(i)){\n int direccionParametroLocal = procActual.getDireccionParametros().get(i);\n int direccionArgumento = procActual.getFilaDireccionesLlamada().peek().get(i);\n String valorParametroLocal = registroAuxiliar.getValor(direccionParametroLocal);\n this.pilaRegistros.peek().guardaValor(direccionArgumento,valorParametroLocal);\n }\n }\n System.out.println(procActual.getFilaDireccionesLlamada().peek());\n try {\n procActual.getFilaDireccionesLlamada().remove();\n } catch (Exception e){\n e.printStackTrace();\n }\n\n return registroAuxiliar.getDireccionRetorno();\n }", "void finalizeBath(boolean isCancelled);", "private static Set<ARGState> removeSet(Set<ARGState> elements) {\n Set<ARGState> toWaitlist = new LinkedHashSet<ARGState>();\n int i=0;\n for (ARGState ae : elements) {\n if(ae.getParents()!=null){\n for (ARGState parent : ae.getParents()) {\n if (!elements.contains(parent)) {\n toWaitlist.add(parent);\n }\n }\n if(ae.getChildren()!=null)\n ae.removeFromARG();\n else\n ae.setDestroyed(true);\n }\n\n // ae.setNull();\n }\n return toWaitlist;\n }", "public void cerrarCerradura(){\n cerradura.cerrar();\r\n }", "@Override\n public void abortTx() {\n \tfor (VBox vbox : overwrittenAncestorWriteSet) {\n \t // revert the in-place entry that had overwritten\n \t vbox.inplace = vbox.inplace.next;\n \t}\n \n this.orec.version = OwnershipRecord.ABORTED;\n for (OwnershipRecord mergedLinear : linearNestedOrecs) {\n mergedLinear.version = OwnershipRecord.ABORTED;\n }\n \tfor (ParallelNestedTransaction mergedTx : mergedTxs) {\n \t mergedTx.orec.version = OwnershipRecord.ABORTED;\n \t}\n \t\n\t// give the read set arrays, which were used exclusively by this nested or its children, back to the thread pool\n\tCons<VBox[]> parentArrays = this.getRWParent().bodiesRead;\n\tCons<VBox[]> myArrays = this.bodiesRead;\n\twhile (myArrays != parentArrays) {\n\t returnToPool(myArrays.first());\n\t myArrays = myArrays.rest();\n\t}\n\t\n \tbodiesRead = null;\n \tboxesWritten = null;\n \tboxesWrittenInPlace = null;\n \tperTxValues = null;\n \toverwrittenAncestorWriteSet = null;\n \tmergedTxs = null;\n \tlinearNestedOrecs = null;\n \tcurrent.set(this.getParent());\n }", "public void quitarTodosFin() {\n\t\tfor (Estado e : _acept)\n\t\t\te.cambioFin(false);\n\t}", "public static void verifyClearRecursively(FinishedTriggers finishedSet) {\n ExecutableTriggerStateMachine trigger =\n ExecutableTriggerStateMachine.create(\n AfterAllStateMachine.of(\n AfterFirstStateMachine.of(\n AfterPaneStateMachine.elementCountAtLeast(3),\n AfterWatermarkStateMachine.pastEndOfWindow()),\n AfterAllStateMachine.of(\n AfterPaneStateMachine.elementCountAtLeast(10),\n AfterProcessingTimeStateMachine.pastFirstElementInPane())));\n\n // Set them all finished. This method is not on a trigger as it makes no sense outside tests.\n setFinishedRecursively(finishedSet, trigger);\n assertTrue(finishedSet.isFinished(trigger));\n assertTrue(finishedSet.isFinished(trigger.subTriggers().get(0)));\n assertTrue(finishedSet.isFinished(trigger.subTriggers().get(0).subTriggers().get(0)));\n assertTrue(finishedSet.isFinished(trigger.subTriggers().get(0).subTriggers().get(1)));\n\n // Clear just the second AfterAll\n finishedSet.clearRecursively(trigger.subTriggers().get(1));\n\n // Check that the first and all that are still finished\n assertTrue(finishedSet.isFinished(trigger));\n verifyFinishedRecursively(finishedSet, trigger.subTriggers().get(0));\n verifyUnfinishedRecursively(finishedSet, trigger.subTriggers().get(1));\n }", "public static void borrarCrearRecursivo(Path carpeta) {\n\n\t\tString res = \"\";\n\t\t// si la carpeta no existe la creamos\n\n\t\t// caso base\n\t\tif (!Files.isDirectory(carpeta)) {\n\t\t\ttry {\n\t\t\t\tFiles.createDirectories(carpeta);\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\tSystem.out.println(\"Hemos creado la carpeta\" + carpeta.toAbsolutePath());\n\t\t\t// Caso recursivo\n\n\t\t} else {\n\n\t\t\tDirectoryStream<Path> hijosCarpeta;// Este objeto sirve para poder iterar directorios lo convertimos en una\n\t\t\t\t\t\t\t\t\t\t\t\t// especie\n\t\t\t// de lista para guardar varios Path\n\t\t\ttry {\n\n\t\t\t\thijosCarpeta = Files.newDirectoryStream(carpeta);// hacemos esto para crear diferentes Path en los\n\t\t\t\t// subdirectorios de carpeta\n\n\t\t\t\t// y en el segundo borrar los ficheros\n\t\t\t\tfor (Path entry : hijosCarpeta) {\n\n\t\t\t\t\tif (Files.isDirectory(entry)) {\n\t\t\t\t\t\tSystem.out.println(\"entrando en\" + entry);\n\t\t\t\t\t\tborrarhijoRecursivo(entry);\n\t\t\t\t\t} else {\n\t\t\t\t\t\tres += \"Borrando \" + entry + \"\\n\";\n\t\t\t\t\t\tSystem.out.println(\"borrando \" + entry);\n\t\t\t\t\t\tFiles.delete(entry);\n\t\t\t\t\t}\n\n\t\t\t\t}\n\t\t\t\tSystem.out.println(\"Borrando carpeta \" + carpeta);\n\t\t\t\tFiles.delete(carpeta);\n\n\t\t\t\t// llamamos otra vez a la funcion recursivamente para crear la carpeta\n\t\t\t\tborrarCrearRecursivo(carpeta);\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\n\t\t}\n\t}", "boolean treeFinished(treeNode root){\n\t\treturn (root.parent == null && root.lc == null && root.rc == null);\n\t}", "public void resetReversePoison() {\n\n Set<AS> prevAdvedTo = this.adjOutRib.get(this.asn * -1);\n\n if (prevAdvedTo != null) {\n for (AS pAS : prevAdvedTo) {\n pAS.withdrawPath(this, this.asn * -1);\n }\n }\n\n this.adjOutRib.remove(this.asn * -1);\n\n this.botSet = new HashSet<>();\n }", "@Override\r\n\tpublic List<Node<T>> getPostOrderTraversal() {\r\n\t\tList<Node<T>> lista = new LinkedList<Node<T>>();// Lista para el\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t// recursivo\r\n\t\treturn auxiliarRecorridoPost(raiz, lista);\r\n\t}", "void unsetFurtherRelations();", "public void dibujar() {\n\t\t\n\t\tgrilla.getChildren().clear();\n\t\t\n\t\tfor (int fila = 1; fila <= juego.contarFilas(); fila++) {\n\n\t\t\tfor (int columna = 1; columna <= juego.contarColumnas(); columna++) {\n\n\t\t\t\tdibujarFicha(fila, columna);\n\t\t\t\tdibujarBoton(fila, columna);\n\t\t\t}\n\t\t}\n\t\t\n\t\tdibujarEstado();\n\t}", "public void postorder()\r\n {\r\n postorder(root);\r\n }", "public void terminate() {\r\n\t\tsetTerminated(true);\r\n\r\n\t\tTreeMap<Point, Square> oldSquares = new TreeMap<Point, Square>(squares);\r\n\t\tfor (Map.Entry<Point, Square> e : oldSquares.entrySet()) {\r\n\t\t\tremoveAsSquareAt(e.getKey());\r\n\t\t}\r\n\r\n\t\tassert getNbSquares() == 0;\r\n\r\n\t\tif (getParentDungeon() != null) {\r\n\t\t\tgetParentDungeon().removeAsSubDungeon(this);\r\n\t\t}\r\n\r\n\t\t// When this method is left, all invariant are met\r\n\t\tassert hasProperSquares();\r\n\t\tassert hasProperParentDungeon();\r\n\t}", "private void pruneRecur(BinaryNode node, Integer sum, Integer k) {\n\n if (node == null) return;\n else {\n sum += (Integer)node.element;\n if (largestPath(node.left, sum) >= k) {\n pruneRecur(node.left, sum, k);\n } else {\n node.left = null;\n }\n if (largestPath(node.right, sum) >= k) {\n pruneRecur(node.right, sum, k);\n } else {\n node.right = null;\n }\n }\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}", "public void fixViolationDelete(Node node){ \n\t\t\n\t while(node!=root && node.colour==\"Black\"){\n\t if(node==node.parent.left){\n\t \t//if the node is the left child and sibling is in the right\n\t Node sibling=node.parent.right;\n\t //check if the color of sibling is red then exchange the color with parent and rotate left \n\t if(sibling.colour == \"Red\"){\n\t \tsibling.colour = \"Black\";\n\t node.parent.colour = \"Red\";\n\t rotateLeft(node.parent);\n\t sibling=node.parent.right;\n\t }\n\t if(sibling.left.colour==\"Black\" && sibling.right.colour ==\"Black\"){\n\t \t//if both the children of sibling are black, change the color of the sibling and transfer the problem up the parent\n\t \tsibling.colour = \"Red\";\n\t node=node.parent;\n\t }\n\t else{ \n\t if(sibling.right.colour==\"Black\"){\n\t \t//if the left child of the sibling in red exchange the color of the sibling's child with sibling and color the child black\n\t \t// and rotate right\n\t \tsibling.left.colour = \"Black\";\n\t \tsibling.colour = \"Red\";\n\t rotateRight(sibling);\n\t sibling=node.parent.right;\n\t }\n\t //followed my the left rotation\n\t sibling.colour = node.parent.colour;\n\t node.parent.colour = \"Black\";\n\t sibling.right.colour = \"Black\";\n\t rotateLeft(node.parent);\n\t node=root;\n\t }\n\t }\n\t else{\n\t \t//node is the right child of the parent and sibling is the left child\n\t Node sibling=node.parent.left;\n\t \n\t if(sibling.colour == \"Red\"){\n\t \tsibling.colour = \"Black\";\n\t node.parent.colour = \"Red\";\n\t rotateRight(node.parent);\n\t sibling=node.parent.left;\n\t }\n\t \n\t if(sibling.right.colour==\"Black\" && sibling.left.colour==\"Black\"){\n\t \tsibling.colour = \"Red\";\n\t node=node.parent;\n\t }else{\n\t if(sibling.left.colour==\"Black\"){\n\t \tsibling.right.colour= \"Black\";\n\t \tsibling.colour = \"Red\";\n\t rotateLeft(sibling);\n\t sibling=node.parent.left;\n\t }\n\t \n\t sibling.colour = node.parent.colour;\n\t node.parent.colour = \"Black\";\n\t sibling.left.colour = \"Black\";\n\t rotateRight(node.parent);\n\t node=root;\n\t }\n\t }\n\t }\n\t //we color the node black\n\t node.colour = \"Black\";\n\t}", "public void postorder()\n {\n postorder(root);\n }", "public void postorder()\n {\n postorder(root);\n }", "private void borraArchivos() {\n boolean isBorrado;\n for (BeanCargaOmisos dato : this.listadoCargaOmisos) {\n String dirBitacora = dato.getRutaEnBitacora();\n String dirRepositorio = dato.getRutaEnRepositorio();\n if (dirBitacora != null && !dirBitacora.isEmpty()) {\n File archivoBitacora = new File(dirBitacora);\n if (archivoBitacora.exists()) {\n isBorrado = archivoBitacora.delete();\n getLogger().debug(isBorrado);\n }\n }\n if (dirRepositorio != null && !dirRepositorio.isEmpty()) {\n File archivoRepositorio = new File(dirRepositorio);\n if (archivoRepositorio.exists()) {\n isBorrado = archivoRepositorio.delete();\n getLogger().debug(isBorrado);\n }\n }\n }\n }", "private void removerFaltas(final String matricula) {\n firebase.child(\"Alunos/\" + matricula + \"/faltas\").addListenerForSingleValueEvent(new ValueEventListener() {\n @Override\n public void onDataChange(DataSnapshot dataSnapshot) {\n long qtdAtual = (long) dataSnapshot.getValue();\n if (qtdAtual > 0) {\n firebase.child(\"Alunos/\" + matricula + \"/faltas\").setValue(qtdAtual - 1);\n\n if (alunoEncontrado == null) {\n Log log = new Log(matricula, 0);\n log.faltas(\"Remover\");\n } else {\n Log log = new Log(alunoEncontrado, 0);\n log.faltas(\"Remover\");\n }\n Toast.makeText(getContext(), \"Falta removida com sucesso.\", Toast.LENGTH_SHORT).show();\n } else {\n Toast.makeText(getContext(), \"Aluno possui 0 faltas.\", Toast.LENGTH_SHORT).show();\n }\n }\n\n @Override\n public void onCancelled(DatabaseError databaseError) {\n\n }\n });\n }", "private void finishErasing() {\n synchronized (lastEraseTrace) {\n if (lastEraseTrace.size() > 0) {\n ArrayList<Shape> t = new ArrayList<Shape>();\n t.add(new EraseTrace(lastEraseTrace, sheet.toSheet(eraserRadius)));\n sheet.doAction(new AddShapes(t));\n lastEraseTrace.clear();\n }\n }\n }", "private void cleanSegments(ThreadContext context) {\n AtomicInteger counter = new AtomicInteger();\n List<List<Segment>> cleanSegments = getCleanSegments();\n if (!cleanSegments.isEmpty()) {\n for (List<Segment> segments : cleanSegments) {\n EntryCleaner cleaner = new EntryCleaner(manager, tree, new ThreadPoolContext(executor, manager.serializer()));\n executor.execute(() -> cleaner.clean(segments).whenComplete((result, error) -> {\n if (counter.incrementAndGet() == cleanSegments.size()) {\n if (context != null) {\n context.execute(() -> cleanFuture.complete(null));\n } else {\n cleanFuture.complete(null);\n }\n }\n }));\n }\n } else {\n cleanFuture.complete(null);\n }\n }", "public void postOrder() {\r\n\t\tSystem.out.print(\"POST: \");\r\n\t\tpostOrder(root);\r\n\t\tSystem.out.println();\r\n\t}", "public void garbageCollectOrphans() {\r\n /**\r\n * The list of orphaned queues was assembled in the browser session \r\n * preceding the current one. At this point it is safe to get rid \r\n * of them; their windows must have long since being destroyed.\r\n */\r\n for (SeleneseQueue q : orphanedQueues) {\r\n q.endOfLife();\r\n }\r\n orphanedQueues.clear();\r\n }", "private void pruneTree(QuadNode node){\n int i;\n while(node.parent != null && node.quads[0] == null && node.quads[1] == null && node.quads[2] == null && node.quads[3] == null){\n i=0;\n if(node.x != node.parent.x){\n i++;\n }\n if(node.z != node.parent.z){\n i+=2;\n }\n node = node.parent;\n node.quads[i] = null;\n }\n }", "private static boolean postOrderTraversal(Node current) {\n //Break if the node is null\n if(current == null) {\n return false;\n }\n //Recursively check the left child, then the right child, then finally the current node\n else{\n postOrderTraversal(current.getLeftChild());\n postOrderTraversal(current.getRightChild());\n postorder.add(current);\n }\n return true;\n }", "public void postOrder() {\n postOrder(root);\n }", "public void resetFail() {\n borraArchivos();\n addMessage(\"Carga Cancelada\", null);\n }", "public boolean reducible() {\n if (dfsTree.back.isEmpty()) {\n return true;\n }\n int size = controlFlow.transitions.length;\n boolean[] loopEnters = dfsTree.loopEnters;\n TIntHashSet[] cycleIncomings = new TIntHashSet[size];\n // really this may be array, since dfs already ensures no duplicates\n TIntArrayList[] nonCycleIncomings = new TIntArrayList[size];\n int[] collapsedTo = new int[size];\n int[] queue = new int[size];\n int top;\n for (int i = 0; i < size; i++) {\n if (loopEnters[i]) {\n cycleIncomings[i] = new TIntHashSet();\n }\n nonCycleIncomings[i] = new TIntArrayList();\n collapsedTo[i] = i;\n }\n\n // from whom back connections\n for (Edge edge : dfsTree.back) {\n cycleIncomings[edge.to].add(edge.from);\n }\n // from whom ordinary connections\n for (Edge edge : dfsTree.nonBack) {\n nonCycleIncomings[edge.to].add(edge.from);\n }\n\n for (int w = size - 1; w >= 0 ; w--) {\n top = 0;\n // NB - it is modified later!\n TIntHashSet p = cycleIncomings[w];\n if (p == null) {\n continue;\n }\n TIntIterator iter = p.iterator();\n while (iter.hasNext()) {\n queue[top++] = iter.next();\n }\n\n while (top > 0) {\n int x = queue[--top];\n TIntArrayList incoming = nonCycleIncomings[x];\n for (int i = 0; i < incoming.size(); i++) {\n int y1 = collapsedTo[incoming.getQuick(i)];\n if (!dfsTree.isDescendant(y1, w)) {\n return false;\n }\n if (y1 != w && p.add(y1)) {\n queue[top++] = y1;\n }\n }\n }\n\n iter = p.iterator();\n while (iter.hasNext()) {\n collapsedTo[iter.next()] = w;\n }\n }\n\n return true;\n }", "private void innerExit() throws Exception {\n\t\tif (this.getCreator() != null) {\n\t\t\t//if there is a creator, this is an explosion, I have only one graph!!\n\t\t\ttry {\n\t\t\t\tthis.getSelectedGraphEditor().dirtyHandler();\n\n\t\t\t\t//saved or not saved, reload the graph from file\n\t\t\t this.getSelectedGraphEditor().getModel().reload();\n\n\t\t\t\t//now, return\n\t\t\t\tthis.getCreator().sonIsReturningFromCall(this);\n\t\t\t\t//this.getAtomicGraphEditor().closeGraph();\n\t\t\t\t//this.getCoupledGraphEditor().closeGraph();\n\n\t\t\t}\n\t\t\tcatch (AbortProcessException ab) {\n\t\t\t\t//ABORT the process!!!!\n\t\t\t\t//OK, do nothing\n\t\t\t\t//Not returning\n\t\t\t}\n\t\t}\n\t\telse {\n\t\t\t//exiting the application.\n\t\t\ttry {\n\t\t\t\tthis.getAtomicGraphEditor().dirtyHandler();\n\t\t\t\tthis.getCoupledModelEditor().dirtyHandler();\n\t\t\t\tSystem.exit(0);\n\t\t\t}\n\t\t\tcatch (AbortProcessException abb) {\n\t\t\t\t//ABORT the process!!!!\n\t\t\t\t//OK, do nothing\n\t\t\t\t//Not exiting\n\t\t\t}\n\t\t\tcatch (IOException io) {\n\t\t\t\t(new InformDialog(io.toString(),io)).setVisible(true);\n\t\t\t}\n\n\t\t}\n\n\t}", "@Override\n public void nullstill() {\n Node<T> curr= hode;\n while (curr!=null){\n Node<T> p= curr.neste;\n curr.forrige=curr.neste= null;\n curr.verdi= null;\n curr= p;\n }\n hode= hale= null;\n endringer++;\n antall=0;\n }", "@Override\n public void markChildrenDeleted() throws DtoStatusException {\n if (polymorphismSite != null) {\n for (com.poesys.db.dto.IDbDto dto : polymorphismSite) {\n dto.cascadeDelete();\n }\n }\n }", "public void postOrderTraversal() {\n beginAnimation();\n treePostOrderTraversal(root);\n stopAnimation();\n\n }", "public void eliminarcola(){\n Cola_banco actual=new Cola_banco();// se crea un metodo actual para indicar los datos ingresado\r\n actual=primero;//se indica que nuestro dato ingresado va a ser actual\r\n if(primero != null){// se usa una condiccion si nuestro es ingresado es diferente de null\r\n while(actual != null){//se usa el while que recorra la cola indicando que actual es diferente de null\r\n System.out.println(\"\"+actual.nombre);// se imprime un mensaje con los datos ingresado con los datos ingresado desde el teclado\r\n actual=actual.siguiente;// se indica que el dato actual pase a ser igual con el apuntador siguente\r\n }\r\n }else{// se usa la condicion sino se cumple la condicion\r\n System.out.println(\"\\n la cola se encuentra vacia\");// se indica al usuario que la cola esta vacia\r\n }\r\n }", "private static void breakRecursion ( final Pharmacy pharmacy ) {\n final Set<Prescription> prescriptions = pharmacy.getPrescriptions();\n for ( final Prescription p : prescriptions ) {\n p.setPharmacy( null );\n }\n }", "private static void backtrackHelper(TreeNode current, int targetSum, List<TreeNode> path, List<List<Integer>> allPaths){\n if(current.left == null && current.right == null){\n if(targetSum == current.val){\n List<Integer> tempResultList = new ArrayList<>();\n // for(TreeNode node: path){\n // tempResultList.add(node.val);\n // }\n tempResultList.addAll(path.stream().mapToInt(o -> o.val).boxed().collect(Collectors.toList()));\n tempResultList.add(current.val);\n\n allPaths.add(tempResultList); // avoid reference puzzle\n }\n return;\n }\n\n // loop-recursion (Here only 2 choices, so we donot need loop)\n if(current.left != null){\n path.add(current);\n backtrackHelper(current.left, targetSum - current.val, path, allPaths);\n path.remove(current);\n }\n\n if(current.right != null){\n path.add(current);\n backtrackHelper(current.right, targetSum - current.val, path, allPaths);\n path.remove(current);\n }\n }", "void onDFSExit();", "private boolean cleanLockedObjects(ITransaction transaction,\n SimpleLockedObject lo, boolean temporary) {\n \n if (lo._children == null) {\n if (lo._owner == null) {\n if (temporary) {\n lo.removeTempLockedObject();\n } else {\n lo.removeLockedObject();\n }\n \n return true;\n } else {\n return false;\n }\n } else {\n boolean canDelete = true;\n int limit = lo._children.length;\n for (int i = 0; i < limit; i++) {\n if (!cleanLockedObjects(transaction, lo._children[i], temporary)) {\n canDelete = false;\n } else {\n \n // because the deleting shifts the array\n i--;\n limit--;\n }\n }\n if (canDelete) {\n if (lo._owner == null) {\n if (temporary) {\n lo.removeTempLockedObject();\n } else {\n lo.removeLockedObject();\n }\n return true;\n } else {\n return false;\n }\n } else {\n return false;\n }\n }\n }", "public void finalPass() throws Exception {\n if (_Label != null)\n _Label.finalPass();\n \n if (_GroupExpressions != null)\n _GroupExpressions.finalPass();\n \n if (_Custom != null)\n _Custom.finalPass();\n \n if (_Filters != null)\n _Filters.finalPass();\n \n if (_ParentGroup != null)\n _ParentGroup.finalPass();\n \n // Determine if group is defined inside of a Matrix; these get\n // different runtime expression handling in FunctionAggr\n _InMatrix = false;\n for (ReportLink rl = this.Parent;rl != null;rl = rl.Parent)\n {\n if (rl instanceof Matrix)\n {\n _InMatrix = true;\n break;\n }\n \n if (rl instanceof Table || rl instanceof List || rl instanceof Chart)\n break;\n \n }\n return ;\n }", "public void postorder() {\n\t\tpostorder(root);\n\t}", "public void desactivarRecursos() {\n\r\n\t}", "public static void QtoS(){\n while(!POOR.isEmpty()){\n stack.push(POOR.remove());\n }\n while(!FAIR.isEmpty()){\n stack.push(FAIR.remove());\n }\n while(!GOOD.isEmpty()){\n stack.push(GOOD.remove());\n }\n while(!VGOOD.isEmpty()){\n stack.push(VGOOD.remove());\n }\n while(!EXCELLENT.isEmpty()){\n stack.push(EXCELLENT.remove());\n }\n \n \n}", "public void dies(){\n currentNode.deleteAnt(this);\n \n }", "public void resetParents() {\r\n }", "@Override\r\n\tpublic void redo() \r\n\t\t{\n\t\twasRemoved = parent.removeChild(child);\r\n\t\tif (wasRemoved) \r\n\t\t\t{\r\n\t\t\tremoveArcs(sourceArcs);\r\n\t\t\tremoveArcs(targetArcs);\r\n\t\t\t}\r\n\t\t}", "public void postOrderTraversal(){\n System.out.println(\"postOrderTraversal\");\n //TODO: incomplete\n\n }", "public int eliminarAlFinal(){\n int edad = fin.edad;\n if(fin==inicio){\n inicio=fin=null;\n }else{\n Nodo auxiliar=inicio;\n while(auxiliar.siguiente!=fin){\n auxiliar=auxiliar.siguiente;\n }\n fin=auxiliar;\n fin.siguiente=null;\n }\n return edad;\n }", "public void eraseData() {\n LOG.warn(\"!! ERASING ALL DATA !!\");\n\n List<User> users = userRepo.getAll();\n List<Habit> habits = habitsRepo.getAll();\n List<Goal> goals = goalRepo.getAll();\n List<RecoverLink> recoverLinks = recoverLinkRepo.getAll();\n List<RegistrationLink> registrationLinks = registrationLinkRepo.getAll();\n List<FriendRequest> friendRequests = friendRequestRepo.getAll();\n\n try {\n LOG.warn(\"Erasing friend requests\");\n for (FriendRequest friendRequest : friendRequests) {\n friendRequestRepo.delete(friendRequest.getId());\n }\n LOG.warn(\"Erasing habits\");\n for (Habit habit : habits) {\n habitsRepo.delete(habit.getId());\n }\n LOG.warn(\"Erasing recovery links\");\n for (RecoverLink recoverLink : recoverLinks) {\n recoverLinkRepo.delete(recoverLink.getId());\n }\n LOG.warn(\"Erasing registration links\");\n for (RegistrationLink registrationLink : registrationLinks) {\n registrationLinkRepo.delete(registrationLink.getId());\n }\n LOG.warn(\"Removing all friendships :(\");\n for (User user : users) {\n List<User> friends = new ArrayList<>(user.getFriends());\n LOG.warn(\"Erasing friends for user with id={}\", user.getId());\n for (User friend : friends) {\n try {\n LOG.warn(\"Erasing friendship between {} and {}\", user.getId(), friend.getId());\n userRepo.removeFriends(user.getId(), friend.getId());\n } catch (Exception e) {\n LOG.error(e.getMessage());\n }\n }\n }\n LOG.warn(\"Erasing user and their user goals\");\n for (User user : users) {\n List<UserGoal> userGoals = new ArrayList<>(user.getUserGoals());\n LOG.warn(\"Erasing user goals for user with id={}\", user.getId());\n for (UserGoal userGoal : userGoals) {\n userRepo.removeUserGoal(user.getId(), userGoal.getId());\n }\n userRepo.delete(user.getId());\n }\n LOG.warn(\"Erasing goals\");\n for (Goal goal : goals) {\n goalRepo.delete(goal.getId());\n }\n LOG.warn(\"!! DATA ERASED SUCCESSFULLY !!\");\n } catch (RepoException e) {\n LOG.error(e.getMessage());\n e.printStackTrace();\n }\n }", "@Override\n public void backtrack() {\n if (!stack.isEmpty()) {\n int index = (Integer) stack.pop();\n\n if (index > arr.length) {//popping the insert function unneeded push\n insert((Integer) stack.pop());\n stack.pop();\n }\n if (index < arr.length) {//popping the delete function unneeded push\n delete(index);\n stack.pop();\n stack.pop();\n }\n System.out.println(\"backtracking performed\");\n }\n }", "public void removerPorReferencia(int referencia){\n if (buscar(referencia)) {\n // Consulta si el nodo a eliminar es el pirmero\n if (inicio.getEmpleado().getId() == referencia) {\n // El primer nodo apunta al siguiente.\n inicio = inicio.getSiguiente();\n // Apuntamos con el ultimo nodo de la lista al inicio.\n ultimo.setSiguiente(inicio);\n } else{\n // Crea ua copia de la lista.\n NodoEmpleado aux = inicio;\n // Recorre la lista hasta llegar al nodo anterior\n // al de referencia.\n while(aux.getSiguiente().getEmpleado().getId() != referencia){\n aux = aux.getSiguiente();\n }\n if (aux.getSiguiente() == ultimo) {\n aux.setSiguiente(inicio);\n ultimo = aux;\n } else {\n // Guarda el nodo siguiente del nodo a eliminar.\n NodoEmpleado siguiente = aux.getSiguiente();\n // Enlaza el nodo anterior al de eliminar con el\n // sguiente despues de el.\n aux.setSiguiente(siguiente.getSiguiente());\n // Actualizamos el puntero del ultimo nodo\n }\n }\n // Disminuye el contador de tama�o de la lista.\n size--;\n }\n }", "private static void postProcess() {\n Set<Transition> ts = petrinet.getTransitions();\n for(Transition t : ts) {\n List<Flow> outEdges = new ArrayList<Flow>(t.getPostsetEdges());\n List<Flow> inEdges = new ArrayList<Flow>(t.getPresetEdges());\n try {\n Flow f = petrinet.getFlow(t.getId(), \"void\");\n System.out.println(\"contain void!\");\n assert(f.getWeight() == 1);\n //if (outEdges.size() == 1) { // Delete the transition.\n f.setWeight(0);\n //}\n } catch (NoSuchEdgeException e) {}\n }\n }", "public void UnDia()\n {\n int i = 0;\n for (i = 0; i < 6; i++) {\n for (int j = animales.get(i).size() - 1; j >= 0; j--) {\n\n if (!procesoComer(i, j)) {\n animales.get(i).get(j).destruir();\n animales.get(i).remove(j);\n } else {\n if (animales.get(i).size() > 0 && j < animales.get(i).size()) {\n\n if (animales.get(i).get(j).reproducirse()) {\n ProcesoReproducirse(i, j);\n }\n if (j < animales.get(i).size()) {\n if (animales.get(i).get(j).morir()) {\n animales.get(i).get(j).destruir();\n animales.get(i).remove(j);\n }\n }\n }\n }\n\n }\n }\n if (krill == 0) {\n Utilidades.MostrarExtincion(0, dia);\n }\n modificarKrill();\n modificarTemperatura();\n ejecutarDesastres();\n for (i = 1; i < animales.size(); i++) {\n if (animales.get(i).size() == 0 && !extintos.get(i)) {\n extintos.set(i, true);\n Utilidades.MostrarExtincion(i, dia);\n }\n }\n dia++;\n System.out.println(dia + \":\" + krill + \",\" + animales.get(1).size() + \",\" + animales.get(2).size() + \",\" + animales.get(3).size() + \",\" + animales.get(4).size() + \",\" + animales.get(5).size());\n }", "public void EliminarElmento(int el) throws Exception{\n if (!estVacia()) {\n if (inicio == fin && el == inicio.GetDato()) {\n inicio = fin = null;\n } else if (el == inicio.GetDato()) {\n inicio = inicio.GetSiguiente();\n } else {\n NodoDoble ante, temporal;\n ante = inicio;\n temporal = inicio.GetSiguiente();\n while (temporal != null && temporal.GetDato() != el) {\n ante = ante.GetSiguiente();\n temporal = temporal.GetSiguiente();\n }\n if (temporal != null) {\n ante.SetSiguiente(temporal.GetSiguiente());\n if (temporal == fin) {\n fin = ante;\n }\n }\n }\n }else{\n throw new Exception(\"No existen datos por borrar!!!\");\n }\n }", "private void eliminarAux(NodoAVL<T> actual){\n NodoAVL<T> papa= actual.getPapa();\n if(actual.getHijoIzq()==null && actual.getHijoDer()==null)\n eliminaSinHijos(actual,papa); \n else{//CASO2: Nodo con un solo hijo (izq)\n NodoAVL<T> sustituto;\n if(actual.getHijoIzq()!=null && actual.getHijoDer()==null){\n sustituto= actual.getHijoIzq();\n eliminaSoloConHijoIzq(actual,papa,sustituto); \n }\n else//CASO3: Nodo con un solo hijo (der)\n if(actual.getHijoIzq()==null && actual.getHijoDer()!=null){\n sustituto= actual.getHijoDer();\n eliminaSoloConHijoDer(actual,papa, sustituto);\n }\n else //CASO4: Nodo con dos hijos\n if(actual.getHijoIzq()!=null && actual.getHijoDer()!=null)\n eliminaConDosHijos(actual);\n }\n \n }", "private void rollback(List<String> paths) {\n // TODO(tangqisen) if in roolback step, it didn't not allow to unzip.\n synchronized (rollBackLock) {\n for (String path : paths) {\n File file = new File(path);\n if (file.exists() && file.isDirectory()) {\n FileUtil.deletePath(path);\n }\n }\n }\n }", "@Test\n\t\tpublic void applyRecursivelyGoal() {\n\t\t\tassertSuccess(\" ;H; ;S; s ⊆ ℤ |- r∈s ↔ s\",\n\t\t\t\t\trm(\"\", ri(\"\", rm(\"2.1\", empty))));\n\t\t}", "void deleteChains() {\n\t\tif (!params.isDebug()) {\n\t\t\tfor (File deleteCandidate : toDelete) {\n\t\t\t\tdeleteCandidate.delete();\n\t\t\t\t\n\t\t\t\ttry (DirectoryStream<Path> directoryStream = Files.newDirectoryStream(deleteCandidate.toPath())) {\n\t\t\t\t\tfor (Path path : directoryStream) {\n\t\t\t\t\t\tif (!path.getFileName().toString().endsWith(\"_SCWRLed.pdb\")) {\n\t\t\t\t\t\t\tpath.toFile().delete();\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t} catch (IOException ex) {\n\t\t\t\t\tex.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "@Test\n public void testRecursionsFailure() throws Exception {\n assertTrue(doRecursions(false));\n }", "public void fixDelete(Node<E> x) {\n \t\twhile (x != root && x.getColor() == 'B') {\n\n\t\t\tif (x == x.getParent().getLeftChild()) {\n\t\t\t\tNode<E> tempNode = x.getParent().getRightChild();\n\t\t\t\tif (tempNode.getColor() == 'R') {\n\t\t\t\t\t// case 1\n\t\t\t\t\ttempNode.setColor('B');\n\t\t\t\t\tx.getParent().setColor('R');\n\t\t\t\t\tleftRotate(x.getParent());\n\t\t\t\t\ttempNode = x.getParent().getRightChild();\n\t\t\t\t}\n\n\t\t\t\tif (tempNode.getLeftChild().getColor() == 'B' && tempNode.getRightChild().getColor() == 'B') {\n\t\t\t\t\t// case 2\n\t\t\t\t\ttempNode.setColor('R');\n\t\t\t\t\tx = x.getParent();\n\t\t\t\t} else {\n\t\t\t\t\tif (tempNode.getRightChild().getColor() == 'B') {\n\t\t\t\t\t\t// case 3\n\t\t\t\t\t\ttempNode.getLeftChild().setColor('B');\n\t\t\t\t\t\ttempNode.setColor('R');\n\t\t\t\t\t\trightRotate(tempNode);\n\t\t\t\t\t\ttempNode = x.getParent().getRightChild();\n\n\t\t\t\t\t}\n\t\t\t\t\t// case 4\n\t\t\t\t\ttempNode.setColor(x.getParent().getColor());\n\t\t\t\t\tx.getParent().setColor('B');\n\t\t\t\t\ttempNode.getRightChild().setColor('B');\n\t\t\t\t\tleftRotate(x.getParent());\n\t\t\t\t\tx = root;\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tNode<E> tempNode = x.getParent().getLeftChild();\n\n\t\t\t\tif (tempNode.getColor() == 'R') {\n\t\t\t\t\ttempNode.setColor('B');\n\t\t\t\t\tx.getParent().setColor('R');\n\t\t\t\t\trightRotate(x.getParent());\n\t\t\t\t\ttempNode = x.getParent().getLeftChild();\n\t\t\t\t}\n\t\t\t\tif (tempNode.getRightChild().getColor() == 'B' && (tempNode.getLeftChild().getColor() == 'B')) {\n\t\t\t\t\ttempNode.setColor('R');\n\t\t\t\t\tx = x.getParent();\n\t\t\t\t} else {\n\t\t\t\t\tif (!(tempNode.getLeftChild().getColor() == 'B')) {\n\t\t\t\t\t\ttempNode.getRightChild().setColor('B');\n\t\t\t\t\t\ttempNode.setColor('R');\n\t\t\t\t\t\tleftRotate(tempNode);\n\t\t\t\t\t\ttempNode = x.getParent().getLeftChild();\n\t\t\t\t\t}\n\n\t\t\t\t\ttempNode.setColor(x.getParent().getColor());\n\t\t\t\t\tx.getParent().setColor('B');\n\t\t\t\t\ttempNode.getLeftChild().setColor('B');\n\t\t\t\t\trightRotate(x.getParent());\n\t\t\t\t\tx = root;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tx.setColor('B');\n }", "private void clearPreviouslyVisitedAfterReturnish(Visitable returnish) {\n\t\tSet<IdentifiableElement> retain = new HashSet<>();\n\t\tSet<IdentifiableElement> visitedNamed = dequeOfVisitedNamed.peek();\n\t\treturnish.accept(new Visitor() {\n\n\t\t\tint level = 0;\n\n\t\t\tVisitable entranceLevel1;\n\n\t\t\t@Override\n\t\t\tpublic void enter(Visitable segment) {\n\t\t\t\tif (entranceLevel1 == null && segment instanceof TypedSubtree) {\n\t\t\t\t\tentranceLevel1 = segment;\n\t\t\t\t\treturn;\n\t\t\t\t}\n\n\t\t\t\tif (entranceLevel1 != null) {\n\t\t\t\t\t++level;\n\t\t\t\t}\n\n\t\t\t\t// Only collect things exactly one level into the list of returned items\n\t\t\t\tif (level == 1 && segment instanceof IdentifiableElement identifiableElement) {\n\t\t\t\t\tretain.add(identifiableElement);\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tpublic void leave(Visitable segment) {\n\n\t\t\t\tif (entranceLevel1 != null) {\n\t\t\t\t\tlevel = Math.max(0, level - 1);\n\t\t\t\t\tif (segment == entranceLevel1) {\n\t\t\t\t\t\tentranceLevel1 = null;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\n\t\tretain.addAll(Optional.ofNullable(implicitScope.peek()).orElseGet(Set::of));\n\t\tif (visitedNamed != null) {\n\t\t\tvisitedNamed.retainAll(retain);\n\t\t}\n\t}", "public boolean canFinishUtil(LinkedList<Integer>[] graph,int i,boolean[] recStack, boolean[] visited) {\n \tif(recStack[i])\n \t\treturn false;\n \t\n \tvisited[i] = true;\n \trecStack[i] = true;\n \t\n \tif(graph[i] != null){\n \t\tIterator<Integer> itr = graph[i].iterator();\n \t\twhile(itr.hasNext()) {\n \t\t\tint n = itr.next();\n \t\t\tif(!canFinishUtil(graph, n, recStack, visited))\n \t\t\t\treturn false;\n \t\t}\n \t}\n \t\n \trecStack[i] = false;\n \treturn true;\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}", "public void chekOut() {\n int i;\n System.err.println(\"CheckOut do contrato:\\n\");\n\n if (hospedesCadastrados.isEmpty()) {\n System.err.println(\"Nao existe hospedes cadastrados\\n\");\n\n } else {\n System.err.println(\"Digite o cpf do hospede á fazer checkout:\\n\");\n\n listarHospedes();\n int cpf = verifica();\n for (i = 0; i < hospedesCadastrados.size(); i++) {\n if (hospedesCadastrados.get(i).getCpf() == cpf) {//hospede\n if (hospedesCadastrados.get(i).getContrato().isSituacao()) {\n\n System.err.println(\"Nome do hospede:\" + hospedesCadastrados.get(i).getNome());\n System.err.println(\"CPF:\" + hospedesCadastrados.get(i).getCpf() + \"\\n\");\n System.err.println(\"Servicos pedidos:\\nCarros:\");\n if (!(hospedesCadastrados.get(i).getContrato().getCarrosCadastrados() == null)) {\n System.err.println(hospedesCadastrados.get(i).getContrato().getCarrosCadastrados().toString());\n System.err.println(\"Total do serviço de aluguel de carros R$:\" + hospedesCadastrados.get(i).getContrato().getContaFinalCarros() + \"\\n\");//;\n } else {\n System.err.println(\"\\nO hospede nao possui carros cadastrados!\\n\");\n }//aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa\n\n System.err.println(\"Quartos:\");\n if (!(hospedesCadastrados.get(i).getContrato().getQuartosCadastrados() == null)) {\n System.err.println(hospedesCadastrados.get(i).getContrato().getQuartosCadastrados().toString());\n System.err.println(\"Total do servico de quartos R$:\" + hospedesCadastrados.get(i).getContrato().getContaFinalQuartos() + \"\\n\");//;\n } else {\n System.err.println(\"\\nO hospede nao possui Quartos cadastrados!\\n\");\n }//aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa\n// System.err.println(\"Servicos pedidos:\\nCarros:\" + hospedesCadastrados.get(i).getContrato().getCarrosCadastrados().toString());\n// System.err.println(\"Total do serviço de aluguel de carros R$:\" + hospedesCadastrados.get(i).getContrato().getContaFinalCarros() + \"\\n\");//;\n// System.err.println(\"Servicos de aluguel de Quartos:\" + hospedesCadastrados.get(i).getContrato().getQuartosCadastrados().toString());\n// System.err.println(\"Total do servico de quartos R$:\" + hospedesCadastrados.get(i).getContrato().getContaFinalQuartos() + \"\\n\");\n System.err.println(\"Restaurante: \");\n System.err.println(\"Total do servico de restaurante R$: \" + hospedesCadastrados.get(i).getContrato().getValorRestaurante() + \"\\n\");\n System.err.println(\"Total de horas de BabySitter contratatas:\" + hospedesCadastrados.get(i).getContrato().getHorasBaby() / 45 + \"\\n\"\n + \"Total do servico de BabySitter R$:\" + hospedesCadastrados.get(i).getContrato().getHorasBaby() + \"\\n\");\n System.err.println(\"Total Fatura final: R$\" + hospedesCadastrados.get(i).getContrato().getContaFinal());\n //para limpar as disponibilidades dos servicos\n //carros, quarto, contrato e hospede\n //é necessario remover o hospede?\n\n if (hospedesCadastrados.get(i).getContrato().getCarrosCadastrados() == null) {//limpa os carros cadastrados\n } else {\n for (int k = 0; k < hospedesCadastrados.get(i).getContrato().getCarrosCadastrados().size(); k++) {\n hospedesCadastrados.get(i).getContrato().getCarrosCadastrados().get(k).setEstado(false);\n System.err.println(\"Teste de estado do carro\");\n\n }\n\n }\n if (hospedesCadastrados.get(i).getContrato().getQuartosCadastrados() == null) {//limpa os quartoscadastrados\n } else {\n for (int k = 0; k < hospedesCadastrados.get(i).getContrato().getQuartosCadastrados().size(); k++) {\n hospedesCadastrados.get(i).getContrato().getQuartosCadastrados().get(k).setEstado(false);\n }\n\n }//else quartos\n\n hospedesCadastrados.get(i).getContrato().zerar();//zera os dados do hospede\n\n } else {\n System.err.println(\"O contrato desse hospede já encontrasse encerrado\");\n }\n }\n }\n }\n }", "public void finish(Node n) {}", "public boolean finished() {\r\n\t\tboolean allOccupied = true;\r\n\t\tfor (Node n : allNodes.values()) {\r\n\t\t\tif (n.path == 0) {\r\n\t\t\t\tallOccupied = false;\r\n\t\t\t}\r\n\t\t}\r\n\t\tif (allOccupied) {\r\n\r\n\t\t\tfor (Integer path : paths.keySet()) {\r\n\t\t\t\tStack<Node> sn=paths.get(path);\r\n\t\t\t\tNode n = sn.peek();\r\n\t\t\t\tif (!EndPoint.containsValue(n)) {\r\n\t\t\t\t\treturn false;\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tif (sn.size() > 1) {\r\n\t\t\t\t\tStack<Node> snBK = (Stack<Node>) sn.clone();\r\n\t\t\t\t\t\r\n\t\t\t\t\tNode n1 = snBK.pop();\r\n\t\t\t\t\twhile (!snBK.isEmpty()) {\r\n\t\t\t\t\t\tif(n1.path!=path)\r\n\t\t\t\t\t\t\treturn false;\r\n\t\t\t\t\t\tNode n2= snBK.pop();\r\n\t\t\t\t\t\tif(adjaMatrix[n1.index][n2.index]==0)\r\n\t\t\t\t\t\t\treturn false;\r\n\t\t\t\t\t\telse {\r\n\t\t\t\t\t\t\tn1=n2;\r\n\t\t\t\t\t\t\t\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\t\r\n\t\t\t}\r\n\t\t\treturn true;\r\n\t\t} else\r\n\t\t\treturn false;\r\n\t}", "public void postOrder(){\n postOrder(root);\n System.out.println();\n }", "public void clearEndUserExceptions();", "public int eliminardelFinal(){\n int elemento = fin.dato;\n if(inicio == fin){\n inicio=fin=null;\n }else{\n fin = fin.ant;\n fin.sig = null;\n }\n return elemento;\n \n \n }", "public boolean eliminateBranch(int brofs)\n\t{\n\t\tboolean rv = false;\n\t\tif (brofs < -1) brofs = changeElimState(brofs);\n\t\tint enda = brofs*2;\n\t\tboolean eliminated = _far[enda] < -1;\n\t\tif (!eliminated)\n\t\t{\n\t\t\trv = true;\n\t\t\tint endb = enda + 1;\n\t\t\tint fa = _far[enda];\n\t\t\tint fb = _far[endb];\n\t\t\t++(_ecnt[fa]);\n\t\t\t++(_ecnt[fb]);\n\t\t\t--(_cnt[fa]);\n\t\t\t--(_cnt[fb]);\n\t\t\tfa = changeElimState(fa);\n\t\t\tfb = changeElimState(fb);\n\t\t\t_far[enda] = fa;\n\t\t\t_far[endb] = fb;\n\t\t}\n\t\treturn rv;\n\t}", "public void borrarPiezasAmenazadoras(){\n this.piezasAmenazadoras.clear();\n }", "public void removerFinal() {\n switch (totalElementos()) {\n case 0:\n System.out.println(\"lista esta vazia\");\n break;\n case 1:\n this.primeiro = this.ultimo = null;\n this.total--;\n break;\n default:\n ElementoLista elementoTemporarioAnteriorAtual = this.primeiro;\n ElementoLista elementoTemporarioAtual = this.primeiro.irParaProximo();\n for (int i = 1; i < totalElementos(); i++) {\n elementoTemporarioAnteriorAtual = elementoTemporarioAtual;\n elementoTemporarioAtual = elementoTemporarioAtual.irParaProximo();\n }\n\n this.ultimo = elementoTemporarioAnteriorAtual;\n this.ultimo.definirProximo(null);\n this.total--;\n }\n //this.ultimo = this.ultimo.irParaAnterior();\n //this.ultimo.definirProximo(null);\n }", "void prune() {\n\n }", "public List<T> recorridoEnPostOrdenV2() {\n List<T> recorrido = new ArrayList<>(); //Lista de datos\n if (this.esArbolVacio()) {\n return recorrido; //Lista vacia\n }\n\n Stack<NodoBinario<T>> pilaDeNodos = new Stack<>();\n NodoBinario<T> nodoActual = this.raiz;\n meterEnPilaParaPostOrden(nodoActual, pilaDeNodos);\n while (!pilaDeNodos.isEmpty()) {\n nodoActual = pilaDeNodos.pop();\n recorrido.add(nodoActual.getDato());\n if (!pilaDeNodos.isEmpty()) {\n NodoBinario<T> nodoDelTope = pilaDeNodos.peek();\n if (!nodoDelTope.esHijoDerechoVacio()\n && nodoDelTope.getHijoDerecho() != nodoActual) {\n meterEnPilaParaPostOrden(nodoDelTope.getHijoDerecho(), pilaDeNodos);\n }\n }\n }\n return recorrido;\n }", "private ArrayList<Estado> tratar_repetidos(ArrayList<Estado> cerrados, ArrayList<Estado> abiertos,\r\n\t\t\tArrayList<Estado> hijos) {\r\n\r\n\t\tArrayList<Estado> aux_hijos = new ArrayList<>(); // Para evitar error de concurrencia creo una lista auxiliar de nodos hijos\r\n\t\tfor (int i = 0; i < hijos.size(); i++) {\r\n\t\t\taux_hijos.add(hijos.get(i));\r\n\t\t}\r\n\t\tswitch (trata_repe) {\r\n\t\tcase 1:\r\n\t\t\tfor (Estado h : aux_hijos) { // Recorro todos los nodos hijos\r\n\t\t\t\tif (cerrados.contains(h) || abiertos.contains(h)) // Si el hijo esta en la cola de abiertos o en cerrados\r\n\t\t\t\t\thijos.remove(h); // Lo elimino\r\n\t\t\t}\r\n\t\t\tbreak;\r\n\t\tcase 2:\r\n\t\t\tfor (Estado h : aux_hijos) { // Recorro todos los nodos hijos\r\n\t\t\t\tif (abiertos.contains(h)) // Si el hijo esta en la pila de abiertos\r\n\t\t\t\t\thijos.remove(h); // Lo elimino puesto que no nos interesa ya que tendrá una profundidad mayor\r\n\t\t\t\telse if (cerrados.contains(h)) // Si el hijo esta en cerrados\r\n\t\t\t\t\tif (h.getProf() >= cerrados.get(cerrados.indexOf(h)).getProf()) // Compruebo si la profundidad es >= \r\n\t\t\t\t\t\thijos.remove(h); // Lo elimino porque solo nos interesan los de menor profundidad\r\n\t\t\t}\r\n\t\t\tbreak;\r\n\t\tdefault:\r\n\t\t\tbreak;\r\n\t\t}\r\n\t\treturn hijos;\r\n\t}", "public void refill(){\r\n\t}", "@Test\n\tpublic void test_3_RotacionesDoblesDerechaRemove() {\n\t\tassertTrue(tree.add(2000));\n\t\tassertTrue(tree.add(3000));\n\t\tassertTrue(tree.add(1000));\n\t\tassertTrue(tree.add(3500));\n\t\tassertTrue(tree.add(500));\n\t\tassertTrue(tree.add(2500));\n\t\tassertTrue(tree.add(2700));\n\t\tassertTrue(tree.remove(1000)); // Primera rotación\n\t\tassertTrue(tree.add(2800));\n\t\tassertTrue(tree.remove(2000)); // Segunda rotación\n\t\tassertTrue(tree.add(2900));\n\t\tassertTrue(tree.remove(2500)); // Tercera rotación\n\n\t\t// Comprobamos que se hayan realizado 3 rotaciones dobles a la derecha\n\t\tassertEquals(3, tree.getRotacionesDoblesDerecha());\n\n\t\t// Comprobamos que no se haya hecho ninguna rotación más\n\t\tassertEquals(0, tree.getRotacionesSimplesIzquierda()); \n\t\tassertEquals(0, tree.getRotacionesSimplesDerecha());\n\t\tassertEquals(0, tree.getRotacionesDoblesIzquierda());\n\n\t//\tSystem.out.print(tree.toString());\n\t}", "static void postOrderIterative(BinaryTreeNode root)\n {\n // Create two stacks\n Stack<BinaryTreeNode> s1 = new Stack<BinaryTreeNode>();\n Stack<BinaryTreeNode> s2 = new Stack<BinaryTreeNode>();\n\n // push root to first stack\n s1.push(root);\n BinaryTreeNode node;\n\n // Run while first stack is not empty\n while(!s1.isEmpty()){\n // Pop an item from s1 and push it to s2\n node = s1.pop();\n s2.push(node);\n\n // Push left and right children of removed item to s1\n if(node.getLeft()!=null){\n s1.push(node.getLeft());\n }\n if(node.getRight() != null){\n s1.push(node.getRight());\n }\n }\n\n\n // Print all elements of second stack\n while (!s2.isEmpty()) {\n node = s2.pop();\n System.out.print(node.getData() + \"->\");\n }\n }", "private TreeNode helper(int[] inorder, int[] inIdx, int[] postorder, int[] postIdx, TreeNode finish) {\n if (postIdx[0] < 0 || (finish != null && inorder[inIdx[0]] == finish.val)) {\n return null;\n }\n\n TreeNode root = new TreeNode(postorder[postIdx[0]--]);\n\n root.right = helper(inorder, inIdx, postorder, postIdx, root);\n\n inIdx[0]--;\n\n root.left = helper(inorder, inIdx, postorder, postIdx, finish);\n\n return root;\n }", "private boolean postKnowledgeTrees(List<KnowledgeElement> rootElements) {\n\t\tfor (KnowledgeElement rootElement : rootElements) {\n\t\t\tif (!postKnowledgeTree(rootElement)) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t\treturn true;\n\t}", "private void postOrderTraversal(int index) {\n if (array[index] == null) {\n return;\n }\n //call recursively the method on left child\n postOrderTraversal(2 * index + 1);\n //call recursively the method on right child\n postOrderTraversal(2 * index + 2);\n // print the node\n System.out.print(array[index] + \", \");\n }", "public void finalizeChildren() {\n finalizeAllNestedChildren(this);\n }", "private static void traversals(Node root) {\n\t\tSystem.out.println(\"Node Pre \" + root.data);\n\t\tfor(Node child : root.children) {\n\t\t\tSystem.out.println(\"Edge Pre \" + root.data + \"--\" + child.data);\n\t\t\ttraversals(child);\n\t\t\tSystem.out.println(\"Edge Post \" + root.data + \"--\" + child.data);\n\t\t}\n\t\tSystem.out.println(\"Node Post \" + root.data);\n\t}", "@Test\n\tpublic void test_3_RotacionesDoblesIzquierdaRemove() {\n\t\tassertTrue(tree.add(2000));\n\t\tassertTrue(tree.add(3000));\n\t\tassertTrue(tree.add(1000));\n\t\tassertTrue(tree.add(500));\n\t\tassertTrue(tree.add(4000));\n\t\tassertTrue(tree.add(1500));\n\t\tassertTrue(tree.add(1400));\n\t\tassertTrue(tree.remove(4000)); // Primera rotación\n\t\tassertTrue(tree.add(1300));\n\t\tassertTrue(tree.remove(2000)); // Segunda rotación\n\t\tassertTrue(tree.add(1200));\n\t\tassertTrue(tree.remove(1500)); // Tercera rotación\n\n\t\t// Comprobamos que se hayan realizado 3 rotaciones dobles a la izquierda\n\t\tassertEquals(3, tree.getRotacionesDoblesIzquierda());\n\n\t\t// Comprobamos que no se haya hecho ninguna rotación más\n\t\tassertEquals(0, tree.getRotacionesSimplesDerecha()); \n\t\tassertEquals(0, tree.getRotacionesSimplesIzquierda());\n\t\tassertEquals(0, tree.getRotacionesDoblesDerecha());\n\n\t//\tSystem.out.print(tree.toString());\n\t}", "public void eliminarBodegaActual(){\n Nodo_bodega_actual.obtenerAnterior().definirSiguiente(Nodo_bodega_actual.obtenerSiguiente());\n if(Nodo_bodega_actual.obtenerSiguiente() != null){\n Nodo_bodega_actual.obtenerSiguiente().definirAnterior(Nodo_bodega_actual.obtenerAnterior());\n } \n }", "private void removerPontos(final String matricula, final int pontos) {\n firebase.child(\"Alunos/\" + matricula + \"/pontuacao\").addListenerForSingleValueEvent(new ValueEventListener() {\n @Override\n public void onDataChange(DataSnapshot dataSnapshot) {\n long qtdAtual = (long) dataSnapshot.getValue();\n if (qtdAtual >= pontos) {\n firebase.child(\"Alunos/\" + matricula + \"/pontuacao\").setValue(qtdAtual - pontos);\n Toast.makeText(getContext(), \"Pontuação removida com sucesso.\", Toast.LENGTH_SHORT).show();\n quantidade.setText(\"\");\n\n if (alunoEncontrado == null) {\n Log log = new Log(matricula, pontos);\n log.pontos(\"Remover\");\n } else {\n Log log = new Log(alunoEncontrado, pontos);\n log.pontos(\"Remover\");\n }\n } else {\n Toast.makeText(getContext(), \"Aluno com menor quantidade de pontos que o solicitado.\", Toast.LENGTH_SHORT).show();\n }\n }\n\n @Override\n public void onCancelled(DatabaseError databaseError) {\n\n }\n });\n }", "public static void borrarhijoRecursivo(Path carpetaHija) {\n\n\t\tDirectoryStream<Path> hijosCarpeta;// Este objeto sirve para poder iterar directorios lo convertimos en una\n\t\t\t\t\t\t\t\t\t\t\t// especie\n\t\t// de lista para guardar varios Path\n\n\t\ttry {\n\n\t\t\thijosCarpeta = Files.newDirectoryStream(carpetaHija);// hacemos esto para crear diferentes Path en los\n\t\t\t// subdirectorios de carpeta\n\n\t\t\t// y en el segundo borrar los ficheros\n\t\t\tfor (Path entry : hijosCarpeta) {\n\n\t\t\t\tif (Files.isDirectory(entry)) {\n\t\t\t\t\tSystem.out.println(\"entrando en\" + entry);\n\t\t\t\t\tborrarhijoRecursivo(entry);\n\t\t\t\t} else {\n\n\t\t\t\t\tSystem.out.println(\"borrando\" + entry);\n\t\t\t\t\tFiles.delete(entry);\n\t\t\t\t}\n\n\t\t\t}\n\t\t\tSystem.out.println(\"Borrando carpeta \" + carpetaHija.toAbsolutePath());\n\t\t\tFiles.delete(carpetaHija);\n\n\t\t\t// llamamos otra vez a la funcion recursivamente para crear la carpeta\n\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\n\t}", "private static void delTree(BoardTree root) {\n if (root.children == null) return;\n for (BoardTree child : root.children) {\n delTree(child);\n }\n root.children.clear();\n root = null;\n }", "private void cleanStackIfNeeded(Iterator<DocumentReference> currentIterator)\n {\n while (!this.userAndGroupIteratorStack.isEmpty() && !this.userAndGroupIteratorStack.peek().hasNext()) {\n this.userAndGroupIteratorStack.pop();\n }\n }", "private void dibujarRuta(Aeropuerto origen, Aeropuerto destino, List<Aeropuerto> mundoA,List<Ruta> mundoR) {\n\t\tList<Ruta> rutaAerolineas = new ArrayList<Ruta>();\n\t\t\n\t\tfor (int i=0;i<mundoR.size();i++){\n\t\t\tif (mundoR.get(i).getIdOrigen().equals(origen.getId()) && mundoR.get(i).getIdDestino().equals(destino.getId())){ \n\t\t\t\t//System.out.println(mundoR.get(i).getAerolinea());\n\t\t\t\trutaAerolineas.add(mundoR.get(i));\n\t\t\t\tNode nodoOrigen = Display.graph.getNode(origen.getId());\n\t\t\t\tNode nodoDestino = Display.graph.getNode(destino.getId());\n\t\t\t\t \n\t\t\t\t//Eliminar todos los nodos y agregar exclusivamente el seleccionado. \n\t\t\t\tfor (int j = 0; j <mundoR.size(); j++){\n\t\t\t\t\ttry{\n\t\t\t\t\t\tDisplay.graph.removeEdge(mundoR.get(j).getId());\n\t\t\t\t\t} catch(Exception e) {};\n\t\t\t\t}\n\t\t\t\t \n\t\t\t\tDisplay.graph.addEdge(mundoR.get(i).getId(), nodoOrigen, nodoDestino);\n\t\t\t\tDisplay.graph.addAttribute(\"ui.stylesheet\", \n\t\t\t\t\t\t\t\t\"\t\t node {shape: circle;\" + \n\t\t\t\t\t\t \t\t\" size: 2px;\" + \n\t\t\t\t\n\t\t\t\t\t\t \t\t\" fill-color: rgba(3, 166, 120,200);}\" + \n\t\t\t\t\t\t \t\t\n\t\t\t\t\t\t \t\t\" edge { shape: cubic-curve;\" +\n\t\t\t\t\t\t \t\t\" fill-mode: gradient-horizontal;\" + \n\t\t\t\t\t\t \t\t\"\t\t fill-color: rgba(250,190,88,250);\"+\t\n\t\t\t\t\t\t \t\t\" z-index: 100;\" + \n\t\t\t\t\t\t \t\t\"\t\t arrow-size: 10px;}\" +\n\t\t\t\t\t\t \t\t\n\t\t\t\t\t\t \t\t\" graph {fill-color: #2C3E50;}\"\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\tif (rutaAerolineas.size() == 0){\n\t\t\tSystem.out.println(\"No hay ruta directa\");\n\t\t\tDijkstraAlgorithm dijkstra = new DijkstraAlgorithm();\n\t\t\tdijkstra.shortestPath(origen, destino, mundoR);\n\t\t\t\n\t\t\t\n\t\t}\n\t\telse {\n\t\t\tViewer viewer = Display.graph.display();\n\t\t\tView view = viewer.getDefaultView();\n\t\t\t //view.getCamera().setViewPercent(1.7);\n\t\t\tviewer.disableAutoLayout(); \n\t\t}\n\t}", "public void resetVisited() {\r\n\t\tvisited = false;\r\n\t\tfor (ASTNode child : getChildren()) {\r\n\t\t\tif (!visited)\r\n\t\t\t\tcontinue;\r\n\t\t\tchild.resetVisited();\r\n\t\t}\r\n\t}", "public boolean stopTraversal()\n\t{\n\t\treturn hasCorrelatedCRs;\n\t}", "public void treeClosed(SrvSession sess, TreeConnection tree) {\n }" ]
[ "0.5792212", "0.5792212", "0.5370625", "0.5235582", "0.51727796", "0.5143826", "0.5036137", "0.5023762", "0.50203824", "0.5008422", "0.5003969", "0.48420054", "0.4832751", "0.47218326", "0.4719254", "0.47165683", "0.46881592", "0.4672084", "0.46715984", "0.46617356", "0.4648666", "0.4645566", "0.46396565", "0.46396565", "0.46384415", "0.46306622", "0.46087214", "0.45977274", "0.45721942", "0.45674694", "0.4564104", "0.45582035", "0.4556376", "0.4554522", "0.45544133", "0.45403248", "0.45398644", "0.45328775", "0.4511646", "0.45109957", "0.4509959", "0.45079014", "0.45078403", "0.45032474", "0.45013037", "0.45008197", "0.44859803", "0.44838473", "0.4467237", "0.44666836", "0.44616067", "0.44599095", "0.44585782", "0.44578555", "0.44508716", "0.44495726", "0.443699", "0.44358402", "0.4435386", "0.4426523", "0.44254634", "0.44235963", "0.44168612", "0.4415679", "0.44056073", "0.44036302", "0.44016626", "0.43969002", "0.4392542", "0.43883228", "0.4387144", "0.4386102", "0.43839633", "0.43788666", "0.43750796", "0.43740764", "0.437324", "0.4367644", "0.43652618", "0.4359819", "0.4352934", "0.43489283", "0.4340762", "0.4339525", "0.4338401", "0.4321635", "0.4309509", "0.43038327", "0.43031183", "0.42997065", "0.42994893", "0.42979357", "0.4297412", "0.42947096", "0.4292203", "0.4292127", "0.4290511", "0.4289311" ]
0.5757325
4
char[2] turns, i, j. max two turns. l then r. r then l. l. r. none.
public static void main(String args[]) { N = in.nextInt(); M = in.nextInt(); board = new char[N][M]; for (int i = 0; i < N; i++) { board[i] = in.next().toCharArray(); } int tot = 0; for (int i = 1; i < N - 1; i++) { tot += f(new char[2], 0, i, 0, 0, 1, 0); tot += f(new char[2], 0, i, M - 1, 0, -1, 0); } for (int i = 1; i < M - 1; i++) { tot += f(new char[2], 0, 0, i, 1, 0, 0); tot += f(new char[2], 0, N - 1, i, -1, 0, 0); } out.println(tot / 2); out.close(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "static int lps(char seq[], int i, int j) {\n // Base Case 1: If there is only 1 character\n if (i == j) {\n return 1;\n }\n\n // Base Case 2: If there are only 2 characters and both are same\n if (seq[i] == seq[j] && i + 1 == j) {\n return 2;\n }\n\n // If the first and last characters match\n if (seq[i] == seq[j]) {\n return lps(seq, i + 1, j - 1) + 2;\n }\n\n // If the first and last characters do not match\n return max(lps(seq, i, j - 1), lps(seq, i + 1, j));\n }", "private static int playblackjack(int i, int j) {\n\t\tif (i > 21 && j > 21) {\n\t\t\treturn 0;\n\t\t}\n\t\tif (i > 21) {\n\t\t\treturn j;\n\t\t}\n\t\tif (j > 21) {\n\t\t\treturn i;\n\t\t}\n\t\tif (i > j) {\n\t\t\treturn i;\n\t\t} else {\n\t\t\treturn j;\n\t\t}\n\t}", "private static int solution4(String s) {\r\n int n = s.length(), ans = 0;\r\n Map<Character, Integer> map = new HashMap<>();\r\n for (int j = 0, i = 0; j < n; j++) {\r\n if (map.containsKey(s.charAt(j)))\r\n i = Math.max(map.get(s.charAt(j)), i);\r\n ans = Math.max(ans, j - i + 1);\r\n map.put(s.charAt(j), j + 1);\r\n }\r\n return ans;\r\n }", "private void jumble(int ct) {\n Random rand = new Random();\n // Moves representing Up, Down, Left, Right\n String moveStr = \"RULD\";\n char lastMove = ' ';\n char thisMove;\n for (int i = 0; i < ct; i++) {\n thisMove = ' ';\n while (thisMove == ' ') {\n thisMove = moveStr.charAt(rand.nextInt(4));\n thisMove = makeMove(thisMove, lastMove);\n }\n lastMove = thisMove;\n //System.out.println(\"JUMBLE Moves\" + thisMove + '\\n');\n }\n }", "public static int lcs(String s1, String s2, int i, int j) {\n\n if (i < 0 || j < 0)\n return 0;\n if (s1.charAt(i) == s2.charAt(j)) {\n // System.out.println(s1.charAt(i) + \" \" + v++);\n return (1 + lcs(s1, s2, i - 1, j - 1));\n } else {\n // System.out.println(v++);\n return (Math.max(lcs(s1, s2, i, j - 1), lcs(s1, s2, i - 1, j)));\n }\n\n }", "static int alternate(String s) {\n HashMap<Character,Integer>mapCharacter = new HashMap<>();\n LinkedList<String>twoChar=new LinkedList<>();\n LinkedList<Character>arr=new LinkedList<>();\n Stack<String>stack=new Stack<>();\n int largest=0;\n int counter=0;\n if (s.length()==1){\n return 0;\n }\n\n for (int i =0; i<s.length();i++){\n if (mapCharacter.get(s.charAt(i))==null)\n {\n mapCharacter.put(s.charAt(i),1);\n }\n }\n\n Iterator iterator=mapCharacter.entrySet().iterator();\n while (iterator.hasNext()){\n counter++;\n Map.Entry entry=(Map.Entry)iterator.next();\n arr.addFirst((Character) entry.getKey());\n }\n\n for (int i=0;i<arr.size();i++){\n for (int j=i;j<arr.size();j++){\n StringBuilder sb =new StringBuilder();\n for (int k=0;k<s.length();k++){\n if (s.charAt(k)==arr.get(i)||s.charAt(k)==arr.get(j)){\n sb.append(s.charAt(k));\n }\n }\n twoChar.addFirst(sb.toString());\n }\n }\n\n\n for (int b=0;b<twoChar.size();b++){\n String elementIn=twoChar.get(b);\n stack.push(elementIn);\n\n for (int i=0;i<elementIn.length()-1;i++){\n\n if (elementIn.charAt(i)==elementIn.charAt(i+1)){\n stack.pop();\n break;\n }\n }\n }\n\n int stackSize=stack.size();\n\n for (int j=0;j<stackSize;j++){\n String s1=stack.pop();\n int length=s1.length();\n if (length>largest){\n largest=length;\n\n }\n }\n return largest;\n\n\n\n\n }", "public static void main(String[] args) {\n String s = \"we are i interviewing now\";\n char[] nums = s.toCharArray();\n // we are i interviewing n ow\n // i\n // j\n // we are i interviewing n ow\n // i\n // j\n // we are i interviewing n ow\n // i\n // j\n // we are i interviewing n ow\n \n // we are i interviewing now\n // i\n // j\n \n \n // 當nums[j]和nums[j-1]有一個不是空格時, 和i交換\n // 都是空格, 只移動j\n int i = 1;\n int j = 1;\n while (j < nums.length) {\n // j和j-1有一個不是空格 --> 交換\n if (j >= 1 && (nums[j] != ' ' || nums[j - 1] != ' ')) {\n char temp = nums[i];\n nums[i] = nums[j];\n nums[j] = temp;\n i++;\n } else if (j >= 1 && nums[j] == ' ' && nums[j - 1] == ' '\n && nums[i - 1] != ' ') {\n i++;\n }\n j++;\n }\n System.out.println(nums);\n }", "@Override\n public String part2(List<String> input) {\n ArrayList<Integer> hit = new ArrayList<>();\n int listLen = input.size();\n\n //how long is the string\n int strLen = input.get(0).length();\n\n //Char init\n\n // checking each column... ...\n // vertical y\n\n // first is down, second is right\n int[][] movement = {{1, 1}, {1, 3}, {1, 5}, {1, 7}, {2, 1}};\n\n //each item in movement\n for (int i = 0; i < movement.length; i++) {\n hit.add(0);\n // moving the sled\n for (int y = 0; y < listLen; y++) {\n int xCor = 0;\n int yCor = 0;\n if (y != 0) {\n yCor = movement[i][0] * y;\n xCor = movement[i][1] * y;\n }\n\n // in case of out of bounds x\n if (xCor >= strLen) {\n xCor = xCor % strLen;\n }\n char location;\n //in case of out of bounds y\n if (yCor < listLen) {\n location = input.get(yCor).charAt(xCor);\n if (location == '#') {\n hit.set(i,hit.get(i) + 1);\n }\n }\n\n\n }\n }\n\n //First tried int because.. well too big for int so long worked better\n long result = 1;\n for (int i = 0; i < hit.size(); i++) {\n result = result * hit.get(i);\n }\n\n return \"\" + result;\n }", "private static int solution2(String s) {\r\n int n = s.length();\r\n int ans = 0;\r\n for (int i = 0; i < n; i++)\r\n for (int j = i + 1; j <= n; j++)\r\n if (allUnique(s, i, j)) ans = Math.max(ans, j - i);\r\n return ans;\r\n }", "private int nbrBombAround(int i, int j) {\n int nbr = 0;\n if (i - 1 != -1) \n nbr = state[i - 1][j] == 'X' ? nbr + 1 : nbr + 0;\n if (i + 1 != state.length) \n nbr = state[i + 1][j] == 'X' ? nbr + 1 : nbr + 0;\n\n if (j - 1 != -1) \n nbr = state[i][j - 1] == 'X' ? nbr + 1 : nbr + 0;\n if (j + 1 != state.length) \n nbr = state[i][j + 1] == 'X' ? nbr + 1 : nbr + 0;\n\n if (i - 1 != -1 && j - 1 != -1) \n nbr = state[i - 1][j - 1] == 'X' ? nbr + 1 : nbr + 0;\n if (i + 1 != state.length && j + 1 != state.length) \n nbr = state[i + 1][j + 1] == 'X' ? nbr + 1 : nbr + 0;\n\n if (i - 1 != -1 && j + 1 != state.length) \n nbr = state[i - 1][j + 1] == 'X' ? nbr + 1 : nbr + 0;\n if (i + 1 != state.length && j - 1 != -1) \n nbr = state[i + 1][j - 1] == 'X' ? nbr + 1 : nbr + 0;\n\n return nbr;\n}", "void mo9075h(String str, int i, int i2);", "public static int vencedor(char J[][])\n\t{\n\t\tint i, j=0;\n\t\tfor(i=0;i<3;i++)\n\t\t{\n\t\t\t\tif(J[i][j]=='X'&&J[i][j+1]=='X'&&J[i][j+2]=='X')\n\t\t\t\t\treturn 1;\n\t\t\t\telse if(J[i][j]=='O'&&J[i][j+1]=='O'&&J[i][j+2]=='O')\n\t\t\t\t\treturn 1;\n\t\t}\n\t\ti=0;\n\t\tfor(j=0;j<3;j++)\n\t\t{\n\t\t\t\tif(J[i][j]=='X'&&J[i+1][j]=='X'&&J[i+2][j]=='X')\n\t\t\t\t\treturn 1;\n\t\t\t\telse if(J[i][j]=='O'&&J[i+1][j]=='O'&&J[i+2][j]=='O')\n\t\t\t\t\treturn 1;\n\t\t}\n\t\tif(J[0][0]=='X'&&J[1][1]=='X'&&J[2][2]=='X') \n\t\t\treturn 1;\n\t\telse if(J[0][0]=='O'&&J[1][1]=='O'&&J[2][2]=='O') \n\t\t\treturn 1;\n\t\telse if(J[0][2]=='X'&&J[1][1]=='X'&&J[2][0]=='X') \n\t\t\treturn 1;\n\t\telse if(J[0][2]=='O'&&J[1][1]=='O'&&J[2][0]=='O') \n\t\t\treturn 1;\n\t\treturn 0;\n\t}", "static int gemstones(String[] arr) \r\n {\r\n int i,j,k,v=-1,l=arr[0].length(),g2[]=new int[26],c=0;\r\n char g1[]=new char[26];\r\n for(i=0;i<26;i++)\r\n {\r\n g1[i]=(char)(97+i);\r\n g2[i]=0;\r\n }\r\n for(i=0;i<l;i++)\r\n for(j=0;j<26;j++)\r\n if(g1[j]==arr[0].charAt(i)) g2[j]+=1;\r\n for(i=0;i<26;i++)\r\n if(g2[i]>0) ++c;\r\n char s[]=new char[c];\r\n for(i=0;i<26;i++)\r\n if(g2[i]>0) s[++v]=g1[i];\r\n \r\n int ci[]=new int[c];\r\n for(i=0;i<c;i++)\r\n ci[i]=0;\r\n v=0;\r\n \r\n for(i=1;i<arr.length;i++)\r\n {\r\n for(k=0;k<c;k++)\r\n for(j=0;j<arr[i].length();j++)\r\n if(arr[i].charAt(j)==s[k]) {++ci[k];break;}\r\n }\r\n for(i=0;i<c;i++)\r\n if(ci[i]==arr.length-1) ++v;\r\n return v;\r\n }", "public static reverse(String s, int j)\n\t{\n\t\tint len;\n\t\tint reverse = 1;\n\t\tint i;\n\t\tlen = s.length();\n\t\tfor (i = 0;i <= j - i - 1;i++)\n\t\t{\n\t\t\tif (!s[i].equals(s[j - i - 1]))\n\t\t\t{\n\t\t\t\treverse = 0;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\treturn (reverse);\n\t}", "private void repeatingCharacter(String input) {\n\t\tMap<Character,Integer> map = new HashMap<Character,Integer>();\n\t\t//O[n]\n\t\tfor (int i = 0; i < input.length(); i++) {\n\t\t\tmap.put(input.charAt(i),map.getOrDefault(input.charAt(i), 0)+1);\n\t\t}\n\t\t//o[n]\n\t\tint max = Collections.max(map.values());\n\t\tint secondMax = 0;\n\t\tchar output = 0;\n\t\t//o[n]\n\t\tfor(Map.Entry<Character, Integer> a : map.entrySet()) {\n\t\t\tif(a.getValue()<max && a.getValue()>secondMax) {\n\t\t\t\tsecondMax = a.getValue();\n\t\t\t\toutput = a.getKey();\n\t\t\t}\n\t\t}\n\t\tif(!(secondMax == max)) {\n\t\t\tSystem.out.println(output);\n\t\t}else {\n\t\t\tSystem.out.println(\"\");\n\t\t}\n\t}", "private static int solution3(String s) {\r\n int n = s.length();\r\n Set<Character> set = new HashSet<>();\r\n int ans = 0, i = 0, j = 0;\r\n while (i < n && j < n) {\r\n if (!set.contains(s.charAt(j))) {\r\n set.add(s.charAt(j++));\r\n ans = Math.max(ans, j - i);\r\n } else {\r\n set.remove(s.charAt(i++));\r\n }\r\n }\r\n return ans;\r\n }", "public String next() {\n // abc len=2 [0,1]--> [0,2]---> [1,2] //\n // abc len=3 [0,1,2]\n // 01,02,03,12,13,23 len=2 c=4\n //\n for (int i = len-1; i >=0; i--) {\n // i = 1; (2)\n // i = 0; (1)\n// if (index[i]< characters.length()-1 - (len-1 - i)) {\n if (index[i]< characters.length() - len + i) {\n index[i]++;\n break;\n }\n }\n StringBuilder sb = new StringBuilder();\n for(int i:index) {\n sb.append(characters.charAt(i));\n }\n return sb.toString();\n }", "public long nextZobrist(int i, int j) {\n return key ^ zobrist[i * minMN + j][(currentPlayer + 1) % 2];\n }", "private String cacViTri(int i) {\n\t\tString gio = \"\";\n\t\tfor (int j = 0; j < arrInt.length; j++) {\n\t\t\tif (this.arrInt[j] == i) {\n\t\t\t\tgio += j + \" \";\n\t\t\t}\n\t\t}\n\t\treturn gio;\n\t}", "private int houseRobberWithMaxAmountHousesFromItoJ(int[] a, int i, int j) {\n\t\tif (null == a || i > j)\n\t\t\treturn 0;\n\n\t\tif (j - i == 0)\n\t\t\treturn a[i];\n\n\t\tif (j - i == 1)\n\t\t\treturn Math.max(a[i], a[j]);\n\n\t\tint n = j - i + 1;\n\t\tSystem.out.println(n);\n\t\tint t[] = new int[n + 1];\n\t\tt[0] = 0;\n\t\tt[1] = a[i];\n\n\t\tfor (int k = i + 2; k <= n; k++) {\n\t\t\tt[k] = Math.max(t[k - 1], t[k - 2] + a[k - 1]);\n\t\t}\n\t\tCommonUtil.printArray(t);\n\t\treturn t[n];\n\t}", "public static int Main()\n\t{\n\t\t//????i???,j?,hang????????lie????num???????h????????l?????\n\t\tint i;\n\t\tint j;\n\t\tint[] h = new int[5];\n\t\tint[] l = new int[5];\n\t\tint hang = 0;\n\t\tint lie;\n\t\tint num;\n\t\tint[][] a = new int[5][5];\n\t\tfor (i = 0; i < 5; i++)\n\t\t{\n\t\t\tfor (j = 0; j < 5; j++)\n\t\t\t{\n\t\t\t\ta[i][j] = Integer.parseInt(ConsoleInput.readToWhiteSpace(true));\n\t\t\t}\n\t\t}\n\t\tfor (i = 0; i < 5; i++)\n\t\t{\n\t\t\th[i] = a[i][0]; //???????????????\n\t\t\tfor (j = 0; j < 5; j++)\n\t\t\t{\n\t\t\t\tif (a[i][j] > h[i])\n\t\t\t\t{\n\t\t\t\t\th[i] = a[i][j]; //??????h?????\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tfor (j = 0; j < 5; j++)\n\t\t{\n\t\t\t\tl[j] = a[0][j];\n\t\t\t\tfor (i = 0; i < 5; i++)\n\t\t\t\t{\n\t\t\t\t\tif (a[i][j] < l[j])\n\t\t\t\t\t{\n\t\t\t\t\t\tl[j] = a[i][j]; //???l\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t}\n\t\tfor (i = 0; i < 5; i++)\n\t\t{\n\t\t\tfor (j = 0; j < 5; j++) //??????\n\t\t\t{\n\t\t\t\t//??????????????????\n\t\t\t\tif ((a[i][j] == h[i]) && (a[i][j] == l[j]))\n\t\t\t\t{\n\t\t\t\t\thang = i + 1; //hang?i??,??hang????0\n\t\t\t\t\tlie = j + 1; //lie?j??\n\t\t\t\t\tnum = a[i][j]; //???a[i][j]\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tif (hang == 0) //??hang??0????????????\n\t\t{\n\t\t\tSystem.out.print(\"not found\");\n\t\t\tSystem.out.print(\"\\n\");\n\t\t}\n\t\telse\n\t\t{\n\t\t\t//??????\n\t\t\tSystem.out.print(hang);\n\t\t\tSystem.out.print(\" \");\n\t\t\tSystem.out.print(lie);\n\t\t\tSystem.out.print(\" \");\n\t\t\tSystem.out.print(num);\n\t\t\tSystem.out.print(\"\\n\");\n\t\t}\n\n\t\treturn 0;\n\t}", "private void switchChars(char[] chars,int i, int j){\r\n\t\tchar tmp=chars[i];\r\n\t\tchars[i]=chars[j];\r\n\t\tchars[j]=tmp;\r\n\t}", "public static void solveLCSBU(char[] first, char[] second){\n int[][] table = new int[first.length+1][second.length+1];\n int[][] direction = new int[first.length+1][second.length+1];\n\n //fill up table\n for(int i = 0; i <= first.length; i++) {\n for (int j = 0; j <= second.length; j++){\n if(i == 0 || j == 0){\n //base case for empty string comparison\n table[i][j] = 0;\n\n }else if(first[i-1] == second[j-1]){\n //case where characters are equal so take previous equal\n table[i][j] = table[i-1][j-1] + 1;\n direction[i][j] = 1;\n\n }else if(table[i-1][j] > table[i][j-1]){\n //take the winner sub problem\n table[i][j] = table[i-1][j];\n direction[i][j] = 2;\n\n } else{\n table[i][j] = table[i][j-1];\n direction[i][j] = 3;\n }\n }\n }\n\n System.out.println(\"Botoom up -> LCS is \" + getLCSString(direction,first,first.length,second.length) + \" of length \"+table[first.length][second.length]);\n }", "public char occupiedBy(int i, int j) {\n\t\tint index = i * 3 + j;\n\t\tint moves = player1_moves >> index;\n\t\tif ((moves & 1) == 1)\n\t\t\treturn 'X';\n\n\t\tmoves = player2_moves >> index;\n\t\tif ((moves & 1) == 1)\n\t\t\treturn 'O';\n\n\t\treturn '\\0';\n\t}", "private static int m615a(String str, int i) {\n int length = str.length() - 1;\n int i2 = 1;\n int i3 = 0;\n while (length >= 0) {\n int indexOf = (f337z[0].indexOf(str.charAt(length)) * i2) + i3;\n i3 = i2 + 1;\n if (i3 > i) {\n i3 = 1;\n }\n length--;\n i2 = i3;\n i3 = indexOf;\n }\n return i3 % 47;\n }", "public int palsubsequence2(String str) {\r\n\t\tint m = str.length();\r\n\t\tint[][] mem = new int[m + 1][m + 1];\r\n\r\n\t\tfor (int i = 1; i <= m; ++i) {\r\n\t\t\tmem[i][i] = 1;\r\n\t\t}\r\n\t\t// Bottom-up row-wise filling\r\n\t\tfor (int i = m - 1; i >= 1; --i) {\r\n\t\t\tfor (int j = i + 1; j <= m; ++j) {\r\n\r\n\t\t\t\tif (str.charAt(i - 1) == str.charAt(j - 1))\r\n\t\t\t\t\tmem[i][j] = mem[i + 1][j - 1] + 2;\r\n\t\t\t\telse {\r\n\t\t\t\t\tint incr = mem[i + 1][j];\r\n\t\t\t\t\tint decr = mem[i][j - 1];\r\n\t\t\t\t\tmem[i][j] = Math.max(incr, decr);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\tprintMemory(mem);\r\n\t\t// printSequence(mem, 1, m, str);\r\n\t\tSystem.out.println();\r\n\t\treturn mem[1][m];\r\n\r\n\t}", "public static int[] findWrongWayCow(final char[][] field) {\n \t\n \tint right = 0;\n \tint left = 0;\n \tint down = 0;\n \tint up = 0;\n \t\n \t\n \t\n \tint firstRight[] = {-1, -1};\n \tint firstLeft[] = {-1, -1};\n \tint firstDown[] = {-1, -1};\n \tint firstUp[] = {-1, -1};\n \t\n \t\n \t\n \t\n \t\n \tint result[] = {0, 0};\n \t\n \t\n \t\n \tfor(int j = 0; j<field.length; j++) {\n \t\tfor(int i = 0; i<field[j].length; i++) {\n \t\t\t//System.out.println(field[j][i] + \" x \" + i + \" y \" + j);\n \t\t\t\n \t\t\t\n \t\t\t\n \t\t\t\n \t\t\tif(field[j][i] == 'c') {//test right WORKING\n \t\t\t\t//System.out.println(i + \" needs < \" + (field[i].length-3));\n \t\t\t\tif(i < field[j].length - 2) {\n \t\t\t\t\t//System.out.println(\"Y:\" + i + \" X: \" + (j+1) + \" equals \" + field[j][i + 1] + \" should equal o\");\n \t\t\t\t\t//System.out.println(\"Y:\" + i + \" X: \" + (j+2) + \" equals \" + field[j][i + 2] + \" should equal w\");\n \t\t\t\t\tif(field[j][i + 1] == 'o' && field[j][i + 2] == 'w') {\n \t\t\t\t\t\t//System.out.println(\"found right\");\n \t\t\t\t\t\tright++;\n \t\t\t\t\t\tif(firstRight[0] == -1 && firstRight[1] == -1) {\n \t\t\t\t\t\t\tfirstRight[0] = i;\n \t\t\t\t\t\t\tfirstRight[1] = j;\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\n \t\t\tif(field[j][i] == 'c') {//test left WORKING\n \t\t\t\t//System.out.println(i + \" needs < \" + (field[i].length-3));\n \t\t\t\tif(i >= 2) {\n \t\t\t\t\t//System.out.println(\"Y:\" + i + \" X: \" + (j+1) + \" equals \" + field[j][i + 1] + \" should equal o\");\n \t\t\t\t\t//System.out.println(\"Y:\" + i + \" X: \" + (j+2) + \" equals \" + field[j][i + 2] + \" should equal w\");\n \t\t\t\t\tif(field[j][i - 1] == 'o' && field[j][i - 2] == 'w') {\n \t\t\t\t\t\t//System.out.println(\"found right\");\n \t\t\t\t\t\tleft++;\n \t\t\t\t\t\tif(firstLeft[0] == -1 && firstLeft[1] == -1) {\n \t\t\t\t\t\t\tfirstLeft[0] = i;\n \t\t\t\t\t\t\tfirstLeft[1] = j;\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\n \t\t\t\n \t\t\tif(field[j][i] == 'c') {//test down WORKING\n \t\t\t\t//System.out.println(i + \" needs < \" + (field[i].length-3));\n \t\t\t\tif(j < field.length - 3) {\n \t\t\t\t\t//System.out.println(\"Y:\" + i + \" X: \" + (j+1) + \" equals \" + field[j][i + 1] + \" should equal o\");\n \t\t\t\t\t//System.out.println(\"Y:\" + i + \" X: \" + (j+2) + \" equals \" + field[j][i + 2] + \" should equal w\");\n \t\t\t\t\tif(field[j + 1][i] == 'o' && field[j + 2][i] == 'w') {\n \t\t\t\t\t\t//System.out.println(\"found right\");\n \t\t\t\t\t\tdown++;\n \t\t\t\t\t\tif(firstDown[0] == -1 && firstDown[1] == -1) {\n \t\t\t\t\t\t\tfirstDown[0] = i;\n \t\t\t\t\t\t\tfirstDown[1] = j;\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\n \t\t\tif(field[j][i] == 'c') {//test up WORKING\n \t\t\t\t//System.out.println(i + \" needs < \" + (field[i].length-3));\n \t\t\t\tif(j >= 2) {\n \t\t\t\t\t//System.out.println(\"Y:\" + i + \" X: \" + (j+1) + \" equals \" + field[j][i + 1] + \" should equal o\");\n \t\t\t\t\t//System.out.println(\"Y:\" + i + \" X: \" + (j+2) + \" equals \" + field[j][i + 2] + \" should equal w\");\n \t\t\t\t\tif(field[j - 1][i] == 'o' && field[j - 2][i] == 'w') {\n \t\t\t\t\t\t//System.out.println(\"found right\");\n \t\t\t\t\t\tup++;\n \t\t\t\t\t\tif(firstUp[0] == -1 && firstUp[1] == -1) {\n \t\t\t\t\t\t\tfirstUp[0] = i;\n \t\t\t\t\t\t\tfirstUp[1] = j;\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\n \t\t\t\n \t\t\t\n \t\t}\n \t}\n// \tSystem.out.println(\"Right: \" + right);\n// \tSystem.out.println(\"Left: \" + left);\n// \tSystem.out.println(\"Down: \" + down);\n// \tSystem.out.println(\"Up: \" + up);\n// \t\n// \t\n// \t\n// \tSystem.out.println(\"First Right: X: \" + firstRight[0] + \" Y: \" + firstRight[1]);\n// \tSystem.out.println(\"First Left: X: \" + firstLeft[0] + \" Y: \" + firstLeft[1]);\n// \tSystem.out.println(\"First Down: X: \" + firstDown[0] + \" Y: \" + firstDown[1]);\n// \tSystem.out.println(\"First Up: X: \" + firstUp[0] + \" Y: \" + firstUp[1]);\n \t\n \t\n \t\t\t\n \t\t\t\n \t\t\t\n \t\t\t\n \t\t\t\n //System.out.println(\"X: \" + result[0] + \" Y: \" + result[1]);\n \tif(right == 1) {\n \t\tSystem.out.println(\"X: \" + firstRight[0] + \" Y: \" + firstRight[1]);\n \t\treturn firstRight;\n \t}else if(left == 1) {\n \t\tSystem.out.println(\"X: \" + firstLeft[0] + \" Y: \" + firstLeft[1]);\n \t\treturn firstLeft;\n \t}else if(down == 1) {\n \t\tSystem.out.println(\"X: \" + firstDown[0] + \" Y: \" + firstDown[1]);\n \t\treturn firstDown;\n \t}else if(up == 1) {\n \t\tSystem.out.println(\"X: \" + firstUp[0] + \" Y: \" + firstUp[1]);\n \t\treturn firstUp;\n \t}\n \t\n return result;\n }", "public int lengthOfLongestSubstring2(String s) {\n int n = s.length(), ans = 0;\n int[] index = new int[128]; // current index of character\n // try to extend the range [i, j]\n for (int j = 0, i = 0; j < n; j++) {\n i = Math.max(index[s.charAt(j)], i);\n ans = Math.max(ans, j - i + 1);\n index[s.charAt(j)] = j + 1;\n }\n return ans;\n }", "int max_cut_2(String s)\n {\n\n if(s==null || s.length()<2)\n {\n return 0;\n }\n int n = s.length();\n boolean[][] dp = new boolean[n][n];\n int[] cut = new int[n];\n for(int i = n-1;i>=0;i++) {\n\n //i represents the 左大段和右小段的左边界\n //j represents the 右小段的右边界\n cut[i] = n - 1 - i;\n\n for (int j = i; j < n; j++) {\n if (s.charAt(i) == s.charAt(j) && (j - i < 2 || dp[i + 1][j - 1]))\n {\n dp[i][j] = true;\n if(j == n-1)\n {\n cut[i]=0;\n }\n else{\n cut[i] = Math.min(cut[i],cut[j+1]+1);\n }\n }\n }\n }\n\n return cut[0];\n }", "static String reverseShuffleMerge(String s) {\r\n resultString = new char[s.length()/2];\r\n inputString = s;\r\n \r\n for (int i = 0; i < s.length(); i++) {\r\n charCounts.put(s.charAt(i), charCounts.getOrDefault(s.charAt(i),0)+1);\r\n initialCharCounts.put(s.charAt(i), initialCharCounts.getOrDefault(s.charAt(i),0)+1);\r\n }\r\n \r\n for (int i = s.length()-1; i >= 0; i--) {\r\n if(resultStringIndex >= s.length()/2) {\r\n break;\r\n }\r\n \r\n if(minCharacter > s.charAt(i) && usedCharCounts.getOrDefault(s.charAt(i),0) < initialCharCounts.get(s.charAt(i))/2) {\r\n minCharacter = s.charAt(i);\r\n }\r\n \r\n if(initialCharCounts.get(s.charAt(i))/2 < charCounts.get(s.charAt(i)) + usedCharCounts.getOrDefault(s.charAt(i), 0) ) {\r\n possibleCharsList.add(s.charAt(i));\r\n }\r\n else {\r\n if(minCharacter >= s.charAt(i)) {\r\n addResultString(s.charAt(i));\r\n if(resultStringIndex >= s.length()/2) {\r\n break;\r\n }\r\n else {\r\n if(minCharacter != Character.MAX_VALUE && minCharacter != s.charAt(i)) {\r\n addResultString(minCharacter);\r\n }\r\n }\r\n }\r\n else {\r\n if(possibleCharsList.size()>0) {\r\n checkandAddPossibleChars(s,i);\r\n }\r\n \r\n if(resultStringIndex >= s.length()/2) {\r\n break;\r\n }\r\n else {\r\n addResultString(s.charAt(i));\r\n }\r\n }\r\n minCharacter = Character.MAX_VALUE;\r\n possibleCharsList.clear();\r\n }\r\n \r\n charCounts.put(s.charAt(i), charCounts.get(s.charAt(i))-1);\r\n }\r\n \r\n System.out.println(String.valueOf(resultString));\r\n return String.valueOf(resultString);\r\n\r\n\r\n }", "private static String swap(String str, int i, int j) {\n \n\t\tchar temp;\n char[] charArray = str.toCharArray();\n \n temp = charArray[i];\n charArray[i] = charArray[j];\n charArray[j] = temp;\n \n return String.valueOf(charArray);\n }", "void mo34677H(String str, int i, int i2);", "public void ComenzarJuego() {\n Random R = new Random();\n int i = -1; // declaro una variable i(intentos como deducion) para realizar la la busqueda de dicha palabra\n do{ //inicio un ciclo tipo (do) para que intentos sea igual a R.nextInt(palabras) en teoria el bucle\n //se ejecuta obligatoriamente\n i = R.nextInt(PalabrasAdivinar.length);\n \n }while (posicion == i); //si la condicion posicion se cumple, posicion va ser igual a i(intentos)\n posicion = i;\n palabras = PalabrasAdivinar[posicion];\n \n // y palbras va ser igual a PalabrasAdivinadar\n for (i = 0; i < palabras.length(); i++);{ \n //el ciclo for que es i(intentos) va ser igual a cero, donde inicia posicion, la condicion i va ser menor a palabras (relaciona),{ // y la ultima va manipular los valores que mencionamos\n if(palabras.charAt(i)!) // si se cumple palabras va ser igual a '' y solucion = caract sino = espacio para generar las palabras\n Solucion += (\"_\"); // debemos pensar que es muy necesario por el hecho de los espacios si por ejemplo gears of war \n else \n Solucion += (\" \");\n \n }\n \n Dibujar();\n \n }", "public static void main(String[] args) {\nScanner sc=new Scanner(System.in);\r\nString input1=sc.nextLine();\r\ninput1=input1.toLowerCase();\r\nint l=input1.length();\r\nchar a[]=input1.toCharArray();\r\nint d[]=new int[1000];\r\nString str=\"\";\r\nint i=0,k1=0,k2=0,m=0,c1=0,c2=0,c3=0,l1=0,u=0,u1=0;\r\nchar b[]={'a','b','c','d','e','f','g','h','i','j','k','l','m','n','o','p','q','r','s','t','u','v','w','x','y','z'};\r\nfor(i=0;i<l;i++)\r\n{ c3=0;\r\n\tif(a[i]==' ')\r\n\t{u=i;c3=0;\r\n\t\tfor(k1=u1,k2=i-1;k1<k2 && k2>k1;k1++,k2--)\r\n\t\t{ c1=0;c2=0;\r\n\t\t\tfor(m=0;m<26;m++)\r\n\t\t\t{\r\n\t\t\t\tif(b[m]==a[k1]) {\r\n\t\t\t\tc1=m+1;}\t\r\n\t\t\t\tif(b[m]==a[k2]) {\r\n\t\t\t\t\tc2=m+1;}\t\r\n\t\t\t}\r\n\t\t\tc3=c3+Math.abs(c1-c2);\r\n\t\t}\r\n\t\tif(k1==k2) {\r\n\t\t\tfor(m=0;m<26;m++) {\r\n\t\t\t\tif(b[m]==a[k1])\r\n\t\t\t\t\tc3=c3+(m+1);\r\n\t\t\t }\r\n\t\t\t\t}\r\n\t\t\t\r\n\t\td[l1]=c3;\r\n\t\tl1++;\r\n\t\tu1=i+1;\r\n\t\tc3=0;\r\n\t}\r\n\tif(i==l-1)\r\n\t{\r\n\t\tfor(k1=u+1,k2=i;k1<k2 && k2>k1;k1++,k2--)\r\n\t\t{ c1=0;c2=0;\r\n\t\t\tfor(m=0;m<26;m++)\r\n\t\t\t{\r\n\t\t\t\tif(b[m]==a[k1]) {\r\n\t\t\t\tc1=m+1;}\t\r\n\t\t\t\tif(b[m]==a[k2]) {\r\n\t\t\t\t\tc2=m+1;}\t\r\n\t\t\t}\r\n\t\t\tc3=c3+Math.abs(c1-c2);\r\n\t\t}\r\n\t\tif(k1==k2) {\r\n\t\t\tfor(m=0;m<26;m++) {\r\n\t\t\t\tif(b[m]==a[k1])\r\n\t\t\t\t\tc3=c3+(m+1);\r\n\t\t\t }\r\n\t\t\t\t}\r\n\t\t\t\r\n\t\td[l1]=c3;\r\n\t\tl1++;\r\n\t\tk1=i+1;\r\n\t}\r\n}\r\n\r\n for(i=0;i<l1;i++)\r\n {\r\n\t str=str+Integer.toString(d[i]);\r\n }\r\n int ans=Integer.parseInt(str);\r\n System.out.print(ans);\r\n}", "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\tString s=\"22\";\n\t\t\n\t\tif(s.indexOf(\"1\")>=0||s.equals(\"\"))\n\t\t\tSystem.out.println(\"hello\");\n\t\t\t\n\t\tArrayList f=new ArrayList();\n\t\tint stack[]=new int[2*s.length()];\n\t\tint top=-1;\n\t\tchar a[][]=new char[][]{{},{},{'#','a','b','c','#'},{'#','d','e','f','#'},{'#','g','h','i','#'},{'#','j','k','l','#'},{'#','m','n','o','#'},{'#','p','q','r','s','#'},{'#','t','u','v','#'},{'#','w','x','y','z','#'}};\n\t\tint length[]=new int []{0,0,3,3,3,3,3,4,3,4};\n\t\tStringBuilder ans=new StringBuilder();\n\t\tfor(int i=0;i<s.length();i++){\n\t\t\tint x=stack[++top]=(int)s.charAt(i)-'0';\n\t\t\tans.append(a[x][1]);\n\t\t\tstack[++top]=1;\n\t\t}\n\t\twhile(stack[1]!=length[(int)s.charAt(0)-'0']+1){\n\t\t\tif(a[stack[top-1]][stack[top]]!='#'){\n\t\t\t\tif(s.length()==(top+1)/2){\n\t\t\t\t\twhile(a[stack[top-1]][stack[top]]!='#'){\n\t\t\t\t\t\tint r=(top-1)/2;\n\t\t\t\t\t\tchar r1=a[stack[top-1]][stack[top]];\n\t\t\t\t\t\tans.setCharAt(r, r1);\n\t\t\t\t\t\tString ans1=ans.toString();\n\t\t\t\t\t\tf.add(ans1);\n\t\t\t\t\t\tstack[top]++;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\tans.setCharAt((top-1)/2, a[stack[top-1]][stack[top]]);\n\t\t\t\t\ttop+=2;\n\t\t\t\t}\n\t\t\t}\n\t\t\telse{\n\t\t\t\tstack[top]=1;\n\t\t\t\ttop-=2;\n\t\t\t\tstack[top]++;\n\t\t\t\tans.setCharAt((top-1)/2, a[stack[top-1]][stack[top]]);\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(f.size());\n\t}", "public String m21274OooO00o(int i) {\n char[] cArr = {'0', '1', '2', '3', '4', '5', '6', '7', '8', '9', 'a', 'b', 'c', 'd', 'e', 'f'};\n String[] strArr = {\"0000\", \"0001\", \"0010\", \"0011\", \"0100\", \"0101\", \"0110\", \"0111\", \"1000\", \"1001\", \"1010\", \"1011\", \"1100\", \"1101\", \"1110\", \"1111\"};\n String str = new String();\n if (i == 16) {\n for (int i2 = this.f22760OooO0O0 - 1; i2 >= 0; i2--) {\n str = ((((((((str + cArr[(this.f22759OooO00o[i2] >>> 28) & 15]) + cArr[(this.f22759OooO00o[i2] >>> 24) & 15]) + cArr[(this.f22759OooO00o[i2] >>> 20) & 15]) + cArr[(this.f22759OooO00o[i2] >>> 16) & 15]) + cArr[(this.f22759OooO00o[i2] >>> 12) & 15]) + cArr[(this.f22759OooO00o[i2] >>> 8) & 15]) + cArr[(this.f22759OooO00o[i2] >>> 4) & 15]) + cArr[this.f22759OooO00o[i2] & 15]) + \" \";\n }\n } else {\n for (int i3 = this.f22760OooO0O0 - 1; i3 >= 0; i3--) {\n str = ((((((((str + strArr[(this.f22759OooO00o[i3] >>> 28) & 15]) + strArr[(this.f22759OooO00o[i3] >>> 24) & 15]) + strArr[(this.f22759OooO00o[i3] >>> 20) & 15]) + strArr[(this.f22759OooO00o[i3] >>> 16) & 15]) + strArr[(this.f22759OooO00o[i3] >>> 12) & 15]) + strArr[(this.f22759OooO00o[i3] >>> 8) & 15]) + strArr[(this.f22759OooO00o[i3] >>> 4) & 15]) + strArr[this.f22759OooO00o[i3] & 15]) + \" \";\n }\n }\n return str;\n }", "static String gameOfThrones(String s){\n // Complete this function\n int charArray[] = new int[26];\n for(int i=0;i<s.length();i++){\n int index = s.charAt(i) - 'a';\n charArray[index]++;\n }\n boolean isPalindrome = true;\n if(s.length()%2 == 0){\n for(int i=0;i<26;i++){\n if(charArray[i]%2 != 0){\n isPalindrome = false; \n break;\n }\n } \n }else{\n boolean oneOdd = false;\n for(int i=0;i<26;i++){\n if(charArray[i]%2 != 0){\n if(!oneOdd){\n oneOdd = true;\n }else{\n isPalindrome = false; \n break;\n }\n }\n } \n }\n if(isPalindrome){\n return \"YES\";\n }else{\n return \"NO\";\n }\n }", "public static void main(String[] args) {\r\n\t\t// creating 2D array\r\n//\t\tchar arrayCharacter[][] = new char[5][2];\r\n//\t\t// inserting values in it\r\n//\t\t//1st row\r\n//\t\tarrayCharacter[0][0] = 'a';\r\n//\t\tarrayCharacter[0][1] = 'b';\r\n//\t\t//2nd row\r\n//\t\tarrayCharacter[1][0] = 'c';\r\n//\t\tarrayCharacter[1][1] = 'd';\r\n//\t\t//3rd row\r\n//\t\tarrayCharacter[2][0] = 'e';\r\n//\t\tarrayCharacter[2][1] = 'f';\r\n//\t\t//4th row\r\n//\t\tarrayCharacter[3][0] = 'g';\r\n//\t\tarrayCharacter[3][1] = 'h';\r\n//\t\t//5th row\r\n//\t\tarrayCharacter[4][0] = 'i';\r\n//\t\tarrayCharacter[5][1] = 'j';\r\n\t\t\r\n\t\tchar arrayCharacter[][] = {{'a','b'},{'c','d'},{'e','f'},{'g','h'},{'i','j'}};\r\n\t\t\r\n//\t\tSystem.out.println(arrayCharacter[3][1]);\r\n//\t\tSystem.out.println(arrayCharacter[0][0]+\" \"+arrayCharacter[4][1]);\r\n\t\t\r\n//\t\tSystem.out.println(\"Number of rows: \"+arrayCharacter.length); // number of rows\r\n//\t\tSystem.out.println(\"Number of column: \"+arrayCharacter[0].length); // number of columns\r\n\t\t\r\n\t\t// traversing into 2D array -> using 2 for loops: 1st for loop for row & 2nd for loop or column\r\n//\t\tfor(int i=0;i<arrayCharacter.length; i++) { // traverses through rows\r\n//\t\t\tfor(int j=0; j<arrayCharacter[i].length; j++) { // traverses through column\r\n//\t\t\t\tSystem.out.print(arrayCharacter[i][j]+\"|\");\r\n//\t\t\t}\r\n//\t\t}\r\n\t\t\r\n\r\n\t\tint arrayInt[][] = {{1,2,3},{4,5,6},{7,8,9},{10,11,12},{13,14,15}};\r\n\t\t\r\n\t\tSystem.out.println(\"Number of rows: \"+arrayInt.length); // number of rows\r\n\t\tSystem.out.println(\"Number of column: \"+arrayInt[0].length); // number of columns\r\n\t\t\r\n\t\tfor(int i=0;i<arrayInt.length; i++) { // traverses through rows\r\n\t\t\tfor(int j=0; j<arrayInt[i].length; j++) { // traverses through column\r\n\t\t\t\tSystem.out.print(arrayInt[i][j]+\"|\");\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\t\t// Assignment:\r\n//\t\t\t1. 1D array => FirstName, LastName, DOB, Age then traverse through using both for & while loop to extract data\r\n//\t\t\t2. 2D array => Customer Name, email address, phone number then traverse through it using for loop to extract data -> try while as well\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\t\r\n\t\t\r\n\r\n\t}", "private static String lookAndSay(String str){\n int[] numArray = new int[str.length()];\n char[] charArray = new char[str.length()];\n\n for (int i = 0; i<str.length();i++){\n charArray[i] = str.charAt(i);\n numArray[i] = Character.getNumericValue(charArray[i]);\n }\n\n int[] numVal = new int[str.length()];\n int[] numRepeat = new int[str.length()];\n int currentNum = 0;\n int currentRepeat = 0;\n int indexNum = 0;\n\n for (int j=0; j<str.length();j++){\n if (j == 0){\n currentNum = numArray[j];\n currentRepeat++;\n }else if (currentNum != numArray[j]){\n numVal[indexNum] = currentNum;\n numRepeat[indexNum] = currentRepeat;\n indexNum++;\n\n currentNum = numArray[j];\n currentRepeat = 1;\n }else {\n currentRepeat++;\n }\n if (j == str.length()-1){\n numVal[indexNum] = currentNum;\n numRepeat[indexNum] = currentRepeat;\n indexNum++;\n }\n }\n StringBuilder sb = new StringBuilder();\n int[] combineArrays = new int[indexNum*2];\n int scrapCount = 0;\n\n for (int k = 0; k <indexNum*2;k++){\n if (k % 2 == 0){\n combineArrays[k] = numRepeat[scrapCount];\n sb.append(combineArrays[k]);\n }else {\n combineArrays[k] = numVal[scrapCount];\n sb.append(combineArrays[k]);\n scrapCount++;\n }\n }\n\n\n\n return sb.toString();\n }", "int lcs(int x, int y, string s1, string s2,int[][] str){\n \n if(text1.length()==0||text2.length()==0) {\n return 0;\n }\n \n if(str[x][y]!=0) {\n return str[x][y];\n }\n \n int ans =0;\n \n if(text1.charAt(0)== text2.charAt(0)) {\n \n \n \n ans = 1 + longestCommonSubsequence(x+1,y+1,ros1, ros2,str);\n \n \n }\n else {\n \n int first = longestCommonSubsequence(x,y+1,ros1, text2,str);\n int second = longestCommonSubsequence(x+1,y,text1, ros2,str);\n \n ans = Math.max(first,second);\n \n \n \n }\n \n str[x][y] = ans;\n return ans;\n \n \n \n \n \n}", "public static char checkForWinner(char[][] a){\r\n //check AI 'o' first\r\n for (int b = 0; b<a.length; b++){\r\n for (int j = 0; j<a[b].length; j++){\r\n if (b == j && countDiag1(a,'o')==a.length){\r\n return 'o';\r\n }\r\n if (b+j== a.length-1 && countDiag2(a,'o')==a.length){\r\n return 'o';\r\n } \r\n if (countRow(a[b],'o')==a[b].length || countCol(a, b, 'o')==a.length){\r\n return 'o';\r\n } \r\n }\r\n }\r\n //then check user 'x'\r\n for (int p = 0; p<a.length; p++){\r\n for (int q = 0; q<a[p].length; q++){\r\n if (p == q && countDiag1(a,'x')==a.length){\r\n return 'x';\r\n }\r\n if (p+q== a.length-1 && countDiag2(a,'x')==a.length){\r\n return 'x';\r\n }\r\n if (countRow(a[p],'x')==a[p].length || countCol(a, p, 'x')==a.length){\r\n return 'x';\r\n } \r\n }\r\n } \r\n return ' ';\r\n }", "void mo5875b(String str, long j);", "void checkReverseDirection(int s){\n for(int p = (primerNum /2); p<(primerNum); p++) {\n for(int i=0;i<=seqs[s].length()-pLens[p];i++) {\n\n int pos=i;\n\n for(int j=0;j<pLens[p];j++) {\n\n if(seqs[s].charAt(i+j)=='N')\n scores[pos][p][14]++;\n\n int mut=checkMutation(primers[p].charAt(j),seqs[s].charAt(i+j));\n\n if(mut>0) {\n scores[pos][p][0]++;//total mismatches\n\n if(mut==1) {\n scores[pos][p][1]++;//total ts\n }\n else if(mut==2) {\n scores[pos][p][2]++;//total tv\n }\n\n if(j==0) {\n if(mut==1)\n scores[pos][p][3]++;//ts at nt1\n else if(mut==2)\n scores[pos][p][4]++;//tv at nt1\n\n scores[pos][p][11]++;//mismatches nt1-4\n }\n\n else if(j==1) {\n if(mut==1)\n scores[pos][p][5]++;//ts at nt2\n else if(mut==2)\n scores[pos][p][6]++;//tv at nt2\n\n scores[pos][p][11]++;//mismatches nt1-4\n }\n\n else if(j==2) {\n if(mut==1)\n scores[pos][p][7]++;//ts at nt3\n else if(mut==2)\n scores[pos][p][8]++;//tv at nt3\n\n scores[pos][p][11]++;//mismatches nt1-4\n }\n\n else if(j==3) {\n if(mut==1)\n scores[pos][p][9]++;//ts at nt4\n else if(mut==2)\n scores[pos][p][10]++;//tv at nt4\n\n scores[pos][p][11]++;//mismatches nt1-4\n }\n\n if(j>=pLens[p]-4){\n scores[pos][p][15]++;//mismactehs at 5' 1-4nt\n }\n }//end of mut>0\n }//end or primer characters loop j\n }//end of sequence characters loop i\n }//end of F/P/R primer loop p\n }", "public int minCutII(String s) {\n if (s == null || s.length() < 2) return 0;\n int len = s.length();\n int[] cut = new int[len];\n boolean[][] palindrome = new boolean[len][len];\n for (int i = 0; i < len; i++) {\n int min = i;\n for (int j = 0; j <= i; j++) {\n if (s.charAt(i) == s.charAt(j) &&\n ((j + 1 > i - 1) || palindrome[j + 1][i - 1])) {\n palindrome[j][i] = true;\n min = j == 0 ? 0 : Math.min(min, cut[j - 1] + 1);\n }\n }\n cut[i] = min;\n }\n return cut[len - 1];\n }", "private static String dickAndJane(int s, int p, int y, int j) {\n\t\tint Y = (12 + j - y - p) / 3;\n\t\tint S = Y + y;\n\t\tint P = Y + p;\n\n\t\tif (S + P + Y - 12 - j == 0)\n\t\t\treturn S + \" \" + P + \" \" + Y;\n\n\t\tif (S + P + Y - 12 - j == -2)\n\t\t\treturn (S + 1) + \" \" + (P + 1) + \" \" + Y;\n\n\t\tif (y > s + p)\n\t\t\tP++;\n\t\telse\n\t\t\tS++;\n\n\t\treturn S + \" \" + P + \" \" + Y;\n\n\t}", "void mo11024a(int i, int i2, String str);", "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}", "public static void main(String[] args) {\n String X_awal = \"my name is marouane, and i'm sick, thank you very much\";\n String Y = \"my name is adeleye, but you are very sick, thank you \";\n String X = match(X_awal, Y);\n int[] Penanda_Y = new int[Y.length()];\n int y_length = Y.length();\n for (int k = 0; k < y_length; k++) {\n Penanda_Y[k] = 0;\n }\n int m = X.length();\n int n = Y.length();\n String L = \"\";\n String LSym = \"\";\n int R = 0;\n int i = 1;\n int[] P = new int[100];\n P[i] = posisi(X, Y, i, Penanda_Y, R);\n i = 1;\n while (i <= m) {\n if (i != m) {\n P[i + 1] = posisi(X, Y, (i + 1), Penanda_Y, R);\n }\n if (P[i + 1] == 0) {\n if (P[i] > R) {\n L = L + \" \" + Integer.toString(P[i]);\n LSym = LSym + \" \" + X.charAt(i - 1);\n }\n break;\n }\n\n if (P[i + 1] < R || P[i] < R) {\n R = 0;\n }\n if (P[i] > P[i + 1]) {\n if (R == 0 && i > 1) {\n L = L + \" \" + Integer.toString(P[i]);\n LSym = LSym + \" \" + X.charAt(i - 1);\n Penanda_Y[P[i] - 1] = 1;\n R = P[i];\n i = i + 1;\n if (R == Y.length() || i > X.length()) {\n break;\n }\n P[i] = posisi(X, Y, i, Penanda_Y, R);\n } else {\n L = L + \" \" + Integer.toString(P[i + 1]);\n LSym = LSym + \" \" + X.charAt(i + 1 - 1);\n Penanda_Y[P[i + 1] - 1] = 1;\n R = P[i + 1];\n i = (i + 1) + 1;\n if (R == Y.length() || i > X.length()) {\n break;\n }\n P[i] = posisi(X, Y, i, Penanda_Y, R);\n }\n\n } else {\n\n if (R == 0 && i > 1) {\n L = L + \" \" + Integer.toString(P[i + 1]);\n LSym = LSym + \" \" + X.charAt(i + 1 - 1);\n Penanda_Y[P[i + 1] - 1] = 1;\n R = P[i + 1];\n i = (i + 1) + 1;\n if (R == Y.length() || i > X.length()) {\n break;\n }\n P[i] = posisi(X, Y, i, Penanda_Y, R);\n } else {\n L = L + \" \" + Integer.toString(P[i]);\n LSym = LSym + \" \" + X.charAt(i - 1);\n Penanda_Y[P[i] - 1] = 1;\n R = P[i];\n i = i + 1;\n if (R == Y.length() || i > X.length()) {\n break;\n }\n P[i] = posisi(X, Y, i, Penanda_Y, R);\n }\n }\n }\n System.out.println(\"X = \" + X_awal);\n System.out.println(\"X = \" + Y);\n System.out.println(\"L = \" + L);\n System.out.println(\"LSym = \" + LSym);\n System.out.println(\"Length = \" + LSym.length() / 2);\n}", "private String printOptimalParens(int i, int j) {\n if (i == j) {\n return \"A[\" + i + \"]\";\n } else {\n return \"(\" + printOptimalParens(i, s[i][j])\n + printOptimalParens(s[i][j] + 1, j) + \")\";\n }\n }", "private String encodedBoard() {\r\n char[] result = new char[Square.SQUARE_LIST.size() + 1];\r\n result[0] = turn().toString().charAt(0);\r\n for (Square sq : SQUARE_LIST) {\r\n result[sq.index() + 1] = get(sq).toString().charAt(0);\r\n }\r\n return new String(result);\r\n }", "static int f(char[] turns, int nturns, int r, int c, int dr, int dc, int cnt) {\n if (!range(r, c)) return 0;\n if (board[r][c] != '.') return 0;\n int ntouch = 0;\n if (r == 0) ntouch++;\n if (r == N - 1) ntouch++;\n if (c == 0) ntouch++;\n if (c == M - 1) ntouch++;\n if (ntouch >= 2) return 0; // touched corner\n if (cnt != 0 && ntouch == 1) { // touched edge second time\n out.println(\"DONE : \" + r + \" \" + c);\n return 1;\n }\n int near = 0;\n for (int[] d : new int[][] {{1, 0}, {-1, 0}, {0, 1}, {0, -1}}) {\n int nr = r + d[0];\n int nc = c + d[1];\n if (range(nr, nc) && board[nr][nc] == '*') near++;\n }\n if (cnt != 0 && !(ntouch == 0 && near == 1)) {\n return 0;\n }\n out.println(r + \" \" + c + \" \" + dr + \" \" + dc);\n board[r][c] = '*';\n int tot = 0;\n tot += f(turns, nturns, r + dr, c + dc, dr, dc, cnt + 1);\n if (nturns < 2 && cnt > 0) {\n if (nturns == 0) {\n for (char cc : new char[] {'L', 'R'}) {\n turns[0] = cc;\n int ndr = dc;\n int ndc = dr;\n if (cc == 'L') ndr = -ndr;\n if (cc == 'R') ndc = -ndc;\n tot += f(turns, nturns + 1, r + ndr, c + ndc, ndr, ndc, cnt + 1);\n }\n } else {\n char cc = turns[0] == 'L' ? 'R' : 'L';\n turns[1] = cc;\n int ndr = dc;\n int ndc = dr;\n if (cc == 'L') ndr = -ndr;\n if (cc == 'R') ndc = -ndc;\n tot += f(turns, nturns + 1, r + ndr, c + ndc, ndr, ndc, cnt + 1);\n }\n }\n board[r][c] = '.';\n return tot;\n }", "public int AI(){\n for(int i=0; i<3; i++){\n for(int j=0; j<7; j++){\n if(board[i][j]==0 && board[i+1][j]==2 && board[i+2][j]==2 && board[i+3][j]==2){\n return j;\n \n }\n }\n }\n //checks for horizontals (Y-YY)\n for(int i=0; i<6; i++){\n for(int j=0; j<4; j++){\n if(board[i][j]==2 && board[i][j+1]==0 && board[i][j+2]==2 && board[i][j+3]==2){\n if((i==5)||\n (i==4&&board[5][j+1]!=0) ||\n (i==3&&board[5][j+1]!=0&&board[4][j+1]!=0) ||\n (i==2&&board[5][j+1]!=0&&board[4][j+1]!=0&&board[3][j+1]!=0) ||\n (i==1&&board[5][j+1]!=0&&board[4][j+1]!=0&&board[3][j+1]!=0&&board[2][j+1]!=0) ||\n (i==0&&board[5][j+1]!=0&&board[4][j+1]!=0&&board[3][j+1]!=0&&board[2][j+1]!=0&&board[1][j+1]!=0) ||\n (i==0&&board[5][j+1]!=0&&board[4][j+1]!=0&&board[3][j+1]!=0&&board[2][j+1]!=0&&board[1][j+1]!=0&&board[0][j+1]!=0)){\n return j+1;\n }\n }\n }\n }\n //checks for horizontals (YY-Y)\n for(int i=0; i<6; i++){\n for(int j=0; j<4; j++){\n if(board[i][j]==2 && board[i][j+1]==2 && board[i][j+2]==0 && board[i][j+3]==2){\n if((i==5)||\n (i==4&&board[5][j+2]!=0) ||\n (i==3&&board[5][j+2]!=0&&board[4][j+2]!=0) ||\n (i==2&&board[5][j+2]!=0&&board[4][j+2]!=0&&board[3][j+2]!=0) ||\n (i==1&&board[5][j+2]!=0&&board[4][j+2]!=0&&board[3][j+2]!=0&&board[2][j+2]!=0) ||\n (i==0&&board[5][j+2]!=0&&board[4][j+2]!=0&&board[3][j+2]!=0&&board[2][j+2]!=0&&board[1][j+2]!=0) ||\n (i==0&&board[5][j+2]!=0&&board[4][j+2]!=0&&board[3][j+2]!=0&&board[2][j+2]!=0&&board[1][j+2]!=0&&board[0][j+2]!=0)){\n return j+2;\n }\n }\n }\n }\n //checks for horizontals (-YYY)\n for(int i=0; i<6; i++){\n for(int j=0; j<4; j++){\n if(board[i][j]==0 && board[i][j+1]==2 && board[i][j+2]==2 && board[i][j+3]==2){\n if((i==5)||\n (i==4&&board[5][j]!=0) ||\n (i==3&&board[5][j]!=0&&board[4][j]!=0) ||\n (i==2&&board[5][j]!=0&&board[4][j]!=0&&board[3][j]!=0) ||\n (i==1&&board[5][j]!=0&&board[4][j]!=0&&board[3][j]!=0&&board[2][j]!=0) ||\n (i==0&&board[5][j]!=0&&board[4][j]!=0&&board[3][j]!=0&&board[2][j]!=0&&board[1][j]!=0) ||\n (i==0&&board[5][j]!=0&&board[4][j]!=0&&board[3][j]!=0&&board[2][j]!=0&&board[1][j]!=0&&board[0][j]!=0)){\n return j;\n }\n }\n }\n }\n //checks for horizontals (YYY-)\n for(int i=0; i<6; i++){\n for(int j=0; j<4; j++){\n if(board[i][j]==2 && board[i][j+1]==2 && board[i][j+2]==2 && board[i][j+3]==0){\n if((i==5)||\n (i==4&&board[5][j+3]!=0) ||\n (i==3&&board[5][j+3]!=0&&board[4][j+3]!=0) ||\n (i==2&&board[5][j+3]!=0&&board[4][j+3]!=0&&board[3][j+3]!=0) ||\n (i==1&&board[5][j+3]!=0&&board[4][j+3]!=0&&board[3][j+3]!=0&&board[2][j+3]!=0) ||\n (i==0&&board[5][j+3]!=0&&board[4][j+3]!=0&&board[3][j+3]!=0&&board[2][j+3]!=0&&board[1][j+3]!=0) ||\n (i==0&&board[5][j+3]!=0&&board[4][j+3]!=0&&board[3][j+3]!=0&&board[2][j+3]!=0&&board[1][j+3]!=0&&board[0][j+3]!=0)){\n return j+3;\n }\n }\n }\n }\n //checks for diagonal (-YYY)\n for(int i=0; i<3; i++){\n for(int j=0; j<4; j++){\n if(board[i+3][j]==0 && board[i+2][j+1]==2 && board[i+1][j+2]==2 && board[i][j+3]==2){\n if((i+3==5)||\n (i+2==4&&board[5][j]!=0)||\n (i+1==3&&board[5][j]!=0&&board[4][j]!=0)||\n (i==2&&board[5][j]!=0&&board[4][j]!=0&&board[3][j]!=0)||\n (i==1&&board[5][j]!=0&&board[4][j]!=0&&board[3][j]!=0&&board[2][j]!=0)||\n (i==0&&board[5][j]!=0&&board[4][j]!=0&&board[3][j]!=0&&board[2][j]!=0&&board[1][j]!=0)){\n return j;\n }\n }\n }\n }\n //checks for diagonal (Y-YY)\n for(int i=0; i<3; i++){\n for(int j=0; j<4; j++){\n if(board[i+3][j]==2 && board[i+2][j+1]==0 && board[i+1][j+2]==2 && board[i][j+3]==2){\n if((i==2&&board[5][j+1]!=0)||\n (i==1&&board[5][j+1]!=0&&board[4][j+1]!=0)||\n (i==0&&board[5][j+1]!=0&&board[4][j+1]!=0&&board[3][j+1]!=0)){\n return j+1;\n }\n }\n }\n }\n //checks for diagonal (YY-Y)\n for(int i=0; i<3; i++){\n for(int j=0; j<4; j++){\n if(board[i+3][j]==2 && board[i+2][j+1]==2 && board[i+1][j+2]==0 && board[i][j+3]==2){\n if((i==2&&board[5][j+2]!=0&&board[4][j+2]!=0)||\n (i==1&&board[5][j+2]!=0&&board[4][j+2]!=0&&board[3][j+2]!=0)||\n (i==0&&board[5][j+2]!=0&&board[4][j+2]!=0&&board[3][j+2]!=0&&board[2][j+2]!=0)){\n return j+2;\n }\n }\n }\n }\n //checks for diagonal (YYY-)\n for(int i=0; i<3; i++){\n for(int j=0; j<4; j++){\n if(board[i+3][j]==2 && board[i+2][j+1]==2 && board[i+1][j+2]==2 && board[i][j+3]==0){\n if((i==2&&board[5][j+3]!=0&&board[4][j+3]!=0&&board[3][j+3]!=0)||\n (i==1&&board[5][j+3]!=0&&board[4][j+3]!=0&&board[3][j+3]!=0&&board[2][j+3]!=0)||\n (i==0&&board[5][j+3]!=0&&board[4][j+3]!=0&&board[3][j+3]!=0&&board[2][j+3]!=0&&board[1][j+3]!=0)){\n return j+3;\n }\n }\n }\n }\n //checks for subdiagonal (-YYY)\n for(int i=0; i<3; i++){\n for(int j=0; j<4; j++){\n if(board[i][j]==0 && board[i+1][j+1]==2 && board[i+2][j+2]==2 && board[i+3][j+3]==2){\n if((i==0&&board[1][j]!=0)||\n (i==1&&board[2][j]!=0)||\n (i==2&&board[3][j]!=0)){\n return j;\n }\n }\n }\n }\n //checks for subdiagonal (Y-YY)\n for(int i=0; i<3; i++){\n for(int j=0; j<4; j++){\n if(board[i][j]==2 && board[i+1][j+1]==0 && board[i+2][j+2]==2 && board[i+3][j+3]==2){\n if((i==0&&board[2][j+1]!=0)||\n (i==1&&board[3][j+1]!=0)||\n (i==2&&board[4][j+1]!=0)){\n return j+1;\n }\n }\n }\n }\n //checks for subdiagonal (YY-Y)\n for(int i=0; i<3; i++){\n for(int j=0; j<4; j++){\n if(board[i][j]==2 && board[i+1][j+1]==2 && board[i+2][j+2]==0 && board[i+3][j+3]==2){\n if((i==0&&board[3][j+2]!=0)||\n (i==1&&board[4][j+2]!=0)||\n (i==2&&board[5][j+2]!=0)){\n return j+2;\n }\n }\n }\n }\n //checks for subdiagonal (YYY-)\n for(int i=0; i<3; i++){\n for(int j=0; j<4; j++){\n if(board[i][j]==2 && board[i+1][j+1]==2 && board[i+2][j+2]==2 && board[i+3][j+3]==0){\n if((i==0&&board[4][j+3]!=0)||\n (i==1&&board[5][j+3]!=0)||\n (i==2)){\n return j+3;\n }\n }\n }\n }\n //BLOCK CHECKER\n //columns\n for(int i=0; i<3; i++){\n for(int j=0; j<7; j++){\n if(board[i][j]==0 && board[i+1][j]==1 && board[i+2][j]==1 && board[i+3][j]==1){\n return j; \n }\n }\n }\n //Checks for blocks horizontal (R-RR)\n for(int i=0; i<6; i++){\n for(int j=0; j<4; j++){\n if(board[i][j]==1 && board[i][j+1]==0 && board[i][j+2]==1 && board[i][j+3]==1){\n if((i==5)||\n (i==4&&board[5][j+1]!=0) ||\n (i==3&&board[5][j+1]!=0&&board[4][j+1]!=0) ||\n (i==2&&board[5][j+1]!=0&&board[4][j+1]!=0&&board[3][j+1]!=0) ||\n (i==1&&board[5][j+1]!=0&&board[4][j+1]!=0&&board[3][j+1]!=0&&board[2][j+1]!=0) ||\n (i==0&&board[5][j+1]!=0&&board[4][j+1]!=0&&board[3][j+1]!=0&&board[2][j+1]!=0&&board[1][j+1]!=0) ||\n (i==0&&board[5][j+1]!=0&&board[4][j+1]!=0&&board[3][j+1]!=0&&board[2][j+1]!=0&&board[1][j+1]!=0&&board[0][j+1]!=0)){\n return j+1;\n }\n }\n }\n }\n //checks for horizontal blocks (RR-R)\n for(int i=0; i<6; i++){\n for(int j=0; j<4; j++){\n if(board[i][j]==1 && board[i][j+1]==1 && board[i][j+2]==0 && board[i][j+3]==1){\n if((i==5)||\n (i==4&&board[5][j+2]!=0) ||\n (i==3&&board[5][j+2]!=0&&board[4][j+2]!=0) ||\n (i==2&&board[5][j+2]!=0&&board[4][j+2]!=0&&board[3][j+2]!=0) ||\n (i==1&&board[5][j+2]!=0&&board[4][j+2]!=0&&board[3][j+2]!=0&&board[2][j+2]!=0) ||\n (i==0&&board[5][j+2]!=0&&board[4][j+2]!=0&&board[3][j+2]!=0&&board[2][j+2]!=0&&board[1][j+2]!=0) ||\n (i==0&&board[5][j+2]!=0&&board[4][j+2]!=0&&board[3][j+2]!=0&&board[2][j+2]!=0&&board[1][j+2]!=0&&board[0][j+2]!=0)){\n return j+2;\n }\n }\n }\n }\n \n //checks for horizontals (-RRR)\n for(int i=0; i<6; i++){\n for(int j=0; j<4; j++){\n if(board[i][j]==0 && board[i][j+1]==1 && board[i][j+2]==1 && board[i][j+3]==1){\n if((i==5)||\n (i==4&&board[5][j]!=0) ||\n (i==3&&board[5][j]!=0&&board[4][j]!=0) ||\n (i==2&&board[5][j]!=0&&board[4][j]!=0&&board[3][j]!=0) ||\n (i==1&&board[5][j]!=0&&board[4][j]!=0&&board[3][j]!=0&&board[2][j]!=0) ||\n (i==0&&board[5][j]!=0&&board[4][j]!=0&&board[3][j]!=0&&board[2][j]!=0&&board[1][j]!=0) ||\n (i==0&&board[5][j]!=0&&board[4][j]!=0&&board[3][j]!=0&&board[2][j]!=0&&board[1][j]!=0&&board[0][j]!=0)){\n return j;\n }\n }\n }\n }\n //checks for horizontals (RRR-)\n for(int i=0; i<6; i++){\n for(int j=0; j<4; j++){\n if(board[i][j]==1 && board[i][j+1]==1 && board[i][j+2]==1 && board[i][j+3]==0){\n if((i==5)||\n (i==4&&board[5][j+3]!=0) ||\n (i==3&&board[5][j+3]!=0&&board[4][j+3]!=0) ||\n (i==2&&board[5][j+3]!=0&&board[4][j+3]!=0&&board[3][j+3]!=0) ||\n (i==1&&board[5][j+3]!=0&&board[4][j+3]!=0&&board[3][j+3]!=0&&board[2][j+3]!=0) ||\n (i==0&&board[5][j+3]!=0&&board[4][j+3]!=0&&board[3][j+3]!=0&&board[2][j+3]!=0&&board[1][j+3]!=0) ||\n (i==0&&board[5][j+3]!=0&&board[4][j+3]!=0&&board[3][j+3]!=0&&board[2][j+3]!=0&&board[1][j+3]!=0&&board[0][j+3]!=0)){\n return j+3;\n }\n }\n }\n }\n //checks for diagonal (-RRR)\n for(int i=0; i<3; i++){\n for(int j=0; j<4; j++){\n if(board[i+3][j]==0 && board[i+2][j+1]==1 && board[i+1][j+2]==1 && board[i][j+3]==1){\n if((i+3==5)||\n (i+2==4&&board[i+3][j]!=0)||\n (i+1==3&&board[i+3][j]!=0&&board[i+2][j]!=0)||\n (i==2&&board[i+3][j]!=0&&board[i+2][j]!=0&&board[i+1][j]!=0)||\n (i==1&&board[i+3][j]!=0&&board[i+2][j]!=0&&board[i+1][j]!=0&&board[i][j]!=0)||\n (i==0&&board[i+3][j]!=0&&board[i+2][j]!=0&&board[i+1][j]!=0&&board[i][j]!=0&&board[i-1][j]!=0)){\n return j;\n }\n }\n }\n }\n //checks for diagonal (R-RR)\n for(int i=0; i<3; i++){\n for(int j=0; j<4; j++){\n if(board[i+3][j]==1 && board[i+2][j+1]==0 && board[i+1][j+2]==1 && board[i][j+3]==1){\n if((i+2==4&&board[i+3][j+1]!=0)||\n (i+1==3&&board[i+3][j+1]!=0&&board[i+2][j+1]!=0)||\n (i==2&&board[i+3][j+1]!=0&&board[i+2][j+1]!=0&&board[i+1][j+1]!=0)||\n (i==1&&board[i+3][j+1]!=0&&board[i+2][j+1]!=0&&board[i+1][j+1]!=0&&board[i][j+1]!=0)||\n (i==0&&board[i+3][j+1]!=0&&board[i+2][j+1]!=0&&board[i+1][j+1]!=0&&board[i][j+1]!=0&&board[i-1][j+1]!=0)){\n return j+1;\n }\n }\n }\n }\n //checks for diagonal (RR-R)\n for(int i=0; i<3; i++){\n for(int j=0; j<4; j++){\n if(board[i+3][j]==1 && board[i+2][j+1]==1 && board[i+1][j+2]==0 && board[i][j+3]==1){\n if((i==2&&board[i+2][j+2]!=0)){//||\n return j+2;\n }\n }\n }\n }\n //checks for diagonal (RRR-)\n for(int i=0; i<3; i++){\n for(int j=0; j<4; j++){\n if(board[i+3][j]==1 && board[i+2][j+1]==1 && board[i+1][j+2]==1 && board[i][j+3]==0){\n if((i==0&&board[1][j+3]!=0)||\n (i==1&&board[2][j+3]!=0)||\n (i==2&&board[3][j+3]!=0)){\n return j+3;\n }\n }\n }\n }\n //checks for subdiagonal blocks(-RRR)\n for(int i=0; i<3; i++){\n for(int j=0; j<4; j++){\n if(board[i][j]==0 && board[i+1][j+1]==1 && board[i+2][j+2]==1 && board[i+3][j+3]==1){\n if((i==0&&board[1][j]!=0)||\n (i==1&&board[2][j]!=0)||\n (i==2&&board[3][j]!=0)){\n return j;\n }\n }\n }\n }\n //checks for subdiagonal blocks(Y-YY)\n for(int i=0; i<3; i++){\n for(int j=0; j<4; j++){\n if(board[i][j]==1 && board[i+1][j+1]==0 && board[i+2][j+2]==1 && board[i+3][j+3]==1){\n if((i==0&&board[2][j+1]!=0)||\n (i==1&&board[3][j+1]!=0)||\n (i==2&&board[4][j+1]!=0)){\n return j+1;\n }\n }\n }\n }\n //checks for subdiagonal blocks(YY-Y)\n for(int i=0; i<3; i++){\n for(int j=0; j<4; j++){\n if(board[i][j]==1 && board[i+1][j+1]==1 && board[i+2][j+2]==0 && board[i+3][j+3]==1){\n if((i==0&&board[3][j+2]!=0)||\n (i==1&&board[4][j+2]!=0)||\n (i==2&&board[5][j+2]!=0)){\n return j+2;\n }\n }\n }\n }\n //checks for subdiagonal blocks(YYY-)\n for(int i=0; i<3; i++){\n for(int j=0; j<4; j++){\n if(board[i][j]==1 && board[i+1][j+1]==1 && board[i+2][j+2]==1 && board[i+3][j+3]==0){\n if((i==0&&board[4][j+3]!=0)||\n (i==1&&board[5][j+3]!=0)||\n (i==2)){\n return j+3;\n }\n }\n }\n }\n //INTERMEDIATE BLOCKING\n //If horizontal (RR--) make it (RRY-)\n for(int i=0; i<6; i++){\n for(int j=0; j<3; j++){\n if(board[i][j]==1 && board[i][j+1]==1 && board[i][j+2]==0){\n if((i==5)||\n (i==4&&board[5][j+3]!=0) ||\n (i==3&&board[5][j+3]!=0&&board[4][j+3]!=0) ||\n (i==2&&board[5][j+3]!=0&&board[4][j+3]!=0&&board[3][j+3]!=0) ||\n (i==1&&board[5][j+3]!=0&&board[4][j+3]!=0&&board[3][j+3]!=0&&board[2][j+3]!=0) ||\n (i==0&&board[5][j+3]!=0&&board[4][j+3]!=0&&board[3][j+3]!=0&&board[2][j+3]!=0&&board[1][j+3]!=0) ||\n (i==0&&board[5][j+3]!=0&&board[4][j+3]!=0&&board[3][j+3]!=0&&board[2][j+3]!=0&&board[1][j+3]!=0&&board[0][j+3]!=0)){\n return j+2;\n }\n }\n }\n }\n //If horizontal (--RR) make it (-YRR)\n for(int i=0; i<6; i++){\n for(int j=0; j<3; j++){\n if(board[i][j+1]==0 && board[i][j+2]==1 && board[i][j+3]==1){\n if((i==5)||\n (i==4&&board[5][j+3]!=0) ||\n (i==3&&board[5][j+3]!=0&&board[4][j+3]!=0) ||\n (i==2&&board[5][j+3]!=0&&board[4][j+3]!=0&&board[3][j+3]!=0) ||\n (i==1&&board[5][j+3]!=0&&board[4][j+3]!=0&&board[3][j+3]!=0&&board[2][j+3]!=0) ||\n (i==0&&board[5][j+3]!=0&&board[4][j+3]!=0&&board[3][j+3]!=0&&board[2][j+3]!=0&&board[1][j+3]!=0) ||\n (i==0&&board[5][j+3]!=0&&board[4][j+3]!=0&&board[3][j+3]!=0&&board[2][j+3]!=0&&board[1][j+3]!=0&&board[0][j+3]!=0)){\n return j+1;\n }\n }\n }\n }\n //The following attempts to set the computer up for a win, instead of first just generating a random number\n for(int i=0; i<3; i++){\n for(int j=0; j<7; j++){\n if(board[i+1][j]==0 && board[i+2][j]==2 && board[i+3][j]==2){\n return j;\n \n }\n }\n }\n //If horizontal (-YY-) make it (-YYY)\n for(int i=0; i<6; i++){\n for(int j=0; j<3; j++){\n if(board[i][j]==0 && board[i][j+1]==2 && board[i][j+2]==2 && board[i][j+3]==0){\n if((i==5)||\n (i==4&&board[5][j+3]!=0) ||\n (i==3&&board[5][j+3]!=0&&board[4][j+3]!=0) ||\n (i==2&&board[5][j+3]!=0&&board[4][j+3]!=0&&board[3][j+3]!=0) ||\n (i==1&&board[5][j+3]!=0&&board[4][j+3]!=0&&board[3][j+3]!=0&&board[2][j+3]!=0) ||\n (i==0&&board[5][j+3]!=0&&board[4][j+3]!=0&&board[3][j+3]!=0&&board[2][j+3]!=0&&board[1][j+3]!=0) ||\n (i==0&&board[5][j+3]!=0&&board[4][j+3]!=0&&board[3][j+3]!=0&&board[2][j+3]!=0&&board[1][j+3]!=0&&board[0][j+3]!=0)){\n return j+3;\n }\n }\n }\n }\n //If horizontal (YY--) make it (YYY-)\n for(int i=0; i<6; i++){\n for(int j=0; j<3; j++){\n if(board[i][j]==2 && board[i][j+1]==2 && board[i][j+2]==0 && board[i][j+3]==0){\n if((i==5)||\n (i==4&&board[5][j+3]!=0) ||\n (i==3&&board[5][j+3]!=0&&board[4][j+3]!=0) ||\n (i==2&&board[5][j+3]!=0&&board[4][j+3]!=0&&board[3][j+3]!=0) ||\n (i==1&&board[5][j+3]!=0&&board[4][j+3]!=0&&board[3][j+3]!=0&&board[2][j+3]!=0) ||\n (i==0&&board[5][j+3]!=0&&board[4][j+3]!=0&&board[3][j+3]!=0&&board[2][j+3]!=0&&board[1][j+3]!=0) ||\n (i==0&&board[5][j+3]!=0&&board[4][j+3]!=0&&board[3][j+3]!=0&&board[2][j+3]!=0&&board[1][j+3]!=0&&board[0][j+3]!=0)){\n return j+2;\n }\n }\n }\n }\n //If horizontal (--YY) make it (-YYY)\n for(int i=0; i<6; i++){\n for(int j=0; j<3; j++){\n if(board[i][j]==0 && board[i][j+1]==0 && board[i][j+2]==2 && board[i][j+3]==2){\n if((i==5)||\n (i==4&&board[5][j+3]!=0) ||\n (i==3&&board[5][j+3]!=0&&board[4][j+3]!=0) ||\n (i==2&&board[5][j+3]!=0&&board[4][j+3]!=0&&board[3][j+3]!=0) ||\n (i==1&&board[5][j+3]!=0&&board[4][j+3]!=0&&board[3][j+3]!=0&&board[2][j+3]!=0) ||\n (i==0&&board[5][j+3]!=0&&board[4][j+3]!=0&&board[3][j+3]!=0&&board[2][j+3]!=0&&board[1][j+3]!=0) ||\n (i==0&&board[5][j+3]!=0&&board[4][j+3]!=0&&board[3][j+3]!=0&&board[2][j+3]!=0&&board[1][j+3]!=0&&board[0][j+3]!=0)){\n return j+1;\n }\n }\n }\n }\n boolean sent = false;\n //The following code will simply generate a random number.\n int x = (int)((Math.random())*7);\n if(!wonYet){ \n while(!sent){\n if(board[0][x]!=0)\n x = (int)((Math.random())*7);\n else if(board[1][x]!=0)\n x = (int)((Math.random())*7);\n else if(board[2][x]!=0)\n x = (int)((Math.random())*7);\n else if(board[3][x]!=0)\n x = (int)((Math.random())*7);\n else if(board[4][x]!=0)\n x = (int)((Math.random())*7);\n else if(board[5][x]!=0)\n x = (int)((Math.random())*7);\n sent = true;\n } \n return x;\n }\n return -1; \n }", "public static int Main()\n\t{\n\t\tint len;\n\t\tint i;\n\t\tint j;\n\t\tint p;\n\t\tint l;\n\t\tMain_str = new Scanner(System.in).nextLine();\n\t\tfor (len = 0;Main_str.charAt(len) != '\\0';len++)\n\t\t{\n\t\t\t;\n\t\t}\n\t\tfor (l = 2;l <= len;l++)\n\t\t{\n\t\t\tfor (i = 0;i <= len - l;i++)\n\t\t\t{\n\t\t\t\tfor (j = 0;j < l / 2;j++)\n\t\t\t\t{\n\t\t\t\t\tif (Main_str.charAt(i + j) != Main_str.charAt(i + l - 1 - j))\n\t\t\t\t\t{\n//C++ TO JAVA CONVERTER TODO TASK: There are no gotos or labels in Java:\n\t\t\t\t\t\tgoto here;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\tfor (p = i;p < i + l;p++)\n\t\t\t\t\t{\n\t\t\t\t\t\tSystem.out.printf(\"%c\",Main_str.charAt(p));\n\t\t\t\t\t}\n\t\t\t\t\tSystem.out.print(\"\\n\");\n//C++ TO JAVA CONVERTER TODO TASK: There are no gotos or labels in Java:\n\t\t\t\t\there:\n\t\t\t\t\tcontinue;\n\t\t\t}\n\t\t}\n\n\t\treturn 0;\n\t}", "private static long m26007a(String str, long j) {\n if (str == null || str.isEmpty()) {\n return C10442z4.m26659a(ByteBuffer.allocate(8).putLong(j).array());\n }\n byte[] bytes = str.getBytes(f26939b);\n ByteBuffer allocate = ByteBuffer.allocate(bytes.length + 8);\n allocate.put(bytes);\n allocate.putLong(j);\n return C10442z4.m26659a(allocate.array());\n }", "public final void mo2215b(String str, long j) {\n new StringBuilder(f773z[10]).append(str).append(f773z[2]).append(j);\n ac.m1576a();\n ak.m1641a(this.f774a, str, j);\n }", "public JsonArray getGameWord(int r, int c) {\n\t\tJsonObject wordr = new JsonObject();\n\t\tJsonObject wordc = new JsonObject();\n\n\t\tString word[] = new String[2]; // word[0]: Words consisting of consecutive letters in the\n\t\t\t\t\t\t\t\t\t\t// same row;\n\t\t\t\t\t\t\t\t\t\t// word[1]: Words consisting of consecutive\n\t\t\t\t\t\t\t\t\t\t// letters in the same column\n\t\tword[0] = board[r][c].getText();\n\t\tword[1] = board[r][c].getText();\n\n\t\t// Stitch letters and form words\n\t\tfor (int i = 1; r + i < board.length; i++) {\n\t\t\tif (board[r + i][c].getText().equals(\"\")) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tword[0] = word[0] + board[r + i][c].getText();\n\t\t}\n\n\t\tfor (int i = 1; r - i >= 0; i++) {\n\t\t\tif (board[r - i][c].getText().equals(\"\")) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tword[0] = board[r - i][c].getText() + word[0];\n\t\t}\n\n\t\tfor (int i = 1; c + i < board.length; i++) {\n\t\t\tif (board[r][c + i].getText().equals(\"\")) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tword[1] = word[1] + board[r][c + i].getText();\n\t\t}\n\t\tfor (int i = 1; c - i >= 0; i++) {\n\t\t\tif (board[r][c - i].getText().equals(\"\")) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tword[1] = board[r][c - i].getText() + word[1];\n\t\t}\n\n\t\t// Only pass the vertical word when there is only one letter\n\t\tif (word[0].length() + word[1].length() != 2) {\n\t\t\twordr.addProperty(\"Word\", word[0]);\n\t\t\twordr.addProperty(\"Score\", word[0].length());\n\t\t}\n\n\t\twordc.addProperty(\"Word\", word[1]);\n\t\twordc.addProperty(\"Score\", word[1].length());\n\n\t\tgameWord = new JsonArray();\n\n\t\tgameWord.add(wordr);\n\t\tgameWord.add(wordc);\n\n\t\treturn gameWord;\n\n\t}", "public static void main(String[] args) {\n\t\tScanner sc=new Scanner(System.in);\n\t\tint tc=sc.nextInt();\n\t\twhile(tc-->0)\n\t\t{\n\t\t\tString s=sc.next();\n\t\t\tchar ch[]=s.toCharArray();\n\t\t\tint first=-1;\n\t\t\tint last=-1;\n\t\t\tint crash=0;\n\t\t\tint d=0;\n\t\t\tfor(int i=0,j=ch.length;i<j-1;i++)\n\t\t\t{\n\t\t\t\tif(ch[i]=='r'&&ch[i+1]=='l')\n\t\t\t\t{\n\t\t\t\t\tch[i]='d';\n\t\t\t\t\tch[i+1]='d';\n\t\t\t\t\tcrash+=2;\n\t\t\t\t}\n\t\t\t}\n\t\t\tfor(int i=0,j=ch.length;i<j;i++)\n\t\t\t{\n\t\t\t\tif(ch[i]=='d')\n\t\t\t\t{\n\t\t\t\t\td+=1;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif(d==0)\n\t\t\t{\n\t\t\t\tSystem.out.println(0);\n\t\t\t}else\n\t\t\t{\n\t\t\t\tfor(int i=0,j=ch.length;i<j;i++)\n\t\t\t\t{\n\t\t\t\t\tif(ch[i]=='d')\n\t\t\t\t\t{\n\t\t\t\t\t\tfirst=i;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tfor(int i=ch.length-1;i>=0;i--)\n\t\t\t\t{\n\t\t\t\t\tif(ch[i]=='d')\n\t\t\t\t\t{\n\t\t\t\t\t\tlast=i;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif(first==last)\n\t\t\t\t{\n\t\t\t\t\tfor(int i=0;i<first;i++)\n\t\t\t\t\t{\n\t\t\t\t\t\tif(ch[i]=='r')\n\t\t\t\t\t\t\tcrash+=1;\n\t\t\t\t\t}\n\t\t\t\t\tfor(int i=ch.length-1;i>=first;i--)\n\t\t\t\t\t{\n\t\t\t\t\t\tif(ch[i]=='l')\n\t\t\t\t\t\t\tcrash+=1;\n\t\t\t\t\t}\n\t\t\t\t\tSystem.out.println(crash);\n\t\t\t\t}else{\n\t\t\t\t\tfor(int i=0;i<first;i++)\n\t\t\t\t\t{\n\t\t\t\t\t\tif(ch[i]=='r')\n\t\t\t\t\t\t\tcrash+=1;\n\t\t\t\t\t}\n\t\t\t\t\tfor(int i=ch.length-1;i>=last;i--)\n\t\t\t\t\t{\n\t\t\t\t\t\tif(ch[i]=='l')\n\t\t\t\t\t\t\tcrash+=1;\n\t\t\t\t\t}\n\t\t\t\t\tfor(int i=first;i<=last;i++)\n\t\t\t\t\t{\n\t\t\t\t\t\tif(ch[i]!='d')\n\t\t\t\t\t\t\tcrash+=1;\n\t\t\t\t\t}\n\t\t\t\t\tSystem.out.println(crash);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "private static String lcs(String a, String b) {\n\n int rows = a.length();\n int cols = b.length();\n\n // Use two arrays to save space for a full metrics\n int[] previousRow = new int[cols];\n int[] currentRow = new int[cols];\n\n String longest = \"\"; // Longest so far\n\n for (int i=0; i<rows; ++i) {\n char r = a.charAt(i);\n for (int j=0; j<cols; ++j) {\n if (r == b.charAt(j)) {\n // Match!\n int matchLength = 1;\n if (j != 0) {\n matchLength += previousRow[j-1];\n }\n currentRow[j] = matchLength; \n if (matchLength > longest.length()) {\n // Fond a new candidate\n longest = a.substring(i - matchLength + 1, i + 1);\n }\n }\n // Clear out previous array so that it can be used for next round\n if (j != 0) {\n previousRow[j-1] = 0;\n }\n }\n\n // Reuse previous row, make it current.\n // It is already zero-ed out upto the last item, which won't be read\n int[] tmpRow = previousRow;\n previousRow = currentRow;\n currentRow = tmpRow;\n }\n\n return longest;\n }", "@Override\n public String apply(Integer i) {\n List<Character> list = new ArrayList<>();\n RandomStrings rnd = new RandomStrings();\n StringBuilder sb = new StringBuilder();\n for (int j = 0; j < i ; j++) {\n list.add((char)rnd.generateNumberAscii());\n }\n for (Character character : list) {\n sb.append(character);\n }\n return sb.toString();\n }", "public int lengthOfLongestSubstring2(String s) {\n\n int res = 0;\n int len = s.length();\n Map<Character, Integer> map = new HashMap<Character, Integer>();\n\n for (int i = 0, j = 0; j < len; j++) {\n if (map.containsKey(s.charAt(j))) {\n i = Math.max(map.get(s.charAt(j)), i);// use Max mesas never looking back\n }\n res = Math.max(res, j - i + 1); // j not plus yet, need add 1 to get a real length ( indicate j itself)\n map.put(s.charAt(j), j + 1); // (j+1) means skip duplicate\n System.out.println(map.toString()); // will update the value of key ( union key)\n }\n\n\n return res;\n }", "public void oneTurn(){\n Integer[] previousTurn = Arrays.copyOf(this.board, this.board.length);\n\n // itero su previousTurn per costruire il board successivo\n for (int i=0;i<previousTurn.length;i++){\n\n // mi salvo la situazione della casella sx, se i==0 prendo l'ultima\n int left = previousTurn[previousTurn.length-1];\n if (i!=0)\n left = previousTurn[i-1];\n\n // mi salvo la situazione della casella dx, se i==ultima prendo zero\n int right = previousTurn[0];\n if (i!=previousTurn.length-1)\n right = previousTurn[i+1];\n \n // se a sx e dx c'è 0, metto 0\n // caso fine sottopopolazione (010->000)\n if (left == 0 && right == 0){\n this.board[i] = 0;\n \n // se a sx e dx c'è 1, metto 1 se c'era 0 e viceversa\n // caso nascita (101->111) e fine sovrappopolazione (111->101)\n } else if (left == 1 && right == 1)\n if (this.board[i] == 1)\n this.board[i] = 0;\n else\n this.board[i] = 1;\n \n // tutte le altre casistiche, lascio invariata la situazione\n \n }\n\n this.turn += 1;\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 void m21278OooO00o(int i, int i2) {\n int i3 = i >>> 5;\n int i4 = i & 31;\n int i5 = 32 - i4;\n int i6 = i - i2;\n int i7 = i6 >>> 5;\n int i8 = 32 - (i6 & 31);\n int i9 = ((i << 1) - 2) >>> 5;\n while (i9 > i3) {\n int[] iArr = this.f22759OooO00o;\n long j = 4294967295L & ((long) iArr[i9]);\n int i10 = i9 - i3;\n int i11 = i10 - 1;\n iArr[i11] = iArr[i11] ^ ((int) (j << i5));\n iArr[i10] = (int) (((long) iArr[i10]) ^ (j >>> (32 - i5)));\n int i12 = i9 - i7;\n int i13 = i12 - 1;\n iArr[i13] = iArr[i13] ^ ((int) (j << i8));\n iArr[i12] = (int) ((j >>> (32 - i8)) ^ ((long) iArr[i12]));\n iArr[i9] = 0;\n i9--;\n i3 = i3;\n }\n int[] iArr2 = this.f22759OooO00o;\n long j2 = (4294967295 << i4) & ((long) iArr2[i3]) & 4294967295L;\n iArr2[0] = (int) (((long) iArr2[0]) ^ (j2 >>> (32 - i5)));\n int i14 = i3 - i7;\n int i15 = i14 - 1;\n if (i15 >= 0) {\n iArr2[i15] = iArr2[i15] ^ ((int) (j2 << i8));\n }\n int[] iArr3 = this.f22759OooO00o;\n iArr3[i14] = (int) ((j2 >>> (32 - i8)) ^ ((long) iArr3[i14]));\n iArr3[i3] = iArr3[i3] & OooO0OO[i4];\n this.f22760OooO0O0 = ((i - 1) >>> 5) + 1;\n this.f22758OooO00o = i;\n }", "public static void main(String[] args) {\n\t\t\n\t\tString str = \"abccbc\";\n\t\t\n\t\tlong[][] dp = new long[str.length()][str.length()];\t\n\t\t\n\t\tfor (int g=0 ; g<str.length() ; g++) {\n\t\t\t\n\t\t\tfor (int i=0 , j=g ; j<str.length() ; i++ , j++) {\n\t\t\t\tif (g == 0) dp[i][j] = 1;\n\t\t\t\t\n\t\t\t\telse if (g == 1) dp[i][j] = (str.charAt(i) == str.charAt(j)) ? 3 : 2;\n\t\t\t\t\n\t\t\t\telse dp[i][j] = (str.charAt(i) == str.charAt(j)) ? (dp[i][j-1] + dp[i+1][j] + 1) : (dp[i][j-1] + dp[i+1][j] - dp[i+1][j-1]);\n\t\t\t\t\n\t\t\t\t//if (dp[i][j] && str.substring(i, j+1).length() > result.length()) result = str.substring(i, j+1);\n\t\t\t}\n\t\t}\n\t\t\n\t\tSystem.out.println(dp[0][str.length()-1]);\n\t}", "static String roadsInHackerland(int n, int[][] roads) {\n\t\tMap<Integer, List<int[]>> map = new HashMap<>();\n\t\tfor (int i = 0; i < roads.length; i++) {\n\t\t\tif (map.containsKey(roads[i][0])) {\n\t\t\t\tList<int[]> list = map.get(roads[i][0]);\n\t\t\t\tboolean isFound = false;\n\t\t\t\tfor (int j = 0; j < list.size(); j++) {\n\t\t\t\t\tif (list.get(j)[0] == roads[i][1]) {\n\t\t\t\t\t\tif (list.get(j)[1] > roads[i][2]) {\n\t\t\t\t\t\t\tlist.get(j)[1] = roads[i][2];\n\t\t\t\t\t\t}\n\t\t\t\t\t\tisFound = true;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif (!isFound) {\n\t\t\t\t\tlist.add(new int[] { roads[i][1], roads[i][2] });\n\t\t\t\t\tmap.put(roads[i][0], list);\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tList<int[]> valArr = new ArrayList<>();\n\t\t\t\tvalArr.add(new int[] { roads[i][1], roads[i][2] });\n\t\t\t\tmap.put(roads[i][0], valArr);\n\t\t\t}\n\n\t\t\tif (map.containsKey(roads[i][1])) {\n\t\t\t\tList<int[]> list = map.get(roads[i][1]);\n\t\t\t\tboolean isFound = false;\n\t\t\t\tfor (int j = 0; j < list.size(); j++) {\n\t\t\t\t\tif (list.get(j)[0] == roads[i][0]) {\n\t\t\t\t\t\tif (list.get(j)[1] > roads[i][2]) {\n\t\t\t\t\t\t\tlist.get(j)[1] = roads[i][2];\n\t\t\t\t\t\t}\n\t\t\t\t\t\tisFound = true;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif (!isFound) {\n\t\t\t\t\tlist.add(new int[] { roads[i][0], roads[i][2] });\n\t\t\t\t\tmap.put(roads[i][1], list);\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tList<int[]> valArr = new ArrayList<>();\n\t\t\t\tvalArr.add(new int[] { roads[i][0], roads[i][2] });\n\t\t\t\tmap.put(roads[i][1], valArr);\n\t\t\t}\n\t\t}\n\t\tBigInteger sum = BigInteger.ZERO;\n\t\tfor (int i = 1; i < n; i++) {\n\t\t\tfor (int j = i + 1; j <= n; j++) {\n\t\t\t\tList<Integer> nodesArr = new ArrayList<>();\n\t\t\t\t// nodesArr.add(i);\n\t\t\t\tsumTotal = BigInteger.ZERO;\n\t\t\t\tgetMinDistance(i, j, BigInteger.ZERO, map, nodesArr);\n\t\t\t\tSystem.out.println(i + \"-\" + j + \" = \" + sumTotal);\n//\t\t\t\tSystem.out.println(\"------------------------\");\n\t\t\t\tsum = sum.add(sumTotal);\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(sum);\n\t\treturn sum.toString(2);\n\t}", "int main()\n{\n char s[10000]; \n scanf(\"%s\",s); \n int c; char t[1000][1000]; \n scanf(\"%d\",&c); \n int i,j=0,k=0; \n for(i=0;i<strlen(s); i+=c)\n {\n for(j=0;j<c;j++)\n {\n if(k%2==0)\n {\n if(i+j < strlen(s) )\n {t[k][j]=s[i+j];} \n else\n {t[k][j]='X';}\n }\n else\n {\n if(i+j < strlen(s))\n {\n t[k][c-j-1]=s[i+j]; \n } else\n {\n t[k][c-j-1]='X'; \n }\n } \n }\n k++;\n } \n for(i=0;i<c;i++)\n {\n for(j=0;j<k;j++)\n {\n printf(\"%c\",t[j][i]); \n }\n }\n}", "private void a(java.lang.String r6, java.lang.StringBuilder r7) {\n /*\n r5 = this;\n r0 = F;\n r1 = J;\n r2 = 35;\n r1 = r1[r2];\n r1 = r6.indexOf(r1);\n if (r1 <= 0) goto L_0x0057;\n L_0x000e:\n r2 = J;\n r3 = 38;\n r2 = r2[r3];\n r2 = r2.length();\n r2 = r2 + r1;\n r3 = r6.charAt(r2);\n r4 = 43;\n if (r3 != r4) goto L_0x0039;\n L_0x0021:\n r3 = 59;\n r3 = r6.indexOf(r3, r2);\n if (r3 <= 0) goto L_0x0032;\n L_0x0029:\n r3 = r6.substring(r2, r3);\t Catch:{ RuntimeException -> 0x0072 }\n r7.append(r3);\t Catch:{ RuntimeException -> 0x0072 }\n if (r0 == 0) goto L_0x0039;\n L_0x0032:\n r2 = r6.substring(r2);\t Catch:{ RuntimeException -> 0x0072 }\n r7.append(r2);\t Catch:{ RuntimeException -> 0x0072 }\n L_0x0039:\n r2 = J;\t Catch:{ RuntimeException -> 0x0074 }\n r3 = 37;\n r2 = r2[r3];\t Catch:{ RuntimeException -> 0x0074 }\n r2 = r6.indexOf(r2);\t Catch:{ RuntimeException -> 0x0074 }\n r3 = J;\t Catch:{ RuntimeException -> 0x0074 }\n r4 = 36;\n r3 = r3[r4];\t Catch:{ RuntimeException -> 0x0074 }\n r3 = r3.length();\t Catch:{ RuntimeException -> 0x0074 }\n r2 = r2 + r3;\n r1 = r6.substring(r2, r1);\t Catch:{ RuntimeException -> 0x0074 }\n r7.append(r1);\t Catch:{ RuntimeException -> 0x0074 }\n if (r0 == 0) goto L_0x005e;\n L_0x0057:\n r0 = l(r6);\t Catch:{ RuntimeException -> 0x0074 }\n r7.append(r0);\t Catch:{ RuntimeException -> 0x0074 }\n L_0x005e:\n r0 = J;\n r1 = 39;\n r0 = r0[r1];\n r0 = r7.indexOf(r0);\n if (r0 <= 0) goto L_0x0071;\n L_0x006a:\n r1 = r7.length();\t Catch:{ RuntimeException -> 0x0076 }\n r7.delete(r0, r1);\t Catch:{ RuntimeException -> 0x0076 }\n L_0x0071:\n return;\n L_0x0072:\n r0 = move-exception;\n throw r0;\n L_0x0074:\n r0 = move-exception;\n throw r0;\n L_0x0076:\n r0 = move-exception;\n throw r0;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.e2.a(java.lang.String, java.lang.StringBuilder):void\");\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}", "public final long mo2208a(String str, long j) {\n long b = ak.m1646b(this.f774a, str, j);\n new StringBuilder(f773z[6]).append(str).append(f773z[2]).append(b);\n ac.m1576a();\n return b;\n }", "String algorithm();", "private void swap(char[] chars, int i, int j) {\n\t\tchar ch = chars[i];\r\n\t\tchars[i] = chars[j];\r\n\t\tchars[j] = ch;\r\n\t}", "public static void o(String a, int m, int n) //?????????????????????\n\t{\n\t\tint p = m; //????\n\t\tint q = n;\n\t\tfor (; ;)\n\t\t{\n\t\t\tif (!a[m + 1].equals(a[n - 1]))\n\t\t\t{\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tif (n - m <= 2)\n\t\t\t{\n\t\t\t\tfor (int i = p ; i <= q ; i++)\n\t\t\t\t{\n\t\t\t\t\tSystem.out.print(a[i]);\n\t\t\t\t}\n\t\t\t\tSystem.out.print(\"\\n\");\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tm++;\n\t\t\tn--;\n\t\t}\n\t}", "static int lcs(int p, int q, String s1, String s2){\n int [][]t=new int[p+1][q+1];\n for(int i=0;i<p+1;i++){\n for(int j=0;j<q+1;j++){\n if(i==0||j==0){\n t[i][j]=0;\n }\n }\n }\n for(int i=1;i<p+1;i++){\n for(int j=1;j<q+1;j++){\n if(s1.charAt(i-1)==s2.charAt(j-1)){\n t[i][j]=1+t[i-1][j-1];\n }\n else{\n t[i][j]=Math.max(t[i-1][j],t[i][j-1]);\n }\n }\n }\n return t[p][q];\n }", "public int characterReplacement4(String s, int k) {\n int max = 0;\n int[] map = new int[26];\n int maxf = 0;\n for(int i=0,j=0;j<s.length();j++){\n map[s.charAt(j)-'A']++;\n maxf = Math.max(maxf,map[s.charAt(j)-'A']);\n if(j-i+1>maxf+k)\n map[s.charAt(i++)-'A']--;\n max = Math.max(max,j-i+1);\n }\n return max;\n }", "private boolean isLeftWalkableG(int i, int j) {\n\tif (j == 0) {\n\t\treturn false;\n\t} else {\n\t\treturn (mapElementStringArray[i][j - 1].equals(\" \")||mapElementStringArray[i][j - 1].equals(\"P\")\n\t\t\t\t|| mapElementStringArray[i][j - 1].equals(\"S\") || mapElementStringArray[i][j - 1]\n\t\t\t\t.equals(\"U\")||mapElementStringArray[i][j - 1].equals(\"T\")||mapElementStringArray[i][j - 1].equals(\"G\")\n\t\t\t\t||mapElementStringArray[i][j - 1].equals(\"B\"));\n\t}\n}", "public int lengthOfLSS(String s){\n HashMap<Character, Integer> m = new HashMap<>();\n int ans = 0;\n \n for(int i=0, j=0; j<s.length(); j++){\n if(m.containsKey(s.charAt(j))){\n i = Math.max(m.get(s.charAt(j)),i);\n }\n ans = Math.max(j-i+1,ans);\n m.put(s.charAt(j),j+1);\n }\n\n return ans;\n }", "static\nint\ncountPairs(String str) \n\n{ \n\nint\nresult = \n0\n; \n\nint\nn = str.length(); \n\n\nfor\n(\nint\ni = \n0\n; i < n; i++) \n\n\n// This loop runs at most 26 times \n\nfor\n(\nint\nj = \n1\n; (i + j) < n && j <= MAX_CHAR; j++) \n\nif\n((Math.abs(str.charAt(i + j) - str.charAt(i)) == j)) \n\nresult++; \n\n\nreturn\nresult; \n\n}", "private String solveProblem(String element) {\r\n int[] count = new int[27];\r\n for(char c : element.toCharArray()) {\r\n count[convChar(c)]++;\r\n }\r\n int[] nums = new int[10];\r\n extra(count, nums, \"FOUR\", count[convChar('U')], 4);\r\n extra(count, nums, \"SIX\", count[convChar('X')], 6);\r\n extra(count, nums, \"EIGHT\", count[convChar('G')], 8);\r\n extra(count, nums, \"ZERO\", count[convChar('Z')], 0);\r\n extra(count, nums, \"TWO\", count[convChar('W')], 2);\r\n extra(count, nums, \"ONE\", count[convChar('O')], 1);\r\n extra(count, nums, \"THREE\", count[convChar('T')], 3);\r\n extra(count, nums, \"FIVE\", count[convChar('F')], 5);\r\n extra(count, nums, \"SEVEN\", count[convChar('S')], 7);\r\n extra(count, nums, \"NINE\", count[convChar('I')], 9);\r\n \r\n for(int i : count) {\r\n if(i > 0) {\r\n throw new RuntimeException(i + \"\");\r\n }\r\n }\r\n\r\n StringBuilder sb = new StringBuilder();\r\n for(int i = 0; i <= 9; i++) {\r\n for(int j = 0; j < nums[i]; j++) {\r\n sb.append(i);\r\n }\r\n }\r\n \r\n \r\n return sb.toString();\r\n }", "private static boolean palindrome(String input, int i, int j) {\n\t while (i < j) {\n\t if (input.charAt(i) != input.charAt(j)) {\n\t return false;\n\t }\n\t i++;\n\t j--;\n\t }\n\t return true;\n\t }", "@Override\n\tprotected char scegliMossaDaFare(int iAvversario, int jAvversario, char[][] scacchiera) {\n\t\t\n\t\tif(this.storicoMosseAvversario.isEmpty()) {\n\t\t\tswitch(new Random(2).nextInt()) {\n\t\t\t\tcase 0: return 'U';\n\t\t\t\tcase 1: return 'D';\n\t\t\t\tcase 2: if(this.posX == 4 && this.posY == DIM - 1)\n\t\t\t\t\t\t\treturn 'R';\n\t\t\t\t\t\treturn 'L';\n\t\t\t}\n\t\t}\n\n\t\tif(this.storicoMosseAvversario.get(this.storicoMosseAvversario.size() - 1) == 'U' && rimaneNellaScacchiera(this.posY + 1))\n\t\t\t//if(casellaLibera)\n\t\t\treturn 'D';\n\t\telse\n\t\t\tif(this.storicoMosseAvversario.get(this.storicoMosseAvversario.size() - 1) == 'D' && rimaneNellaScacchiera(this.posY - 1))\n\t\t\t\treturn 'U';\n\t\t\telse \n\t\t\t\tif(this.storicoMosseAvversario.get(this.storicoMosseAvversario.size() - 1) == 'L' && rimaneNellaScacchiera(this.posX + 1))\n\t\t\t\t\treturn 'R';\n\t\t\t\telse\n\t\t\t\t\treturn 'L';\n\t}", "public String solution() {\n\t\tint[] arr = {1000, 11, 445, 1, 330, 3000};\n int arr_size = 6;\n \n int swaps = 0;\n int max = 0;\n int min = 0;\n int i = 0;\n if(arr_size%2 == 0) {\n \tif(arr[0]<arr[1]) {\n \t\tmin = arr[0];\n \t\tmax=arr[1];\n \t}\n \telse {\n \t\tmin = arr[1];\n \t\tmax=arr[0];\n \t}\n \ti=2;\n }\n else {\n \tmax=arr[0];\n \tmin = arr[0];\n \ti=1;\n }\n \n while(i<arr_size) {\n \tif(arr[i]>arr[i+1]) {\n \t\tmax=Math.max(max, arr[i]);\n \t\tmin=Math.min(min, arr[i+1]);\n \t}\n \telse {\n \t\tmax=Math.max(max, arr[i+1]);\n \t\tmin=Math.min(min, arr[i]);\n \t}\n \ti+=2;\n }\n \n \n\t\treturn \"END \"+max + \" \"+min;\n }", "static void computeLCS(String x, String y,int m, int n,int[][] c,char[][] b) {\n \r\n\t\tfor (int i = 0; i <= m; i++) {\r\n\t\t\tfor (int j = 0; j <= n; j++) {\r\n\t\t\t\tc[i][j]=0;\r\n\t\t\t}\r\n\t\t}\r\n\t\tfor (int i = 1; i <= m; i++) {\r\n\t\t\tfor (int j = 1; j <= n; j++) {\r\n\t\t\t\tif(x.charAt(i-1) == y.charAt(j-1)) {\r\n\t\t\t\t\tc[i][j]=c[i-1][j-1]+1;\r\n\t\t\t\t\tb[i][j]='/';\r\n\t\t\t\t}\r\n\t\t\t\telse if(c[i-1][j] >= c[i][j-1]) {\r\n\t\t\t\t\tc[i][j]=c[i-1][j];\r\n\t\t\t\t\tb[i][j]='|';\r\n\t\t\t\t}\r\n\t\t\t\telse {\r\n\t\t\t\t\tc[i][j]=c[i][j-1];\r\n\t\t\t\t\tb[i][j]='-';\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n//\t\tfor (int i = 0; i <= m; i++) {\r\n//\t\t\tfor (int j = 0; j <= n; j++) {\r\n//\t\t\t\tSystem.out.print(c[i][j]);\r\n//\t\t\t}\r\n//\t\t\tSystem.out.println();\r\n//\t\t}\r\n \r\n\t}", "void mo64942a(String str, long j, long j2);", "private static int palindromeIndex(String s) {\n int len = s.length();\n for (int i = 0; i < len / 2; i++) {\n int j = len-i-1;\n if (s.charAt(i) != s.charAt(j)) {\n if (isPalindrome(s.substring(0, i) + s.substring(i+1)))\n return i;\n else if (isPalindrome(s.substring(0, j) + s.substring(j+1)))\n return j;\n else\n return -1;\n }\n }\n return -1;\n }", "public int characterReplacement2(String s, int k) {\n Set<Character> letters = new HashSet();\n int longest = 0;\n for(int i=0;i<s.length();i++) letters.add(s.charAt(i));\n for(char l: letters){\n int c = 0;\n for(int i=0,j=0;j<s.length();j++){\n if(l==s.charAt(j))c++;\n if((j-i+1)>c+k)\n if(l==s.charAt(i++)) c--;\n longest = Math.max(j-i+1, longest);\n }\n }\n return longest;\n }", "public String convertBoardToString(){\n String tmp= \"\";\n\n for (int i=0; i<30; i++){\n for (int j=0; j<80; j++){\n if (board.getCharacter(j,i)==0){\n tmp += '-';\n } else {\n tmp += board.getCharacter(j,i);\n }\n }\n }\n return tmp;\n }", "private int m3423z(int i, int i2) {\n int i3;\n int i4;\n for (int size = this.f4373c.size() - 1; size >= 0; size--) {\n C0933b bVar = this.f4373c.get(size);\n int i5 = bVar.f4379a;\n if (i5 == 8) {\n int i6 = bVar.f4380b;\n int i7 = bVar.f4382d;\n if (i6 < i7) {\n i4 = i6;\n i3 = i7;\n } else {\n i3 = i6;\n i4 = i7;\n }\n if (i < i4 || i > i3) {\n if (i < i6) {\n if (i2 == 1) {\n bVar.f4380b = i6 + 1;\n bVar.f4382d = i7 + 1;\n } else if (i2 == 2) {\n bVar.f4380b = i6 - 1;\n bVar.f4382d = i7 - 1;\n }\n }\n } else if (i4 == i6) {\n if (i2 == 1) {\n bVar.f4382d = i7 + 1;\n } else if (i2 == 2) {\n bVar.f4382d = i7 - 1;\n }\n i++;\n } else {\n if (i2 == 1) {\n bVar.f4380b = i6 + 1;\n } else if (i2 == 2) {\n bVar.f4380b = i6 - 1;\n }\n i--;\n }\n } else {\n int i8 = bVar.f4380b;\n if (i8 <= i) {\n if (i5 == 1) {\n i -= bVar.f4382d;\n } else if (i5 == 2) {\n i += bVar.f4382d;\n }\n } else if (i2 == 1) {\n bVar.f4380b = i8 + 1;\n } else if (i2 == 2) {\n bVar.f4380b = i8 - 1;\n }\n }\n }\n for (int size2 = this.f4373c.size() - 1; size2 >= 0; size2--) {\n C0933b bVar2 = this.f4373c.get(size2);\n if (bVar2.f4379a == 8) {\n int i9 = bVar2.f4382d;\n if (i9 == bVar2.f4380b || i9 < 0) {\n this.f4373c.remove(size2);\n mo7620a(bVar2);\n }\n } else if (bVar2.f4382d <= 0) {\n this.f4373c.remove(size2);\n mo7620a(bVar2);\n }\n }\n return i;\n }", "static int alternate(String s) {\n\n \n char[] charArr = s.toCharArray();\n\n int[] arrCount=new int[((byte)'z')+1];\n\n for(char ch:s.toCharArray()){ \n arrCount[(byte)ch]+=1;\n }\n \n int maxLen=0;\n for(int i1=0;i1<charArr.length;++i1)\n {\n char ch1= charArr[i1];\n for(int i2=i1+1;i2<charArr.length;++i2)\n {\n char ch2 = charArr[i2];\n if(ch1 == ch2)\n break;\n\n //validate possible result\n boolean ok=true;\n {\n char prev = ' ';\n for(char x:charArr){\n if(x == ch1 || x == ch2){\n if(prev == x){\n ok=false;\n break;\n }\n prev = x;\n }\n }\n\n }\n if(ok)\n maxLen = Math.max(maxLen,arrCount[(byte)ch1]+arrCount[(byte)ch2]);\n }\n }\n\n return maxLen;\n\n }", "public String swap(String a, int i, int j)\n {\n char temp;\n char[] charArray = a.toCharArray();\n temp = charArray[i] ;\n charArray[i] = charArray[j];\n charArray[j] = temp;\n return String.valueOf(charArray);\n }", "public static void main(String[] args) throws NumberFormatException, IOException {\n\t\tBufferedReader br= new BufferedReader(new FileReader(\"C-small-attempt7.in\"));\n\t\t//BufferedReader br= new BufferedReader(new FileReader(\"A-large-practice(2).in\"));\n\t\t\n\t\t// TODO WRITER\n\t\tPrintWriter pw = new PrintWriter(\"Dijkstra.txt\", \"UTF-8\");\n\t\tint T=Integer.parseInt(br.readLine());\n\t\t\n\t\t\n\t\tfor(int i = 0; i < T; i++){\n\t\t\tString[] tab =br.readLine().split(\" \");\n\t\t\tint L = Integer.parseInt(tab[0]);\n\t\t\t//int X=Integer.parseInt(tab[1].length()>2 ? tab[1].substring(tab[1].length()-2) : tab[1]);\n\t\t\tlong X=Long.parseLong(tab[1]);\n\t\t\tString str = br.readLine();\n\t\n\t\t\t\n\t\t\t\t\n\t\t\tString a=\"NO\";\n\t\t\tchar current = '1';\n\t\t\tboolean minus = false;\n\t\t\tint finish=0;\n\t\t\tfor(long j=0; j<X*L; j++){\n\t\t\t\tchar temp = str.charAt((int)(j%L));\n\t\t\t\t\n\t\t\t\tif(current==temp){\n\t\t\t\t\tcurrent='1';\n\t\t\t\t\tminus = !minus;\n\t\t\t\t}\n\t\t\t\telse if(current=='1')current=temp;\n\t\t\t\telse if(current=='i'&&temp=='j') current='k';\n\t\t\t\telse if(current=='i'&&temp=='k'){\n\t\t\t\t\tcurrent='j';\n\t\t\t\t\tminus=!minus;\n\t\t\t\t}\n\t\t\t\telse if(current=='j'&&temp=='i'){\n\t\t\t\t\tcurrent='k';\n\t\t\t\t\tminus=!minus;\n\t\t\t\t}\n\t\t\t\telse if(current=='j'&&temp=='k') current='i';\n\t\t\t\telse if(current=='k'&&temp=='i') current='j';\n\t\t\t\telse if(current=='k'&&temp=='j'){\n\t\t\t\t\tcurrent='i';\n\t\t\t\t\tminus=!minus;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif(current=='i'&&finish==0){\n\t\t\t\t\tfinish++;\n\t\t\t\t\tcurrent='1';\n\t\t\t\t}\n\t\t\t\telse if(current=='j'&&finish==1){\n\t\t\t\t\tfinish++;\n\t\t\t\t\tcurrent='1';\n\t\t\t\t}\n\t\t\t\telse if(current=='k'&&finish==2){\n\t\t\t\t\tfinish++;\n\t\t\t\t\tcurrent='1';\n\n\t\t\t\t}\n\t\t\t}\n\t\t\t//&&X%2==1 &&X%4==2 ||(current!='1'&&finish==3)\n\t\t\tif((current=='1'&&!minus&&finish==3))a=\"YES\";\n\t\t\tSystem.out.println();\n\t\t\tSystem.out.println(\"current \"+(minus?\"-\":\"\")+current+\" finish \"+finish +\" X \"+X);//+\" str: \"+str);\n\t\n\t\t\tSystem.out.print(\"Case #\"+(i+1)+\": \"+a+\"\\n\");\n\t\t\tpw.write(\"Case #\"+(i+1)+\": \"+a+\"\\n\");\n\n\t\t}\n\t\tpw.close();\n\t}", "public int minCut2(String s) {\n boolean[][] dp = new boolean[s.length()][s.length()];\n for (int len = 1; len <= s.length(); len++) {\n for (int i = 0; i <= s.length() - len; i++) {\n int j = i + len - 1;\n dp[i][j] = s.charAt(i) == s.charAt(j) && (len < 3 || dp[i + 1][j - 1]);\n }\n }\n\n int[] cut = new int[1];\n cut[0] = Integer.MAX_VALUE;\n // List<List<String>> res = new ArrayList<>();\n helper2(s, 0, cut, dp, 0);\n // System.out.format(\"res: %s\\n\", res);\n return cut[0];\n }", "static int lcs(String s, String t)\n{\n\tint n = s.length(), m = t.length();\n\tint[][] dp = new int[n+1][m+1];\n\tfor(int i = 1; i<=n; i++)\n\t\tfor(int j = 1; j<=m; j++)\n\t\t{\n\t\t\tdp[i][j] = Math.max(dp[i-1][j], dp[i][j-1]);\n\t\t\tint cur = (s.charAt(i-1) == t.charAt(j-1)) ? 1 : 0;\n\t\t\tdp[i][j] = Math.max(dp[i][j], cur + dp[i-1][j-1]);\n\t\t}\n\treturn dp[n][m];\n}", "public String mo29679a(char[] cArr, int i, int i2) {\n if (this.f19537a.length() != i2) {\n return null;\n }\n int i3 = 0;\n while (this.f19537a.charAt(i3) == cArr[i + i3]) {\n i3++;\n if (i3 >= i2) {\n return this.f19537a;\n }\n }\n return null;\n }", "private char getMappingCode(String string2, int n2) {\n char c2;\n char c3;\n char c4 = c2 = this.map(string2.charAt(n2));\n if (n2 <= 1) return c4;\n c4 = c2;\n if (c2 == '0') return c4;\n char c5 = string2.charAt(n2 - 1);\n if ('H' != c5) {\n c4 = c2;\n if ('W' != c5) return c4;\n }\n if (this.map(c3 = string2.charAt(n2 - 2)) == c2) return '\\u0000';\n if ('H' == c3) return '\\u0000';\n c4 = c2;\n if ('W' != c3) return c4;\n return '\\u0000';\n }", "private boolean twoHalfOpt(int i, int j) {\n\t\tint li = (i == 0) ? 0 : this.route.get(i - 1);\n\t\tint ri = (i == this.length() - 1) ? 0 : this.route.get(i + 1);\n\t\tint rj = (j == this.length() - 1) ? 0 : this.route.get(j + 1);\n\n\t\tint curtime = dist(li, route.get(i)) + dist(route.get(i), ri) + dist(route.get(j), rj);\n\t\tint nxttime = dist(li, ri) + dist(route.get(j), route.get(i)) + dist(route.get(i), rj);\n\n\t\tif (nxttime >= curtime)\n\t\t\treturn false;\n\n\t\tif (i < j) {\n\t\t\t// cyclicLeftRotate(i, ..., j)\n\t\t\tint t = route.get(i);\n\t\t\tdo {\n\t\t\t\troute.set(i, route.get(i + 1));\n\t\t\t} while (++i < j);\n\t\t\troute.set(j, t);\n\t\t} else {\n\t\t\t// cyclicRightRotate(j+1, ..., i)\n\t\t\tint t = route.get(i);\n\t\t\tdo {\n\t\t\t\troute.set(i, route.get(i - 1));\n\t\t\t} while (--i > j);\n\t\t\troute.set(j + 1, t);\n\t\t}\n\t\tthis.time += nxttime - curtime; // < 0.\n\t\treturn true;\n\t}", "public final /* synthetic */ void mo33713m(String str, int i, long j) {\n C2168bw bwVar = m967q(Arrays.asList(new String[]{str})).get(str);\n if (bwVar == null || C2183ck.m1019g(bwVar.f1693c.f1688c)) {\n f1700a.mo33809b(String.format(\"Could not find pack %s while trying to complete it\", new Object[]{str}), new Object[0]);\n }\n this.f1701b.mo33631B(str, i, j);\n bwVar.f1693c.f1688c = 4;\n }", "public int lengthOfLongestSubstringTwoDistinct(String s) {\n if(s == null || s.length() == 0)\n return 0;\n \n //corner case\n int n = s.length();\n if(n < 3)\n return n;\n \n int left = 0;\n int right = 0;\n HashMap<Character,Integer> sMap = new HashMap<>(); // HashMap storing Character, rightmost position\n int maxLen = 2;\n \n while(right < n) {\n // when the slidewindow contains less than three characters\n sMap.put(s.charAt(right), right++);\n \n // when the slidewindow contains three characters\n if(sMap.size() == 3) {\n int i = Collections.min(sMap.values());\n sMap.remove(s.charAt(i)); // remove leftmost character\n left = i+1;\n }\n maxLen = Math.max(maxLen, right - left);\n }\n return maxLen;\n }", "String generateJoke();", "private int[][] genBlackAdjacentTilesCount(char[][] lobby) {\n int[][] neighborsCount = new int[lobby.length][lobby[0].length];\n\n for (int i = 0; i < lobby.length; i++) {\n for (int j = 0; j < lobby[0].length; j++) {\n List<AxialCoordinates> neighbors = findNeighbors(i, j);\n int blackCount = 0;\n for (AxialCoordinates coo : neighbors) {\n if (coo.rAxialCoordinate > 0 && coo.qAxialCoordinate > 0\n && coo.qAxialCoordinate < lobby.length && coo.rAxialCoordinate < lobby[0].length) {\n if (lobby[coo.qAxialCoordinate][coo.rAxialCoordinate] == 'b') {\n blackCount++;\n }\n }\n }\n neighborsCount[i][j] = blackCount;\n }\n// System.out.println();\n }\n return neighborsCount;\n }", "public static void main (String[] args){\n int y = 1;\n for (y = 1; y <= 4; y++){\n // He usat bucles per no duplicar codi i per optimització.\n int x =1;\n // Bucle\n for (x = 1; x <= 4; x++){\n String abc = \"AAAAABCÇDEEEEEFGHIIIIIJKLMNOOOOOPQRSTUUUUUVWXYZ\"; //47\n int lletra = (int) (abc.length() * Math.random());\n char a = abc.charAt(lletra);\n System.out.print(\"\\u001B[36m\"+a); \n } \n System.out.println(\"\");\n }\n }" ]
[ "0.6252894", "0.61545175", "0.60352945", "0.59570175", "0.58240074", "0.5790196", "0.5644568", "0.5637573", "0.56341434", "0.5630953", "0.560981", "0.55792034", "0.55764234", "0.55583847", "0.55440915", "0.55405515", "0.5511918", "0.5503449", "0.54969877", "0.54946446", "0.54744667", "0.54635924", "0.54549533", "0.5454777", "0.54290444", "0.54072344", "0.5404575", "0.5400029", "0.539209", "0.53893983", "0.5381062", "0.53633565", "0.53605217", "0.5350486", "0.5348807", "0.5344817", "0.5339967", "0.53344417", "0.5331409", "0.5321289", "0.53115773", "0.5308749", "0.53061557", "0.5305127", "0.5296189", "0.528474", "0.5272782", "0.5268077", "0.5267902", "0.5267131", "0.52656966", "0.5262319", "0.52599835", "0.5235725", "0.5234745", "0.5234738", "0.5231842", "0.5227064", "0.5223636", "0.5221576", "0.5220137", "0.52168477", "0.5212504", "0.5212101", "0.5210295", "0.5202852", "0.5192738", "0.51827085", "0.51796293", "0.5174833", "0.51603204", "0.5153814", "0.51530147", "0.5150107", "0.5140795", "0.5131245", "0.5126487", "0.5120329", "0.51140034", "0.5113841", "0.51124126", "0.51094973", "0.5106226", "0.5102988", "0.50980246", "0.50952446", "0.50877225", "0.5086037", "0.508484", "0.5082489", "0.5079683", "0.50794065", "0.50794005", "0.5075835", "0.5075622", "0.5068515", "0.5064302", "0.5058151", "0.50554967", "0.5048653", "0.5048266" ]
0.0
-1
out.println(r + " " + c);
static int f(char[] turns, int nturns, int r, int c, int dr, int dc, int cnt) { if (!range(r, c)) return 0; if (board[r][c] != '.') return 0; int ntouch = 0; if (r == 0) ntouch++; if (r == N - 1) ntouch++; if (c == 0) ntouch++; if (c == M - 1) ntouch++; if (ntouch >= 2) return 0; // touched corner if (cnt != 0 && ntouch == 1) { // touched edge second time out.println("DONE : " + r + " " + c); return 1; } int near = 0; for (int[] d : new int[][] {{1, 0}, {-1, 0}, {0, 1}, {0, -1}}) { int nr = r + d[0]; int nc = c + d[1]; if (range(nr, nc) && board[nr][nc] == '*') near++; } if (cnt != 0 && !(ntouch == 0 && near == 1)) { return 0; } out.println(r + " " + c + " " + dr + " " + dc); board[r][c] = '*'; int tot = 0; tot += f(turns, nturns, r + dr, c + dc, dr, dc, cnt + 1); if (nturns < 2 && cnt > 0) { if (nturns == 0) { for (char cc : new char[] {'L', 'R'}) { turns[0] = cc; int ndr = dc; int ndc = dr; if (cc == 'L') ndr = -ndr; if (cc == 'R') ndc = -ndc; tot += f(turns, nturns + 1, r + ndr, c + ndc, ndr, ndc, cnt + 1); } } else { char cc = turns[0] == 'L' ? 'R' : 'L'; turns[1] = cc; int ndr = dc; int ndc = dr; if (cc == 'L') ndr = -ndr; if (cc == 'R') ndc = -ndc; tot += f(turns, nturns + 1, r + ndr, c + ndc, ndr, ndc, cnt + 1); } } board[r][c] = '.'; return tot; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void outputAnswer(double c){\n\t\tprint(\"c = \" + c);\n\t}", "public void print() {\r\n System.out.println(c() + \"(\" + x + \", \" + y + \")\");\r\n }", "private String done(int r, int c) {\n\t\tset(r, c, -1);\n\t\treturn r + \"\" + c;\n\t}", "public String toString(){\n\t\treturn \"The r is: \" + r + \"\\nThe theta is: \" + theta;\n\t}", "public void print() {\n btprint(c);\n }", "@Override\n public String toString(){\n return x+\"\\n\"+y+\"\\n\"+z;\n }", "public void print() {\n\t// Skriv ut en grafisk representation av kösituationen\n\t// med hjälp av klassernas toString-metoder\n System.out.println(\"A -> B\");\n System.out.println(r0);\n System.out.println(\"B -> C\");\n System.out.println(r1);\n System.out.println(\"turn\");\n System.out.println(r2);\n //System.out.println(\"light 1\");\n System.out.println(s1);\n //System.out.println(\"light 2\");\n System.out.println(s2);\n }", "public static void main(String[] args) {\n\t\tchar first = 'T';\n\t\tchar second = 'R' ;\n\t\tchar third = 'H';\n\t\t\n\t System.out.println( first + \".\" + second + \".\" + third + \".\" );\n\t}", "public void printResult(){\n StringBuilder sb = new StringBuilder(20);\n sb.append(left_value)\n .append(space)\n .append(symbol)\n .append(space)\n .append(right_value)\n .append(space)\n .append('=')\n .append(space)\n .append(result);\n System.out.println(sb);\n }", "public static void main(String[] args){\n printcom(0 , 4 , 0 , 2 , \"\");\n \n}", "public void printSequence(int l, int r) {\n\t\tfor (int i = 1; i <= 10; i++) {\n\t\t\tSystem.out.print(sequence[i + 1]);\n\t\t}\n\t}", "public static void main(String[] args) throws Exception{\n int a = 0;\n for(int i=0;i<3;i++){\n while(true){\n System.out.print(i);\n a = i;\n break;\n }\n }\n System.out.print(a + \"\");\n\n// System.out.print(\"a=====\" +a+\"\"+b+ \"======b\"+ \"====\" +c);\n\n }", "@Override\n public String toString() {\n return columnToChar(c1) + \"\" + (8 - r1) + columnToChar(c2) + \"\" + (8 - r2);\n }", "public static void main (String[] args){\n int r=100;\n int i=2;\n int u=r*i;\n\n System.out.println(\"O resultado é:\"+U+\"V\");\n\n }", "public void printOut() {\n System.out.println(\"\\t\" + result + \" = icmp \" + cond.toLowerCase() + \" \" + type + \" \" + op1 + \", \" + op2 );\n\n // System.out.println(\"\\t\" + result + \" = bitcast i1 \" + temp + \" to i32\");\n }", "public void draw4x4 (char design){\n System.out.println(\"\"+design+design+design+design);\n System.out.println(design+\" \"+design);\n System.out.println(design+\" \"+design);\n System.out.println(\"\"+design+design+design+design);\n}", "public String toString(){\n\t\treturn (red + \" \" + green + \" \" + blue + \"\\n\");\n\t}", "public void print(){\n String res = \"\" + this.number;\n for(Edge edge: edges){\n res += \" \" + edge.toString() + \" \";\n }\n System.out.println(res.trim());\n }", "public static int Main()\n\t{\n\t\tString s = new String(new char[256]);\n\t\tString z = new String(new char[256]);\n\t\tString r = new String(new char[256]);\n\t\tint i;\n\t\ts = new Scanner(System.in).nextLine();\n\t\tz = new Scanner(System.in).nextLine();\n\t\tr = new Scanner(System.in).nextLine();\n//C++ TO JAVA CONVERTER TODO TASK: Pointer arithmetic is detected on this variable, so pointers on this variable are left unchanged:\n\t\tchar * p = tangible.StringFunctions.strStr(s, z);\n\t\tif (p == null)\n\t\t{\n\t\t\tSystem.out.print(s);\n\t\t}\n\t\telse\n\t\t{\n\t\t\tString q = s;\n\t\t\tfor (i = 0; i < (p - q); i++)\n\t\t\t{\n\t\t\t\tSystem.out.print(s.charAt(i));\n\t\t\t}\n\t\t\tSystem.out.print(r);\n\t\t\tp = p + (z.length());\n\t\t\twhile (*p != '\\0')\n\t\t\t{\n\t\t\t\tSystem.out.print(p);\n\t\t\t\tp++;\n\t\t\t}\n\t\t}\n\t\treturn 0;\n\t}", "@Override\n public void write (final int c)\n {\n if (text != null)\n {\n text.append (String.valueOf ((char) c));\n if (++col > wrap)\n println ();\n }\n else\n super.write (c);\n }", "public void printFullLinear(){\n for(int i=0;i<cir.length;i++){\n System.out.print(cir[i]+\",\");\n }\n System.out.println();\n }", "public void printAll() {\n\t\tfor(int i = 0; i<r.length; i++)\n\t\t\tprintReg(i);\n\t\tprintReg(\"hi\");\n\t\tprintReg(\"lo\");\n\t\tprintReg(\"pc\");\n\t}", "public static void printlnc(String message) {\n if (outputEnabled)\n out.println(++count + \"\\t\" + message); // NORES\n }", "void print(){\n\t\tSystem.out.println(\"[\"+x+\",\"+y+\"]\");\n\t}", "@Override\r\n\tpublic void run() {\n\t\tSystem.out.println(\"r1 \");\r\n\t\tSystem.out.println(\"r2 \");\r\n\t\t\r\n\t}", "static void print(char[][] c) {\n for (char[] d : c)\n System.out.println(Arrays.toString((d)));\n }", "public void print(){\n System.out.println(\"(\"+a.getAbsis()+\"_a,\"+a.getOrdinat()+\"_a)\");\n System.out.println(\"(\"+b.getAbsis()+\"_b,\"+b.getOrdinat()+\"_b)\");\n System.out.println(\"(\"+c.getAbsis()+\"_b,\"+c.getOrdinat()+\"_c)\");\n }", "public void print()\n {\n System.out.println();\n for (int i = 0; i < 6; i++) {\n for (int j = 0; j < 6; j++) {\n int index=0;\n if(j>2)\n index++;\n if(i>2)\n index+=2;\n char c='○';\n if(blocks[index].getCells()[i%3][j%3]==CellType.Black)\n c='B';\n if(blocks[index].getCells()[i%3][j%3]==CellType.Red)\n c='R';\n System.out.print(c+\" \");\n if(j==2)\n System.out.print(\"| \");\n }\n System.out.println();\n if(i==2)\n System.out.println(\"-------------\");\n }\n }", "public static void main(String[] args) {\n Scanner key=new Scanner(System.in);\r\n while(key.hasNext())\r\n {\r\n String s=key.next();\r\n String c=\"\";\r\n for (int i = 0; i <s.length(); i++) {\r\n if((Character)s.charAt(i)=='1'|| (Character)s.charAt(i)=='0'|| (Character)s.charAt(i)=='-')\r\n {\r\n // c=c+c.concat(String.valueOf((Character)s.charAt(i)));\r\n System.out.print((Character)s.charAt(i));\r\n }\r\n else if((Character)s.charAt(i)=='A' || (Character)s.charAt(i)=='B' || (Character)s.charAt(i)=='C')\r\n {\r\n System.out.print(2);\r\n }\r\n else if((Character)s.charAt(i)=='D' || (Character)s.charAt(i)=='E' || (Character)s.charAt(i)=='F')\r\n {\r\n System.out.print(3);\r\n }\r\n else if((Character)s.charAt(i)=='G' || (Character)s.charAt(i)=='H' || (Character)s.charAt(i)=='I')\r\n {\r\n System.out.print(4);\r\n }\r\n else if((Character)s.charAt(i)=='J' || (Character)s.charAt(i)=='K' || (Character)s.charAt(i)=='L')\r\n {\r\n System.out.print(5);\r\n }\r\n else if((Character)s.charAt(i)=='M' || (Character)s.charAt(i)=='N' || (Character)s.charAt(i)=='O')\r\n {\r\n System.out.print(6);\r\n }\r\n else if((Character)s.charAt(i)=='P' || (Character)s.charAt(i)=='Q' || (Character)s.charAt(i)=='R' || (Character)s.charAt(i)=='S')\r\n {\r\n System.out.print(7);\r\n }\r\n else if((Character)s.charAt(i)=='T' || (Character)s.charAt(i)=='U' || (Character)s.charAt(i)=='V')\r\n {\r\n System.out.print(8);\r\n }\r\n else if((Character)s.charAt(i)=='W' || (Character)s.charAt(i)=='X' || (Character)s.charAt(i)=='Y'|| (Character)s.charAt(i)=='Z')\r\n {\r\n System.out.print(9);\r\n }\r\n }\r\n System.out.println();\r\n }\r\n }", "public void printcuml()\n\t{\n\t\tSystem.out.println(\"Question: \"+ans);\n\t\tSystem.out.println(\"Times Tried: \"+ tried);\n\t\tSystem.out.println(\"Times Correct: \"+ correct);\n\t\tSystem.out.println(\"Percent Correct: \"+ percent*100 +\"%\");\n\t}", "public String toString()\n {\n return color.charAt(0) + \"Q\";\n }", "public void test(){\n\t\tfor(int i =0; i< this.position.length;i++){\n\t\t\tSystem.out.println(\" \");\n\t\t\tfor(int p = 0 ; p<this.position.length;p++){\n\t\t\t\tSystem.out.print(this.position[i][p]);\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(\" \");\n\t\tfor(int i =0; i< this.position.length;i++){\n\t\t\tSystem.out.println(\" \");\n\t\t\tfor(int p = 0 ; p<this.position.length;p++){\n\t\t\t\tSystem.out.print(this.Ari[i][p]);\n\t\t\t}\n\t\t}\n\t}", "public void display() {\n\t\tSystem.out.println(\" ---------------------------------------\");\n\t\t\n\t\tfor (byte r = (byte) (b.length - 1); r >= 0; r--) {\n\t\t\tSystem.out.print(r + 1);\n\t\t\t\n\t\t\tfor (byte c = 0; c < b[r].length; c++) {\n\t\t\t\tSystem.out.print(\" | \" + b[r][c]);\n\t\t\t}\n\t\t\t\n\t\t\tSystem.out.println(\" |\");\n\t\t\tSystem.out.println(\" ---------------------------------------\");\n\t\t}\n\t\t\n\t\tSystem.out.println(\" a b c d e f g h\");\n\t}", "void debugc() {\n\t\tfor( int i = 0; i < N; i++ ) {\n\t\t\tboolean any = false;\n\t\t\tfor( int j = 0; j < N; j++ )\n\t\t\t\tif( c[i][j] != 0 ) {\n\t\t\t\t\tany = true;\n\t\t\t\t\tSystem.out.print(\"c(\"+i+\",\"+j+\":\"+label[i][j]+\")=\"+c[i][j]+\" \");\n\t\t\t\t}\n\t\t\tif( any )\n\t\t\t\tSystem.out.println();\n\t\t}\n\t}", "@Override\n\tpublic String toString() {\n\t\treturn this.r.toString();\n\t}", "@Override\n\t\tvoid display() {\n\t\t\tSystem.out.println(\"I am in THIRD: \" + r);\n\t\t}", "public static void main(String[] args) {\n\n long a = 493L;\n boolean b = false;\n double c = 3.7;\n int d = 0x3F;\n char e = 'B';\n int f = 0xF7FF;\n int g = 07246; // octal\n float h = 1.2e5f;\n char i = '\\u0042';\n int j = -178609;\n\n System.out.println(a);\n System.out.println(b);\n System.out.println(c);\n System.out.println(d);\n System.out.println(e);\n System.out.println(f);\n System.out.println(g);\n System.out.println(h);\n System.out.println(i);\n System.out.println(j);\n\n }", "private String getString(byte c) {\n\t\treturn c==1? \"$ \": \" \";\n\t}", "public void prlns(byte a) {\n\t\tSystem.out.println(a);\r\n\t}", "void display()\r\n\t {\n\t System.out.println(\"a = \" + a + \" b = \" + b);\r\n\t }", "public void executeOUT(){\n\t\tint asciiVal = mRegisters[0].getValue();\n\t\tchar toPrint = (char)asciiVal;\n\t\tSystem.out.print(toPrint);\n\t}", "public static void main(String[] args) {\n\t\tchar aa = '\\u0000';\r\n\t\tchar a = '\\u0041';\r\n\t\tchar b = '\\u0042';\r\n\t\tchar c = '\\u0043';\r\n\t\tchar d = '\\u0044';\r\n\t\tchar e = '\\u0045';\r\n\t\tchar f = '\\u0046';\r\n\t\tchar g = '\\u0047';\r\n\t\tchar h = '\\u0048';\r\n\t\tchar i = '\\u0049';\r\n\t\tchar j = '\\u004A';\r\n\t\tchar k = '\\u004B';\r\n\t\tchar l = '\\u004C';\r\n\t\tchar m = '\\u004D';\r\n\t\tchar n = '\\u004E';\r\n\t\tchar o = '\\u004F';\r\n\t\tchar p = '\\u0051';\r\n\t\tchar q = '\\u0051';\r\n\t\tchar r = '\\u0052';\r\n\t\tchar s = '\\u0053';\r\n\t\tchar t = '\\u0054';\r\n\t\tchar u = '\\u0055';\r\n\t\tchar v = '\\u0056';\r\n\t\tchar w = '\\u0057';\r\n\t\tchar x = '\\u0058';\r\n\t\tchar y = '\\u0059';\r\n\t\tchar z = '\\u0060';\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\tSystem.out.println(+i+\"\"+aa+\"\"+w+\"\"+i+\"\"+s+\"\"+h+\"\"+aa+\"\"+t+\"\"+o+\"\"+aa+\"\"+p+\"\"+e+\"\"+r+\"\"+i+\"\"+s+\"\"+h);\r\n\t}", "public static void main(String[] args) {\n\t\t\tint N=12;\r\n\t\t\tdouble A=4.56;\r\n\t\t\tchar C='x';\r\n\t\t\tdouble resultado;\r\n\t\t\tresultado=N+A;\r\n\t\t\t\r\n\tSystem.out.println(\"La Variable N = \"+N);\r\n\tSystem.out.println(\"La Variable A = \"+A);\r\n\tSystem.out.println(\"La Variable C =\"+C);\r\n\tSystem.out.println(N+\" + \"+ A+\"=\"+resultado);\r\n\tSystem.out.println(C);\r\n\r\n\t}", "public String toString()\r\n\t{\n\t\treturn strRank[srtRank] + strSuit[srtSuit];\r\n\t}", "public void Display(){\n System.out.println(a);\n }", "public void println();", "public void printInstr(int[] instr) {\r\n\t\tswitch (instr[0]) {\r\n\t\t\tcase SET:\r\n\t\t\t\tSystem.out.println(\"SET R\" + instr[1] + \" = \" + instr[2]);\r\n\t\t\t\tbreak;\r\n\t\t\tcase ADD:\r\n\t\t\t\tSystem.out.println(\"ADD R\" + instr[1] + \" = R\" + instr[2]\r\n\t\t\t\t\t\t+ \" + R\" + instr[3]);\r\n\t\t\t\tbreak;\r\n\t\t\tcase SUB:\r\n\t\t\t\tSystem.out.println(\"SUB R\" + instr[1] + \" = R\" + instr[2]\r\n\t\t\t\t\t\t+ \" - R\" + instr[3]);\r\n\t\t\t\tbreak;\r\n\t\t\tcase MUL:\r\n\t\t\t\tSystem.out.println(\"MUL R\" + instr[1] + \" = R\" + instr[2]\r\n\t\t\t\t\t\t+ \" * R\" + instr[3]);\r\n\t\t\t\tbreak;\r\n\t\t\tcase DIV:\r\n\t\t\t\tSystem.out.println(\"DIV R\" + instr[1] + \" = R\" + instr[2]\r\n\t\t\t\t\t\t+ \" / R\" + instr[3]);\r\n\t\t\t\tbreak;\r\n\t\t\tcase COPY:\r\n\t\t\t\tSystem.out.println(\"COPY R\" + instr[1] + \" = R\" + instr[2]);\r\n\t\t\t\tbreak;\r\n\t\t\tcase BRANCH:\r\n\t\t\t\tSystem.out.println(\"BRANCH @\" + instr[1]);\r\n\t\t\t\tbreak;\r\n\t\t\tcase BNE:\r\n\t\t\t\tSystem.out.println(\"BNE (R\" + instr[1] + \" != R\" + instr[2]\r\n\t\t\t\t\t\t+ \") @\" + instr[3]);\r\n\t\t\t\tbreak;\r\n\t\t\tcase BLT:\r\n\t\t\t\tSystem.out.println(\"BLT (R\" + instr[1] + \" < R\" + instr[2]\r\n\t\t\t\t\t\t+ \") @\" + instr[3]);\r\n\t\t\t\tbreak;\r\n\t\t\tcase POP:\r\n\t\t\t\tSystem.out.println(\"POP R\" + instr[1]);\r\n\t\t\t\tbreak;\r\n\t\t\tcase PUSH:\r\n\t\t\t\tSystem.out.println(\"PUSH R\" + instr[1]);\r\n\t\t\t\tbreak;\r\n\t\t\tcase LOAD:\r\n\t\t\t\tSystem.out.println(\"LOAD R\" + instr[1] + \" <-- @R\" + instr[2]);\r\n\t\t\t\tbreak;\r\n\t\t\tcase SAVE:\r\n\t\t\t\tSystem.out.println(\"SAVE R\" + instr[1] + \" --> @R\" + instr[2]);\r\n\t\t\t\tbreak;\r\n\t\t\tcase TRAP:\r\n\t\t\t\tSystem.out.print(\"TRAP \");\r\n\t\t\t\tbreak;\r\n\t\t\tdefault: // should never be reached\r\n\t\t\t\tSystem.out.println(\"?? \");\r\n\t\t\t\tbreak;\r\n\t\t}// switch\r\n\t\t\r\n\t}", "public static void main(String[] args) {\n final Rational myRational = new Rational(1, 4);\n final String myRationalAsString = myRational.toString();\n out.println(\"myRationalAsString is \" + myRationalAsString);\n\n // The toString() operation is called automatically by the compiler:\n out.println(myRational);\n out.println(\"myRational is \" + myRational);\n \n final Rational r1 = new Rational(1, 4);\n final Rational r2 = new Rational(1, 2);\n final Rational r3 = r1.multipliedBy(r2);\n final String string = r1 + \" × \" + r2 + \" = \" + r3;\n\n out.println(\"r1 is \" + r1);\n out.println(\"r2 is \" + r2);\n out.println(\"r3 is \" + r3);\n out.println(\"string is \" + string);\n }", "public static void main(String[] args) {\n\t\tint c = 7;\r\n\t\tfor(int i=1;i<=4;i++)\r\n\t\t{\r\n\t\t\tfor(int j=0;j<i;j++)\r\n\t\t\t{\r\n\t\t\t\tSystem.out.print(c+\" \");\r\n\t\t\t\tc++;\r\n\t\t\t}\r\n\t\t\tSystem.out.println();\r\n\t\t}\r\n\r\n\t}", "public void print() {\n // char letter = (char)\n // (this.registers.get(this.registerPointer).intValue());\n char letter = (char) this.registers[this.registerPointer];\n this.intOutput.add(this.registers[this.registerPointer]);\n // System.out.println(\"print: \" + this.registers[this.registerPointer]);\n this.output.add(Character.toString(letter));\n }", "public void printRecipt(){\n\n }", "public void print() {\n System.out.print(\"[ \" + value + \":\" + numSides + \" ]\");\n }", "private static void print(char c, int count) {\n\t\tfor(int i = 0; i < count ; i++)\n\t\tSystem.out.print(count);\n\t\tThread.yield();\n\t}", "private void printchar(){\n temp = (inp).toString();\n count = (temp).length();\n System.out.println(\"Length = \"+(temp).length());\n }", "public void jumlah(int a, int b, int c) {\n\t\tSystem.out.println(\"Jumlah 3 angka =\" + (a + b + c));\n\t}", "String getOutput();", "public String toString() {\n/* 106 */ return \"m= \" + this.b + \", n= \" + this.a + \", skipMSBP= \" + this.c + \", data.length= \" + ((this.d != null) ? (\"\" + this.d.length) : \"(null)\");\n/* */ }", "public void endl(){\n putc('\\n');\n }", "@Override\n\tchar toChar() {\n\t\treturn 'R';\n\t}", "public String toString() {\n\t\treturn i + \".\" + j;\n\t}", "private void outDec(){\n\t\tSystem.out.println(binary);\n\t\tpw.println(binary);\n\t\t\n\t}", "public String toString(){\n\t\treturn leftValue + \":\" +rightValue;\t\t\t\r\n\t}", "@Override\n\tpublic void cry() \n\t{\n\t\tSystem.out.println(\"喵喵喵\");\n\t\t\n\t}", "@Override\n\tpublic void selog(String c, String i) {\n\t\tSystem.out.println(c + \" : \" + i + \"\\n\");\n\t}", "public String print();", "public String getVals(){\n return (\"a: \" + a + \"\\nr: \" + r + \"\\nb: \" + b + \"\\ng: \" + g);\n }", "public String toString() { return lambda0 + \" \" + r + \" \" + s; }", "@Override\n public String toString() {\n\t\treturn i+\",\"+j; \n }", "public static void main(String[] args) {\n\r\n\t\t\t\r\n\t\tchar teste = 'c'+'A';\r\n\t\t\r\n\t\tSystem.out.println(teste);\r\n\t\tSystem.out.println('c'+'A');\t\t\r\n\t}", "public void printCorlor() {\n\t\tSystem.out.println(\"I'm yellow\");\r\n\t}", "public String toString(){\r\n return \"(\" + num + \")\";\r\n }", "public static void main(String [] args){\n\t\tSystem.out.println(\"Welcome to Java!\");\n\t\tSystem.out.println();\n\t\tSystem.out.println((x + a * b)/(c - y));\n\t\tSystem.out.println();\n\t\tSystem.out.println(\"5 * 4 / 4 - 3.5 is \");\n\t\tSystem.out.println();\n\t\tSystem.out.println(5 * 4 / 4 - 3.5);\n\t}", "private void printLine()\r\n\t{\r\n\t}", "public static void main(String[] args) {\nSystem.out.println(b);\n\t}", "public void prlns(int a) {\n\t\tSystem.out.println(a);\r\n\t}", "static void print (){\n \t\tSystem.out.println();\r\n \t}", "public static void main(String[] args) {\nScanner sc=new Scanner(System.in);\nint a= sc.nextInt();\nint b=sc.nextInt();\nint c=sc.nextInt();\nif(a+b==10 || b+c==10 || c+a==10)\n{\nSystem.out.println(\"The out put value is: \"+10);\n}\nelse if ((a+b)==(b+c)+10 || (a+b)==(c+a)+10 )\n\t\n{\n\tSystem.out.println(\"The out put value is: \"+5);\n}\nelse{\n\tSystem.out.println(\"The out put value is: \"+0);\n}\n\t}", "public void display()\n {\n System.out.println(�\\n The elements are�);\n for(int i=0; i<n; i++)\n System.out.println(� �+a[i]);\n }", "public static void main(String[] args) {\n\t\tint a = 47, b = 34;\r\n\t\tint c = a + b;\r\n\t\tSystem.out.println(c);\r\n\t\tSystem.out.println(a * b);\r\n\t\tSystem.out.println((float)a / b);\r\n\t}", "public static void main(String[] args) {\n\t\t\n\t\t\n\t\tint a, b, c;\n\t\t\n\t\ta=0;\n\t\tb=1;\n\t\t\n\t\tfor (int i=1; i<=10; i++) {\n\t\t\t\n\t\t\t System.out.print(a+\" \");\n\t\t\t c=a+b;\n\t\t\t a=b;\n\t\t\t b=c;\n\t\t\t \n\t\t}\n\t\t\n\t\tSystem.out.println();\n\t\tSystem.out.println(\"________Another way to do same printout_______\");\n\t\t\n\t\tint f1=0;\n\t\tint f2=1;\n\t\t\n\t\tfor (int f=1;f<=10; f++) {\n\t\t\t\n\t\t\tSystem.out.print(f1+\" \");\n\t\t\t\n\t\t\tf1=f1+f2;\n\t\t\tf2=f1-f2;\n\t\t}\n\t\t\n\t\t\n\t\t\n\t}", "public static void main(String[] args) \n\t{\n\t\tshort a=1;\n\t\tshort b=2;\n\t\t//short c=a+b;\n\t\t//System.out.println(c);\n\t\tbyte x=2;\n\t\tbyte y=3;\n\t\t//byte z=x+y;\n\t\t//System.out.println(z);\n\t\tfinal byte p=101;\n\t\tfinal byte q=12;\n\t\tbyte r=p+q;\n\t\tSystem.out.println(r);\n\t}", "protected String printCard(){\r\n return ranks[rank] + \" of \" + suits[suit];\r\n }", "public String c()\r\n/* 30: */ {\r\n/* 31:175 */ return \"step.\" + this.a;\r\n/* 32: */ }", "public int cout() {\n\t\treturn sum;\n\t}", "@Override\n\tpublic String toString() {\n\t\treturn String.format(\"Tam giac ten: %s, Do dai ba canh lan luot: %f %f %f\", ten,canhA,canhB,canhC);\n\t}", "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}", "void concat(String a, int b) {\n System.out.println(\"First : \" + a + \" second : \" + b);\n }", "public static void main(String[] args) \n\t{\n\t\t\n\t\tfor(int i=0;i<=127;i++)\n\t\t{\n\t\t\tSystem.out.printf(\"%d : %c \\n \" ,i,i);\n\t\t}\n\t}", "public void display() {\n\t\tSystem.out.println(x + \" \" + y + \" \" + z);\n\t}", "public void out(String input) {\t\t\r\n\t\tSystem.out.println(input);\r\n\t\tint count = 0;\r\n\t\t\r\n\t\t\r\n\t}", "public static void main(String[] args ) {\n\n char[] c = {'a','b','c'};\n System.out.println(c.toString());\n System.out.println(String.valueOf(c));\n\n }", "public void printRad(){\n System.out.println(\"The radius of the circle is: \" + getRadius());\n }", "private void print(float coutTransfert) {\n\t}", "public void putc(int achar){\n if(view!=null) {\n if (achar >= 0) {\n StringBuilder arf = new StringBuilder(1);\n arf.append((char) achar);\n view.append(arf);\n } else {\n //is return code from a failed stream read\n }\n }\n }", "public void print() {\n\t\tSystem.out.println(word0 + \" \" + word1 + \" \" + similarity);\n\t}", "public void display(List<String> c )\n\t{\n\t\tSystem.out.println();\n\t}", "public static void main(String[] args) {\n\t\t\n\t\tchar color ='g';\n\t\t\n\t\tswitch(color) {\n\t\tcase 'r': System.out.println(\"red\");\n\t\tcase 'b': System.out.println(\"blue\");\n\t\tcase 'g': System.out.println(\"green\");\n\t\t\n\t\t}}", "static void print (Object output){\r\n \t\tSystem.out.println(output);\r\n \t}", "public String toString()\n {\n String str = (continuation ? \"+ \" : \"- \") ;\n for(int i = 0 ; i < values.length ; i++)\n str += values[i] + \" \";\n str += classification;\n return str ;\n }", "public String toString() {\n return leftNumber + \" + \" + rightNumber;\n }", "public String toString() {\n String s = \"\";\n for(int i = 1; i <= rows; i++){\n for(int j = 1; j <= cols; j++){ \n s = s + String.format(\"%2d\",m[i][j]) + \" \";\n }\n s += \"\\n\";\n }\n return s;\n }" ]
[ "0.64347446", "0.627917", "0.6010352", "0.599219", "0.5901625", "0.5812555", "0.57504845", "0.57322496", "0.5709263", "0.56687397", "0.55749965", "0.5569422", "0.55660105", "0.5562874", "0.55425286", "0.5537112", "0.5536286", "0.5527232", "0.55200493", "0.55071425", "0.5486158", "0.5474132", "0.54479015", "0.54476094", "0.54448247", "0.5429178", "0.54290414", "0.5427866", "0.5422153", "0.54092485", "0.540815", "0.53842753", "0.5382707", "0.53826076", "0.5381364", "0.5370455", "0.53680277", "0.5365855", "0.5364389", "0.53612155", "0.5359176", "0.53573763", "0.532667", "0.53141046", "0.5313065", "0.5306328", "0.5300099", "0.5298348", "0.5297654", "0.52943254", "0.5289198", "0.5278715", "0.52734643", "0.5266619", "0.5259202", "0.52548796", "0.5237139", "0.52348536", "0.5234387", "0.5233011", "0.5228699", "0.522773", "0.5226469", "0.52150375", "0.52064764", "0.5194205", "0.5191814", "0.5190761", "0.5189567", "0.51877195", "0.5184187", "0.51818424", "0.51743877", "0.5173646", "0.51707214", "0.5168947", "0.516886", "0.5166793", "0.51641333", "0.5162087", "0.5148714", "0.5139798", "0.5134863", "0.5132614", "0.5131192", "0.5124898", "0.5118834", "0.5118719", "0.51157326", "0.5113241", "0.51121306", "0.51115966", "0.51110876", "0.5108892", "0.51084363", "0.510596", "0.5105569", "0.51046884", "0.50994164", "0.5096139", "0.5091933" ]
0.0
-1
Auto inject params from bundle.
@SuppressWarnings("unchecked") static void injectParams(Object obj) { if (obj instanceof Activity || obj instanceof Fragment) { String key = obj.getClass().getCanonicalName(); Class<ParamInjector> clz; if (!injectors.containsKey(key)) { try { clz = (Class<ParamInjector>) Class.forName(key + PARAM_CLASS_SUFFIX); injectors.put(key, clz); } catch (ClassNotFoundException e) { RLog.e("Inject params failed.", e); return; } } else { clz = injectors.get(key); } try { ParamInjector injector = clz.newInstance(); injector.inject(obj); } catch (Exception e) { RLog.e("Inject params failed.", e); } } else { RLog.e("The obj you passed must be an instance of Activity or Fragment."); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected void readArguments(Bundle bundle) {\n\n }", "public interface InitializationDelegates {\n void setParameters(Bundle parameters);\n}", "@Override\r\n public void load() throws ParamContextException {\n\r\n }", "private void initArguments() {\n Bundle bundle = getArguments();\n\n if (bundle != null) {\n if (bundle.containsKey(EXTRA_MOVIE_ID)) {\n int movieId = bundle.getInt(EXTRA_MOVIE_ID, 0);\n\n if (movieId > 0) {\n mMovie = MoviesRepository.getInstance(getActivity()).getMovie(movieId);\n }\n }\n }\n }", "private void inject() {\n }", "private void setBundles(Bundle bundle, Intent intent) {\n bundle.putString(getString(R.string.uuid_key), mUserId);\n bundle.putString(getString(R.string.password_key), mPasswordInput.getText().toString());\n intent.putExtra(getString(R.string.uuid_key), mUserId);\n intent.putExtra(getString(R.string.password_key), mPasswordInput.getText().toString());\n }", "@Override // com.sina.weibo.sdk.component.BrowserRequestParamBase\n public void onSetupRequestParam(Bundle bundle) {\n Bundle bundle2 = bundle.getBundle(EXTRA_KEY_AUTHINFO);\n if (bundle2 != null) {\n this.mAuthInfo = AuthInfo.parseBundleData(this.mContext, bundle2);\n }\n this.mAuthListenerKey = bundle.getString(EXTRA_KEY_LISTENER);\n if (!TextUtils.isEmpty(this.mAuthListenerKey)) {\n this.mAuthListener = WeiboCallbackManager.getInstance(this.mContext).getWeiboAuthListener(this.mAuthListenerKey);\n }\n }", "public abstract void bundle(Bundle bundle);", "private final void inject() {\n }", "public void setParameterNameValuePairs(entity.LoadParameter[] value);", "public void addToParameterNameValuePairs(entity.LoadParameter element);", "@Override\n public void onCreate(Bundle savedInstanceBundle){\n super.onCreate(savedInstanceBundle);\n if (getArguments() != null){\n mParam1 = getArguments().getString(ARG_PARAM1);\n mParam2= getArguments().getString(ARG_PARMA2);\n }\n\n }", "private void loadFromBundle() {\n Bundle data = getIntent().getExtras();\n if (data == null)\n return;\n Resource resource = (Resource) data.getSerializable(PARAMETERS.RESOURCE);\n if (resource != null) {\n String geoStoreUrl = data.getString(PARAMETERS.GEOSTORE_URL);\n loadGeoStoreResource(resource, geoStoreUrl);\n }\n\n }", "public void initParams(Intent intent) {\n super.initParams(intent);\n if (intent != null) {\n this.mUccParams = (UccParams) JSON.parseObject(intent.getStringExtra(UccConstants.PARAM_UCC_PARAMS), UccParams.class);\n this.mNeedSession = intent.getStringExtra(\"needSession\");\n this.mNeedCookieOnly = intent.getStringExtra(ParamsConstants.Key.PARAM_NEED_LOCAL_COOKIE_ONLY);\n this.token = intent.getStringExtra(\"token\");\n this.scene = intent.getStringExtra(\"scene\");\n this.mNeedToast = intent.getStringExtra(ParamsConstants.Key.PARAM_NEED_TOAST);\n String bizParamsStr = intent.getStringExtra(\"params\");\n if (!TextUtils.isEmpty(bizParamsStr)) {\n this.mParams = Utils.convertJsonStrToMap(bizParamsStr);\n }\n this.mNeedLocalSession = intent.getStringExtra(ParamsConstants.Key.PARAM_NEED_LOCAL_SESSION);\n }\n }", "void loadMyDogPluginParams(MyDogPluginsParams myDogPluginsParams);", "public void setBundleName(java.lang.String param){\n localBundleNameTracker = true;\n \n this.localBundleName=param;\n \n\n }", "public void setBundleID(long param){\n localBundleIDTracker = true;\n \n this.localBundleID=param;\n \n\n }", "private void initParameters() {\n Annotation[][] paramsAnnotations = method.getParameterAnnotations();\n for (int i = 0; i < paramsAnnotations.length; i++) {\n if (paramsAnnotations[i].length == 0) {\n contentBuilder.addUnnamedParam(i);\n } else {\n for (Annotation annotation : paramsAnnotations[i]) {\n Class<?> annotationType = annotation.annotationType();\n if (annotationType.equals(PathParam.class)\n && pathBuilder != null) {\n PathParam param = (PathParam) annotation;\n pathBuilder.addParam(param.value(), i);\n } else if (annotationType.equals(QueryParam.class)) {\n QueryParam param = (QueryParam) annotation;\n queryBuilder.addParam(param.value(), i);\n } else if (annotationType.equals(HeaderParam.class)) {\n HeaderParam param = (HeaderParam) annotation;\n headerBuilder.addParam(param.value(), i);\n } else if (annotationType.equals(NamedParam.class)) {\n NamedParam param = (NamedParam) annotation;\n contentBuilder.addNamedParam(param.value(), i);\n } else {\n contentBuilder.addUnnamedParam(i);\n }\n }\n }\n }\n }", "void inject(MainActivity activity);", "@Override\n\tprotected void initParams() {\n\t\t\n\t}", "public abstract void injectComponent();", "void inject(MyMoneyApplication myMoneyApplication);", "@Override\n public void setConfigParams(Map<String, Object> params) {\n\n }", "public void bundleByName(final String[] params, final PrintStream pStream) {\r\n for (int i = 0; i < params.length; i++) {\r\n Bundle[] b = Activator.getFrameworkInspectorImpl().getBundleForClassName(params[i]);\r\n if (b.length < 1) {\r\n pStream.println(\"Class \"\r\n + params[i] + \" was not found in any bundle.\");\r\n } else {\r\n pStream.println(\"\\nClass \"\r\n + params[i] + \" is provided by:\");\r\n for (int j = 0; j < b.length; j++) {\r\n if (b[j] == null) {\r\n // either the JVM or the App ClassLoader are able to produce that...\r\n Class<?>[] clazzes = Activator.getFrameworkInspectorImpl().getClassesForName(params[i]);\r\n // we can only have one possible class here\r\n if (clazzes[0].getClassLoader() == null) {\r\n // if no class loader is returned, it is loaded with the System CL\r\n pStream\r\n .println(\"\\tNot provided by a Bundle, but by the JVM/ System ClassLoader.\");\r\n } else {\r\n // here we have an Application ClassLoader providing the class\r\n pStream\r\n .println(\"\\tNot provided by a Bundle, but by the Application ClassLoader.\");\r\n }\r\n\r\n } else {\r\n pStream.println(\"\\tBundle: \"\r\n + b[j].getSymbolicName() + \" [\" + b[j].getBundleId() + \"]\");\r\n }\r\n }\r\n }\r\n }\r\n }", "void inject(BaseApplication application);", "void activate(Map<String,String> config){\n \tthis.config=config;\n\t\tlog.debug(bundleMarker,\"Activating...\");\n\t\tfor (Map.Entry<String, String> entry : config.entrySet()) {\n\t\t\tlog.debug(bundleMarker, \"Property key={} value={}\",entry.getKey(),entry.getValue());\n\t\t}\n\t\t\n\t}", "void inject(MainActivity mainActivity);", "@Override\n\tprotected void initParamsForFragment() {\n\n\t}", "@Override \n\tprotected void onCreate(Bundle savedInstanceState) {\n\t\tsuper.onCreate(savedInstanceState);\n\t\tsetParams();\n\t}", "public void onCreate(@Nullable Bundle bundle) {\r\n AndroidInjection.inject((Activity) this);\r\n super.onCreate(bundle);\r\n setContentView((int) C0013R$layout.activity_personalized_recommend);\r\n initializeView();\r\n registerEventSubscriber();\r\n Parcelable parcelableExtra = getIntent().getParcelableExtra(\"parameters\");\r\n Intrinsics.checkExpressionValueIsNotNull(parcelableExtra, \"intent.getParcelableExtr…arameters.PARAMETER_NAME)\");\r\n this.parameters = (Parameters) parcelableExtra;\r\n getPersonalizedrecommendListRequest();\r\n EventBus.getDefault().register(this);\r\n }", "public void initialize(Bundle arguments);", "@Override\n public void startBundle(Bundle bundle) {\n mBundle = bundle;\n }", "@Override\r\n public void addAdditionalParams(WeiboParameters des, WeiboParameters src) {\n\r\n }", "public void init(Map<String, String> pParams, Application pApp) throws Exception;", "public void init(RepletRequest req) throws RepletException\n {\n try\n {\n super.init(req); // get the common parameters\n m_bundle = ResourceBundle.getBundle(MY_MESSAGES, theUiLocale);\n addMoreRepletParameters();\n }\n catch (RepletException re)\n {\n throw re;\n }\n catch (Exception e)\n {\n throw new RepletException(e.getMessage());\n }\n }", "protected void processContextParameters()\n {\n JBossWebMetaData local = metaDataLocal.get();\n JBossWebMetaData shared = metaDataShared.get();\n\n Map<String, String> overrideParams = new HashMap<String, String>();\n\n List<ParamValueMetaData> params = local.getContextParams();\n if (params != null)\n {\n for (ParamValueMetaData param : params)\n {\n overrideParams.put(param.getParamName(), param.getParamValue());\n }\n }\n params = shared.getContextParams();\n if (params != null)\n {\n for (ParamValueMetaData param : params)\n {\n if (overrideParams.get(param.getParamName()) == null)\n {\n overrideParams.put(param.getParamName(), param.getParamValue());\n }\n }\n }\n\n for (String key : overrideParams.keySet())\n {\n context.addParameter(key, overrideParams.get(key));\n }\n\n }", "public abstract void configureBean(Map<String, String[]> requestParamsMap);", "public void getBundle (){\n idTemp = getIntent().getStringExtra(\"id\");\n }", "@Override\n public void loadFromPreferencesAdditional(PortletPreferences pp) {\n }", "protected void openBundle(Bundle bundle){\n //set saved instance state data\n }", "void inject(BaseActivity baseActivity);", "public final void a(Bundle param1) {\n }", "public final void a(Bundle param1) {\n }", "public void setParams(List<ModuleArgumentItem> params) {\n this.params = params;\n }", "protected void setupParameters() {\n \n \n\n }", "@Override\n\tpublic void init(BundleContext context, DependencyManager manager)\n\t\t\tthrows Exception {\n\t\t\n\t}", "@Override\n public void init() {\n String[] args = this.getParameters().getRaw().toArray(new String[0]);\n // We run Spring context initialization at the time of JavaFX initialization:\n springContext = SpringApplication.run(MainApp.class, args);\n }", "@SuppressWarnings(\"unused\")\n public void modifiedBundle(Bundle bundle) {\n }", "public void init(Object[] initialParams) {\n\t \n\t}", "void updateParamMap (List<BindParameter> bindParams);", "public void init(Object[] parameters) {\n\n\t}", "public void setParameters(Parameters params) {\n Log.e(TAG, \"setParameters()\");\n //params.dump();\n native_setParameters(params.flatten());\n }", "protected void parametersInstantiation_EM() {\n }", "protected void addExtraViewInteractionParams(String sParamBaseName)\n\t{\n\t}", "abstract protected void addExtras();", "@Override\n public void onCreate(@Nullable Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n\n initArguments();\n }", "void inject(SplashActivity activity);", "void setParameters() {\n\t\t\n\t}", "void inject(NyNewsActivity activity);", "protected void initOtherParams() {\n\n\t\t// init other params defined in parent class\n\t\tsuper.initOtherParams();\n\n\t\t// the Component Parameter\n\t\t// first is default, the rest are all options (including default)\n\t\tcomponentParam = new ComponentParam(Component.AVE_HORZ, Component.AVE_HORZ,\n\t\t\t\tComponent.RANDOM_HORZ, Component.GREATER_OF_TWO_HORZ);\n\n\t\t// the stdDevType Parameter\n\t\tStringConstraint stdDevTypeConstraint = new StringConstraint();\n\t\tstdDevTypeConstraint.addString(StdDevTypeParam.STD_DEV_TYPE_TOTAL);\n\t\tstdDevTypeConstraint.addString(StdDevTypeParam.STD_DEV_TYPE_INTER);\n\t\tstdDevTypeConstraint.addString(StdDevTypeParam.STD_DEV_TYPE_INTRA);\n\t\tstdDevTypeConstraint.addString(StdDevTypeParam.STD_DEV_TYPE_NONE);\n\t\tstdDevTypeConstraint.setNonEditable();\n\t\tstdDevTypeParam = new StdDevTypeParam(stdDevTypeConstraint);\n\n\t\t// add these to the list\n\t\totherParams.addParameter(componentParam);\n\t\totherParams.addParameter(stdDevTypeParam);\n\n\t}", "void onPaymentRequestParamsInitiated(PaymentRequestParams params);", "public ParameterBundle newParameterBundle(String id, String units)\n {\n return new AceParameterBundle(id, units);\n }", "@Override\n\tpublic void setParams(String[] params) {\n\t}", "@Override\n\tpublic void setParams(String[] params) {\n\t}", "private void updateValuesFromBundle(Bundle savedInstanceState) {\n if (savedInstanceState != null) {\n if (savedInstanceState.keySet().contains(ADDRESS_REQUESTED_KEY)) {\n mAddressRequested = savedInstanceState.getBoolean(ADDRESS_REQUESTED_KEY);\n }\n\n if (savedInstanceState.keySet().contains(LOCATION_ADDRESS_KEY)) {\n mAddressOutput = savedInstanceState.getString(LOCATION_ADDRESS_KEY);\n displayAddressOutput();\n }\n }\n }", "public void init()\n {\n context = getServletContext();\n parameters = (Siu_ContainerLabel)context.getAttribute(\"parameters\");\n }", "public void injectContext(ComponentContext context);", "@Override\n public void onActivityCreated(Bundle savedInstanceState)\n {\n super.onActivityCreated(savedInstanceState);\n Bundle bundle = getArguments(); //get this bundles arguments\n if(bundle != null) //if the bundle is not null\n {\n String num = bundle.getString(\"profnum\"); //set the string to the bundles arg\n setMaximRating(num); //call the function and pass in num\n }\n }", "void inject(FeelingApp application);", "void inject(SubscriberListFragment fragment);", "private void init(Bundle savedInstanceState) {\n }", "private void init(Bundle savedInstanceState) {\n }", "private void init(Bundle savedInstanceState) {\n }", "private void init(Bundle savedInstanceState) {\n }", "private void updateValuesFromBundle(Bundle savedInstanceState) {\n if (savedInstanceState != null) {\n // Check savedInstanceState to see if the address was previously requested.\n if (savedInstanceState.keySet().contains(ADDRESS_REQUESTED_KEY)) {\n mAddressRequested = savedInstanceState.getBoolean(ADDRESS_REQUESTED_KEY);\n }\n // Check savedInstanceState to see if the location address string was previously found\n // and stored in the Bundle. If it was found, display the address string in the UI.\n if (savedInstanceState.keySet().contains(LOCATION_ADDRESS_KEY)) {\n mAddressOutput = savedInstanceState.getString(LOCATION_ADDRESS_KEY);\n\n }\n }\n }", "void inject(SubscriberDetailsFragment fragment);", "@BundleStart\n public void bundleStart() {\n System.out.println(\"In bundleStart()!\");\n System.setProperty(\"test.bundle.start\", \"Jeehaa!\");\n }", "public interface Bundler {\n /**\n * Like {@link mortar.Scoped#onEnterScope}, called synchronously when a bundler\n * is {@link BundleService#register registered} with a {@link BundleService}.\n */\n void onEnterScope(MortarScope scope);\n\n /**\n * The key that will identify the bundles passed to this instance via {@link #onLoad}\n * and {@link #onSave}.\n */\n String getMortarBundleKey();\n\n /**\n * Called when this object is {@link BundleService#register registered}, and each time\n * {@link BundleServiceRunner#onCreate} is called (e.g. after a configuration change like\n * rotation, or after the app process is respawned). Callers should assume that the initial\n * call to this method is made asynchronously, but be prepared for a synchronous call.\n *\n * <p>Note that receivers are likely to outlive multiple activity instances, and so receive\n * multiple calls of this method. Implementations should be prepared to ignore saved state if\n * they are already initialized.\n *\n * @param savedInstanceState the state written by the most recent call to {@link #onSave}, or\n * null if that has never happened.\n */\n void onLoad(Bundle savedInstanceState);\n\n /**\n * Called from the {@link BundleServiceRunner#onSaveInstanceState}, to allow the receiver\n * to save state before the process is killed. Note that receivers are likely to outlive multiple\n * activity instances, and so receive multiple calls of this method. Any state required to revive\n * a new instance of the receiver in a new process should be written out each time, as there is\n * no way to know if the app is about to hibernate.\n *\n * @param outState a bundle to write any state that needs to be restored if the plugin is\n * revived\n */\n void onSave(Bundle outState);\n\n void onExitScope();\n}", "public void activate(Bundle bundle) {\n if (! m_enabled && Extender.getIPOJOBundleContext().getBundle().getBundleId() == bundle.getBundleId()) {\n // Fast return if the configuration tracking is disabled, or if we are iPOJO\n return;\n }\n\n // It's not required to process bundle not importing the configuration package.\n final String imports = bundle.getHeaders().get(Constants.IMPORT_PACKAGE);\n if (imports == null || ! imports.contains(\"org.apache.felix.ipojo.configuration\")) {\n // TODO Check dynamic imports to verify if the package is not imported lazily.\n return;\n }\n\n BundleWiring wiring = bundle.adapt(BundleWiring.class);\n if (wiring == null) {\n // Invalid state.\n m_logger.log(Log.ERROR, \"The bundle \" + bundle.getBundleId() + \" (\" + bundle.getSymbolicName() + \") \" +\n \"cannot be adapted to BundleWiring, state: \" + bundle.getState());\n return;\n }\n\n // Only lookup for local classes, parent classes will be analyzed on demand.\n Collection<String> resources = wiring.listResources(\"/\", \"*.class\",\n BundleWiring.FINDENTRIES_RECURSE + BundleWiring.LISTRESOURCES_LOCAL);\n if (resources == null) {\n m_logger.log(Log.ERROR, \"The bundle \" + bundle.getBundleId() + \" (\" + bundle.getSymbolicName() + \") \" +\n \" does not have any classes to be analyzed\");\n return;\n }\n m_logger.log(Log.DEBUG, resources.size() + \" classes found\");\n handleResources(bundle, resources, wiring.getClassLoader());\n }", "void inject(StychApplication stychApplication);", "public void injectConfiguration(ComponentConfiguration conf);", "public interface AutoParamsRepository {\n AvtoParams getAvtoParamsById(@Param(\"id\")UUID id);\n /* void addAvtoParams(@Param(\"avtoParams\") AvtoParams avtoParams);\n void updateAvtoParams(@Param(\"avtoParams\") AvtoParams avtoParams);\n void deleteAvtoParams(@Param(\"id\")UUID id);*/\n}", "public void setParaToParameters(String key, Object obj)\n\t{\n\t\tMap<String, Object> parameters = (Map)context.getParameters();\n\t\tparameters.put(key, obj);\n\t}", "@SuppressWarnings(\"unused\")\n @Activate\n private void activate(final BundleContext bundleContext) {\n this.bundleContext = bundleContext;\n\n try {\n bundleContext.addServiceListener(this, REFERENCE_FILTER);\n final ServiceReference[] serviceReferences = bundleContext.getServiceReferences(\n SlingPostOperation.SERVICE_NAME, null);\n if (serviceReferences != null) {\n for (ServiceReference serviceReference : serviceReferences) {\n register(serviceReference);\n }\n }\n } catch (InvalidSyntaxException ise) {\n // not expected for tested static filter\n // TODO:log !!\n }\n }", "@Override\n public void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n if (getArguments() != null) {\n mParam1 = getArguments().getString(ARG_PARAM1);\n mParam2 = getArguments().getString(ARG_PARAM2);\n }\n data = getArguments().getParcelableArrayList(\"data\");\n places = getActivity().getIntent().getStringExtra(\"places\");\n }", "public void addInitParameter(String name, String value){\n\n\t\tthis.parameters.put(name, value);\n\t}", "private void initFragmentAutoInjection() {\n BucketApplication app;\n app = (BucketApplication) getApplication();\n\n getSupportFragmentManager().registerFragmentLifecycleCallbacks(new FragmentLifecycleCallbacks() {\n @Override\n public void onFragmentAttached(FragmentManager fm, Fragment f, Context context) {\n super.onFragmentAttached(fm, f, context);\n if(f instanceof ListingFragment) {\n app.getAppComponentInjector().inject((ListingFragment) f);\n } else if (f instanceof ListingPreferencesFragment) {\n app.getAppComponentInjector().inject((ListingPreferencesFragment) f);\n }\n }\n }, false);\n }", "public void onNewIntent(Intent intent) {\n super.onNewIntent(intent);\n initParams(intent);\n }", "void mo3208a(String str, Bundle bundle);", "void setParameters(Map<String, String[]> parameters);", "private void extractDataFromBundle() {\n Intent intent = getIntent();\n Bundle bundle = intent.getBundleExtra(MainActivity.PRACTICE_GAME_BUNDLE_KEY);\n\n mDifficulty = (Difficulty) bundle.getSerializable(MainActivity.DIFFICULTY_KEY);\n mPlayerGamePiece = (GamePiece) bundle.getSerializable(MainActivity.GAME_PIECE_KEY);\n\n }", "public ParamPanel() {\n this.paramService = new ParamService();\n initComponents();\n doQuery();\n }", "void mo56317a(Context context, Bundle bundle, C4541a c4541a);", "@Component(modules = PhotoDetailModule.class)\npublic interface PhotoDetailComponent {\n void inject(PhotoDetailActivity photoDetailActivity);\n}", "private void initFixedArgs() {\n\t\t\n\t\t// Fetch arguments and convert to integer\n\t\tObject[] args = this.getArguments();\n\t\t\n\t\t// Assign values\n\t\tcoords = new Point((int) args[coordsXI], (int) args[coordsYI]);\n\t\tspots = (int) args[regularSpotsI] + (int) args[luxurySpotsI] + (int) args[handicapSpotsI];\n\t\tregularSpots = (int) args[regularSpotsI];\n\t\tluxurySpots = (int) args[luxurySpotsI];\n\t\thandicapSpots = (int) args[handicapSpotsI];\n\t\thourlyCost = (int) args[fixedHourlyCostI];\n\t\tluxuryCostPercent = (int) args[fixedLuxuryCostPercentI];\n\t}", "void inject() throws Exception;", "private void chargesBundles(){\n Bundle bundle = getIntent().getExtras();\n usuario = (Usuario) bundle.getSerializable(\"usuario\");\n tvNombreUsuario.setText(tvNombreUsuario.getText() + \"\" + usuario.getNombre());\n }", "@Override\n\tpublic void loadData(Bundle bundle) {\n\t}", "private Map<String, String> paramHandler(Map<String, String> params){\n\t\t\n\t\treturn params;\n\t}", "private void updateValuesFromBundle(Bundle savedInstanceState) {\n Log.i(TAG, \"Updating values from bundle\");\n if (savedInstanceState != null) {\n // Update the value of mRequestingLocationUpdates from the Bundle, and make sure that\n // the Start Updates and Stop Updates buttons are correctly enabled or disabled.\n if (savedInstanceState.keySet().contains(REQUESTING_LOCATION_UPDATES_KEY)) {\n mRequestingLocationUpdates = savedInstanceState.getBoolean(\n REQUESTING_LOCATION_UPDATES_KEY);\n\n }\n\n // Update the value of mCurrentLocation from the Bundle and update the UI to show the\n // correct latitude and longitude.\n if (savedInstanceState.keySet().contains(LOCATION_KEY)) {\n // Since LOCATION_KEY was found in the Bundle, we can be sure that mCurrentLocation\n // is not null.\n mCurrentLocation = savedInstanceState.getParcelable(LOCATION_KEY);\n }\n\n // Update the value of mLastUpdateTime from the Bundle and update the UI.\n if (savedInstanceState.keySet().contains(LAST_UPDATED_TIME_STRING_KEY)) {\n mLastUpdateTime = savedInstanceState.getString(LAST_UPDATED_TIME_STRING_KEY);\n }\n updateUI();\n }\n }" ]
[ "0.62360907", "0.5977564", "0.5851829", "0.58382744", "0.5829662", "0.580919", "0.57801765", "0.5764445", "0.57349175", "0.5721032", "0.5690542", "0.5643386", "0.5636", "0.5542123", "0.5512853", "0.550007", "0.54808104", "0.5476618", "0.54622424", "0.5457506", "0.543981", "0.54333895", "0.54196626", "0.54064965", "0.5376015", "0.5363182", "0.53374255", "0.53341323", "0.5275719", "0.52727914", "0.5269349", "0.52486366", "0.5236429", "0.52277994", "0.5227436", "0.51898634", "0.5187401", "0.51831526", "0.5179558", "0.51512814", "0.51470304", "0.51295626", "0.51295626", "0.5119771", "0.5095952", "0.50482833", "0.5047569", "0.5037817", "0.50371796", "0.503059", "0.5019475", "0.50163084", "0.5002926", "0.50019795", "0.5001868", "0.4999789", "0.49953073", "0.4991232", "0.49905106", "0.49810514", "0.49806392", "0.49791998", "0.49783003", "0.49783003", "0.49769962", "0.4974664", "0.4956769", "0.49404857", "0.4916897", "0.49127084", "0.49010792", "0.49010792", "0.49010792", "0.49010792", "0.48883024", "0.48791674", "0.48786622", "0.48729867", "0.48719954", "0.48697016", "0.48632997", "0.48614305", "0.48541832", "0.48528716", "0.4851776", "0.48487088", "0.4847505", "0.48457986", "0.4842007", "0.48345533", "0.48276633", "0.48275167", "0.481808", "0.48148593", "0.4805196", "0.48048207", "0.48017317", "0.48001805", "0.47994205", "0.479902" ]
0.6146754
1
execCommand(( Command ) cbDo.getSelectedItem() );
protected void startProcess() { System.out.println("Process started"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void actionPerformed(ActionEvent evt) {\n JComboBox comboBox = (JComboBox)evt.getSource();\n currentCommand = (String)comboBox.getSelectedItem();\n }", "int getActionCommand();", "java.lang.String getCommand();", "public void actionPerformed(ActionEvent ae) {\n rb_selection = ae.getActionCommand(); \t \n }", "String getCommand();", "int getCommand();", "private void DoCommand(String command) {\n if (command.equals(\"单点校正\")) {\n CheckControlPtnCal_Dialog tempDialog = new CheckControlPtnCal_Dialog();\n tempDialog.SetCallback(this.pCallback);\n tempDialog.ShowDialog();\n }\n }", "java.lang.String getCommand(int index);", "public void commandAction(Command cmd, Displayable source) {\n if (cmd == CMD_OK) {\n midlet.textEditorDone(textField.getString());\n } else if (cmd == CMD_CANCEL) {\n midlet.textEditorDone(null);\n } else {\n // Functionality to handle for unexpected commands may be added here...\n }\n }", "private void combo_diabeticoActionPerformed(java.awt.event.ActionEvent evt) {\n }", "public void actionPerformed(ActionEvent e) {\n\t\t\t\t\trutaseleccionada = (String) rodadura.getSelectedItem();\r\n\r\n\t\t\t\t}", "public void consoleSelectItem() throws SQLException{\n System.out.println(\"came here\");\n ConsoleClass obj = new ConsoleClass();\n String item = console_actionItemList.getSelectionModel().getSelectedItem();\n obj.consoleSelectItem(this,item);\n }", "protected String execCommand(String command) {\n\t\treturn executor.execCommand(command);\n\t}", "@Override\n\tprotected Command createCommand() {\n\t\tList<Object> editparts = editor.getSelectionCache().getSelectionModelForType(MGraphicElement.class);\n\t\tif (editparts.isEmpty())\n\t\t\treturn null;\n\t\tJSSCompoundCommand command = new JSSCompoundCommand(null);\n\t\tfor(Object part : editparts){\n\t\t\tif (part instanceof MTextElement) {\n\t\t\t\tMTextElement textElement = (MTextElement)part;\n\t\t\t\tcommand.setReferenceNodeIfNull(textElement);\n\t\t\t\tLazyCreateTextFieldCommand createCommand = new LazyCreateTextFieldCommand(textElement);\n\t\t\t\tcommand.add(createCommand);\n\t\t\t}\n\t\t}\n\t\tif (command.isEmpty()) {\n\t\t\treturn null;\n\t\t}\n\t\treturn command;\n\t}", "@Override\n public void actionPerformed(ActionEvent e) {\n\n Clipboard cb = Toolkit.getDefaultToolkit().getSystemClipboard();\n //cb.setContents(new CellTransferable(component.getValueAt(row, col)), null);\n //Transferable transferable = new StringSelection((String)table.getValueAt(row, col));\n //cb.setContents(transferable,null);\n \n \n int [] rows = table.getSelectedRows();\n int [] columns = table.getSelectedColumns();\n \n \n StringBuffer selection = new StringBuffer();\n for (int r: rows)\n {\n \tfor (int c: columns)\n \t{\n \t\t\tselection.append((String)table.getValueAt(r, c)); \n \t\t\tselection.append(\";\");\n \t}\n\t\t\tselection.append(\"\\n\");\n\n }\n Transferable transferable = new StringSelection(selection.toString());\n cb.setContents(transferable,null);\n \n }", "public abstract String getCommand();", "public abstract Menu execute(String commandKey);", "public String getCommand(){\n return getCommand(null);\n }", "private void comCosasActionPerformed(java.awt.event.ActionEvent evt) {\n }", "public native MenuItem getSelectedItem();", "public String \n getCommand() \n {\n return pCommand;\n }", "Commands getCommandes();", "@Override\r\n public Command requestCommand() \r\n {\r\n while (!GameFrame.gameDisplay.selectionMade())\r\n {\r\n //System.out.println();\r\n Thread.yield();\r\n }\r\n \r\n Command command = GameFrame.gameDisplay.getSelection();\r\n GameFrame.gameDisplay.resetSelection();\r\n return command;\r\n }", "private void comboClienteActionPerformed(java.awt.event.ActionEvent evt) {\n }", "abstract void commandButtonExecute(MigrationEditorOperation editor);", "private static void OnQueryStatusNYI(Object target, CanExecuteRoutedEventArgs args)\r\n { \r\n TextEditor This = TextEditor._GetTextEditor(target); \r\n\r\n if (This == null) \r\n {\r\n return;\r\n }\r\n\r\n args.CanExecute = true;\r\n }", "@Override\r\n public void execute(Command command) {\n\r\n }", "void sendCommand(CommandEvent event);", "private void comboBox1ActionPerformed(ActionEvent e) {\n }", "private void doMenuCommand(String command) {\n\t\tif (command.equals(\"Save...\")) { \n\t\t\tsaveImageAsText();\n\t\t}\n\t\telse if (command.equals(\"Open...\")) {\n\t\t\topenTextFile();\n\t\t\tcanvas.repaint(); \n\t\t}\n\t\telse if (command.equals(\"Clear\")) { // remove all strings\n\t\t\ttheString = null; // Remove the ONLY string from the canvas.\n\t\t\tundoMenuItem.setEnabled(false);\n\t\t\tcanvas.repaint();\n\t\t}\n\t\telse if (command.equals(\"Remove Item\")) { // remove the most recently added string\n\t\t\t// to apply undo in the program\n\t\t\tif (theString.size() > 0) {\n\t\t\t\ttheString.remove(theString.size() - 1); \n\t\t\t}\n\t\t\tif (theString.size() == 0)\n\t\t\t\tundoMenuItem.setEnabled(false); \n\t\t\tcanvas.repaint();\n\t\t}\n\t\telse if (command.equals(\"Set Text Color...\")) {\n\t\t\tColor c = JColorChooser.showDialog(this, \"Select Text Color\", currentTextColor);\n\t\t\tif (c != null)\n\t\t\t\tcurrentTextColor = c;\n\t\t}\n\t\telse if (command.equals(\"Set Background Color...\")) {\n\t\t\tColor c = JColorChooser.showDialog(this, \"Select Background Color\", canvas.getBackground());\n\t\t\tif (c != null) {\n\t\t\t\tcanvas.setBackground(c);\n\t\t\t\tcanvas.repaint();\n\t\t\t}\n\t\t}\n\t\telse if (command.equals(\"Save Image...\")) { // save a PNG image of the drawing area\n\t\t\tFile imageFile = fileChooser.getOutputFile(this, \"Select Image File Name\", \"textimage.png\");\n\t\t\tif (imageFile == null)\n\t\t\t\treturn;\n\t\t\ttry {\n\t\t\t\t// Because the image is not available, I will make a new BufferedImage and\n\t\t\t\t// draw the same data to the BufferedImage as is shown in the panel.\n\t\t\t\t// A BufferedImage is an image that is stored in memory, not on the screen.\n\t\t\t\t// There is a convenient method for writing a BufferedImage to a file.\n\t\t\t\tBufferedImage image = new BufferedImage(canvas.getWidth(),canvas.getHeight(),\n\t\t\t\t\t\tBufferedImage.TYPE_INT_RGB);\n\t\t\t\tGraphics g = image.getGraphics();\n\t\t\t\tg.setFont(canvas.getFont());\n\t\t\t\tcanvas.paintComponent(g); // draws the canvas onto the BufferedImage, not the screen!\n\t\t\t\tboolean ok = ImageIO.write(image, \"PNG\", imageFile); // write to the file\n\t\t\t\tif (ok == false)\n\t\t\t\t\tthrow new Exception(\"PNG format not supported (this shouldn't happen!).\");\n\t\t\t}\n\t\t\tcatch (Exception e) {\n\t\t\t\tJOptionPane.showMessageDialog(this, \n\t\t\t\t\t\t\"Sorry, an error occurred while trying to save the image:\\n\" + e);\n\t\t\t}\n\t\t}\n\t}", "int getCmd();", "public abstract String getCommandName();", "public abstract String getCommandName();", "public Command click() {\r\n\t\treturn command;\r\n\t}", "private int getResult(){\n\t\t\t\tButtonModel\tbtnModel = btnGroup.getSelection();\r\n \t\t\tif(btnModel!=null){\r\n \t\t\t\treturn Integer.parseInt(btnModel.getActionCommand());\r\n\t\t\t\t}\r\n\t\t\t\treturn -10; //return -10 if user did not fill selection\r\n\t\t\t}", "private static void OnQueryStatusCorrectionList(Object target, CanExecuteRoutedEventArgs args) \r\n {\r\n TextEditor This = TextEditor._GetTextEditor(target); \r\n\r\n if (This == null)\r\n {\r\n return; \r\n }\r\n\r\n if (This.TextStore != null) \r\n {\r\n // Don't do actual reconversion, it just checks if the current selection is reconvertable. \r\n args.CanExecute = This.TextStore.QueryRangeOrReconvertSelection( /*fDoReconvert:*/ false);\r\n }\r\n else\r\n { \r\n // If there is no textstore, this command is not enabled.\r\n args.CanExecute = false; \r\n } \r\n }", "public String getCommand(){\n return command;\n }", "public void optionsActionPerformed(java.awt.event.ActionEvent evt) throws IOException{ \n options();\n }", "public void actionPerformed(ActionEvent e) \n\t{ \n\t\tString s = e.getActionCommand(); \n\n\t\tif (s.equals(\"cut\")) { \n Cut(); \n\t\t} \n\t\telse if (s.equals(\"copy\")) { \n Copy();\n\t\t} \n\t\telse if (s.equals(\"paste\")) { \n Paste(); \n\t\t} \n\t\telse if (s.equals(\"Save\")) { \n Save();\n\t\t} \n\t\telse if (s.equals(\"Print\")) { \n Print();\n\t\t} \n\t\telse if (s.equals(\"Open\")) { \n Open();\n\t\t} \n\t\telse if (s.equals(\"New\")) { \n New();\n\t\t} \n\t\telse if (s.equals(\"close\")) { \n Close();\n\t\t}\n else if (s.equals(\"font\")) { \n font fs = new font();\n \n \n\t\t}\n\t}", "private void sendButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_sendButtonActionPerformed\n String str = requestCommand.getText();\n sC.sendCommand(str); \n requestCommand.requestFocus();\n }", "@Override\r\n\t\t\tpublic void seleccionar() {\n\r\n\t\t\t}", "public xCommandOnText(String command){ this.init(command); }", "java.lang.String getCommandName();", "public Command getCurrentCommand();", "private void processCommand()\n {\n String vInput = this.aEntryField.getText();\n this.aEntryField.setText(\"\");\n\n this.aEngine.interpretCommand( vInput );\n }", "public void commandAction(Command cmd, Displayable displayable) {\r\n\t\t\tAbstractCommand myCommand = (AbstractCommand) cmd;\r\n\t\t\tmyCommand.execute();\r\n\t\t}", "public Object getSelectedObject() {\n return (String) itsCombo.getSelectedItem();\n }", "public String getCommand() { return command; }", "public void selectFromClipboard() { genericClipboard(SetOp.SELECT); }", "public void autonomousInit() {\n autonomousCommand = (Command) autoChooser.getSelected();\n autonomousCommand.start();\n// \n }", "private void cmdExcelReportWidgetSelected() {\n\n\t}", "@Override\n\t\t\tpublic void actionPerformed(ActionEvent cb_e) {\n\t\t\t\tinx3 = cb[3].getSelectedIndex();\n\t\t\t}", "public abstract void setCommand(String cmd);", "@Override\n\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\tString tmp = dbtype.getSelectedItem().toString();\n\t\t\ttmp = tmp.replace(\"><\", \">\\r\\n<\");\n\t\t\tdbset.append(tmp + \"\\n\");\n\t\t}", "@Override\n\t\t\tpublic void actionPerformed(ActionEvent cb_e) {\n\t\t\t\tinx1 = cb[1].getSelectedIndex();\n\t\t\t}", "private void processCommand(String command) {\n if (command.equals(\"1\")) {\n insertItem();\n } else if (command.equals(\"2\")) {\n removeItem();\n } else if (command.equals(\"3\")) {\n viewList();\n } else if (command.equals(\"4\")) {\n saveToDoList();\n } else if (command.equals(\"5\")) {\n loadToDoList();\n } else {\n System.out.println(\"Selection not valid...\");\n }\n }", "@Override\n\tpublic void setCommand(String cmd) {\n\t\t\n\t}", "public void selected(String action);", "@Override\n\t\t\tpublic void actionPerformed(ActionEvent cb_e) {\n\t\t\t\tinx2 = cb[2].getSelectedIndex();\n\t\t\t}", "void legalCommand();", "final public String getActionCommand() {\n return command;\n }", "public Command getCommand() {\n\t\treturn redCom;\n\t}", "@Override\n\t\t\tpublic void actionPerformed(ActionEvent cb_e) {\n\t\t\t\tinx0 = cb[0].getSelectedIndex();\n\t\t\t}", "public String getCommand()\r\n\t{\r\n\t\treturn command;\r\n\t}", "@Override\n public void actionPerformed(ActionEvent e) {\n optionEnvoi = choixMessage.getItemAt(choixMessage.getSelectedIndex());\n }", "String getCommandName();", "@Override\n\tpublic void processCommand(JMVCommandEvent arg0) {\n\t}", "public Object execute(ExecutionEvent event) throws ExecutionException {\n\t\tIWorkbenchWindow window = HandlerUtil.getActiveWorkbenchWindowChecked(event);\n\t\tITextSelection content = (ITextSelection) window.getActivePage().getActiveEditor().getEditorSite().getSelectionProvider().getSelection();\n\t\tString texto = content.getText();\t\t\n\t\tToolkit toolkit = Toolkit.getDefaultToolkit();\n\t\tClipboard clipboard = toolkit.getSystemClipboard();\n\t\t\n\t\tString sqlFormatado = formatSQL(texto);\n\t\t\n\t\tStringSelection textoFormatado = new StringSelection(sqlFormatado);\n\t\tclipboard.setContents(textoFormatado, null);\n\t\t\n\t\tif(isBlank(texto)){\n\t\t\tMessageDialog.openInformation(\n\t\t\t\t\twindow.getShell(),\n\t\t\t\t\t\"SQLCopy\",\n\t\t\t\t\t\"Você não selecionou nada!\");\t\t\t\n\t\t} else {\t\t\t\n\t\t\tif(isConvertToJava(texto)){//Realizar a substituição do texto selecionado apenas quando estiver convertendo um SQL para Java.\n\t\t\t\tIEditorPart part = PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActivePage().getActiveEditor();\t\t\t\n\t\t\t\tITextEditor editor = (ITextEditor)part;\n\t\t\t\tIDocumentProvider prov = editor.getDocumentProvider();\n\t\t IDocument doc = prov.getDocument( editor.getEditorInput() );\n\t\t ISelection sel = editor.getSelectionProvider().getSelection();\n\t\t \n\t\t if ( sel instanceof TextSelection ) {\n\t\t final TextSelection textSel = (TextSelection)sel;\n\t\t try {\n//\t\t \tIRegion region = doc.getLineInformationOfOffset(textSel.getOffset());\t\t \t\n//\t\t\t\t\t\tdoc.replace( textSel.getOffset(), textSel.getLength(), identingCode(region.getLength(), sqlFormatado));\n\t\t \tdoc.replace( textSel.getOffset(), textSel.getLength(), sqlFormatado);\n\t\t\t\t\t} catch (BadLocationException e) {\n\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t}\n\t\t }\n\t\t\t}\t\t\t\n//\t\t\tMessageDialog.openInformation(\n//\t\t\t\t\twindow.getShell(),\n//\t\t\t\t\t\"SQLCopy\",\n//\t\t\t\t\tsqlFormatado.toString());\n\t\t\tCustomMessageDialog dialog = new CustomMessageDialog(window.getShell(), sqlFormatado.toString());\n\t\t\tdialog.open();\n\t\t}\n\t\t\n\t\treturn null;\n\t}", "private void performDirectEdit() {\n\t}", "public override void Do()\r\n { \r\n if (TextEditor.UiScope == null)\r\n { \r\n // We dont want to process the input item if the editor has already been detached from its UiScope. \r\n return;\r\n } \r\n\r\n DoTextInput(TextEditor, _text, _isInsertKeyToggled, /*acceptControlCharacters:*/false);\r\n }", "Command handleExecute(CommandExecute commandExecute);", "public abstract void doCommand(String command);", "protected CharSequence convertSelectionToString(Object selectedItem) {\n/* 487 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "public void actionPerformed(ActionEvent ae)\n {\n int selected = owner.getSelectedRecordIndex();\n\n String[] row = owner.getDataTableModel().getDataRecord(selected).getData();\n\n StringBuffer copy = new StringBuffer();\n\n for(int i = 0; i < row.length; i++)\n {\n byte[] array = new byte[owner.getConfiguration().getMetaSchema()[i].getLength()];\n\n for(int j = 0; j < array.length; j++)\n {\n array[j] = ' ';\n }\n\n System.arraycopy(row[i].getBytes(), 0, array, 0, row[i].length());\n\n copy.append(new String(array));\n }\n\n Clipboard cb = Toolkit.getDefaultToolkit().getSystemClipboard();\n StringSelection content = new StringSelection(copy.toString());\n cb.setContents(content, null);\n }", "CommandResult execute(String commandText) throws CommandException, ParseException, UnmappedPanelException;", "public interface Command {\n\n\n}", "public byte getCmd() {\n return this.btCmd;\n }", "@Override\n public void initDefaultCommand() {\n setDefaultCommand(new operateClimber());\n }", "public void actiuneComboBox(ActionEvent event) throws IOException {\n\n alegereBD=new String(comboBox.getValue());\n System.out.println(alegereBD);\n functionare();\n }", "public String getCommand() {\r\n return command;\r\n }", "String getSelectedAutoCompleteString();", "@Override\n\tpublic void chocoContraPared() {}", "Object getSelection();", "@Override\n\t\t\tpublic void actionPerformed(ActionEvent cb_e) {\n\t\t\t\tinx4 = cb[4].getSelectedIndex();\n\t\t\t}", "@Override\n public void actionPerformed(ActionEvent e) {\n MenuItemCommand command = menuCommandHandler.getCommand(e.getActionCommand());\n if (command != null) {\n command.execute();\n return;\n }\n command = menuCommandHandler.getCommand(MenuItem.findMenuItem(e.getActionCommand()));\n if (command != null) command.execute();\n }", "@Override\r\n\tpublic String getAction() {\n\t\tString action = null;\r\n\t\tif(caction.getSelectedIndex() == -1) {\r\n\t\t\treturn null;\r\n\t}\r\n\tif(caction.getSelectedIndex() >= 0) {\r\n\t\t\taction = caction.getSelectedItem().toString();\r\n\t}\r\n\t\treturn action;\r\n\t\r\n\t}", "public interface IPaintObjCmd {\n\n /**\n * Execute the command.\n * @param context The receiver paint object on which the command is executed.\n */\n public void execute(ACellObject context);\n}", "public interface CMLEditor {\n\n\tvoid executeCommand(CMLElement cmlIn);\n\n}", "@Override\n\tpublic void actionPerformed(ActionEvent e) {\n\t\t a.cut();\n\t if(e.getSource()==paste)\n\t\t a.paste();\n\t if(e.getSource()==copy)\n\t\t a.copy();\n\t if(e.getSource()==selectAll)\n\t\t a.selectAll();\n\t\n\t\t\n\t}", "@Override\n public void actionPerformed(AnActionEvent e) {\n CommandRun cmr = new CommandRun();\n Project currentProject = e.getProject();\n// strProjectPath = currentProject.getBasePath();\n// String[] arrCheckOuts = cmr.ListCheckOuts();\n AddinUI aui = new AddinUI();\n aui.createUI();\n }", "public void actionPerformed(ActionEvent event) {\n/* 269 */ String command = event.getActionCommand();\n/* 270 */ if (command.equals(\"GridStroke\")) {\n/* 271 */ attemptGridStrokeSelection();\n/* */ }\n/* 273 */ else if (command.equals(\"GridPaint\")) {\n/* 274 */ attemptGridPaintSelection();\n/* */ }\n/* 276 */ else if (command.equals(\"AutoRangeOnOff\")) {\n/* 277 */ toggleAutoRange();\n/* */ }\n/* 279 */ else if (command.equals(\"MinimumRange\")) {\n/* 280 */ validateMinimum();\n/* */ }\n/* 282 */ else if (command.equals(\"MaximumRange\")) {\n/* 283 */ validateMaximum();\n/* */ }\n/* 285 */ else if (command.equals(\"AutoTickOnOff\")) {\n/* 286 */ toggleAutoTick();\n/* */ }\n/* */ else {\n/* */ \n/* 290 */ super.actionPerformed(event);\n/* */ } \n/* */ }", "public void carregaCidadeSelecionada(String nome) throws SQLException{\n String sql = \"SELECT nome FROM tb_cidades where uf='\"+cbUfEditar.getSelectedItem()+\"'\"; \n PreparedStatement preparador = Conexao.conectar().prepareStatement(sql);\n ResultSet rs = preparador.executeQuery();\n //passando valores do banco para o objeto result; \n \n try{ \n while(rs.next()){ \n \n String list = rs.getString(\"nome\"); //resgatando estado \n \n //popula combo_estadof com as informações colhidas \n cbCidadeEditar.addItem(list);\n \n \n \n \n } \n } catch (Exception e){ \n JOptionPane.showMessageDialog(null, \"Impossivel carregar Estados!\", \n \"ERROR - \", JOptionPane.ERROR_MESSAGE); \n } \n cbCidadeEditar.setSelectedItem(nome);\n \n \n \n \n }", "public interface Command\n{\n public void execute();\n public void undo();\n}", "public void setCommand(Command c) {\r\n\t\tcommand = c;\r\n\t}", "public void execute(Command command, T component);", "public String getCommand() {\n return this.command;\n }", "@Override\n\t\t\tpublic void actionPerformed(ActionEvent cb_e) {\n\t\t\t\tinx5 = cb[5].getSelectedIndex();\n\t\t\t}", "public String Command() {\n\treturn command;\n }", "int promptOption(IMenu menu);", "public java.lang.String getCommand(int index) {\n return command_.get(index);\n }", "public String extraerCombo(){\n String consulta=null,combo;\n \n combo=comboBuscar.getSelectedItem().toString();\n \n if(combo.equals(\"Buscar por No.Control:\")){\n consulta=\"noControl\";\n } \n if(combo.equals(\"Buscar por Nombre:\")){\n consulta=\"nombreCompleto\"; \n }\n if(combo.equals(\"Buscar por Carrera:\")){\n consulta=\"nombreCarrera\";\n }\n return consulta;\n }" ]
[ "0.6427392", "0.63020825", "0.6128005", "0.61117214", "0.60989004", "0.60306096", "0.5961672", "0.5939769", "0.58878654", "0.58804977", "0.58746004", "0.58700484", "0.5792576", "0.57797396", "0.57580686", "0.57525456", "0.57126915", "0.57061815", "0.56875", "0.566306", "0.56568706", "0.56556034", "0.5633169", "0.5607396", "0.5594935", "0.558957", "0.553485", "0.5534396", "0.55329263", "0.55277675", "0.55161375", "0.5497931", "0.5497931", "0.5478382", "0.5472295", "0.54640174", "0.54639256", "0.5455889", "0.54543495", "0.54515994", "0.5450075", "0.5439224", "0.5435904", "0.54297704", "0.54284334", "0.54280263", "0.5415199", "0.541375", "0.54089916", "0.5404913", "0.54014194", "0.53927064", "0.5392463", "0.5389613", "0.5381986", "0.53771085", "0.5376267", "0.53719425", "0.5363763", "0.535598", "0.5326943", "0.53233445", "0.5321242", "0.5321075", "0.53106266", "0.5309101", "0.5304666", "0.5273469", "0.52715206", "0.5267881", "0.5263255", "0.52604586", "0.52583975", "0.5258267", "0.5252753", "0.52524936", "0.52463514", "0.52397436", "0.5237245", "0.5236113", "0.5234232", "0.52327603", "0.5227217", "0.52248603", "0.5219694", "0.5219033", "0.52152425", "0.52104867", "0.5210382", "0.5205603", "0.5201342", "0.5201282", "0.520102", "0.52000296", "0.51977515", "0.5193764", "0.51918095", "0.5187709", "0.5181485", "0.516856", "0.51639175" ]
0.0
-1
Created by Terry Date : 2016/3/4 0004.
public interface IAbsListView { void setOnLoadMoreListener(IonLoadMoreListener onLoadMoreListener); void notifyDataSetChanged(int positionStart, int itemSize) ; void setPagesize(int curPagesize); void setMyAdapter(ListAdapter madapter) ; void setRecyclerAdapter(RecyclerView.Adapter madapter) ; void hideloading() ; void checkloadMore(int size); // public void set onRefreshComplete void reset() ; void selectionFromTop(); void showNetWorkError(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void mo4359a() {\n }", "private stendhal() {\n\t}", "public final void mo51373a() {\n }", "public void mo38117a() {\n }", "public void mo21877s() {\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 }", "public void mo21878t() {\n }", "public final void mo91715d() {\n }", "public void mo3376r() {\n }", "public void mo12930a() {\n }", "public void mo21779D() {\n }", "public void mo55254a() {\n }", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "public void mo21785J() {\n }", "public void mo1531a() {\n }", "public Pitonyak_09_02() {\r\n }", "public void mo21793R() {\n }", "public void mo21795T() {\n }", "public static void listing5_14() {\n }", "public void mo97908d() {\n }", "private void m50366E() {\n }", "public void mo3749d() {\n }", "public void mo1403c() {\n }", "public void mo6081a() {\n }", "protected MetadataUGWD() {/* intentionally empty block */}", "private CreateDateUtils()\r\n\t{\r\n\t}", "public void mo9848a() {\n }", "public void mo21794S() {\n }", "public void mo21792Q() {\n }", "public void mo12628c() {\n }", "@Override\n public void func_104112_b() {\n \n }", "public void mo21783H() {\n }", "private static void cajas() {\n\t\t\n\t}", "public abstract void mo56925d();", "public void mo115190b() {\n }", "public void mo21825b() {\n }", "@SuppressWarnings(\"unused\")\n\tprivate void version() {\n\n\t}", "@Override\n public Date getCreated()\n {\n return null;\n }", "public void method_4270() {}", "public void mo21782G() {\n }", "@Override\n public void perish() {\n \n }", "public void mo56167c() {\n }", "public void mo44053a() {\n }", "public void mo21791P() {\n }", "private void kk12() {\n\n\t}", "public String getName() {\n/* 50 */ return \"M\";\n/* */ }", "private TMCourse() {\n\t}", "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "protected void mo6255a() {\n }", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "public void m23075a() {\n }", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "public void mo21787L() {\n }", "public void mo115188a() {\n }", "@Override\n\tprotected void getExras() {\n\n\t}", "public void create() {\n\t\t\n\t}", "public void mo21789N() {\n }", "public void gored() {\n\t\t\n\t}", "private Rekenhulp()\n\t{\n\t}", "@SuppressWarnings(\"unused\")\n private void generateInfo()\n {\n }", "public abstract String mo41079d();", "public void mo5382o() {\n }", "public static void listing5_16() {\n }", "public void mo2470d() {\n }", "public void mo23813b() {\n }", "@Override\n\tpublic void create() {\n\t\t\n\t}", "@Override\n\tpublic void create () {\n\n\t}", "public void mo21788M() {\n }", "@Override\n\tpublic void initDate() {\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}", "public void mo1405e() {\n }", "zzang mo29839S() throws RemoteException;", "public static void listing5_15() {\n }", "public abstract String mo13682d();", "public void mo3370l() {\n }", "@Override\n\tpublic int mettreAJour() {\n\t\treturn 0;\n\t}", "public void mo6944a() {\n }", "private zza.zza()\n\t\t{\n\t\t}", "Constructor() {\r\n\t\t \r\n\t }", "public void mo21880v() {\n }", "public void mo2471e() {\n }", "static void feladat4() {\n\t}", "public void mo21879u() {\n }", "static void feladat9() {\n\t}", "public void mo9233aH() {\n }", "void mo17013d();", "@Override\r\n\tprotected void func03() {\n\t\t\r\n\t}", "public void skystonePos4() {\n }", "public void mo9137b() {\n }", "public void mo21780E() {\n }", "void mo20141a();", "private void getStatus() {\n\t\t\n\t}", "void mo21073d();" ]
[ "0.6001666", "0.5998783", "0.5946969", "0.59276885", "0.5851073", "0.5801996", "0.5801996", "0.5801996", "0.5801996", "0.5801996", "0.5801996", "0.5801996", "0.57865244", "0.57738805", "0.5761994", "0.5760851", "0.5757238", "0.5753549", "0.575061", "0.5719993", "0.5706539", "0.57043433", "0.57012445", "0.5691787", "0.56865543", "0.5676908", "0.56661385", "0.5663031", "0.5657122", "0.565478", "0.56307745", "0.5629043", "0.56260437", "0.56230026", "0.5608972", "0.560438", "0.5588075", "0.5570772", "0.55687344", "0.55658156", "0.55642474", "0.55622005", "0.5560794", "0.5559491", "0.5551798", "0.5546098", "0.55443907", "0.5541763", "0.5535205", "0.5533034", "0.5526227", "0.55224836", "0.55217654", "0.55155975", "0.5514702", "0.5510155", "0.5507761", "0.55052096", "0.55045265", "0.54962355", "0.5493952", "0.5487413", "0.548089", "0.5462543", "0.5459986", "0.5454126", "0.54534274", "0.54525375", "0.5433651", "0.54327494", "0.5430566", "0.54276544", "0.5425157", "0.54213244", "0.5406558", "0.54053825", "0.5401419", "0.5401419", "0.5399334", "0.53981155", "0.5393176", "0.53922135", "0.53887546", "0.53875536", "0.5381791", "0.53807354", "0.53800744", "0.5369232", "0.5369221", "0.53691673", "0.53681284", "0.53673935", "0.5366553", "0.5363161", "0.5356558", "0.53537047", "0.53490806", "0.53485215", "0.53462154", "0.53449637", "0.5343987" ]
0.0
-1
public void set onRefreshComplete
void reset() ;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void onRefresh() {\n }", "@Override\n public void onRefresh() {\n }", "@Override\n public void onRefresh() {\n }", "void onRefresh() {\n\t}", "@Override\n\tpublic void onRefresh() {\n\n\t}", "@Override\r\n\t\t\tpublic void onRefresh() {\n\r\n\t\t\t}", "@Override\r\n\tpublic void onRefresh() {\n\r\n\t}", "@Override\n\tpublic void onMyRefresh() {\n\t\t\n\t}", "@Override\n\tpublic void onMyRefresh() {\n\t\t\n\t}", "@Override\n\t\tpublic void onRefresh() {\n\t\t\thttpRefreshMethod();\n\t\t}", "@Override\n public void onFinish()\n {\n if (mProgressView != null)\n {\n mProgressView.setVisibility(View.GONE);\n }\n if (mPullToRefreshBase != null)\n {\n mPullToRefreshBase.onRefreshComplete();\n }\n }", "@Override\n public void onRefresh() {\n refreshData();\n }", "public void onHeaderRefreshComplete() {\n onHeaderRefreshComplete(true);\n }", "@Override\r\n\t\t\tpublic void onRefresh() {\n\t\t\t\tgetLichHoc();\r\n\t\t\t}", "@Override\n public void onRefresh() {\n loadData();\n }", "@Override\n public void onRefresh() {\n synchronizeContent();\n }", "@Override\n\tpublic void onRefresh() {\n\t\trequestTime = 1;\n\t\trefreshFromServer(ListViewCompat.REFRESH);\n\t}", "public void onFooterRefreshComplete() {\n onFooterRefreshComplete(true);\n }", "@Override\r\n public void onPullDownToRefresh(PullToRefreshBase<GridView> refreshView) {\n mPullRefreshGridView.onRefreshComplete();\r\n }", "@Override\n public void refresh() {\n refresher.enqueueRefresh();\n }", "@Override\n\t\t\t\t\tpublic void onRefresh() {\n\t\t\t\t\t\tisRefreshing = true;\n\t\t\t\t\t\tsyncArticle();\n\t\t\t\t\t}", "@Override\n\t\tpublic void onRefresh() {\n\t\t\tloadInfo(1, 0);\n\t\t}", "@Override\r\n\t\t\tpublic void onRefresh() {\n\t\t\t\tm_nListStatus = LISTVIEW_STATUS_ONREFRESH;\r\n\t\t\t\t// 刷新广告栏\r\n\t\t\t\tif(adzoneView != null){\r\n\t\t\t\t\tadzoneView.refreshView();\r\n\t\t\t\t}\r\n\t\t\t\t// 获取悬赏任务数据\r\n\t\t\t\tstartGetData(HeadhunterPublic.REWARD_DIRECTIONTYPE_NEW, \"\", m_nRequestType);\r\n\t\t\t}", "@Override\r\n public void onRefresh() {\n\r\n refreshContent();\r\n\r\n }", "@Override\n public void onRefresh() {\n getData();\n }", "@Override\r\n\tpublic void onRefresh() {\n\t\tloadFourmData(true);\r\n\t}", "@Override\r\n\t\t\t\t\tpublic void onResponse(String arg0) {\n\t\t\t\t\t\tlistonResponse(arg0);\r\n\t\t\t\t\t\trefreshView.onRefreshComplete();\r\n\t\t\t\t\t}", "@Override\n\tpublic void onEndRefreshing() {\n\t\tif(mHintTextView != null)\n\t\t\tmHintTextView.setText(R.string.pull_refresh);\n\t}", "@Override\n public void onRefresh() {\n updateListings();\n new GetDataTask().execute();\n }", "@Override\n\tpublic void onRefresh() {\n\t\tSimpleDateFormat sdf=new SimpleDateFormat(\"yyyy-MM-dd HH:mm:ss\", Locale.getDefault());\t\t\n\t\tmAdapterView.setRefreshTime(sdf.format(new Date()));\n\t\tmAdapterView.stopRefresh();\n\t\tFindHttpPost();\n\t\tpage = 1;\n\t\t\n\t\tif(mLocationClient.isStarted()){\n\t\t\tmLocationClient.stop();\n\t\t}else{\n\t\t\tmLocationClient.start();\n\t\t\tmLocationClient.requestLocation();\n\t\t}\n\t}", "@Override\n public void onRefresh() {\n\n GetFirstData();\n }", "public interface OnRefreshListener {\n void onRefresh();\n\n void onLoadMore();\n }", "@Override\n\tpublic void onRefresh() {\n\t\tpage = 1;\n\t\tSystem.out.println(\"onRefresh1\");\n\t\tmyList.clear();\n\t\tSystem.out.println(\"onRefresh2\");\n\t\tgetData();\n\t}", "@Override\n public void onRefresh() {\n requestSoal();\n swipeRefreshLayout.setRefreshing(false);\n }", "@Override\n\t\t\tpublic void onCallback(Exception e) {\n\t\t\t\tfragment.refreshComplete();\n\t\t\t}", "@Override\n\t\t\tpublic void onCallback(Exception e) {\n\t\t\t\tfragment.refreshComplete();\n\t\t\t}", "@Override\n\t\t\t\tpublic void onPullUpToRefresh(PullToRefreshBase refreshView) {\n\n\t\t\t\t\tif (nextPage != null && !nextPage.equals(\"\") && !nextPage.equals(\"0\")) {\n\t\t\t\t\t\t\n\t\t\t\t\t\tdraw();\n\t\t\t\t\t\t\n\t\t\t\t\t} else {\n\t\t\t\t\t\t\n\t\t\t\t\t\tscrollView.onRefreshComplete();\n\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t}", "@Override\n public void onPullUpToRefresh(PullToRefreshBase<ListView> refreshView) {\n mListener.onHisRefresh();\n }", "@Override\n public void onRefresh() {\n load_remote_data();\n }", "@Override\n public void onRefresh() {\n reloadList();\n swipeContainer.setRefreshing(true);\n\n }", "@Override\n\t\t\tpublic void onRefresh() {\n\t\t\t\t new GetDataTask().execute();\n\t\t\t}", "@Override\r\n\tpublic void onRefresh() {\n\t\tif (!isLoading) {\r\n\t\t\tbottomActivityId = 0;\r\n\t\t\tgetNotificationFromNetWork(\"1\", \"0\");\r\n\t\t}\r\n\t}", "@Override\n public void onPullDownToRefresh(PullToRefreshBase<ListView> refreshView) {\n mListener.onHisRefresh();\n\n }", "@Override\n public void onRefresh() {\n max_id = 0;\n populateCurrentUser();\n populateTimeline();\n }", "@Override public void onRefresh() {\n loadAccount();\n }", "@Override\n\t\t\tpublic void onRefresh(PullToRefreshBase<ListView> refreshView) {\n\t\t\t\tnew ExpertListTask(true,true).execute();\n\t\t\t}", "@Override\n\tprotected void onFailure(String result, int where) {\n\t\tlistView.onRefreshComplete();\n\t}", "@Override\n public void onRefresh() {\n new LoadScholsTask(this).execute();\n }", "@Override\n protected void onPostExecute(ParseQueryAdapter<Listing> result) {\n pullToRefreshListView.onRefreshComplete();\n\n super.onPostExecute(result);\n }", "void onItemsLoadComplete() {\n adapter.notifyDataSetChanged();\n\n // Stop refresh animation\n srl.setRefreshing(false);\n }", "@Override\r\n\t\t\t\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\t\t\t\tToast.makeText(AcidActivity.this, \"刷新成功!\",\r\n\t\t\t\t\t\t\t\t\t\t\tToast.LENGTH_SHORT).show();\r\n\t\t\t\t\t\t\t\t\tmPullRefreshGridView.onRefreshComplete();\r\n\t\t\t\t\t\t\t\t}", "@Override\r\n\t\t\t\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\t\t\t\tToast.makeText(AcidActivity.this, \"刷新成功!\",\r\n\t\t\t\t\t\t\t\t\t\t\tToast.LENGTH_SHORT).show();\r\n\t\t\t\t\t\t\t\t\tmPullRefreshGridView.onRefreshComplete();\r\n\t\t\t\t\t\t\t\t}", "@Override\n public void onRefresh() {\n getUserOnlineStatus();\n }", "@Override\n\tpublic void onRefreshDate() {\n\t\trefreshDate();\n\t}", "@Override\n\tpublic void onRefresh(PullToRefreshBase<ListView> refreshView) {\n\t\tloadData();\n\t}", "public static interface OnRefreshListener {\n void onRefresh(Object bizContext);\n void onRefreshAnimationEnd();\n }", "@Override\r\n\t\t\tpublic void invoke() {\n\t\t\t\trefresh();\r\n\t\t\t}", "public void onRefresh() {\n\t\t\t\tnew AsyncTask<Void, Void, Void>() {\r\n\t\t\t\t\tprotected Void doInBackground(Void... params) {\r\n\t\t\t\t\t\ttry {\r\n\t\t\t\t\t\t\tThread.sleep(1000);\r\n\t\t\t\t\t\t\tMusicDBAdapter.RefreshData(MusicListActivity.this);\r\n\t\t\t\t\t\t} catch (Exception e) {\r\n\t\t\t\t\t\t\te.printStackTrace();\r\n\r\n\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\treturn null;\r\n\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\tprotected void onPostExecute(Void result) {\r\n\t\t\t\t\t\tadapter = new MusicBaseAdapter(MusicListActivity.this, MusicDBAdapter.musicList);\r\n\t\t\t\t\t\tlist.setAdapter(adapter);\r\n\t\t\t\t\t\tTVcount.setText(String.valueOf(MusicDBAdapter.musicList.size()));\r\n\t\t\t\t\t\tlist.onRefreshComplete();\r\n\r\n\t\t\t\t\t}\r\n\t\t\t\t}.execute(null, null, null);\r\n\t\t\t}", "public void refresh() {\n }", "@Override\n\tpublic void onPullUpToRefresh(PullToRefreshBase<ListView> refreshView) {\n\t\tif (isend) {\n\t\t\thandler.sendEmptyMessage(1);\n\t\t\tToast.makeText(this, \"没有更多了\", Toast.LENGTH_SHORT).show();\n\t\t} else {\n\t\t\tgetData(pageIndex, pageSize);\n\t\t}\n\t}", "@Override\r\n public void onRefresh(final PullToRefreshLayout pullToRefreshLayout) {\n pullToRefreshLayout.postDelayed(new Runnable() {\r\n\r\n @Override\r\n public void run() {\r\n pullToRefreshLayout.refreshFinish(PullToRefreshLayout.SUCCEED);\r\n Toast.makeText(RefreshScrolloListViewActivity.this,\"上拉刷新成功\",Toast.LENGTH_SHORT).show();\r\n }\r\n }, 2000);\r\n }", "@Override\n public void refresh() {\n }", "@Override\n\tpublic void onRefresh(PullToRefreshBase<ListView> refreshView) {\n\t\tif (!isRefreshing) {\n isRefreshing = true;\n if (mListView.isHeaderShown()) {\n \tnew GetDataTask().execute();\n } else if (mListView.isFooterShown()) {\n \tnew GetMoreTask().execute();\n }\n } else {\n mListView.onRefreshComplete();\n }\n\t}", "@Override\n public void onRefresh(PullToRefreshBase<ListView> refreshView) {\n initListView();\n Toast.makeText(getContext(),\"刷新成功\",Toast.LENGTH_SHORT).show();\n\n }", "@Override\n public void onRefresh() {\n listView.setOnItemClickListener(null);\n getActivity().setProgressBarIndeterminateVisibility(true);\n Log.i(TAG,\"Refresh Call\");\n //fetchMovies();\n new Handler().postDelayed(new Runnable() {\n @Override\n public void run() {\n Log.i(TAG,\"Fetch Movie Call\");\n swipeRefreshLayout.setRefreshing(false);\n fetchMovies();\n int index = listView.getFirstVisiblePosition();\n View v = listView.getChildAt(0);\n int top = (v == null) ? 0 : v.getTop();\n listView.setSelectionFromTop(index, top);\n }\n }, 2000);\n }", "@Override\n public void onRefresh(PullRefreshLayout pullRefreshLayout) {\n pullRefreshLayout.postDelayed(new Runnable() {\n\n @Override\n public void run() {\n // TODO Auto-generated method stub\n refreshLayout.finishRefresh();\n }\n }, 2000);\n }", "public void onLoadComplete() {\n\t\t\r\n\t}", "@Override\n public void onRefresh() {\n mSwipeRefreshLayout.setRefreshing(false);\n\n }", "@Override\n public void onRefresh() {\n viewModel.fetchAllPostsASync();\n }", "public void onFooterRefreshComplete(boolean hasMore) {\n this.isHasMore = hasMore;\n setLoadingEnabled(hasMore);\n mPullState = 0x00;\n mHeaderState = 0x00;\n resetFooterView();\n }", "@Override\n\t\t\tpublic void onRefreshClick() {\n\t\t\t\thttpRefreshMethod();\n\t\t\t}", "@Override\n public void onRefresh() {\n mSwipeRefreshLayout.setRefreshing(false);\n }", "@Override\n\tpublic void onDownPullRefresh() {\n\t\t\n\t}", "@Override\n public void onShowRefresh(boolean notUsed) {\n // nothing required for this assignment.\n }", "@Override\n public void onRefresh() {\n _page_number = 1;\n callGetNotifListWS();\n\n }", "@Override\n\tpublic void changeToReleaseRefresh() {\n\n\t}", "@Override\n public void onRefresh() {\n Log.d(\"DEBUG\", \"swipe refresh called\");\n populateTimeline(1L,Long.MAX_VALUE - 1);\n }", "public abstract void pullToRefresh();", "@Override\r\n\t\t\tpublic void onComplete() {\n\t\t\t\t\r\n\t\t\t}", "@Override\r\n\t\t\tpublic void onComplete() {\n\t\t\t\t\r\n\t\t\t}", "@Override\r\n\t\t\t\t\tpublic boolean isRefreshNeeded() {\n\t\t\t\t\t\treturn false;\r\n\t\t\t\t\t}", "@Override\r\n\t\t\t\t\tpublic boolean isRefreshNeeded() {\n\t\t\t\t\t\treturn false;\r\n\t\t\t\t\t}", "@Override\n public void onComplete() {\n }", "@Override\n public void onComplete() {\n }", "@Override\n public void onComplete() {\n }", "@Override\n public void onComplete() {\n }", "@Override\n public void onComplete() {\n }", "@Override\n public void onComplete() {\n }", "@Override\n public void onComplete() {\n }", "@Override\n public void onComplete() {\n }", "@Override\n public void onComplete() {\n }", "@Override\n public void onComplete() {\n }", "@Override\n public void onComplete() {\n }", "@Override\n public void onComplete() {\n }", "@Override\n public void onPullUpToRefresh(PullToRefreshBase<ListView> refreshView) {\n new DataTask().execute();\n }", "public void refresh(Collection<Refreshable> alreadyRefreshed) {\n\t\t\r\n\t}", "@Override\r\n public void onPullUpToRefresh(PullToRefreshBase<GridView> refreshView) {\n if(!isLast){\r\n new SearchArticleTask().execute();\r\n }\r\n mPullRefreshGridView.onRefreshComplete();\r\n }", "@Override\n\t\t\t\t\tpublic void onComplete() {\n\t\t\t\t\t}", "@Override\n public void onRefresh() {\n if(!swipeRefreshLayout.isRefreshing()){\n swipeRefreshLayout.setRefreshing(true);\n }\n progressBar.setVisibility(View.GONE);\n listView.setVisibility(View.GONE);\n loadNotifications();\n }", "@Override\n\tpublic void refresh() {\n\t\thandler.postDelayed(new Runnable() {\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic void run() {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\trefreshListView.stopRefresh();\n\t\t\t}\n\t\t}, 2000);\n\t\t\n\t}", "public void onRefresh() {\n\t\t\t\tnew AsyncTask<Void, Void, Void>() {\r\n\r\n\t\t\t\t\t@Override\r\n\t\t\t\t\tprotected Void doInBackground(Void... params) {\r\n\t\t\t\t\t\tlist.clear();\r\n\t\t\t\t\t\tnew Getliuyan().start();\r\n\t\t\t\t\t\treturn null;\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\tprotected void onPostExecute(Void result) {\r\n\t\t\t\t\t\thandler.sendEmptyMessage(2);\r\n\t\t\t\t\t};\r\n\r\n\t\t\t\t}.execute();\r\n\t\t\t}" ]
[ "0.7974567", "0.78326887", "0.7797728", "0.7727301", "0.7691431", "0.76776296", "0.7627865", "0.7544588", "0.7544588", "0.7484636", "0.7456588", "0.7364877", "0.7323521", "0.725514", "0.72260576", "0.7216792", "0.72160625", "0.7164692", "0.71480775", "0.70797414", "0.7070774", "0.7047363", "0.70113873", "0.7010984", "0.70032394", "0.70032233", "0.69863784", "0.69585997", "0.69517833", "0.6951015", "0.6919278", "0.69138867", "0.69134134", "0.68809366", "0.6874891", "0.6874891", "0.68695694", "0.6866258", "0.68632364", "0.6854284", "0.68320584", "0.682005", "0.6804286", "0.6797501", "0.6766181", "0.67476183", "0.67354417", "0.672972", "0.67268205", "0.6725935", "0.6716507", "0.6716507", "0.67124975", "0.6697335", "0.6675206", "0.66520447", "0.6635994", "0.6634948", "0.66257507", "0.6617161", "0.66102946", "0.66095936", "0.6605315", "0.65906", "0.6580304", "0.655735", "0.65555733", "0.655481", "0.6551036", "0.6545873", "0.65438527", "0.65433973", "0.65343755", "0.65307933", "0.6526055", "0.6525562", "0.6514522", "0.6513797", "0.6512813", "0.6512813", "0.6503023", "0.6503023", "0.64871067", "0.64871067", "0.64871067", "0.64871067", "0.64871067", "0.64871067", "0.64871067", "0.64871067", "0.64871067", "0.64871067", "0.64871067", "0.64871067", "0.64848244", "0.64785147", "0.6478135", "0.6471437", "0.6470016", "0.64696276", "0.6469049" ]
0.0
-1
/ renamed from: com.introvd.template.explorer.music.item.b$a
public interface C7300a { void axq(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Item b(World paramaqu, BlockPosition paramdt)\r\n/* 51: */ {\r\n/* 52:67 */ return ItemList.ap;\r\n/* 53: */ }", "protected m a(String name) {\n/* 42 */ return this.a.get(name);\n/* */ }", "@Override // see item.java\n\tpublic void useItem() {\n\n\t}", "Collection<B> getBackgroundMusic ();", "public interface IItemHelper {\n /* renamed from: a */\n void mo66998a(int i);\n\n /* renamed from: a */\n void mo66999a(int i, int i2);\n}", "@Override // com.zhihu.android.sugaradapter.SugarHolder\n /* renamed from: a */\n public void mo56529a(Object obj) {\n }", "public Item a(Block parambec, Random paramRandom, int paramInt)\r\n/* 46: */ {\r\n/* 47:62 */ return ItemList.ap;\r\n/* 48: */ }", "public String d_()\r\n/* 445: */ {\r\n/* 446:459 */ return \"container.inventory\";\r\n/* 447: */ }", "public Music getMusic();", "public interface C2368d {\n\n /* renamed from: com.google.android.exoplayer2.upstream.d$a */\n public interface C2367a {\n /* renamed from: a */\n C2368d mo1698a();\n }\n\n /* renamed from: a */\n int mo1684a(byte[] bArr, int i, int i2);\n\n /* renamed from: a */\n long mo1685a(C2369e c2369e);\n\n /* renamed from: a */\n Uri mo1686a();\n\n /* renamed from: b */\n void mo1687b();\n}", "private void initialMusic(){\n\n }", "@Override\r\n\tpublic void subItemPlayed(MediaPlayer mediaPlayer, int subItemIndex)\r\n\t{\n\r\n\t}", "public final SugarAdapter invoke() {\n return SugarAdapter.C25135a.m122500a(this.f53774a.f53728f).mo108934a(ChapterTitleNewViewHolder.class).mo108935a(SectionLeftImgViewHolder.class, new SugarHolder.AbstractC25133a<SectionLeftImgViewHolder>(this) {\n /* class com.zhihu.android.app.subscribe.p1298ui.fragment.CatalogFragment.C15212v.C152131 */\n\n /* renamed from: a */\n final /* synthetic */ C15212v f53775a;\n\n {\n this.f53775a = r1;\n }\n\n /* renamed from: a */\n public final void onCreated(final SectionLeftImgViewHolder sectionLeftImgViewHolder) {\n C32569u.m150519b(sectionLeftImgViewHolder, C6969H.m41409d(\"G7F8AD00D973FA72DE31C\"));\n sectionLeftImgViewHolder.itemView.setOnClickListener(new View.OnClickListener(this) {\n /* class com.zhihu.android.app.subscribe.p1298ui.fragment.CatalogFragment.C15212v.C152131.View$OnClickListenerC152141 */\n\n /* renamed from: a */\n final /* synthetic */ C152131 f53776a;\n\n {\n this.f53776a = r1;\n }\n\n public final void onClick(View view) {\n CatalogFragment catalogFragment = this.f53776a.f53775a.f53774a;\n SectionLeftImgViewHolder sectionLeftImgViewHolder = sectionLeftImgViewHolder;\n C32569u.m150513a((Object) sectionLeftImgViewHolder, C6969H.m41409d(\"G7F8AD00D973FA72DE31C\"));\n Section section = (Section) sectionLeftImgViewHolder.mo108896M();\n C32569u.m150513a((Object) section, C6969H.m41409d(\"G7F8AD00D973FA72DE31CDE4CF3F1C2\"));\n catalogFragment.m75322a((CatalogFragment) section);\n }\n });\n }\n }).mo108935a(SectionRightImgViewHolder.class, new SugarHolder.AbstractC25133a<SectionRightImgViewHolder>(this) {\n /* class com.zhihu.android.app.subscribe.p1298ui.fragment.CatalogFragment.C15212v.C152152 */\n\n /* renamed from: a */\n final /* synthetic */ C15212v f53778a;\n\n {\n this.f53778a = r1;\n }\n\n /* renamed from: a */\n public final void onCreated(final SectionRightImgViewHolder sectionRightImgViewHolder) {\n C32569u.m150519b(sectionRightImgViewHolder, C6969H.m41409d(\"G7F8AD00D973FA72DE31C\"));\n sectionRightImgViewHolder.itemView.setOnClickListener(new View.OnClickListener(this) {\n /* class com.zhihu.android.app.subscribe.p1298ui.fragment.CatalogFragment.C15212v.C152152.View$OnClickListenerC152161 */\n\n /* renamed from: a */\n final /* synthetic */ C152152 f53779a;\n\n {\n this.f53779a = r1;\n }\n\n public final void onClick(View view) {\n CatalogFragment catalogFragment = this.f53779a.f53778a.f53774a;\n SectionRightImgViewHolder sectionRightImgViewHolder = sectionRightImgViewHolder;\n C32569u.m150513a((Object) sectionRightImgViewHolder, C6969H.m41409d(\"G7F8AD00D973FA72DE31C\"));\n Section section = (Section) sectionRightImgViewHolder.mo108896M();\n C32569u.m150513a((Object) section, C6969H.m41409d(\"G7F8AD00D973FA72DE31CDE4CF3F1C2\"));\n catalogFragment.m75322a((CatalogFragment) section);\n }\n });\n }\n }).mo108935a(SectionNoImgViewHolder.class, new SugarHolder.AbstractC25133a<SectionNoImgViewHolder>(this) {\n /* class com.zhihu.android.app.subscribe.p1298ui.fragment.CatalogFragment.C15212v.C152173 */\n\n /* renamed from: a */\n final /* synthetic */ C15212v f53781a;\n\n {\n this.f53781a = r1;\n }\n\n /* renamed from: a */\n public final void onCreated(final SectionNoImgViewHolder sectionNoImgViewHolder) {\n C32569u.m150519b(sectionNoImgViewHolder, C6969H.m41409d(\"G7F8AD00D973FA72DE31C\"));\n sectionNoImgViewHolder.itemView.setOnClickListener(new View.OnClickListener(this) {\n /* class com.zhihu.android.app.subscribe.p1298ui.fragment.CatalogFragment.C15212v.C152173.View$OnClickListenerC152181 */\n\n /* renamed from: a */\n final /* synthetic */ C152173 f53782a;\n\n {\n this.f53782a = r1;\n }\n\n public final void onClick(View view) {\n CatalogFragment catalogFragment = this.f53782a.f53781a.f53774a;\n SectionNoImgViewHolder sectionNoImgViewHolder = sectionNoImgViewHolder;\n C32569u.m150513a((Object) sectionNoImgViewHolder, C6969H.m41409d(\"G7F8AD00D973FA72DE31C\"));\n Section section = (Section) sectionNoImgViewHolder.mo108896M();\n C32569u.m150513a((Object) section, C6969H.m41409d(\"G7F8AD00D973FA72DE31CDE4CF3F1C2\"));\n catalogFragment.m75322a((CatalogFragment) section);\n }\n });\n }\n }).mo108934a(SectionUpdateViewHolder.class).mo108937a();\n }", "private String addMusic() {\n\t\t// One Parameter: MusicName\n\t\tStringBuilder tag = new StringBuilder();\n\t\ttag.append(\"|music:\" + parameters[0]);\n\t\treturn tag.toString();\n\n\t}", "private void createUpdateSound(Item item) throws Exception {\r\n\t //cria o som\r\n new Sound().saveSound(item.getNome());\r\n}", "public Item b(World paramaqu, BlockPosition paramdt)\r\n/* 189: */ {\r\n/* 190:220 */ return null;\r\n/* 191: */ }", "public void a(Item paramalq, CreativeTabs paramakf, List paramList)\r\n/* 22: */ {\r\n/* 23:27 */ paramList.add(new ItemStack(paramalq, 1, 0));\r\n/* 24:28 */ paramList.add(new ItemStack(paramalq, 1, 1));\r\n/* 25: */ }", "public interface C0456a {\n /* renamed from: a */\n void mo2090a(C0455b bVar);\n\n /* renamed from: a */\n boolean mo2091a(C0455b bVar, Menu menu);\n\n /* renamed from: a */\n boolean mo2092a(C0455b bVar, MenuItem menuItem);\n\n /* renamed from: b */\n boolean mo2093b(C0455b bVar, Menu menu);\n }", "private static MenuItem createPlaySongMenuItem(MusicPlayerManager musicPlayerManager, Item selectedItem) {\n MenuItem playSong = new MenuItem(PLAY_SONG);\n\n playSong.setStyle(\"-fx-font-weight: bold\");\n\n playSong.setOnAction((event) -> {\n if (selectedItem != null && selectedItem instanceof Song) {\n Song song = (Song) selectedItem;\n musicPlayerManager.playSongRightNow(song);\n }\n });\n\n return playSong;\n }", "private interface C0257a {\n /* renamed from: a */\n float mo196a(ViewGroup viewGroup, View view);\n\n /* renamed from: b */\n float mo195b(ViewGroup viewGroup, View view);\n }", "interface C0932a {\n /* renamed from: a */\n void mo7438a(int i, int i2);\n\n /* renamed from: b */\n void mo7439b(C0933b bVar);\n\n /* renamed from: c */\n void mo7440c(int i, int i2, Object obj);\n\n /* renamed from: d */\n void mo7441d(C0933b bVar);\n\n /* renamed from: e */\n RecyclerView.ViewHolder mo7442e(int i);\n\n /* renamed from: f */\n void mo7443f(int i, int i2);\n\n /* renamed from: g */\n void mo7444g(int i, int i2);\n\n /* renamed from: h */\n void mo7445h(int i, int i2);\n }", "protected abstract void makeItem();", "void onChamaItemClicked(int position);", "public static void playSound(Activity a, int index) {\n MediaPlayer mp = new MediaPlayer();\n mp.setOnCompletionListener(new MediaPlayer.OnCompletionListener() {\n @Override\n public void onCompletion(MediaPlayer mp) {\n mp.reset(); // fix bug app show warning \"W/MediaPlayer: mediaplayer went away with unhandled events\"\n mp.release();\n mp = null;\n }\n });\n try {\n String []listMusic = a.getAssets().list(AppConstant.ASSETSMUSIC);\n AssetFileDescriptor afd = a.getAssets().openFd(\"music\"\n + System.getProperty(\"file.separator\") + listMusic[index]);\n mp.setDataSource(afd.getFileDescriptor(), afd.getStartOffset(), afd.getLength());\n afd.close();\n mp.prepare();\n } catch (IOException e) {\n e.printStackTrace();\n }\n mp.start();\n }", "public void mo1675a(C2523a song, int pos) {\n C2606l.m9828a().m9829a(C2606l.f8615a, \"play.music\", new Gson().toJson(song));\n }", "@Override\r\n\tpublic void subItemFinished(MediaPlayer mediaPlayer, int subItemIndex)\r\n\t{\n\r\n\t}", "public MP3 getMusic() {\n return music;\n }", "public void d() {\n this.f23522d.a(this.f23521c);\n this.f23521c.a(this);\n this.i = new a();\n this.i.a(new ae(this.f23519a));\n this.f23519a.setAdapter(this.i);\n this.f23519a.setOnItemClickListener(this);\n this.f23521c.e();\n this.h.a(hashCode(), this.f23520b);\n }", "@Override\n\t\t\t\tpublic void a() {\n\n\t\t\t\t}", "public interface C31378a {\n /* renamed from: a */\n void mo80555a(MediaChooseResult mediaChooseResult);\n}", "public interface C0615ja extends b<HomeFragment> {\n\n /* renamed from: c.c.a.h.b.ja$a */\n /* compiled from: FragmentModule_HomeFragment$app_bazaarRelease */\n public static abstract class a extends b.a<HomeFragment> {\n }\n}", "void changeMenuItemName(String itemName, byte type, String msgPlus);", "private static MenuItem createPlaySongNextMenuItem(MusicPlayerManager musicPlayerManager, Item selectedItem) {\n MenuItem playSongNext = new MenuItem(PLAY_SONG_NEXT);\n\n playSongNext.setOnAction((event) -> {\n if (selectedItem != null && selectedItem instanceof Song) {\n Song song = (Song) selectedItem;\n musicPlayerManager.placeSongAtStartOfQueue(song);\n }\n });\n\n return playSongNext;\n }", "private static LootTable.a a(IMaterial var0) {\n/* 55 */ return LootTable.b()\n/* 56 */ .a(LootSelector.a()\n/* 57 */ .a(LootValueConstant.a(1))\n/* 58 */ .a(LootItem.a(var0)))\n/* */ \n/* 60 */ .a(LootSelector.a()\n/* 61 */ .a(LootValueConstant.a(1))\n/* 62 */ .a(LootSelectorLootTable.a(EntityTypes.SHEEP.i())));\n/* */ }", "@Override\n\tpublic void play(String position, int number) {\n\t\t\n\t}", "private static Object makeItem(final String item){\n return new Object(){\n public String toString() {\n return item;\n }\n };\n }", "public interface C39682m {\n\n /* renamed from: com.ss.android.ugc.aweme.shortvideo.edit.m$a */\n public interface C39683a {\n /* renamed from: a */\n int mo98966a(C29296g gVar);\n\n /* renamed from: b */\n int mo98967b(C29296g gVar);\n\n /* renamed from: c */\n float mo98968c(C29296g gVar);\n }\n\n /* renamed from: com.ss.android.ugc.aweme.shortvideo.edit.m$b */\n public interface C39684b {\n /* renamed from: a */\n void mo98969a();\n\n /* renamed from: a */\n void mo98970a(C29296g gVar);\n\n /* renamed from: a */\n void mo98971a(C29296g gVar, int i);\n }\n}", "public void a() {\n ((a) this.a).a();\n }", "@Override\n public void onMediaClicked(int position) {\n }", "@Override\n public void onItemClick(AdapterView<?> adapterView, View view, int i, long l) {\n HashMap<String, Object> m = (HashMap<String, Object>) adapter.getItem(i);\n String musicName = (String) m.get(\"filename\");\n try {\n serviceBinder.startPlay(workDir + musicName);\n } catch (Exception e) {\n Log.e(\"Error\", \"Exception = \" + e);\n }\n serviceBinder.setPlayingFlag();\n serviceBinder.setCurPlaying(musicName, i);\n tvCurPlay.setText(\"正在播放:\" + musicName);\n tvEndTime.setText(secToTime(serviceBinder.trackDuration() / 1000));\n sbProgress.setMax(serviceBinder.trackDuration());\n sbProgress.setProgress(0);\n curPlayingId = serviceBinder.getCurPlayingId();\n bPlay.setBackgroundResource(R.mipmap.stop);\n adapter.notifyDataSetChanged();\n }", "private static MenuItem createPlaySongNextMenuItem(MusicPlayerManager musicPlayerManager, TreeView<Item> tree) {\n MenuItem playSongNext = new MenuItem(PLAY_SONG_NEXT);\n\n playSongNext.setOnAction((event) -> {\n List<TreeItem<Item>> treeItems = tree.getSelectionModel().getSelectedItems();\n for (TreeItem<Item> treeItem : treeItems) {\n Item item = treeItem.getValue();\n if (item instanceof Song) {\n Song song = (Song) item;\n musicPlayerManager.placeSongAtStartOfQueue(song);\n }\n }\n });\n\n return playSongNext;\n }", "public String a()\r\n/* 25: */ {\r\n/* 26:171 */ return \"dig.\" + this.a;\r\n/* 27: */ }", "@Override\n\tpublic void musicSwapped(Music arg0, Music arg1) {\n\t\t\n\t}", "B itemCaptionGenerator(ItemCaptionGenerator<ITEM> itemCaptionGenerator);", "@Override\n public void onItemClick(AdapterView<?> arg0, View arg1, int position, long arg3) {\n // Create a new intent to open the {@link TracksActivity}\n Intent nowPlayingIntent = new Intent(TracksActivity.this, NowPlayingActivity.class);\n MusicsElement element = (MusicsElement) arg0.getItemAtPosition(position);\n nowPlayingIntent.putExtra(\"element\", element.getmSongName());\n nowPlayingIntent.putExtra(\"musicElement\", element);\n // Start the new activity\n startActivity(nowPlayingIntent);\n }", "@Override\n public void setTestItem(){\n expectedName = \"Common lightMagicBook\";\n expectedPower = 10;\n expectedMinRange = 1;\n expectedMaxRange = 2;\n lightMagicBook = new LightMagicBook(expectedName,expectedPower,expectedMinRange,expectedMaxRange);\n animaMagicBook1 = new AnimaMagicBook(\"\",30,1,2);\n darknessMagicBook1 = new DarknessMagicBook(\"\",30,1,2);\n }", "private static MenuItem createPlaySongNextMenuItem(MusicPlayerManager musicPlayerManager, List<Song> selectedSongs) {\n MenuItem playSongNext = new MenuItem(PLAY_SONG_NEXT);\n\n playSongNext.setOnAction((event) -> {\n for (Song song : selectedSongs) {\n if (song != null) {\n musicPlayerManager.placeSongAtStartOfQueue(song);\n }\n }\n });\n\n return playSongNext;\n }", "public interface a {\n\n /* compiled from: DiskCache */\n /* renamed from: com.bumptech.glide.load.engine.a.a$a reason: collision with other inner class name */\n public interface C0003a {\n public static final String ah = \"image_manager_disk_cache\";\n public static final int hP = 262144000;\n\n @Nullable\n a bz();\n }\n\n /* compiled from: DiskCache */\n public interface b {\n boolean f(@NonNull File file);\n }\n\n void a(c cVar, b bVar);\n\n void clear();\n\n @Nullable\n File e(c cVar);\n\n void f(c cVar);\n}", "public Item(String itemName, String itemDescription){\n this.itemName = itemName;\n this.itemDescription = itemDescription;\n}", "public String getAsNameAbbreviated(String itemName);", "public ItemStack a(dz paramdz, ItemStack paramamj)\r\n/* 7: */ {\r\n/* 8: 83 */ if (ItemPotion.f(paramamj.getDamage2())) {\r\n/* 9: 84 */ return new or(this, paramamj).a(paramdz, paramamj);\r\n/* 10: */ }\r\n/* 11:101 */ return this.b.a(paramdz, paramamj);\r\n/* 12: */ }", "@Override // see item.java\n\tpublic void pickUp() {\n\n\t}", "public interface C4211a {\n\n /* renamed from: com.iab.omid.library.oguryco.c.a$a */\n public interface C4212a {\n /* renamed from: a */\n void mo28760a(View view, C4211a aVar, JSONObject jSONObject);\n }\n\n /* renamed from: a */\n JSONObject mo28758a(View view);\n\n /* renamed from: a */\n void mo28759a(View view, JSONObject jSONObject, C4212a aVar, boolean z);\n}", "public static void toggleMusic( /*takes two arguments*/ ){\n\n }", "public Object get(String itemName);", "private void setItem(String material, String nameKey, Sound music, int x, int y) {\r\n\t\tMaterial loadedMaterial = Material.valueOf(plugin.getSettings().getString(material));\r\n\t\tthis.setAction(new VanillaMusicItem(\r\n\t\t\t\trenameItem(new ItemStack(loadedMaterial, 1), nameKey), \r\n\t\t\t\tmusic), x, y);\r\n\t}", "protected void cabOnItemPress(int position) {}", "private static MenuItem createRenameMenuItem(SongManager model, Item selectedItem) {\n MenuItem rename = new MenuItem(RENAME);\n\n rename.setOnAction((event) -> {\n if (selectedItem != null) {\n File fileToRename = selectedItem.getFile();\n Path newPath = PromptUI.fileRename(fileToRename);\n\n if (newPath != null) {\n try {\n model.renameFile(fileToRename, newPath);\n } catch (IOException ex) {\n PromptUI.customPromptError(\"Error\", null, \"Exception: \\n\" + ex.getMessage());\n ex.printStackTrace();\n }\n }\n }\n });\n\n return rename;\n }", "public abstract ItemStack a(dz paramdz, ItemStack paramamj);", "static /* synthetic */ void m888a(C1744eg egVar, final C1477a aVar) {\n Context a = C1576b.m502a();\n if (C1740ed.m881a(a)) {\n C1740ed.m880a(a, new Builder().setShowTitle(true).build(), Uri.parse(aVar.f311a.toString()), new C1741a() {\n /* renamed from: a */\n public final void mo16453a(Context context) {\n C1744eg.m891b(context, aVar);\n }\n });\n } else {\n m891b(a, aVar);\n }\n }", "interface C0312e {\n /* renamed from: a */\n void mo4671a(View view, int i, int i2, int i3, int i4);\n }", "abstract String getSound();", "public String getMusic(int index){\r\n\t\treturn myMusics.get(index);\r\n\t}", "public interface C34379a {\n /* renamed from: a */\n void mo46242a(bmc bmc);\n }", "private final class <init> extends com.ebay.nautilus.kernel.util.t>\n{\n\n final _cls1 this$1;\n\n public com.ebay.nautilus.kernel.util.t> get(String s, String s1, String s2, Attributes attributes)\n throws SAXException\n {\n if (\"http://www.ebay.com/marketplace/mobile/v1/services\".equals(s) && \"roiFactoryResponse\".equals(s1))\n {\n return new com.ebay.nautilus.kernel.util.SaxHandler.TextElement() {\n\n final RoiTrackEventResponse.RootElement.RoiTrackEventResponses this$2;\n\n public void text(String s3)\n throws SAXException\n {\n if (urls == null)\n {\n urls = new ArrayList();\n }\n urls.add(s3);\n }\n\n \n {\n this$2 = RoiTrackEventResponse.RootElement.RoiTrackEventResponses.this;\n super();\n }\n };\n } else\n {\n return super.t>(s, s1, s2, attributes);\n }\n }", "Items(){\n}", "public String e_(ItemStack paramamj)\r\n/* 14: */ {\r\n/* 15:19 */ if (paramamj.getDamage2() == 1) {\r\n/* 16:20 */ return \"item.charcoal\";\r\n/* 17: */ }\r\n/* 18:22 */ return \"item.coal\";\r\n/* 19: */ }", "@Override\n \t\t\tpublic void onClick(View v) {\n \t\t\t\t// TODO Auto-generated method stub\n \t\t\t\tthis.mPlayer = new MediaPlayer();\n \t\t\t\tthis.mPlayer\n \t\t\t\t\t\t.setOnCompletionListener(new OnCompletionListener() {\n \n \t\t\t\t\t\t\t@Override\n \t\t\t\t\t\t\tpublic void onCompletion(MediaPlayer mp) {\n \t\t\t\t\t\t\t\t// TODO Auto-generated method stub\n \t\t\t\t\t\t\t\tNoteEditView.this.mAudioPlay\n \t\t\t\t\t\t\t\t\t\t.setBackgroundResource(R.drawable.audiologo);\n \t\t\t\t\t\t\t\tmPlayer.stop();\n \t\t\t\t\t\t\t\tmPlayer.release();\n \t\t\t\t\t\t\t\tmPlayer = null;\n \t\t\t\t\t\t\t\tanim.stop();\n \t\t\t\t\t\t\t}\n \n \t\t\t\t\t\t});\n \t\t\t\ttry {\n \t\t\t\t\tmPlayer.setDataSource(NoteEditView.this.mNoteItemModel\n \t\t\t\t\t\t\t.getAudio());\n \t\t\t\t\tmPlayer.prepare();\n \t\t\t\t\tmPlayer.start();\n \t\t\t\t\tNoteEditView.this.mAudioPlay\n \t\t\t\t\t\t\t.setBackgroundResource(R.anim.audio_play);\n \t\t\t\t\tanim = (AnimationDrawable) NoteEditView.this.mAudioPlay\n \t\t\t\t\t\t\t.getBackground();\n \t\t\t\t\tanim.stop();\n \t\t\t\t\tanim.start();\n \t\t\t\t} catch (IOException e) {\n \t\t\t\t\te.printStackTrace();\n \t\t\t\t}\n \t\t\t}", "@Override // com.zhihu.android.p1480db.fragment.customview.DbEditorBaseCustomView\n /* renamed from: a */\n public void mo88619a(View view) {\n m93356b(view);\n m93350a();\n m93355b();\n }", "protected abstract LibraryItem getItemFromFields();", "@Override\n public void onItemClick(AdapterView<?> adapterView, View view, int i, long l) {\n Album album = manager.getAlbums().get(i);\n\n\n selectedAlbum = album;\n }", "@Override\r\n\tpublic void mediaSubItemAdded(MediaPlayer mediaPlayer, libvlc_media_t subItem)\r\n\t{\n\r\n\t}", "public void mo1677a(List<C2523a> musicList, int position) {\n C2606l.m9828a().m9829a(C2606l.f8615a, \"play.list\", new Gson().toJson(new PlayList(musicList, position)));\n }", "public interface BackupViewClickListener {\n /* renamed from: a */\n void mo15854a(int i, DynamicClickInfo iVar);\n}", "public interface a extends com.bankeen.d.b.b.a {\n void a();\n\n void b();\n }", "private void updateNames() {\n //Get all pack indexes.\t\t\n List<AItemPack<?>> packItems = PackParser.getAllItemsForPack(currentItem.definition.packID, true);\n int currentItemIndex = packItems.indexOf(currentItem);\n\n //Loop forwards in our pack to find the next item in that pack.\n nextSubItem = null;\n if (currentItemIndex < packItems.size()) {\n for (int i = currentItemIndex + 1; i < packItems.size() && nextSubItem == null; ++i) {\n if (packItems.get(i).definition.systemName.equals(currentItem.definition.systemName)) {\n nextSubItem = (AItemSubTyped<?>) packItems.get(i);\n break;\n }\n }\n }\n\n //Loop backwards in our pack to find the prev item in that pack.\n prevSubItem = null;\n if (currentItemIndex > 0) {\n for (int i = currentItemIndex - 1; i >= 0 && prevSubItem == null; --i) {\n if (packItems.get(i).definition.systemName.equals(currentItem.definition.systemName)) {\n prevSubItem = (AItemSubTyped<?>) packItems.get(i);\n break;\n }\n }\n }\n\n //All item bits are now set and updated. Update info labels and item icons.\n partName.text = currentItem.getItemName();\n\n //Parse crafting items and set icon items.\n //Check all possible recipes, since some might be for other mods or versions.\n String errorMessage = \"\";\n do {\n materials = PackMaterialComponent.parseFromJSON(currentItem, recipeIndex, false, true, false, false);\n if (materials == null) {\n if (++recipeIndex == currentItem.subDefinition.extraMaterialLists.size()) {\n recipeIndex = 0;\n }\n errorMessage += PackMaterialComponent.lastErrorMessage + \"\\n\";\n if (recipeIndex == 0) {\n InterfaceManager.coreInterface.logError(errorMessage);\n break;\n }\n }\n } while (materials == null);\n\n //Set model render properties.\n modelRender.modelLocation = currentItem.definition.getModelLocation(currentItem.subDefinition);\n modelRender.textureLocation = currentItem.definition.getTextureLocation(currentItem.subDefinition);\n }", "public void addItems(double a, int b, String c, String d) {\n\t\tprice = a;\r\n\t\tquantity = b;\r\n\t\tname = c;\r\n\t\tpet = d;\r\n\t}", "private static String itemDrop(int number){\r\n String itemDropped;\r\n switch(number){\r\n case 1:\r\n itemDropped = \"Short Sword\";\r\n break; \r\n case 2:\r\n itemDropped = \"Leather Helmet\";\r\n break;\r\n case 3:\r\n itemDropped = \"Leather Chest Plate\";\r\n break;\r\n case 4:\r\n itemDropped = \"Scroll of Fireball\";\r\n break;\r\n default:\r\n itemDropped = \"\";\r\n }\r\n return itemDropped;\r\n }", "@Override\r\n\tpublic void a() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void clicked(ItemMenuIcon icon, Player p) {\n\t\t\r\n\t}", "private static Item item(String fileName) {\n Item item = new Item();\n item.setTitle(fileName);\n item.setLink(\"/files/\" + fileName);\n return item;\n }", "@Override\n public String getItemName() {\n\treturn \"Goblin Sword\";\n }", "public void onBindViewHolder(@NonNull a aVar, int i) {\n String str;\n StringBuilder sb;\n i iVar = this.f3019d.get(i);\n int i2 = b.f3030a[iVar.b().ordinal()];\n if (i2 != 1) {\n if (i2 == 2) {\n aVar.f3021b.setText(R.string.hints_virus_apk_list_item_summary);\n sb = new StringBuilder();\n sb.append(\"apk_icon://\");\n str = iVar.a();\n }\n aVar.f3020a.setText(iVar.d());\n aVar.f3022c.setTag(iVar);\n aVar.f3022c.setChecked(iVar.e());\n aVar.f3022c.setOnCheckedChangeListener(new d(this, iVar));\n aVar.itemView.setOnClickListener(new e(this, aVar));\n }\n aVar.f3021b.setText(R.string.hints_virus_app_list_item_summary);\n sb = new StringBuilder();\n sb.append(\"pkg_icon://\");\n str = iVar.c();\n sb.append(str);\n r.a(sb.toString(), aVar.f3023d, r.f);\n aVar.f3020a.setText(iVar.d());\n aVar.f3022c.setTag(iVar);\n aVar.f3022c.setChecked(iVar.e());\n aVar.f3022c.setOnCheckedChangeListener(new d(this, iVar));\n aVar.itemView.setOnClickListener(new e(this, aVar));\n }", "public void setSelectedItem(Object anItem)\n/* */ {\n/* 49 */ this.c = ((Category)anItem);\n/* */ }", "public void setMusic(Music music);", "@Override\n public void itemClick(int pos) {\n }", "SongSublist addItem( SongEntry itemToAdd )\n {\n try {\n SongSublist newSub = (SongSublist)this.clone();\n newSub.subs.add(itemToAdd);\n newSub.setDuration(this.duration + itemToAdd.getDuration());\n return newSub;\n }\n catch (CloneNotSupportedException ex)\n {\n System.out.println(\"Clone not supported\");\n return null;\n }\n }", "public final void mo88395b() {\n if (this.f90938h == null) {\n this.f90938h = new C29242a(this.f90931a, this.f90937g).mo74873a((C39376h) new C39376h() {\n /* renamed from: a */\n public final void mo74759a(C29296g gVar) {\n }\n\n /* renamed from: a */\n public final void mo74760a(C29296g gVar, int i) {\n }\n\n /* renamed from: d */\n public final void mo74763d(C29296g gVar) {\n }\n\n /* renamed from: b */\n public final void mo74761b(C29296g gVar) {\n C34867a.this.f90934d.setVisibility(0);\n if (!C39805en.m127445a()) {\n C23487o.m77136a((Activity) C34867a.this.f90931a);\n }\n C6907h.m21519a((Context) C34867a.this.f90931a, \"filter_confirm\", \"mid_page\", \"0\", 0, C34867a.this.f90936f);\n }\n\n /* renamed from: c */\n public final void mo74762c(C29296g gVar) {\n String str;\n C34867a.this.f90933c = gVar;\n C34867a.this.f90932b.mo88467a(gVar.f77273h);\n if (C34867a.this.f90935e != null) {\n C34867a.this.f90935e.mo98958a(gVar);\n }\n EffectCategoryResponse b = C35563c.m114837d().mo74825b(C34867a.this.f90933c);\n if (b == null) {\n str = \"\";\n } else {\n str = b.name;\n }\n C6907h.m21524a(\"select_filter\", (Map) C38511bc.m123103a().mo96485a(\"creation_id\", C34867a.this.f90932b.mo88460a().creationId).mo96485a(\"shoot_way\", C34867a.this.f90932b.mo88460a().mShootWay).mo96483a(\"draft_id\", C34867a.this.f90932b.mo88460a().draftId).mo96485a(\"enter_method\", \"click\").mo96485a(\"filter_name\", C34867a.this.f90933c.f77268c).mo96483a(\"filter_id\", C34867a.this.f90933c.f77266a).mo96485a(\"tab_name\", str).mo96485a(\"content_source\", C34867a.this.f90932b.mo88460a().getAvetParameter().getContentSource()).mo96485a(\"content_type\", C34867a.this.f90932b.mo88460a().getAvetParameter().getContentType()).mo96485a(\"enter_from\", \"video_edit_page\").f100112a);\n }\n }).mo74871a((C29240bc) new C39369c(C35563c.f93224F.mo70097l().mo74950c().mo74723f())).mo74874a(this.f90932b.mo88460a().getAvetParameter()).mo74876a();\n if (this.f90933c != null) {\n this.f90938h.mo74751a(this.f90933c);\n }\n }\n this.f90938h.mo74749a();\n this.f90934d.setVisibility(8);\n }", "public void onLoadMenuTop10Selected(List<Track> topTenMediaItems);", "public interface ItemClickListener {\n// void onShareClick(T item);\n// void onDownloadClick(T item);\n void onChannelTitleClick(Item item);\n void onPlayClick(Item item);\n}", "@Override\n public void OnItemClick(int position) {\n }", "private static Item getItem(Element e) {\n\t\tNodeList children = e.getChildNodes();\n\n\t\tProduct p = getProduct((Element) children.item(0));\n\n\t\tElement quantityElement = (Element) children.item(1);\n\t\tText quantityText = (Text) quantityElement.getFirstChild();\n\t\tint quantity = Integer.parseInt(quantityText.getData());\n\n\t\treturn new Item(p, quantity);\n\t}", "public interface C15428f {\n\n /* renamed from: com.ss.android.ugc.asve.context.f$a */\n public static final class C15429a {\n /* renamed from: a */\n public static String m45146a(C15428f fVar) {\n return \"\";\n }\n\n /* renamed from: b */\n public static String m45147b(C15428f fVar) {\n return \"\";\n }\n }\n\n /* renamed from: a */\n boolean mo38970a();\n\n /* renamed from: b */\n String mo38971b();\n\n /* renamed from: c */\n String mo38972c();\n\n /* renamed from: d */\n int mo38973d();\n\n /* renamed from: e */\n int mo38974e();\n}", "public void loadMusic(File f) {\n music = new MP3(f);\n }", "protected abstract Item createTestItem3();", "public interface MusicOperations {\n\n\n /**\n * Adds a note to the piece at a given beat number with generic instrument and volume.\n *\n * <p>the String needed for the pitch is the letter of the note, followed by \"SHARP\" if\n * the note is a sharp. Everything must be in all caps.\n * (i.e a C would be given as \"C\", and a C# would be \"CSHARP\" </p>\n *\n * @param pitch pitch of the note to be added as a String\n * @param octave octave of the note to be added.\n * @param duration duration of the note to be added.\n * @param beatNum beat number to add the note at.\n * @throws IllegalArgumentException if note is invalid.\n */\n void addNote(int duration, int octave, int beatNum, String pitch)\n throws IllegalArgumentException;\n\n\n /**\n * Adds a given Repeat at given beat.\n * @param beatNum beatNumber to be placed at.\n * @param repeatType type of repeat to add.\n */\n void addRepeat(int beatNum, RepeatType repeatType);\n\n /**\n * Adds a note to model with given parameters.\n * @param duration duration of Note added.\n * @param octave octave of Note added.\n * @param beatNum beat number to place note at.\n * @param instrument instrument of the note.\n * @param volume the volume of the note added.\n * @param pitch the pitch of the note added as a String. (see prior method for details)\n * @throws IllegalArgumentException if it is an illegal note.\n */\n void addNote(int duration, int octave, int beatNum, int instrument, int volume, String pitch)\n throws IllegalArgumentException;\n\n /**\n * Removes a note from the song.\n * @param beatNum beat number to remove note from.\n * @param pitch pitch of the note.\n * @param octave octave of the note.\n * @return the note that was deleted.\n * @throws IllegalArgumentException if note cannot be found.\n */\n INote removeNote(int beatNum, String pitch, int octave) throws IllegalArgumentException;\n\n /**\n * Edits the given note according to editor.\n * @param editor contains directions to edit note.\n * @param beatNum the beat number the note is at.\n * @param pitch the pitch of the note.\n * @param octave the octave of the note.\n * @throws IllegalArgumentException if note cannot be found.\n */\n void editNote(String editor, int beatNum, String pitch, int octave)\n throws IllegalArgumentException;\n\n /**\n * Merges the given piece with the one in the model.\n * @param piece piece to merge.\n */\n void mergePiece(Piece piece);\n\n /**\n * Adds the given piece at the end of the current one.\n * @param piece piece to be added to current one.\n */\n void addPiece(Piece piece);\n\n\n /**\n * Gets the song in MIDI notation as a String.\n * @return the string.\n */\n String getMIDINotation();\n\n\n /**\n * NEW METHOD to aid view play notes at given beat without parsing.\n * Gets a copy of the Notes that start at given beat number.\n * @param beatNum number to get notes from.\n * @return the list of notes.\n */\n ArrayList<INote> getNotesAt(int beatNum);\n\n /**\n * Gets the minimum note value.\n * @return returns the min.\n */\n int minNoteValue();\n\n /**\n * gets the max note value.\n * @return the value.\n */\n int maxNoteValue();\n\n /**\n * Gets the last beat of the song.\n * @return the last beat number.\n */\n int maxBeatNum();\n\n /**\n * Gets the Tempo of the song.\n * @return the tempo of the song.\n */\n int getTempo();\n\n /**\n * Sets the tempo of the song.\n * @param tempo tempo to be set.\n */\n void setTempo(int tempo);\n\n Repeat getRepeatAt(int beat);\n\n boolean hasRepeatAt(int beat);\n\n List<BeginRepeat> getBeginRepeats();\n\n Map<Integer, Repeat> getRepeats();\n}", "private void selectItem(int position) {\n\t\t\tTinyDB tb = new TinyDB(this.getApplicationContext());\n\n \t\tString play_url;\n\t\tswitch (position) {\n\t\tcase 0:\n\t\t\t\n\t\t\tbreak;\n\t\tcase 1:\n\t\t\t play_url = tb.getString(\"play_url\");\n\t\t\t\tif (play_url.isEmpty()) {\n\t\t\t\t\tToast toast = Toast.makeText(this.getApplicationContext(), getString(R.string.no_brocast),\n\t\t\t\t\t\t\tToast.LENGTH_SHORT);\n\t\t\t\t\ttoast.show();\n\t\t\t\t\n\t\t\t\t}else{\n\t\t\t\t\tIntent it = new Intent(this,MusicUi.class);\n\t\t\t\t\tstartActivity(it);\n\t\t\t\t}\n\t\t\n\t\t\tbreak;\n\t\tcase 2:\n\t\t\t\n\t\t\t play_url = tb.getString(\"play_url\");\n\t\t\t\tif (play_url.isEmpty()) {\n\t\t\t\t\tToast toast = Toast.makeText(this.getApplicationContext(), getString(R.string.no_brocast),\n\t\t\t\t\t\t\tToast.LENGTH_SHORT);\n\t\t\t\t\ttoast.show();\n\t\t\t\t\n\t\t\t\t}else{\n\t\t\t\t\t\n\t\t\t\t\tsleeptimer();\n\t\t\t\t}\n\t\t\t\n\t\n\t\t\tbreak;\n\t\t\t\n\t\tcase 3:\n\t\t\t\n\t\t\t\n\t\t\t\t\treportError();\n\t\t\t\t\t\n\t\t\t\t\n\t\t\t\n\t\n\t\t\tbreak;\n\t\t\t\n\t\tdefault:\n\t\t\tbreak;\n\t \t}\n \t}", "public void onItemClick(AdapterView<?> parent, View view,\n \t\t\t\t int position, long id) {\n \t\t\t\t\t String text = (String) fileNames.get(position);\n \t\t\t\t\t Intent intent = new Intent(); \n \t\t\t\t\t intent.setAction(android.content.Intent.ACTION_VIEW); \n \t\t\t\t\t File file = new File(getExternalFilesDir(null) + \"/\" + codeLearnLessons.getItemAtPosition(position).toString()); \n \t\t\t\t\t intent.setDataAndType(Uri.fromFile(file), \"audio/*\"); \n \t\t\t\t\t startActivity(intent); \n \t\t\t\t }", "public static void playListSongs(boolean iSelectASong)\n {\n Album actualAlbum = AlbumXmlFile.getAlbumFromDataBase(JSoundsMainWindowViewController.jlActualListSongs.getAlbumName(), true);\n\n \n if ((selectedAlbum!=null) && (!actualAlbum.getName().equals(selectedAlbum.getName())))\n {\n JSoundsMainWindowViewController.listSongs=null;\n JSoundsMainWindowViewController.listSongs=new JMusicPlayerList();\n alreadyPlaying=false;\n if((!isPlaylist) && (!shutDown))\n dontInitPlayer=true;\n }\n \n if (JSoundsMainWindowViewController.iAmPlaying && JSoundsMainWindowViewController.jlActualListSongs != null)\n { \n if (alreadyPlaying==false)\n {\n ViewUtilFunctions.changeIconFromButton(JSoundsMainWindowViewController.jBPlayButton, \"src/view/images/IBPause.png\");\n JSoundsMainWindowViewController.iAmPlaying = false;\n JSoundsMainWindowViewController.iAmPausing = true;\n JSoundsMainWindowViewController.iAmResuming = false;\n \n selectedAlbum=actualAlbum;\n \n Song actualSong = null;\n int position;\n if (!isPlaylist) //Si no estoy tratando de reproducir una lista de reproduccion.\n { \n \n \n if (actualAlbum != null)\n {\n Iterator songsIterator = actualAlbum.getSongs().iterator();\n \n position = 0;\n \n while (songsIterator.hasNext())\n {\n actualSong = (Song) songsIterator.next();\n \n if (actualSong != null)\n {\n listSongs.addSongToPlayerList(new JMusicSong(position, UtilFunctions.removeStrangeCharacters(actualSong.getName()), UtilFunctions.removeStrangeCharacters(actualSong.getName()), actualSong.getName(), UtilFunctions.removeStrangeCharacters(actualSong.getArtist().getName()), actualSong.getArtist().getName(), UtilFunctions.removeStrangeCharacters(actualAlbum.getName()), actualAlbum.getName()));\n position++;\n }\n }\n }\n }\n else //Si es una lista de reproduccion\n {\n Album actualAlbumPlaylist = PlaylistXmlFile.getPlaylistAlbumFromDataBase(JSoundsMainWindowViewController.jlActualListSongs.getAlbumName(), true);\n \n \n if (actualAlbumPlaylist != null)\n {\n Iterator songsIterator = actualAlbumPlaylist.getSongs().iterator();\n \n position = 0;\n \n while (songsIterator.hasNext())\n {\n \n actualSong = (Song) songsIterator.next();\n \n if (actualSong != null)\n {\n listSongs.addSongToPlayerList(new JMusicSong(position, UtilFunctions.removeStrangeCharacters(actualSong.getName()), UtilFunctions.removeStrangeCharacters(actualSong.getName()), actualSong.getName(), UtilFunctions.removeStrangeCharacters(actualSong.getArtist().getName()), actualSong.getArtist().getName(), UtilFunctions.removeStrangeCharacters(actualAlbumPlaylist.getName()), actualAlbumPlaylist.getName()));\n position++;\n }\n }\n }\n } \n if (!dontInitPlayer) // Inicio el reproductor\n {\n MusicPlayerControl.initMusicPlayer(Util.JSOUNDS_LIBRARY_PATH, JSoundsMainWindowViewController.jlActualListSongs, JSoundsMainWindowViewController.jLInformationSong, JSoundsMainWindowViewController.jlActualListSongs.getjLLastPlayedSongList(), table, JSoundsMainWindowViewController.LIST_SONG_COLUMN, JSoundsMainWindowViewController.jlActualListSongs.getRowInJTable(), JSoundsMainWindowViewController.LAST_PLAYED_SONG_COLUMN);\n MusicPlayerControl.loadSongs(listSongs);\n shutDown=false;\n }\n else // El reproductor ya esta iniciado\n {\n MusicPlayerControl.loadSongs(listSongs);\n dontInitPlayer=false;\n }\n \n if (iSelectASong)\n {\n if (indexFromSearchedSong>(-1))\n {\n MusicPlayerControl.changeSongFromIndexSong(indexFromSearchedSong);\n iSelectASong=false;\n indexFromSearchedSong=-1;\n }\n else\n {\n MusicPlayerControl.changeSongFromIndexSong(JSoundsMainWindowViewController.jlActualListSongs.getSelectedIndex());\n iSelectASong = false;\n }\n \n }\n EditSongWindow.songName =listSongs.getSongAtIndex(JSoundsMainWindowViewController.jlActualListSongs.getSelectedIndex()).getSongName();\n EditSongWindow.index = JSoundsMainWindowViewController.jlActualListSongs.getSelectedIndex();\n EditSongWindow.list = listSongs;\n JSoundsMainWindowViewController.fillEditWindow(JSoundsMainWindowViewController.jlActualListSongs.getSelectedIndex());\n MusicPlayerControl.playSong();\n alreadyPlaying = true;\n }\n if ((alreadyPlaying==true) && (iSelectASong==true) && (fixedIndex== true))\n {\n ViewUtilFunctions.changeIconFromButton(JSoundsMainWindowViewController.jBPlayButton, \"src/view/images/IBPause.png\");\n JSoundsMainWindowViewController.iAmPlaying = false;\n JSoundsMainWindowViewController.iAmPausing = true;\n JSoundsMainWindowViewController.iAmResuming = false;\n MusicPlayerControl.changeSongFromIndexSong(JSoundsMainWindowViewController.jlActualListSongs.getSelectedIndex()-1);\n \n JSoundsMainWindowViewController.fillEditWindow(JSoundsMainWindowViewController.jlActualListSongs.getSelectedIndex()-1);\n \n MusicPlayerControl.playSong();\n }\n if ((alreadyPlaying==true) && (iSelectASong==true) && (iAmPausing==true) && (!fixedIndex))\n {\n MusicPlayerControl.changeSongFromIndexSong(JSoundsMainWindowViewController.jlActualListSongs.getSelectedIndex());\n \n JSoundsMainWindowViewController.fillEditWindow(JSoundsMainWindowViewController.jlActualListSongs.getSelectedIndex());\n \n MusicPlayerControl.playSong();\n }\n if ((alreadyPlaying==true) && (iSelectASong==true) && (iAmPlaying==true) && (!fixedIndex))\n {\n ViewUtilFunctions.changeIconFromButton(JSoundsMainWindowViewController.jBPlayButton, \"src/view/images/IBPause.png\");\n JSoundsMainWindowViewController.iAmPlaying = false;\n JSoundsMainWindowViewController.iAmPausing = true;\n JSoundsMainWindowViewController.iAmResuming = false;\n MusicPlayerControl.changeSongFromIndexSong(JSoundsMainWindowViewController.jlActualListSongs.getSelectedIndex());\n \n JSoundsMainWindowViewController.fillEditWindow(JSoundsMainWindowViewController.jlActualListSongs.getSelectedIndex());\n \n MusicPlayerControl.playSong();\n }\n \n }\n else\n {\n if (JSoundsMainWindowViewController.iAmPausing && JSoundsMainWindowViewController.jlActualListSongs != null)\n {\n ViewUtilFunctions.changeIconFromButton(JSoundsMainWindowViewController.jBPlayButton, \"src/view/images/IBPlay.png\");\n JSoundsMainWindowViewController.iAmPlaying = false;\n JSoundsMainWindowViewController.iAmPausing = false;\n JSoundsMainWindowViewController.iAmResuming = true;\n \n MusicPlayerControl.pauseSong();\n }\n else\n {\n if (JSoundsMainWindowViewController.iAmResuming && JSoundsMainWindowViewController.jlActualListSongs != null)\n {\n ViewUtilFunctions.changeIconFromButton(JSoundsMainWindowViewController.jBPlayButton, \"src/view/images/IBPause.png\");\n \n JSoundsMainWindowViewController.iAmPlaying = false;\n JSoundsMainWindowViewController.iAmPausing = true;\n JSoundsMainWindowViewController.iAmResuming = false;\n \n MusicPlayerControl.resumeSong();\n }\n \n }\n }\n }", "private ItemStack renameItem(ItemStack item, String key) {\r\n\t\tItemMeta meta = item.getItemMeta();\r\n\t\tmeta.setDisplayName(ModuleFactory.getInstance().getTranslator().getTranslation(plugin, player, key));\r\n\t\titem.setItemMeta(meta);\r\n\t\treturn item;\r\n\t}", "public abstract MediaItem getMediaItem(String id);" ]
[ "0.60332644", "0.56951606", "0.56118107", "0.54585326", "0.54502195", "0.5417991", "0.53924793", "0.5371613", "0.5365495", "0.5356194", "0.5336863", "0.53322864", "0.5312863", "0.5305387", "0.52872556", "0.52807456", "0.5264835", "0.5249755", "0.5242382", "0.5218052", "0.5212748", "0.5204254", "0.51961714", "0.5195606", "0.51939464", "0.518702", "0.51845986", "0.5168814", "0.5166674", "0.5166497", "0.5163748", "0.51396203", "0.5134059", "0.5132876", "0.5132797", "0.5130159", "0.5117711", "0.51144904", "0.51110387", "0.51018894", "0.5100344", "0.5084945", "0.5081689", "0.50794125", "0.5072705", "0.5070351", "0.506795", "0.5067118", "0.5065513", "0.50612825", "0.5048916", "0.5048379", "0.5045708", "0.5043368", "0.50423974", "0.50361484", "0.50296366", "0.50263345", "0.50251234", "0.5023089", "0.5022969", "0.5012939", "0.5010073", "0.5005454", "0.49988788", "0.49988744", "0.49986932", "0.49984944", "0.4994116", "0.4992872", "0.49894035", "0.49889934", "0.49884686", "0.49851424", "0.49790788", "0.49783525", "0.49755174", "0.49742264", "0.496827", "0.49661452", "0.4965614", "0.49626195", "0.49598548", "0.49587247", "0.4955708", "0.49511382", "0.49480596", "0.494715", "0.49435487", "0.4941113", "0.49344566", "0.49326137", "0.49322492", "0.49291238", "0.49290636", "0.4921314", "0.49129552", "0.4908637", "0.49083987", "0.49080157", "0.49079794" ]
0.0
-1
/ renamed from: a
public void mo31899a(C7300a aVar) { this.dBv = aVar; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface C4521a {\n /* renamed from: a */\n void mo12348a();\n }", "public interface C1423a {\n /* renamed from: a */\n void mo6888a(int i);\n }", "interface bxc {\n /* renamed from: a */\n void mo2508a(bxb bxb);\n}", "interface C33292a {\n /* renamed from: a */\n void mo85415a(String str);\n }", "interface C10331b {\n /* renamed from: a */\n void mo26876a(int i);\n }", "public interface C0779a {\n /* renamed from: a */\n void mo2311a();\n}", "public interface C6788a {\n /* renamed from: a */\n void mo20141a();\n }", "public interface C0237a {\n /* renamed from: a */\n void mo1791a(String str);\n }", "public interface C35013b {\n /* renamed from: a */\n void mo88773a(int i);\n}", "public interface C11112n {\n /* renamed from: a */\n void mo38026a();\n }", "@Override\n\t\t\t\tpublic void a() {\n\n\t\t\t\t}", "public interface C23407b {\n /* renamed from: a */\n void mo60892a();\n\n /* renamed from: b */\n void mo60893b();\n }", "interface C0312e {\n /* renamed from: a */\n void mo4671a(View view, int i, int i2, int i3, int i4);\n }", "public interface C34379a {\n /* renamed from: a */\n void mo46242a(bmc bmc);\n }", "public interface C32456b<T> {\n /* renamed from: a */\n void mo83696a(T t);\n }", "private String convertir(String a) {\n StringBuilder atributo = new StringBuilder(a);\n atributo.insert(0, Character.toUpperCase(atributo.charAt(0)));\n return atributo.deleteCharAt(1).toString();\n }", "protected m a(String name) {\n/* 42 */ return this.a.get(name);\n/* */ }", "public interface AbstractC23925a {\n /* renamed from: a */\n void mo105476a();\n }", "private interface C0257a {\n /* renamed from: a */\n float mo196a(ViewGroup viewGroup, View view);\n\n /* renamed from: b */\n float mo195b(ViewGroup viewGroup, View view);\n }", "public interface C3598a {\n /* renamed from: a */\n void mo11024a(int i, int i2, String str);\n }", "public interface C2459d {\n /* renamed from: a */\n C2451d mo3408a(C2457e c2457e);\n}", "public interface am extends ak {\r\n /* renamed from: a */\r\n void mo194a(int i) throws RemoteException;\r\n\r\n /* renamed from: a */\r\n void mo195a(List<LatLng> list) throws RemoteException;\r\n\r\n /* renamed from: b */\r\n void mo196b(float f) throws RemoteException;\r\n\r\n /* renamed from: b */\r\n void mo197b(boolean z);\r\n\r\n /* renamed from: c */\r\n void mo198c(boolean z) throws RemoteException;\r\n\r\n /* renamed from: g */\r\n float mo199g() throws RemoteException;\r\n\r\n /* renamed from: h */\r\n int mo200h() throws RemoteException;\r\n\r\n /* renamed from: i */\r\n List<LatLng> mo201i() throws RemoteException;\r\n\r\n /* renamed from: j */\r\n boolean mo202j();\r\n\r\n /* renamed from: k */\r\n boolean mo203k();\r\n}", "public interface C32459e<T> {\n /* renamed from: a */\n void mo83698a(T t);\n }", "public interface C32458d<T> {\n /* renamed from: a */\n void mo83695a(T t);\n }", "public interface C5482b {\n /* renamed from: a */\n void mo27575a();\n\n /* renamed from: a */\n void mo27576a(int i);\n }", "public interface C27084a {\n /* renamed from: a */\n void mo69874a();\n\n /* renamed from: a */\n void mo69875a(List<Aweme> list, boolean z);\n }", "public void a() {\n ((a) this.a).a();\n }", "public interface C1153a {\n /* renamed from: a */\n void mo4520a(byte[] bArr);\n }", "public interface C13373b {\n /* renamed from: a */\n void mo32681a(String str, int i, boolean z);\n}", "public interface C40453c {\n /* renamed from: a */\n void mo100442a(C40429b bVar);\n\n /* renamed from: a */\n void mo100443a(List<String> list);\n\n /* renamed from: b */\n void mo100444b(List<C40429b> list);\n}", "public interface AbstractC17367b {\n /* renamed from: a */\n void mo84655a();\n }", "@Override\r\n\tpublic void a() {\n\t\t\r\n\t}", "public interface C43270a {\n /* renamed from: a */\n void mo64942a(String str, long j, long j2);\n}", "public interface C18928d {\n /* renamed from: a */\n void mo50320a(C18924b bVar);\n\n /* renamed from: b */\n void mo50321b(C18924b bVar);\n}", "public interface C0087c {\n /* renamed from: a */\n String mo150a(String str);\n}", "public interface C1529m {\n /* renamed from: a */\n void mo3767a(int i);\n\n /* renamed from: a */\n void mo3768a(String str);\n}", "interface C4483e {\n /* renamed from: a */\n boolean mo34114a();\n}", "public interface C1234b {\r\n /* renamed from: a */\r\n void m8367a();\r\n\r\n /* renamed from: b */\r\n void m8368b();\r\n}", "public interface C10965j<T> {\n /* renamed from: a */\n T mo26439a();\n}", "public interface C28772a {\n /* renamed from: a */\n View mo73990a(View view);\n }", "@Override\n\tpublic void a() {\n\t\t\n\t}", "public interface C8326b {\n /* renamed from: a */\n C8325a mo21498a(String str);\n\n /* renamed from: a */\n void mo21499a(C8325a aVar);\n}", "void metodo1(int a, int[] b) {\r\n\t\ta += 5;//Par\\u00e1metro con el mismo nombre que el campo de la clase.\r\n\t\tb[0] += 7;//se produce un env\\u00edo por referencia, apunta a una copia de un objeto, que se asigna aqu\\u00ed.\r\n\t}", "public interface C2367a {\n /* renamed from: a */\n C2368d mo1698a();\n }", "interface C30585a {\n /* renamed from: b */\n void mo27952b(C5379a c5379a, int i, C46650a c46650a, C7620bi c7620bi);\n }", "public interface C4211a {\n\n /* renamed from: com.iab.omid.library.oguryco.c.a$a */\n public interface C4212a {\n /* renamed from: a */\n void mo28760a(View view, C4211a aVar, JSONObject jSONObject);\n }\n\n /* renamed from: a */\n JSONObject mo28758a(View view);\n\n /* renamed from: a */\n void mo28759a(View view, JSONObject jSONObject, C4212a aVar, boolean z);\n}", "public interface C4697a extends C5595at {\n /* renamed from: a */\n void mo12634a();\n\n /* renamed from: a */\n void mo12635a(String str);\n\n /* renamed from: a */\n void mo12636a(boolean z);\n\n /* renamed from: b */\n void mo12637b();\n\n /* renamed from: c */\n void mo12638c();\n }", "public interface C4773c {\n /* renamed from: a */\n void m15858a(int i);\n\n /* renamed from: a */\n void m15859a(int i, int i2);\n\n /* renamed from: a */\n void m15860a(int i, int i2, int i3);\n\n /* renamed from: b */\n void m15861b(int i, int i2);\n}", "public interface C4869f {\n /* renamed from: a */\n C4865b mo6249a();\n}", "public interface C1799a {\n /* renamed from: b */\n void mo3314b(String str);\n }", "public interface C43499b {\n /* renamed from: a */\n void mo8445a(int i, String str, int i2, byte[] bArr);\n}", "public interface C0601aq {\n /* renamed from: a */\n void mo9148a(int i, ArrayList<C0889x> arrayList);\n}", "public interface C45101e {\n /* renamed from: b */\n void mo3796b(int i);\n}", "public interface AbstractC6461g {\n /* renamed from: a */\n String mo42332a();\n}", "public interface AbstractC1645a {\n /* renamed from: a */\n String mo17375a();\n }", "public interface C6178c {\n /* renamed from: a */\n Map<String, String> mo14888a();\n}", "public interface C5101b {\n /* renamed from: a */\n void mo5289a(C5102c c5102c);\n\n /* renamed from: b */\n void mo5290b(C5102c c5102c);\n}", "public interface C19045k {\n /* renamed from: a */\n void mo50368a(int i, Object obj);\n\n /* renamed from: b */\n void mo50369b(int i, Object obj);\n}", "public b a()\r\n/* 12: */ {\r\n/* 13:13 */ return this.a;\r\n/* 14: */ }", "public interface C7720a {\n /* renamed from: a */\n long mo20406a();\n}", "public String a()\r\n/* 25: */ {\r\n/* 26:171 */ return \"dig.\" + this.a;\r\n/* 27: */ }", "public interface ayt {\n /* renamed from: a */\n int mo1635a(long j, List list);\n\n /* renamed from: a */\n long mo1636a(long j, alb alb);\n\n /* renamed from: a */\n void mo1637a();\n\n /* renamed from: a */\n void mo1638a(long j, long j2, List list, ayp ayp);\n\n /* renamed from: a */\n void mo1639a(ayl ayl);\n\n /* renamed from: a */\n boolean mo1640a(ayl ayl, boolean z, Exception exc, long j);\n}", "public interface C24221b extends C28343z<C28318an> {\n /* renamed from: a */\n void mo62991a(int i);\n\n String aw_();\n\n /* renamed from: e */\n Aweme mo62993e();\n}", "public interface C4051c {\n /* renamed from: a */\n boolean mo23707a();\n}", "public interface C45112b {\n /* renamed from: a */\n List<C45111a> mo107674a(Integer num);\n\n /* renamed from: a */\n List<C45111a> mo107675a(Integer num, Integer num2);\n\n /* renamed from: a */\n void mo107676a(C45111a aVar);\n\n /* renamed from: b */\n void mo107677b(Integer num);\n\n /* renamed from: c */\n long mo107678c(Integer num);\n}", "public void acionou(int a){\n\t\t\tb=a;\n\t\t}", "public interface C44963i {\n /* renamed from: a */\n void mo63037a(int i, int i2);\n\n void aA_();\n\n /* renamed from: b */\n void mo63039b(int i, int i2);\n}", "public interface C32457c<T> {\n /* renamed from: a */\n void mo83699a(T t, int i, int i2, String str);\n }", "public interface C5861g {\n /* renamed from: a */\n void mo18320a(C7251a aVar);\n\n @Deprecated\n /* renamed from: a */\n void mo18321a(C7251a aVar, String str);\n\n /* renamed from: a */\n void mo18322a(C7252b bVar);\n\n /* renamed from: a */\n void mo18323a(C7253c cVar);\n\n /* renamed from: a */\n void mo18324a(C7260j jVar);\n}", "public interface C0937a {\n /* renamed from: a */\n void mo3807a(C0985po[] poVarArr);\n }", "public interface C8466a {\n /* renamed from: a */\n void mo25956a(int i);\n\n /* renamed from: a */\n void mo25957a(long j, long j2);\n }", "public interface C39684b {\n /* renamed from: a */\n void mo98969a();\n\n /* renamed from: a */\n void mo98970a(C29296g gVar);\n\n /* renamed from: a */\n void mo98971a(C29296g gVar, int i);\n }", "public interface C43470b {\n /* renamed from: a */\n void mo61496a(C43469a aVar, C43471c cVar);\n }", "public interface AbstractC18255a {\n /* renamed from: a */\n void mo88521a();\n\n /* renamed from: a */\n void mo88522a(String str);\n\n /* renamed from: b */\n void mo88523b();\n\n /* renamed from: c */\n void mo88524c();\n }", "public interface C1436d {\n /* renamed from: a */\n C1435c mo1754a(C1433a c1433a, C1434b c1434b);\n}", "public interface C4150sl {\n /* renamed from: a */\n void mo15005a(C4143se seVar);\n}", "public void a(nm paramnm)\r\n/* 28: */ {\r\n/* 29:45 */ paramnm.a(this);\r\n/* 30: */ }", "public interface C19351a {\n /* renamed from: b */\n void mo30633b(int i, String str, byte[] bArr);\n }", "public interface C11113o {\n /* renamed from: a */\n void mo37759a(String str);\n }", "public interface C39504az {\n /* renamed from: a */\n int mo98207a();\n\n /* renamed from: a */\n void mo98208a(boolean z);\n\n /* renamed from: b */\n int mo98209b();\n\n /* renamed from: c */\n int mo98355c();\n\n /* renamed from: d */\n int mo98356d();\n\n /* renamed from: e */\n int mo98357e();\n\n /* renamed from: f */\n int mo98358f();\n}", "protected a<T> a(Tag.e<T> var0) {\n/* 80 */ Tag.a var1 = b(var0);\n/* 81 */ return new a<>(var1, this.c, \"vanilla\");\n/* */ }", "public interface C35565a {\n /* renamed from: a */\n C45321i mo90380a();\n }", "public interface C21298a {\n /* renamed from: a */\n void mo57275a();\n\n /* renamed from: a */\n void mo57276a(Exception exc);\n\n /* renamed from: b */\n void mo57277b();\n\n /* renamed from: c */\n void mo57278c();\n }", "public interface C40108b {\n /* renamed from: a */\n void mo99838a(boolean z);\n }", "public interface C0456a {\n /* renamed from: a */\n void mo2090a(C0455b bVar);\n\n /* renamed from: a */\n boolean mo2091a(C0455b bVar, Menu menu);\n\n /* renamed from: a */\n boolean mo2092a(C0455b bVar, MenuItem menuItem);\n\n /* renamed from: b */\n boolean mo2093b(C0455b bVar, Menu menu);\n }", "public interface C4724o {\n /* renamed from: a */\n void mo4872a(int i, String str);\n\n /* renamed from: a */\n void mo4873a(C4718l c4718l);\n\n /* renamed from: b */\n void mo4874b(C4718l c4718l);\n}", "public interface C7654b {\n /* renamed from: a */\n C7904c mo24084a();\n\n /* renamed from: b */\n C7716a mo24085b();\n }", "public interface C2603a {\n /* renamed from: a */\n String mo1889a(String str, String str2, String str3, String str4);\n }", "public interface afp {\n /* renamed from: a */\n C0512sx mo169a(C0497si siVar, afj afj, afr afr, Context context);\n}", "public interface C0615ja extends b<HomeFragment> {\n\n /* renamed from: c.c.a.h.b.ja$a */\n /* compiled from: FragmentModule_HomeFragment$app_bazaarRelease */\n public static abstract class a extends b.a<HomeFragment> {\n }\n}", "public interface a {\n\n /* renamed from: c.b.a.c.b.b.a$a reason: collision with other inner class name */\n /* compiled from: DiskCache */\n public interface C0054a {\n a build();\n }\n\n /* compiled from: DiskCache */\n public interface b {\n boolean a(File file);\n }\n\n File a(c cVar);\n\n void a(c cVar, b bVar);\n}", "public interface C0940d {\n /* renamed from: a */\n void mo3305a(boolean z);\n }", "public interface AbstractC17368c {\n /* renamed from: a */\n void mo84656a(float f);\n }", "interface C0932a {\n /* renamed from: a */\n void mo7438a(int i, int i2);\n\n /* renamed from: b */\n void mo7439b(C0933b bVar);\n\n /* renamed from: c */\n void mo7440c(int i, int i2, Object obj);\n\n /* renamed from: d */\n void mo7441d(C0933b bVar);\n\n /* renamed from: e */\n RecyclerView.ViewHolder mo7442e(int i);\n\n /* renamed from: f */\n void mo7443f(int i, int i2);\n\n /* renamed from: g */\n void mo7444g(int i, int i2);\n\n /* renamed from: h */\n void mo7445h(int i, int i2);\n }", "public interface C10330c {\n /* renamed from: a */\n C7562b<C10403b, C10328a> mo25041a();\n}", "public interface C3819a {\n /* renamed from: a */\n void mo23214a(Message message);\n }", "private Proof atoAImpl(Expression a) {\n Proof where = axm2(a, arrow(a, a), a); //a->(a->a) -> (a->(a->a)->a) -> (a -> a)\n Proof one = axm1(a, a); //a->a->a\n Proof two = axm1(a, arrow(a, a)); //a->(a->a)->A\n return mpTwice(where, one, two);\n }", "interface C1939a {\n /* renamed from: a */\n Bitmap mo1406a(Bitmap bitmap, float f);\n}", "public interface a extends com.bankeen.d.b.b.a {\n void a();\n\n void b();\n }", "public b[] a() {\n/* 95 */ return this.a;\n/* */ }", "interface C8361a {\n /* renamed from: b */\n float mo18284b(ViewGroup viewGroup, View view);\n\n /* renamed from: c */\n float mo18281c(ViewGroup viewGroup, View view);\n }" ]
[ "0.62497115", "0.6242887", "0.61394435", "0.61176854", "0.6114027", "0.60893", "0.6046901", "0.6024682", "0.60201293", "0.5975212", "0.59482527", "0.59121317", "0.5883635", "0.587841", "0.58703005", "0.5868436", "0.5864884", "0.5857492", "0.58306104", "0.5827752", "0.58272064", "0.5794689", "0.57890314", "0.57838726", "0.5775679", "0.57694733", "0.5769128", "0.57526815", "0.56907034", "0.5677874", "0.5670547", "0.56666386", "0.56592244", "0.5658682", "0.56574154", "0.5654324", "0.5644676", "0.56399715", "0.5638734", "0.5630582", "0.56183887", "0.5615435", "0.56069666", "0.5605207", "0.56005067", "0.559501", "0.55910283", "0.5590222", "0.55736613", "0.5556682", "0.5554544", "0.5550076", "0.55493855", "0.55446684", "0.5538079", "0.5529058", "0.5528109", "0.552641", "0.5525864", "0.552186", "0.5519972", "0.5509587", "0.5507195", "0.54881203", "0.5485328", "0.54826045", "0.5482066", "0.5481586", "0.5479751", "0.54776895", "0.54671466", "0.5463307", "0.54505056", "0.54436916", "0.5440517", "0.5439747", "0.5431944", "0.5422869", "0.54217863", "0.5417556", "0.5403905", "0.5400223", "0.53998446", "0.5394735", "0.5388649", "0.5388258", "0.5374842", "0.5368887", "0.53591394", "0.5357029", "0.5355688", "0.535506", "0.5355034", "0.53494394", "0.5341044", "0.5326166", "0.53236824", "0.53199095", "0.53177035", "0.53112453", "0.5298229" ]
0.0
-1
/ access modifiers changed from: protected
public int getLayoutId() { return R.layout.list_item_music_local_scan; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n protected void prot() {\n }", "private stendhal() {\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void anular() {\n\n\t}", "private Rekenhulp()\n\t{\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "private abstract void privateabstract();", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "@Override\n\tprotected void interr() {\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\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 ligar() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "public void smell() {\n\t\t\n\t}", "public abstract Object mo26777y();", "protected void h() {}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "protected abstract Set method_1559();", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "public abstract void mo70713b();", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "protected Doodler() {\n\t}", "public abstract void mo27386d();", "@Override\n\tprotected void getExras() {\n\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}", "private PropertyAccess() {\n\t\tsuper();\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "public abstract void mo56925d();", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n protected void init() {\n }", "@Override\n protected void getExras() {\n }", "@Override\n\tpublic void emprestimo() {\n\n\t}", "public abstract void mo27385c();", "@Override\r\n\t\t\tpublic void buscar() {\n\r\n\t\t\t}", "@Override\n public void memoria() {\n \n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\r\n\tprotected void func03() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void smthAbstr() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void func02() {\n\t\t\t\t\r\n\t\t\t}", "@Override\n\tpublic void dosomething() {\n\t\t\n\t}", "protected boolean func_70814_o() { return true; }", "private void someUtilityMethod() {\n }", "private void someUtilityMethod() {\n }", "public abstract void mo30696a();", "abstract int pregnancy();", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\n\t\t\t\tpublic void a() {\n\n\t\t\t\t}", "@Override\n public void init() {\n\n }", "@Override\n void init() {\n }", "@Override\n\tpublic void leti() \n\t{\n\t}", "private TMCourse() {\n\t}", "public abstract void mo35054b();", "@Override\n public void init() {\n }", "@Override\n\tpublic void buscar() {\n\t\t\n\t}", "private Infer() {\n\n }", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tpublic void erstellen() {\n\t\t\n\t}", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "public final void mo51373a() {\n }", "protected void method_3848() {\r\n super.method_3848();\r\n }", "protected FanisamBato(){\n\t}", "public abstract Object mo1771a();", "public abstract void m15813a();", "public void gored() {\n\t\t\n\t}", "@Override\n public void get() {}", "@Override\n\tpublic void dibuja() {\n\t\t\n\t}", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "private Get() {}", "private Get() {}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "public abstract void mo27464a();", "public abstract String mo41079d();", "@Override\n\tpublic void classroom() {\n\t\t\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "@Override\n\tpublic void verkaufen() {\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tprotected void logic() {\n\n\t}", "public abstract void mo102899a();", "@SuppressWarnings(\"unused\")\n private void _read() {\n }", "public abstract void mo42329d();", "@Override\r\n\t\t\tpublic void test() {\n\t\t\t}", "@Override\r\n \tpublic void process() {\n \t\t\r\n \t}", "public void method_4270() {}", "public abstract void mo6549b();", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void function() {\n\t\t\n\t}", "protected void init() {\n // to override and use this method\n }" ]
[ "0.7375736", "0.7042321", "0.6922649", "0.6909494", "0.68470824", "0.6830288", "0.68062353", "0.6583185", "0.6539446", "0.65011257", "0.64917654", "0.64917654", "0.64733833", "0.6438831", "0.64330196", "0.64330196", "0.64295477", "0.6426414", "0.6420484", "0.64083177", "0.6406691", "0.6402136", "0.6400287", "0.63977665", "0.63784796", "0.6373787", "0.63716805", "0.63680965", "0.6353791", "0.63344383", "0.6327005", "0.6327005", "0.63259363", "0.63079315", "0.6279023", "0.6271251", "0.62518364", "0.62254924", "0.62218183", "0.6213994", "0.6204108", "0.6195944", "0.61826825", "0.617686", "0.6158371", "0.6138765", "0.61224854", "0.6119267", "0.6119013", "0.61006695", "0.60922325", "0.60922325", "0.6086324", "0.6083917", "0.607071", "0.6070383", "0.6067458", "0.60568124", "0.6047576", "0.6047091", "0.60342956", "0.6031699", "0.6026248", "0.6019563", "0.60169774", "0.6014913", "0.6011912", "0.59969044", "0.59951806", "0.5994921", "0.599172", "0.59913194", "0.5985337", "0.59844744", "0.59678656", "0.5966894", "0.5966894", "0.5966894", "0.5966894", "0.5966894", "0.5966894", "0.59647757", "0.59647757", "0.59616375", "0.5956373", "0.5952514", "0.59497356", "0.59454703", "0.5941018", "0.5934147", "0.5933801", "0.59318185", "0.5931161", "0.5929297", "0.5926942", "0.5925829", "0.5924853", "0.5923296", "0.5922199", "0.59202504", "0.5918595" ]
0.0
-1
/ access modifiers changed from: protected
public void onBindView(BaseHolder baseHolder, int i) { baseHolder.findViewById(R.id.scan_container).setOnClickListener(new OnClickListener() { public void onClick(View view) { if (C7297b.this.getActivity() != null) { VivaRouter.getRouterBuilder(FileExplorerParams.URL).mo10386a(CommonParams.INTENT_MAGIC_CODE, C7297b.this.getActivity().getIntent().getLongExtra(CommonParams.INTENT_MAGIC_CODE, 0)).mo10406h(FileExplorerParams.KEY_EXPLORER_FILE_TYPE, 1).mo10382H(C7297b.this.getActivity()); C7256a.m21416fV(C7297b.this.getActivity()); } } }); View findViewById = baseHolder.findViewById(R.id.music_search_entry_container); findViewById.setOnClickListener(new OnClickListener() { public void onClick(View view) { if (!(C7297b.this.getActivity() == null || C7297b.this.dBv == null)) { C7297b.this.dBv.axq(); } } }); View findViewById2 = baseHolder.findViewById(R.id.scan_layout_type_a); View findViewById3 = baseHolder.findViewById(R.id.scan_layout_type_b); if (this.dBw) { findViewById.setVisibility(0); findViewById2.setVisibility(8); findViewById3.setVisibility(0); return; } findViewById.setVisibility(8); findViewById2.setVisibility(0); findViewById3.setVisibility(8); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n protected void prot() {\n }", "private stendhal() {\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void anular() {\n\n\t}", "private Rekenhulp()\n\t{\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "private abstract void privateabstract();", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "@Override\n\tprotected void interr() {\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\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 ligar() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "public void smell() {\n\t\t\n\t}", "public abstract Object mo26777y();", "protected void h() {}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "protected abstract Set method_1559();", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "public abstract void mo70713b();", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "protected Doodler() {\n\t}", "public abstract void mo27386d();", "@Override\n\tprotected void getExras() {\n\n\t}", "private PropertyAccess() {\n\t\tsuper();\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 gravarBd() {\n\t\t\n\t}", "public abstract void mo56925d();", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n protected void init() {\n }", "@Override\n protected void getExras() {\n }", "@Override\n\tpublic void emprestimo() {\n\n\t}", "public abstract void mo27385c();", "@Override\r\n\t\t\tpublic void buscar() {\n\r\n\t\t\t}", "@Override\n public void memoria() {\n \n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\r\n\tprotected void func03() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void smthAbstr() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void func02() {\n\t\t\t\t\r\n\t\t\t}", "@Override\n\tpublic void dosomething() {\n\t\t\n\t}", "protected boolean func_70814_o() { return true; }", "private void someUtilityMethod() {\n }", "private void someUtilityMethod() {\n }", "public abstract void mo30696a();", "abstract int pregnancy();", "@Override\n\t\t\t\tpublic void a() {\n\n\t\t\t\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n void init() {\n }", "private TMCourse() {\n\t}", "@Override\n\tpublic void leti() \n\t{\n\t}", "public abstract void mo35054b();", "@Override\n public void init() {\n }", "@Override\n\tpublic void buscar() {\n\t\t\n\t}", "private Infer() {\n\n }", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tpublic void erstellen() {\n\t\t\n\t}", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "public final void mo51373a() {\n }", "protected void method_3848() {\r\n super.method_3848();\r\n }", "protected FanisamBato(){\n\t}", "public abstract Object mo1771a();", "public abstract void m15813a();", "public void gored() {\n\t\t\n\t}", "@Override\n public void get() {}", "@Override\n\tpublic void dibuja() {\n\t\t\n\t}", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "private Get() {}", "private Get() {}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "public abstract void mo27464a();", "public abstract String mo41079d();", "@Override\n\tpublic void classroom() {\n\t\t\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "@Override\n\tpublic void verkaufen() {\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "public abstract void mo102899a();", "@SuppressWarnings(\"unused\")\n private void _read() {\n }", "public abstract void mo42329d();", "@Override\r\n\t\t\tpublic void test() {\n\t\t\t}", "@Override\r\n \tpublic void process() {\n \t\t\r\n \t}", "public void method_4270() {}", "public abstract void mo6549b();", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void function() {\n\t\t\n\t}", "public abstract String mo118046b();" ]
[ "0.73744047", "0.7040692", "0.692117", "0.69076973", "0.6844561", "0.68277687", "0.68048066", "0.6581614", "0.653803", "0.6500888", "0.64905626", "0.64905626", "0.6471316", "0.64376974", "0.64308083", "0.64308083", "0.642771", "0.6424499", "0.6419003", "0.64083034", "0.64053965", "0.6399863", "0.6398998", "0.6397645", "0.6377549", "0.63728356", "0.63699985", "0.6366876", "0.6353238", "0.63333476", "0.63253313", "0.6324922", "0.6324922", "0.63058454", "0.62785864", "0.6270248", "0.62499714", "0.62234515", "0.6220762", "0.6211659", "0.620336", "0.61937845", "0.618126", "0.6174812", "0.6157212", "0.61370605", "0.6121414", "0.61183035", "0.61175376", "0.6100111", "0.6091379", "0.6091379", "0.60856384", "0.6083921", "0.60691255", "0.6068961", "0.60650575", "0.6054537", "0.60455734", "0.6045201", "0.6033711", "0.60293764", "0.6024115", "0.6017829", "0.60143995", "0.60133785", "0.60101455", "0.5994944", "0.59942245", "0.599371", "0.59915304", "0.59905994", "0.59837806", "0.5983637", "0.59662336", "0.59648055", "0.59648055", "0.59648055", "0.59648055", "0.59648055", "0.59648055", "0.596418", "0.596418", "0.59599984", "0.5955761", "0.5953097", "0.5947849", "0.5944442", "0.59390324", "0.5931905", "0.59317887", "0.59311014", "0.5930125", "0.5928699", "0.5925024", "0.59242857", "0.5923635", "0.59224457", "0.5920236", "0.5919085", "0.5918472" ]
0.0
-1
So we can hide exception handling.
private Constructor<DefaultSimpleInterface> getConstructor() { try { return DefaultSimpleInterface.class.getConstructor(); } catch (NoSuchMethodException e) { e.printStackTrace(); } return null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void doException() {\n\r\n\t}", "protected boolean allowInExceptionThrowers() {\n return true;\n }", "@Override\n\tpublic boolean handlesThrowable() {\n\t\treturn false;\n\t}", "@Override\n protected boolean shouldSendThrowException() {\n return false;\n }", "Boolean ignoreExceptions();", "@Override\n protected void onExceptionSwallowed(RuntimeException exception) {\n throw exception;\n }", "void mo57276a(Exception exc);", "boolean ignoreExceptionsDuringInit();", "@Override\n\tpublic void demoCheckedException() throws IOException {\n\n\t}", "void handleError(Exception ex);", "@Override\r\n\tpublic boolean doCatch(Throwable ex) throws Exception\r\n\t{\n\t\treturn false;\r\n\t}", "@Override\n\tprotected Respond exceptHandle(Exception e) {\n\t\treturn SqlTool.normalExceptionDeal(new RspSingleRow(), e);\n\t}", "static void ignore() {\n }", "private void inizia() throws Exception {\n }", "private void inizia() throws Exception {\n }", "private void inizia() throws Exception {\n }", "private void inizia() throws Exception {\n }", "private void inizia() throws Exception {\n }", "public interface ExceptionHandler\n{\n //TODO not sure how to handle this\n}", "protected void handleException(java.lang.Throwable exception) {\n\tsuper.handleException(exception);\n}", "@Override\n\tpublic void catching(Throwable t) {\n\n\t}", "@Override\n\tpublic void onException(Exception e) {\n\n\t}", "public abstract void onException(Exception e);", "@Override\n\tpublic void exceptionHandler(Handler<Exception> handler) {\n\t\t\n\t}", "private void handleException(java.lang.Throwable exception) {\r\n\r\n\t/* Uncomment the following lines to print uncaught exceptions to stdout */\r\n\t// System.out.println(\"--------- UNCAUGHT EXCEPTION ---------\");\r\n\t// exception.printStackTrace(System.out);\r\n}", "@Override\r\n public void onException(Exception arg0) {\n\r\n }", "public void handle() throws Exception {}", "@Override\n\t\tpublic void onException(Exception arg0) {\n\t\t\t\n\t\t}", "protected ValidationException() {\r\n\t\t// hidden\r\n\t}", "private void handleException(java.lang.Throwable exception) {\n\n\t/* Uncomment the following lines to print uncaught exceptions to stdout */\n\t// System.out.println(\"--------- UNCAUGHT EXCEPTION ---------\");\n\t// exception.printStackTrace(System.out);\n}", "protected abstract void onException(final Exception exception);", "@Override\n\tpublic void exucute() {\n\t\t\n\t}", "protected void connectionException(Exception exception) {}", "protected abstract void exceptionsCatching( ExceptionType exceptionType );", "@Test\n public void swallowExceptionsAspect() throws Exception {\n ProductDemand demand = swallowing(parseDoc().getDemands().get(0));\n\n // probably will throw IllegalStateException\n demand.fancyBusinessLogic();\n\n List<Throwable> exceptions = exceptions(demand);\n Assertions.assertThat(exceptions).isNotEmpty();\n }", "public void doTheFaultyThing();", "@Override\n public void onException(Exception arg0) {\n }", "private List<Throwable> exceptions(Object swallowing) {\n return Collections.emptyList();\n }", "public void handleInvokerException(HttpRequest request, HttpResponse response, Exception e)\n {\n handleException(request, response, e);\n }", "private static void throwException() throws Exception {\n\t\tthrow new Exception();\r\n\t}", "public void clearEndUserExceptions();", "private void handleException(java.lang.Throwable exception) {\n\t\tSystem.out.println(\"--------- UNCAUGHT EXCEPTION ---------\");\n\t\texception.printStackTrace(System.out);\n\t}", "public void onException(Exception ex) {\n \t\t\t}", "static void doStuff() {\n try {\n throw new Error();\n } catch (Error me) {\n throw me; // We catch but then rethrow it.\n }\n }", "private void inizia() throws Exception {\n }", "void onException(Exception e);", "void Ignore(T ex);", "UsedExceptions getExceptions();", "public void toss(Exception e);", "public abstract void disableErrors();", "void innerError(@Nonnull Throwable ex) {\r\n\t\t\t\t\t\terror(ex);\r\n\t\t\t\t\t}", "void innerError(@Nonnull Throwable ex) {\r\n\t\t\t\t\t\terror(ex);\r\n\t\t\t\t\t}", "@Override\n\t\t\tpublic void onException(Exception arg0) {\n\n\t\t\t}", "void throwEvents();", "@SuppressWarnings(\"unused\")\n\tpublic\n\tvoid stupid(Exception e)\n\t{\n\t\tthis.severe(\"STUPID: \"+e.toString());\n\t}", "private void throwsError() throws OBException {\n }", "@Test\n public void testPutHandlesOtherExceptionsCorrectly() throws Exception {\n\n doTestPutHandlesExceptionsCorrectly(false);\n }", "void checked(){\n \n try {\n \n throw new CheckedException();\n } catch (CheckedException e) {\n e.printStackTrace();\n }\n\n }", "public void throwException()\n\t{\n\t\tthrow new RuntimeException(\"Dummy RUNTIME Exception\");\n\t}", "public interface OnGlobalExceptionListener {\n boolean handleException(AppException e);\n}", "Throwable cause();", "@Override\r\n\tpublic void uncaughtException(Thread thread, Throwable ex) {\n\r\n\t}", "@Override\n\tpublic void demoRunTimeException() throws RuntimeException {\n\n\t}", "@SuppressWarnings(\"unchecked\")\n private static <E extends Throwable> void sneakyThrow0(final Throwable x) throws E {\n throw (E) x;\n }", "protected UserNotFoundException(String message, Throwable cause, boolean enableSuppression,\n\t\t\tboolean writableStackTrace) {\n\t\tsuper(message, cause, enableSuppression, writableStackTrace);\n\t}", "void innerError(Throwable ex) {\r\n\t\t\t\t\t\terror(ex);\r\n\t\t\t\t\t}", "void innerError(Throwable ex) {\r\n\t\t\t\t\t\terror(ex);\r\n\t\t\t\t\t}", "static void e() throws LowLevelException {\n throw new LowLevelException();\n }", "void checkExcn() throws Exception\n { This is called from the main thread context to re-throw any saved\n // exception.\n //\n if (ex != null) {\n throw ex;\n }\n }", "void mo1031a(Throwable th);", "public void mo1031a(Throwable th) {\n if (th != null && Log.isLoggable(\"GlideExecutor\", 6)) {\n Log.e(\"GlideExecutor\", \"Request threw uncaught throwable\", th);\n }\n }", "public void removeExceptionStyle();", "public interface ExceptionHandler {\n public void onException(Exception e);\n}", "public void mo5385r() {\n throw null;\n }", "private void sendOldError(Exception e) {\n }", "void dispatchException(Throwable exception);", "public void inquiryError() {\n\t\t\n\t}", "void removeWebWideTrackingException(ExceptionInformation args);", "public InvalidEventHandlerException() {\n }", "@ExceptionHandler(value = {NullPointerException.class, \n \t\t\t\t\t\t RuntimeException.class, \n \t\t\t\t\t\t IOException.class})\n public ResponseEntity<Object> handleInternalServerErr(RuntimeException exception, WebRequest request) {\n return handleExceptionInternal(exception, \n \t\t\t\t\t\t\t \"Error interno en el servidor\", \n \t\t\t\t\t\t\t new HttpHeaders(), \n \t\t\t\t\t\t\t HttpStatus.INTERNAL_SERVER_ERROR, \n \t\t\t\t\t\t\t request);\n }", "private <T> T swallowing(T throwing) {\n return null;\n }", "@Override\n\tpublic boolean isBusinessException() {\n\t\treturn false;\n\t}", "public void handleNetworkException(WorkerChore chore, CallNetworkException e);", "protected void handleInternalException(Throwable internalException, CompilationUnitDeclaration unit, CompilationResult result) {\n super.handleInternalException(internalException, unit, result);\n if (unit != null) {\n removeUnresolvedBindings(unit);\n }\n }", "private Function<RejectedExecutionException, Throwable> handleRejectedExecution() {\n return ex -> {\n log.error(\"The executor cannot handle this request\");\n return new OutOfEmployeeException(ex);\n };\n }", "private void handleException(final Exception e) throws OsgpException {\n LOGGER.error(\"Exception occurred: \", e);\n if (e instanceof OsgpException) {\n throw (OsgpException) e;\n } else {\n throw new TechnicalException(COMPONENT_WS_PUBLIC_LIGHTING, e);\n }\n }", "private void handleInvokeException(Exception e) {\n log.warn(\"invoke()\", e);\n // Removed reset of setLegDetail - as a performance tuning we are\n // not returning leg details from train route api for the moment - SM (10/2009)\n // setLegDetail(null);\n }", "public void maybeThrow() {\n if (exception != null)\n throw this.exception;\n }", "void doCatch(Throwable t) throws Throwable;", "void exceptionCaught(Throwable cause) throws Exception;", "void exceptionCaught(Throwable cause) throws Exception;", "@ExceptionHandler(Exception.class)\n\t@ResponseStatus(HttpStatus.INTERNAL_SERVER_ERROR)\n\t@ResponseBody\n\tpublic ErrorModel handleInternal(final Exception ex, final WebRequest request) {\n\t\tlogger.error(ex);\n\t\treturn new ErrorModel(\"server_error\", ex.getMessage());\n\t}", "@Override\n\tpublic void onSkipInRead(Throwable t) {\n\t\t\n\t}", "static void m34964c(Throwable th) {\n Thread currentThread = Thread.currentThread();\n currentThread.getUncaughtExceptionHandler().uncaughtException(currentThread, th);\n }", "public static void test() throws Exception {\n\t}", "public void mo1964g() throws cf {\r\n }", "protected void onBadClient(Throwable e) {\n log.warn(\"Caught exception (maybe client is bad)\", e);\n }", "@Override\n\tpublic void processIOException(IOExceptionEvent exceptionEvent) {\n\t}", "public ExceptionFilter$$anonfun$doFilter$10(ExceptionFilter $outer, ObjectRef cause$1) {}", "void rejects_invalid_racer() {\n }", "void entry() throws Exception;" ]
[ "0.69662946", "0.6921727", "0.6914466", "0.6887818", "0.67787665", "0.6696086", "0.6611176", "0.65875816", "0.6572375", "0.64898765", "0.6446221", "0.6354924", "0.6256721", "0.6229735", "0.6229735", "0.6229735", "0.6229735", "0.6229735", "0.62259144", "0.62006587", "0.6190184", "0.6186895", "0.61788493", "0.6163709", "0.61409974", "0.6126992", "0.611781", "0.61043274", "0.60876346", "0.6041859", "0.6034085", "0.6022765", "0.6022141", "0.6021745", "0.60095507", "0.60020506", "0.598499", "0.59762883", "0.5972138", "0.595693", "0.59408134", "0.5922467", "0.5921936", "0.59031135", "0.58969975", "0.588357", "0.5881398", "0.58803153", "0.5859838", "0.58586586", "0.5858498", "0.5858498", "0.5815391", "0.5810826", "0.5802815", "0.57713056", "0.57683456", "0.5766451", "0.5751566", "0.57410586", "0.57407427", "0.5730986", "0.5725163", "0.57218814", "0.5713257", "0.57056075", "0.57056075", "0.57041645", "0.5698416", "0.5698326", "0.56952703", "0.56923556", "0.5686317", "0.568631", "0.5680099", "0.5676485", "0.5673639", "0.565919", "0.5654734", "0.5652232", "0.5647306", "0.5645057", "0.56262374", "0.5606988", "0.5606899", "0.5605833", "0.5603496", "0.5599996", "0.5594277", "0.5591627", "0.5591627", "0.5589863", "0.558757", "0.558198", "0.5580091", "0.557817", "0.55774736", "0.55773544", "0.557365", "0.55699253", "0.5569785" ]
0.0
-1
/ I want to create a static method called giveMeMyName it returns your name as a result it has no parameter
public static String giveMeMyName(){ return "Okan"; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "String simpleName();", "Name getName();", "String getName( String name );", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();" ]
[ "0.79703987", "0.76521504", "0.749551", "0.749053", "0.749053", "0.749053", "0.749053", "0.749053", "0.749053", "0.749053", "0.749053", "0.749053", "0.749053", "0.749053", "0.749053", "0.749053", "0.749053", "0.749053", "0.749053", "0.749053", "0.749053", "0.749053", "0.749053", "0.749053", "0.749053", "0.749053", "0.749053", "0.749053", "0.749053", "0.749053", "0.749053", "0.749053", "0.749053", "0.749053", "0.749053", "0.749053", "0.749053", "0.749053", "0.749053", "0.749053", "0.749053", "0.749053", "0.749053", "0.749053", "0.749053", "0.749053", "0.749053", "0.749053", "0.749053", "0.749053", "0.749053", "0.749053", "0.749053", "0.749053", "0.749053", "0.749053", "0.749053", "0.749053", "0.749053", "0.749053", "0.749053", "0.749053", "0.749053", "0.749053", "0.749053", "0.749053", "0.749053", "0.749053", "0.749053", "0.749053", "0.749053", "0.749053", "0.749053", "0.749053", "0.749053", "0.749053", "0.749053", "0.749053", "0.749053", "0.749053", "0.749053", "0.749053", "0.749053", "0.749053", "0.749053", "0.749053", "0.749053", "0.749053", "0.749053", "0.749053", "0.749053", "0.749053", "0.749053", "0.749053", "0.749053", "0.749053", "0.749053", "0.749053", "0.749053", "0.749053" ]
0.8580805
0
/ the whole pupose of writing a method that return a value so we can save the result after calling the method and use it somewhere else / Create a static method that double the value of a number it accepts one int parameter and return doubled value of that number
public static int doubleTheNum(int num){ //System.out.println("I'm going to double the value of "+num); num*=2; return num; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "double getDoubleValue2();", "double getDoubleValue1();", "public double utility();", "public double doubleValue();", "public abstract double get(int number);", "double getDoubleValue3();", "double getBasedOnValue();", "public abstract double compute(double value);", "double doubleTheValue(double input) {\n\t\treturn input*2;\n\t}", "double getValue();", "double getValue();", "double getValue();", "Double getDoubleValue();", "Double getValue();", "double doubleValue()\n {\n double top = 1.0 * numerator;\n double bottom=1.0*denominator;\n top=top/bottom;\n return top;\n\n }", "public static int doubleTheNumber(int num){\n System.out.println(\"double : \"+ num);\n int result = num *2;\n return result;\n }", "protected abstract double operation(double val);", "public abstract double getValue();", "public double returnValue(double x, double y);", "public double calculateValue () {\n return double1 * double2;\n }", "public abstract double evaluate(double value);", "public double evaluateAsDouble();", "public double doubleValue()\n\t\t{\n\t\t\t// Converts BigIntegers to doubles and then divides \n\t\t\treturn (numerator.doubleValue()*1)/denominator.doubleValue();\n\t\t}", "double getRealValue();", "public double getValue();", "double get();", "private static double f(double x) {\n\t\treturn x;\n\t}", "public Double getResult();", "public double getDouble();", "public abstract double value(Instance output, Instance example);", "public Double visit (NumberArgument aArg)\n {\n return aArg.getValue ();\n }", "void multiply(double value);", "public abstract double calcular();", "public Double call() {\n double pi = 16 * atan(1.0/5.0) - 4 * atan(1.0/239.0);\r\n \r\n try {\r\n // Sleep for 1 second to simulate a long running task\r\n Thread.sleep(1000);\r\n }\r\n catch (InterruptedException e) {\r\n e.printStackTrace();\r\n }\r\n \r\n return pi;\r\n }", "public abstract double getasDouble(int tuple, int val);", "public double getDoubleValue()\n {\n return (double) getValue() / (double) multiplier;\n }", "double test(double a){\n System.out.println(\"double a: \"+a);\n return a*a;\n }", "double getValue(int id);", "public double doubleValue() {\r\n return (double) intValue();\r\n }", "public final synchronized double getDouble(int parameterIndex) \n throws SQLException\n {\n return getCallableStatement().getDouble(parameterIndex);\n }", "double apply(final double a);", "@Override\n\tdouble f(double x) {\n\t\treturn x;\n\t}", "@Override\n\tpublic double compute(double input) {\n\t\treturn input;\n\t}", "public ResultDouble(double value) {\r\n\t\tthis.value = value;\r\n\t}", "static double add(double a, double b){\nreturn a+b;\n}", "public double getValue(){\n value*=100;\n value = Math.floor(value);\n value/=100;//returns to hundredths place\n return value;\n }", "@VTID(14)\r\n double getValue();", "double getSalario();", "double calculatePrice();", "public double getloanAmount( double loanAmount) {\nreturn loanAmount;\n}", "public int sumDouble(int a, int b) {\n int sum = a + b;\n if (a == b){\n sum *= 2;\n }\n\n return sum; \n}", "double d();", "public double square( double doublevalue){\n System.out.printf(\"\\nCalled square with double arguments: %f\\n\", doublevalue);\n return doublevalue * doublevalue;\n }", "public Integer getReturnedDoubleNumber() {\n\t\treturn this.theNumber * 2;\n\t}", "public double getResult() {\n\t\treturn result; // so that skeleton code compiles\n\t}", "public static double inputDouble() {\n Scanner scan = new Scanner(System.in);\n System.out.println(\"Enter dollar amount\");\n double input = scan.nextDouble();\n if (input > 1000000.0 || input < 0.0) {\n System.out.println(\"Sorry, try again\");\n return inputDouble();\n }else {\n return input;\n\n }\n\n }", "public double nextDouble() {\n\tdouble result = (d1 - 1.0) / (POW3_33 - 1.0);\n\tnextIterate();\n\treturn result;\n }", "public double doubleValue(int numDays)\n {\n double amount = 0;\n \n for(int j = 0; j < numDays; j++)\n {\n amount = Math.pow(j, 2);\n \n } \n \n System.out.println(amount);\n return amount;\n }", "@Override\n public double calculate(double input)\n {\n return input/getValue();\n }", "public abstract double computeValue(Density density);", "private double _doFunction(final double input1, final double input2) {\r\n double result;\r\n switch (_function) {\r\n case _EXP:\r\n result = Math.exp(input1);\r\n break;\r\n case _LOG:\r\n result = Math.log(input1);\r\n break;\r\n case _MODULO:\r\n result = input1 % input2;\r\n break;\r\n case _SIGN:\r\n if (input1 > 0) {\r\n result = 1.0;\r\n } else if (input1 < 0) {\r\n result = -1.0;\r\n } else {\r\n result = 0.0;\r\n }\r\n break;\r\n case _SQUARE:\r\n result = input1 * input1;\r\n break;\r\n case _SQRT:\r\n result = Math.sqrt(input1);\r\n break;\r\n default:\r\n throw new InternalErrorException(\"Invalid value for _function private variable. \"\r\n + \"MathFunction actor (\" + getFullName() + \")\" + \" on function type \" + _function);\r\n }\r\n return result;\r\n }", "public double evaluate(double x);", "public abstract Double getMontant();", "void mo130799a(double d);", "public abstract double fct(double x);", "double getSquareNumber();", "public Double\n getDoubleValue() \n {\n return ((Double) getValue());\n }", "public static double getDouble() throws Exception {\n return getDouble(null);\n }", "public static double inputDouble()\n\t{\n\t\treturn(sc.nextDouble());\n\t}", "@Override\n public Double value(TypeOfValue value);", "public double getValue(){\n return (double) numerator / (double) denominator;\n }", "private double getValue() {\n return value;\n }", "abstract void calculate(double a);", "double getEDouble();", "public abstract Double getDataValue();", "public static double getDouble(Key key) {\n return getDouble(key, 0);\n }", "void mul(double val) {\r\n\t\tresult = result * val;\r\n\t}", "public double getValue()\r\n\t{\r\n\t\treturn (double) value;\r\n\t}", "double getPValue();", "public double getValue() {\n return (numeratorValue * multiplier) / (denominatorValue * divisor);\n }", "static double f(double x){\n \treturn Math.sin(x);\r\n }", "public native double __doubleMethod( long __swiftObject, double arg );", "public double getDoubleValue() {\n\t\treturn (this.numerator/1.0)/this.denominator;\n\t}", "protected abstract double doubleOp(double d1, double d2);", "double getResult() {\r\n\t\treturn result;\r\n\t}", "void setValue(double value);", "public double getDouble(String prompt) {\n do {\n try {\n String item = getToken(prompt);\n double f = Double.parseDouble(item);\n return f;\n }\n catch (NumberFormatException nfe) {\n System.out.println(\"Please input a number \");\n }\n } while (true);\n }", "public double getDouble(String prompt) {\n do {\n try {\n String item = getToken(prompt);\n double f = Double.parseDouble(item);\n return f;\n }\n catch (NumberFormatException nfe) {\n System.out.println(\"Please input a number \");\n }\n } while (true);\n }", "public static double getDouble() {\n while (!consoleScanner.hasNextDouble()) {\n consoleScanner.next();\n }\n return consoleScanner.nextDouble();\n }", "double function(double xVal){\n\t\tdouble yVal = xVal*xVal*xVal;\n\t\treturn yVal;\n\t}", "public abstract double calcSA();", "public double doubleValue() {\n return (double) value;\n }", "public Double randomDouble() {\n\n final Random random = new Random();\n return random.nextInt(100) / 100.0;\n }", "float getValue();", "float getValue();", "float getValue();", "public double getA();", "public abstract Double get(T first, T second);", "public abstract double read_double();", "double performeOperation(double argument1, double argument2);" ]
[ "0.7386488", "0.72867936", "0.7286578", "0.7166724", "0.71322507", "0.71260536", "0.7049915", "0.70462203", "0.7012522", "0.6928563", "0.6928563", "0.6928563", "0.6878865", "0.6876338", "0.675604", "0.6678685", "0.6677013", "0.66523325", "0.66162467", "0.65850556", "0.6578652", "0.6545293", "0.6541209", "0.6537231", "0.6531501", "0.6522214", "0.6472278", "0.64491796", "0.6434482", "0.643395", "0.6418426", "0.64163727", "0.6406483", "0.63966227", "0.63891804", "0.6378064", "0.6375252", "0.6351372", "0.63453484", "0.6231391", "0.6177688", "0.6108163", "0.60965216", "0.6093015", "0.6088446", "0.60791624", "0.60784364", "0.6063588", "0.6044831", "0.60103816", "0.6009706", "0.60014266", "0.59983045", "0.59981966", "0.5987348", "0.59793293", "0.5974486", "0.5970641", "0.5965902", "0.59645474", "0.5964459", "0.5960679", "0.59564924", "0.5954205", "0.59514886", "0.5946276", "0.5944864", "0.5941761", "0.59414124", "0.5922497", "0.5909875", "0.59000564", "0.5889826", "0.5887664", "0.5868817", "0.5866311", "0.5859144", "0.58346766", "0.5828305", "0.5826818", "0.58199203", "0.5799051", "0.57918525", "0.57589024", "0.5756788", "0.57548285", "0.57466567", "0.57466567", "0.57463026", "0.57381856", "0.57369745", "0.5736529", "0.5736093", "0.5734496", "0.5734496", "0.5734496", "0.5733527", "0.5730305", "0.57296026", "0.57292813" ]
0.70981395
6
No further instances allowed
private Fdtsucker() { super("fdtsucker"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private boolean isAllowed(ProcessInstance instance) {\r\n return true; // xoxox\r\n }", "private boolean isEmpty(){\n return (numInstances() == 0);\n }", "@Override\n public boolean isInstantiable() {\n return false;\n }", "public Instances notCoveredBy(Instances data) {\n\n Instances r = new Instances(data, data.numInstances());\n Enumeration enu = data.enumerateInstances();\n while (enu.hasMoreElements()) {\n\tInstance i = (Instance) enu.nextElement();\n\tif (resultRule(i) == -1) {\n\t r.add(i);\n\t}\n }\n r.compactify();\n return r;\n }", "private void notEligibleForRealMax() {\n eligibleForRealMax = false;\n }", "private boolean holds(Instance inst) {\n\t\n if(numInstances() == 0)\n\treturn false;\n\n for(int i = 0; i < numAttributes(); i++){\n\tif(i != classIndex() && !holds(i, inst.value(i)))\n\t return false;\n }\n return true;\n }", "public IllegalConnectionCheck() {\n listener = new LinkedHashSet<CheckListener>();\n active = true;\n }", "private void notEligibleForRealMin() {\n eligibleForRealMin = false;\n }", "public boolean action_allowed(){\r\n\t\treturn action_holds.size()==0;\r\n\t}", "boolean hasInstance();", "public boolean isInstantiationAllowed(Class cl) {\r\n\t\tif (_sess.isNew())\r\n\t\t\treturn false;\r\n\t\tBoolean bAllowed = (Boolean) _sess.getAttribute(_reflectionallowedattribute);\r\n\t\tif (bAllowed != null && !bAllowed.booleanValue())\r\n\t\t\treturn false;\r\n\t\treturn super.isInstantiationAllowed(cl);\r\n\t}", "public abstract boolean isNextBlocked();", "private boolean noVacancy() {\r\n\t\t\treturn removed = false;\r\n\t\t}", "protected boolean asEaten() {\n return false;\n }", "private Validations() {\n\t\tthrow new IllegalAccessError(\"Shouldn't be instantiated.\");\n\t}", "@Override\n\tprotected boolean canDespawn() {\n\t\treturn false;\n\t}", "public boolean canDespawn()\n {\n return false;\n }", "@java.lang.Override\n public boolean hasInstance() {\n return stepInfoCase_ == 5;\n }", "public boolean verifyNoInactives() {\n\t\treturn !btnInactives.isEnabled();\n\n\t}", "@java.lang.Override\n public boolean hasInstance() {\n return stepInfoCase_ == 5;\n }", "private int calculateAllowedInstances() throws Exception {\n int maxAllowed = -1;\n\n CloudStackAccount ourAccount = getCurrentAccount();\n\n if (ourAccount == null) {\n // This should never happen, but\n // we will return -99999 if this happens...\n return -99999;\n }\n\n // if accountType is Admin == 1, then let's return -1\n if (ourAccount.getAccountType() == 1)\n return -1;\n\n // -> get the user limits on instances\n // \"0\" represents instances:\n // http://download.cloud.com/releases/2.2.0/api_2.2.8/user/listResourceLimits.html\n List<CloudStackResourceLimit> limits = getApi().listResourceLimits(null, null, null, null, \"0\");\n if (limits != null && limits.size() > 0) {\n maxAllowed = (int)limits.get(0).getMax().longValue();\n if (maxAllowed == -1)\n return -1; // no limit\n\n EC2DescribeInstancesResponse existingVMS = listVirtualMachines(null, null, null);\n EC2Instance[] vmsList = existingVMS.getInstanceSet();\n return (maxAllowed - vmsList.length);\n } else {\n return 0;\n }\n }", "@Override\r\n\tpublic boolean isValid() {\n\t\treturn false;\r\n\t}", "public boolean isValid() {\n return instance != null;\n }", "@Override\n\tpublic boolean isValid() {\n\t\treturn false;\n\t}", "@Override\n\tpublic boolean isValid() {\n\t\treturn false;\n\t}", "@Override\n\tpublic boolean isValid() {\n\t\treturn false;\n\t}", "@RequiresLock(\"SeaLock\")\r\n protected void dependentInvalidAction() {\r\n // by default do nothing\r\n }", "private boolean removePermitted(Collection removeInstances) {\n for (Object removeInstance : removeInstances) {\n Entity next = (Entity) removeInstance;\n if (!removePermitted(next.getMetaClass()))\n return false;\n }\n return true;\n }", "@Override\n\t\tpublic boolean isValid() {\n\t\t\treturn false;\n\t\t}", "@Override\r\n\tpublic void list_invalidParent() throws Exception {\n\t\tif (JavastravaApplicationConfig.STRAVA_ALLOWS_CHALLENGES_ENDPOINT) {\r\n\t\t\tsuper.list_invalidParent();\r\n\t\t}\r\n\t}", "void noNewLoans();", "@Override\r\n\tpublic void list_validParentNoChildren() throws Exception {\n\t\tif (JavastravaApplicationConfig.STRAVA_ALLOWS_CHALLENGES_ENDPOINT) {\r\n\t\t\tsuper.list_validParentNoChildren();\r\n\t\t}\r\n\t}", "boolean hasInstantiatePermission();", "public boolean canDespawn()\n {\n return true;\n }", "public boolean isLegal() {\n return !this.isBroken() && (this.getId() >= 0 || !this.isExisted());\n }", "public void verifyNoMatching(AcBatchFlight e)\n {\n }", "@Override\n\tpublic boolean rejectIt() {\n\t\treturn false;\n\t}", "private boolean hasInfiniteAge() {\n\t\treturn (maximum_age < 0);\n\t}", "public void reject(){\n ArrayList<User> u1 = new ArrayList<User>();\n u1.addAll(Application.getApplication().getNonValidatedUsers());\n u1.remove(this);\n\n Application.getApplication().setNonValidatedUsers(u1);\n }", "boolean hasResMineInstanceID();", "private boolean checkAppInstanceOwnership(){\n\n\t\ttry {\n\t\t\t\n\t\t\t\n\t \tif(getUser() != null){\n\t \t\t\n\t \t\tif(getUser().getRole().equalsIgnoreCase(UserRoles.admin.toString()))\n\t \t\t\treturn true;\n\t \t\telse{\n\t \t\t\t\n\t\t\t\t\tAppInstance app = AHEEngine.getAppInstanceEntity(Long.valueOf(appinst));\n\t \t\t\t\t\t\t\t\t\n\t \t\t\tif(app != null){\n\t \t\t\t\t\n\t \t\t\t\tif(app.getOwner().getId() == getUser().getId())\n\t \t\t\t\t\treturn true;\n\t \t\t\t\telse{\n\t \t\t\t\t\tsetStatus(Status.CLIENT_ERROR_FORBIDDEN);\n\t \t\t\t\t\treturn false;\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}\n\t \t\t\n\t \t}\n\t\t\t\n\t\t} catch (NumberFormatException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t} catch (AHEException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\n\t\tsetStatus(Status.CLIENT_ERROR_FORBIDDEN);\n \treturn false;\n }", "@Override\n\t\tpublic boolean isInvalid() {\n\t\t\treturn false;\n\t\t}", "private ObjectMacroFront() {\n\n throw new InternalException(\"this class may not have instances\");\n }", "private boolean onlyInstance(){\n File dir1 = new File (\".\");\n String location=\"\";\n\n try{\n location = dir1.getCanonicalPath();\n } catch (IOException e) {\n }\n File temp = new File(location+\"\\\\holder.tmp\");\n\n if (!temp.exists())\n return true;\n else\n {\n int result = JOptionPane.showConfirmDialog(null,\n \"Instance of TEWIN already running (or at least I think it is)!\\n\" +\n \"Click YES to load anyway, or NO to exit\",\"I think I'm already running\",\n JOptionPane.YES_NO_OPTION);\n if(result == JOptionPane.YES_OPTION)\n {\n temp.delete();\n return true;\n }else\n return false;\n }\n \n }", "public Boolean isProhibited() {\n throw new NotImplementedException();\n }", "public void terminateAllRemainingInstances() {\n for (Iterator<MemberContext> iterator = activeMembers.iterator(); iterator.hasNext(); ) {\n MemberContext member = iterator.next();\n iterator.remove();\n terminateForcefully(member.getMemberId());\n }\n\n // Forcefully deleting remaining pending members\n for (Iterator<MemberContext> iterator = pendingMembers.iterator(); iterator.hasNext(); ) {\n MemberContext member = iterator.next();\n iterator.remove();\n terminateForcefully(member.getMemberId());\n }\n\n /// Forcefully deleting remaining termination pending members\n for (Iterator<MemberContext> iterator = terminationPendingMembers.iterator(); iterator.hasNext(); ) {\n MemberContext member = iterator.next();\n // Remove the current element from the iterator and the list.\n iterator.remove();\n terminateForcefully(member.getMemberId());\n }\n\n\n // Forcefully deleting remaining obsolete members\n for (Map.Entry<String, MemberContext> entry : obsoletedMembers.entrySet()) {\n MemberContext ObsoleteMemberContext = entry.getValue();\n obsoletedMembers.remove(entry.getKey());\n terminateForcefully(ObsoleteMemberContext.getMemberId());\n }\n }", "public boolean isInhibited() {\n return inhibited;\n }", "@java.lang.Override\n public boolean hasInstantiatePermission() {\n return instantiatePermission_ != null;\n }", "public boolean canCreateAnother() {\n\t\treturn new Date(startDate.getTime() + duration + cooldown)\n\t\t\t\t.before(new Date());\n\t}", "public boolean isVacant() {\r\n\treturn !isOccupied() || !isAvailable();\r\n }", "default boolean isSharded() {\n return false;\n }", "private void ensureScopeNotSet() {\n if (this.instance != null) {\n binder.addError(source, ErrorMessages.SINGLE_INSTANCE_AND_SCOPE);\n return;\n }\n\n if (this.scope != null) {\n binder.addError(source, ErrorMessages.SCOPE_ALREADY_SET);\n }\n }", "@Override\n\tpublic Instances getInstances() {\n\t\treturn null;\n\t}", "public void notAlive() {\n\n for (var i = ownedAnimals.size() - 1; i >= 0; i--) {\n if (ownedAnimals.get(i).healthPoints <= 0) {\n System.out.println(\"The \"\n + ownedAnimals.get(i).type\n + \" \" + ownedAnimals.get(i).animalName\n + \" died\");\n ownedAnimals.remove(i);\n\n\n }\n\n\n }\n }", "private boolean isIllegalTokenCollectionForRuleOne(int elapsedTimeInSeconds) {\n int interval = elapsedTimeInSeconds / 10;\n int intervalModTwo = interval % 2;\n return intervalModTwo == 0;\n }", "private boolean isBlocked() {\n return block_state <= 1;\n }", "public boolean notAlive() {\r\n\r\n if (LOG.isLoggable(Level.FINEST)) {\r\n LOG.finest(\"notAlive ( ) called \");\r\n }\r\n\r\n return !alive();\r\n }", "public boolean isDontCare(){\n return hasDontCare;\n }", "boolean isLimited();", "@Override\n\tpublic long countMemberExcep() {\n\t\treturn 0;\n\t}", "public boolean isAllowed() {\n \t\treturn isAllowed;\n \t}", "public boolean isEffective() {\n return !this.isBroken() && !this.isExisted() && this.getId() < 0;\n }", "public boolean isOverPaymentAllowed() {\n\t\treturn false;\n\t}", "@Override\r\n public boolean isSafe() {\n return false;\r\n }", "public InstanceOverflowException() {\n\t\tsuper();\n\t}", "public boolean canRespawnHere()\n {\n return false;\n }", "@Override\n public boolean active() {\n return false;\n }", "private ObjActiveNotPlanned() {\n\t\tsuper(\"OBJ_ACTIVE_NOT_PLANNED\", Wetrn.WETRN);\n\n\t\t// Initialise data type\n\t\tgetDataType();\n\t}", "@Override public boolean isValidated()\n{\n if (location_set.size() == 0 || !have_join) return false;\n\n return true;\n}", "private DiscretePotentialOperations() {\r\n\t}", "@Override\r\n\tpublic StateBruceDanner swallowSubstance() {\n\t\treturn NON_CONTAMINED;\r\n\t}", "public void isDeceased(){\r\n\t\t//here is some code that we do not have access to\r\n\t}", "private void clearBlocked() {\n\n blocked_ = false;\n }", "private ClassInstance checkClassInstanceDefinition(ParseTreeNode instanceNode) {\r\n \r\n instanceNode.verifyType(CALTreeParserTokenTypes.INSTANCE_DEFN);\r\n \r\n ParseTreeNode optionalCALDocNode = instanceNode.firstChild();\r\n optionalCALDocNode.verifyType(CALTreeParserTokenTypes.OPTIONAL_CALDOC_COMMENT);\r\n \r\n ParseTreeNode instanceNameNode = optionalCALDocNode.nextSibling();\r\n //do most of the checking for the part of the instance declaration that occurs between the \"instance\" and \"where\" keywords. \r\n ClassInstance classInstance = resolveInstanceName (instanceNameNode);\r\n \r\n ParseTreeNode instanceMethodListNode = instanceNameNode.nextSibling();\r\n instanceMethodListNode.verifyType(CALTreeParserTokenTypes.INSTANCE_METHOD_LIST);\r\n \r\n TypeClass typeClass = classInstance.getTypeClass();\r\n \r\n Set<String> instanceMethodNamesSet = new HashSet<String>();\r\n \r\n for (final ParseTreeNode instanceMethodNode : instanceMethodListNode) {\r\n \r\n instanceMethodNode.verifyType(CALTreeParserTokenTypes.INSTANCE_METHOD);\r\n \r\n ParseTreeNode optionalInstanceMethodCALDocNode = instanceMethodNode.firstChild();\r\n optionalInstanceMethodCALDocNode.verifyType(CALTreeParserTokenTypes.OPTIONAL_CALDOC_COMMENT);\r\n \r\n ParseTreeNode instanceMethodNameNode = optionalInstanceMethodCALDocNode.nextSibling();\r\n instanceMethodNameNode.verifyType(CALTreeParserTokenTypes.VAR_ID); \r\n String instanceMethodName = instanceMethodNameNode.getText(); \r\n \r\n if (!instanceMethodNamesSet.add(instanceMethodName)) {\r\n //each instance method can be defined only once\r\n compiler.logMessage(new CompilerMessage(instanceMethodNameNode, new MessageKind.Error.MethodDefinedMoreThanOnce(instanceMethodName, classInstance.getNameWithContext())));\r\n continue; \r\n }\r\n \r\n ClassMethod classMethod = typeClass.getClassMethod(instanceMethodName);\r\n if (classMethod == null) {\r\n //instance method must first be declared by the type class that the instance is an instance of\r\n compiler.logMessage(new CompilerMessage(instanceMethodNameNode, new MessageKind.Error.MethodNotDeclaredByClass(instanceMethodName, typeClass.getName().getQualifiedName())));\r\n continue;\r\n }\r\n \r\n ParseTreeNode resolvingFunctionNameNode = instanceMethodNameNode.nextSibling();\r\n QualifiedName resolvingFunctionName = resolveResolvingFunction(resolvingFunctionNameNode);\r\n classInstance.addInstanceMethod(classMethod, resolvingFunctionName); \r\n }\r\n \r\n //check that the instance has an instance method defined for each class method in the type class that does not have\r\n //a default class method.\r\n if (typeClass.getNClassMethods() != instanceMethodNamesSet.size()) {\r\n \r\n //(String set) the class methods that are required to be implemented (because they have no defaults) but were not in this instance.\r\n Set<String> unimplementedMethodsNamesSet = new LinkedHashSet<String>();\r\n {\r\n for (int i = 0, nClassMethods = typeClass.getNClassMethods(); i < nClassMethods; ++i) {\r\n ClassMethod classMethod = typeClass.getNthClassMethod(i);\r\n if (!classMethod.hasDefaultClassMethod()) {\r\n unimplementedMethodsNamesSet.add(classMethod.getName().getUnqualifiedName());\r\n }\r\n }\r\n \r\n unimplementedMethodsNamesSet.removeAll(instanceMethodNamesSet);\r\n }\r\n \r\n for (final String methodName : unimplementedMethodsNamesSet) {\r\n \r\n // ClassInstanceChecker: the method {methodName} is not defined by the instance {classInstance.getNameWithContext()}.\r\n compiler.logMessage(new CompilerMessage(instanceNode, new MessageKind.Error.MethodNotDefinedByInstance(methodName, classInstance.getNameWithContext())));\r\n }\r\n }\r\n \r\n return classInstance;\r\n }", "@Override\n boolean canFail() {\n return true;\n }", "@Override\n\tpublic boolean validate() {\n\t\treturn false;\n\t}", "@Override\n\tpublic boolean validate() {\n\t\treturn false;\n\t}", "public boolean getCanSpawnHere()\r\n {\r\n return false;\r\n }", "boolean decrementPlannedInstances();", "public boolean canBeUsed(){\n\t\treturn !(this.isUsed);\n\t}", "@Override\n\tpublic boolean reserve() {\n\t\treturn false;\n\t}", "@Override\n\tpublic void selfValidate() {\n\t\t\n\t}", "private void checkForOverlappingInstances(ParseTreeNode moduleDefnNode) {\r\n moduleDefnNode.verifyType(CALTreeParserTokenTypes.MODULE_DEFN); \r\n checkForOverlappingInstances(moduleDefnNode, currentModuleTypeInfo, new HashSet<ModuleName>(), new HashMap<ClassInstanceIdentifier, ClassInstance>()); \r\n }", "@Override\r\n\tpublic boolean checkValidity() {\n\t\treturn false;\r\n\t}", "public static boolean hasInstance()\n\t{\n \tif(wdba == null)\n \t\treturn false;\n \telse\n \t\treturn true;\n\t}", "@Override\r\n\tpublic void list_validParent() throws Exception {\n\t\tif (JavastravaApplicationConfig.STRAVA_ALLOWS_CHALLENGES_ENDPOINT) {\r\n\t\t\tsuper.list_validParent();\r\n\t\t}\r\n\t}", "@Override\r\n public boolean isAccountNonExpired() {\r\n return true;\r\n }", "public boolean isAllowed() {\n return isAllowed;\n }", "public abstract int getMinInstances();", "@Override\n public boolean isAccountNonExpired () {\n return true;\n }", "public boolean hasInstantiatePermission() {\n return instantiatePermissionBuilder_ != null || instantiatePermission_ != null;\n }", "private void checkDestroyed() {\n if (destroyed) {\n IllegalStateException e = new IllegalStateException(\n String.format(\"Attempting to use destroyed token: %s\", this));\n throw e;\n }\n }", "private static void notPossible () {\r\n\t\tSystem.out.println(\"This operation is not possible\");\r\n\t}", "public abstract boolean isRestricted();", "public boolean canRespawnHere() {\n\t\treturn false;\n\t}", "public Boolean shouldAbandon() {\n return false;\n }", "@Test\r\n public void NegativeTestisMember1() {\r\n Assert.assertNotEquals(true, set1.isMember(10));\r\n }", "@Override\n public boolean isSingleton() {\n return false;\n }", "public boolean isDontCare() {\r\n\t\treturn dontCare;\r\n\t}", "@Override\n public boolean isAccountNonExpired() {\n return true;\n }", "@Override\n public boolean isAccountNonExpired() {\n return true;\n }" ]
[ "0.67594016", "0.6251031", "0.59999865", "0.5938237", "0.58646846", "0.585787", "0.5810515", "0.57986826", "0.5791139", "0.5781252", "0.5724278", "0.56935054", "0.56888044", "0.5685522", "0.56732947", "0.5647899", "0.5631567", "0.5616412", "0.561355", "0.55945885", "0.5539294", "0.5532164", "0.5523499", "0.55114", "0.55114", "0.55114", "0.5508974", "0.5499827", "0.54895437", "0.5460685", "0.5433688", "0.543326", "0.5425061", "0.5424733", "0.5420722", "0.54196995", "0.5414063", "0.54132307", "0.54094267", "0.5406843", "0.5402829", "0.5381395", "0.5376887", "0.5367288", "0.5359597", "0.5359153", "0.5348912", "0.5343423", "0.5330094", "0.5329687", "0.5328271", "0.5322795", "0.53212565", "0.5320647", "0.5319204", "0.5317152", "0.5311821", "0.5307472", "0.53056324", "0.5295491", "0.5290852", "0.5288976", "0.52843225", "0.52791584", "0.5275023", "0.5271431", "0.5266888", "0.5258411", "0.5253544", "0.5241194", "0.5239226", "0.5230106", "0.5225849", "0.5216513", "0.52152425", "0.5208282", "0.5208282", "0.5204208", "0.52026194", "0.5201823", "0.5196587", "0.51964474", "0.5194939", "0.51846397", "0.5182005", "0.5174942", "0.5170607", "0.5165236", "0.51611316", "0.5155053", "0.51548845", "0.5152556", "0.51484424", "0.5145009", "0.5142179", "0.51381177", "0.51380587", "0.5136529", "0.5135936", "0.51350015", "0.51350015" ]
0.0
-1
OnClick sur connexion serveur
public void onClickConnect(View v) { try{sonBoxeur.getListeSons().get(0).stop();}catch (Exception e){} if (mSocket.getPseudo() == null) { Intent activity = new Intent(this, Connexion.class); try{sonBulle.play();}catch(Exception e){} startActivity(activity); } else { AlertDialog.Builder builder = new AlertDialog.Builder(this); builder.setMessage("Vous êtes connecté en tant que " + mSocket.getPseudo() + ", voulez-vous vous vraiment vous déconnecter?").setTitle("Déconnexion"); builder.setPositiveButton("Oui", new DialogInterface.OnClickListener() { public void onClick(DialogInterface dialog, int id) { mSocket.deconnexion(); connectImageView.setImageResource(R.drawable.reseau_disconnect); } }); builder.setNegativeButton("Annuler", new DialogInterface.OnClickListener() { public void onClick(DialogInterface dialog, int id) { // User cancelled the dialog } }); dialog = builder.create(); dialog.show(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void onClick(View v) {\n HashMap<String, String> params = new HashMap<String, String>();\n params.put(\"username\", txt_id.getText().toString());\n params.put(\"password\", txt_mdp.getText().toString());\n params.put(\"registrationid\", getRegistrationId());\n\n NetworkResultProvider np = new NetworkResultProvider(CONNECT_REQUEST, \"connect\", params);\n np.setOnNewWsRequestListener(this);\n np.execute();\n }", "@Override\n public void onClick(View v) {\n mAndroidServer.listenForConnections(new AndroidServer.ConnectionCallback() {\n @Override\n public void connectionResult(boolean result) {\n if (result == true) {\n Toast.makeText(mActivity, \"SUCCESSFULLY CONNECTED TO A VIEWER\", Toast.LENGTH_LONG);\n }\n }\n });\n\n }", "public void onClick(View arg0) {\n\t\t\t\n\t\t\t\t\ttry {\n\t\t\t\t\t\tString ip = serverip.getText().toString();\n\t\t\t\t\t\tString port1 = port.getText().toString();\n\t\t\t\t\t\t\n\t\t\t\t\t\t soc1 = new SocketC(getApplicationContext(),ip,port1);\n\t\t\t\t\t\t \n\t\t\t\t\t\t\n\t\t\t\t\t\t Intent i1 = new Intent(SolveIt.this, Login.class);\n\t\t\t\t\t\t i1.putExtra(\"ipaddress\", ip);\n\t\t\t\t\t\t i1.putExtra(\"portnumber\", port1);\n\t\t\t\t\t\t startActivity(i1);\n\t\t\t\t\t\t \n\t\t\t\t\t\t \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\tToast.makeText(SolveIt.this,\"Server Not available\",Toast.LENGTH_LONG).show();\n\t\t\t\t\t}\n\t\t\t}", "public void onClick(View v) {\n\t\t\t\tif (networkAvailable()){\r\n\t\t\t\t\tIntent intent = new Intent(ClientesListTask.this, MapaClientes.class);\t\t\r\n\t\t\t\t\tintent.putExtra(\"idusuario\", idusuario);\t\t\t\t\t\t\r\n\t\t\t\t\tstartActivity(intent);\r\n\t\t\t\t}else{\r\n\t\t\t\t\tToast.makeText(ClientesListTask.this, \"Necesita conexion a internet para ver el mapa\", Toast.LENGTH_SHORT).show();\r\n\t\t\t\t}\t\t\t\t\r\n\t\t\t}", "@FXML\n\tpublic void xButtonConnectar(ActionEvent event) {\n\t\ttry {\n\t\t\tsocket = new Socket(\"localhost\", PORT);\n\t\t\txButtonConnectar.setDisable(true);\n\t\t\txButtonCalcular.setDisable(false);\n\t\t\txLabelInfo.setVisible(true);\n\t\t\t\n\t\t\t//recibir id\n\t\t\tobjetInputStream = new ObjectInputStream(socket.getInputStream());\n\t\t\tthis.idClient = (Integer) objetInputStream.readObject();\n\t\t\tSystem.out.println(\"(CLIENTE) cliente conectado [ID asignada: \"+idClient+\"]\");\n\t\t\tthis.xLabelID.setText(idClient+\"\");\n\t\t\t\n\t\t\t//enviar confirmacion\n\t\t\tobjetOutputStream = new ObjectOutputStream(socket.getOutputStream());\n\t\t\tobjetOutputStream.writeObject(new Boolean(true));\n\t\t\t\n\t\t\t\n\t\t} catch (Exception e) {\n\t\t\tSystem.out.println(\"(CLIENTE) No se ha podido conectar\");\n\t\t}\n\t}", "@Override\n\t\t\tpublic void onClick(View v)\n\t\t\t{\n\t\t\t\t \n\t\t\t\tString hostIP=m_spHostIP.getSelectedItem().toString();\n\t\t\t\tint port=55555;\n\t\t\t\tconnectHost(hostIP,port);\n\t\t\t}", "@Override\n\t\t\t\t\tpublic void onClick(View v) {\n\t\t\t\t\t\t\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tSendToServer(ph);\n\t\t\t\t\t\t} catch (UnsupportedEncodingException 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\t\n\t\t\t\t\t}", "@Override\n public void onClick(View view) {\n\n if (!fun.verificaConexion(TareasRealizadas.this)) {\n Toast toast = Toast.makeText(getApplicationContext(), R.string.necesita_conexion, Toast.LENGTH_LONG);\n toast.setGravity(Gravity.CENTER_HORIZONTAL, 0, 0);\n toast.show();\n startActivity(new Intent(android.provider.Settings.ACTION_WIFI_SETTINGS));\n } else {\n\n new OperacionesMiCobertura(TareasRealizadas.this,fps.Consultar_si_hay_registro(TareasRealizadas.this)).execute();\n }\n\n\n }", "@Override\n\tpublic void onClick(View v) {\n\t\t// TODO Auto-generated method stub\n\t\tint id = v.getId();\n\t\t\n\t\tif(id==R.id.connectbutton){\n\t\t\t/*I need to test the connection with the ip address*/\n\t\t\t/*for now ill just test the socket connection open and close\n\t\t\t * if it is a success ill start the game activity\n\t\t\t * if it is a fail then ill toast message saying try again\n\t\t\t */\n\t\t\tLog.d(null, \"connectbutton pushed\");\n\t\t\ttestConnection();\n\t\t\t\n\t\t}\n\t\telse if(id==R.id.startbutton){\n\t\t\tif(connection==true)\n\t\t\t\tstartGame(this,MainActivity.class);\n\t\t\telse\n\t\t\t\tToast.makeText(getApplicationContext(), \"Incorrect ip address try again\", Toast.LENGTH_SHORT).show();\n\n\t\t}\n\t\t\t\n\t}", "@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tsendDataToServer();\n\t\t\t}", "public void onClick(View v) {\n try {\n URL newurl = new URL(\"http://www.google.com\");\n //apppel à CallWebAPI\n CallWebAPI c = new CallWebAPI(texte);\n c.execute(newurl.toString());\n } catch (MalformedURLException e) {\n e.printStackTrace();\n }\n }", "@Override\n public void onClick(View v) {\n Intent intent=new Intent(Profil.this,Connexion.class);\n startActivity(intent);\n }", "@UiHandler(\"go\")\n void connexion(ClickEvent e) {\n loginField.setFocus(false);\n passwordField.setFocus(false);\n domains.setFocus(false);\n\n String login = loginField.getText();\n String password = passwordField.getText();\n login(login, password, domains.getValue(domains.getSelectedIndex()));\n\n\n }", "@Override\r\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t\tif (ConnectionActivity.isNetConnected(AdminLoginActivity.this)) {\r\n\r\n\t\t\t\t\tdoAdminLogin();\r\n\r\n\t\t\t\t} else {\r\n\t\t\t\t\td.showSingleButtonDialog( AdminLoginActivity.this,\r\n\t\t\t\t\t\t\t\"Please enable your internet connection\");\r\n\t\t\t\t}\r\n\t\t\t}", "@Override\n\t\t\t\t\tpublic void onClick(View v) {\n\t\t\t\t\t\tapp.getMap().put(Constants.IS_CONNECT_SERVER, true);\n\t\t\t\t\t\tuserDialog.dismiss();\n\t\t\t\t\t}", "@Override\n\t\tpublic void onClick(View v) {\n\t\t\tIoSeb ioSeb = new IoSeb();\n\t\t\tioSeb.ajoutParam(\"nomUser\", editNomUser.getText().toString());\n\t\t\tioSeb.ajoutParam(\"prenomUser\", editPrenomUser.getText().toString());\n\t\t\tioSeb.ajoutParam(\"motDePasse\", editMotDePasse.getText().toString());\n\t\t\tioSeb.outputSeb(UrlScriptsPhp.urlLireValiderIdEtServiceUser,\n\t\t\t\t\tnew String[] { \"idUser\", \"service\" },\n\t\t\t\t\tgetApplicationContext(), handlerValiderUser);\n\t\t}", "@Override\n\tpublic void onClick(View v) {\n\t\tswitch (v.getId()) {\n\t\tcase R.id.bt_click:\n\t\t\tMyTestHttpTask task=new MyTestHttpTask();\n//\t\t\tRequestCourierLogin login = new RequestCourierLogin();\n//\t\t\tlogin.setUserName(\"张三\");\n//\t\t\tlogin.setPassword(\"123\");\n\t\t\ttask.execute(MyConstants.API_SERVER+MyConstants.SYCEE_SERVICE_URL,null);\n\t\t\t\n\t\t\tbreak;\n\n\t\tdefault:\n\t\t\tbreak;\n\t\t}\n\t}", "public void onClick(View v) {\n setBottonSingleTest();\n viewPager.setCurrentItem(0);\n\n\n try{\n DatagramSocket socket = new DatagramSocket();\n byte[] buf = \"hello world\".getBytes();\n\n DatagramPacket packet = new DatagramPacket(buf,\n buf.length,\n InetAddress.getByName(\"255.255.255.255\"),\n 666);\n //给服务端发送数据\n socket.send(packet);\n socket.close();\n }catch (IOException e){\n System.out.println(e);\n }\n }", "@Override\n\t public void onClick(View v) {\n\t \t SendReqToPebble();\n\t }", "private void connectButtonListener() {\n JButton connectButton = gui.getButton_Connect();\n\n ActionListener actionListener = (ActionEvent actionEvent) -> {\n connectButton.setEnabled(false);\n establishServerConnection();\n };\n\n connectButton.addActionListener(actionListener);\n }", "@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tLog.d(TAG,\"btnConnect OnClick()...\");\n\t\t\t\twhatIShouldChoose();\n\t\t\t}", "@Override\n public void onClick(View v) {\n switch (v.getId()) {\n case R.id.tv_register:\n Intent intent = new Intent(this, RegisterActivity.class);\n startActivity(intent);\n break;\n case R.id.button_login:\n String username = userName.getText().toString();\n String password = passWord.getText().toString();\n String url = \"http://192.168.1.192:8080/jeesite/appUser/login?phone=\"+username+\"&password=\"+password;\n new RegisterAsyncTask(this).execute(url);\n break;\n }\n }", "@Override\n public void onClick(View v) {\n toonSessie();\n }", "@Override\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t\tIntent intent = new Intent(SettingsActivity.this,\n\t\t\t\t\t\tServerIPActivity.class);\n\t\t\t\tstartActivity(intent);\n\t\t\t}", "@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tCommandResult commandResult = ShellUtil.execCommand(cmds, true, true);\n\t\t\t\ttv_result.setText(\"adb connect \" + getIp() + \":5555\");\n\t\t\t\t// System.out.println(commandResult.responseMsg);\n\t\t\t}", "@Override\r\n \t\t\tpublic void onClick(View v) {\n \t\t\t\tIntent browseIntent = new Intent( Intent.ACTION_VIEW , Uri.parse(urlStr) );\r\n startActivity(Intent.createChooser(browseIntent, \"Connecting...\"));\r\n \t\t\t}", "public void onClick(View arg0)\n\t\t{\n serverIntent = new Intent(BloothPrinterActivity.this, DeviceListActivity.class);\n startActivityForResult(serverIntent, REQUEST_CONNECT_DEVICE);\n\t\t}", "@Override\r\n public void onClick(View v){\n RequestUrl(\"led1\");\r\n }", "@Override\r\n public void onClick(View v){\n RequestUrl(\"led2\");\r\n }", "public void serverb(View v){\n Intent i = new Intent(this, ConfActivity.class);\n i.putExtra(\"tipo\", \"server\");\n startActivity(i);\n }", "@Override\r\n\t\tpublic void onClick(View v) {\n\t\t\tbOnline = isNetworkPresent();\r\n\t\t\tLog.d(TAG, \"\" + bOnline);\r\n\t\t\tnetClient = new AsyncHttpClient();\r\n\r\n\t\t\tswitch (v.getId()) {\r\n\t\t\tcase R.id.search_my_inside_arduino_button:\r\n\t\t\t\tif (bOnline)\r\n\t\t\t\t\tsubnetUrl = IpSubnet.getIpSubnet().getSubnet()\r\n\t\t\t\t\t\t\t+ \"/sensorData/insideHome/all\";\r\n\t\t\t\tmSearchOutsideBtn.setEnabled(false);\r\n\t\t\t\tscanNet(v);\r\n\t\t\t\tbreak;\r\n\t\t\tcase R.id.search_my_outside_arduino_button:\r\n\t\t\t\tif (bOnline)\r\n\t\t\t\t\tsubnetUrl = IpSubnet.getIpSubnet().getSubnet()\r\n\t\t\t\t\t\t\t+ \"/sensorData/outsideHome/all\";\r\n\t\t\t\tmSearchInsideBtn.setEnabled(false);\r\n\t\t\t\tscanNet(v);\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}", "@Override\r\n\t\t\tpublic void onClick(View arg0) {\n\r\n\t\t\t\tif (ConnectionActivity.isNetConnected(TrainerHomeActivity.this)) {\r\n\r\n\t\t\t\t\tmakeClientMissed();\r\n\r\n\t\t\t\t} else {\r\n\t\t\t\t\td.showSingleButtonDialog(TrainerHomeActivity.this,\r\n\t\t\t\t\t\t\t\"Please enable your internet connection\");\r\n\t\t\t\t}\r\n\t\t\t}", "@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tTextHttp();\n\t\t\t}", "@Override\n\t\t\t\tpublic void onClick(View v) {\n\t\t\t\t\tIntent intent = new Intent(SetInfo.this, ClientGame.class);\n\t\t\t\t\tintent.putExtra(\"IPServer\", et.getText().toString());\n\t\t\t\t\tstartActivity(intent);\n\t\t\t\t}", "@Override\r\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\tserverConnection.setStellvertreter(verwalter, modul);\r\n\t\t\t}", "@Override\n\t\t\tpublic void onClick() {\n\t\t\t\tToast.makeText(TestRolateAnimActivity.this, \"正在跳转\", 1000).show();\n\t\t\t\tIntent intentSwitch = new Intent(TestRolateAnimActivity.this,com.zhy.socket.SocketClientDemoActivity.class); \n\t\t\t\tstartActivity(intentSwitch);\n\t\t\t\tSystem.out.println(\"1\");\n\t\t\t}", "@Override\r\n public void doAction(ActionEvent e)\r\n {\n NetworkUtil.openURL(NetworkUtil.WEBSITE_URL);\r\n }", "public void buttonPressed()\n {\n userInput.setOnClickListener( new View.OnClickListener()\n {\n\n public void onClick( View view )\n {\n Intent in = new Intent( FromServer1.this, UserInput.class );\n startActivity( in );\n }\n } );\n }", "public void onClick(View v) {\n\t\t\t\t// Read values from elements\n\t\t\t\tString username = inputUsername.getText().toString();\n\t\t\t\tString password = inputPassword.getText().toString();\n\n\t\t\t\tif(mBound==false){\n\t\t\t\t\t// We've lost connection to service, reconnect\n\t\t\t\t\tArrayList<Message> q = new ArrayList<Message>();\n\t\t\t\t\tq.add(new Message(getString(R.string.MESSAGE_lostconeectiontoservice), \"warning\"));\n\t\t\t\t\tdisplayMessages(q);\n\t\t\t\t\tdoBindService();\n\t\t\t\t\tLog.d(LOG_TAG,\"Not bound...\");\n\t\t\t\t\treturn;\n\t\t\t\t} else {\n\t\t\t\t\t//Give current (new data) to service\n\t\t\t\t\tmService.setUsername(username);\n\t\t\t\t\tmService.setPassword(password);\n\t\t\t\t\tmService.setServer(makeServerUrl());\n\t\t\t\t}\n\t\t\t}", "@Override\n\t\t\t\tpublic void onClick(View v) {\n\t\t\t\t\tmConnectedThread.write(\"send\");\n\t\t\t\t\tmConnectedThread.writeFile();\n\t\t\t\t}", "@Override\n\t\tpublic void onClick(View v) {\n\t\t\tmsgText.setText(null);\n\t\t\tsendEdit.setText(null);\n\t\t\tif(sppConnected || devAddr == null)\n\t\t\t\treturn;\n\t\t\ttry{\n\t\t\t btSocket = btAdapt.getRemoteDevice(devAddr).createRfcommSocketToServiceRecord(uuid);\n\t\t\t btSocket.connect();\n\t\t\t Log.d(tag,\"BT_Socket connect\");\n\t\t\t synchronized (MainActivity.this) {\n\t\t\t\tif(sppConnected)\n\t\t\t\t\treturn;\n\t\t\t\tbtServerSocket.close();\n\t\t\t\tbtIn = btSocket.getInputStream();\n\t\t\t\tbtOut = btSocket.getOutputStream();\n\t\t\t\tconected();\n\t\t\t}\n\t\t\t Toast.makeText(MainActivity.this,\"藍牙裝置已開啟:\" + devAddr, Toast.LENGTH_LONG).show();\n\t\t\t}catch(IOException e){\n\t\t\t\te.printStackTrace();\n\t\t\t\tsppConnected =false;\n\t\t\t\ttry{\n\t\t\t\t\tbtSocket.close();\n\t\t\t\t}catch(IOException e1){\n\t\t\t\t\te1.printStackTrace();\n\t\t\t\t}\n\t\t\t\tbtSocket = null;\n\t\t\t\tToast.makeText(MainActivity.this, \"連接異常\", Toast.LENGTH_SHORT).show();\n\t\t\t}\n\t\t}", "@Override\n public void onClick(View view) {\n String identification = etIdentification.getText().toString();\n String address = etAddress.getText().toString();\n Integer port = Integer.parseInt(etPort.getText().toString());\n\n launchChatActivity(identification, address, port);\n }", "@Override\n\t\tpublic void onClick(View v) {\n\t\t\tif (!packetReaderThreadStarted) {\n\t\t\t\ttitanoboaPacketReader.setPort(Integer\n\t\t\t\t\t\t.parseInt(((EditText) findViewById(R.id.portEditText))\n\t\t\t\t\t\t\t\t.getText().toString()));\n\n\t\t\t\t// start packet reader\n\t\t\t\tpacketReaderThread = new Thread(titanoboaPacketReader);\n\t\t\t\tpacketReaderThreadStarted = true;\n\t\t\t\tpacketReaderThread.start();\n\n\t\t\t\t// start UI updater\n\t\t\t\tuiUpdateHandler.removeCallbacks(uiUpdateTask);\n\t\t\t\tuiUpdateHandler.post(uiUpdateTask);\n\n\t\t\t\t// toggle button label to Disconnect\n\t\t\t\tButton connectButton = ((Button) v);\n\t\t\t\tconnectButton.setText(getResources().getString(\n\t\t\t\t\t\tR.string.disconnect_button_label));\n\n\t\t\t} else {\n\t\t\t\t// stop packet reader\n\t\t\t\tpacketReaderThreadStarted = false;\n\t\t\t\tpacketReaderThread.interrupt();\n\n\t\t\t\t// stop UI updater\n\t\t\t\tuiUpdateHandler.removeCallbacks(uiUpdateTask);\n\n\t\t\t\t// toggle button label to Connect\n\t\t\t\tButton connectButton = ((Button) v);\n\t\t\t\tconnectButton.setText(getResources().getString(\n\t\t\t\t\t\tR.string.connect_button_label));\n\t\t\t}\n\n\t\t}", "public void btn_Reshow_Server(ActionEvent e) throws Exception\n {\n }", "public void connexionServeur() {\r\n\r\n\t\tString serverIp = JOptionPane\r\n\t\t\t\t.showInputDialog(\"Entrez le nom du serveur.\");\r\n\t\ttry {\r\n\t\t\tsocket = new Socket(serverIp, 4456);\r\n\t\t\tlogger.info(\"Connexion au socket serveur.\");\r\n\r\n\t\t\tThread t = new Thread(new EnvoiPresence(socket));\r\n\t\t\tt.start();\r\n\r\n\t\t\tThread t2 = new Thread(new ReceptionListUser(socket, mainView));\r\n\t\t\tt2.start();\r\n\r\n\t\t} catch (ConnectException e) {\r\n\t\t\tJOptionPane.showMessageDialog(new Frame(),\r\n\t\t\t\t\t\"Le serveur Draw Me An Idea n'est pas lancé\", \"Erreur\", 1);\r\n\t\t\tSystem.exit(0);\r\n\t\t} catch (UnknownHostException e) {\r\n\r\n\t\t\te.printStackTrace();\r\n\t\t} catch (IOException e) {\r\n\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\r\n\t}", "@Override\n\tpublic void onClick(View view) {\n\t\tswitch (view.getId()) {\n\t\t\tcase R.id.titlebar_leftbutton : // WiFi模式 退出时,需要close掉 TCP连接\n\t\t\t\tdisconnectSocket();\n\t\t\t\tfinish();\n\t\t\t\tbreak;\n\t\t\tcase R.id.titlebar_rightbutton :\n\t\t\t\tButton btn_TitleRight = (Button) findViewById(R.id.titlebar_rightbutton);\n\t\t\t\t// Internet模式:“详情”界面\n\t\t\t\tif (btn_TitleRight.getText().equals(\n\t\t\t\t\t\tgetString(R.string.smartplug_title_plug_detail))) {\n\t\t\t\t\tIntent intent = new Intent();\n\t\t\t\t\tintent.putExtra(\"PLUGID\", mPlugId);\n\t\t\t\t\tintent.setClass(DetailSmartSteelyardActivity.this,\n\t\t\t\t\t\t\tPlugDetailInfoActivity.class);\n\t\t\t\t\tstartActivity(intent);\n\t\t\t\t} else {\n\t\t\t\t\t// WiFi直连:“重选”界面\n\t\t\t\t\t// PubDefine.disconnect();\n\t\t\t\t\tdisconnectSocket();\n\t\t\t\t\tIntent intent = new Intent();\n\t\t\t\t\tintent.setClass(DetailSmartSteelyardActivity.this,\n\t\t\t\t\t\t\tAddSocketActivity2.class);\n\t\t\t\t\tstartActivity(intent);\n\t\t\t\t\tif (PubDefine.SmartPlug_Connect_Mode.WiFi != PubDefine.g_Connect_Mode) {\n\t\t\t\t\t\tfinish();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase R.id.btn_query :\n\t\t\t\tQuery_Gravity();\n\t\t\t\tbreak;\n\t\t\tcase R.id.btn_qupi :\n\t\t\t\tQupi_Gravity();\n\t\t\t\tbreak;\n\t\t\tdefault :\n\t\t\t\tbreak;\n\t\t}\n\t}", "@Override\n\tpublic void onClick(View v) {\n\t\tswitch (v.getId()) {\n\t\t\tcase R.id.btn_switch_dhcp:\n\t\t\t\tif (devIpInfo != null) {\n\t\t\t\t\tshowProgressDialog(\"\");\n\t\t\t\t\tisSwitch = true;\n\t\t\t\t\ttempdevIpInfo = devIpInfo;\n\t\t\t\t\tdevIpInfo.Net_DHCP = devIpInfo.Net_DHCP == 1 ? 0 : 1;\n\t\t\t\t\t// new SetIpConfigThread(appMain.getPlayerclient(),\n\t\t\t\t\t// Constants.UMID, Constants.user, Constants.password,\n\t\t\t\t\t// devIpInfo, handler).start();\n\t\t\t\t\tsendData(0);\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase R.id.back_btn:\n\t\t\t\t// startActivity(new Intent(this, AcRegister.class));\n\t\t\t\tfinish();\n\t\t\t\tbreak;\n\t\t\tcase R.id.menu_btn1:\n\t\t\t\tif (devIpInfo != null) {\n\t\t\t\t\tshowProgressDialog(\"\");\n\t\t\t\t\ttempdevIpInfo = devIpInfo;\n\t\t\t\t\tdevIpInfo.Net_IPAddr = etIp.getText().toString().trim();\n\t\t\t\t\tdevIpInfo.Net_Gateway = etGateway.getText().toString().trim();\n\t\t\t\t\tdevIpInfo.Net_Netmask = etNetMask.getText().toString().trim();\n\n\t\t\t\t\tsendData(0);\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase R.id.btn_async_cancel:\n\t\t\t\tif (asyncDialog != null)\n\t\t\t\t\tasyncDialog.dismiss();\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\tbreak;\n\t\t}\n\n\t}", "public void OnclickHandler(View view) throws Exception {\n \t\tint server_port = 9761;\n \t\tString server_ip = \"192.168.1.1\";\n \t\tswitch (view.getId()) {\n \t\t\tcase R.id.buttonForward:\n \t\t\t\t\n \t\t\t\tcommande[0] = 0x1;\n\t\t\t\tbreak;\n \t\t\tcase R.id.buttonBackward:\n \t\t\t\tcommande[0] = 0x2;\n \t\t\t\tbreak;\n \t\t\tcase R.id.buttonLeft:\n \t\t\t\tcommande[1] = 0x0;\n \t\t\t\tcommande[2] = 0x0;\n \t\t\t\tcommande[3] = 0x1;\n \t\t\t\tcommande[4] = 0x0;\n \t\t\t\tbreak;\n \t\t\tcase R.id.buttonStop:\n \t\t\t\tcommande[0] = 0x0;\n \t\t commande[1] = 0x0;\n \t\t commande[2] = 0x0;\n \t\t commande[3] = 0x0;\n \t\t commande[4] = 0x0;\n \t\t\t\tbreak;\n \t\t\tcase R.id.buttonRight:\n \t\t\t\tcommande[1] = 0x0;\n \t\t\t\tcommande[2] = 0x0;\n \t\t\t\tcommande[3] = 0x0;\n \t\t\t\tcommande[4] = 0x1;\n \t\t\t\tbreak;\n \t\t\tcase R.id.buttonUp:\n \t\t\t\tcommande[1] = 0x1;\n \t\t\t\tcommande[2] = 0x0;\n \t\t\t\tcommande[3] = 0x0;\n \t\t commande[4] = 0x0;\n \t\t\t\tbreak;\n \t\t\tcase R.id.buttonDown:\n \t\t\t\tcommande[1] = 0x0;\n \t\t\t\tcommande[2] = 0x1;\n \t\t\t\tcommande[3] = 0x0;\n \t\t commande[4] = 0x0;\n \t\t\t\tbreak;\n \t\t }\n \t\tsendUDPMessage(new String(commande),server_ip,server_port);\n \t\t \n \t}", "@Override\r\n public void onClick(View v) {\n String msg = ed_msg.getText().toString();\r\n try {\r\n\t\t\t\t\tsend(HOST, PORT, msg.getBytes());\r\n\t\t\t\t\t\r\n\t \tmHandler.sendMessage(mHandler.obtainMessage()); \r\n\t \tcontent =HOST +\":\"+ msg +\"\\n\";\r\n\t\t\t\t} catch (IOException 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 }", "public void connectToServerAction(ActionEvent actionEvent) {\n FXMLLoader fxmlLoader = new FXMLLoader();\n fxmlLoader.setLocation(getClass().getResource(\"ConnectionDialogWindow.fxml\"));\n\n Dialog<ButtonType> dialog = new Dialog<>();\n dialog.setTitle(\"Połącz do serwera\");\n dialog.setHeaderText(\"Uzupelnij dane\");\n\n try {\n dialog.getDialogPane().setContent(fxmlLoader.load());\n } catch (IOException e) {\n return;\n }\n dialog.getDialogPane().getButtonTypes().add(ButtonType.OK);\n dialog.getDialogPane().getButtonTypes().add(ButtonType.CANCEL);\n\n Optional<ButtonType> optionalType = dialog.showAndWait();\n optionalType.ifPresent(buttonType -> {\n ConnectionDialogController controller = fxmlLoader.getController();\n ConnectionDialogViewModel connectionDetails = controller.getConnectionDetails();\n connectToServer(connectionDetails);\n });\n }", "@Override\n public void onClick(View view) {\n createServer();\n Snackbar.make(view, \"Adding server done\", Snackbar.LENGTH_LONG)\n .setAction(\"Action\", null).show();\n\n }", "@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tvolverInicio();\n\t\t\t}", "@Override\n public void onClick(View view)\n {\n Intent intent = new Intent(getContext(), Detalles.class);\n // Enlace a la web de la noticia\n intent.putExtra(\"Enlace\", direccionDesarrollador);\n startActivity(intent);\n }", "@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tIntent i = new Intent(getApplicationContext(), Host_Login.class);\n\t\t\t\tstartActivity(i);\n\t\t\t}", "@Override\n public void onClick(View view) {\n send();\n }", "void connectionBtnFunction() {\n\t\ttry {\n\t\t\tif (connectBtn.getLabel() == \"Connect\") {\n\n\t\t\t\ttoConnect();\n\t\t\t\tconnectBtn.setLabel(\"Disconnect\");\n\n\t\t\t} else if (connectBtn.getLabel() == \"Disconnect\") {\n\n\t\t\t\tdisconnectSignal();\n\t\t\t\tconnectBtn.setLabel(\"Connect\");\n\t\t\t\tsocketToServer.close();\n\t\t\t\tSystem.exit(0);\n\n\t\t\t}\n\t\t} catch (Exception ee) {\n\t\t}\n\t}", "public void onClick(View v) {\n\t\t\t\tIntent openList = new Intent(MainActivity.this,\n\t\t\t\t\t\tListDivices.class);\n\t\t\t\tstartActivityForResult(openList, APPLY_CONNECTION);\n\t\t\t}", "@Override\n\t\t\tpublic void buttonClick(ClickEvent event) {\n\t\t\t\t\n\t\t\t\t\n\t\t\t\tUI.getCurrent().getNavigator().navigateTo(\"CliPantallaBusquedaExpedientes\");\t \n\t\t\t}", "@Override\n public void onClick(View view) {\n Intent browserIntent = new Intent(Intent.ACTION_VIEW, Uri.parse(\"http://sozialmusfest.scalingo.io/services\"));\n startActivity(browserIntent);\n }", "@Override\n public void onClick(View view) {\n switch (view.getId()) {\n //Login\n case R.id.buttonLogin:\n //Comprueba la conexion\n if (comprobarConexion()) {\n //Comprueba si ya hay un servicio iniciado\n if(!servicioIniciado) {\n Intent i = new Intent(getApplicationContext(), Localitzacio.class);\n i.putExtra(\"matricula\", matriculaEditText.getText().toString());\n Log.i(\"SI \", \"se abre el servicio\");\n startService(i);\n servicioIniciado = true;\n }\n } else {\n Log.i(\"NO \", \"se abre el servicio\");\n }\n break;\n //Salir\n case R.id.buttonSortir:\n Intent i = new Intent(getApplicationContext(), Localitzacio.class);\n stopService(i);\n btnStop.setEnabled(true);\n Log.i(\"CERRAR\",\"Se cierra el servicio\");\n break;\n }\n }", "public void onClick(ClickEvent event) {\n\t\t\t\tsendNameToServer();\n\t\t\t}", "void userPressConnectButton();", "@Override\n public void buttonClick(ClickEvent event) {\n \tgetUI().getNavigator().navigateTo(NAME + \"/\" + contenView);\n }", "@Override\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t\tWifiManager wm=(WifiManager)getSystemService(WIFI_SERVICE);\n\t\t\t\tif(wm.isWifiEnabled())\n\t\t\t\t{\n\t\t\t\t\tToast.makeText(MainActivity.this,\"WIFI:ON\", Toast.LENGTH_SHORT).show();\n\t\t\t\t\tWifiInfo wi=wm.getConnectionInfo();\n\t\t\t\t\tif(wi.getNetworkId()==-1)\n\t\t\t\t\t{\n\t\t\t\t\t\tToast.makeText(MainActivity.this,\"WIFI IS NOT CONNECT TO ANY DEVICE\", Toast.LENGTH_SHORT).show();\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\tToast.makeText(MainActivity.this,\"WIFI IS CONNECTED\", Toast.LENGTH_SHORT).show();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tToast.makeText(getApplicationContext(), \"WIFI IS OFF\", Toast.LENGTH_SHORT).show();\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}", "@Override\n public void onClick(View view) {\n sendRequest();\n }", "@Override\r\n public void onClick(View v) {\n consultarSesiones(sucursal.getId(),clienteID, fecha, beacon);\r\n }", "@Override\n public void onClick(View view) {\n Intent httpIntent = new Intent(Intent.ACTION_VIEW);\n httpIntent.setData(Uri.parse(\"http://bvmengineering.ac.in\"));\n\n startActivity(httpIntent);\n\n }", "@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tr.stop();\n\t\t\t\treceiFromZte r2 = new receiFromZte();\n\t\t\t\tr2.start();\n\t\t\t\tsendAckToZte connection2 = new sendAckToZte(\"B\",Connection.ipaddress);\n\t\t\t\tconnection2.SendAcknowledgmnet();\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void onClick(View v) {\n \tUri uri = Uri.parse(\"http://l-sls0483d.research.ltu.se/userdata/notes/\"+param1+\"/cchat.html\");\n \t\t\n \t\tIntent intent = new Intent(Intent.ACTION_VIEW, uri);\n \t\tstartActivity(intent);\n }", "@Override\n public void onClick(View view) {\n sendRequestAndPrintResponse();\n }", "@Override\n public void onClick(View v) {\n\n String url = \"https://club-omnisports-des-ulis.assoconnect.com/billetterie/offre/146926-a-adhesion-karate-2020-2021\";\n Intent i = new Intent(Intent.ACTION_VIEW);\n i.setData(Uri.parse(url));\n startActivity(i);\n\n }", "@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tIntent intent = new Intent(MainActivity.this, MyService.class);\n//\t\t\t\t// startService(intent);\n\t\t\t\tbindService(intent, conn, BIND_AUTO_CREATE);\n\n\t\t\t}", "@Override //Con esto se redirige a la DisplayActivity\n public void onClick(View v) {Intent goToDisplay = new Intent(context,DisplayActivity.class);\n\n /*Se añaden además otros dos parámetros: el id (para que sepa a cuál libro buscar)\n y el título (para ponerlo como título\n */\n goToDisplay.putExtra(\"ID\",id);\n goToDisplay.putExtra(\"titulo\", title);\n\n //Se inicia la DisplayActivity\n context.startActivity(goToDisplay);\n String url=null;\n goToDisplay.putExtra(\"http://http://127.0.0.1:5000/archivo/<ID>\", url);\n\n }", "public void conectar() {\n\t\tif (isOnline()) {\n\t\t\tregister_user();\n\n\t\t} else {\n\t\t\tToast notification = Toast.makeText(this,\n\t\t\t\t\t\"Activa tu conexión a internet\", Toast.LENGTH_SHORT);\n\t\t\tnotification.setGravity(Gravity.CENTER, 0, 0);\n\t\t\tnotification.show();\n\t\t\t//progreso.setVisibility(View.GONE);\n\t\t\tsetProgressBarIndeterminateVisibility(false);\n\t\t}\n\t}", "@Override\n\tpublic void onClick(View v) {\n\t\tswitch (v.getId()) {\n\t\tcase R.id.btnSendfeedback:\n\t\t\tif (isOnline()) {\n\t\t\t\tstryourEmail = etyourEmail.getText().toString().trim();\n\t\t\t\tstrYourFeedback = etyourFeedback.getText().toString().trim();\n\t\t\t\tstryourName = etyourName.getText().toString().trim();\n\n\t\t\t\tif (stryourName.length() != 0) {\n\t\t\t\t\tif (stryourEmail.length() != 0) {\n\t\t\t\t\t\tif (strYourFeedback.length() != 0) {\n\t\t\t\t\t\t\tnew DoNetworkOperations().execute();\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tetyourFeedback.setError(\"Give your Feedback!\");\n\t\t\t\t\t\t}\n\t\t\t\t\t} else {\n\t\t\t\t\t\tetyourEmail.setError(\"Give your Email\");\n\t\t\t\t\t}\n\n\t\t\t\t} else {\n\t\t\t\t\tetyourName.setError(\"Give your Name!\");\n\t\t\t\t}\n\t\t\t} else {\n\n\t\t\t\tToast.makeText(getApplicationContext(), \"No Internet!!!\",\n\t\t\t\t\t\tToast.LENGTH_SHORT).show();\n\t\t\t}\n\t\t\tbreak;\n\n\t\tcase R.id.btnCancelFeedback:\n\t\t\tfinish();\n\t\t\tbreak;\n\n\t\tcase R.id.backBtnFeedback:\n\t\t\tfinish();\n\t\t\tbreak;\n\n\t\tdefault:\n\t\t\tbreak;\n\t\t}\n\t}", "@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\trequest_type = WebServiceUrls.SA_GETSESSIONCHECKINS;\n\t\t\t\tdoRequest();\n\t\t\t}", "@Override\n public void onClick(View arg0) {\n ip = txt3.getText().toString();\n setWindow();\n }", "@Override\r\n\t\t\tpublic void onClick(View v)\r\n\t\t\t{\n\t\t\t\thost.setVisibility(View.GONE);\r\n\t\t\t\tConnector connector = Connector.getInstance(getContext());\r\n\t\t\t\tif(!connector.fillList(connectlist, getContext()))\r\n\t\t\t\t{\r\n\t\t\t\t\tUser.displayToast(getContext(), \"您的手机不支持蓝牙。\");\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tconnectlist.setVisibility(View.VISIBLE);\r\n\t\t\t}", "@Override\n public void onClick(View view) {\n\n Intent myIntent = new Intent(HostOrConnectActivity.this, HostActivity.class);\n\n HostOrConnectActivity.this.startActivity(myIntent);\n\n\n }", "public void actionPerformed(ActionEvent e) {\n\t\t\t\tif (server == null)\r\n\t\t\t\t\tlogin();\r\n\t\t\t}", "@Override\r\n\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\tif(e.getActionCommand().equals(b1))\r\n\t\t\t{\r\n\t\t\r\n\t\t\t\ttry{\r\n\t\t\t\t\tServerSocket server = new ServerSocket(7777);\r\n\t\t\t\t\tSystem.out.println(\"서버 준비\");\r\n\t\t\t\t\t\r\n\t\t\t\t\twhile(true)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\tSocket client = server.accept();\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\tOutputStream os = client.getOutputStream();\r\n\t\t\t\t\t\tDataOutputStream fos = new DataOutputStream(os); \r\n\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\tfos.close();\r\n\t\t\t\t\t\tos.close();\r\n\t\t\t\t\t\tclient.close();\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\r\n\t\t\t\t//l1.setText(\"하하하\");\r\n\t\t\t}\t\t\t\t\r\n\t\t}\r\n\t\t\r\n\t\t////\r\n\t}", "@Override\n\t\t\t\t\tpublic void onClick(View v) {\n\t\t\t\t\t\t// abrir a actibity de cadastro\n\n\t\t\t\t\t\tIntent cadastroTela = new Intent(\n\t\t\t\t\t\t\t\tgetApplicationContext(), CadastroActivity.class);// declara\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// a\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// tela\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// logado\n\n\t\t\t\t\t\t/**\n\t\t\t\t\t\t * colocar para entrar na tela de cadastro\n\t\t\t\t\t\t */\n\n\t\t\t\t\t\tstartActivity(cadastroTela);// vai para a proxima tela\n\n\t\t\t\t\t}", "public void sendLoginClickPing() {\n WBMDOmnitureManager.sendModuleAction(new WBMDOmnitureModule(\"reg-login\", ProfessionalOmnitureData.getAppNamePrefix(this), WBMDOmnitureManager.shared.getLastSentPage()));\n }", "@Override\n public void onClick(View view) {\n Intent browserIntent = new Intent(Intent.ACTION_VIEW, Uri.parse(\"http://sozialmusfest.scalingo.io/\"));\n startActivity(browserIntent);\n }", "public void actionPerformed(ActionEvent e) {\r\n\t\t\t\trealLogin(host.getText(), tf_name.getText());\r\n\t\t\t\td.dispose();\r\n\t\t\t}", "@Override\n public void onClick(View v) {\n Intent intent = new Intent(Server.this, RemoteService.class);\n // bind the same interface name\n intent.setAction(IRemoteService.class.getName());\n bindService(intent, mConnection, Context.BIND_AUTO_CREATE);\n\n intent.setAction(ISecondary.class.getName());\n bindService(intent, mSecondaryConnection, Context.BIND_AUTO_CREATE);\n\n mIsBound = true;\n mCallbackText.setText(\"Binding the Remote Service\");\n\n }", "@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\trennClient.logout();\n\t\t\t\trennClient.setLoginListener(new LoginListener() {\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void onLoginSuccess() {\n\t\t\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\t\tToast.makeText(TestRolateAnimActivity.this, \"登录成功\",\n\t\t\t\t\t\t\t\tToast.LENGTH_SHORT).show();\n\t\t\t\t\t\tloginBtn.setVisibility(View.GONE);\n\t\t\t\t\t\tlogoutBtn.setVisibility(View.VISIBLE);\n\t\t\t\t\t}\n\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void onLoginCanceled() {\n\t\t\t\t\t\tloginBtn.setVisibility(View.VISIBLE);\n\t\t\t\t\t\tlogoutBtn.setVisibility(View.GONE);\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t\trennClient.login(TestRolateAnimActivity.this);\n\t\t\t}", "@Override\n\tpublic void onClick(IClientContext context, IGuiElement emitter) throws Exception\n\t{\n PropertyAccessor accessor = PropertyAccessor.getInstance();\n Property ivrAdmin = accessor.getProperty(\n context, IVR_ADMIN_PROPERTY, context.getDataAccessor(), true\n );\n if (ivrAdmin != null && ivrAdmin.isSet())\n {\n IUrlDialog dialog = context.createUrlDialog(ivrAdmin.asString());\n dialog.enableNavigation(false);\n dialog.setModal(false);\n dialog.enableScrollbar(true);\n dialog.show(800, 600);\n }\n else\n {\n context.createMessageDialog(\"Could not launch IVR Admin\").show();\n }\n\t}", "private void jButton5ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton5ActionPerformed\r\n log(\"GRAY\", \"[Client ] - Connecting to server ...\");\r\n\r\n try {\r\n String host = JOptionPane.showInputDialog(\"Address:\", \"137.30.209.204\");\r\n\r\n if (host != null && connection.connect(host)) {\r\n // Client connected to the Server\r\n setTitle(\"ChatRSA - Client\");\r\n jButton5.setEnabled(false);\r\n jButton4.setEnabled(false);\r\n jButton6.setEnabled(true);\r\n jButton1.setEnabled(true);\r\n jTextField1.setEnabled(true);\r\n log(\"GREEN\", \"[Status ] - Connected !\");\r\n\r\n } else {\r\n ChatWindow.log(\"GRAY\", \"[Client ] - Cancelled\");\r\n }\r\n\r\n } catch (UnknownHostException ex) {\r\n ChatWindow.log(\"GRAY\", \"[ Error] - connection can not be established in this host.\");\r\n } catch (IOException ex) {\r\n ChatWindow.log(\"GRAY\", \"[ Error] - connection can not be established in this host.\");\r\n }\r\n }", "void onConnectedToWebService() {\n invalidateOptionsMenu();\n scenesFragment.setConnectStatusIndicator(status.OPEN);\n //mOBSWebSocketClient.getScenesList();\n }", "public void actionPerformed(ActionEvent e) {\n\t\tObject o = e.getSource();\n\t\t// if it is the Logout button\n\t\tif (o == logout) {\n\t\t\tclient.sendMessage(new Message(Constants.LOGOUT, \"\"));\n\t\t\treturn;\n\t\t}\n\t\tif (e.getActionCommand().equals(\"Disconnect\")) {\n\t\t\tclient.sendMessage(new Message(Constants.LOGOUT, \"\"));\n\t\t\tlogin.setActionCommand(\"Connect\");\n\t\t\tlogin.setText(\"Connect\");\n\t\t\treturn;\n\t\t}\n\n\t\tif (o == send || o == tf) {\n\t\t\tString msg = tf.getText();\n\t\t\tif (recipient.equals(\"\")) {\n\t\t\t\tclient.sendMessage(new Message(Constants.BROADCASTMESSAGE, msg + \"\\n\"));\n\t\t\t} else {\n\t\t\t\tclient.sendMessage(new Message(Constants.PRIVATEMESSAGE, recipient + \":\" + msg + \"\\n\"));\n\t\t\t}\n\t\t\ttf.setText(\"\");\n\t\t}\n\n\t\tif (o == login) {\n\t\t\t// ok it is a connection request\n\t\t\tString username = un.getText().trim();\n\t\t\tmySelf = username;\n\t\t\t// empty username ignore it\n\t\t\tif (username.length() == 0)\n\t\t\t\treturn;\n\t\t\t// empty serverAddress ignore it\n\t\t\tString server = tfServer.getText().trim();\n\t\t\tif (server.length() == 0)\n\t\t\t\treturn;\n\t\t\t// empty or invalid port numer, ignore it\n\t\t\tString portNumber = tfPort.getText().trim();\n\t\t\tif (portNumber.length() == 0)\n\t\t\t\treturn;\n\t\t\tint port = 0;\n\t\t\ttry {\n\t\t\t\tport = Integer.parseInt(portNumber);\n\t\t\t} catch (Exception en) {\n\t\t\t\treturn; // nothing I can do if port number is not valid\n\t\t\t}\n\n\t\t\tclient.connect(server, port, username);\n\t\t\tif (!client.start()) {\n\t\t\t\tmySelf = \"\";\n\t\t\t\treturn;\n\t\t\t}\n\t\t\ttf.setText(\"\");\n\t\t\t// disable login button\n\t\t\t// login.setEnabled(false);\n\t\t\tlogin.setText(\"Disconnect\");\n\t\t\tlogin.setActionCommand(\"Disconnect\");\n\t\t\t// enable the 2 buttons\n\t\t\t// logout.setEnabled(true);\n\t\t\t// disable the Server and Port JTextField\n\t\t\ttfServer.setEditable(false);\n\t\t\ttfPort.setEditable(false);\n\t\t\t// Action listener for when the user enter a message\n\t\t\ttf.addActionListener(this);\n\t\t}\n\t}", "public void onClick(View view) {\n switch (view.getId()) {\n case R.id.sign_in:\n if (hasInternetConnection()) {\n serverInterface = new ServerInterface();\n serverInterface.getAuthActivityAndTypedData(this, emailTyped, passwordTyped);\n serverInterface.followingFunction = Functions.AUTHENTIFIER;\n serverInterface.execute(\"\");\n signIn.setEnabled(false);\n }\n else {\n break;\n }\n break;\n default:\n break;\n }\n }", "@Override\n public void onClick(View view) {\n cliente.post(getActivity(), Helpers.URLApi(\"altausuariopassword\"), Helpers.ToStringEntity(json), \"application/json\", new AsyncHttpResponseHandler() {\n @Override\n public void onSuccess(int statusCode, Header[] headers, byte[] responseBody) {\n super.onSuccess(statusCode, headers, responseBody);\n\n // Respuesta\n JSONObject respuesta = Helpers.ResponseBodyToJSON(responseBody);\n\n try {\n // Guardamos el token del usuario\n Helpers.setTokenAcceso(getActivity(), respuesta.getJSONObject(\"usuario\").getString(\"token\"));\n\n // Guardamos el nombre del usuario\n Helpers.setNombre(getActivity(), respuesta.getJSONObject(\"usuario\").getString(\"nombre\"));\n\n // Obtenemos la imagen del usuario\n ObtenerImagenUsuario(respuesta.getJSONObject(\"usuario\").getString(\"imagen\"));\n }\n catch (Exception ex) { }\n }\n\n @Override\n public void onFailure(int statusCode, Header[] headers, byte[] responseBody, Throwable error) {\n super.onFailure(statusCode, headers, responseBody, error);\n\n // Mostramos el mensaje de error\n Helpers.MostrarError(getActivity(), \"No se ha podido volver a activar el usuario en Noctua\");\n }\n });\n }", "@Override\n public void onClick(View view)\n {\n Intent sendIntent = new Intent();\n // La accion es un envio a una aplicacion externa\n sendIntent.setAction(Intent.ACTION_SEND);\n // Enlace que vamos a enviar\n sendIntent.putExtra(Intent.EXTRA_TEXT, direccionAplicacion);\n // Se va a enviar un texto plano\n sendIntent.setType(\"text/plain\");\n\n // manda mensaje si no tiene aplicacion con la que compartir en el sistema\n Intent shareIntent = Intent.createChooser(sendIntent, \"no tengo aplicacion para compartir en emulador\");\n // Inicia la actividad compartir enlace de la noticia\n getContext().startActivity(shareIntent);\n }", "@Override\n public void onClick(View v) {\n switch(v.getId()) {\n\n case R.id.imgViewWebsite:\n website();\n break;\n\n case R.id.cont:\n website();\n break;\n\n }\n }", "@Override\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t\tif (_dataSource.size() == 0) {\n\t\t\t\t\tToast.makeText(getActivity(), \"Bạn phải chọn sản phẩm trước khi xác nhận\", Toast.LENGTH_SHORT)\n\t\t\t\t\t\t\t.show();\n\t\t\t\t} else {\n\t\t\t\t\tAlertDialog.Builder b = new AlertDialog.Builder(getActivity());\n\t\t\t\t\tb.setMessage(\"Bạn chắc chắn muốn xác nhận đơn đặt hàng?\");\n\t\t\t\t\tb.setPositiveButton(\"Có\", new DialogInterface.OnClickListener() {\n\t\t\t\t\t\t@Override\n\t\t\t\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\t\t\t\tsaveToServer();\n\t\t\t\t\t\t}\n\t\t\t\t\t});\n\t\t\t\t\tb.setNegativeButton(\"Không\", new DialogInterface.OnClickListener() {\n\n\t\t\t\t\t\t@Override\n\t\t\t\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\t\t\t\tdialog.cancel();\n\t\t\t\t\t\t}\n\t\t\t\t\t});\n\t\t\t\t\tb.create().show();\n\t\t\t\t}\n\t\t\t}", "public void connecting_screen() {\r\n\t\tclear_screen();\r\n\t\tJLabel connect = new JLabel(\"Connexion au serveur en cours, merci de patienter...\", SwingConstants.CENTER);\r\n\t\tconnect.setFont(new Font(\"Calibri\", Font.BOLD, 50));\r\n\t\tconnect.setBounds(0, 325, 1280, 60);\r\n\t\tthis.add(connect);\r\n\t}", "void onConnect();", "@Override\n\t\t\t\t\tpublic void onClick(View v) {\n\t\t\t\t\t\treplication();\n\t\t\t\t\t}", "@Override\n\t\tpublic void onClick(View v) {\n\t\t\tC2DMessaging.register(getBaseContext(), \"[email protected]\");\t\t\t\n\t\t}" ]
[ "0.73695636", "0.7238745", "0.7149707", "0.70598173", "0.700493", "0.6978328", "0.6925204", "0.67796105", "0.667654", "0.66582996", "0.66189384", "0.65721864", "0.6558663", "0.6539925", "0.65388775", "0.65258586", "0.65015996", "0.6481537", "0.6447356", "0.6438969", "0.6412755", "0.63984823", "0.63873744", "0.63869387", "0.6381805", "0.6372501", "0.63680285", "0.63353163", "0.6333453", "0.6327119", "0.63240767", "0.63144577", "0.6308615", "0.63051254", "0.6296833", "0.62958044", "0.6294941", "0.6268587", "0.6265026", "0.62407964", "0.62397724", "0.62076956", "0.6205621", "0.61943567", "0.6191707", "0.6179289", "0.6167764", "0.61620873", "0.6160963", "0.6149678", "0.6142401", "0.61416847", "0.6139288", "0.6129768", "0.6126108", "0.6114579", "0.6104015", "0.61037165", "0.61018586", "0.6093597", "0.6091165", "0.60832226", "0.6067107", "0.6065705", "0.6065677", "0.6061941", "0.6050576", "0.6047118", "0.60362256", "0.6029089", "0.602353", "0.60168713", "0.6006091", "0.59980625", "0.5990318", "0.59809315", "0.59666175", "0.5952676", "0.5950588", "0.5943886", "0.59367156", "0.5931855", "0.5918202", "0.5916033", "0.59120536", "0.5908973", "0.5907146", "0.5903217", "0.59023523", "0.5898313", "0.5882193", "0.5882044", "0.5872921", "0.5870464", "0.58690524", "0.58656365", "0.5863984", "0.5861527", "0.58537626", "0.58514935" ]
0.7105896
3
User cancelled the dialog
public void onClick(DialogInterface dialog, int id) { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void cancelDialog() {dispose();}", "public void cancel() { Common.exitWindow(cancelBtn); }", "@Override\n public void onCancel(DialogInterface dialog) {\n cancel(true);\n }", "@Override\n\t\t\t\t\tpublic void onCancel(DialogInterface dialog) {\n\t\t\t\t\t\tcancel(true);\n\t\t\t\t\t\tfinish();\n\t\t\t\t\t}", "@Override\n public void onClick(DialogInterface dialog, int arg1) {\n\t\t\t\t\t\t\t\tdialog.cancel();\n }", "@Override\n\t\t\t\t\t\tpublic void doCancel() {\n\t\t\t\t\t\t\tcommonDialog.dismiss();\n\t\t\t\t\t\t}", "@Override\n public void onClick(DialogInterface dialog,\n int which)\n {\n dialog.cancel();\n }", "@Override\n public void onClick(DialogInterface dialog,\n int which)\n {\n dialog.cancel();\n }", "@Override\n public void onClick(DialogInterface dialog,\n int which) {\n dialog.cancel();\n }", "void cancelButton_actionPerformed(ActionEvent e)\n\t{\n\t\tcloseDlg();\n }", "private void cancel(){\n\t\tSPSSDialog.instance = null;\n\t\thide();\n\t}", "@Override\n\t\t\t\t\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\t\t\t\t\tdialog.cancel();\n\t\t\t\t\t\t\t}", "@Override\n public void onClick(DialogInterface dialog, int which) {\n dialog.cancel();\n }", "@Override\n public void onClick(DialogInterface dialog, int which) {\n dialog.cancel();\n }", "@Override\n\t\tprotected void onCancelled() {\n\t\t\tsuper.onCancelled();\n\t\t\tdialog.dismiss();\n\t\t}", "@Override\n\t\tprotected void onCancelled() {\n\t\t\tsuper.onCancelled();\n\t\t\tdialog.dismiss();\n\t\t}", "@Override\r\n\t\t\t\t\tpublic void onCancel(DialogInterface dialog) {\r\n\t\t\t\t\t}", "@Override\n\t\t\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\t\t\tdialog.cancel();\n\t\t\t\t\t}", "public void onCancelClicked() {\n close();\n }", "@Override\r\n\t\t\t\t\t\t\t\t\t\tpublic void onClick(\r\n\t\t\t\t\t\t\t\t\t\t\t\tDialogInterface dialog,\r\n\t\t\t\t\t\t\t\t\t\t\t\tint which) {\n\t\t\t\t\t\t\t\t\t\t\tdialog.cancel();\r\n\t\t\t\t\t\t\t\t\t\t}", "@Override\n\t\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\t\t\n\t\t\t\t\tdialog.cancel();\n\t\t\t\t\t\n\t\t\t\t\tfinish();\n\t\t\t\t}", "@Override\n\t\t\t\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\t\t\t\tdialog.cancel();\n\t\t\t\t\t\t}", "@Override\n\t\t\t\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\t\t\t\tdialog.cancel();\n\t\t\t\t\t\t}", "@Override\n\t\t\t\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\t\t\t\tdialog.cancel();\n\t\t\t\t\t\t}", "@Override\n public void onClick(DialogInterface dialog, int which)\n {\n dialog.cancel();\n }", "@Override\n\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\tdialog.cancel();\n\t\t\t}", "@Override\n\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\tdialog.cancel();\n\t\t\t}", "@Override\r\n public void onClick(DialogInterface dialog, int which) {\n dialog.cancel();\r\n\r\n }", "@Override\n\t\t\t\t\tpublic void onCancel(DialogInterface dialog) {\n\t\t\t\t\t}", "@Override\r\n\t\t\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\t\t\tdialog.cancel();\r\n\t\t\t\t\t}", "@Override\n public void onClick(DialogInterface dialog, int which) {\n dialog.cancel();\n }", "@Override\n public void onClick(DialogInterface dialog, int which) {\n dialog.cancel();\n }", "@Override\n public void onClick(DialogInterface dialog, int which) {\n dialog.cancel();\n }", "@Override\n public void onClick(DialogInterface dialog, int which) {\n dialog.cancel();\n }", "@Override\n public void onClick(DialogInterface dialog, int which) {\n dialog.cancel();\n }", "public void handleCancel() {\n\t\tdialogStage.close();\n\t}", "@Override\n\t\t\tpublic void onClick(DialogInterface dialog, int which)\n\t\t\t{\n\t\t\t\tdialog.cancel();\n\t\t\t}", "@Override\n\t\t\t\t\t\tpublic void onCancel(DialogInterface dialog) {\n\t\t\t\t\t\t\tfinish();\n\t\t\t\t\t\t}", "@Override\n public void onClick(DialogInterface dialog, int id) {\n dialog.cancel();\n }", "@Override\n\t\tpublic void onCancel(DialogInterface dialog) {\n\t\t\t\n\t\t}", "@Override\r\n\tpublic void dialogCancelled(int dialogId) {\n\t\t\r\n\t}", "@Override\n\t\t\t\t\t\t\tpublic void onClick(View v) {\n\t\t\t\t\t\t\t\tdialog.cancel();\n\t\t\t\t\t\t\t}", "public void onClick(DialogInterface dialog, int which) {\n\n dialog.cancel();\n }", "public void onClick(DialogInterface dialog, int which) {\n\n dialog.cancel();\n }", "private void cancel() {\n\t\tfinish();\n\t}", "public void onClick(DialogInterface dialog, int which) {\n dialog.cancel();\n }", "@Override\r\n\tpublic void dialogControyCancel() {\n\r\n\t}", "@Override\n public void onCancel(DialogInterface arg0) {\n\n }", "@Override\n public void onClick(View v) {\n dialog.cancel();\n }", "@Override\n public void onClick(DialogInterface dialog, int id) {\n dialog.cancel();\n finish();\n }", "@Override\n public void onCancel(DialogInterface dialog) {\n finish();\n }", "@Override\n\tpublic void onCancel(DialogInterface dialog) {\n\t\tBase.car_v.wzQueryDlg = null;\n\t}", "private void cancel(){\n if(isFormEmpty()){\n finish();\n }else{\n // Confirmation dialog\n AlertDialog.Builder builder = new AlertDialog.Builder(this);\n\n builder.setTitle(getString(R.string.cancel_booking_creation_confirmation));\n // When users confirms dialog, end activity\n builder.setPositiveButton(android.R.string.ok, (dialog, which) -> {\n finish();\n });\n\n // Do nothing if cancel\n builder.setNegativeButton(android.R.string.cancel, null);\n\n AlertDialog dialog = builder.create();\n dialog.show();\n\n // Change button colors\n Button positiveButton = dialog.getButton(AlertDialog.BUTTON_POSITIVE);\n positiveButton.setTextColor(getColor(R.color.colorPrimary));\n Button negativeButton = dialog.getButton(AlertDialog.BUTTON_NEGATIVE);\n negativeButton.setTextColor(getColor(R.color.colorPrimary));\n }\n }", "public void onClick(DialogInterface dialog,\n int which) {\n dialog.cancel();\n }", "@Override\n public void onClick(View v) {\n\n dialog.cancel();\n }", "@Override\n public void onClick(View v) {\n\n dialog.cancel();\n }", "public boolean cancel();", "@Override\n public void onCancel(DialogInterface dialog) {\n }", "public void cancel();", "public void cancel();", "public void cancel();", "public void cancel();", "public void cancel();", "public void cancel();", "@Override\n\tpublic void onCancel(DialogInterface arg0) {\n\t\t\n\t}", "@Override\n public void onClick(DialogInterface dialog, int whichButton) {\n \tdialog.cancel(); //Close this dialog box\n }", "public void onCancelButtonClick() {\n close();\n }", "public void onClick(DialogInterface dialog, int which) {\n\n dialog.cancel();\n }", "@Override\n\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\tdialog.cancel();\n\t\t\t\ttoastMessage(\"Confirmation cancelled\");\n\t\t\t}", "public void onClick(DialogInterface dialog, int which) {\n dialog.cancel();\n }", "public void onClick(DialogInterface dialog, int which) {\n dialog.cancel();\n }", "public void cancel() {\r\n\t\tthis.cancel = true;\r\n\t}", "public void cancel() throws Exception {\n\t\tgetControl(\"cancelButton\").click();\n\t}", "public void onDialogCancelled(DialogActivity dialog)\n {\n cancel();\n }", "void onCancelClicked();", "void cancelButton_actionPerformed(ActionEvent e) {\n setUserAction(CANCELLED);\n setVisible(false);\n }", "public void onClick(DialogInterface dialog, int which) {\n\t\t\t dialog.cancel();\n\t\t\t }", "public void onClick(DialogInterface dialog, int arg1) {\n dialog.cancel();\n }", "@Override\r\n public void onCancel(DialogInterface dialogInterface) {\n finish();\r\n }", "protected void closeDialogCancel() {\n dispose();\n }", "@Override\n public void cancel() {\n super.cancel();\n\n /** Flag cancel user request\n */\n printingCanceled.set(true);\n\n /** Show a warning message\n */\n JOptionPane.showMessageDialog( MainDemo.this , \"Lorem Ipsum printing task canceled\", \"Task canceled\" , JOptionPane.WARNING_MESSAGE );\n }", "@Override\n public void onCancel(DialogInterface dialog) {\n Log.v(LOG_TAG, \"onCancel\");\n dismiss();\n }", "public void cancel()\n\t{\n\t}", "@Override\n public void onClick(View v)\n {\n begindialog.cancel();\n }", "public void cancel(){\n cancelled = true;\n }", "public void onClick(DialogInterface dialog, int id) {\n dialog.cancel();\n }", "public void onClick(DialogInterface dialog, int which) {\n dialog.cancel();\n finish();\n }", "@Override\n public void onCancel(DialogInterface dialog) {\n\n }", "public void cancel() {\n if (alert != null) {\n alert.cancel();\n isShowing = false;\n } else\n TLog.e(TAG + \" cancel\", \"alert is null\");\n }", "public void onClick(DialogInterface dialog, int which) {\n Toast.makeText(getApplicationContext(), \"Pressed Cancel\",\n Toast.LENGTH_SHORT).show();\n }", "public void onClick(DialogInterface dialog, int which) {\n dialog.cancel();\n finish();\n }", "public void onClick(DialogInterface dialog, int which) {\n dialog.cancel();\n finish();\n }", "public void onCancel();", "public void onClick(DialogInterface dialog, int id) {\n dialog.cancel();\n }", "public void onClick(DialogInterface dialog,int id) {\n dialog.cancel();\n }", "public void onClick(DialogInterface dialog,int id)\n {\n dialog.cancel();\n }", "@Override\r\n\tpublic void onCancel(DialogInterface dialog) {\n\r\n\t}", "@Override\r\n\t\tpublic void onCancel(DialogInterface dialog) {\n\t\t\tmProgressHUD.dismiss();\r\n\t\t}", "@Override\r\n\t\tpublic void onCancel(DialogInterface dialog) {\n\t\t\tmProgressHUD.dismiss();\r\n\t\t}", "public void onClick(DialogInterface dialog,\n int id) {\n dialog.cancel();\n }", "@Override\n\t\tpublic void onCancel(DialogInterface dialog) {\n\t\t\tmProgressHUD.dismiss();\t\n\t\t}" ]
[ "0.84252524", "0.81816214", "0.81397384", "0.80922073", "0.7927849", "0.79160905", "0.78777075", "0.78763556", "0.7856008", "0.7849157", "0.7848072", "0.7838308", "0.7804249", "0.77992254", "0.7796975", "0.7796975", "0.77921396", "0.7792013", "0.77904165", "0.77860636", "0.7785849", "0.7781991", "0.7781991", "0.7781991", "0.7775402", "0.7774749", "0.7774749", "0.77683115", "0.77681756", "0.77668333", "0.7761063", "0.7761063", "0.7761063", "0.7761063", "0.7761063", "0.7759365", "0.7731582", "0.7724297", "0.7720925", "0.7720103", "0.76955104", "0.7678485", "0.7654357", "0.7654357", "0.764555", "0.76443124", "0.7634409", "0.7633464", "0.7621916", "0.7621163", "0.7603697", "0.7603203", "0.7600248", "0.7598492", "0.7591874", "0.7591874", "0.7591339", "0.7590508", "0.7589548", "0.7589548", "0.7589548", "0.7589548", "0.7589548", "0.7589548", "0.7588744", "0.75886345", "0.7560806", "0.7550736", "0.7540379", "0.7539729", "0.7539729", "0.7534361", "0.7531358", "0.75296545", "0.7524118", "0.7523424", "0.75232726", "0.752038", "0.75199866", "0.7512266", "0.75083005", "0.7500499", "0.7497863", "0.7495073", "0.7493796", "0.7492944", "0.74797153", "0.74698204", "0.7465173", "0.74630636", "0.7460028", "0.7460028", "0.7458466", "0.7455514", "0.74514836", "0.7442903", "0.74414104", "0.7436282", "0.7436282", "0.74358857", "0.74198526" ]
0.0
-1
/ compiled from: CustomManager / renamed from: com.baidu.che.codriver.sdk.a.l$a
public interface C2603a { /* renamed from: a */ String mo1889a(String str, String str2, String str3, String str4); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "static /* synthetic */ android.os.Handler m19-get1(android.telecom.ConnectionServiceAdapterServant r1) {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e5 in method: android.telecom.ConnectionServiceAdapterServant.-get1(android.telecom.ConnectionServiceAdapterServant):android.os.Handler, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: android.telecom.ConnectionServiceAdapterServant.-get1(android.telecom.ConnectionServiceAdapterServant):android.os.Handler\");\n }", "@Override // com.zhihu.android.sugaradapter.SugarHolder\n /* renamed from: a */\n public void mo56529a(Object obj) {\n }", "public void mo115188a() {\n }", "private void m110495a() {\n C19535g a = DownloaderManagerHolder.m75524a();\n String x = C25352e.m83241x(this.f89235a.f89233a.f77546j);\n Aweme aweme = this.f89235a.f89233a.f77546j;\n C7573i.m23582a((Object) aweme, \"mAweme\");\n AwemeRawAd awemeRawAd = aweme.getAwemeRawAd();\n if (awemeRawAd == null) {\n C7573i.m23580a();\n }\n C7573i.m23582a((Object) awemeRawAd, \"mAweme.awemeRawAd!!\");\n Long adId = awemeRawAd.getAdId();\n C7573i.m23582a((Object) adId, \"mAweme.awemeRawAd!!.adId\");\n long longValue = adId.longValue();\n Aweme aweme2 = this.f89235a.f89233a.f77546j;\n C7573i.m23582a((Object) aweme2, \"mAweme\");\n C19386b a2 = C22943b.m75511a(\"result_ad\", aweme2.getAwemeRawAd(), \"bg_download_button\");\n Aweme aweme3 = this.f89235a.f89233a.f77546j;\n C7573i.m23582a((Object) aweme3, \"mAweme\");\n AwemeRawAd awemeRawAd2 = aweme3.getAwemeRawAd();\n if (awemeRawAd2 == null) {\n C7573i.m23580a();\n }\n a.mo51670a(x, longValue, 2, a2, C22942a.m75508a(awemeRawAd2));\n }", "public void mo1531a() {\n }", "public void mo38117a() {\n }", "public void mo3370l() {\n }", "public interface C43014c extends C1694a {\n\n /* renamed from: com.tencent.mm.plugin.expt.a.c$a */\n public enum C38982a {\n MM_DEFAULT(0),\n MMAppMgr_Activated(1),\n MMAppMgr_Deactivated(2),\n MMLifeCall_OnResume(3),\n MMLifeCall_OnPause(4),\n MMActivity_OnResume(5),\n MMActivity_OnPause(6),\n MMActivity_Back2Front(7),\n MMActivity_Front2Back(8);\n \n public int value;\n\n static {\n AppMethodBeat.m2505o(128627);\n }\n\n private C38982a(int i) {\n this.value = i;\n }\n\n /* renamed from: uW */\n public static C38982a m66222uW(int i) {\n switch (i) {\n case 1:\n return MMAppMgr_Activated;\n case 2:\n return MMAppMgr_Deactivated;\n case 3:\n return MMLifeCall_OnResume;\n case 4:\n return MMLifeCall_OnPause;\n case 5:\n return MMActivity_OnResume;\n case 6:\n return MMActivity_OnPause;\n case 7:\n return MMActivity_Back2Front;\n case 8:\n return MMActivity_Front2Back;\n default:\n return MM_DEFAULT;\n }\n }\n }\n\n void logout();\n}", "static /* synthetic */ int m1-get0(cm.android.mdm.manager.PackageManager2.PackageInstallObserver2 r1) {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e3 in method: cm.android.mdm.manager.PackageManager2.PackageInstallObserver2.-get0(cm.android.mdm.manager.PackageManager2$PackageInstallObserver2):int, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: cm.android.mdm.manager.PackageManager2.PackageInstallObserver2.-get0(cm.android.mdm.manager.PackageManager2$PackageInstallObserver2):int\");\n }", "public void mo44053a() {\n }", "public interface C35590c {\n /* renamed from: a */\n void mo56317a(Context context, Bundle bundle, C4541a c4541a);\n}", "static /* synthetic */ com.android.internal.telecom.IConnectionServiceAdapter m18-get0(android.telecom.ConnectionServiceAdapterServant r1) {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e5 in method: android.telecom.ConnectionServiceAdapterServant.-get0(android.telecom.ConnectionServiceAdapterServant):com.android.internal.telecom.IConnectionServiceAdapter, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: android.telecom.ConnectionServiceAdapterServant.-get0(android.telecom.ConnectionServiceAdapterServant):com.android.internal.telecom.IConnectionServiceAdapter\");\n }", "void m1864a() {\r\n }", "public PackageManager2(android.content.Context r1) {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e8 in method: cm.android.mdm.manager.PackageManager2.<init>(android.content.Context):void, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: cm.android.mdm.manager.PackageManager2.<init>(android.content.Context):void\");\n }", "public void mo12930a() {\n }", "public void mo4359a() {\n }", "private PackageInstallObserver2(cm.android.mdm.manager.PackageManager2 r1) {\n /*\n // Can't load method instructions: Load method exception: null in method: cm.android.mdm.manager.PackageManager2.PackageInstallObserver2.<init>(cm.android.mdm.manager.PackageManager2):void, dex: in method: cm.android.mdm.manager.PackageManager2.PackageInstallObserver2.<init>(cm.android.mdm.manager.PackageManager2):void, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: cm.android.mdm.manager.PackageManager2.PackageInstallObserver2.<init>(cm.android.mdm.manager.PackageManager2):void\");\n }", "public abstract void mo27464a();", "public final /* bridge */ /* synthetic */ void mo43566a() {\n super.mo43566a();\n }", "AnonymousClass1(android.telecom.ConnectionServiceAdapterServant r1) {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e8 in method: android.telecom.ConnectionServiceAdapterServant.1.<init>(android.telecom.ConnectionServiceAdapterServant):void, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: android.telecom.ConnectionServiceAdapterServant.1.<init>(android.telecom.ConnectionServiceAdapterServant):void\");\n }", "public void mo21825b() {\n }", "public void mo115190b() {\n }", "AnonymousClass2(android.telecom.ConnectionServiceAdapterServant r1) {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e8 in method: android.telecom.ConnectionServiceAdapterServant.2.<init>(android.telecom.ConnectionServiceAdapterServant):void, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: android.telecom.ConnectionServiceAdapterServant.2.<init>(android.telecom.ConnectionServiceAdapterServant):void\");\n }", "public void mo6944a() {\n }", "public abstract void mo53562a(C18796a c18796a);", "public /* bridge */ /* synthetic */ void mo55094a() {\n super.mo55094a();\n }", "public final /* bridge */ /* synthetic */ void mo43571c() {\n super.mo43571c();\n }", "public void mo55177a() {\n long unused = C3615m3.this.f1452k = System.currentTimeMillis();\n if (C3615m3.this.f1443b) {\n C3615m3.this.m1171c(new MDExternalError(MDExternalError.ExternalError.SDK_INITIALIZATION_IN_PROGRESS), this.f1467a);\n } else if (!C3615m3.this.f1447f.mo55921b() || C3615m3.this.f1447f.mo55918a()) {\n C3615m3.this.f1449h.updateFilePath(C3595k3.m1060d().mo55511a());\n boolean unused2 = C3615m3.this.f1443b = true;\n C3615m3.this.f1448g.mo55372a(C3615m3.this.f1442a, C3615m3.this.f1443b);\n if (C3723s4.m1629b() || C3723s4.m1628a()) {\n C3490e3.m665e(\"SDK Upgrade - delete UUID and local configuration storage\");\n C3661o5.m1405a();\n Pair<String, Boolean> a = C3729t0.m1642a();\n if (a != null) {\n AnalyticsBridge.getInstance().reportDeleteStorageEvent((String) a.first, ((Boolean) a.second).booleanValue());\n }\n }\n C3723s4.m1630c();\n C3615m3.this.m1172c(this.f1467a);\n C3580j createApiToken = ModelFactory.getInstance().createApiToken(this.f1468b);\n if (createApiToken == null) {\n boolean unused3 = C3615m3.this.f1443b = false;\n C3615m3.this.f1448g.mo55372a(C3615m3.this.f1442a, C3615m3.this.f1443b);\n C3615m3.this.m1158a((C3665p2) new C3593k1(C3586j3.C3587a.API_TOKEN_PARSE_ERROR), this.f1467a);\n C3615m3.this.clearAndDisconnect();\n } else if (!C3615m3.this.f1442a || C3604l2.m1115c().mo55538b() == null || !C3604l2.m1115c().mo55538b().mo55850a().equals(createApiToken.mo55850a())) {\n C3604l2.m1115c().mo55537a(createApiToken);\n if (!C3604l2.m1115c().mo55538b().mo55850a().equals(C3659o3.m1391f().mo55687a(C3815z4.C3816a.API_TOKEN))) {\n C3659o3.m1391f().mo55689a(C3815z4.C3816a.API_TOKEN, C3604l2.m1115c().mo55538b().mo55850a());\n C3659o3.m1391f().mo55689a(C3815z4.C3816a.ACCESS_TOKEN, (String) null);\n }\n C3490e3.m665e(\"SDK init started\");\n AnalyticsBridge.getInstance().reportInitEvent();\n C3767w0.m1812b().mo55893a();\n C3646n3.m1337m().mo55661a(60000, 3, 60000, 0, 512, 3);\n C3615m3.this.m1150a(this.f1467a);\n } else {\n boolean unused4 = C3615m3.this.f1443b = false;\n C3615m3.this.f1448g.mo55372a(C3615m3.this.f1442a, C3615m3.this.f1443b);\n C3615m3.this.m1163b(new MDExternalError(MDExternalError.ExternalError.SDK_IS_ALREADY_INITIALIZED), this.f1467a);\n }\n } else {\n C3615m3.this.m1163b(new MDExternalError(MDExternalError.ExternalError.SDK_IS_KILLED), this.f1467a);\n C3461c3.m562g().clearAndDisconnect();\n }\n }", "public abstract void mo70713b();", "public void mo21787L() {\n }", "public abstract void mo27385c();", "public interface C15428f {\n\n /* renamed from: com.ss.android.ugc.asve.context.f$a */\n public static final class C15429a {\n /* renamed from: a */\n public static String m45146a(C15428f fVar) {\n return \"\";\n }\n\n /* renamed from: b */\n public static String m45147b(C15428f fVar) {\n return \"\";\n }\n }\n\n /* renamed from: a */\n boolean mo38970a();\n\n /* renamed from: b */\n String mo38971b();\n\n /* renamed from: c */\n String mo38972c();\n\n /* renamed from: d */\n int mo38973d();\n\n /* renamed from: e */\n int mo38974e();\n}", "public /* bridge */ /* synthetic */ void mo55096c() {\n super.mo55096c();\n }", "public void mo55254a() {\n }", "protected void mo6255a() {\n }", "public final void a(com.tencent.mm.plugin.game.c.ai r12, java.lang.String r13, int r14, int r15) {\n /*\n r11 = this;\n if (r12 == 0) goto L_0x000a;\n L_0x0002:\n r0 = r12.nmz;\n r0 = com.tencent.mm.sdk.platformtools.bi.cC(r0);\n if (r0 == 0) goto L_0x0010;\n L_0x000a:\n r0 = 8;\n r11.setVisibility(r0);\n L_0x000f:\n return;\n L_0x0010:\n r11.mAppId = r13;\n r11.niV = r15;\n r0 = r12.nmz;\n r7 = r0.iterator();\n L_0x001a:\n r0 = r7.hasNext();\n if (r0 == 0) goto L_0x000f;\n L_0x0020:\n r0 = r7.next();\n r4 = r0;\n r4 = (com.tencent.mm.plugin.game.c.k) r4;\n if (r4 == 0) goto L_0x001a;\n L_0x0029:\n r5 = new com.tencent.mm.plugin.game.d.e$a$a;\n r5.<init>();\n r0 = r4.nlz;\n switch(r0) {\n case 1: goto L_0x004a;\n case 2: goto L_0x00e3;\n default: goto L_0x0033;\n };\n L_0x0033:\n r0 = 2;\n if (r14 != r0) goto L_0x001a;\n L_0x0036:\n r0 = r11.mContext;\n r1 = 10;\n r2 = 1002; // 0x3ea float:1.404E-42 double:4.95E-321;\n r3 = r4.nlw;\n r4 = r4.nlr;\n r6 = com.tencent.mm.plugin.game.model.ap.CD(r4);\n r4 = r13;\n r5 = r15;\n com.tencent.mm.plugin.game.model.ap.a(r0, r1, r2, r3, r4, r5, r6);\n goto L_0x001a;\n L_0x004a:\n r0 = r4.nlx;\n if (r0 == 0) goto L_0x001a;\n L_0x004e:\n r11.e(r11);\n r0 = r11.DF;\n r1 = com.tencent.mm.R.i.djD;\n r2 = 1;\n r6 = r0.inflate(r1, r11, r2);\n r0 = com.tencent.mm.R.h.cxP;\n r0 = r6.findViewById(r0);\n r0 = (android.widget.TextView) r0;\n r1 = com.tencent.mm.R.h.cxR;\n r1 = r6.findViewById(r1);\n r1 = (android.widget.TextView) r1;\n r2 = com.tencent.mm.R.h.cxO;\n r2 = r6.findViewById(r2);\n r2 = (com.tencent.mm.plugin.game.widget.EllipsizingTextView) r2;\n r3 = 2;\n r2.setMaxLines(r3);\n r3 = com.tencent.mm.R.h.cxQ;\n r3 = r6.findViewById(r3);\n r3 = (android.widget.ImageView) r3;\n r8 = r11.mContext;\n r9 = r4.nlv;\n r10 = r0.getTextSize();\n r8 = com.tencent.mm.pluginsdk.ui.d.i.b(r8, r9, r10);\n r0.setText(r8);\n r0 = r11.mContext;\n r8 = r4.nlx;\n r8 = r8.fpg;\n r9 = r1.getTextSize();\n r0 = com.tencent.mm.pluginsdk.ui.d.i.b(r0, r8, r9);\n r1.setText(r0);\n r0 = r11.mContext;\n r1 = r4.nlx;\n r1 = r1.nkL;\n r8 = r2.getTextSize();\n r0 = com.tencent.mm.pluginsdk.ui.d.i.b(r0, r1, r8);\n r2.setText(r0);\n r0 = r4.nlx;\n r0 = r0.nkM;\n r0 = com.tencent.mm.sdk.platformtools.bi.oN(r0);\n if (r0 != 0) goto L_0x00dd;\n L_0x00b9:\n r0 = com.tencent.mm.plugin.game.d.e.aSC();\n r1 = r4.nlx;\n r1 = r1.nkM;\n r2 = r5.aSD();\n r0.a(r3, r1, r2);\n L_0x00c8:\n r0 = new com.tencent.mm.plugin.game.ui.f$a;\n r1 = r4.nlw;\n r2 = r4.nlx;\n r2 = r2.nkN;\n r3 = r4.nlr;\n r0.<init>(r1, r2, r3);\n r6.setTag(r0);\n r6.setOnClickListener(r11);\n goto L_0x0033;\n L_0x00dd:\n r0 = 8;\n r3.setVisibility(r0);\n goto L_0x00c8;\n L_0x00e3:\n r0 = r4.nly;\n if (r0 == 0) goto L_0x001a;\n L_0x00e7:\n r11.e(r11);\n r0 = r11.DF;\n r1 = com.tencent.mm.R.i.djE;\n r2 = 1;\n r3 = r0.inflate(r1, r11, r2);\n r0 = com.tencent.mm.R.h.cOG;\n r0 = r3.findViewById(r0);\n r0 = (android.widget.TextView) r0;\n r1 = com.tencent.mm.R.h.cOI;\n r1 = r3.findViewById(r1);\n r1 = (android.widget.TextView) r1;\n r2 = com.tencent.mm.R.h.cOH;\n r2 = r3.findViewById(r2);\n r2 = (android.widget.ImageView) r2;\n r6 = r11.mContext;\n r8 = r4.nlv;\n r9 = r0.getTextSize();\n r6 = com.tencent.mm.pluginsdk.ui.d.i.b(r6, r8, r9);\n r0.setText(r6);\n r0 = r11.mContext;\n r6 = r4.nly;\n r6 = r6.fpg;\n r8 = r1.getTextSize();\n r0 = com.tencent.mm.pluginsdk.ui.d.i.b(r0, r6, r8);\n r1.setText(r0);\n r0 = r4.nly;\n r0 = r0.nkM;\n r0 = com.tencent.mm.sdk.platformtools.bi.oN(r0);\n if (r0 != 0) goto L_0x016f;\n L_0x0135:\n r0 = r4.nly;\n r0 = r0.npS;\n r1 = 1;\n if (r0 != r1) goto L_0x0167;\n L_0x013c:\n r0 = 1;\n r5.nDa = r0;\n r0 = com.tencent.mm.R.g.bCF;\n r5.nDd = r0;\n L_0x0143:\n r0 = com.tencent.mm.plugin.game.d.e.aSC();\n r1 = r4.nly;\n r1 = r1.nkM;\n r5 = r5.aSD();\n r0.a(r2, r1, r5);\n L_0x0152:\n r0 = new com.tencent.mm.plugin.game.ui.f$a;\n r1 = r4.nlw;\n r2 = r4.nly;\n r2 = r2.nkN;\n r5 = r4.nlr;\n r0.<init>(r1, r2, r5);\n r3.setTag(r0);\n r3.setOnClickListener(r11);\n goto L_0x0033;\n L_0x0167:\n r0 = 1;\n r5.hFJ = r0;\n r0 = com.tencent.mm.R.g.bCE;\n r5.nDd = r0;\n goto L_0x0143;\n L_0x016f:\n r0 = 8;\n r2.setVisibility(r0);\n goto L_0x0152;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.tencent.mm.plugin.game.ui.f.a(com.tencent.mm.plugin.game.c.ai, java.lang.String, int, int):void\");\n }", "void mo80457c();", "public void mo1403c() {\n }", "public void mo2740a() {\n }", "public abstract void mo2150a();", "public interface C0003a {\n public static final String ah = \"image_manager_disk_cache\";\n public static final int hP = 262144000;\n\n @Nullable\n a bz();\n }", "public void mo56167c() {\n }", "public abstract void mo35054b();", "public void mo6081a() {\n }", "static /* synthetic */ int m0-get0(cm.android.mdm.manager.PackageManager2.PackageDeleteObserver2 r1) {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e3 in method: cm.android.mdm.manager.PackageManager2.PackageDeleteObserver2.-get0(cm.android.mdm.manager.PackageManager2$PackageDeleteObserver2):int, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: cm.android.mdm.manager.PackageManager2.PackageDeleteObserver2.-get0(cm.android.mdm.manager.PackageManager2$PackageDeleteObserver2):int\");\n }", "private Dex2JarProxy() {\r\n\t}", "public abstract ZALogDao mo87644a();", "public final void mo51373a() {\n }", "private static class <init> extends l\n{\n\n public int noteOp(Context context, String s, int i, String s1)\n {\n return AppOpsManagerCompat23.noteOp(context, s, i, s1);\n }", "void mo17012c();", "public final void mo88395b() {\n if (this.f90938h == null) {\n this.f90938h = new C29242a(this.f90931a, this.f90937g).mo74873a((C39376h) new C39376h() {\n /* renamed from: a */\n public final void mo74759a(C29296g gVar) {\n }\n\n /* renamed from: a */\n public final void mo74760a(C29296g gVar, int i) {\n }\n\n /* renamed from: d */\n public final void mo74763d(C29296g gVar) {\n }\n\n /* renamed from: b */\n public final void mo74761b(C29296g gVar) {\n C34867a.this.f90934d.setVisibility(0);\n if (!C39805en.m127445a()) {\n C23487o.m77136a((Activity) C34867a.this.f90931a);\n }\n C6907h.m21519a((Context) C34867a.this.f90931a, \"filter_confirm\", \"mid_page\", \"0\", 0, C34867a.this.f90936f);\n }\n\n /* renamed from: c */\n public final void mo74762c(C29296g gVar) {\n String str;\n C34867a.this.f90933c = gVar;\n C34867a.this.f90932b.mo88467a(gVar.f77273h);\n if (C34867a.this.f90935e != null) {\n C34867a.this.f90935e.mo98958a(gVar);\n }\n EffectCategoryResponse b = C35563c.m114837d().mo74825b(C34867a.this.f90933c);\n if (b == null) {\n str = \"\";\n } else {\n str = b.name;\n }\n C6907h.m21524a(\"select_filter\", (Map) C38511bc.m123103a().mo96485a(\"creation_id\", C34867a.this.f90932b.mo88460a().creationId).mo96485a(\"shoot_way\", C34867a.this.f90932b.mo88460a().mShootWay).mo96483a(\"draft_id\", C34867a.this.f90932b.mo88460a().draftId).mo96485a(\"enter_method\", \"click\").mo96485a(\"filter_name\", C34867a.this.f90933c.f77268c).mo96483a(\"filter_id\", C34867a.this.f90933c.f77266a).mo96485a(\"tab_name\", str).mo96485a(\"content_source\", C34867a.this.f90932b.mo88460a().getAvetParameter().getContentSource()).mo96485a(\"content_type\", C34867a.this.f90932b.mo88460a().getAvetParameter().getContentType()).mo96485a(\"enter_from\", \"video_edit_page\").f100112a);\n }\n }).mo74871a((C29240bc) new C39369c(C35563c.f93224F.mo70097l().mo74950c().mo74723f())).mo74874a(this.f90932b.mo88460a().getAvetParameter()).mo74876a();\n if (this.f90933c != null) {\n this.f90938h.mo74751a(this.f90933c);\n }\n }\n this.f90938h.mo74749a();\n this.f90934d.setVisibility(8);\n }", "private CodeRef() {\n }", "interface C0932a {\n /* renamed from: a */\n void mo7438a(int i, int i2);\n\n /* renamed from: b */\n void mo7439b(C0933b bVar);\n\n /* renamed from: c */\n void mo7440c(int i, int i2, Object obj);\n\n /* renamed from: d */\n void mo7441d(C0933b bVar);\n\n /* renamed from: e */\n RecyclerView.ViewHolder mo7442e(int i);\n\n /* renamed from: f */\n void mo7443f(int i, int i2);\n\n /* renamed from: g */\n void mo7444g(int i, int i2);\n\n /* renamed from: h */\n void mo7445h(int i, int i2);\n }", "Bundle mo29838Oa() throws RemoteException;", "public void m23075a() {\n }", "public abstract void mo6549b();", "void mo17021c();", "public abstract Object mo1771a();", "void mo21072c();", "public void mo9848a() {\n }", "public void c() {\n List<DBUserBrief> b2 = this.f16688d.b(this.f16687c.c());\n ArrayList arrayList = new ArrayList();\n for (DBUserBrief a2 : b2) {\n UserBriefInfo userBriefInfo = new UserBriefInfo();\n b.a(a2, userBriefInfo);\n arrayList.add(userBriefInfo);\n }\n com.garena.android.appkit.b.b.a(\"MY_CUSTOMER_LOAD\", new a(arrayList), b.a.NETWORK_BUS);\n }", "SmsCbCmasInfo(android.os.Parcel r1) {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e9 in method: android.telephony.SmsCbCmasInfo.<init>(android.os.Parcel):void, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: android.telephony.SmsCbCmasInfo.<init>(android.os.Parcel):void\");\n }", "AnonymousClass1(android.widget.ColorListView r1) {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e8 in method: android.widget.ColorListView.1.<init>(android.widget.ColorListView):void, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: android.widget.ColorListView.1.<init>(android.widget.ColorListView):void\");\n }", "public void mo3376r() {\n }", "public void mo5382o() {\n }", "private PackageDeleteObserver2(cm.android.mdm.manager.PackageManager2 r1) {\n /*\n // Can't load method instructions: Load method exception: null in method: cm.android.mdm.manager.PackageManager2.PackageDeleteObserver2.<init>(cm.android.mdm.manager.PackageManager2):void, dex: in method: cm.android.mdm.manager.PackageManager2.PackageDeleteObserver2.<init>(cm.android.mdm.manager.PackageManager2):void, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: cm.android.mdm.manager.PackageManager2.PackageDeleteObserver2.<init>(cm.android.mdm.manager.PackageManager2):void\");\n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "public abstract void mo30696a();", "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 }", "public void mo5248a() {\n }", "public abstract void mo3994a();", "public void mo21779D() {\n }", "public void mo3749d() {\n }", "public void mo21785J() {\n }", "public void mo21782G() {\n }", "private NativeSupport() {\n\t}", "public abstract void mo42329d();", "public interface C11112n {\n /* renamed from: a */\n void mo38026a();\n }", "static /* synthetic */ int m0-get0(android.widget.ColorListView r1) {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e3 in method: android.widget.ColorListView.-get0(android.widget.ColorListView):int, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: android.widget.ColorListView.-get0(android.widget.ColorListView):int\");\n }", "public final void mo91715d() {\n }", "public abstract IMEmoticonRecordDao mo122978a();", "void mo41083a();", "public interface C9715b {\n\n /* renamed from: com.tencent.mm.modelvideo.b$a */\n public interface C9714a {\n /* renamed from: ad */\n void mo9058ad(String str, int i);\n\n /* renamed from: h */\n void mo9075h(String str, int i, int i2);\n\n /* renamed from: ml */\n void mo21050ml(int i);\n\n void onDataAvailable(String str, int i, int i2);\n }\n\n /* renamed from: a */\n void mo8712a(C9714a c9714a);\n\n /* renamed from: dV */\n void mo8713dV(String str);\n\n boolean isVideoDataAvailable(String str, int i, int i2);\n\n /* renamed from: r */\n void mo8715r(String str, String str2, String str3);\n\n void requestVideoData(String str, int i, int i2);\n}", "public abstract void mo56925d();", "public void mo21793R() {\n }", "public abstract C mo29734a();", "public abstract void mo27386d();", "public void mo12628c() {\n }", "public void mo21791P() {\n }", "private final void m11061a(android.app.Activity r5, app.zenly.locator.experimental.inbox.p092i.C3708a r6) {\n /*\n r4 = this;\n app.zenly.locator.experimental.inbox.j.b r0 = r6.mo10234a()\n co.znly.models.i r0 = r0.mo10237a()\n if (r0 == 0) goto L_0x0011\n java.util.List r0 = r0.getPhoneNumbersList()\n if (r0 == 0) goto L_0x0011\n goto L_0x0015\n L_0x0011:\n java.util.List r0 = kotlin.collections.C12848o.m33640a()\n L_0x0015:\n androidx.appcompat.app.a$a r1 = new androidx.appcompat.app.a$a\n r1.<init>(r5)\n r2 = 2131231362(0x7f080282, float:1.8078803E38)\n r1.mo527a(r2)\n r2 = 2132018240(0x7f140440, float:1.9674781E38)\n r1.mo548c(r2)\n app.zenly.locator.experimental.inbox.b$a r2 = new app.zenly.locator.experimental.inbox.b$a\n r2.<init>(r4, r6)\n r1.mo530a(r2)\n android.widget.ArrayAdapter r2 = new android.widget.ArrayAdapter\n r3 = 2131624347(0x7f0e019b, float:1.8875871E38)\n r2.<init>(r5, r3, r0)\n app.zenly.locator.experimental.inbox.b$b r3 = new app.zenly.locator.experimental.inbox.b$b\n r3.<init>(r4, r0, r6, r5)\n r1.mo536a(r2, r3)\n androidx.appcompat.app.a r5 = r1.mo542a()\n r5.show()\n return\n */\n throw new UnsupportedOperationException(\"Method not decompiled: app.zenly.locator.experimental.inbox.C3689b.m11061a(android.app.Activity, app.zenly.locator.experimental.inbox.i.a):void\");\n }", "public /* bridge */ /* synthetic */ java.lang.Object[] newArray(int r1) {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e9 in method: android.telephony.SmsCbCmasInfo.1.newArray(int):java.lang.Object[], dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: android.telephony.SmsCbCmasInfo.1.newArray(int):java.lang.Object[]\");\n }", "public abstract void m15813a();", "private Aliyun() {\n\t\tsuper();\n\t}", "@Override\r\n\tpublic void onCustomUpdate() {\n\t\t\r\n\t}", "public OOP_207(){\n\n }" ]
[ "0.58594716", "0.5817236", "0.5815296", "0.57950145", "0.57623065", "0.5713958", "0.5711522", "0.5694835", "0.5692683", "0.56828374", "0.5676553", "0.5657032", "0.5646625", "0.5646486", "0.5643729", "0.5624897", "0.5616175", "0.56160384", "0.56106645", "0.5609593", "0.5580917", "0.5573623", "0.55667627", "0.5564094", "0.55630654", "0.5562257", "0.5561963", "0.5554541", "0.5554078", "0.55540323", "0.55514884", "0.5550563", "0.5535199", "0.5519778", "0.551936", "0.55164695", "0.55131567", "0.55124354", "0.55119", "0.550971", "0.5503264", "0.54996043", "0.5474592", "0.54730135", "0.54687154", "0.5467642", "0.54631495", "0.5458391", "0.54580706", "0.5456035", "0.54469764", "0.5441935", "0.54391193", "0.54384744", "0.54368585", "0.54361206", "0.5427196", "0.5426869", "0.54266167", "0.54237735", "0.54230374", "0.54183656", "0.54087776", "0.5402805", "0.54025674", "0.5401124", "0.5398801", "0.53964424", "0.5394431", "0.5394431", "0.5394431", "0.5394431", "0.5394431", "0.5394431", "0.5394431", "0.5391304", "0.5384055", "0.53815556", "0.537838", "0.5378254", "0.53649837", "0.5347091", "0.5341085", "0.53381264", "0.533392", "0.533317", "0.533216", "0.53286767", "0.5321706", "0.5320315", "0.5310698", "0.530981", "0.5305646", "0.53027374", "0.53006023", "0.52988595", "0.52983904", "0.52953583", "0.52944255", "0.5290394", "0.52889305" ]
0.0
-1
/ renamed from: a
String mo1889a(String str, String str2, String str3, String str4);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface C4521a {\n /* renamed from: a */\n void mo12348a();\n }", "public interface C1423a {\n /* renamed from: a */\n void mo6888a(int i);\n }", "interface bxc {\n /* renamed from: a */\n void mo2508a(bxb bxb);\n}", "interface C33292a {\n /* renamed from: a */\n void mo85415a(String str);\n }", "interface C10331b {\n /* renamed from: a */\n void mo26876a(int i);\n }", "public interface C0779a {\n /* renamed from: a */\n void mo2311a();\n}", "public interface C6788a {\n /* renamed from: a */\n void mo20141a();\n }", "public interface C0237a {\n /* renamed from: a */\n void mo1791a(String str);\n }", "public interface C35013b {\n /* renamed from: a */\n void mo88773a(int i);\n}", "public interface C11112n {\n /* renamed from: a */\n void mo38026a();\n }", "@Override\n\t\t\t\tpublic void a() {\n\n\t\t\t\t}", "public interface C23407b {\n /* renamed from: a */\n void mo60892a();\n\n /* renamed from: b */\n void mo60893b();\n }", "interface C0312e {\n /* renamed from: a */\n void mo4671a(View view, int i, int i2, int i3, int i4);\n }", "public interface C34379a {\n /* renamed from: a */\n void mo46242a(bmc bmc);\n }", "public interface C32456b<T> {\n /* renamed from: a */\n void mo83696a(T t);\n }", "private String convertir(String a) {\n StringBuilder atributo = new StringBuilder(a);\n atributo.insert(0, Character.toUpperCase(atributo.charAt(0)));\n return atributo.deleteCharAt(1).toString();\n }", "protected m a(String name) {\n/* 42 */ return this.a.get(name);\n/* */ }", "public interface AbstractC23925a {\n /* renamed from: a */\n void mo105476a();\n }", "private interface C0257a {\n /* renamed from: a */\n float mo196a(ViewGroup viewGroup, View view);\n\n /* renamed from: b */\n float mo195b(ViewGroup viewGroup, View view);\n }", "public interface C2459d {\n /* renamed from: a */\n C2451d mo3408a(C2457e c2457e);\n}", "public interface C3598a {\n /* renamed from: a */\n void mo11024a(int i, int i2, String str);\n }", "public interface am extends ak {\r\n /* renamed from: a */\r\n void mo194a(int i) throws RemoteException;\r\n\r\n /* renamed from: a */\r\n void mo195a(List<LatLng> list) throws RemoteException;\r\n\r\n /* renamed from: b */\r\n void mo196b(float f) throws RemoteException;\r\n\r\n /* renamed from: b */\r\n void mo197b(boolean z);\r\n\r\n /* renamed from: c */\r\n void mo198c(boolean z) throws RemoteException;\r\n\r\n /* renamed from: g */\r\n float mo199g() throws RemoteException;\r\n\r\n /* renamed from: h */\r\n int mo200h() throws RemoteException;\r\n\r\n /* renamed from: i */\r\n List<LatLng> mo201i() throws RemoteException;\r\n\r\n /* renamed from: j */\r\n boolean mo202j();\r\n\r\n /* renamed from: k */\r\n boolean mo203k();\r\n}", "public interface C32459e<T> {\n /* renamed from: a */\n void mo83698a(T t);\n }", "public interface C32458d<T> {\n /* renamed from: a */\n void mo83695a(T t);\n }", "public interface C5482b {\n /* renamed from: a */\n void mo27575a();\n\n /* renamed from: a */\n void mo27576a(int i);\n }", "public interface C27084a {\n /* renamed from: a */\n void mo69874a();\n\n /* renamed from: a */\n void mo69875a(List<Aweme> list, boolean z);\n }", "public void a() {\n ((a) this.a).a();\n }", "public interface C1153a {\n /* renamed from: a */\n void mo4520a(byte[] bArr);\n }", "public interface C13373b {\n /* renamed from: a */\n void mo32681a(String str, int i, boolean z);\n}", "public interface C40453c {\n /* renamed from: a */\n void mo100442a(C40429b bVar);\n\n /* renamed from: a */\n void mo100443a(List<String> list);\n\n /* renamed from: b */\n void mo100444b(List<C40429b> list);\n}", "public interface AbstractC17367b {\n /* renamed from: a */\n void mo84655a();\n }", "@Override\r\n\tpublic void a() {\n\t\t\r\n\t}", "public interface C43270a {\n /* renamed from: a */\n void mo64942a(String str, long j, long j2);\n}", "public interface C18928d {\n /* renamed from: a */\n void mo50320a(C18924b bVar);\n\n /* renamed from: b */\n void mo50321b(C18924b bVar);\n}", "public interface C0087c {\n /* renamed from: a */\n String mo150a(String str);\n}", "public interface C1529m {\n /* renamed from: a */\n void mo3767a(int i);\n\n /* renamed from: a */\n void mo3768a(String str);\n}", "interface C4483e {\n /* renamed from: a */\n boolean mo34114a();\n}", "public interface C1234b {\r\n /* renamed from: a */\r\n void m8367a();\r\n\r\n /* renamed from: b */\r\n void m8368b();\r\n}", "public interface C10965j<T> {\n /* renamed from: a */\n T mo26439a();\n}", "public interface C28772a {\n /* renamed from: a */\n View mo73990a(View view);\n }", "@Override\n\tpublic void a() {\n\t\t\n\t}", "public interface C8326b {\n /* renamed from: a */\n C8325a mo21498a(String str);\n\n /* renamed from: a */\n void mo21499a(C8325a aVar);\n}", "void metodo1(int a, int[] b) {\r\n\t\ta += 5;//Par\\u00e1metro con el mismo nombre que el campo de la clase.\r\n\t\tb[0] += 7;//se produce un env\\u00edo por referencia, apunta a una copia de un objeto, que se asigna aqu\\u00ed.\r\n\t}", "public interface C2367a {\n /* renamed from: a */\n C2368d mo1698a();\n }", "interface C30585a {\n /* renamed from: b */\n void mo27952b(C5379a c5379a, int i, C46650a c46650a, C7620bi c7620bi);\n }", "public interface C4211a {\n\n /* renamed from: com.iab.omid.library.oguryco.c.a$a */\n public interface C4212a {\n /* renamed from: a */\n void mo28760a(View view, C4211a aVar, JSONObject jSONObject);\n }\n\n /* renamed from: a */\n JSONObject mo28758a(View view);\n\n /* renamed from: a */\n void mo28759a(View view, JSONObject jSONObject, C4212a aVar, boolean z);\n}", "public interface C4697a extends C5595at {\n /* renamed from: a */\n void mo12634a();\n\n /* renamed from: a */\n void mo12635a(String str);\n\n /* renamed from: a */\n void mo12636a(boolean z);\n\n /* renamed from: b */\n void mo12637b();\n\n /* renamed from: c */\n void mo12638c();\n }", "public interface C4773c {\n /* renamed from: a */\n void m15858a(int i);\n\n /* renamed from: a */\n void m15859a(int i, int i2);\n\n /* renamed from: a */\n void m15860a(int i, int i2, int i3);\n\n /* renamed from: b */\n void m15861b(int i, int i2);\n}", "public interface C4869f {\n /* renamed from: a */\n C4865b mo6249a();\n}", "public interface C1799a {\n /* renamed from: b */\n void mo3314b(String str);\n }", "public interface C43499b {\n /* renamed from: a */\n void mo8445a(int i, String str, int i2, byte[] bArr);\n}", "public interface C0601aq {\n /* renamed from: a */\n void mo9148a(int i, ArrayList<C0889x> arrayList);\n}", "public interface C45101e {\n /* renamed from: b */\n void mo3796b(int i);\n}", "public interface AbstractC6461g {\n /* renamed from: a */\n String mo42332a();\n}", "public interface AbstractC1645a {\n /* renamed from: a */\n String mo17375a();\n }", "public interface C6178c {\n /* renamed from: a */\n Map<String, String> mo14888a();\n}", "public interface C5101b {\n /* renamed from: a */\n void mo5289a(C5102c c5102c);\n\n /* renamed from: b */\n void mo5290b(C5102c c5102c);\n}", "public interface C19045k {\n /* renamed from: a */\n void mo50368a(int i, Object obj);\n\n /* renamed from: b */\n void mo50369b(int i, Object obj);\n}", "public b a()\r\n/* 12: */ {\r\n/* 13:13 */ return this.a;\r\n/* 14: */ }", "public interface C7720a {\n /* renamed from: a */\n long mo20406a();\n}", "public String a()\r\n/* 25: */ {\r\n/* 26:171 */ return \"dig.\" + this.a;\r\n/* 27: */ }", "public interface ayt {\n /* renamed from: a */\n int mo1635a(long j, List list);\n\n /* renamed from: a */\n long mo1636a(long j, alb alb);\n\n /* renamed from: a */\n void mo1637a();\n\n /* renamed from: a */\n void mo1638a(long j, long j2, List list, ayp ayp);\n\n /* renamed from: a */\n void mo1639a(ayl ayl);\n\n /* renamed from: a */\n boolean mo1640a(ayl ayl, boolean z, Exception exc, long j);\n}", "public interface C24221b extends C28343z<C28318an> {\n /* renamed from: a */\n void mo62991a(int i);\n\n String aw_();\n\n /* renamed from: e */\n Aweme mo62993e();\n}", "public interface C4051c {\n /* renamed from: a */\n boolean mo23707a();\n}", "public interface C45112b {\n /* renamed from: a */\n List<C45111a> mo107674a(Integer num);\n\n /* renamed from: a */\n List<C45111a> mo107675a(Integer num, Integer num2);\n\n /* renamed from: a */\n void mo107676a(C45111a aVar);\n\n /* renamed from: b */\n void mo107677b(Integer num);\n\n /* renamed from: c */\n long mo107678c(Integer num);\n}", "public interface C44963i {\n /* renamed from: a */\n void mo63037a(int i, int i2);\n\n void aA_();\n\n /* renamed from: b */\n void mo63039b(int i, int i2);\n}", "public interface C32457c<T> {\n /* renamed from: a */\n void mo83699a(T t, int i, int i2, String str);\n }", "public void acionou(int a){\n\t\t\tb=a;\n\t\t}", "public interface C5861g {\n /* renamed from: a */\n void mo18320a(C7251a aVar);\n\n @Deprecated\n /* renamed from: a */\n void mo18321a(C7251a aVar, String str);\n\n /* renamed from: a */\n void mo18322a(C7252b bVar);\n\n /* renamed from: a */\n void mo18323a(C7253c cVar);\n\n /* renamed from: a */\n void mo18324a(C7260j jVar);\n}", "public interface C0937a {\n /* renamed from: a */\n void mo3807a(C0985po[] poVarArr);\n }", "public interface C8466a {\n /* renamed from: a */\n void mo25956a(int i);\n\n /* renamed from: a */\n void mo25957a(long j, long j2);\n }", "public interface C39684b {\n /* renamed from: a */\n void mo98969a();\n\n /* renamed from: a */\n void mo98970a(C29296g gVar);\n\n /* renamed from: a */\n void mo98971a(C29296g gVar, int i);\n }", "public interface C43470b {\n /* renamed from: a */\n void mo61496a(C43469a aVar, C43471c cVar);\n }", "public interface AbstractC18255a {\n /* renamed from: a */\n void mo88521a();\n\n /* renamed from: a */\n void mo88522a(String str);\n\n /* renamed from: b */\n void mo88523b();\n\n /* renamed from: c */\n void mo88524c();\n }", "public interface C1436d {\n /* renamed from: a */\n C1435c mo1754a(C1433a c1433a, C1434b c1434b);\n}", "public interface C4150sl {\n /* renamed from: a */\n void mo15005a(C4143se seVar);\n}", "public void a(nm paramnm)\r\n/* 28: */ {\r\n/* 29:45 */ paramnm.a(this);\r\n/* 30: */ }", "public interface C19351a {\n /* renamed from: b */\n void mo30633b(int i, String str, byte[] bArr);\n }", "public interface C11113o {\n /* renamed from: a */\n void mo37759a(String str);\n }", "public interface C39504az {\n /* renamed from: a */\n int mo98207a();\n\n /* renamed from: a */\n void mo98208a(boolean z);\n\n /* renamed from: b */\n int mo98209b();\n\n /* renamed from: c */\n int mo98355c();\n\n /* renamed from: d */\n int mo98356d();\n\n /* renamed from: e */\n int mo98357e();\n\n /* renamed from: f */\n int mo98358f();\n}", "protected a<T> a(Tag.e<T> var0) {\n/* 80 */ Tag.a var1 = b(var0);\n/* 81 */ return new a<>(var1, this.c, \"vanilla\");\n/* */ }", "public interface C35565a {\n /* renamed from: a */\n C45321i mo90380a();\n }", "public interface C21298a {\n /* renamed from: a */\n void mo57275a();\n\n /* renamed from: a */\n void mo57276a(Exception exc);\n\n /* renamed from: b */\n void mo57277b();\n\n /* renamed from: c */\n void mo57278c();\n }", "public interface C40108b {\n /* renamed from: a */\n void mo99838a(boolean z);\n }", "public interface C4724o {\n /* renamed from: a */\n void mo4872a(int i, String str);\n\n /* renamed from: a */\n void mo4873a(C4718l c4718l);\n\n /* renamed from: b */\n void mo4874b(C4718l c4718l);\n}", "public interface C0456a {\n /* renamed from: a */\n void mo2090a(C0455b bVar);\n\n /* renamed from: a */\n boolean mo2091a(C0455b bVar, Menu menu);\n\n /* renamed from: a */\n boolean mo2092a(C0455b bVar, MenuItem menuItem);\n\n /* renamed from: b */\n boolean mo2093b(C0455b bVar, Menu menu);\n }", "public interface C7654b {\n /* renamed from: a */\n C7904c mo24084a();\n\n /* renamed from: b */\n C7716a mo24085b();\n }", "public interface C2603a {\n /* renamed from: a */\n String mo1889a(String str, String str2, String str3, String str4);\n }", "public interface afp {\n /* renamed from: a */\n C0512sx mo169a(C0497si siVar, afj afj, afr afr, Context context);\n}", "public interface C0615ja extends b<HomeFragment> {\n\n /* renamed from: c.c.a.h.b.ja$a */\n /* compiled from: FragmentModule_HomeFragment$app_bazaarRelease */\n public static abstract class a extends b.a<HomeFragment> {\n }\n}", "public interface AbstractC17368c {\n /* renamed from: a */\n void mo84656a(float f);\n }", "public interface a {\n\n /* renamed from: c.b.a.c.b.b.a$a reason: collision with other inner class name */\n /* compiled from: DiskCache */\n public interface C0054a {\n a build();\n }\n\n /* compiled from: DiskCache */\n public interface b {\n boolean a(File file);\n }\n\n File a(c cVar);\n\n void a(c cVar, b bVar);\n}", "public interface C0940d {\n /* renamed from: a */\n void mo3305a(boolean z);\n }", "interface C0932a {\n /* renamed from: a */\n void mo7438a(int i, int i2);\n\n /* renamed from: b */\n void mo7439b(C0933b bVar);\n\n /* renamed from: c */\n void mo7440c(int i, int i2, Object obj);\n\n /* renamed from: d */\n void mo7441d(C0933b bVar);\n\n /* renamed from: e */\n RecyclerView.ViewHolder mo7442e(int i);\n\n /* renamed from: f */\n void mo7443f(int i, int i2);\n\n /* renamed from: g */\n void mo7444g(int i, int i2);\n\n /* renamed from: h */\n void mo7445h(int i, int i2);\n }", "public interface C10330c {\n /* renamed from: a */\n C7562b<C10403b, C10328a> mo25041a();\n}", "public interface C3819a {\n /* renamed from: a */\n void mo23214a(Message message);\n }", "private Proof atoAImpl(Expression a) {\n Proof where = axm2(a, arrow(a, a), a); //a->(a->a) -> (a->(a->a)->a) -> (a -> a)\n Proof one = axm1(a, a); //a->a->a\n Proof two = axm1(a, arrow(a, a)); //a->(a->a)->A\n return mpTwice(where, one, two);\n }", "interface C1939a {\n /* renamed from: a */\n Bitmap mo1406a(Bitmap bitmap, float f);\n}", "public interface a extends com.bankeen.d.b.b.a {\n void a();\n\n void b();\n }", "public b[] a() {\n/* 95 */ return this.a;\n/* */ }", "interface C8361a {\n /* renamed from: b */\n float mo18284b(ViewGroup viewGroup, View view);\n\n /* renamed from: c */\n float mo18281c(ViewGroup viewGroup, View view);\n }" ]
[ "0.6249669", "0.6242452", "0.61399835", "0.6117525", "0.61137056", "0.6089649", "0.6046804", "0.6024678", "0.6020427", "0.5975322", "0.59474325", "0.5912173", "0.5883731", "0.58788097", "0.58703065", "0.58670723", "0.5864566", "0.58566767", "0.5830755", "0.58286554", "0.58273774", "0.5795474", "0.5789155", "0.5783806", "0.57760274", "0.5770078", "0.57680553", "0.57531226", "0.569103", "0.56793714", "0.56700987", "0.56654674", "0.56597596", "0.5659196", "0.56579614", "0.5654381", "0.56449133", "0.5640629", "0.56392074", "0.56302243", "0.5617243", "0.56158006", "0.5606678", "0.56051916", "0.56014943", "0.55958104", "0.55910474", "0.5590642", "0.5574573", "0.5556904", "0.5555496", "0.55513936", "0.5550494", "0.5545024", "0.55376655", "0.5529486", "0.55293244", "0.55268556", "0.55256003", "0.5522323", "0.551999", "0.5510038", "0.55079377", "0.5488427", "0.5486585", "0.54819757", "0.5481469", "0.54804444", "0.54803044", "0.54776204", "0.54668623", "0.5463463", "0.5450725", "0.5443272", "0.54416984", "0.54404145", "0.5431594", "0.5423848", "0.54228616", "0.5418331", "0.5403878", "0.5400301", "0.539958", "0.5394461", "0.53896564", "0.5389041", "0.53753597", "0.53690916", "0.53597134", "0.5356917", "0.5355392", "0.535527", "0.53550094", "0.5350454", "0.5341916", "0.532629", "0.53219014", "0.5321064", "0.5316172", "0.5312055", "0.5298763" ]
0.0
-1
/ compiled from: CustomManager / renamed from: com.baidu.che.codriver.sdk.a.l$b
public interface C2604b { /* renamed from: a */ void mo1886a(String str, String str2); /* renamed from: a */ boolean mo1887a(String str); /* renamed from: b */ String mo1888b(String str, String str2, String str3, String str4); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "static /* synthetic */ android.os.Handler m19-get1(android.telecom.ConnectionServiceAdapterServant r1) {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e5 in method: android.telecom.ConnectionServiceAdapterServant.-get1(android.telecom.ConnectionServiceAdapterServant):android.os.Handler, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: android.telecom.ConnectionServiceAdapterServant.-get1(android.telecom.ConnectionServiceAdapterServant):android.os.Handler\");\n }", "private void m110495a() {\n C19535g a = DownloaderManagerHolder.m75524a();\n String x = C25352e.m83241x(this.f89235a.f89233a.f77546j);\n Aweme aweme = this.f89235a.f89233a.f77546j;\n C7573i.m23582a((Object) aweme, \"mAweme\");\n AwemeRawAd awemeRawAd = aweme.getAwemeRawAd();\n if (awemeRawAd == null) {\n C7573i.m23580a();\n }\n C7573i.m23582a((Object) awemeRawAd, \"mAweme.awemeRawAd!!\");\n Long adId = awemeRawAd.getAdId();\n C7573i.m23582a((Object) adId, \"mAweme.awemeRawAd!!.adId\");\n long longValue = adId.longValue();\n Aweme aweme2 = this.f89235a.f89233a.f77546j;\n C7573i.m23582a((Object) aweme2, \"mAweme\");\n C19386b a2 = C22943b.m75511a(\"result_ad\", aweme2.getAwemeRawAd(), \"bg_download_button\");\n Aweme aweme3 = this.f89235a.f89233a.f77546j;\n C7573i.m23582a((Object) aweme3, \"mAweme\");\n AwemeRawAd awemeRawAd2 = aweme3.getAwemeRawAd();\n if (awemeRawAd2 == null) {\n C7573i.m23580a();\n }\n a.mo51670a(x, longValue, 2, a2, C22942a.m75508a(awemeRawAd2));\n }", "public void mo115190b() {\n }", "public interface C35590c {\n /* renamed from: a */\n void mo56317a(Context context, Bundle bundle, C4541a c4541a);\n}", "public void mo21825b() {\n }", "public void mo115188a() {\n }", "public abstract void mo70713b();", "@Override // com.zhihu.android.sugaradapter.SugarHolder\n /* renamed from: a */\n public void mo56529a(Object obj) {\n }", "public void c() {\n List<DBUserBrief> b2 = this.f16688d.b(this.f16687c.c());\n ArrayList arrayList = new ArrayList();\n for (DBUserBrief a2 : b2) {\n UserBriefInfo userBriefInfo = new UserBriefInfo();\n b.a(a2, userBriefInfo);\n arrayList.add(userBriefInfo);\n }\n com.garena.android.appkit.b.b.a(\"MY_CUSTOMER_LOAD\", new a(arrayList), b.a.NETWORK_BUS);\n }", "static /* synthetic */ int m1-get0(cm.android.mdm.manager.PackageManager2.PackageInstallObserver2 r1) {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e3 in method: cm.android.mdm.manager.PackageManager2.PackageInstallObserver2.-get0(cm.android.mdm.manager.PackageManager2$PackageInstallObserver2):int, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: cm.android.mdm.manager.PackageManager2.PackageInstallObserver2.-get0(cm.android.mdm.manager.PackageManager2$PackageInstallObserver2):int\");\n }", "public PackageManager2(android.content.Context r1) {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e8 in method: cm.android.mdm.manager.PackageManager2.<init>(android.content.Context):void, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: cm.android.mdm.manager.PackageManager2.<init>(android.content.Context):void\");\n }", "static /* synthetic */ com.android.internal.telecom.IConnectionServiceAdapter m18-get0(android.telecom.ConnectionServiceAdapterServant r1) {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e5 in method: android.telecom.ConnectionServiceAdapterServant.-get0(android.telecom.ConnectionServiceAdapterServant):com.android.internal.telecom.IConnectionServiceAdapter, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: android.telecom.ConnectionServiceAdapterServant.-get0(android.telecom.ConnectionServiceAdapterServant):com.android.internal.telecom.IConnectionServiceAdapter\");\n }", "public void mo38117a() {\n }", "public final void mo88395b() {\n if (this.f90938h == null) {\n this.f90938h = new C29242a(this.f90931a, this.f90937g).mo74873a((C39376h) new C39376h() {\n /* renamed from: a */\n public final void mo74759a(C29296g gVar) {\n }\n\n /* renamed from: a */\n public final void mo74760a(C29296g gVar, int i) {\n }\n\n /* renamed from: d */\n public final void mo74763d(C29296g gVar) {\n }\n\n /* renamed from: b */\n public final void mo74761b(C29296g gVar) {\n C34867a.this.f90934d.setVisibility(0);\n if (!C39805en.m127445a()) {\n C23487o.m77136a((Activity) C34867a.this.f90931a);\n }\n C6907h.m21519a((Context) C34867a.this.f90931a, \"filter_confirm\", \"mid_page\", \"0\", 0, C34867a.this.f90936f);\n }\n\n /* renamed from: c */\n public final void mo74762c(C29296g gVar) {\n String str;\n C34867a.this.f90933c = gVar;\n C34867a.this.f90932b.mo88467a(gVar.f77273h);\n if (C34867a.this.f90935e != null) {\n C34867a.this.f90935e.mo98958a(gVar);\n }\n EffectCategoryResponse b = C35563c.m114837d().mo74825b(C34867a.this.f90933c);\n if (b == null) {\n str = \"\";\n } else {\n str = b.name;\n }\n C6907h.m21524a(\"select_filter\", (Map) C38511bc.m123103a().mo96485a(\"creation_id\", C34867a.this.f90932b.mo88460a().creationId).mo96485a(\"shoot_way\", C34867a.this.f90932b.mo88460a().mShootWay).mo96483a(\"draft_id\", C34867a.this.f90932b.mo88460a().draftId).mo96485a(\"enter_method\", \"click\").mo96485a(\"filter_name\", C34867a.this.f90933c.f77268c).mo96483a(\"filter_id\", C34867a.this.f90933c.f77266a).mo96485a(\"tab_name\", str).mo96485a(\"content_source\", C34867a.this.f90932b.mo88460a().getAvetParameter().getContentSource()).mo96485a(\"content_type\", C34867a.this.f90932b.mo88460a().getAvetParameter().getContentType()).mo96485a(\"enter_from\", \"video_edit_page\").f100112a);\n }\n }).mo74871a((C29240bc) new C39369c(C35563c.f93224F.mo70097l().mo74950c().mo74723f())).mo74874a(this.f90932b.mo88460a().getAvetParameter()).mo74876a();\n if (this.f90933c != null) {\n this.f90938h.mo74751a(this.f90933c);\n }\n }\n this.f90938h.mo74749a();\n this.f90934d.setVisibility(8);\n }", "public void mo1531a() {\n }", "public abstract void mo35054b();", "public void mo44053a() {\n }", "AnonymousClass2(android.telecom.ConnectionServiceAdapterServant r1) {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e8 in method: android.telecom.ConnectionServiceAdapterServant.2.<init>(android.telecom.ConnectionServiceAdapterServant):void, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: android.telecom.ConnectionServiceAdapterServant.2.<init>(android.telecom.ConnectionServiceAdapterServant):void\");\n }", "public abstract void mo6549b();", "void m1864a() {\r\n }", "public /* bridge */ /* synthetic */ void mo55096c() {\n super.mo55096c();\n }", "AnonymousClass1(android.telecom.ConnectionServiceAdapterServant r1) {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e8 in method: android.telecom.ConnectionServiceAdapterServant.1.<init>(android.telecom.ConnectionServiceAdapterServant):void, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: android.telecom.ConnectionServiceAdapterServant.1.<init>(android.telecom.ConnectionServiceAdapterServant):void\");\n }", "public /* bridge */ /* synthetic */ void mo55094a() {\n super.mo55094a();\n }", "public abstract void mo27464a();", "private PackageInstallObserver2(cm.android.mdm.manager.PackageManager2 r1) {\n /*\n // Can't load method instructions: Load method exception: null in method: cm.android.mdm.manager.PackageManager2.PackageInstallObserver2.<init>(cm.android.mdm.manager.PackageManager2):void, dex: in method: cm.android.mdm.manager.PackageManager2.PackageInstallObserver2.<init>(cm.android.mdm.manager.PackageManager2):void, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: cm.android.mdm.manager.PackageManager2.PackageInstallObserver2.<init>(cm.android.mdm.manager.PackageManager2):void\");\n }", "public abstract void mo53562a(C18796a c18796a);", "public void mo3370l() {\n }", "public void mo12930a() {\n }", "public final /* bridge */ /* synthetic */ void mo43566a() {\n super.mo43566a();\n }", "public interface C15428f {\n\n /* renamed from: com.ss.android.ugc.asve.context.f$a */\n public static final class C15429a {\n /* renamed from: a */\n public static String m45146a(C15428f fVar) {\n return \"\";\n }\n\n /* renamed from: b */\n public static String m45147b(C15428f fVar) {\n return \"\";\n }\n }\n\n /* renamed from: a */\n boolean mo38970a();\n\n /* renamed from: b */\n String mo38971b();\n\n /* renamed from: c */\n String mo38972c();\n\n /* renamed from: d */\n int mo38973d();\n\n /* renamed from: e */\n int mo38974e();\n}", "public void mo4359a() {\n }", "SmsCbCmasInfo(android.os.Parcel r1) {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e9 in method: android.telephony.SmsCbCmasInfo.<init>(android.os.Parcel):void, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: android.telephony.SmsCbCmasInfo.<init>(android.os.Parcel):void\");\n }", "public final void a(com.tencent.mm.plugin.game.c.ai r12, java.lang.String r13, int r14, int r15) {\n /*\n r11 = this;\n if (r12 == 0) goto L_0x000a;\n L_0x0002:\n r0 = r12.nmz;\n r0 = com.tencent.mm.sdk.platformtools.bi.cC(r0);\n if (r0 == 0) goto L_0x0010;\n L_0x000a:\n r0 = 8;\n r11.setVisibility(r0);\n L_0x000f:\n return;\n L_0x0010:\n r11.mAppId = r13;\n r11.niV = r15;\n r0 = r12.nmz;\n r7 = r0.iterator();\n L_0x001a:\n r0 = r7.hasNext();\n if (r0 == 0) goto L_0x000f;\n L_0x0020:\n r0 = r7.next();\n r4 = r0;\n r4 = (com.tencent.mm.plugin.game.c.k) r4;\n if (r4 == 0) goto L_0x001a;\n L_0x0029:\n r5 = new com.tencent.mm.plugin.game.d.e$a$a;\n r5.<init>();\n r0 = r4.nlz;\n switch(r0) {\n case 1: goto L_0x004a;\n case 2: goto L_0x00e3;\n default: goto L_0x0033;\n };\n L_0x0033:\n r0 = 2;\n if (r14 != r0) goto L_0x001a;\n L_0x0036:\n r0 = r11.mContext;\n r1 = 10;\n r2 = 1002; // 0x3ea float:1.404E-42 double:4.95E-321;\n r3 = r4.nlw;\n r4 = r4.nlr;\n r6 = com.tencent.mm.plugin.game.model.ap.CD(r4);\n r4 = r13;\n r5 = r15;\n com.tencent.mm.plugin.game.model.ap.a(r0, r1, r2, r3, r4, r5, r6);\n goto L_0x001a;\n L_0x004a:\n r0 = r4.nlx;\n if (r0 == 0) goto L_0x001a;\n L_0x004e:\n r11.e(r11);\n r0 = r11.DF;\n r1 = com.tencent.mm.R.i.djD;\n r2 = 1;\n r6 = r0.inflate(r1, r11, r2);\n r0 = com.tencent.mm.R.h.cxP;\n r0 = r6.findViewById(r0);\n r0 = (android.widget.TextView) r0;\n r1 = com.tencent.mm.R.h.cxR;\n r1 = r6.findViewById(r1);\n r1 = (android.widget.TextView) r1;\n r2 = com.tencent.mm.R.h.cxO;\n r2 = r6.findViewById(r2);\n r2 = (com.tencent.mm.plugin.game.widget.EllipsizingTextView) r2;\n r3 = 2;\n r2.setMaxLines(r3);\n r3 = com.tencent.mm.R.h.cxQ;\n r3 = r6.findViewById(r3);\n r3 = (android.widget.ImageView) r3;\n r8 = r11.mContext;\n r9 = r4.nlv;\n r10 = r0.getTextSize();\n r8 = com.tencent.mm.pluginsdk.ui.d.i.b(r8, r9, r10);\n r0.setText(r8);\n r0 = r11.mContext;\n r8 = r4.nlx;\n r8 = r8.fpg;\n r9 = r1.getTextSize();\n r0 = com.tencent.mm.pluginsdk.ui.d.i.b(r0, r8, r9);\n r1.setText(r0);\n r0 = r11.mContext;\n r1 = r4.nlx;\n r1 = r1.nkL;\n r8 = r2.getTextSize();\n r0 = com.tencent.mm.pluginsdk.ui.d.i.b(r0, r1, r8);\n r2.setText(r0);\n r0 = r4.nlx;\n r0 = r0.nkM;\n r0 = com.tencent.mm.sdk.platformtools.bi.oN(r0);\n if (r0 != 0) goto L_0x00dd;\n L_0x00b9:\n r0 = com.tencent.mm.plugin.game.d.e.aSC();\n r1 = r4.nlx;\n r1 = r1.nkM;\n r2 = r5.aSD();\n r0.a(r3, r1, r2);\n L_0x00c8:\n r0 = new com.tencent.mm.plugin.game.ui.f$a;\n r1 = r4.nlw;\n r2 = r4.nlx;\n r2 = r2.nkN;\n r3 = r4.nlr;\n r0.<init>(r1, r2, r3);\n r6.setTag(r0);\n r6.setOnClickListener(r11);\n goto L_0x0033;\n L_0x00dd:\n r0 = 8;\n r3.setVisibility(r0);\n goto L_0x00c8;\n L_0x00e3:\n r0 = r4.nly;\n if (r0 == 0) goto L_0x001a;\n L_0x00e7:\n r11.e(r11);\n r0 = r11.DF;\n r1 = com.tencent.mm.R.i.djE;\n r2 = 1;\n r3 = r0.inflate(r1, r11, r2);\n r0 = com.tencent.mm.R.h.cOG;\n r0 = r3.findViewById(r0);\n r0 = (android.widget.TextView) r0;\n r1 = com.tencent.mm.R.h.cOI;\n r1 = r3.findViewById(r1);\n r1 = (android.widget.TextView) r1;\n r2 = com.tencent.mm.R.h.cOH;\n r2 = r3.findViewById(r2);\n r2 = (android.widget.ImageView) r2;\n r6 = r11.mContext;\n r8 = r4.nlv;\n r9 = r0.getTextSize();\n r6 = com.tencent.mm.pluginsdk.ui.d.i.b(r6, r8, r9);\n r0.setText(r6);\n r0 = r11.mContext;\n r6 = r4.nly;\n r6 = r6.fpg;\n r8 = r1.getTextSize();\n r0 = com.tencent.mm.pluginsdk.ui.d.i.b(r0, r6, r8);\n r1.setText(r0);\n r0 = r4.nly;\n r0 = r0.nkM;\n r0 = com.tencent.mm.sdk.platformtools.bi.oN(r0);\n if (r0 != 0) goto L_0x016f;\n L_0x0135:\n r0 = r4.nly;\n r0 = r0.npS;\n r1 = 1;\n if (r0 != r1) goto L_0x0167;\n L_0x013c:\n r0 = 1;\n r5.nDa = r0;\n r0 = com.tencent.mm.R.g.bCF;\n r5.nDd = r0;\n L_0x0143:\n r0 = com.tencent.mm.plugin.game.d.e.aSC();\n r1 = r4.nly;\n r1 = r1.nkM;\n r5 = r5.aSD();\n r0.a(r2, r1, r5);\n L_0x0152:\n r0 = new com.tencent.mm.plugin.game.ui.f$a;\n r1 = r4.nlw;\n r2 = r4.nly;\n r2 = r2.nkN;\n r5 = r4.nlr;\n r0.<init>(r1, r2, r5);\n r3.setTag(r0);\n r3.setOnClickListener(r11);\n goto L_0x0033;\n L_0x0167:\n r0 = 1;\n r5.hFJ = r0;\n r0 = com.tencent.mm.R.g.bCE;\n r5.nDd = r0;\n goto L_0x0143;\n L_0x016f:\n r0 = 8;\n r2.setVisibility(r0);\n goto L_0x0152;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.tencent.mm.plugin.game.ui.f.a(com.tencent.mm.plugin.game.c.ai, java.lang.String, int, int):void\");\n }", "public abstract void mo27385c();", "public final /* bridge */ /* synthetic */ void mo43571c() {\n super.mo43571c();\n }", "public interface C34379a {\n /* renamed from: a */\n void mo46242a(bmc bmc);\n }", "public void mo21787L() {\n }", "public interface C43014c extends C1694a {\n\n /* renamed from: com.tencent.mm.plugin.expt.a.c$a */\n public enum C38982a {\n MM_DEFAULT(0),\n MMAppMgr_Activated(1),\n MMAppMgr_Deactivated(2),\n MMLifeCall_OnResume(3),\n MMLifeCall_OnPause(4),\n MMActivity_OnResume(5),\n MMActivity_OnPause(6),\n MMActivity_Back2Front(7),\n MMActivity_Front2Back(8);\n \n public int value;\n\n static {\n AppMethodBeat.m2505o(128627);\n }\n\n private C38982a(int i) {\n this.value = i;\n }\n\n /* renamed from: uW */\n public static C38982a m66222uW(int i) {\n switch (i) {\n case 1:\n return MMAppMgr_Activated;\n case 2:\n return MMAppMgr_Deactivated;\n case 3:\n return MMLifeCall_OnResume;\n case 4:\n return MMLifeCall_OnPause;\n case 5:\n return MMActivity_OnResume;\n case 6:\n return MMActivity_OnPause;\n case 7:\n return MMActivity_Back2Front;\n case 8:\n return MMActivity_Front2Back;\n default:\n return MM_DEFAULT;\n }\n }\n }\n\n void logout();\n}", "public void mo6944a() {\n }", "void mo80457c();", "interface C0932a {\n /* renamed from: a */\n void mo7438a(int i, int i2);\n\n /* renamed from: b */\n void mo7439b(C0933b bVar);\n\n /* renamed from: c */\n void mo7440c(int i, int i2, Object obj);\n\n /* renamed from: d */\n void mo7441d(C0933b bVar);\n\n /* renamed from: e */\n RecyclerView.ViewHolder mo7442e(int i);\n\n /* renamed from: f */\n void mo7443f(int i, int i2);\n\n /* renamed from: g */\n void mo7444g(int i, int i2);\n\n /* renamed from: h */\n void mo7445h(int i, int i2);\n }", "public interface C0003a {\n public static final String ah = \"image_manager_disk_cache\";\n public static final int hP = 262144000;\n\n @Nullable\n a bz();\n }", "public void mo56167c() {\n }", "public abstract void mo2150a();", "public void mo55254a() {\n }", "void mo72113b();", "public void mo55177a() {\n long unused = C3615m3.this.f1452k = System.currentTimeMillis();\n if (C3615m3.this.f1443b) {\n C3615m3.this.m1171c(new MDExternalError(MDExternalError.ExternalError.SDK_INITIALIZATION_IN_PROGRESS), this.f1467a);\n } else if (!C3615m3.this.f1447f.mo55921b() || C3615m3.this.f1447f.mo55918a()) {\n C3615m3.this.f1449h.updateFilePath(C3595k3.m1060d().mo55511a());\n boolean unused2 = C3615m3.this.f1443b = true;\n C3615m3.this.f1448g.mo55372a(C3615m3.this.f1442a, C3615m3.this.f1443b);\n if (C3723s4.m1629b() || C3723s4.m1628a()) {\n C3490e3.m665e(\"SDK Upgrade - delete UUID and local configuration storage\");\n C3661o5.m1405a();\n Pair<String, Boolean> a = C3729t0.m1642a();\n if (a != null) {\n AnalyticsBridge.getInstance().reportDeleteStorageEvent((String) a.first, ((Boolean) a.second).booleanValue());\n }\n }\n C3723s4.m1630c();\n C3615m3.this.m1172c(this.f1467a);\n C3580j createApiToken = ModelFactory.getInstance().createApiToken(this.f1468b);\n if (createApiToken == null) {\n boolean unused3 = C3615m3.this.f1443b = false;\n C3615m3.this.f1448g.mo55372a(C3615m3.this.f1442a, C3615m3.this.f1443b);\n C3615m3.this.m1158a((C3665p2) new C3593k1(C3586j3.C3587a.API_TOKEN_PARSE_ERROR), this.f1467a);\n C3615m3.this.clearAndDisconnect();\n } else if (!C3615m3.this.f1442a || C3604l2.m1115c().mo55538b() == null || !C3604l2.m1115c().mo55538b().mo55850a().equals(createApiToken.mo55850a())) {\n C3604l2.m1115c().mo55537a(createApiToken);\n if (!C3604l2.m1115c().mo55538b().mo55850a().equals(C3659o3.m1391f().mo55687a(C3815z4.C3816a.API_TOKEN))) {\n C3659o3.m1391f().mo55689a(C3815z4.C3816a.API_TOKEN, C3604l2.m1115c().mo55538b().mo55850a());\n C3659o3.m1391f().mo55689a(C3815z4.C3816a.ACCESS_TOKEN, (String) null);\n }\n C3490e3.m665e(\"SDK init started\");\n AnalyticsBridge.getInstance().reportInitEvent();\n C3767w0.m1812b().mo55893a();\n C3646n3.m1337m().mo55661a(60000, 3, 60000, 0, 512, 3);\n C3615m3.this.m1150a(this.f1467a);\n } else {\n boolean unused4 = C3615m3.this.f1443b = false;\n C3615m3.this.f1448g.mo55372a(C3615m3.this.f1442a, C3615m3.this.f1443b);\n C3615m3.this.m1163b(new MDExternalError(MDExternalError.ExternalError.SDK_IS_ALREADY_INITIALIZED), this.f1467a);\n }\n } else {\n C3615m3.this.m1163b(new MDExternalError(MDExternalError.ExternalError.SDK_IS_KILLED), this.f1467a);\n C3461c3.m562g().clearAndDisconnect();\n }\n }", "public void mo23813b() {\n }", "public void mo5251b() {\n }", "public final void mo51373a() {\n }", "static /* synthetic */ int m0-get0(cm.android.mdm.manager.PackageManager2.PackageDeleteObserver2 r1) {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e3 in method: cm.android.mdm.manager.PackageManager2.PackageDeleteObserver2.-get0(cm.android.mdm.manager.PackageManager2$PackageDeleteObserver2):int, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: cm.android.mdm.manager.PackageManager2.PackageDeleteObserver2.-get0(cm.android.mdm.manager.PackageManager2$PackageDeleteObserver2):int\");\n }", "public void mo1403c() {\n }", "public interface C9715b {\n\n /* renamed from: com.tencent.mm.modelvideo.b$a */\n public interface C9714a {\n /* renamed from: ad */\n void mo9058ad(String str, int i);\n\n /* renamed from: h */\n void mo9075h(String str, int i, int i2);\n\n /* renamed from: ml */\n void mo21050ml(int i);\n\n void onDataAvailable(String str, int i, int i2);\n }\n\n /* renamed from: a */\n void mo8712a(C9714a c9714a);\n\n /* renamed from: dV */\n void mo8713dV(String str);\n\n boolean isVideoDataAvailable(String str, int i, int i2);\n\n /* renamed from: r */\n void mo8715r(String str, String str2, String str3);\n\n void requestVideoData(String str, int i, int i2);\n}", "private Dex2JarProxy() {\r\n\t}", "public void mo2740a() {\n }", "private CodeRef() {\n }", "private static class <init> extends l\n{\n\n public int noteOp(Context context, String s, int i, String s1)\n {\n return AppOpsManagerCompat23.noteOp(context, s, i, s1);\n }", "@Override // com.zhihu.android.p1973v.p1974a.BaseDelegate\n /* renamed from: b */\n public String mo110892b() {\n return C6969H.m41409d(\"G6A8CD854A538A221F3409146F6F7CCDE6DCDC014B633A424A83B9E41F1EACEF87986C71BAB3FB9\");\n }", "public void mo9848a() {\n }", "@Override // com.zhihu.android.p1480db.fragment.customview.DbEditorBaseCustomView\n /* renamed from: a */\n public void mo88619a(View view) {\n m93356b(view);\n m93350a();\n m93355b();\n }", "void mo17012c();", "private PackageDeleteObserver2(cm.android.mdm.manager.PackageManager2 r1) {\n /*\n // Can't load method instructions: Load method exception: null in method: cm.android.mdm.manager.PackageManager2.PackageDeleteObserver2.<init>(cm.android.mdm.manager.PackageManager2):void, dex: in method: cm.android.mdm.manager.PackageManager2.PackageDeleteObserver2.<init>(cm.android.mdm.manager.PackageManager2):void, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: cm.android.mdm.manager.PackageManager2.PackageDeleteObserver2.<init>(cm.android.mdm.manager.PackageManager2):void\");\n }", "public interface C11112n {\n /* renamed from: a */\n void mo38026a();\n }", "public void mo9137b() {\n }", "void mo80455b();", "protected void mo6255a() {\n }", "public void mo21785J() {\n }", "public interface AbstractC5208b {\n\n /* renamed from: com.iflytek.voiceads.a.b$a */\n public static final class C5209a implements AbstractC5208b {\n\n /* renamed from: a */\n private final byte[] f22887a;\n\n /* renamed from: b */\n private int f22888b;\n\n C5209a(byte[] bArr) {\n this.f22887a = bArr;\n }\n\n @Override // com.iflytek.voiceads.p619a.AbstractC5208b\n /* renamed from: a */\n public void mo38565a(int i) {\n this.f22888b = i;\n }\n\n @Override // com.iflytek.voiceads.p619a.AbstractC5208b\n /* renamed from: a */\n public byte[] mo38566a() {\n return this.f22887a;\n }\n\n @Override // com.iflytek.voiceads.p619a.AbstractC5208b\n /* renamed from: b */\n public int mo38567b() {\n return this.f22888b;\n }\n }\n\n /* renamed from: a */\n void mo38565a(int i);\n\n /* renamed from: a */\n byte[] mo38566a();\n\n /* renamed from: b */\n int mo38567b();\n}", "public void mo3376r() {\n }", "public void m23075a() {\n }", "public abstract void mo42329d();", "public abstract void mo70702a(C30989b c30989b);", "public void mo3749d() {\n }", "public void mo6081a() {\n }", "@Override\n public void func_104112_b() {\n \n }", "void mo21072c();", "Bundle mo29838Oa() throws RemoteException;", "public void mo21782G() {\n }", "public abstract Object mo1771a();", "public void mo21779D() {\n }", "private final void m11061a(android.app.Activity r5, app.zenly.locator.experimental.inbox.p092i.C3708a r6) {\n /*\n r4 = this;\n app.zenly.locator.experimental.inbox.j.b r0 = r6.mo10234a()\n co.znly.models.i r0 = r0.mo10237a()\n if (r0 == 0) goto L_0x0011\n java.util.List r0 = r0.getPhoneNumbersList()\n if (r0 == 0) goto L_0x0011\n goto L_0x0015\n L_0x0011:\n java.util.List r0 = kotlin.collections.C12848o.m33640a()\n L_0x0015:\n androidx.appcompat.app.a$a r1 = new androidx.appcompat.app.a$a\n r1.<init>(r5)\n r2 = 2131231362(0x7f080282, float:1.8078803E38)\n r1.mo527a(r2)\n r2 = 2132018240(0x7f140440, float:1.9674781E38)\n r1.mo548c(r2)\n app.zenly.locator.experimental.inbox.b$a r2 = new app.zenly.locator.experimental.inbox.b$a\n r2.<init>(r4, r6)\n r1.mo530a(r2)\n android.widget.ArrayAdapter r2 = new android.widget.ArrayAdapter\n r3 = 2131624347(0x7f0e019b, float:1.8875871E38)\n r2.<init>(r5, r3, r0)\n app.zenly.locator.experimental.inbox.b$b r3 = new app.zenly.locator.experimental.inbox.b$b\n r3.<init>(r4, r0, r6, r5)\n r1.mo536a(r2, r3)\n androidx.appcompat.app.a r5 = r1.mo542a()\n r5.show()\n return\n */\n throw new UnsupportedOperationException(\"Method not decompiled: app.zenly.locator.experimental.inbox.C3689b.m11061a(android.app.Activity, app.zenly.locator.experimental.inbox.i.a):void\");\n }", "public abstract void mo30696a();", "public final /* bridge */ /* synthetic */ void mo43569b() {\n super.mo43569b();\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 }", "public abstract void mo3994a();", "public interface C3210f extends C11871b<DeletedProgramBroadcastReceiver> {\n\n /* renamed from: com.bamtechmedia.dominguez.channels.tv.f$a */\n /* compiled from: FeatureChannelModule_ProvidesWatchNextProgramBroadcastReceiver */\n public interface C3211a extends C11872a<DeletedProgramBroadcastReceiver> {\n }\n}", "@Override\n\t\t\t\tpublic void a() {\n\n\t\t\t\t}", "public void mo5248a() {\n }", "public void mo5382o() {\n }", "public interface C39682m {\n\n /* renamed from: com.ss.android.ugc.aweme.shortvideo.edit.m$a */\n public interface C39683a {\n /* renamed from: a */\n int mo98966a(C29296g gVar);\n\n /* renamed from: b */\n int mo98967b(C29296g gVar);\n\n /* renamed from: c */\n float mo98968c(C29296g gVar);\n }\n\n /* renamed from: com.ss.android.ugc.aweme.shortvideo.edit.m$b */\n public interface C39684b {\n /* renamed from: a */\n void mo98969a();\n\n /* renamed from: a */\n void mo98970a(C29296g gVar);\n\n /* renamed from: a */\n void mo98971a(C29296g gVar, int i);\n }\n}", "public abstract C mo29734a();", "AnonymousClass1() {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 0073 in method: android.telephony.SmsCbCmasInfo.1.<init>():void, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: android.telephony.SmsCbCmasInfo.1.<init>():void\");\n }", "void mo17021c();", "public /* bridge */ /* synthetic */ java.lang.Object[] newArray(int r1) {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e9 in method: android.telephony.SmsCbCmasInfo.1.newArray(int):java.lang.Object[], dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: android.telephony.SmsCbCmasInfo.1.newArray(int):java.lang.Object[]\");\n }", "void mo56317a(Context context, Bundle bundle, C4541a c4541a);" ]
[ "0.5917358", "0.5889018", "0.5875337", "0.58647555", "0.5853213", "0.58523786", "0.58367246", "0.5819673", "0.5799411", "0.5764549", "0.57496786", "0.5739321", "0.57352763", "0.5730434", "0.5729237", "0.5722058", "0.57105666", "0.57093734", "0.56956404", "0.5691314", "0.569023", "0.568497", "0.56827986", "0.5679674", "0.5677583", "0.56720483", "0.5667751", "0.56629205", "0.566207", "0.564872", "0.56453276", "0.5634679", "0.56333566", "0.56286883", "0.5615204", "0.5606095", "0.5604774", "0.55940294", "0.5593967", "0.55800176", "0.55747217", "0.5558964", "0.55536276", "0.5548149", "0.554768", "0.5543049", "0.5536989", "0.5531591", "0.55275255", "0.55272806", "0.5525145", "0.5520429", "0.5515599", "0.55117226", "0.5510716", "0.5510417", "0.5505717", "0.5502617", "0.5487953", "0.54860437", "0.54859686", "0.54835534", "0.54744244", "0.54736716", "0.54727143", "0.54684216", "0.5467173", "0.54670316", "0.54624146", "0.5459752", "0.54541206", "0.5453502", "0.54533774", "0.54502887", "0.5449449", "0.5447182", "0.5446592", "0.54461", "0.5441274", "0.5440147", "0.5439746", "0.54345834", "0.5432833", "0.54300535", "0.54300535", "0.54300535", "0.54300535", "0.54300535", "0.54300535", "0.54300535", "0.542824", "0.5425947", "0.54251117", "0.54200655", "0.5418615", "0.54182637", "0.5413212", "0.5413135", "0.5412163", "0.5405166", "0.53984416" ]
0.0
-1
/ renamed from: a
void mo1886a(String str, String str2);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface C4521a {\n /* renamed from: a */\n void mo12348a();\n }", "public interface C1423a {\n /* renamed from: a */\n void mo6888a(int i);\n }", "interface bxc {\n /* renamed from: a */\n void mo2508a(bxb bxb);\n}", "interface C33292a {\n /* renamed from: a */\n void mo85415a(String str);\n }", "interface C10331b {\n /* renamed from: a */\n void mo26876a(int i);\n }", "public interface C0779a {\n /* renamed from: a */\n void mo2311a();\n}", "public interface C6788a {\n /* renamed from: a */\n void mo20141a();\n }", "public interface C0237a {\n /* renamed from: a */\n void mo1791a(String str);\n }", "public interface C35013b {\n /* renamed from: a */\n void mo88773a(int i);\n}", "public interface C11112n {\n /* renamed from: a */\n void mo38026a();\n }", "@Override\n\t\t\t\tpublic void a() {\n\n\t\t\t\t}", "public interface C23407b {\n /* renamed from: a */\n void mo60892a();\n\n /* renamed from: b */\n void mo60893b();\n }", "interface C0312e {\n /* renamed from: a */\n void mo4671a(View view, int i, int i2, int i3, int i4);\n }", "public interface C34379a {\n /* renamed from: a */\n void mo46242a(bmc bmc);\n }", "public interface C32456b<T> {\n /* renamed from: a */\n void mo83696a(T t);\n }", "private String convertir(String a) {\n StringBuilder atributo = new StringBuilder(a);\n atributo.insert(0, Character.toUpperCase(atributo.charAt(0)));\n return atributo.deleteCharAt(1).toString();\n }", "protected m a(String name) {\n/* 42 */ return this.a.get(name);\n/* */ }", "public interface AbstractC23925a {\n /* renamed from: a */\n void mo105476a();\n }", "private interface C0257a {\n /* renamed from: a */\n float mo196a(ViewGroup viewGroup, View view);\n\n /* renamed from: b */\n float mo195b(ViewGroup viewGroup, View view);\n }", "public interface C3598a {\n /* renamed from: a */\n void mo11024a(int i, int i2, String str);\n }", "public interface C2459d {\n /* renamed from: a */\n C2451d mo3408a(C2457e c2457e);\n}", "public interface am extends ak {\r\n /* renamed from: a */\r\n void mo194a(int i) throws RemoteException;\r\n\r\n /* renamed from: a */\r\n void mo195a(List<LatLng> list) throws RemoteException;\r\n\r\n /* renamed from: b */\r\n void mo196b(float f) throws RemoteException;\r\n\r\n /* renamed from: b */\r\n void mo197b(boolean z);\r\n\r\n /* renamed from: c */\r\n void mo198c(boolean z) throws RemoteException;\r\n\r\n /* renamed from: g */\r\n float mo199g() throws RemoteException;\r\n\r\n /* renamed from: h */\r\n int mo200h() throws RemoteException;\r\n\r\n /* renamed from: i */\r\n List<LatLng> mo201i() throws RemoteException;\r\n\r\n /* renamed from: j */\r\n boolean mo202j();\r\n\r\n /* renamed from: k */\r\n boolean mo203k();\r\n}", "public interface C32459e<T> {\n /* renamed from: a */\n void mo83698a(T t);\n }", "public interface C32458d<T> {\n /* renamed from: a */\n void mo83695a(T t);\n }", "public interface C5482b {\n /* renamed from: a */\n void mo27575a();\n\n /* renamed from: a */\n void mo27576a(int i);\n }", "public interface C27084a {\n /* renamed from: a */\n void mo69874a();\n\n /* renamed from: a */\n void mo69875a(List<Aweme> list, boolean z);\n }", "public void a() {\n ((a) this.a).a();\n }", "public interface C1153a {\n /* renamed from: a */\n void mo4520a(byte[] bArr);\n }", "public interface C13373b {\n /* renamed from: a */\n void mo32681a(String str, int i, boolean z);\n}", "public interface C40453c {\n /* renamed from: a */\n void mo100442a(C40429b bVar);\n\n /* renamed from: a */\n void mo100443a(List<String> list);\n\n /* renamed from: b */\n void mo100444b(List<C40429b> list);\n}", "public interface AbstractC17367b {\n /* renamed from: a */\n void mo84655a();\n }", "@Override\r\n\tpublic void a() {\n\t\t\r\n\t}", "public interface C43270a {\n /* renamed from: a */\n void mo64942a(String str, long j, long j2);\n}", "public interface C18928d {\n /* renamed from: a */\n void mo50320a(C18924b bVar);\n\n /* renamed from: b */\n void mo50321b(C18924b bVar);\n}", "public interface C0087c {\n /* renamed from: a */\n String mo150a(String str);\n}", "public interface C1529m {\n /* renamed from: a */\n void mo3767a(int i);\n\n /* renamed from: a */\n void mo3768a(String str);\n}", "interface C4483e {\n /* renamed from: a */\n boolean mo34114a();\n}", "public interface C1234b {\r\n /* renamed from: a */\r\n void m8367a();\r\n\r\n /* renamed from: b */\r\n void m8368b();\r\n}", "public interface C10965j<T> {\n /* renamed from: a */\n T mo26439a();\n}", "public interface C28772a {\n /* renamed from: a */\n View mo73990a(View view);\n }", "@Override\n\tpublic void a() {\n\t\t\n\t}", "public interface C8326b {\n /* renamed from: a */\n C8325a mo21498a(String str);\n\n /* renamed from: a */\n void mo21499a(C8325a aVar);\n}", "void metodo1(int a, int[] b) {\r\n\t\ta += 5;//Par\\u00e1metro con el mismo nombre que el campo de la clase.\r\n\t\tb[0] += 7;//se produce un env\\u00edo por referencia, apunta a una copia de un objeto, que se asigna aqu\\u00ed.\r\n\t}", "public interface C2367a {\n /* renamed from: a */\n C2368d mo1698a();\n }", "interface C30585a {\n /* renamed from: b */\n void mo27952b(C5379a c5379a, int i, C46650a c46650a, C7620bi c7620bi);\n }", "public interface C4211a {\n\n /* renamed from: com.iab.omid.library.oguryco.c.a$a */\n public interface C4212a {\n /* renamed from: a */\n void mo28760a(View view, C4211a aVar, JSONObject jSONObject);\n }\n\n /* renamed from: a */\n JSONObject mo28758a(View view);\n\n /* renamed from: a */\n void mo28759a(View view, JSONObject jSONObject, C4212a aVar, boolean z);\n}", "public interface C4697a extends C5595at {\n /* renamed from: a */\n void mo12634a();\n\n /* renamed from: a */\n void mo12635a(String str);\n\n /* renamed from: a */\n void mo12636a(boolean z);\n\n /* renamed from: b */\n void mo12637b();\n\n /* renamed from: c */\n void mo12638c();\n }", "public interface C4773c {\n /* renamed from: a */\n void m15858a(int i);\n\n /* renamed from: a */\n void m15859a(int i, int i2);\n\n /* renamed from: a */\n void m15860a(int i, int i2, int i3);\n\n /* renamed from: b */\n void m15861b(int i, int i2);\n}", "public interface C4869f {\n /* renamed from: a */\n C4865b mo6249a();\n}", "public interface C1799a {\n /* renamed from: b */\n void mo3314b(String str);\n }", "public interface C43499b {\n /* renamed from: a */\n void mo8445a(int i, String str, int i2, byte[] bArr);\n}", "public interface C0601aq {\n /* renamed from: a */\n void mo9148a(int i, ArrayList<C0889x> arrayList);\n}", "public interface C45101e {\n /* renamed from: b */\n void mo3796b(int i);\n}", "public interface AbstractC6461g {\n /* renamed from: a */\n String mo42332a();\n}", "public interface AbstractC1645a {\n /* renamed from: a */\n String mo17375a();\n }", "public interface C6178c {\n /* renamed from: a */\n Map<String, String> mo14888a();\n}", "public interface C5101b {\n /* renamed from: a */\n void mo5289a(C5102c c5102c);\n\n /* renamed from: b */\n void mo5290b(C5102c c5102c);\n}", "public interface C19045k {\n /* renamed from: a */\n void mo50368a(int i, Object obj);\n\n /* renamed from: b */\n void mo50369b(int i, Object obj);\n}", "public b a()\r\n/* 12: */ {\r\n/* 13:13 */ return this.a;\r\n/* 14: */ }", "public interface C7720a {\n /* renamed from: a */\n long mo20406a();\n}", "public String a()\r\n/* 25: */ {\r\n/* 26:171 */ return \"dig.\" + this.a;\r\n/* 27: */ }", "public interface ayt {\n /* renamed from: a */\n int mo1635a(long j, List list);\n\n /* renamed from: a */\n long mo1636a(long j, alb alb);\n\n /* renamed from: a */\n void mo1637a();\n\n /* renamed from: a */\n void mo1638a(long j, long j2, List list, ayp ayp);\n\n /* renamed from: a */\n void mo1639a(ayl ayl);\n\n /* renamed from: a */\n boolean mo1640a(ayl ayl, boolean z, Exception exc, long j);\n}", "public interface C24221b extends C28343z<C28318an> {\n /* renamed from: a */\n void mo62991a(int i);\n\n String aw_();\n\n /* renamed from: e */\n Aweme mo62993e();\n}", "public interface C4051c {\n /* renamed from: a */\n boolean mo23707a();\n}", "public interface C45112b {\n /* renamed from: a */\n List<C45111a> mo107674a(Integer num);\n\n /* renamed from: a */\n List<C45111a> mo107675a(Integer num, Integer num2);\n\n /* renamed from: a */\n void mo107676a(C45111a aVar);\n\n /* renamed from: b */\n void mo107677b(Integer num);\n\n /* renamed from: c */\n long mo107678c(Integer num);\n}", "public void acionou(int a){\n\t\t\tb=a;\n\t\t}", "public interface C44963i {\n /* renamed from: a */\n void mo63037a(int i, int i2);\n\n void aA_();\n\n /* renamed from: b */\n void mo63039b(int i, int i2);\n}", "public interface C32457c<T> {\n /* renamed from: a */\n void mo83699a(T t, int i, int i2, String str);\n }", "public interface C5861g {\n /* renamed from: a */\n void mo18320a(C7251a aVar);\n\n @Deprecated\n /* renamed from: a */\n void mo18321a(C7251a aVar, String str);\n\n /* renamed from: a */\n void mo18322a(C7252b bVar);\n\n /* renamed from: a */\n void mo18323a(C7253c cVar);\n\n /* renamed from: a */\n void mo18324a(C7260j jVar);\n}", "public interface C0937a {\n /* renamed from: a */\n void mo3807a(C0985po[] poVarArr);\n }", "public interface C8466a {\n /* renamed from: a */\n void mo25956a(int i);\n\n /* renamed from: a */\n void mo25957a(long j, long j2);\n }", "public interface C39684b {\n /* renamed from: a */\n void mo98969a();\n\n /* renamed from: a */\n void mo98970a(C29296g gVar);\n\n /* renamed from: a */\n void mo98971a(C29296g gVar, int i);\n }", "public interface C43470b {\n /* renamed from: a */\n void mo61496a(C43469a aVar, C43471c cVar);\n }", "public interface AbstractC18255a {\n /* renamed from: a */\n void mo88521a();\n\n /* renamed from: a */\n void mo88522a(String str);\n\n /* renamed from: b */\n void mo88523b();\n\n /* renamed from: c */\n void mo88524c();\n }", "public interface C1436d {\n /* renamed from: a */\n C1435c mo1754a(C1433a c1433a, C1434b c1434b);\n}", "public interface C4150sl {\n /* renamed from: a */\n void mo15005a(C4143se seVar);\n}", "public void a(nm paramnm)\r\n/* 28: */ {\r\n/* 29:45 */ paramnm.a(this);\r\n/* 30: */ }", "public interface C19351a {\n /* renamed from: b */\n void mo30633b(int i, String str, byte[] bArr);\n }", "public interface C11113o {\n /* renamed from: a */\n void mo37759a(String str);\n }", "public interface C39504az {\n /* renamed from: a */\n int mo98207a();\n\n /* renamed from: a */\n void mo98208a(boolean z);\n\n /* renamed from: b */\n int mo98209b();\n\n /* renamed from: c */\n int mo98355c();\n\n /* renamed from: d */\n int mo98356d();\n\n /* renamed from: e */\n int mo98357e();\n\n /* renamed from: f */\n int mo98358f();\n}", "protected a<T> a(Tag.e<T> var0) {\n/* 80 */ Tag.a var1 = b(var0);\n/* 81 */ return new a<>(var1, this.c, \"vanilla\");\n/* */ }", "public interface C35565a {\n /* renamed from: a */\n C45321i mo90380a();\n }", "public interface C21298a {\n /* renamed from: a */\n void mo57275a();\n\n /* renamed from: a */\n void mo57276a(Exception exc);\n\n /* renamed from: b */\n void mo57277b();\n\n /* renamed from: c */\n void mo57278c();\n }", "public interface C40108b {\n /* renamed from: a */\n void mo99838a(boolean z);\n }", "public interface C0456a {\n /* renamed from: a */\n void mo2090a(C0455b bVar);\n\n /* renamed from: a */\n boolean mo2091a(C0455b bVar, Menu menu);\n\n /* renamed from: a */\n boolean mo2092a(C0455b bVar, MenuItem menuItem);\n\n /* renamed from: b */\n boolean mo2093b(C0455b bVar, Menu menu);\n }", "public interface C4724o {\n /* renamed from: a */\n void mo4872a(int i, String str);\n\n /* renamed from: a */\n void mo4873a(C4718l c4718l);\n\n /* renamed from: b */\n void mo4874b(C4718l c4718l);\n}", "public interface C7654b {\n /* renamed from: a */\n C7904c mo24084a();\n\n /* renamed from: b */\n C7716a mo24085b();\n }", "public interface C2603a {\n /* renamed from: a */\n String mo1889a(String str, String str2, String str3, String str4);\n }", "public interface afp {\n /* renamed from: a */\n C0512sx mo169a(C0497si siVar, afj afj, afr afr, Context context);\n}", "public interface C0615ja extends b<HomeFragment> {\n\n /* renamed from: c.c.a.h.b.ja$a */\n /* compiled from: FragmentModule_HomeFragment$app_bazaarRelease */\n public static abstract class a extends b.a<HomeFragment> {\n }\n}", "public interface a {\n\n /* renamed from: c.b.a.c.b.b.a$a reason: collision with other inner class name */\n /* compiled from: DiskCache */\n public interface C0054a {\n a build();\n }\n\n /* compiled from: DiskCache */\n public interface b {\n boolean a(File file);\n }\n\n File a(c cVar);\n\n void a(c cVar, b bVar);\n}", "public interface C0940d {\n /* renamed from: a */\n void mo3305a(boolean z);\n }", "public interface AbstractC17368c {\n /* renamed from: a */\n void mo84656a(float f);\n }", "interface C0932a {\n /* renamed from: a */\n void mo7438a(int i, int i2);\n\n /* renamed from: b */\n void mo7439b(C0933b bVar);\n\n /* renamed from: c */\n void mo7440c(int i, int i2, Object obj);\n\n /* renamed from: d */\n void mo7441d(C0933b bVar);\n\n /* renamed from: e */\n RecyclerView.ViewHolder mo7442e(int i);\n\n /* renamed from: f */\n void mo7443f(int i, int i2);\n\n /* renamed from: g */\n void mo7444g(int i, int i2);\n\n /* renamed from: h */\n void mo7445h(int i, int i2);\n }", "public interface C10330c {\n /* renamed from: a */\n C7562b<C10403b, C10328a> mo25041a();\n}", "public interface C3819a {\n /* renamed from: a */\n void mo23214a(Message message);\n }", "private Proof atoAImpl(Expression a) {\n Proof where = axm2(a, arrow(a, a), a); //a->(a->a) -> (a->(a->a)->a) -> (a -> a)\n Proof one = axm1(a, a); //a->a->a\n Proof two = axm1(a, arrow(a, a)); //a->(a->a)->A\n return mpTwice(where, one, two);\n }", "interface C1939a {\n /* renamed from: a */\n Bitmap mo1406a(Bitmap bitmap, float f);\n}", "public interface a extends com.bankeen.d.b.b.a {\n void a();\n\n void b();\n }", "public b[] a() {\n/* 95 */ return this.a;\n/* */ }", "interface C8361a {\n /* renamed from: b */\n float mo18284b(ViewGroup viewGroup, View view);\n\n /* renamed from: c */\n float mo18281c(ViewGroup viewGroup, View view);\n }" ]
[ "0.62497115", "0.6242887", "0.61394435", "0.61176854", "0.6114027", "0.60893", "0.6046901", "0.6024682", "0.60201293", "0.5975212", "0.59482527", "0.59121317", "0.5883635", "0.587841", "0.58703005", "0.5868436", "0.5864884", "0.5857492", "0.58306104", "0.5827752", "0.58272064", "0.5794689", "0.57890314", "0.57838726", "0.5775679", "0.57694733", "0.5769128", "0.57526815", "0.56907034", "0.5677874", "0.5670547", "0.56666386", "0.56592244", "0.5658682", "0.56574154", "0.5654324", "0.5644676", "0.56399715", "0.5638734", "0.5630582", "0.56183887", "0.5615435", "0.56069666", "0.5605207", "0.56005067", "0.559501", "0.55910283", "0.5590222", "0.55736613", "0.5556682", "0.5554544", "0.5550076", "0.55493855", "0.55446684", "0.5538079", "0.5529058", "0.5528109", "0.552641", "0.5525864", "0.552186", "0.5519972", "0.5509587", "0.5507195", "0.54881203", "0.5485328", "0.54826045", "0.5482066", "0.5481586", "0.5479751", "0.54776895", "0.54671466", "0.5463307", "0.54505056", "0.54436916", "0.5440517", "0.5439747", "0.5431944", "0.5422869", "0.54217863", "0.5417556", "0.5403905", "0.5400223", "0.53998446", "0.5394735", "0.5388649", "0.5388258", "0.5374842", "0.5368887", "0.53591394", "0.5357029", "0.5355688", "0.535506", "0.5355034", "0.53494394", "0.5341044", "0.5326166", "0.53236824", "0.53199095", "0.53177035", "0.53112453", "0.5298229" ]
0.0
-1
/ renamed from: a
boolean mo1887a(String str);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface C4521a {\n /* renamed from: a */\n void mo12348a();\n }", "public interface C1423a {\n /* renamed from: a */\n void mo6888a(int i);\n }", "interface bxc {\n /* renamed from: a */\n void mo2508a(bxb bxb);\n}", "interface C33292a {\n /* renamed from: a */\n void mo85415a(String str);\n }", "interface C10331b {\n /* renamed from: a */\n void mo26876a(int i);\n }", "public interface C0779a {\n /* renamed from: a */\n void mo2311a();\n}", "public interface C6788a {\n /* renamed from: a */\n void mo20141a();\n }", "public interface C0237a {\n /* renamed from: a */\n void mo1791a(String str);\n }", "public interface C35013b {\n /* renamed from: a */\n void mo88773a(int i);\n}", "public interface C11112n {\n /* renamed from: a */\n void mo38026a();\n }", "@Override\n\t\t\t\tpublic void a() {\n\n\t\t\t\t}", "public interface C23407b {\n /* renamed from: a */\n void mo60892a();\n\n /* renamed from: b */\n void mo60893b();\n }", "interface C0312e {\n /* renamed from: a */\n void mo4671a(View view, int i, int i2, int i3, int i4);\n }", "public interface C34379a {\n /* renamed from: a */\n void mo46242a(bmc bmc);\n }", "public interface C32456b<T> {\n /* renamed from: a */\n void mo83696a(T t);\n }", "private String convertir(String a) {\n StringBuilder atributo = new StringBuilder(a);\n atributo.insert(0, Character.toUpperCase(atributo.charAt(0)));\n return atributo.deleteCharAt(1).toString();\n }", "protected m a(String name) {\n/* 42 */ return this.a.get(name);\n/* */ }", "public interface AbstractC23925a {\n /* renamed from: a */\n void mo105476a();\n }", "private interface C0257a {\n /* renamed from: a */\n float mo196a(ViewGroup viewGroup, View view);\n\n /* renamed from: b */\n float mo195b(ViewGroup viewGroup, View view);\n }", "public interface C3598a {\n /* renamed from: a */\n void mo11024a(int i, int i2, String str);\n }", "public interface C2459d {\n /* renamed from: a */\n C2451d mo3408a(C2457e c2457e);\n}", "public interface am extends ak {\r\n /* renamed from: a */\r\n void mo194a(int i) throws RemoteException;\r\n\r\n /* renamed from: a */\r\n void mo195a(List<LatLng> list) throws RemoteException;\r\n\r\n /* renamed from: b */\r\n void mo196b(float f) throws RemoteException;\r\n\r\n /* renamed from: b */\r\n void mo197b(boolean z);\r\n\r\n /* renamed from: c */\r\n void mo198c(boolean z) throws RemoteException;\r\n\r\n /* renamed from: g */\r\n float mo199g() throws RemoteException;\r\n\r\n /* renamed from: h */\r\n int mo200h() throws RemoteException;\r\n\r\n /* renamed from: i */\r\n List<LatLng> mo201i() throws RemoteException;\r\n\r\n /* renamed from: j */\r\n boolean mo202j();\r\n\r\n /* renamed from: k */\r\n boolean mo203k();\r\n}", "public interface C32459e<T> {\n /* renamed from: a */\n void mo83698a(T t);\n }", "public interface C32458d<T> {\n /* renamed from: a */\n void mo83695a(T t);\n }", "public interface C5482b {\n /* renamed from: a */\n void mo27575a();\n\n /* renamed from: a */\n void mo27576a(int i);\n }", "public interface C27084a {\n /* renamed from: a */\n void mo69874a();\n\n /* renamed from: a */\n void mo69875a(List<Aweme> list, boolean z);\n }", "public void a() {\n ((a) this.a).a();\n }", "public interface C1153a {\n /* renamed from: a */\n void mo4520a(byte[] bArr);\n }", "public interface C13373b {\n /* renamed from: a */\n void mo32681a(String str, int i, boolean z);\n}", "public interface C40453c {\n /* renamed from: a */\n void mo100442a(C40429b bVar);\n\n /* renamed from: a */\n void mo100443a(List<String> list);\n\n /* renamed from: b */\n void mo100444b(List<C40429b> list);\n}", "public interface AbstractC17367b {\n /* renamed from: a */\n void mo84655a();\n }", "@Override\r\n\tpublic void a() {\n\t\t\r\n\t}", "public interface C43270a {\n /* renamed from: a */\n void mo64942a(String str, long j, long j2);\n}", "public interface C18928d {\n /* renamed from: a */\n void mo50320a(C18924b bVar);\n\n /* renamed from: b */\n void mo50321b(C18924b bVar);\n}", "public interface C0087c {\n /* renamed from: a */\n String mo150a(String str);\n}", "public interface C1529m {\n /* renamed from: a */\n void mo3767a(int i);\n\n /* renamed from: a */\n void mo3768a(String str);\n}", "interface C4483e {\n /* renamed from: a */\n boolean mo34114a();\n}", "public interface C1234b {\r\n /* renamed from: a */\r\n void m8367a();\r\n\r\n /* renamed from: b */\r\n void m8368b();\r\n}", "public interface C10965j<T> {\n /* renamed from: a */\n T mo26439a();\n}", "public interface C28772a {\n /* renamed from: a */\n View mo73990a(View view);\n }", "@Override\n\tpublic void a() {\n\t\t\n\t}", "public interface C8326b {\n /* renamed from: a */\n C8325a mo21498a(String str);\n\n /* renamed from: a */\n void mo21499a(C8325a aVar);\n}", "void metodo1(int a, int[] b) {\r\n\t\ta += 5;//Par\\u00e1metro con el mismo nombre que el campo de la clase.\r\n\t\tb[0] += 7;//se produce un env\\u00edo por referencia, apunta a una copia de un objeto, que se asigna aqu\\u00ed.\r\n\t}", "public interface C2367a {\n /* renamed from: a */\n C2368d mo1698a();\n }", "interface C30585a {\n /* renamed from: b */\n void mo27952b(C5379a c5379a, int i, C46650a c46650a, C7620bi c7620bi);\n }", "public interface C4211a {\n\n /* renamed from: com.iab.omid.library.oguryco.c.a$a */\n public interface C4212a {\n /* renamed from: a */\n void mo28760a(View view, C4211a aVar, JSONObject jSONObject);\n }\n\n /* renamed from: a */\n JSONObject mo28758a(View view);\n\n /* renamed from: a */\n void mo28759a(View view, JSONObject jSONObject, C4212a aVar, boolean z);\n}", "public interface C4697a extends C5595at {\n /* renamed from: a */\n void mo12634a();\n\n /* renamed from: a */\n void mo12635a(String str);\n\n /* renamed from: a */\n void mo12636a(boolean z);\n\n /* renamed from: b */\n void mo12637b();\n\n /* renamed from: c */\n void mo12638c();\n }", "public interface C4773c {\n /* renamed from: a */\n void m15858a(int i);\n\n /* renamed from: a */\n void m15859a(int i, int i2);\n\n /* renamed from: a */\n void m15860a(int i, int i2, int i3);\n\n /* renamed from: b */\n void m15861b(int i, int i2);\n}", "public interface C4869f {\n /* renamed from: a */\n C4865b mo6249a();\n}", "public interface C1799a {\n /* renamed from: b */\n void mo3314b(String str);\n }", "public interface C43499b {\n /* renamed from: a */\n void mo8445a(int i, String str, int i2, byte[] bArr);\n}", "public interface C0601aq {\n /* renamed from: a */\n void mo9148a(int i, ArrayList<C0889x> arrayList);\n}", "public interface C45101e {\n /* renamed from: b */\n void mo3796b(int i);\n}", "public interface AbstractC6461g {\n /* renamed from: a */\n String mo42332a();\n}", "public interface AbstractC1645a {\n /* renamed from: a */\n String mo17375a();\n }", "public interface C6178c {\n /* renamed from: a */\n Map<String, String> mo14888a();\n}", "public interface C5101b {\n /* renamed from: a */\n void mo5289a(C5102c c5102c);\n\n /* renamed from: b */\n void mo5290b(C5102c c5102c);\n}", "public interface C19045k {\n /* renamed from: a */\n void mo50368a(int i, Object obj);\n\n /* renamed from: b */\n void mo50369b(int i, Object obj);\n}", "public b a()\r\n/* 12: */ {\r\n/* 13:13 */ return this.a;\r\n/* 14: */ }", "public interface C7720a {\n /* renamed from: a */\n long mo20406a();\n}", "public String a()\r\n/* 25: */ {\r\n/* 26:171 */ return \"dig.\" + this.a;\r\n/* 27: */ }", "public interface ayt {\n /* renamed from: a */\n int mo1635a(long j, List list);\n\n /* renamed from: a */\n long mo1636a(long j, alb alb);\n\n /* renamed from: a */\n void mo1637a();\n\n /* renamed from: a */\n void mo1638a(long j, long j2, List list, ayp ayp);\n\n /* renamed from: a */\n void mo1639a(ayl ayl);\n\n /* renamed from: a */\n boolean mo1640a(ayl ayl, boolean z, Exception exc, long j);\n}", "public interface C24221b extends C28343z<C28318an> {\n /* renamed from: a */\n void mo62991a(int i);\n\n String aw_();\n\n /* renamed from: e */\n Aweme mo62993e();\n}", "public interface C4051c {\n /* renamed from: a */\n boolean mo23707a();\n}", "public interface C45112b {\n /* renamed from: a */\n List<C45111a> mo107674a(Integer num);\n\n /* renamed from: a */\n List<C45111a> mo107675a(Integer num, Integer num2);\n\n /* renamed from: a */\n void mo107676a(C45111a aVar);\n\n /* renamed from: b */\n void mo107677b(Integer num);\n\n /* renamed from: c */\n long mo107678c(Integer num);\n}", "public void acionou(int a){\n\t\t\tb=a;\n\t\t}", "public interface C44963i {\n /* renamed from: a */\n void mo63037a(int i, int i2);\n\n void aA_();\n\n /* renamed from: b */\n void mo63039b(int i, int i2);\n}", "public interface C32457c<T> {\n /* renamed from: a */\n void mo83699a(T t, int i, int i2, String str);\n }", "public interface C5861g {\n /* renamed from: a */\n void mo18320a(C7251a aVar);\n\n @Deprecated\n /* renamed from: a */\n void mo18321a(C7251a aVar, String str);\n\n /* renamed from: a */\n void mo18322a(C7252b bVar);\n\n /* renamed from: a */\n void mo18323a(C7253c cVar);\n\n /* renamed from: a */\n void mo18324a(C7260j jVar);\n}", "public interface C0937a {\n /* renamed from: a */\n void mo3807a(C0985po[] poVarArr);\n }", "public interface C8466a {\n /* renamed from: a */\n void mo25956a(int i);\n\n /* renamed from: a */\n void mo25957a(long j, long j2);\n }", "public interface C39684b {\n /* renamed from: a */\n void mo98969a();\n\n /* renamed from: a */\n void mo98970a(C29296g gVar);\n\n /* renamed from: a */\n void mo98971a(C29296g gVar, int i);\n }", "public interface C43470b {\n /* renamed from: a */\n void mo61496a(C43469a aVar, C43471c cVar);\n }", "public interface AbstractC18255a {\n /* renamed from: a */\n void mo88521a();\n\n /* renamed from: a */\n void mo88522a(String str);\n\n /* renamed from: b */\n void mo88523b();\n\n /* renamed from: c */\n void mo88524c();\n }", "public interface C1436d {\n /* renamed from: a */\n C1435c mo1754a(C1433a c1433a, C1434b c1434b);\n}", "public interface C4150sl {\n /* renamed from: a */\n void mo15005a(C4143se seVar);\n}", "public void a(nm paramnm)\r\n/* 28: */ {\r\n/* 29:45 */ paramnm.a(this);\r\n/* 30: */ }", "public interface C19351a {\n /* renamed from: b */\n void mo30633b(int i, String str, byte[] bArr);\n }", "public interface C11113o {\n /* renamed from: a */\n void mo37759a(String str);\n }", "public interface C39504az {\n /* renamed from: a */\n int mo98207a();\n\n /* renamed from: a */\n void mo98208a(boolean z);\n\n /* renamed from: b */\n int mo98209b();\n\n /* renamed from: c */\n int mo98355c();\n\n /* renamed from: d */\n int mo98356d();\n\n /* renamed from: e */\n int mo98357e();\n\n /* renamed from: f */\n int mo98358f();\n}", "protected a<T> a(Tag.e<T> var0) {\n/* 80 */ Tag.a var1 = b(var0);\n/* 81 */ return new a<>(var1, this.c, \"vanilla\");\n/* */ }", "public interface C35565a {\n /* renamed from: a */\n C45321i mo90380a();\n }", "public interface C21298a {\n /* renamed from: a */\n void mo57275a();\n\n /* renamed from: a */\n void mo57276a(Exception exc);\n\n /* renamed from: b */\n void mo57277b();\n\n /* renamed from: c */\n void mo57278c();\n }", "public interface C40108b {\n /* renamed from: a */\n void mo99838a(boolean z);\n }", "public interface C0456a {\n /* renamed from: a */\n void mo2090a(C0455b bVar);\n\n /* renamed from: a */\n boolean mo2091a(C0455b bVar, Menu menu);\n\n /* renamed from: a */\n boolean mo2092a(C0455b bVar, MenuItem menuItem);\n\n /* renamed from: b */\n boolean mo2093b(C0455b bVar, Menu menu);\n }", "public interface C4724o {\n /* renamed from: a */\n void mo4872a(int i, String str);\n\n /* renamed from: a */\n void mo4873a(C4718l c4718l);\n\n /* renamed from: b */\n void mo4874b(C4718l c4718l);\n}", "public interface C7654b {\n /* renamed from: a */\n C7904c mo24084a();\n\n /* renamed from: b */\n C7716a mo24085b();\n }", "public interface C2603a {\n /* renamed from: a */\n String mo1889a(String str, String str2, String str3, String str4);\n }", "public interface afp {\n /* renamed from: a */\n C0512sx mo169a(C0497si siVar, afj afj, afr afr, Context context);\n}", "public interface C0615ja extends b<HomeFragment> {\n\n /* renamed from: c.c.a.h.b.ja$a */\n /* compiled from: FragmentModule_HomeFragment$app_bazaarRelease */\n public static abstract class a extends b.a<HomeFragment> {\n }\n}", "public interface a {\n\n /* renamed from: c.b.a.c.b.b.a$a reason: collision with other inner class name */\n /* compiled from: DiskCache */\n public interface C0054a {\n a build();\n }\n\n /* compiled from: DiskCache */\n public interface b {\n boolean a(File file);\n }\n\n File a(c cVar);\n\n void a(c cVar, b bVar);\n}", "public interface C0940d {\n /* renamed from: a */\n void mo3305a(boolean z);\n }", "public interface AbstractC17368c {\n /* renamed from: a */\n void mo84656a(float f);\n }", "interface C0932a {\n /* renamed from: a */\n void mo7438a(int i, int i2);\n\n /* renamed from: b */\n void mo7439b(C0933b bVar);\n\n /* renamed from: c */\n void mo7440c(int i, int i2, Object obj);\n\n /* renamed from: d */\n void mo7441d(C0933b bVar);\n\n /* renamed from: e */\n RecyclerView.ViewHolder mo7442e(int i);\n\n /* renamed from: f */\n void mo7443f(int i, int i2);\n\n /* renamed from: g */\n void mo7444g(int i, int i2);\n\n /* renamed from: h */\n void mo7445h(int i, int i2);\n }", "public interface C10330c {\n /* renamed from: a */\n C7562b<C10403b, C10328a> mo25041a();\n}", "public interface C3819a {\n /* renamed from: a */\n void mo23214a(Message message);\n }", "private Proof atoAImpl(Expression a) {\n Proof where = axm2(a, arrow(a, a), a); //a->(a->a) -> (a->(a->a)->a) -> (a -> a)\n Proof one = axm1(a, a); //a->a->a\n Proof two = axm1(a, arrow(a, a)); //a->(a->a)->A\n return mpTwice(where, one, two);\n }", "interface C1939a {\n /* renamed from: a */\n Bitmap mo1406a(Bitmap bitmap, float f);\n}", "public interface a extends com.bankeen.d.b.b.a {\n void a();\n\n void b();\n }", "public b[] a() {\n/* 95 */ return this.a;\n/* */ }", "interface C8361a {\n /* renamed from: b */\n float mo18284b(ViewGroup viewGroup, View view);\n\n /* renamed from: c */\n float mo18281c(ViewGroup viewGroup, View view);\n }" ]
[ "0.62497115", "0.6242887", "0.61394435", "0.61176854", "0.6114027", "0.60893", "0.6046901", "0.6024682", "0.60201293", "0.5975212", "0.59482527", "0.59121317", "0.5883635", "0.587841", "0.58703005", "0.5868436", "0.5864884", "0.5857492", "0.58306104", "0.5827752", "0.58272064", "0.5794689", "0.57890314", "0.57838726", "0.5775679", "0.57694733", "0.5769128", "0.57526815", "0.56907034", "0.5677874", "0.5670547", "0.56666386", "0.56592244", "0.5658682", "0.56574154", "0.5654324", "0.5644676", "0.56399715", "0.5638734", "0.5630582", "0.56183887", "0.5615435", "0.56069666", "0.5605207", "0.56005067", "0.559501", "0.55910283", "0.5590222", "0.55736613", "0.5556682", "0.5554544", "0.5550076", "0.55493855", "0.55446684", "0.5538079", "0.5529058", "0.5528109", "0.552641", "0.5525864", "0.552186", "0.5519972", "0.5509587", "0.5507195", "0.54881203", "0.5485328", "0.54826045", "0.5482066", "0.5481586", "0.5479751", "0.54776895", "0.54671466", "0.5463307", "0.54505056", "0.54436916", "0.5440517", "0.5439747", "0.5431944", "0.5422869", "0.54217863", "0.5417556", "0.5403905", "0.5400223", "0.53998446", "0.5394735", "0.5388649", "0.5388258", "0.5374842", "0.5368887", "0.53591394", "0.5357029", "0.5355688", "0.535506", "0.5355034", "0.53494394", "0.5341044", "0.5326166", "0.53236824", "0.53199095", "0.53177035", "0.53112453", "0.5298229" ]
0.0
-1
/ renamed from: b
String mo1888b(String str, String str2, String str3, String str4);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void mo2508a(bxb bxb);", "@Override\n public void func_104112_b() {\n \n }", "@Override\n public void b() {\n }", "public interface C19351a {\n /* renamed from: b */\n void mo30633b(int i, String str, byte[] bArr);\n }", "@Override\n\tpublic void b2() {\n\t\t\n\t}", "void metodo1(int a, int[] b) {\r\n\t\ta += 5;//Par\\u00e1metro con el mismo nombre que el campo de la clase.\r\n\t\tb[0] += 7;//se produce un env\\u00edo por referencia, apunta a una copia de un objeto, que se asigna aqu\\u00ed.\r\n\t}", "interface bxc {\n /* renamed from: a */\n void mo2508a(bxb bxb);\n}", "@Override\n\tpublic void b() {\n\n\t}", "interface C30585a {\n /* renamed from: b */\n void mo27952b(C5379a c5379a, int i, C46650a c46650a, C7620bi c7620bi);\n }", "public bb b() {\n return a(this.a);\n }", "@Override\n\tpublic void b1() {\n\t\t\n\t}", "public void b() {\r\n }", "@Override\n\tpublic void bbb() {\n\t\t\n\t}", "public interface C34379a {\n /* renamed from: a */\n void mo46242a(bmc bmc);\n }", "public abstract void b(StringBuilder sb);", "public void b() {\n }", "public void b() {\n }", "protected b(int mb) {\n/* 87 */ this.b = mb;\n/* */ }", "public u(b paramb)\r\n/* 7: */ {\r\n/* 8: 9 */ this.a = paramb;\r\n/* 9: */ }", "public interface b {\n void H_();\n\n void I_();\n\n void J_();\n\n void a(C0063d dVar);\n\n void a(byte[] bArr);\n\n void b(boolean z);\n }", "public b[] a() {\n/* 95 */ return this.a;\n/* */ }", "public interface C7654b {\n /* renamed from: a */\n C7904c mo24084a();\n\n /* renamed from: b */\n C7716a mo24085b();\n }", "public interface C1153a {\n /* renamed from: a */\n void mo4520a(byte[] bArr);\n }", "public interface C43499b {\n /* renamed from: a */\n void mo8445a(int i, String str, int i2, byte[] bArr);\n}", "public void b() {\n ((a) this.a).b();\n }", "b(a aVar) {\n super(0);\n this.this$0 = aVar;\n }", "public np a()\r\n/* 33: */ {\r\n/* 34:49 */ return this.b;\r\n/* 35: */ }", "public t b() {\n return a(this.a);\n }", "public interface C32456b<T> {\n /* renamed from: a */\n void mo83696a(T t);\n }", "public static String a(int c) {\n/* 89 */ return b.a(c);\n/* */ }", "private void m678b(byte b) {\n byte[] bArr = this.f523r;\n bArr[0] = b;\n this.f552g.mo502b(bArr);\n }", "public interface C23407b {\n /* renamed from: a */\n void mo60892a();\n\n /* renamed from: b */\n void mo60893b();\n }", "public abstract T zzm(B b);", "public b a()\r\n/* 12: */ {\r\n/* 13:13 */ return this.a;\r\n/* 14: */ }", "public void b(World paramaqu, BlockPosition paramdt, Block parambec)\r\n/* 27: */ {\r\n/* 28: 47 */ bcm localbcm = paramaqu.s(paramdt);\r\n/* 29: 48 */ if ((localbcm instanceof bdv)) {\r\n/* 30: 49 */ ((bdv)localbcm).h();\r\n/* 31: */ } else {\r\n/* 32: 51 */ super.b(paramaqu, paramdt, parambec);\r\n/* 33: */ }\r\n/* 34: */ }", "public abstract void zzc(B b, int i, int i2);", "public interface b {\n}", "public interface b {\n}", "private void m10263b(byte b) throws cf {\r\n this.f6483r[0] = b;\r\n this.g.m10347b(this.f6483r);\r\n }", "BSubstitution createBSubstitution();", "public void b(ahd paramahd) {}", "void b();", "public interface C18928d {\n /* renamed from: a */\n void mo50320a(C18924b bVar);\n\n /* renamed from: b */\n void mo50321b(C18924b bVar);\n}", "B database(S database);", "public interface C0615ja extends b<HomeFragment> {\n\n /* renamed from: c.c.a.h.b.ja$a */\n /* compiled from: FragmentModule_HomeFragment$app_bazaarRelease */\n public static abstract class a extends b.a<HomeFragment> {\n }\n}", "public abstract C0631bt mo9227aB();", "protected abstract void a(bru parambru);", "public an b() {\n return a(this.a);\n }", "static void go(Base b) {\n\t\tb.add(8);\n\t}", "void mo46242a(bmc bmc);", "public interface b extends c {\n void a(Float f);\n\n void a(Integer num);\n\n void b(Float f);\n\n void c(Float f);\n\n String d();\n\n void d(Float f);\n\n void d(String str);\n\n void e(Float f);\n\n void e(String str);\n\n void f(String str);\n\n void g(String str);\n\n Long j();\n\n LineChart k();\n }", "public interface bca extends bbn {\n bca a();\n\n bca a(String str);\n\n bca b(String str);\n\n bca c(String str);\n}", "public interface a extends com.bankeen.d.b.b.a {\n void a();\n\n void b();\n }", "public abstract BoundType b();", "public void b(amj paramamj)\r\n/* 538: */ {\r\n/* 539:579 */ this.f = paramamj;\r\n/* 540: */ }", "b(a aVar, com.bytedance.jedi.model.h.a aVar2) {\n super(aVar2);\n this.f21531a = aVar;\n this.f21532b = new com.bytedance.jedi.model.h.f(aVar);\n }", "private void b(int paramInt)\r\n/* 193: */ {\r\n/* 194:203 */ this.h.a(a(paramInt));\r\n/* 195: */ }", "public void b(ahb paramahb)\r\n/* 583: */ {\r\n/* 584:625 */ for (int i = 0; i < this.a.length; i++) {\r\n/* 585:626 */ this.a[i] = amj.b(paramahb.a[i]);\r\n/* 586: */ }\r\n/* 587:628 */ for (i = 0; i < this.b.length; i++) {\r\n/* 588:629 */ this.b[i] = amj.b(paramahb.b[i]);\r\n/* 589: */ }\r\n/* 590:631 */ this.c = paramahb.c;\r\n/* 591: */ }", "interface b {\n\n /* compiled from: CreditAccountContract */\n public interface a extends com.bankeen.d.b.b.a {\n void a();\n\n void b();\n }\n\n /* compiled from: CreditAccountContract */\n public interface b extends c {\n void a(Float f);\n\n void a(Integer num);\n\n void b(Float f);\n\n void c(Float f);\n\n String d();\n\n void d(Float f);\n\n void d(String str);\n\n void e(Float f);\n\n void e(String str);\n\n void f(String str);\n\n void g(String str);\n\n Long j();\n\n LineChart k();\n }\n}", "@Override\n\tpublic void visit(PartB partB) {\n\n\t}", "public abstract void zzb(B b, int i, long j);", "public abstract void zza(B b, int i, zzeh zzeh);", "private void internalCopy(Board b) {\n for (int i = 0; i < SIDE * SIDE; i += 1) {\n set(i, b.get(i));\n }\n\n _directions = b._directions;\n _whoseMove = b._whoseMove;\n _history = b._history;\n }", "int metodo2(int a, int b) {\r\n\r\n\t\tthis.a += 5; // se modifica el campo del objeto, el uso de la palabra reservada this se utiliza para referenciar al campo.\r\n\t\tb += 7;\r\n\t\treturn a; // modifica en la asignaci\\u00f3n\r\n\t}", "public int b()\r\n/* 69: */ {\r\n/* 70:74 */ return this.b;\r\n/* 71: */ }", "public void b(StringBuilder sb) {\n sb.append(this.a);\n sb.append(')');\n }", "public void b() {\n e$a e$a;\n try {\n e$a = this.b;\n }\n catch (IOException iOException) {\n return;\n }\n Object object = this.c;\n e$a.b(object);\n }", "public abstract void a(StringBuilder sb);", "public interface C45101e {\n /* renamed from: b */\n void mo3796b(int i);\n}", "public abstract void zzf(Object obj, B b);", "public interface bdp {\n\n /* renamed from: a */\n public static final bdp f3422a = new bdo();\n\n /* renamed from: a */\n bdm mo1784a(akh akh);\n}", "@Override\n\tpublic void parse(Buffer b) {\n\t\t\n\t}", "@Override\n\t\t\t\tpublic void a() {\n\n\t\t\t\t}", "public abstract void a(b paramb, int paramInt1, int paramInt2);", "public void mo1945a(byte b) throws cf {\r\n m10263b(b);\r\n }", "void mo83703a(C32456b<T> bVar);", "public void a(String str) {\n ((b.b) this.b).d(str);\n }", "public void selectB() { }", "BOperation createBOperation();", "void metodo1(int a, int b) {\r\n\t\ta += 5;//par\\u00e1metro con el mismo nombre que el campo.\r\n\t\tb += 7;\r\n\t}", "private static void m2196a(StringBuffer stringBuffer, byte b) {\n stringBuffer.append(\"0123456789ABCDEF\".charAt((b >> 4) & 15)).append(\"0123456789ABCDEF\".charAt(b & 15));\n }", "public interface C1799a {\n /* renamed from: b */\n void mo3314b(String str);\n }", "public void b(String str) {\n ((b.b) this.b).e(str);\n }", "public void b(fv paramfv)\r\n/* 408: */ {\r\n/* 409:423 */ this.a = new amj[36];\r\n/* 410:424 */ this.b = new amj[4];\r\n/* 411:425 */ for (int i = 0; i < paramfv.c(); i++)\r\n/* 412: */ {\r\n/* 413:426 */ fn localfn = paramfv.b(i);\r\n/* 414:427 */ int j = localfn.d(\"Slot\") & 0xFF;\r\n/* 415:428 */ amj localamj = amj.a(localfn);\r\n/* 416:429 */ if (localamj != null)\r\n/* 417: */ {\r\n/* 418:430 */ if ((j >= 0) && (j < this.a.length)) {\r\n/* 419:431 */ this.a[j] = localamj;\r\n/* 420: */ }\r\n/* 421:433 */ if ((j >= 100) && (j < this.b.length + 100)) {\r\n/* 422:434 */ this.b[(j - 100)] = localamj;\r\n/* 423: */ }\r\n/* 424: */ }\r\n/* 425: */ }\r\n/* 426: */ }", "public String b()\r\n/* 35: */ {\r\n/* 36:179 */ return a();\r\n/* 37: */ }", "public abstract void zza(B b, int i, T t);", "public Item b(World paramaqu, BlockPosition paramdt)\r\n/* 189: */ {\r\n/* 190:220 */ return null;\r\n/* 191: */ }", "public abstract void zza(B b, int i, long j);", "public interface C5101b {\n /* renamed from: a */\n void mo5289a(C5102c c5102c);\n\n /* renamed from: b */\n void mo5290b(C5102c c5102c);\n}", "private interface C0257a {\n /* renamed from: a */\n float mo196a(ViewGroup viewGroup, View view);\n\n /* renamed from: b */\n float mo195b(ViewGroup viewGroup, View view);\n }", "public abstract void mo9798a(byte b);", "public void mo9798a(byte b) {\n if (this.f9108f == this.f9107e) {\n mo9827i();\n }\n byte[] bArr = this.f9106d;\n int i = this.f9108f;\n this.f9108f = i + 1;\n bArr[i] = b;\n this.f9109g++;\n }", "public interface C1234b {\r\n /* renamed from: a */\r\n void m8367a();\r\n\r\n /* renamed from: b */\r\n void m8368b();\r\n}", "private void m676a(TField bkVar, byte b) {\n if (b == -1) {\n b = m687e(bkVar.f538b);\n }\n short s = bkVar.f539c;\n short s2 = this.f519n;\n if (s <= s2 || s - s2 > 15) {\n m678b(b);\n mo446a(bkVar.f539c);\n } else {\n m686d(b | ((s - s2) << 4));\n }\n this.f519n = bkVar.f539c;\n }", "private static void m831a(C0741g<?> gVar, C0747b bVar) {\n gVar.mo9477a(C0743i.f718b, (C0739e<? super Object>) bVar);\n gVar.mo9476a(C0743i.f718b, (C0738d) bVar);\n gVar.mo9474a(C0743i.f718b, (C0736b) bVar);\n }", "private void j()\n/* */ {\n/* 223 */ c localc = this.b;\n/* 224 */ this.b = this.c;\n/* 225 */ this.c = localc;\n/* 226 */ this.c.b();\n/* */ }", "public interface C40453c {\n /* renamed from: a */\n void mo100442a(C40429b bVar);\n\n /* renamed from: a */\n void mo100443a(List<String> list);\n\n /* renamed from: b */\n void mo100444b(List<C40429b> list);\n}", "public lj ar(byte b) {\n throw new Runtime(\"d2j fail translate: java.lang.RuntimeException: can not merge I and Z\\r\\n\\tat com.googlecode.dex2jar.ir.TypeClass.merge(TypeClass.java:100)\\r\\n\\tat com.googlecode.dex2jar.ir.ts.TypeTransformer$TypeRef.updateTypeClass(TypeTransformer.java:174)\\r\\n\\tat com.googlecode.dex2jar.ir.ts.TypeTransformer$TypeAnalyze.provideAs(TypeTransformer.java:780)\\r\\n\\tat com.googlecode.dex2jar.ir.ts.TypeTransformer$TypeAnalyze.e1expr(TypeTransformer.java:496)\\r\\n\\tat com.googlecode.dex2jar.ir.ts.TypeTransformer$TypeAnalyze.exExpr(TypeTransformer.java:713)\\r\\n\\tat com.googlecode.dex2jar.ir.ts.TypeTransformer$TypeAnalyze.exExpr(TypeTransformer.java:703)\\r\\n\\tat com.googlecode.dex2jar.ir.ts.TypeTransformer$TypeAnalyze.enexpr(TypeTransformer.java:698)\\r\\n\\tat com.googlecode.dex2jar.ir.ts.TypeTransformer$TypeAnalyze.exExpr(TypeTransformer.java:719)\\r\\n\\tat com.googlecode.dex2jar.ir.ts.TypeTransformer$TypeAnalyze.exExpr(TypeTransformer.java:703)\\r\\n\\tat com.googlecode.dex2jar.ir.ts.TypeTransformer$TypeAnalyze.s1stmt(TypeTransformer.java:810)\\r\\n\\tat com.googlecode.dex2jar.ir.ts.TypeTransformer$TypeAnalyze.sxStmt(TypeTransformer.java:840)\\r\\n\\tat com.googlecode.dex2jar.ir.ts.TypeTransformer$TypeAnalyze.analyze(TypeTransformer.java:206)\\r\\n\\tat com.googlecode.dex2jar.ir.ts.TypeTransformer.transform(TypeTransformer.java:44)\\r\\n\\tat com.googlecode.d2j.dex.Dex2jar$2.optimize(Dex2jar.java:162)\\r\\n\\tat com.googlecode.d2j.dex.Dex2Asm.convertCode(Dex2Asm.java:414)\\r\\n\\tat com.googlecode.d2j.dex.ExDex2Asm.convertCode(ExDex2Asm.java:42)\\r\\n\\tat com.googlecode.d2j.dex.Dex2jar$2.convertCode(Dex2jar.java:128)\\r\\n\\tat com.googlecode.d2j.dex.Dex2Asm.convertMethod(Dex2Asm.java:509)\\r\\n\\tat com.googlecode.d2j.dex.Dex2Asm.convertClass(Dex2Asm.java:406)\\r\\n\\tat com.googlecode.d2j.dex.Dex2Asm.convertDex(Dex2Asm.java:422)\\r\\n\\tat com.googlecode.d2j.dex.Dex2jar.doTranslate(Dex2jar.java:172)\\r\\n\\tat com.googlecode.d2j.dex.Dex2jar.to(Dex2jar.java:272)\\r\\n\\tat com.googlecode.dex2jar.tools.Dex2jarCmd.doCommandLine(Dex2jarCmd.java:108)\\r\\n\\tat com.googlecode.dex2jar.tools.BaseCmd.doMain(BaseCmd.java:288)\\r\\n\\tat com.googlecode.dex2jar.tools.Dex2jarCmd.main(Dex2jarCmd.java:32)\\r\\n\");\n }", "public interface AbstractC10485b {\n /* renamed from: a */\n void mo64153a(boolean z);\n }", "public interface C40108b {\n /* renamed from: a */\n void mo99838a(boolean z);\n }", "public static Note getB() {return (Note)B.clone();}" ]
[ "0.64569855", "0.6283282", "0.62531567", "0.6252121", "0.6245442", "0.621636", "0.619463", "0.6194139", "0.6165022", "0.6141199", "0.6100174", "0.60973275", "0.607799", "0.6002063", "0.5998536", "0.5973506", "0.5973506", "0.59066874", "0.59057605", "0.5892315", "0.5887388", "0.5883261", "0.58562523", "0.58468115", "0.58427995", "0.58246225", "0.58242327", "0.58104837", "0.58023524", "0.58012456", "0.5795396", "0.5792103", "0.57915795", "0.5785196", "0.5773401", "0.57606757", "0.57359093", "0.57359093", "0.5735576", "0.5728301", "0.57214826", "0.5712414", "0.57070184", "0.56907666", "0.5653404", "0.5651857", "0.56508774", "0.565062", "0.5648304", "0.56411666", "0.5640902", "0.5640459", "0.56316125", "0.5599008", "0.55853003", "0.55838066", "0.5578858", "0.55744463", "0.5573307", "0.55726206", "0.55702573", "0.55641717", "0.555491", "0.5554184", "0.5548789", "0.5543568", "0.55363923", "0.55309266", "0.5519697", "0.5518723", "0.55159104", "0.5512562", "0.55048823", "0.55020446", "0.5492476", "0.5487243", "0.54822576", "0.547706", "0.54730666", "0.5471541", "0.54647017", "0.5460674", "0.5455757", "0.5455379", "0.5451797", "0.5443306", "0.54376775", "0.5434189", "0.54257286", "0.54245406", "0.54208034", "0.5417544", "0.54051054", "0.5401651", "0.53956497", "0.53888947", "0.53884465", "0.5388119", "0.5386286", "0.53853416", "0.5384207" ]
0.0
-1
/ renamed from: a
public static C2606l m9828a() { return C2605c.f8614a; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface C4521a {\n /* renamed from: a */\n void mo12348a();\n }", "public interface C1423a {\n /* renamed from: a */\n void mo6888a(int i);\n }", "interface bxc {\n /* renamed from: a */\n void mo2508a(bxb bxb);\n}", "interface C33292a {\n /* renamed from: a */\n void mo85415a(String str);\n }", "interface C10331b {\n /* renamed from: a */\n void mo26876a(int i);\n }", "public interface C0779a {\n /* renamed from: a */\n void mo2311a();\n}", "public interface C6788a {\n /* renamed from: a */\n void mo20141a();\n }", "public interface C0237a {\n /* renamed from: a */\n void mo1791a(String str);\n }", "public interface C35013b {\n /* renamed from: a */\n void mo88773a(int i);\n}", "public interface C11112n {\n /* renamed from: a */\n void mo38026a();\n }", "@Override\n\t\t\t\tpublic void a() {\n\n\t\t\t\t}", "public interface C23407b {\n /* renamed from: a */\n void mo60892a();\n\n /* renamed from: b */\n void mo60893b();\n }", "interface C0312e {\n /* renamed from: a */\n void mo4671a(View view, int i, int i2, int i3, int i4);\n }", "public interface C34379a {\n /* renamed from: a */\n void mo46242a(bmc bmc);\n }", "public interface C32456b<T> {\n /* renamed from: a */\n void mo83696a(T t);\n }", "private String convertir(String a) {\n StringBuilder atributo = new StringBuilder(a);\n atributo.insert(0, Character.toUpperCase(atributo.charAt(0)));\n return atributo.deleteCharAt(1).toString();\n }", "protected m a(String name) {\n/* 42 */ return this.a.get(name);\n/* */ }", "public interface AbstractC23925a {\n /* renamed from: a */\n void mo105476a();\n }", "private interface C0257a {\n /* renamed from: a */\n float mo196a(ViewGroup viewGroup, View view);\n\n /* renamed from: b */\n float mo195b(ViewGroup viewGroup, View view);\n }", "public interface C3598a {\n /* renamed from: a */\n void mo11024a(int i, int i2, String str);\n }", "public interface C2459d {\n /* renamed from: a */\n C2451d mo3408a(C2457e c2457e);\n}", "public interface am extends ak {\r\n /* renamed from: a */\r\n void mo194a(int i) throws RemoteException;\r\n\r\n /* renamed from: a */\r\n void mo195a(List<LatLng> list) throws RemoteException;\r\n\r\n /* renamed from: b */\r\n void mo196b(float f) throws RemoteException;\r\n\r\n /* renamed from: b */\r\n void mo197b(boolean z);\r\n\r\n /* renamed from: c */\r\n void mo198c(boolean z) throws RemoteException;\r\n\r\n /* renamed from: g */\r\n float mo199g() throws RemoteException;\r\n\r\n /* renamed from: h */\r\n int mo200h() throws RemoteException;\r\n\r\n /* renamed from: i */\r\n List<LatLng> mo201i() throws RemoteException;\r\n\r\n /* renamed from: j */\r\n boolean mo202j();\r\n\r\n /* renamed from: k */\r\n boolean mo203k();\r\n}", "public interface C32459e<T> {\n /* renamed from: a */\n void mo83698a(T t);\n }", "public interface C32458d<T> {\n /* renamed from: a */\n void mo83695a(T t);\n }", "public interface C5482b {\n /* renamed from: a */\n void mo27575a();\n\n /* renamed from: a */\n void mo27576a(int i);\n }", "public interface C27084a {\n /* renamed from: a */\n void mo69874a();\n\n /* renamed from: a */\n void mo69875a(List<Aweme> list, boolean z);\n }", "public void a() {\n ((a) this.a).a();\n }", "public interface C1153a {\n /* renamed from: a */\n void mo4520a(byte[] bArr);\n }", "public interface C13373b {\n /* renamed from: a */\n void mo32681a(String str, int i, boolean z);\n}", "public interface C40453c {\n /* renamed from: a */\n void mo100442a(C40429b bVar);\n\n /* renamed from: a */\n void mo100443a(List<String> list);\n\n /* renamed from: b */\n void mo100444b(List<C40429b> list);\n}", "public interface AbstractC17367b {\n /* renamed from: a */\n void mo84655a();\n }", "@Override\r\n\tpublic void a() {\n\t\t\r\n\t}", "public interface C43270a {\n /* renamed from: a */\n void mo64942a(String str, long j, long j2);\n}", "public interface C18928d {\n /* renamed from: a */\n void mo50320a(C18924b bVar);\n\n /* renamed from: b */\n void mo50321b(C18924b bVar);\n}", "public interface C0087c {\n /* renamed from: a */\n String mo150a(String str);\n}", "public interface C1529m {\n /* renamed from: a */\n void mo3767a(int i);\n\n /* renamed from: a */\n void mo3768a(String str);\n}", "interface C4483e {\n /* renamed from: a */\n boolean mo34114a();\n}", "public interface C1234b {\r\n /* renamed from: a */\r\n void m8367a();\r\n\r\n /* renamed from: b */\r\n void m8368b();\r\n}", "public interface C10965j<T> {\n /* renamed from: a */\n T mo26439a();\n}", "public interface C28772a {\n /* renamed from: a */\n View mo73990a(View view);\n }", "@Override\n\tpublic void a() {\n\t\t\n\t}", "public interface C8326b {\n /* renamed from: a */\n C8325a mo21498a(String str);\n\n /* renamed from: a */\n void mo21499a(C8325a aVar);\n}", "void metodo1(int a, int[] b) {\r\n\t\ta += 5;//Par\\u00e1metro con el mismo nombre que el campo de la clase.\r\n\t\tb[0] += 7;//se produce un env\\u00edo por referencia, apunta a una copia de un objeto, que se asigna aqu\\u00ed.\r\n\t}", "public interface C2367a {\n /* renamed from: a */\n C2368d mo1698a();\n }", "interface C30585a {\n /* renamed from: b */\n void mo27952b(C5379a c5379a, int i, C46650a c46650a, C7620bi c7620bi);\n }", "public interface C4211a {\n\n /* renamed from: com.iab.omid.library.oguryco.c.a$a */\n public interface C4212a {\n /* renamed from: a */\n void mo28760a(View view, C4211a aVar, JSONObject jSONObject);\n }\n\n /* renamed from: a */\n JSONObject mo28758a(View view);\n\n /* renamed from: a */\n void mo28759a(View view, JSONObject jSONObject, C4212a aVar, boolean z);\n}", "public interface C4697a extends C5595at {\n /* renamed from: a */\n void mo12634a();\n\n /* renamed from: a */\n void mo12635a(String str);\n\n /* renamed from: a */\n void mo12636a(boolean z);\n\n /* renamed from: b */\n void mo12637b();\n\n /* renamed from: c */\n void mo12638c();\n }", "public interface C4773c {\n /* renamed from: a */\n void m15858a(int i);\n\n /* renamed from: a */\n void m15859a(int i, int i2);\n\n /* renamed from: a */\n void m15860a(int i, int i2, int i3);\n\n /* renamed from: b */\n void m15861b(int i, int i2);\n}", "public interface C4869f {\n /* renamed from: a */\n C4865b mo6249a();\n}", "public interface C1799a {\n /* renamed from: b */\n void mo3314b(String str);\n }", "public interface C43499b {\n /* renamed from: a */\n void mo8445a(int i, String str, int i2, byte[] bArr);\n}", "public interface C0601aq {\n /* renamed from: a */\n void mo9148a(int i, ArrayList<C0889x> arrayList);\n}", "public interface C45101e {\n /* renamed from: b */\n void mo3796b(int i);\n}", "public interface AbstractC6461g {\n /* renamed from: a */\n String mo42332a();\n}", "public interface AbstractC1645a {\n /* renamed from: a */\n String mo17375a();\n }", "public interface C6178c {\n /* renamed from: a */\n Map<String, String> mo14888a();\n}", "public interface C5101b {\n /* renamed from: a */\n void mo5289a(C5102c c5102c);\n\n /* renamed from: b */\n void mo5290b(C5102c c5102c);\n}", "public interface C19045k {\n /* renamed from: a */\n void mo50368a(int i, Object obj);\n\n /* renamed from: b */\n void mo50369b(int i, Object obj);\n}", "public b a()\r\n/* 12: */ {\r\n/* 13:13 */ return this.a;\r\n/* 14: */ }", "public interface C7720a {\n /* renamed from: a */\n long mo20406a();\n}", "public String a()\r\n/* 25: */ {\r\n/* 26:171 */ return \"dig.\" + this.a;\r\n/* 27: */ }", "public interface ayt {\n /* renamed from: a */\n int mo1635a(long j, List list);\n\n /* renamed from: a */\n long mo1636a(long j, alb alb);\n\n /* renamed from: a */\n void mo1637a();\n\n /* renamed from: a */\n void mo1638a(long j, long j2, List list, ayp ayp);\n\n /* renamed from: a */\n void mo1639a(ayl ayl);\n\n /* renamed from: a */\n boolean mo1640a(ayl ayl, boolean z, Exception exc, long j);\n}", "public interface C24221b extends C28343z<C28318an> {\n /* renamed from: a */\n void mo62991a(int i);\n\n String aw_();\n\n /* renamed from: e */\n Aweme mo62993e();\n}", "public interface C4051c {\n /* renamed from: a */\n boolean mo23707a();\n}", "public interface C45112b {\n /* renamed from: a */\n List<C45111a> mo107674a(Integer num);\n\n /* renamed from: a */\n List<C45111a> mo107675a(Integer num, Integer num2);\n\n /* renamed from: a */\n void mo107676a(C45111a aVar);\n\n /* renamed from: b */\n void mo107677b(Integer num);\n\n /* renamed from: c */\n long mo107678c(Integer num);\n}", "public void acionou(int a){\n\t\t\tb=a;\n\t\t}", "public interface C44963i {\n /* renamed from: a */\n void mo63037a(int i, int i2);\n\n void aA_();\n\n /* renamed from: b */\n void mo63039b(int i, int i2);\n}", "public interface C32457c<T> {\n /* renamed from: a */\n void mo83699a(T t, int i, int i2, String str);\n }", "public interface C5861g {\n /* renamed from: a */\n void mo18320a(C7251a aVar);\n\n @Deprecated\n /* renamed from: a */\n void mo18321a(C7251a aVar, String str);\n\n /* renamed from: a */\n void mo18322a(C7252b bVar);\n\n /* renamed from: a */\n void mo18323a(C7253c cVar);\n\n /* renamed from: a */\n void mo18324a(C7260j jVar);\n}", "public interface C0937a {\n /* renamed from: a */\n void mo3807a(C0985po[] poVarArr);\n }", "public interface C8466a {\n /* renamed from: a */\n void mo25956a(int i);\n\n /* renamed from: a */\n void mo25957a(long j, long j2);\n }", "public interface C39684b {\n /* renamed from: a */\n void mo98969a();\n\n /* renamed from: a */\n void mo98970a(C29296g gVar);\n\n /* renamed from: a */\n void mo98971a(C29296g gVar, int i);\n }", "public interface C43470b {\n /* renamed from: a */\n void mo61496a(C43469a aVar, C43471c cVar);\n }", "public interface AbstractC18255a {\n /* renamed from: a */\n void mo88521a();\n\n /* renamed from: a */\n void mo88522a(String str);\n\n /* renamed from: b */\n void mo88523b();\n\n /* renamed from: c */\n void mo88524c();\n }", "public interface C1436d {\n /* renamed from: a */\n C1435c mo1754a(C1433a c1433a, C1434b c1434b);\n}", "public interface C4150sl {\n /* renamed from: a */\n void mo15005a(C4143se seVar);\n}", "public void a(nm paramnm)\r\n/* 28: */ {\r\n/* 29:45 */ paramnm.a(this);\r\n/* 30: */ }", "public interface C19351a {\n /* renamed from: b */\n void mo30633b(int i, String str, byte[] bArr);\n }", "public interface C11113o {\n /* renamed from: a */\n void mo37759a(String str);\n }", "public interface C39504az {\n /* renamed from: a */\n int mo98207a();\n\n /* renamed from: a */\n void mo98208a(boolean z);\n\n /* renamed from: b */\n int mo98209b();\n\n /* renamed from: c */\n int mo98355c();\n\n /* renamed from: d */\n int mo98356d();\n\n /* renamed from: e */\n int mo98357e();\n\n /* renamed from: f */\n int mo98358f();\n}", "protected a<T> a(Tag.e<T> var0) {\n/* 80 */ Tag.a var1 = b(var0);\n/* 81 */ return new a<>(var1, this.c, \"vanilla\");\n/* */ }", "public interface C35565a {\n /* renamed from: a */\n C45321i mo90380a();\n }", "public interface C21298a {\n /* renamed from: a */\n void mo57275a();\n\n /* renamed from: a */\n void mo57276a(Exception exc);\n\n /* renamed from: b */\n void mo57277b();\n\n /* renamed from: c */\n void mo57278c();\n }", "public interface C40108b {\n /* renamed from: a */\n void mo99838a(boolean z);\n }", "public interface C0456a {\n /* renamed from: a */\n void mo2090a(C0455b bVar);\n\n /* renamed from: a */\n boolean mo2091a(C0455b bVar, Menu menu);\n\n /* renamed from: a */\n boolean mo2092a(C0455b bVar, MenuItem menuItem);\n\n /* renamed from: b */\n boolean mo2093b(C0455b bVar, Menu menu);\n }", "public interface C4724o {\n /* renamed from: a */\n void mo4872a(int i, String str);\n\n /* renamed from: a */\n void mo4873a(C4718l c4718l);\n\n /* renamed from: b */\n void mo4874b(C4718l c4718l);\n}", "public interface C7654b {\n /* renamed from: a */\n C7904c mo24084a();\n\n /* renamed from: b */\n C7716a mo24085b();\n }", "public interface C2603a {\n /* renamed from: a */\n String mo1889a(String str, String str2, String str3, String str4);\n }", "public interface afp {\n /* renamed from: a */\n C0512sx mo169a(C0497si siVar, afj afj, afr afr, Context context);\n}", "public interface C0615ja extends b<HomeFragment> {\n\n /* renamed from: c.c.a.h.b.ja$a */\n /* compiled from: FragmentModule_HomeFragment$app_bazaarRelease */\n public static abstract class a extends b.a<HomeFragment> {\n }\n}", "public interface a {\n\n /* renamed from: c.b.a.c.b.b.a$a reason: collision with other inner class name */\n /* compiled from: DiskCache */\n public interface C0054a {\n a build();\n }\n\n /* compiled from: DiskCache */\n public interface b {\n boolean a(File file);\n }\n\n File a(c cVar);\n\n void a(c cVar, b bVar);\n}", "public interface C0940d {\n /* renamed from: a */\n void mo3305a(boolean z);\n }", "public interface AbstractC17368c {\n /* renamed from: a */\n void mo84656a(float f);\n }", "interface C0932a {\n /* renamed from: a */\n void mo7438a(int i, int i2);\n\n /* renamed from: b */\n void mo7439b(C0933b bVar);\n\n /* renamed from: c */\n void mo7440c(int i, int i2, Object obj);\n\n /* renamed from: d */\n void mo7441d(C0933b bVar);\n\n /* renamed from: e */\n RecyclerView.ViewHolder mo7442e(int i);\n\n /* renamed from: f */\n void mo7443f(int i, int i2);\n\n /* renamed from: g */\n void mo7444g(int i, int i2);\n\n /* renamed from: h */\n void mo7445h(int i, int i2);\n }", "public interface C10330c {\n /* renamed from: a */\n C7562b<C10403b, C10328a> mo25041a();\n}", "public interface C3819a {\n /* renamed from: a */\n void mo23214a(Message message);\n }", "private Proof atoAImpl(Expression a) {\n Proof where = axm2(a, arrow(a, a), a); //a->(a->a) -> (a->(a->a)->a) -> (a -> a)\n Proof one = axm1(a, a); //a->a->a\n Proof two = axm1(a, arrow(a, a)); //a->(a->a)->A\n return mpTwice(where, one, two);\n }", "interface C1939a {\n /* renamed from: a */\n Bitmap mo1406a(Bitmap bitmap, float f);\n}", "public interface a extends com.bankeen.d.b.b.a {\n void a();\n\n void b();\n }", "public b[] a() {\n/* 95 */ return this.a;\n/* */ }", "interface C8361a {\n /* renamed from: b */\n float mo18284b(ViewGroup viewGroup, View view);\n\n /* renamed from: c */\n float mo18281c(ViewGroup viewGroup, View view);\n }" ]
[ "0.62497115", "0.6242887", "0.61394435", "0.61176854", "0.6114027", "0.60893", "0.6046901", "0.6024682", "0.60201293", "0.5975212", "0.59482527", "0.59121317", "0.5883635", "0.587841", "0.58703005", "0.5868436", "0.5864884", "0.5857492", "0.58306104", "0.5827752", "0.58272064", "0.5794689", "0.57890314", "0.57838726", "0.5775679", "0.57694733", "0.5769128", "0.57526815", "0.56907034", "0.5677874", "0.5670547", "0.56666386", "0.56592244", "0.5658682", "0.56574154", "0.5654324", "0.5644676", "0.56399715", "0.5638734", "0.5630582", "0.56183887", "0.5615435", "0.56069666", "0.5605207", "0.56005067", "0.559501", "0.55910283", "0.5590222", "0.55736613", "0.5556682", "0.5554544", "0.5550076", "0.55493855", "0.55446684", "0.5538079", "0.5529058", "0.5528109", "0.552641", "0.5525864", "0.552186", "0.5519972", "0.5509587", "0.5507195", "0.54881203", "0.5485328", "0.54826045", "0.5482066", "0.5481586", "0.5479751", "0.54776895", "0.54671466", "0.5463307", "0.54505056", "0.54436916", "0.5440517", "0.5439747", "0.5431944", "0.5422869", "0.54217863", "0.5417556", "0.5403905", "0.5400223", "0.53998446", "0.5394735", "0.5388649", "0.5388258", "0.5374842", "0.5368887", "0.53591394", "0.5357029", "0.5355688", "0.535506", "0.5355034", "0.53494394", "0.5341044", "0.5326166", "0.53236824", "0.53199095", "0.53177035", "0.53112453", "0.5298229" ]
0.0
-1
/ renamed from: a
public void m9830a(C2604b commandSender) { this.f8626l = commandSender; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface C4521a {\n /* renamed from: a */\n void mo12348a();\n }", "public interface C1423a {\n /* renamed from: a */\n void mo6888a(int i);\n }", "interface bxc {\n /* renamed from: a */\n void mo2508a(bxb bxb);\n}", "interface C33292a {\n /* renamed from: a */\n void mo85415a(String str);\n }", "interface C10331b {\n /* renamed from: a */\n void mo26876a(int i);\n }", "public interface C0779a {\n /* renamed from: a */\n void mo2311a();\n}", "public interface C6788a {\n /* renamed from: a */\n void mo20141a();\n }", "public interface C0237a {\n /* renamed from: a */\n void mo1791a(String str);\n }", "public interface C35013b {\n /* renamed from: a */\n void mo88773a(int i);\n}", "public interface C11112n {\n /* renamed from: a */\n void mo38026a();\n }", "@Override\n\t\t\t\tpublic void a() {\n\n\t\t\t\t}", "public interface C23407b {\n /* renamed from: a */\n void mo60892a();\n\n /* renamed from: b */\n void mo60893b();\n }", "interface C0312e {\n /* renamed from: a */\n void mo4671a(View view, int i, int i2, int i3, int i4);\n }", "public interface C34379a {\n /* renamed from: a */\n void mo46242a(bmc bmc);\n }", "public interface C32456b<T> {\n /* renamed from: a */\n void mo83696a(T t);\n }", "private String convertir(String a) {\n StringBuilder atributo = new StringBuilder(a);\n atributo.insert(0, Character.toUpperCase(atributo.charAt(0)));\n return atributo.deleteCharAt(1).toString();\n }", "protected m a(String name) {\n/* 42 */ return this.a.get(name);\n/* */ }", "public interface AbstractC23925a {\n /* renamed from: a */\n void mo105476a();\n }", "private interface C0257a {\n /* renamed from: a */\n float mo196a(ViewGroup viewGroup, View view);\n\n /* renamed from: b */\n float mo195b(ViewGroup viewGroup, View view);\n }", "public interface C3598a {\n /* renamed from: a */\n void mo11024a(int i, int i2, String str);\n }", "public interface C2459d {\n /* renamed from: a */\n C2451d mo3408a(C2457e c2457e);\n}", "public interface am extends ak {\r\n /* renamed from: a */\r\n void mo194a(int i) throws RemoteException;\r\n\r\n /* renamed from: a */\r\n void mo195a(List<LatLng> list) throws RemoteException;\r\n\r\n /* renamed from: b */\r\n void mo196b(float f) throws RemoteException;\r\n\r\n /* renamed from: b */\r\n void mo197b(boolean z);\r\n\r\n /* renamed from: c */\r\n void mo198c(boolean z) throws RemoteException;\r\n\r\n /* renamed from: g */\r\n float mo199g() throws RemoteException;\r\n\r\n /* renamed from: h */\r\n int mo200h() throws RemoteException;\r\n\r\n /* renamed from: i */\r\n List<LatLng> mo201i() throws RemoteException;\r\n\r\n /* renamed from: j */\r\n boolean mo202j();\r\n\r\n /* renamed from: k */\r\n boolean mo203k();\r\n}", "public interface C32459e<T> {\n /* renamed from: a */\n void mo83698a(T t);\n }", "public interface C32458d<T> {\n /* renamed from: a */\n void mo83695a(T t);\n }", "public interface C5482b {\n /* renamed from: a */\n void mo27575a();\n\n /* renamed from: a */\n void mo27576a(int i);\n }", "public interface C27084a {\n /* renamed from: a */\n void mo69874a();\n\n /* renamed from: a */\n void mo69875a(List<Aweme> list, boolean z);\n }", "public void a() {\n ((a) this.a).a();\n }", "public interface C1153a {\n /* renamed from: a */\n void mo4520a(byte[] bArr);\n }", "public interface C13373b {\n /* renamed from: a */\n void mo32681a(String str, int i, boolean z);\n}", "public interface C40453c {\n /* renamed from: a */\n void mo100442a(C40429b bVar);\n\n /* renamed from: a */\n void mo100443a(List<String> list);\n\n /* renamed from: b */\n void mo100444b(List<C40429b> list);\n}", "public interface AbstractC17367b {\n /* renamed from: a */\n void mo84655a();\n }", "@Override\r\n\tpublic void a() {\n\t\t\r\n\t}", "public interface C43270a {\n /* renamed from: a */\n void mo64942a(String str, long j, long j2);\n}", "public interface C18928d {\n /* renamed from: a */\n void mo50320a(C18924b bVar);\n\n /* renamed from: b */\n void mo50321b(C18924b bVar);\n}", "public interface C0087c {\n /* renamed from: a */\n String mo150a(String str);\n}", "public interface C1529m {\n /* renamed from: a */\n void mo3767a(int i);\n\n /* renamed from: a */\n void mo3768a(String str);\n}", "interface C4483e {\n /* renamed from: a */\n boolean mo34114a();\n}", "public interface C1234b {\r\n /* renamed from: a */\r\n void m8367a();\r\n\r\n /* renamed from: b */\r\n void m8368b();\r\n}", "public interface C10965j<T> {\n /* renamed from: a */\n T mo26439a();\n}", "public interface C28772a {\n /* renamed from: a */\n View mo73990a(View view);\n }", "@Override\n\tpublic void a() {\n\t\t\n\t}", "public interface C8326b {\n /* renamed from: a */\n C8325a mo21498a(String str);\n\n /* renamed from: a */\n void mo21499a(C8325a aVar);\n}", "void metodo1(int a, int[] b) {\r\n\t\ta += 5;//Par\\u00e1metro con el mismo nombre que el campo de la clase.\r\n\t\tb[0] += 7;//se produce un env\\u00edo por referencia, apunta a una copia de un objeto, que se asigna aqu\\u00ed.\r\n\t}", "public interface C2367a {\n /* renamed from: a */\n C2368d mo1698a();\n }", "interface C30585a {\n /* renamed from: b */\n void mo27952b(C5379a c5379a, int i, C46650a c46650a, C7620bi c7620bi);\n }", "public interface C4211a {\n\n /* renamed from: com.iab.omid.library.oguryco.c.a$a */\n public interface C4212a {\n /* renamed from: a */\n void mo28760a(View view, C4211a aVar, JSONObject jSONObject);\n }\n\n /* renamed from: a */\n JSONObject mo28758a(View view);\n\n /* renamed from: a */\n void mo28759a(View view, JSONObject jSONObject, C4212a aVar, boolean z);\n}", "public interface C4697a extends C5595at {\n /* renamed from: a */\n void mo12634a();\n\n /* renamed from: a */\n void mo12635a(String str);\n\n /* renamed from: a */\n void mo12636a(boolean z);\n\n /* renamed from: b */\n void mo12637b();\n\n /* renamed from: c */\n void mo12638c();\n }", "public interface C4773c {\n /* renamed from: a */\n void m15858a(int i);\n\n /* renamed from: a */\n void m15859a(int i, int i2);\n\n /* renamed from: a */\n void m15860a(int i, int i2, int i3);\n\n /* renamed from: b */\n void m15861b(int i, int i2);\n}", "public interface C4869f {\n /* renamed from: a */\n C4865b mo6249a();\n}", "public interface C1799a {\n /* renamed from: b */\n void mo3314b(String str);\n }", "public interface C43499b {\n /* renamed from: a */\n void mo8445a(int i, String str, int i2, byte[] bArr);\n}", "public interface C0601aq {\n /* renamed from: a */\n void mo9148a(int i, ArrayList<C0889x> arrayList);\n}", "public interface C45101e {\n /* renamed from: b */\n void mo3796b(int i);\n}", "public interface AbstractC6461g {\n /* renamed from: a */\n String mo42332a();\n}", "public interface AbstractC1645a {\n /* renamed from: a */\n String mo17375a();\n }", "public interface C6178c {\n /* renamed from: a */\n Map<String, String> mo14888a();\n}", "public interface C5101b {\n /* renamed from: a */\n void mo5289a(C5102c c5102c);\n\n /* renamed from: b */\n void mo5290b(C5102c c5102c);\n}", "public interface C19045k {\n /* renamed from: a */\n void mo50368a(int i, Object obj);\n\n /* renamed from: b */\n void mo50369b(int i, Object obj);\n}", "public b a()\r\n/* 12: */ {\r\n/* 13:13 */ return this.a;\r\n/* 14: */ }", "public interface C7720a {\n /* renamed from: a */\n long mo20406a();\n}", "public String a()\r\n/* 25: */ {\r\n/* 26:171 */ return \"dig.\" + this.a;\r\n/* 27: */ }", "public interface ayt {\n /* renamed from: a */\n int mo1635a(long j, List list);\n\n /* renamed from: a */\n long mo1636a(long j, alb alb);\n\n /* renamed from: a */\n void mo1637a();\n\n /* renamed from: a */\n void mo1638a(long j, long j2, List list, ayp ayp);\n\n /* renamed from: a */\n void mo1639a(ayl ayl);\n\n /* renamed from: a */\n boolean mo1640a(ayl ayl, boolean z, Exception exc, long j);\n}", "public interface C24221b extends C28343z<C28318an> {\n /* renamed from: a */\n void mo62991a(int i);\n\n String aw_();\n\n /* renamed from: e */\n Aweme mo62993e();\n}", "public interface C4051c {\n /* renamed from: a */\n boolean mo23707a();\n}", "public interface C45112b {\n /* renamed from: a */\n List<C45111a> mo107674a(Integer num);\n\n /* renamed from: a */\n List<C45111a> mo107675a(Integer num, Integer num2);\n\n /* renamed from: a */\n void mo107676a(C45111a aVar);\n\n /* renamed from: b */\n void mo107677b(Integer num);\n\n /* renamed from: c */\n long mo107678c(Integer num);\n}", "public void acionou(int a){\n\t\t\tb=a;\n\t\t}", "public interface C44963i {\n /* renamed from: a */\n void mo63037a(int i, int i2);\n\n void aA_();\n\n /* renamed from: b */\n void mo63039b(int i, int i2);\n}", "public interface C32457c<T> {\n /* renamed from: a */\n void mo83699a(T t, int i, int i2, String str);\n }", "public interface C5861g {\n /* renamed from: a */\n void mo18320a(C7251a aVar);\n\n @Deprecated\n /* renamed from: a */\n void mo18321a(C7251a aVar, String str);\n\n /* renamed from: a */\n void mo18322a(C7252b bVar);\n\n /* renamed from: a */\n void mo18323a(C7253c cVar);\n\n /* renamed from: a */\n void mo18324a(C7260j jVar);\n}", "public interface C0937a {\n /* renamed from: a */\n void mo3807a(C0985po[] poVarArr);\n }", "public interface C8466a {\n /* renamed from: a */\n void mo25956a(int i);\n\n /* renamed from: a */\n void mo25957a(long j, long j2);\n }", "public interface C39684b {\n /* renamed from: a */\n void mo98969a();\n\n /* renamed from: a */\n void mo98970a(C29296g gVar);\n\n /* renamed from: a */\n void mo98971a(C29296g gVar, int i);\n }", "public interface C43470b {\n /* renamed from: a */\n void mo61496a(C43469a aVar, C43471c cVar);\n }", "public interface AbstractC18255a {\n /* renamed from: a */\n void mo88521a();\n\n /* renamed from: a */\n void mo88522a(String str);\n\n /* renamed from: b */\n void mo88523b();\n\n /* renamed from: c */\n void mo88524c();\n }", "public interface C1436d {\n /* renamed from: a */\n C1435c mo1754a(C1433a c1433a, C1434b c1434b);\n}", "public interface C4150sl {\n /* renamed from: a */\n void mo15005a(C4143se seVar);\n}", "public void a(nm paramnm)\r\n/* 28: */ {\r\n/* 29:45 */ paramnm.a(this);\r\n/* 30: */ }", "public interface C19351a {\n /* renamed from: b */\n void mo30633b(int i, String str, byte[] bArr);\n }", "public interface C11113o {\n /* renamed from: a */\n void mo37759a(String str);\n }", "public interface C39504az {\n /* renamed from: a */\n int mo98207a();\n\n /* renamed from: a */\n void mo98208a(boolean z);\n\n /* renamed from: b */\n int mo98209b();\n\n /* renamed from: c */\n int mo98355c();\n\n /* renamed from: d */\n int mo98356d();\n\n /* renamed from: e */\n int mo98357e();\n\n /* renamed from: f */\n int mo98358f();\n}", "protected a<T> a(Tag.e<T> var0) {\n/* 80 */ Tag.a var1 = b(var0);\n/* 81 */ return new a<>(var1, this.c, \"vanilla\");\n/* */ }", "public interface C35565a {\n /* renamed from: a */\n C45321i mo90380a();\n }", "public interface C21298a {\n /* renamed from: a */\n void mo57275a();\n\n /* renamed from: a */\n void mo57276a(Exception exc);\n\n /* renamed from: b */\n void mo57277b();\n\n /* renamed from: c */\n void mo57278c();\n }", "public interface C40108b {\n /* renamed from: a */\n void mo99838a(boolean z);\n }", "public interface C0456a {\n /* renamed from: a */\n void mo2090a(C0455b bVar);\n\n /* renamed from: a */\n boolean mo2091a(C0455b bVar, Menu menu);\n\n /* renamed from: a */\n boolean mo2092a(C0455b bVar, MenuItem menuItem);\n\n /* renamed from: b */\n boolean mo2093b(C0455b bVar, Menu menu);\n }", "public interface C4724o {\n /* renamed from: a */\n void mo4872a(int i, String str);\n\n /* renamed from: a */\n void mo4873a(C4718l c4718l);\n\n /* renamed from: b */\n void mo4874b(C4718l c4718l);\n}", "public interface C7654b {\n /* renamed from: a */\n C7904c mo24084a();\n\n /* renamed from: b */\n C7716a mo24085b();\n }", "public interface C2603a {\n /* renamed from: a */\n String mo1889a(String str, String str2, String str3, String str4);\n }", "public interface afp {\n /* renamed from: a */\n C0512sx mo169a(C0497si siVar, afj afj, afr afr, Context context);\n}", "public interface C0615ja extends b<HomeFragment> {\n\n /* renamed from: c.c.a.h.b.ja$a */\n /* compiled from: FragmentModule_HomeFragment$app_bazaarRelease */\n public static abstract class a extends b.a<HomeFragment> {\n }\n}", "public interface a {\n\n /* renamed from: c.b.a.c.b.b.a$a reason: collision with other inner class name */\n /* compiled from: DiskCache */\n public interface C0054a {\n a build();\n }\n\n /* compiled from: DiskCache */\n public interface b {\n boolean a(File file);\n }\n\n File a(c cVar);\n\n void a(c cVar, b bVar);\n}", "public interface C0940d {\n /* renamed from: a */\n void mo3305a(boolean z);\n }", "public interface AbstractC17368c {\n /* renamed from: a */\n void mo84656a(float f);\n }", "interface C0932a {\n /* renamed from: a */\n void mo7438a(int i, int i2);\n\n /* renamed from: b */\n void mo7439b(C0933b bVar);\n\n /* renamed from: c */\n void mo7440c(int i, int i2, Object obj);\n\n /* renamed from: d */\n void mo7441d(C0933b bVar);\n\n /* renamed from: e */\n RecyclerView.ViewHolder mo7442e(int i);\n\n /* renamed from: f */\n void mo7443f(int i, int i2);\n\n /* renamed from: g */\n void mo7444g(int i, int i2);\n\n /* renamed from: h */\n void mo7445h(int i, int i2);\n }", "public interface C10330c {\n /* renamed from: a */\n C7562b<C10403b, C10328a> mo25041a();\n}", "public interface C3819a {\n /* renamed from: a */\n void mo23214a(Message message);\n }", "private Proof atoAImpl(Expression a) {\n Proof where = axm2(a, arrow(a, a), a); //a->(a->a) -> (a->(a->a)->a) -> (a -> a)\n Proof one = axm1(a, a); //a->a->a\n Proof two = axm1(a, arrow(a, a)); //a->(a->a)->A\n return mpTwice(where, one, two);\n }", "interface C1939a {\n /* renamed from: a */\n Bitmap mo1406a(Bitmap bitmap, float f);\n}", "public interface a extends com.bankeen.d.b.b.a {\n void a();\n\n void b();\n }", "public b[] a() {\n/* 95 */ return this.a;\n/* */ }", "interface C8361a {\n /* renamed from: b */\n float mo18284b(ViewGroup viewGroup, View view);\n\n /* renamed from: c */\n float mo18281c(ViewGroup viewGroup, View view);\n }" ]
[ "0.62497115", "0.6242887", "0.61394435", "0.61176854", "0.6114027", "0.60893", "0.6046901", "0.6024682", "0.60201293", "0.5975212", "0.59482527", "0.59121317", "0.5883635", "0.587841", "0.58703005", "0.5868436", "0.5864884", "0.5857492", "0.58306104", "0.5827752", "0.58272064", "0.5794689", "0.57890314", "0.57838726", "0.5775679", "0.57694733", "0.5769128", "0.57526815", "0.56907034", "0.5677874", "0.5670547", "0.56666386", "0.56592244", "0.5658682", "0.56574154", "0.5654324", "0.5644676", "0.56399715", "0.5638734", "0.5630582", "0.56183887", "0.5615435", "0.56069666", "0.5605207", "0.56005067", "0.559501", "0.55910283", "0.5590222", "0.55736613", "0.5556682", "0.5554544", "0.5550076", "0.55493855", "0.55446684", "0.5538079", "0.5529058", "0.5528109", "0.552641", "0.5525864", "0.552186", "0.5519972", "0.5509587", "0.5507195", "0.54881203", "0.5485328", "0.54826045", "0.5482066", "0.5481586", "0.5479751", "0.54776895", "0.54671466", "0.5463307", "0.54505056", "0.54436916", "0.5440517", "0.5439747", "0.5431944", "0.5422869", "0.54217863", "0.5417556", "0.5403905", "0.5400223", "0.53998446", "0.5394735", "0.5388649", "0.5388258", "0.5374842", "0.5368887", "0.53591394", "0.5357029", "0.5355688", "0.535506", "0.5355034", "0.53494394", "0.5341044", "0.5326166", "0.53236824", "0.53199095", "0.53177035", "0.53112453", "0.5298229" ]
0.0
-1
/ renamed from: a
public String m9829a(String cmdType, String param, String data) { if (this.f8626l != null) { this.f8626l.mo1888b(C2716c.m10141a().getPackageName(), cmdType, param, data); } return null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface C4521a {\n /* renamed from: a */\n void mo12348a();\n }", "public interface C1423a {\n /* renamed from: a */\n void mo6888a(int i);\n }", "interface bxc {\n /* renamed from: a */\n void mo2508a(bxb bxb);\n}", "interface C33292a {\n /* renamed from: a */\n void mo85415a(String str);\n }", "interface C10331b {\n /* renamed from: a */\n void mo26876a(int i);\n }", "public interface C0779a {\n /* renamed from: a */\n void mo2311a();\n}", "public interface C6788a {\n /* renamed from: a */\n void mo20141a();\n }", "public interface C0237a {\n /* renamed from: a */\n void mo1791a(String str);\n }", "public interface C35013b {\n /* renamed from: a */\n void mo88773a(int i);\n}", "public interface C11112n {\n /* renamed from: a */\n void mo38026a();\n }", "@Override\n\t\t\t\tpublic void a() {\n\n\t\t\t\t}", "public interface C23407b {\n /* renamed from: a */\n void mo60892a();\n\n /* renamed from: b */\n void mo60893b();\n }", "interface C0312e {\n /* renamed from: a */\n void mo4671a(View view, int i, int i2, int i3, int i4);\n }", "public interface C34379a {\n /* renamed from: a */\n void mo46242a(bmc bmc);\n }", "public interface C32456b<T> {\n /* renamed from: a */\n void mo83696a(T t);\n }", "private String convertir(String a) {\n StringBuilder atributo = new StringBuilder(a);\n atributo.insert(0, Character.toUpperCase(atributo.charAt(0)));\n return atributo.deleteCharAt(1).toString();\n }", "protected m a(String name) {\n/* 42 */ return this.a.get(name);\n/* */ }", "public interface AbstractC23925a {\n /* renamed from: a */\n void mo105476a();\n }", "private interface C0257a {\n /* renamed from: a */\n float mo196a(ViewGroup viewGroup, View view);\n\n /* renamed from: b */\n float mo195b(ViewGroup viewGroup, View view);\n }", "public interface C3598a {\n /* renamed from: a */\n void mo11024a(int i, int i2, String str);\n }", "public interface C2459d {\n /* renamed from: a */\n C2451d mo3408a(C2457e c2457e);\n}", "public interface am extends ak {\r\n /* renamed from: a */\r\n void mo194a(int i) throws RemoteException;\r\n\r\n /* renamed from: a */\r\n void mo195a(List<LatLng> list) throws RemoteException;\r\n\r\n /* renamed from: b */\r\n void mo196b(float f) throws RemoteException;\r\n\r\n /* renamed from: b */\r\n void mo197b(boolean z);\r\n\r\n /* renamed from: c */\r\n void mo198c(boolean z) throws RemoteException;\r\n\r\n /* renamed from: g */\r\n float mo199g() throws RemoteException;\r\n\r\n /* renamed from: h */\r\n int mo200h() throws RemoteException;\r\n\r\n /* renamed from: i */\r\n List<LatLng> mo201i() throws RemoteException;\r\n\r\n /* renamed from: j */\r\n boolean mo202j();\r\n\r\n /* renamed from: k */\r\n boolean mo203k();\r\n}", "public interface C32459e<T> {\n /* renamed from: a */\n void mo83698a(T t);\n }", "public interface C32458d<T> {\n /* renamed from: a */\n void mo83695a(T t);\n }", "public interface C5482b {\n /* renamed from: a */\n void mo27575a();\n\n /* renamed from: a */\n void mo27576a(int i);\n }", "public interface C27084a {\n /* renamed from: a */\n void mo69874a();\n\n /* renamed from: a */\n void mo69875a(List<Aweme> list, boolean z);\n }", "public void a() {\n ((a) this.a).a();\n }", "public interface C1153a {\n /* renamed from: a */\n void mo4520a(byte[] bArr);\n }", "public interface C13373b {\n /* renamed from: a */\n void mo32681a(String str, int i, boolean z);\n}", "public interface C40453c {\n /* renamed from: a */\n void mo100442a(C40429b bVar);\n\n /* renamed from: a */\n void mo100443a(List<String> list);\n\n /* renamed from: b */\n void mo100444b(List<C40429b> list);\n}", "public interface AbstractC17367b {\n /* renamed from: a */\n void mo84655a();\n }", "@Override\r\n\tpublic void a() {\n\t\t\r\n\t}", "public interface C43270a {\n /* renamed from: a */\n void mo64942a(String str, long j, long j2);\n}", "public interface C18928d {\n /* renamed from: a */\n void mo50320a(C18924b bVar);\n\n /* renamed from: b */\n void mo50321b(C18924b bVar);\n}", "public interface C0087c {\n /* renamed from: a */\n String mo150a(String str);\n}", "public interface C1529m {\n /* renamed from: a */\n void mo3767a(int i);\n\n /* renamed from: a */\n void mo3768a(String str);\n}", "interface C4483e {\n /* renamed from: a */\n boolean mo34114a();\n}", "public interface C1234b {\r\n /* renamed from: a */\r\n void m8367a();\r\n\r\n /* renamed from: b */\r\n void m8368b();\r\n}", "public interface C10965j<T> {\n /* renamed from: a */\n T mo26439a();\n}", "public interface C28772a {\n /* renamed from: a */\n View mo73990a(View view);\n }", "@Override\n\tpublic void a() {\n\t\t\n\t}", "public interface C8326b {\n /* renamed from: a */\n C8325a mo21498a(String str);\n\n /* renamed from: a */\n void mo21499a(C8325a aVar);\n}", "void metodo1(int a, int[] b) {\r\n\t\ta += 5;//Par\\u00e1metro con el mismo nombre que el campo de la clase.\r\n\t\tb[0] += 7;//se produce un env\\u00edo por referencia, apunta a una copia de un objeto, que se asigna aqu\\u00ed.\r\n\t}", "public interface C2367a {\n /* renamed from: a */\n C2368d mo1698a();\n }", "interface C30585a {\n /* renamed from: b */\n void mo27952b(C5379a c5379a, int i, C46650a c46650a, C7620bi c7620bi);\n }", "public interface C4211a {\n\n /* renamed from: com.iab.omid.library.oguryco.c.a$a */\n public interface C4212a {\n /* renamed from: a */\n void mo28760a(View view, C4211a aVar, JSONObject jSONObject);\n }\n\n /* renamed from: a */\n JSONObject mo28758a(View view);\n\n /* renamed from: a */\n void mo28759a(View view, JSONObject jSONObject, C4212a aVar, boolean z);\n}", "public interface C4697a extends C5595at {\n /* renamed from: a */\n void mo12634a();\n\n /* renamed from: a */\n void mo12635a(String str);\n\n /* renamed from: a */\n void mo12636a(boolean z);\n\n /* renamed from: b */\n void mo12637b();\n\n /* renamed from: c */\n void mo12638c();\n }", "public interface C4773c {\n /* renamed from: a */\n void m15858a(int i);\n\n /* renamed from: a */\n void m15859a(int i, int i2);\n\n /* renamed from: a */\n void m15860a(int i, int i2, int i3);\n\n /* renamed from: b */\n void m15861b(int i, int i2);\n}", "public interface C4869f {\n /* renamed from: a */\n C4865b mo6249a();\n}", "public interface C1799a {\n /* renamed from: b */\n void mo3314b(String str);\n }", "public interface C43499b {\n /* renamed from: a */\n void mo8445a(int i, String str, int i2, byte[] bArr);\n}", "public interface C0601aq {\n /* renamed from: a */\n void mo9148a(int i, ArrayList<C0889x> arrayList);\n}", "public interface C45101e {\n /* renamed from: b */\n void mo3796b(int i);\n}", "public interface AbstractC6461g {\n /* renamed from: a */\n String mo42332a();\n}", "public interface AbstractC1645a {\n /* renamed from: a */\n String mo17375a();\n }", "public interface C6178c {\n /* renamed from: a */\n Map<String, String> mo14888a();\n}", "public interface C5101b {\n /* renamed from: a */\n void mo5289a(C5102c c5102c);\n\n /* renamed from: b */\n void mo5290b(C5102c c5102c);\n}", "public interface C19045k {\n /* renamed from: a */\n void mo50368a(int i, Object obj);\n\n /* renamed from: b */\n void mo50369b(int i, Object obj);\n}", "public b a()\r\n/* 12: */ {\r\n/* 13:13 */ return this.a;\r\n/* 14: */ }", "public interface C7720a {\n /* renamed from: a */\n long mo20406a();\n}", "public String a()\r\n/* 25: */ {\r\n/* 26:171 */ return \"dig.\" + this.a;\r\n/* 27: */ }", "public interface ayt {\n /* renamed from: a */\n int mo1635a(long j, List list);\n\n /* renamed from: a */\n long mo1636a(long j, alb alb);\n\n /* renamed from: a */\n void mo1637a();\n\n /* renamed from: a */\n void mo1638a(long j, long j2, List list, ayp ayp);\n\n /* renamed from: a */\n void mo1639a(ayl ayl);\n\n /* renamed from: a */\n boolean mo1640a(ayl ayl, boolean z, Exception exc, long j);\n}", "public interface C24221b extends C28343z<C28318an> {\n /* renamed from: a */\n void mo62991a(int i);\n\n String aw_();\n\n /* renamed from: e */\n Aweme mo62993e();\n}", "public interface C4051c {\n /* renamed from: a */\n boolean mo23707a();\n}", "public interface C45112b {\n /* renamed from: a */\n List<C45111a> mo107674a(Integer num);\n\n /* renamed from: a */\n List<C45111a> mo107675a(Integer num, Integer num2);\n\n /* renamed from: a */\n void mo107676a(C45111a aVar);\n\n /* renamed from: b */\n void mo107677b(Integer num);\n\n /* renamed from: c */\n long mo107678c(Integer num);\n}", "public void acionou(int a){\n\t\t\tb=a;\n\t\t}", "public interface C44963i {\n /* renamed from: a */\n void mo63037a(int i, int i2);\n\n void aA_();\n\n /* renamed from: b */\n void mo63039b(int i, int i2);\n}", "public interface C32457c<T> {\n /* renamed from: a */\n void mo83699a(T t, int i, int i2, String str);\n }", "public interface C5861g {\n /* renamed from: a */\n void mo18320a(C7251a aVar);\n\n @Deprecated\n /* renamed from: a */\n void mo18321a(C7251a aVar, String str);\n\n /* renamed from: a */\n void mo18322a(C7252b bVar);\n\n /* renamed from: a */\n void mo18323a(C7253c cVar);\n\n /* renamed from: a */\n void mo18324a(C7260j jVar);\n}", "public interface C0937a {\n /* renamed from: a */\n void mo3807a(C0985po[] poVarArr);\n }", "public interface C8466a {\n /* renamed from: a */\n void mo25956a(int i);\n\n /* renamed from: a */\n void mo25957a(long j, long j2);\n }", "public interface C39684b {\n /* renamed from: a */\n void mo98969a();\n\n /* renamed from: a */\n void mo98970a(C29296g gVar);\n\n /* renamed from: a */\n void mo98971a(C29296g gVar, int i);\n }", "public interface C43470b {\n /* renamed from: a */\n void mo61496a(C43469a aVar, C43471c cVar);\n }", "public interface AbstractC18255a {\n /* renamed from: a */\n void mo88521a();\n\n /* renamed from: a */\n void mo88522a(String str);\n\n /* renamed from: b */\n void mo88523b();\n\n /* renamed from: c */\n void mo88524c();\n }", "public interface C1436d {\n /* renamed from: a */\n C1435c mo1754a(C1433a c1433a, C1434b c1434b);\n}", "public interface C4150sl {\n /* renamed from: a */\n void mo15005a(C4143se seVar);\n}", "public void a(nm paramnm)\r\n/* 28: */ {\r\n/* 29:45 */ paramnm.a(this);\r\n/* 30: */ }", "public interface C19351a {\n /* renamed from: b */\n void mo30633b(int i, String str, byte[] bArr);\n }", "public interface C11113o {\n /* renamed from: a */\n void mo37759a(String str);\n }", "public interface C39504az {\n /* renamed from: a */\n int mo98207a();\n\n /* renamed from: a */\n void mo98208a(boolean z);\n\n /* renamed from: b */\n int mo98209b();\n\n /* renamed from: c */\n int mo98355c();\n\n /* renamed from: d */\n int mo98356d();\n\n /* renamed from: e */\n int mo98357e();\n\n /* renamed from: f */\n int mo98358f();\n}", "protected a<T> a(Tag.e<T> var0) {\n/* 80 */ Tag.a var1 = b(var0);\n/* 81 */ return new a<>(var1, this.c, \"vanilla\");\n/* */ }", "public interface C35565a {\n /* renamed from: a */\n C45321i mo90380a();\n }", "public interface C21298a {\n /* renamed from: a */\n void mo57275a();\n\n /* renamed from: a */\n void mo57276a(Exception exc);\n\n /* renamed from: b */\n void mo57277b();\n\n /* renamed from: c */\n void mo57278c();\n }", "public interface C40108b {\n /* renamed from: a */\n void mo99838a(boolean z);\n }", "public interface C0456a {\n /* renamed from: a */\n void mo2090a(C0455b bVar);\n\n /* renamed from: a */\n boolean mo2091a(C0455b bVar, Menu menu);\n\n /* renamed from: a */\n boolean mo2092a(C0455b bVar, MenuItem menuItem);\n\n /* renamed from: b */\n boolean mo2093b(C0455b bVar, Menu menu);\n }", "public interface C4724o {\n /* renamed from: a */\n void mo4872a(int i, String str);\n\n /* renamed from: a */\n void mo4873a(C4718l c4718l);\n\n /* renamed from: b */\n void mo4874b(C4718l c4718l);\n}", "public interface C7654b {\n /* renamed from: a */\n C7904c mo24084a();\n\n /* renamed from: b */\n C7716a mo24085b();\n }", "public interface C2603a {\n /* renamed from: a */\n String mo1889a(String str, String str2, String str3, String str4);\n }", "public interface afp {\n /* renamed from: a */\n C0512sx mo169a(C0497si siVar, afj afj, afr afr, Context context);\n}", "public interface C0615ja extends b<HomeFragment> {\n\n /* renamed from: c.c.a.h.b.ja$a */\n /* compiled from: FragmentModule_HomeFragment$app_bazaarRelease */\n public static abstract class a extends b.a<HomeFragment> {\n }\n}", "public interface a {\n\n /* renamed from: c.b.a.c.b.b.a$a reason: collision with other inner class name */\n /* compiled from: DiskCache */\n public interface C0054a {\n a build();\n }\n\n /* compiled from: DiskCache */\n public interface b {\n boolean a(File file);\n }\n\n File a(c cVar);\n\n void a(c cVar, b bVar);\n}", "public interface C0940d {\n /* renamed from: a */\n void mo3305a(boolean z);\n }", "public interface AbstractC17368c {\n /* renamed from: a */\n void mo84656a(float f);\n }", "interface C0932a {\n /* renamed from: a */\n void mo7438a(int i, int i2);\n\n /* renamed from: b */\n void mo7439b(C0933b bVar);\n\n /* renamed from: c */\n void mo7440c(int i, int i2, Object obj);\n\n /* renamed from: d */\n void mo7441d(C0933b bVar);\n\n /* renamed from: e */\n RecyclerView.ViewHolder mo7442e(int i);\n\n /* renamed from: f */\n void mo7443f(int i, int i2);\n\n /* renamed from: g */\n void mo7444g(int i, int i2);\n\n /* renamed from: h */\n void mo7445h(int i, int i2);\n }", "public interface C10330c {\n /* renamed from: a */\n C7562b<C10403b, C10328a> mo25041a();\n}", "public interface C3819a {\n /* renamed from: a */\n void mo23214a(Message message);\n }", "private Proof atoAImpl(Expression a) {\n Proof where = axm2(a, arrow(a, a), a); //a->(a->a) -> (a->(a->a)->a) -> (a -> a)\n Proof one = axm1(a, a); //a->a->a\n Proof two = axm1(a, arrow(a, a)); //a->(a->a)->A\n return mpTwice(where, one, two);\n }", "interface C1939a {\n /* renamed from: a */\n Bitmap mo1406a(Bitmap bitmap, float f);\n}", "public interface a extends com.bankeen.d.b.b.a {\n void a();\n\n void b();\n }", "public b[] a() {\n/* 95 */ return this.a;\n/* */ }", "interface C8361a {\n /* renamed from: b */\n float mo18284b(ViewGroup viewGroup, View view);\n\n /* renamed from: c */\n float mo18281c(ViewGroup viewGroup, View view);\n }" ]
[ "0.62497115", "0.6242887", "0.61394435", "0.61176854", "0.6114027", "0.60893", "0.6046901", "0.6024682", "0.60201293", "0.5975212", "0.59482527", "0.59121317", "0.5883635", "0.587841", "0.58703005", "0.5868436", "0.5864884", "0.5857492", "0.58306104", "0.5827752", "0.58272064", "0.5794689", "0.57890314", "0.57838726", "0.5775679", "0.57694733", "0.5769128", "0.57526815", "0.56907034", "0.5677874", "0.5670547", "0.56666386", "0.56592244", "0.5658682", "0.56574154", "0.5654324", "0.5644676", "0.56399715", "0.5638734", "0.5630582", "0.56183887", "0.5615435", "0.56069666", "0.5605207", "0.56005067", "0.559501", "0.55910283", "0.5590222", "0.55736613", "0.5556682", "0.5554544", "0.5550076", "0.55493855", "0.55446684", "0.5538079", "0.5529058", "0.5528109", "0.552641", "0.5525864", "0.552186", "0.5519972", "0.5509587", "0.5507195", "0.54881203", "0.5485328", "0.54826045", "0.5482066", "0.5481586", "0.5479751", "0.54776895", "0.54671466", "0.5463307", "0.54505056", "0.54436916", "0.5440517", "0.5439747", "0.5431944", "0.5422869", "0.54217863", "0.5417556", "0.5403905", "0.5400223", "0.53998446", "0.5394735", "0.5388649", "0.5388258", "0.5374842", "0.5368887", "0.53591394", "0.5357029", "0.5355688", "0.535506", "0.5355034", "0.53494394", "0.5341044", "0.5326166", "0.53236824", "0.53199095", "0.53177035", "0.53112453", "0.5298229" ]
0.0
-1
/ renamed from: a
public void m9832a(String pkg, String cmdType, String param, String data) { if (this.f8627m.get(cmdType) != null && this.f8626l != null) { ((C2603a) this.f8627m.get(cmdType)).mo1889a(pkg, cmdType, param, data); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface C4521a {\n /* renamed from: a */\n void mo12348a();\n }", "public interface C1423a {\n /* renamed from: a */\n void mo6888a(int i);\n }", "interface bxc {\n /* renamed from: a */\n void mo2508a(bxb bxb);\n}", "interface C33292a {\n /* renamed from: a */\n void mo85415a(String str);\n }", "interface C10331b {\n /* renamed from: a */\n void mo26876a(int i);\n }", "public interface C0779a {\n /* renamed from: a */\n void mo2311a();\n}", "public interface C6788a {\n /* renamed from: a */\n void mo20141a();\n }", "public interface C0237a {\n /* renamed from: a */\n void mo1791a(String str);\n }", "public interface C35013b {\n /* renamed from: a */\n void mo88773a(int i);\n}", "public interface C11112n {\n /* renamed from: a */\n void mo38026a();\n }", "@Override\n\t\t\t\tpublic void a() {\n\n\t\t\t\t}", "public interface C23407b {\n /* renamed from: a */\n void mo60892a();\n\n /* renamed from: b */\n void mo60893b();\n }", "interface C0312e {\n /* renamed from: a */\n void mo4671a(View view, int i, int i2, int i3, int i4);\n }", "public interface C34379a {\n /* renamed from: a */\n void mo46242a(bmc bmc);\n }", "public interface C32456b<T> {\n /* renamed from: a */\n void mo83696a(T t);\n }", "private String convertir(String a) {\n StringBuilder atributo = new StringBuilder(a);\n atributo.insert(0, Character.toUpperCase(atributo.charAt(0)));\n return atributo.deleteCharAt(1).toString();\n }", "protected m a(String name) {\n/* 42 */ return this.a.get(name);\n/* */ }", "public interface AbstractC23925a {\n /* renamed from: a */\n void mo105476a();\n }", "private interface C0257a {\n /* renamed from: a */\n float mo196a(ViewGroup viewGroup, View view);\n\n /* renamed from: b */\n float mo195b(ViewGroup viewGroup, View view);\n }", "public interface C2459d {\n /* renamed from: a */\n C2451d mo3408a(C2457e c2457e);\n}", "public interface C3598a {\n /* renamed from: a */\n void mo11024a(int i, int i2, String str);\n }", "public interface am extends ak {\r\n /* renamed from: a */\r\n void mo194a(int i) throws RemoteException;\r\n\r\n /* renamed from: a */\r\n void mo195a(List<LatLng> list) throws RemoteException;\r\n\r\n /* renamed from: b */\r\n void mo196b(float f) throws RemoteException;\r\n\r\n /* renamed from: b */\r\n void mo197b(boolean z);\r\n\r\n /* renamed from: c */\r\n void mo198c(boolean z) throws RemoteException;\r\n\r\n /* renamed from: g */\r\n float mo199g() throws RemoteException;\r\n\r\n /* renamed from: h */\r\n int mo200h() throws RemoteException;\r\n\r\n /* renamed from: i */\r\n List<LatLng> mo201i() throws RemoteException;\r\n\r\n /* renamed from: j */\r\n boolean mo202j();\r\n\r\n /* renamed from: k */\r\n boolean mo203k();\r\n}", "public interface C32459e<T> {\n /* renamed from: a */\n void mo83698a(T t);\n }", "public interface C32458d<T> {\n /* renamed from: a */\n void mo83695a(T t);\n }", "public interface C5482b {\n /* renamed from: a */\n void mo27575a();\n\n /* renamed from: a */\n void mo27576a(int i);\n }", "public interface C27084a {\n /* renamed from: a */\n void mo69874a();\n\n /* renamed from: a */\n void mo69875a(List<Aweme> list, boolean z);\n }", "public void a() {\n ((a) this.a).a();\n }", "public interface C1153a {\n /* renamed from: a */\n void mo4520a(byte[] bArr);\n }", "public interface C13373b {\n /* renamed from: a */\n void mo32681a(String str, int i, boolean z);\n}", "public interface C40453c {\n /* renamed from: a */\n void mo100442a(C40429b bVar);\n\n /* renamed from: a */\n void mo100443a(List<String> list);\n\n /* renamed from: b */\n void mo100444b(List<C40429b> list);\n}", "public interface AbstractC17367b {\n /* renamed from: a */\n void mo84655a();\n }", "@Override\r\n\tpublic void a() {\n\t\t\r\n\t}", "public interface C43270a {\n /* renamed from: a */\n void mo64942a(String str, long j, long j2);\n}", "public interface C18928d {\n /* renamed from: a */\n void mo50320a(C18924b bVar);\n\n /* renamed from: b */\n void mo50321b(C18924b bVar);\n}", "public interface C0087c {\n /* renamed from: a */\n String mo150a(String str);\n}", "public interface C1529m {\n /* renamed from: a */\n void mo3767a(int i);\n\n /* renamed from: a */\n void mo3768a(String str);\n}", "interface C4483e {\n /* renamed from: a */\n boolean mo34114a();\n}", "public interface C1234b {\r\n /* renamed from: a */\r\n void m8367a();\r\n\r\n /* renamed from: b */\r\n void m8368b();\r\n}", "public interface C10965j<T> {\n /* renamed from: a */\n T mo26439a();\n}", "public interface C28772a {\n /* renamed from: a */\n View mo73990a(View view);\n }", "@Override\n\tpublic void a() {\n\t\t\n\t}", "public interface C8326b {\n /* renamed from: a */\n C8325a mo21498a(String str);\n\n /* renamed from: a */\n void mo21499a(C8325a aVar);\n}", "void metodo1(int a, int[] b) {\r\n\t\ta += 5;//Par\\u00e1metro con el mismo nombre que el campo de la clase.\r\n\t\tb[0] += 7;//se produce un env\\u00edo por referencia, apunta a una copia de un objeto, que se asigna aqu\\u00ed.\r\n\t}", "public interface C2367a {\n /* renamed from: a */\n C2368d mo1698a();\n }", "interface C30585a {\n /* renamed from: b */\n void mo27952b(C5379a c5379a, int i, C46650a c46650a, C7620bi c7620bi);\n }", "public interface C4211a {\n\n /* renamed from: com.iab.omid.library.oguryco.c.a$a */\n public interface C4212a {\n /* renamed from: a */\n void mo28760a(View view, C4211a aVar, JSONObject jSONObject);\n }\n\n /* renamed from: a */\n JSONObject mo28758a(View view);\n\n /* renamed from: a */\n void mo28759a(View view, JSONObject jSONObject, C4212a aVar, boolean z);\n}", "public interface C4697a extends C5595at {\n /* renamed from: a */\n void mo12634a();\n\n /* renamed from: a */\n void mo12635a(String str);\n\n /* renamed from: a */\n void mo12636a(boolean z);\n\n /* renamed from: b */\n void mo12637b();\n\n /* renamed from: c */\n void mo12638c();\n }", "public interface C4773c {\n /* renamed from: a */\n void m15858a(int i);\n\n /* renamed from: a */\n void m15859a(int i, int i2);\n\n /* renamed from: a */\n void m15860a(int i, int i2, int i3);\n\n /* renamed from: b */\n void m15861b(int i, int i2);\n}", "public interface C4869f {\n /* renamed from: a */\n C4865b mo6249a();\n}", "public interface C1799a {\n /* renamed from: b */\n void mo3314b(String str);\n }", "public interface C43499b {\n /* renamed from: a */\n void mo8445a(int i, String str, int i2, byte[] bArr);\n}", "public interface C0601aq {\n /* renamed from: a */\n void mo9148a(int i, ArrayList<C0889x> arrayList);\n}", "public interface C45101e {\n /* renamed from: b */\n void mo3796b(int i);\n}", "public interface AbstractC6461g {\n /* renamed from: a */\n String mo42332a();\n}", "public interface AbstractC1645a {\n /* renamed from: a */\n String mo17375a();\n }", "public interface C6178c {\n /* renamed from: a */\n Map<String, String> mo14888a();\n}", "public interface C5101b {\n /* renamed from: a */\n void mo5289a(C5102c c5102c);\n\n /* renamed from: b */\n void mo5290b(C5102c c5102c);\n}", "public interface C19045k {\n /* renamed from: a */\n void mo50368a(int i, Object obj);\n\n /* renamed from: b */\n void mo50369b(int i, Object obj);\n}", "public b a()\r\n/* 12: */ {\r\n/* 13:13 */ return this.a;\r\n/* 14: */ }", "public interface C7720a {\n /* renamed from: a */\n long mo20406a();\n}", "public String a()\r\n/* 25: */ {\r\n/* 26:171 */ return \"dig.\" + this.a;\r\n/* 27: */ }", "public interface ayt {\n /* renamed from: a */\n int mo1635a(long j, List list);\n\n /* renamed from: a */\n long mo1636a(long j, alb alb);\n\n /* renamed from: a */\n void mo1637a();\n\n /* renamed from: a */\n void mo1638a(long j, long j2, List list, ayp ayp);\n\n /* renamed from: a */\n void mo1639a(ayl ayl);\n\n /* renamed from: a */\n boolean mo1640a(ayl ayl, boolean z, Exception exc, long j);\n}", "public interface C24221b extends C28343z<C28318an> {\n /* renamed from: a */\n void mo62991a(int i);\n\n String aw_();\n\n /* renamed from: e */\n Aweme mo62993e();\n}", "public interface C4051c {\n /* renamed from: a */\n boolean mo23707a();\n}", "public interface C45112b {\n /* renamed from: a */\n List<C45111a> mo107674a(Integer num);\n\n /* renamed from: a */\n List<C45111a> mo107675a(Integer num, Integer num2);\n\n /* renamed from: a */\n void mo107676a(C45111a aVar);\n\n /* renamed from: b */\n void mo107677b(Integer num);\n\n /* renamed from: c */\n long mo107678c(Integer num);\n}", "public interface C44963i {\n /* renamed from: a */\n void mo63037a(int i, int i2);\n\n void aA_();\n\n /* renamed from: b */\n void mo63039b(int i, int i2);\n}", "public interface C32457c<T> {\n /* renamed from: a */\n void mo83699a(T t, int i, int i2, String str);\n }", "public void acionou(int a){\n\t\t\tb=a;\n\t\t}", "public interface C5861g {\n /* renamed from: a */\n void mo18320a(C7251a aVar);\n\n @Deprecated\n /* renamed from: a */\n void mo18321a(C7251a aVar, String str);\n\n /* renamed from: a */\n void mo18322a(C7252b bVar);\n\n /* renamed from: a */\n void mo18323a(C7253c cVar);\n\n /* renamed from: a */\n void mo18324a(C7260j jVar);\n}", "public interface C0937a {\n /* renamed from: a */\n void mo3807a(C0985po[] poVarArr);\n }", "public interface C8466a {\n /* renamed from: a */\n void mo25956a(int i);\n\n /* renamed from: a */\n void mo25957a(long j, long j2);\n }", "public interface C39684b {\n /* renamed from: a */\n void mo98969a();\n\n /* renamed from: a */\n void mo98970a(C29296g gVar);\n\n /* renamed from: a */\n void mo98971a(C29296g gVar, int i);\n }", "public interface C43470b {\n /* renamed from: a */\n void mo61496a(C43469a aVar, C43471c cVar);\n }", "public interface AbstractC18255a {\n /* renamed from: a */\n void mo88521a();\n\n /* renamed from: a */\n void mo88522a(String str);\n\n /* renamed from: b */\n void mo88523b();\n\n /* renamed from: c */\n void mo88524c();\n }", "public interface C1436d {\n /* renamed from: a */\n C1435c mo1754a(C1433a c1433a, C1434b c1434b);\n}", "public interface C4150sl {\n /* renamed from: a */\n void mo15005a(C4143se seVar);\n}", "public void a(nm paramnm)\r\n/* 28: */ {\r\n/* 29:45 */ paramnm.a(this);\r\n/* 30: */ }", "public interface C19351a {\n /* renamed from: b */\n void mo30633b(int i, String str, byte[] bArr);\n }", "public interface C11113o {\n /* renamed from: a */\n void mo37759a(String str);\n }", "public interface C39504az {\n /* renamed from: a */\n int mo98207a();\n\n /* renamed from: a */\n void mo98208a(boolean z);\n\n /* renamed from: b */\n int mo98209b();\n\n /* renamed from: c */\n int mo98355c();\n\n /* renamed from: d */\n int mo98356d();\n\n /* renamed from: e */\n int mo98357e();\n\n /* renamed from: f */\n int mo98358f();\n}", "protected a<T> a(Tag.e<T> var0) {\n/* 80 */ Tag.a var1 = b(var0);\n/* 81 */ return new a<>(var1, this.c, \"vanilla\");\n/* */ }", "public interface C35565a {\n /* renamed from: a */\n C45321i mo90380a();\n }", "public interface C21298a {\n /* renamed from: a */\n void mo57275a();\n\n /* renamed from: a */\n void mo57276a(Exception exc);\n\n /* renamed from: b */\n void mo57277b();\n\n /* renamed from: c */\n void mo57278c();\n }", "public interface C40108b {\n /* renamed from: a */\n void mo99838a(boolean z);\n }", "public interface C4724o {\n /* renamed from: a */\n void mo4872a(int i, String str);\n\n /* renamed from: a */\n void mo4873a(C4718l c4718l);\n\n /* renamed from: b */\n void mo4874b(C4718l c4718l);\n}", "public interface C0456a {\n /* renamed from: a */\n void mo2090a(C0455b bVar);\n\n /* renamed from: a */\n boolean mo2091a(C0455b bVar, Menu menu);\n\n /* renamed from: a */\n boolean mo2092a(C0455b bVar, MenuItem menuItem);\n\n /* renamed from: b */\n boolean mo2093b(C0455b bVar, Menu menu);\n }", "public interface C7654b {\n /* renamed from: a */\n C7904c mo24084a();\n\n /* renamed from: b */\n C7716a mo24085b();\n }", "public interface C2603a {\n /* renamed from: a */\n String mo1889a(String str, String str2, String str3, String str4);\n }", "public interface afp {\n /* renamed from: a */\n C0512sx mo169a(C0497si siVar, afj afj, afr afr, Context context);\n}", "public interface C0615ja extends b<HomeFragment> {\n\n /* renamed from: c.c.a.h.b.ja$a */\n /* compiled from: FragmentModule_HomeFragment$app_bazaarRelease */\n public static abstract class a extends b.a<HomeFragment> {\n }\n}", "public interface AbstractC17368c {\n /* renamed from: a */\n void mo84656a(float f);\n }", "public interface a {\n\n /* renamed from: c.b.a.c.b.b.a$a reason: collision with other inner class name */\n /* compiled from: DiskCache */\n public interface C0054a {\n a build();\n }\n\n /* compiled from: DiskCache */\n public interface b {\n boolean a(File file);\n }\n\n File a(c cVar);\n\n void a(c cVar, b bVar);\n}", "public interface C0940d {\n /* renamed from: a */\n void mo3305a(boolean z);\n }", "interface C0932a {\n /* renamed from: a */\n void mo7438a(int i, int i2);\n\n /* renamed from: b */\n void mo7439b(C0933b bVar);\n\n /* renamed from: c */\n void mo7440c(int i, int i2, Object obj);\n\n /* renamed from: d */\n void mo7441d(C0933b bVar);\n\n /* renamed from: e */\n RecyclerView.ViewHolder mo7442e(int i);\n\n /* renamed from: f */\n void mo7443f(int i, int i2);\n\n /* renamed from: g */\n void mo7444g(int i, int i2);\n\n /* renamed from: h */\n void mo7445h(int i, int i2);\n }", "public interface C10330c {\n /* renamed from: a */\n C7562b<C10403b, C10328a> mo25041a();\n}", "public interface C3819a {\n /* renamed from: a */\n void mo23214a(Message message);\n }", "private Proof atoAImpl(Expression a) {\n Proof where = axm2(a, arrow(a, a), a); //a->(a->a) -> (a->(a->a)->a) -> (a -> a)\n Proof one = axm1(a, a); //a->a->a\n Proof two = axm1(a, arrow(a, a)); //a->(a->a)->A\n return mpTwice(where, one, two);\n }", "interface C1939a {\n /* renamed from: a */\n Bitmap mo1406a(Bitmap bitmap, float f);\n}", "public interface a extends com.bankeen.d.b.b.a {\n void a();\n\n void b();\n }", "public b[] a() {\n/* 95 */ return this.a;\n/* */ }", "interface C8361a {\n /* renamed from: b */\n float mo18284b(ViewGroup viewGroup, View view);\n\n /* renamed from: c */\n float mo18281c(ViewGroup viewGroup, View view);\n }" ]
[ "0.6249669", "0.6242452", "0.61399835", "0.6117525", "0.61137056", "0.6089649", "0.6046804", "0.6024678", "0.6020427", "0.5975322", "0.59474325", "0.5912173", "0.5883731", "0.58788097", "0.58703065", "0.58670723", "0.5864566", "0.58566767", "0.5830755", "0.58286554", "0.58273774", "0.5795474", "0.5789155", "0.5783806", "0.57760274", "0.5770078", "0.57680553", "0.57531226", "0.569103", "0.56793714", "0.56700987", "0.56654674", "0.56597596", "0.5659196", "0.56579614", "0.5654381", "0.56449133", "0.5640629", "0.56392074", "0.56302243", "0.5617243", "0.56158006", "0.5606678", "0.56051916", "0.56014943", "0.55958104", "0.55910474", "0.5590642", "0.5574573", "0.5556904", "0.5555496", "0.55513936", "0.5550494", "0.5545024", "0.55376655", "0.5529486", "0.55293244", "0.55268556", "0.55256003", "0.5522323", "0.551999", "0.5510038", "0.55079377", "0.5488427", "0.5486585", "0.54819757", "0.5481469", "0.54804444", "0.54803044", "0.54776204", "0.54668623", "0.5463463", "0.5450725", "0.5443272", "0.54416984", "0.54404145", "0.5431594", "0.5423848", "0.54228616", "0.5418331", "0.5403878", "0.5400301", "0.539958", "0.5394461", "0.53896564", "0.5389041", "0.53753597", "0.53690916", "0.53597134", "0.5356917", "0.5355392", "0.535527", "0.53550094", "0.5350454", "0.5341916", "0.532629", "0.53219014", "0.5321064", "0.5316172", "0.5312055", "0.5298763" ]
0.0
-1
/ renamed from: a
public void m9831a(String pkg, String cmdType) { if (this.f8626l != null) { this.f8626l.mo1886a(pkg, cmdType); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface C4521a {\n /* renamed from: a */\n void mo12348a();\n }", "public interface C1423a {\n /* renamed from: a */\n void mo6888a(int i);\n }", "interface bxc {\n /* renamed from: a */\n void mo2508a(bxb bxb);\n}", "interface C33292a {\n /* renamed from: a */\n void mo85415a(String str);\n }", "interface C10331b {\n /* renamed from: a */\n void mo26876a(int i);\n }", "public interface C0779a {\n /* renamed from: a */\n void mo2311a();\n}", "public interface C6788a {\n /* renamed from: a */\n void mo20141a();\n }", "public interface C0237a {\n /* renamed from: a */\n void mo1791a(String str);\n }", "public interface C35013b {\n /* renamed from: a */\n void mo88773a(int i);\n}", "public interface C11112n {\n /* renamed from: a */\n void mo38026a();\n }", "@Override\n\t\t\t\tpublic void a() {\n\n\t\t\t\t}", "public interface C23407b {\n /* renamed from: a */\n void mo60892a();\n\n /* renamed from: b */\n void mo60893b();\n }", "interface C0312e {\n /* renamed from: a */\n void mo4671a(View view, int i, int i2, int i3, int i4);\n }", "public interface C34379a {\n /* renamed from: a */\n void mo46242a(bmc bmc);\n }", "public interface C32456b<T> {\n /* renamed from: a */\n void mo83696a(T t);\n }", "private String convertir(String a) {\n StringBuilder atributo = new StringBuilder(a);\n atributo.insert(0, Character.toUpperCase(atributo.charAt(0)));\n return atributo.deleteCharAt(1).toString();\n }", "protected m a(String name) {\n/* 42 */ return this.a.get(name);\n/* */ }", "public interface AbstractC23925a {\n /* renamed from: a */\n void mo105476a();\n }", "private interface C0257a {\n /* renamed from: a */\n float mo196a(ViewGroup viewGroup, View view);\n\n /* renamed from: b */\n float mo195b(ViewGroup viewGroup, View view);\n }", "public interface C3598a {\n /* renamed from: a */\n void mo11024a(int i, int i2, String str);\n }", "public interface C2459d {\n /* renamed from: a */\n C2451d mo3408a(C2457e c2457e);\n}", "public interface am extends ak {\r\n /* renamed from: a */\r\n void mo194a(int i) throws RemoteException;\r\n\r\n /* renamed from: a */\r\n void mo195a(List<LatLng> list) throws RemoteException;\r\n\r\n /* renamed from: b */\r\n void mo196b(float f) throws RemoteException;\r\n\r\n /* renamed from: b */\r\n void mo197b(boolean z);\r\n\r\n /* renamed from: c */\r\n void mo198c(boolean z) throws RemoteException;\r\n\r\n /* renamed from: g */\r\n float mo199g() throws RemoteException;\r\n\r\n /* renamed from: h */\r\n int mo200h() throws RemoteException;\r\n\r\n /* renamed from: i */\r\n List<LatLng> mo201i() throws RemoteException;\r\n\r\n /* renamed from: j */\r\n boolean mo202j();\r\n\r\n /* renamed from: k */\r\n boolean mo203k();\r\n}", "public interface C32459e<T> {\n /* renamed from: a */\n void mo83698a(T t);\n }", "public interface C32458d<T> {\n /* renamed from: a */\n void mo83695a(T t);\n }", "public interface C5482b {\n /* renamed from: a */\n void mo27575a();\n\n /* renamed from: a */\n void mo27576a(int i);\n }", "public interface C27084a {\n /* renamed from: a */\n void mo69874a();\n\n /* renamed from: a */\n void mo69875a(List<Aweme> list, boolean z);\n }", "public void a() {\n ((a) this.a).a();\n }", "public interface C1153a {\n /* renamed from: a */\n void mo4520a(byte[] bArr);\n }", "public interface C13373b {\n /* renamed from: a */\n void mo32681a(String str, int i, boolean z);\n}", "public interface C40453c {\n /* renamed from: a */\n void mo100442a(C40429b bVar);\n\n /* renamed from: a */\n void mo100443a(List<String> list);\n\n /* renamed from: b */\n void mo100444b(List<C40429b> list);\n}", "public interface AbstractC17367b {\n /* renamed from: a */\n void mo84655a();\n }", "@Override\r\n\tpublic void a() {\n\t\t\r\n\t}", "public interface C43270a {\n /* renamed from: a */\n void mo64942a(String str, long j, long j2);\n}", "public interface C18928d {\n /* renamed from: a */\n void mo50320a(C18924b bVar);\n\n /* renamed from: b */\n void mo50321b(C18924b bVar);\n}", "public interface C0087c {\n /* renamed from: a */\n String mo150a(String str);\n}", "public interface C1529m {\n /* renamed from: a */\n void mo3767a(int i);\n\n /* renamed from: a */\n void mo3768a(String str);\n}", "interface C4483e {\n /* renamed from: a */\n boolean mo34114a();\n}", "public interface C1234b {\r\n /* renamed from: a */\r\n void m8367a();\r\n\r\n /* renamed from: b */\r\n void m8368b();\r\n}", "public interface C10965j<T> {\n /* renamed from: a */\n T mo26439a();\n}", "public interface C28772a {\n /* renamed from: a */\n View mo73990a(View view);\n }", "@Override\n\tpublic void a() {\n\t\t\n\t}", "public interface C8326b {\n /* renamed from: a */\n C8325a mo21498a(String str);\n\n /* renamed from: a */\n void mo21499a(C8325a aVar);\n}", "void metodo1(int a, int[] b) {\r\n\t\ta += 5;//Par\\u00e1metro con el mismo nombre que el campo de la clase.\r\n\t\tb[0] += 7;//se produce un env\\u00edo por referencia, apunta a una copia de un objeto, que se asigna aqu\\u00ed.\r\n\t}", "public interface C2367a {\n /* renamed from: a */\n C2368d mo1698a();\n }", "interface C30585a {\n /* renamed from: b */\n void mo27952b(C5379a c5379a, int i, C46650a c46650a, C7620bi c7620bi);\n }", "public interface C4211a {\n\n /* renamed from: com.iab.omid.library.oguryco.c.a$a */\n public interface C4212a {\n /* renamed from: a */\n void mo28760a(View view, C4211a aVar, JSONObject jSONObject);\n }\n\n /* renamed from: a */\n JSONObject mo28758a(View view);\n\n /* renamed from: a */\n void mo28759a(View view, JSONObject jSONObject, C4212a aVar, boolean z);\n}", "public interface C4697a extends C5595at {\n /* renamed from: a */\n void mo12634a();\n\n /* renamed from: a */\n void mo12635a(String str);\n\n /* renamed from: a */\n void mo12636a(boolean z);\n\n /* renamed from: b */\n void mo12637b();\n\n /* renamed from: c */\n void mo12638c();\n }", "public interface C4773c {\n /* renamed from: a */\n void m15858a(int i);\n\n /* renamed from: a */\n void m15859a(int i, int i2);\n\n /* renamed from: a */\n void m15860a(int i, int i2, int i3);\n\n /* renamed from: b */\n void m15861b(int i, int i2);\n}", "public interface C4869f {\n /* renamed from: a */\n C4865b mo6249a();\n}", "public interface C1799a {\n /* renamed from: b */\n void mo3314b(String str);\n }", "public interface C43499b {\n /* renamed from: a */\n void mo8445a(int i, String str, int i2, byte[] bArr);\n}", "public interface C0601aq {\n /* renamed from: a */\n void mo9148a(int i, ArrayList<C0889x> arrayList);\n}", "public interface C45101e {\n /* renamed from: b */\n void mo3796b(int i);\n}", "public interface AbstractC6461g {\n /* renamed from: a */\n String mo42332a();\n}", "public interface AbstractC1645a {\n /* renamed from: a */\n String mo17375a();\n }", "public interface C6178c {\n /* renamed from: a */\n Map<String, String> mo14888a();\n}", "public interface C5101b {\n /* renamed from: a */\n void mo5289a(C5102c c5102c);\n\n /* renamed from: b */\n void mo5290b(C5102c c5102c);\n}", "public interface C19045k {\n /* renamed from: a */\n void mo50368a(int i, Object obj);\n\n /* renamed from: b */\n void mo50369b(int i, Object obj);\n}", "public b a()\r\n/* 12: */ {\r\n/* 13:13 */ return this.a;\r\n/* 14: */ }", "public interface C7720a {\n /* renamed from: a */\n long mo20406a();\n}", "public String a()\r\n/* 25: */ {\r\n/* 26:171 */ return \"dig.\" + this.a;\r\n/* 27: */ }", "public interface ayt {\n /* renamed from: a */\n int mo1635a(long j, List list);\n\n /* renamed from: a */\n long mo1636a(long j, alb alb);\n\n /* renamed from: a */\n void mo1637a();\n\n /* renamed from: a */\n void mo1638a(long j, long j2, List list, ayp ayp);\n\n /* renamed from: a */\n void mo1639a(ayl ayl);\n\n /* renamed from: a */\n boolean mo1640a(ayl ayl, boolean z, Exception exc, long j);\n}", "public interface C24221b extends C28343z<C28318an> {\n /* renamed from: a */\n void mo62991a(int i);\n\n String aw_();\n\n /* renamed from: e */\n Aweme mo62993e();\n}", "public interface C4051c {\n /* renamed from: a */\n boolean mo23707a();\n}", "public interface C45112b {\n /* renamed from: a */\n List<C45111a> mo107674a(Integer num);\n\n /* renamed from: a */\n List<C45111a> mo107675a(Integer num, Integer num2);\n\n /* renamed from: a */\n void mo107676a(C45111a aVar);\n\n /* renamed from: b */\n void mo107677b(Integer num);\n\n /* renamed from: c */\n long mo107678c(Integer num);\n}", "public void acionou(int a){\n\t\t\tb=a;\n\t\t}", "public interface C44963i {\n /* renamed from: a */\n void mo63037a(int i, int i2);\n\n void aA_();\n\n /* renamed from: b */\n void mo63039b(int i, int i2);\n}", "public interface C32457c<T> {\n /* renamed from: a */\n void mo83699a(T t, int i, int i2, String str);\n }", "public interface C5861g {\n /* renamed from: a */\n void mo18320a(C7251a aVar);\n\n @Deprecated\n /* renamed from: a */\n void mo18321a(C7251a aVar, String str);\n\n /* renamed from: a */\n void mo18322a(C7252b bVar);\n\n /* renamed from: a */\n void mo18323a(C7253c cVar);\n\n /* renamed from: a */\n void mo18324a(C7260j jVar);\n}", "public interface C0937a {\n /* renamed from: a */\n void mo3807a(C0985po[] poVarArr);\n }", "public interface C8466a {\n /* renamed from: a */\n void mo25956a(int i);\n\n /* renamed from: a */\n void mo25957a(long j, long j2);\n }", "public interface C39684b {\n /* renamed from: a */\n void mo98969a();\n\n /* renamed from: a */\n void mo98970a(C29296g gVar);\n\n /* renamed from: a */\n void mo98971a(C29296g gVar, int i);\n }", "public interface C43470b {\n /* renamed from: a */\n void mo61496a(C43469a aVar, C43471c cVar);\n }", "public interface AbstractC18255a {\n /* renamed from: a */\n void mo88521a();\n\n /* renamed from: a */\n void mo88522a(String str);\n\n /* renamed from: b */\n void mo88523b();\n\n /* renamed from: c */\n void mo88524c();\n }", "public interface C1436d {\n /* renamed from: a */\n C1435c mo1754a(C1433a c1433a, C1434b c1434b);\n}", "public interface C4150sl {\n /* renamed from: a */\n void mo15005a(C4143se seVar);\n}", "public void a(nm paramnm)\r\n/* 28: */ {\r\n/* 29:45 */ paramnm.a(this);\r\n/* 30: */ }", "public interface C19351a {\n /* renamed from: b */\n void mo30633b(int i, String str, byte[] bArr);\n }", "public interface C11113o {\n /* renamed from: a */\n void mo37759a(String str);\n }", "public interface C39504az {\n /* renamed from: a */\n int mo98207a();\n\n /* renamed from: a */\n void mo98208a(boolean z);\n\n /* renamed from: b */\n int mo98209b();\n\n /* renamed from: c */\n int mo98355c();\n\n /* renamed from: d */\n int mo98356d();\n\n /* renamed from: e */\n int mo98357e();\n\n /* renamed from: f */\n int mo98358f();\n}", "protected a<T> a(Tag.e<T> var0) {\n/* 80 */ Tag.a var1 = b(var0);\n/* 81 */ return new a<>(var1, this.c, \"vanilla\");\n/* */ }", "public interface C35565a {\n /* renamed from: a */\n C45321i mo90380a();\n }", "public interface C21298a {\n /* renamed from: a */\n void mo57275a();\n\n /* renamed from: a */\n void mo57276a(Exception exc);\n\n /* renamed from: b */\n void mo57277b();\n\n /* renamed from: c */\n void mo57278c();\n }", "public interface C40108b {\n /* renamed from: a */\n void mo99838a(boolean z);\n }", "public interface C0456a {\n /* renamed from: a */\n void mo2090a(C0455b bVar);\n\n /* renamed from: a */\n boolean mo2091a(C0455b bVar, Menu menu);\n\n /* renamed from: a */\n boolean mo2092a(C0455b bVar, MenuItem menuItem);\n\n /* renamed from: b */\n boolean mo2093b(C0455b bVar, Menu menu);\n }", "public interface C4724o {\n /* renamed from: a */\n void mo4872a(int i, String str);\n\n /* renamed from: a */\n void mo4873a(C4718l c4718l);\n\n /* renamed from: b */\n void mo4874b(C4718l c4718l);\n}", "public interface C7654b {\n /* renamed from: a */\n C7904c mo24084a();\n\n /* renamed from: b */\n C7716a mo24085b();\n }", "public interface C2603a {\n /* renamed from: a */\n String mo1889a(String str, String str2, String str3, String str4);\n }", "public interface afp {\n /* renamed from: a */\n C0512sx mo169a(C0497si siVar, afj afj, afr afr, Context context);\n}", "public interface C0615ja extends b<HomeFragment> {\n\n /* renamed from: c.c.a.h.b.ja$a */\n /* compiled from: FragmentModule_HomeFragment$app_bazaarRelease */\n public static abstract class a extends b.a<HomeFragment> {\n }\n}", "public interface a {\n\n /* renamed from: c.b.a.c.b.b.a$a reason: collision with other inner class name */\n /* compiled from: DiskCache */\n public interface C0054a {\n a build();\n }\n\n /* compiled from: DiskCache */\n public interface b {\n boolean a(File file);\n }\n\n File a(c cVar);\n\n void a(c cVar, b bVar);\n}", "public interface C0940d {\n /* renamed from: a */\n void mo3305a(boolean z);\n }", "public interface AbstractC17368c {\n /* renamed from: a */\n void mo84656a(float f);\n }", "interface C0932a {\n /* renamed from: a */\n void mo7438a(int i, int i2);\n\n /* renamed from: b */\n void mo7439b(C0933b bVar);\n\n /* renamed from: c */\n void mo7440c(int i, int i2, Object obj);\n\n /* renamed from: d */\n void mo7441d(C0933b bVar);\n\n /* renamed from: e */\n RecyclerView.ViewHolder mo7442e(int i);\n\n /* renamed from: f */\n void mo7443f(int i, int i2);\n\n /* renamed from: g */\n void mo7444g(int i, int i2);\n\n /* renamed from: h */\n void mo7445h(int i, int i2);\n }", "public interface C10330c {\n /* renamed from: a */\n C7562b<C10403b, C10328a> mo25041a();\n}", "public interface C3819a {\n /* renamed from: a */\n void mo23214a(Message message);\n }", "private Proof atoAImpl(Expression a) {\n Proof where = axm2(a, arrow(a, a), a); //a->(a->a) -> (a->(a->a)->a) -> (a -> a)\n Proof one = axm1(a, a); //a->a->a\n Proof two = axm1(a, arrow(a, a)); //a->(a->a)->A\n return mpTwice(where, one, two);\n }", "interface C1939a {\n /* renamed from: a */\n Bitmap mo1406a(Bitmap bitmap, float f);\n}", "public interface a extends com.bankeen.d.b.b.a {\n void a();\n\n void b();\n }", "public b[] a() {\n/* 95 */ return this.a;\n/* */ }", "interface C8361a {\n /* renamed from: b */\n float mo18284b(ViewGroup viewGroup, View view);\n\n /* renamed from: c */\n float mo18281c(ViewGroup viewGroup, View view);\n }" ]
[ "0.62497115", "0.6242887", "0.61394435", "0.61176854", "0.6114027", "0.60893", "0.6046901", "0.6024682", "0.60201293", "0.5975212", "0.59482527", "0.59121317", "0.5883635", "0.587841", "0.58703005", "0.5868436", "0.5864884", "0.5857492", "0.58306104", "0.5827752", "0.58272064", "0.5794689", "0.57890314", "0.57838726", "0.5775679", "0.57694733", "0.5769128", "0.57526815", "0.56907034", "0.5677874", "0.5670547", "0.56666386", "0.56592244", "0.5658682", "0.56574154", "0.5654324", "0.5644676", "0.56399715", "0.5638734", "0.5630582", "0.56183887", "0.5615435", "0.56069666", "0.5605207", "0.56005067", "0.559501", "0.55910283", "0.5590222", "0.55736613", "0.5556682", "0.5554544", "0.5550076", "0.55493855", "0.55446684", "0.5538079", "0.5529058", "0.5528109", "0.552641", "0.5525864", "0.552186", "0.5519972", "0.5509587", "0.5507195", "0.54881203", "0.5485328", "0.54826045", "0.5482066", "0.5481586", "0.5479751", "0.54776895", "0.54671466", "0.5463307", "0.54505056", "0.54436916", "0.5440517", "0.5439747", "0.5431944", "0.5422869", "0.54217863", "0.5417556", "0.5403905", "0.5400223", "0.53998446", "0.5394735", "0.5388649", "0.5388258", "0.5374842", "0.5368887", "0.53591394", "0.5357029", "0.5355688", "0.535506", "0.5355034", "0.53494394", "0.5341044", "0.5326166", "0.53236824", "0.53199095", "0.53177035", "0.53112453", "0.5298229" ]
0.0
-1
TODO Autogenerated method stub
@Override public boolean passiveEffect(Character target) { return false; }
{ "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
Created by IntelliJ IDEA. User: Brad Buchsbaum Date: Feb 25, 2007 Time: 5:25:38 PM To change this template use File | Settings | File Templates.
public interface BrainFlowProjectListener { public void modelAdded(BrainFlowProjectEvent event); public void modelRemoved(BrainFlowProjectEvent event); public void intervalAdded(BrainFlowProjectEvent event); public void contentsChanged(BrainFlowProjectEvent event); public void intervalRemoved(BrainFlowProjectEvent event); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private stendhal() {\n\t}", "public void mo21785J() {\n }", "public void mo38117a() {\n }", "public void mo21792Q() {\n }", "public void m23075a() {\n }", "public void mo97908d() {\n }", "private Solution() {\n /**.\n * { constructor }\n */\n }", "public void mo21779D() {\n }", "public void mo21825b() {\n }", "public void method_4270() {}", "public void mo21795T() {\n }", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "public void mo21781F() {\n }", "public void mo23813b() {\n }", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\n\tpublic void name() {\n\t\t\n\t}", "@Override\n\tpublic void name() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "public static void thisDemo() {\n\t}", "public void mo2740a() {\n }", "public void mo21878t() {\n }", "@Override\n\tpublic void jugar() {\n\t\t\n\t}", "public final void mo51373a() {\n }", "public void mo21877s() {\n }", "@Override\n public void settings() {\n // TODO Auto-generated method stub\n \n }", "public void mo21782G() {\n }", "public void mo12930a() {\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}", "private void m50366E() {\n }", "@Override\n public void perish() {\n \n }", "@Override\n\tpublic void einkaufen() {\n\t}", "public void mo115188a() {\n }", "public void mo115190b() {\n }", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "public void mo5248a() {\n }", "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "public void mo56167c() {\n }", "@org.junit.Test\r\n\tpublic void test() {\n\t\t\t\t\r\n\t}", "public void mo21793R() {\n }", "public void mo3376r() {\n }", "public void mo5382o() {\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\n public void init() {\n\n }", "@Override\r\n\t\t\tpublic void test() {\n\t\t\t}", "public void mo3749d() {\n }", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "public void mo5251b() {\n }", "public final void mo91715d() {\n }", "@Override\n public String getDescription() {\n return DESCRIPTION;\n }", "public void mo21787L() {\n }", "public void mo21791P() {\n }", "@Override\r\n\tprotected void doF6() {\n\t\t\r\n\t}", "public static void listing5_14() {\n }", "@SuppressWarnings(\"unused\")\n\tprivate void version() {\n\n\t}", "public void mo2471e() {\n }", "public void foo() {\r\n\t}", "public void mo1531a() {\n }", "public void mo6944a() {\n }", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "public void mo44053a() {\n }", "public void mo4359a() {\n }", "private void someUtilityMethod() {\n }", "private void someUtilityMethod() {\n }", "public void mo21780E() {\n }", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "public void mo21789N() {\n }", "public String getName() {\n/* 209 */ return this.name;\n/* */ }", "@Override\n public void initialize() { \n }", "public static void generateCode()\n {\n \n }", "@Override\n public void init() {\n }", "private test5() {\r\n\t\r\n\t}", "private void habilitar() {\n throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\n }", "private void cargartabla() {\n throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\n }", "@Override\n\tpublic void leti() \n\t{\n\t}", "private static void oneUserExample()\t{\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n void init() {\n }", "@Override\n protected void initialize() {\n\n \n }", "@Override\n\tpublic void anular() {\n\n\t}", "public static void objectDemo() {\n\t}", "static void feladat9() {\n\t}", "@Override\n public int describeContents() { return 0; }", "@Override\n\tpublic void function() {\n\t\t\n\t}", "void berechneFlaeche() {\n\t}", "void m1864a() {\r\n }", "@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}" ]
[ "0.5945517", "0.5920682", "0.5854214", "0.5831035", "0.58085907", "0.57841766", "0.57800215", "0.5779218", "0.5771145", "0.57581675", "0.5733346", "0.5717532", "0.57043666", "0.5702422", "0.56897885", "0.56871027", "0.56871027", "0.5684129", "0.56729716", "0.5668458", "0.5665295", "0.5663297", "0.56543964", "0.56516886", "0.56487495", "0.5640088", "0.56318337", "0.5628916", "0.5628916", "0.5626601", "0.56230086", "0.56171155", "0.56162244", "0.5613495", "0.5613268", "0.5607302", "0.56068426", "0.55976504", "0.55959344", "0.5595796", "0.5591731", "0.5590572", "0.5588442", "0.5588442", "0.5583805", "0.55734", "0.556269", "0.55587995", "0.5557328", "0.55528367", "0.55526245", "0.5549461", "0.5549129", "0.5540552", "0.5539853", "0.55396307", "0.55328226", "0.5521656", "0.55148846", "0.55100507", "0.5499211", "0.5497655", "0.5490955", "0.548513", "0.548513", "0.54850197", "0.54827213", "0.54820305", "0.54820305", "0.5477868", "0.5470129", "0.5470016", "0.5464418", "0.5463455", "0.54619175", "0.5461886", "0.5461398", "0.54591346", "0.545294", "0.5445197", "0.5442283", "0.54397815", "0.54397815", "0.54392797", "0.54392797", "0.54392797", "0.54392797", "0.54392797", "0.54392797", "0.5436865", "0.5434382", "0.5431408", "0.5430123", "0.5429436", "0.5428229", "0.54212326", "0.5417559", "0.5415282", "0.54136133", "0.54136133", "0.54136133" ]
0.0
-1
TEST ABOUT RECYCLERVIEW ITEM TRANSFORMER
@Test public void testGoodSectionLocalisationWithRecyclerViewItemTransformer(){ RecyclerViewItemTransformer recyclerViewItemTransformer = new RecyclerViewItemTransformer(); String string = "AAA Rue machin chose, 69000 Lyon, France"; String change = recyclerViewItemTransformer.getShortAdress(string); assert (change.equals("AAA Rue machin chose")); string = "BB C, Rue du truc, 69000 Lyon, France"; change = recyclerViewItemTransformer.getShortAdress(string); assert (change.equals("BB C Rue du truc")); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void viewItem() {\n\t\t\n\t}", "protected abstract Item createTestItem3();", "protected abstract Item createTestItem1();", "protected abstract View getResultItemView(final RepeatResultItem item);", "protected abstract Item createTestItem2();", "@Test\n public void seeInfoAboutItemAisleFromDepartmentView() {\n String itemTest = \"Bell Peppers\";\n String aisleCheck = \"Aisle: 2\";\n String aisleDescriptionCheck = \"Aisle Description: Between Aisle 1 and Frozen Aisle\";\n onView(withId(R.id.navigation_home)).perform(click());\n onView(withId(R.id.card_view_department)).perform(click());\n onView(withText(\"Produce\")).perform(click());\n onView(withId(R.id.department_items_list_recycler_view)).perform(RecyclerViewActions.actionOnItemAtPosition(16, click()));\n onView(withText(\"VIEW MORE INFORMATION\")).perform(click());\n onView(withId(android.R.id.message)).check(matches(allOf(withSubstring(aisleCheck), isDisplayed())));\n onView(withId(android.R.id.message)).check(matches(allOf(withSubstring(aisleDescriptionCheck), isDisplayed())));\n }", "@Override // see item.java\n\tpublic void useItem() {\n\n\t}", "@Test(dependsOnMethods = {\"searchItem\"})\n\tpublic void purchaseItem() {\n\t\tclickElement(By.xpath(item.addToCar));\n\t\twaitForText(By.id(item.cartButton), \"1\");\n\t\tclickElement(By.id(item.cartButton));\n\t\t// on checkout screen validating the title and price of item is same as what we selected on search result page by text.\n\t\tAssert.assertTrue(isPresent(locateElement(By.xpath(item.priceLocator(price)))));\n\t\tAssert.assertTrue(isPresent(locateElement(By.xpath(item.titlelocator(title)))));\t\n\t}", "@Test\n\tpublic void RevenueLineItems_19230_execute() throws Exception {\n\t\tVoodooUtils.voodoo.log.info(\"Running \" + testName + \"...\");\n\n\t\tFieldSet myTestData = sugar().revLineItems.getDefaultData();\n\t\tsugar().navbar.openQuickCreateMenu();\n\n\t\t// Verify RLI option is under quick create (i.e click method already takes care of its visibility/existence)\n\t\tsugar().navbar.quickCreate.getControl(sugar().revLineItems.moduleNamePlural).click();\t\t\n\t\tVoodooUtils.waitForReady();\n\n\t\t// Verify standard create drawer is open\n\t\t// TODO: VOOD-1887- Once resolved commented line should work and remove very next line\n\t\t//sugar().revLineItems.createDrawer.assertVisible(true);\n\t\tsugar().revLineItems.createDrawer.getEditField(\"name\").assertVisible(true);\n\t\tsugar().revLineItems.createDrawer.showMore();\n\t\tsugar().revLineItems.createDrawer.setFields(myTestData);\n\t\tsugar().revLineItems.createDrawer.save();\n\n\t\t// Verification for currency/double field values below decimal formatting code is required, when currency field verification is implemented in library update verification to use default data \n\t\tDecimalFormat formatter = new DecimalFormat(\"##,###.00\");\n\t\tString likelyDoubleValue = String.format(\"%s%s\", \"$\", formatter.format(Double.parseDouble(myTestData.get(\"likelyCase\"))));\n\t\tmyTestData.put(\"likelyCase\", likelyDoubleValue);\n\t\tmyTestData.put(\"quantity\", formatter.format(Double.parseDouble(myTestData.get(\"quantity\"))));\n\n\t\t// Below code added for ease verification of RLI record \n\t\tRevLineItemRecord myRLI = (RevLineItemRecord)Class.forName(sugar().revLineItems.recordClassName).getConstructor(FieldSet.class).newInstance(myTestData);\n\t\tmyRLI.verify(myTestData);\n\n\t\tVoodooUtils.voodoo.log.info(testName + \" complete.\");\n\t}", "@Test\r\n\tpublic void testBonusDestreza() {\r\n\r\n\t\ttry {\r\n\t\t\tItem itemDes = new Item(idItem, \"elixir de Destreza\", 0, 0, 0, 0, bonusDestreza, 0, null, null);\r\n\r\n\t\t\tAssert.assertEquals(20, itemDes.getBonusDestreza());\r\n\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}\t\t\r\n\t}", "@Test\n\tvoid purchaseTest() {\n\t\ttestCrew.setMoney(10000);\n\t\tfor(MedicalItem item: itemList) {\n\t\t\tint currentMoney = testCrew.getMoney();\n\t\t\titem.purchase(testCrew);\n\t\t\tassertEquals(testCrew.getMoney(), currentMoney - item.getPrice());\n\t\t\tassertTrue(testCrew.getMedicalItems().get(0).getClass().isAssignableFrom(item.getClass()));\n\t\t\ttestCrew.removeFromMedicalItems(testCrew.getMedicalItems().get(0));\n\t\t}\n\t}", "private void setupItemView(View view, NewCollectedItem item) {\n if (item != null) {\n TextView nameText = view.findViewById(R.id.collected_name);\n TextView heightText = view.findViewById(R.id.collected_height);\n TextView pointsText = view.findViewById(R.id.collected_points);\n TextView positionText = view.findViewById(R.id.collected_position);\n TextView dateText = view.findViewById(R.id.collected_date);\n\n nameText.setText(item.getName());\n heightText.setText(mContext.getResources().getString(R.string.height_display,\n UIUtils.IntegerConvert(item.getHeight())));\n positionText.setText(mContext.getResources().getString(R.string.position_display,\n item.getLongitude(), item.getLatitude()));\n pointsText.setText(mContext.getResources().getString(R.string.points_display,\n UIUtils.IntegerConvert(item.getPoints())));\n dateText.setText(mContext.getResources().getString(R.string.date_display,\n item.getDate()));\n\n if (item.isTopInCountry()) {\n view.findViewById(R.id.collected_trophy).setVisibility(View.VISIBLE);\n }\n else {\n view.findViewById(R.id.collected_trophy).setVisibility(View.INVISIBLE);\n }\n\n positionText.setVisibility(View.GONE);\n dateText.setVisibility(View.GONE);\n setCountryFlag(view, item.getCountry());\n }\n }", "@Test\n public void testClickingOnStepLoadsCorrectStepDetails() {\n onView(ViewMatchers.withId(R.id.recipeRecyclerView))\n .perform(RecyclerViewActions.actionOnItemAtPosition(0,\n click()));\n\n //Click on a Step tab on Tab Layout\n onView(withText(\"Steps\")).perform(click());\n\n //Click on each of the item of steps recycle view and verify the detailed step description\n //this logic works for both phone and tablet\n for(int i=0;i<stepsOfNutellaPie.length;i++){\n\n onView(withId(R.id.stepRecyclerView)).perform(\n RecyclerViewActions.actionOnItemAtPosition(i,click()));\n\n //do below only for phone - landscape\n if(!phone_landscape){\n onView(withId(R.id.description))\n .check(matches(withStepDetailedDescription(detailedStepsOfNutellaPie[i])));\n }\n\n //do below only for phones and not tablet\n if(phone_landscape || phone_portrait){\n //go back to previous screen\n Espresso.pressBack();\n }\n }\n\n\n }", "@Test\r\n public void testPesquisaDescricao() {\r\n TipoItem item = new TipoItem();\r\n \r\n item.setDescricao(\"tipoItemDescrição\");\r\n TipoItemRN rn = new TipoItemRN();\r\n rn.salvar(item);\r\n \r\n assertTrue(\"tipoItemDescrição\", true);\r\n }", "@Test\n public void mainRecipeTest() {\n onView(withId(R.id.rv_main)).check(matches(isDisplayed()));\n // Click on the first recipe in the recyclerview\n onView(withId(R.id.rv_main)).perform(actionOnItemAtPosition(0, click()));\n\n // Check that the recyclerview containing the steps is displayed\n onView(withId(R.id.rv_main)).check(matches(isDisplayed()));\n // Check that the favourite fab is displayed\n onView(withId(R.id.favorite_fab)).check(matches(isDisplayed()));\n // Click on the first recipe in the recyclerview\n onView(withId(R.id.rv_main)).perform(actionOnItemAtPosition(0, click()));\n }", "private void inspectItem(String item)//Made by Lexi\n {\n itemFound = decodeItem(item);\n if (itemFound == null)\n {\n System.out.println(\"I don't know of any \" + item + \".\");\n }\n else\n {\n System.out.println(\"The item is: \" + itemFound.getTitle());\n System.out.println(\"Description of the item: \" + itemFound.getDescription());\n System.out.println(\"Item Weight: \" + itemFound.getWeight());\n System.out.println(\"Room item was found in: \" + itemFound.getLocation().getTitle());\n }\n }", "@Test\n public void seeInfoAboutItemAisleAfterAddingToList(){\n String itemTest = \"Potatoes\";\n String aisleCheck = \"Aisle: 2\";\n String aisleDescriptionCheck = \"Aisle Description: Between Aisle 1 and Frozen Aisle\";\n onView(withId(R.id.navigation_search)).perform(click());\n onView(withId(R.id.SearchView)).perform(typeText(itemTest));\n onData(anything()).inAdapterView(withId(R.id.myList)).atPosition(0).perform(click());\n onView(withText(\"ADD TO LIST\")).perform(click());\n onView(withId(R.id.navigation_list)).perform(click());\n onView(withId(R.id.item_list_recycler_view)).perform(RecyclerViewActions.actionOnItemAtPosition(3, click()));\n onView(withText(\"YES\")).perform(click());\n onView(withId(android.R.id.message)).check(matches(allOf(withSubstring(aisleCheck), isDisplayed())));\n onView(withId(android.R.id.message)).check(matches(allOf(withSubstring(aisleDescriptionCheck), isDisplayed())));\n }", "public void testGetItem() throws RepositoryException{\n String path = \"path\";\n MockControl resultMock = MockControl.createControl(Item.class);\n Item result = (Item) resultMock.getMock();\n \n sessionControl.expectAndReturn(session.getItem(path), result);\n sessionControl.replay();\n sfControl.replay();\n \n assertSame(jt.getItem(path), result);\n \n }", "@Test\n public void triggeredForCatalogItemTest() {\n // TODO: test triggeredForCatalogItem\n }", "@Test\n void completeItemsAsString() {\n }", "@Override\n @Test\n public void equipAnimaTest() {\n assertNull(sorcererAnima.getEquippedItem());\n sorcererAnima.equipItem(anima);\n assertFalse(sorcererAnima.getItems().contains(anima));\n assertNull(sorcererAnima.getEquippedItem());\n sorcererAnima.addItem(anima);\n sorcererAnima.equipItem(anima);\n assertEquals(anima,sorcererAnima.getEquippedItem());\n }", "@Test\n\tpublic void RevenueLineItems_19348_execute() throws Exception {\n\t\tVoodooUtils.voodoo.log.info(\"Running \" + testName + \"...\");\n\t\t\n\t\t// Create a quote edit, add a new QLI and save record\n\t\tSimpleDateFormat sdFmt = new SimpleDateFormat(\"MM/dd/yyyy\");\n\t\tString todaysDate = sdFmt.format(new Date());\n\t\t// TODO: VOOD-1898 Quote + QLI conversion to Opportunity + RLI: Duplicates RLIs created if Quote is API-created\n\t\tsugar().navbar.selectMenuItem(sugar().quotes, \"create\" + sugar().quotes.moduleNameSingular);\n\t\tVoodooUtils.focusFrame(\"bwc-frame\");\n\t\tsugar().quotes.editView.getEditField(\"name\").set(testName);\n\t\tsugar().quotes.editView.getEditField(\"date_quote_expected_closed\").set(todaysDate);\n\t\tsugar().quotes.editView.getEditField(\"billingAccountName\").set(myAcc.getRecordIdentifier());\n\t\t\n\t\t// Add QLI details\n\t\t// TODO: VOOD-930 Library support needed for controls on Quote editview \n\t\tDataSource testDS = testData.get(testName);\n\t\tnew VoodooControl(\"input\", \"css\", \"input[name='add_group']\").click();\n\t\tnew VoodooControl(\"input\", \"css\", \"input[name='Add Row']\").click();\n\t\tnew VoodooControl(\"input\", \"css\", \"input[name='quantity[1]']\").set(testDS.get(0).get(\"quantity\"));\n\t\tnew VoodooControl(\"input\", \"css\", \"input[name='product_name[1]']\").set(testDS.get(0).get(\"product_name\"));\n\t\tnew VoodooControl(\"input\", \"css\", \"input[name='cost_price[1]']\").set(testDS.get(0).get(\"cost_price\"));\n\t\tnew VoodooControl(\"input\", \"css\", \"input[name='list_price[1]']\").set(testDS.get(0).get(\"list_price\"));\n\t\t// No entry for \"input[name='discount_price[1]']\" per Test case \n\t\tnew VoodooControl(\"input\", \"css\", \"input[name='discount_amount[1]']\").set(testDS.get(0).get(\"discount_amount\"));\n\t\tnew VoodooControl(\"input\", \"css\", \"input[name='checkbox_select[1]']\").set(\"false\");\n\t\t\n\t\t// Save the quote record\n\t\tVoodooUtils.focusDefault();\n\t\tsugar().quotes.editView.save();\n\t\tVoodooUtils.focusFrame(\"bwc-frame\");\n\t\t\n\t\t// From the quote record view click 'Create Opportunity from Quote' button in an actions dropdown TODO: VOOD-930\n\t\tsugar().quotes.detailView.openPrimaryButtonDropdown();\n\t\tnew VoodooControl(\"a\", \"css\", \"#create_opp_from_quote_button\").click();\n\t\tVoodooUtils.focusDefault();\n\t\tVoodooUtils.waitForReady();\n\n\t\t// // Verify likely case after User is redirected to the created Opportunity record view.\n\t\tsugar().opportunities.recordView.getDetailField(\"oppAmount\").assertContains(testDS.get(0).get(\"likely_case\"), true);\n\t\t\n\t\t// Verify the total discount amount is equal to single QLI discount as we have not select discount % option while creating quote\n\t\tStandardSubpanel revLineItemsSub = sugar().opportunities.recordView.subpanels.get(sugar().revLineItems.moduleNamePlural);\n\t\trevLineItemsSub.waitForVisible();\n\t\trevLineItemsSub.expandSubpanel();\n\t\trevLineItemsSub.clickRecord(1);\n\t\tsugar().revLineItems.recordView.getDetailField(\"discountPrice\").assertContains(testDS.get(0).get(\"discount_amount\"), true);\n\n\t\tVoodooUtils.voodoo.log.info(testName + \"complete.\");\n\t}", "@Test\n void completeItemsAsString() {\n\n }", "@Test\n public void testItemService() {\n Item i = itemService.getItem(1);\n System.out.println(i.toString());\n Assert.assertSame(i, item);\n }", "@Test\n public void destiny2EquipItemTest() {\n InlineResponse20019 response = api.destiny2EquipItem();\n\n // TODO: test validations\n }", "@Test\n public void others(){\n Item item = itemService.getItem(50);\n System.out.println(item);\n\n }", "@Test\r\n\tvoid testChangeItems() {\r\n\t\tToDoItem newItem = new ToDoItem(\"Item 1\", \"2/6/21\", 1, \"Body text 1\");\r\n\t\tString correctInfo = \"Name: Item 2\\nDue Date: 3/16/21\\nPriority: Medium\\nNotes: New notes\\nLate: Yes\\nItem Complete: Yes\";\r\n\t\tnewItem.setName(\"Item 2\");\r\n\t\tnewItem.setDueDate(\"3/16/21\");\r\n\t\tnewItem.setPriority(2);\r\n\t\tnewItem.setNotes(\"New notes\");\r\n\t\tnewItem.setIsLate(true);\r\n\t\tnewItem.setIsDone(true);\r\n\r\n\t\tif (!newItem.getAllInfo().equals(correctInfo)) {\r\n\t\t\tfail(\"Error changing ToDoItem values\");\r\n\t\t}\r\n\t}", "@Test\n\tpublic void RevenueLineItems_26647_execute() throws Exception {\n\t\tVoodooUtils.voodoo.log.info(\"Running \" + testName + \"...\");\n\n\t\t// Navigate to RLIs listview, inline edit Sales Stage and verify the Probability and Forecast are changing respectively\n\t\tsugar().revLineItems.navToListView();\n\t\tsugar().revLineItems.listView.updateRecord(1, updateFS1);\n\t\tsugar().revLineItems.listView.verifyField(1, \"salesStage\", (fullFS1.get(\"salesStage\")));\n\t\tsugar().revLineItems.listView.verifyField(1, \"probability\", (fullFS1.get(\"probability\")));\n\t\tsugar().revLineItems.listView.verifyField(1, \"forecast\", (fullFS1.get(\"forecast\")));\n\n\t\tsugar().revLineItems.listView.updateRecord(2, updateFS2);\n\t\tsugar().revLineItems.listView.verifyField(2, \"salesStage\", fullFS2.get(\"salesStage\"));\n\t\tsugar().revLineItems.listView.verifyField(2, \"probability\", fullFS2.get(\"probability\"));\n\t\tsugar().revLineItems.listView.verifyField(2, \"forecast\", fullFS2.get(\"forecast\"));\n\n\t\tVoodooUtils.voodoo.log.info(testName + \"complete.\");\n\t}", "@Test\r\n\tpublic void testIdItem() {\r\n\r\n\t\ttry {\r\n\t\t\tItem itemDes = new Item(idItem, \"elixir de Destreza\", 0, 0, 0, 0, 0, 0, null, null);\r\n\r\n\t\t\tAssert.assertEquals(12321, itemDes.getIdItem());\r\n\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}\t\t\r\n\r\n\t}", "protected abstract void makeItem();", "@Test\r\n\tpublic void itemLiveTest() {\r\n\t\tItem item = new Item();\r\n\t\titem.setDescription(\"word\");\r\n\t\titem.setType(\"type\");\r\n\t\titem.setName(\"name\");\r\n\t\titem.setSellerId(SELLER);\r\n\t\titem.setCount(NUMBER);\r\n\t\titem.setPrice(FLOATNUMBER);\r\n\t\titem.setPicture(\"picture\");\r\n\t\ttry {\r\n\t\t\titem.createItem();\r\n\t\t} catch (SQLException e) {\r\n\t\t\tfail(\"Failed to create new item: SQLException\");\r\n\t\t}\r\n\t\t\r\n\t\t// load newly created item\r\n\t\tItem itemNew = new Item();\t\t\r\n\t\tassertNotSame(itemNew.getId(), item.getId());\r\n\t\ttry {\r\n\t\t\titemNew.loadById(item.getId());\r\n\t\t\tassertEquals(itemNew.getId(), item.getId()); // item actually loaded\r\n\t\t} catch (SQLException e) {\r\n\t\t\tfail(\"Failed to load item id \"+item.getId()+\": SQLException\");\r\n\t\t}\r\n\t\t\r\n\t\titemNew.setName(\"another name\");\r\n\t\ttry {\r\n\t\t\titemNew.updateItem();\r\n\t\t} catch (SQLException e) {\r\n\t\t\tfail(\"Failed to update item id \"+itemNew.getId()+\": SQLException\");\r\n\t\t}\r\n\t\t\r\n\t\t// load updated item\r\n\t\titem = new Item();\t\t\r\n\t\ttry {\r\n\t\t\titem.loadById(itemNew.getId());\r\n\t\t\tassertEquals(item.getId(), itemNew.getId()); // item actually loaded\r\n\t\t\tassertEquals(itemNew.getName(), \"another name\"); // update has been saved\t\t\t\r\n\t\t} catch (SQLException e) {\r\n\t\t\tfail(\"Failed to load updated item id \"+itemNew.getId()+\": SQLException\");\r\n\t\t}\r\n\t\t\r\n\t\ttry {\r\n\t\t\titem.deleteItem(true);\r\n\t\t} catch (SQLException e) {\r\n\t\t\tfail(\"Failed to delete item id \"+item.getId()+\": SQLException\");\r\n\t\t}\t\t\r\n\t}", "@Test\r\n public void test() throws QueryException, IOException\r\n {\r\n EasyMockSupport support = new EasyMockSupport();\r\n\r\n EventManager eventManager = createEventManager(support);\r\n TimeManager timeManager = createTimeManager(support);\r\n AnimationManager animationManager = createAnimationManager(support);\r\n List<PlatformMetadata> testData = New.list(createMetadata());\r\n OrderParticipantKey expectedUAVKey = support.createMock(OrderParticipantKey.class);\r\n OrderParticipantKey expectedVideoKey = support.createMock(OrderParticipantKey.class);\r\n OrderManagerRegistry orderRegistry = createOrderRegistry(support, expectedUAVKey, expectedVideoKey, 1);\r\n Toolbox toolbox = createToolbox(support, eventManager, timeManager, animationManager, testData, orderRegistry, 1);\r\n\r\n DataTypeInfo videoLayer = createVideoLayer(support, expectedVideoKey);\r\n OSHImageQuerier querier = createQuerier(support, videoLayer, 1);\r\n List<DataTypeInfo> linkedLayer = New.list(videoLayer);\r\n\r\n DataTypeInfo uavLayer = createUAVDataType(support, expectedUAVKey, 1);\r\n\r\n GenericSubscriber<Geometry> receiver = createReceiver(support);\r\n\r\n support.replayAll();\r\n\r\n AerialImageryTransformer transformer = new AerialImageryTransformer(toolbox, querier, uavLayer, linkedLayer);\r\n transformer.addSubscriber(receiver);\r\n transformer.open();\r\n\r\n myListener.activeTimeSpansChanged(null);\r\n\r\n support.verifyAll();\r\n }", "public abstract boolean captchalogue(SylladexItem item);", "@Test\n\tpublic void testSubtractItem() throws IOException{\n\t\tassertEquals(amount - subAmount, Model.subtractItem(item, subAmount + \"\"));\n\t}", "@Test\n public void destiny2EquipItemsTest() {\n InlineResponse20044 response = api.destiny2EquipItems();\n\n // TODO: test validations\n }", "public static void doCreateitem(RunData data)\n\t{\n\t\tSessionState state = ((JetspeedRunData)data).getPortletSessionState (((JetspeedRunData)data).getJs_peid ());\n\t\tParameterParser params = data.getParameters ();\n\n\t\tstate.setAttribute(STATE_LIST_SELECTIONS, new TreeSet());\n\n\t\tMap current_stack_frame = peekAtStack(state);\n\t\tboolean pop = false;\n\t\t\n\t\tString collectionId = params.getString(\"collectionId\");\n\t\tString itemType = params.getString(\"itemType\");\n\t\tString flow = params.getString(\"flow\");\n\t\t\n\t\tBoolean preventPublicDisplay = (Boolean) state.getAttribute(STATE_PREVENT_PUBLIC_DISPLAY);\n\n\t\tSet alerts = (Set) state.getAttribute(STATE_CREATE_ALERTS);\n\t\tif(alerts == null)\n\t\t{\n\t\t\talerts = new HashSet();\n\t\t\tstate.setAttribute(STATE_CREATE_ALERTS, alerts);\n\t\t}\n\t\tSet missing = new HashSet();\n\t\tif(flow == null || flow.equals(\"cancel\"))\n\t\t{\n\t\t\tpop = true;\n\t\t}\n\t\telse if(flow.equals(\"updateNumber\"))\n\t\t{\n\t\t\tcaptureMultipleValues(state, params, false);\n\t\t\tint number = params.getInt(\"numberOfItems\");\n\t\t\tInteger numberOfItems = new Integer(number);\n\t\t\tcurrent_stack_frame.put(ResourcesAction.STATE_STACK_CREATE_NUMBER, numberOfItems);\n\n\t\t\t// clear display of error messages\n\t\t\tstate.setAttribute(STATE_CREATE_ALERTS, new HashSet());\n\n\t\t\tList items = (List) current_stack_frame.get(STATE_STACK_CREATE_ITEMS);\n\t\t\tif(items == null)\n\t\t\t{\n\t\t\t\tString defaultCopyrightStatus = (String) state.getAttribute(DEFAULT_COPYRIGHT);\n\t\t\t\tif(defaultCopyrightStatus == null || defaultCopyrightStatus.trim().equals(\"\"))\n\t\t\t\t{\n\t\t\t\t\tdefaultCopyrightStatus = ServerConfigurationService.getString(\"default.copyright\");\n\t\t\t\t\tstate.setAttribute(DEFAULT_COPYRIGHT, defaultCopyrightStatus);\n\t\t\t\t}\n\n\t\t\t\tString encoding = data.getRequest().getCharacterEncoding();\n\n\t\t\t\tTime defaultRetractDate = (Time) state.getAttribute(STATE_DEFAULT_RETRACT_TIME);\n\t\t\t\tif(defaultRetractDate == null)\n\t\t\t\t{\n\t\t\t\t\tdefaultRetractDate = TimeService.newTime();\n\t\t\t\t\tstate.setAttribute(STATE_DEFAULT_RETRACT_TIME, defaultRetractDate);\n\t\t\t\t}\n\n\t\t\t\titems = newEditItems(collectionId, itemType, encoding, defaultCopyrightStatus, preventPublicDisplay.booleanValue(), defaultRetractDate, CREATE_MAX_ITEMS);\n\n\t\t\t}\n\t\t\tcurrent_stack_frame.put(STATE_STACK_CREATE_ITEMS, items);\n\t\t\tIterator it = items.iterator();\n\t\t\twhile(it.hasNext())\n\t\t\t{\n\t\t\t\tEditItem item = (EditItem) it.next();\n\t\t\t\titem.clearMissing();\n\t\t\t}\n\t\t\tstate.removeAttribute(STATE_MESSAGE);\n\t\t}\n\t\telse if(flow.equals(\"create\") && TYPE_FOLDER.equals(itemType))\n\t\t{\n\t\t\t// Get the items\n\t\t\tcaptureMultipleValues(state, params, true);\n\t\t\talerts = (Set) state.getAttribute(STATE_CREATE_ALERTS);\n\t\t\tif(alerts.isEmpty())\n\t\t\t{\n\t\t\t\t// Save the items\n\t\t\t\tcreateFolders(state);\n\t\t\t\talerts = (Set) state.getAttribute(STATE_CREATE_ALERTS);\n\n\t\t\t\tif(alerts.isEmpty())\n\t\t\t\t{\n\t\t\t\t\tpop = true;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\telse if(flow.equals(\"create\") && TYPE_UPLOAD.equals(itemType))\n\t\t{\n\t\t\tcaptureMultipleValues(state, params, true);\n\t\t\talerts = (Set) state.getAttribute(STATE_CREATE_ALERTS);\n\t\t\tif(alerts.isEmpty())\n\t\t\t{\n\t\t\t\tcreateFiles(state);\n\t\t\t\talerts = (Set) state.getAttribute(STATE_CREATE_ALERTS);\n\t\t\t\tif(alerts.isEmpty())\n\t\t\t\t{\n\t\t\t\t\tpop = true;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\telse if(flow.equals(\"create\") && MIME_TYPE_DOCUMENT_HTML.equals(itemType))\n\t\t{\n\t\t\tcaptureMultipleValues(state, params, true);\n\t\t\talerts = (Set) state.getAttribute(STATE_CREATE_ALERTS);\n\t\t\tif(alerts.isEmpty())\n\t\t\t{\n\t\t\t\tcreateFiles(state);\n\t\t\t\talerts = (Set) state.getAttribute(STATE_CREATE_ALERTS);\n\t\t\t\tif(alerts.isEmpty())\n\t\t\t\t{\n\t\t\t\t\tpop = true;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\telse if(flow.equals(\"create\") && MIME_TYPE_DOCUMENT_PLAINTEXT.equals(itemType))\n\t\t{\n\t\t\tcaptureMultipleValues(state, params, true);\n\t\t\talerts = (Set) state.getAttribute(STATE_CREATE_ALERTS);\n\t\t\tif(alerts.isEmpty())\n\t\t\t{\n\t\t\t\tcreateFiles(state);\n\t\t\t\talerts = (Set) state.getAttribute(STATE_CREATE_ALERTS);\n\t\t\t\tif(alerts.isEmpty())\n\t\t\t\t{\n\t\t\t\t\tpop =true;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\telse if(flow.equals(\"create\") && TYPE_URL.equals(itemType))\n\t\t{\n\t\t\tcaptureMultipleValues(state, params, true);\n\t\t\talerts = (Set) state.getAttribute(STATE_CREATE_ALERTS);\n\t\t\tif(alerts.isEmpty())\n\t\t\t{\n\t\t\t\tcreateUrls(state);\n\t\t\t\talerts = (Set) state.getAttribute(STATE_CREATE_ALERTS);\n\t\t\t\tif(alerts.isEmpty())\n\t\t\t\t{\n\t\t\t\t\tpop = true;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n//\t\telse if(flow.equals(\"create\") && TYPE_FORM.equals(itemType))\n//\t\t{\n//\t\t\tcaptureMultipleValues(state, params, true);\n//\t\t\talerts = (Set) state.getAttribute(STATE_CREATE_ALERTS);\n//\t\t\tif(alerts == null)\n//\t\t\t{\n//\t\t\t\talerts = new HashSet();\n//\t\t\t\tstate.setAttribute(STATE_CREATE_ALERTS, alerts);\n//\t\t\t}\n//\t\t\tif(alerts.isEmpty())\n//\t\t\t{\n//\t\t\t\tcreateStructuredArtifacts(state);\n//\t\t\t\talerts = (Set) state.getAttribute(STATE_CREATE_ALERTS);\n//\t\t\t\tif(alerts.isEmpty())\n//\t\t\t\t{\n//\t\t\t\t\tpop = true;\n//\t\t\t\t}\n//\t\t\t}\n//\t\t}\n\t\telse if(flow.equals(\"create\"))\n\t\t{\n\t\t\tcaptureMultipleValues(state, params, true);\n\t\t\talerts = (Set) state.getAttribute(STATE_CREATE_ALERTS);\n\t\t\tif(alerts == null)\n\t\t\t{\n\t\t\t\talerts = new HashSet();\n\t\t\t\tstate.setAttribute(STATE_CREATE_ALERTS, alerts);\n\t\t\t}\n\t\t\talerts.add(\"Invalid item type\");\n\t\t\tstate.setAttribute(STATE_CREATE_ALERTS, alerts);\n\t\t}\n\t\telse if(flow.equals(\"updateDocType\"))\n\t\t{\n\t\t\t// captureMultipleValues(state, params, false);\n\t\t\tString formtype = params.getString(\"formtype\");\n\t\t\tif(formtype == null || formtype.equals(\"\"))\n\t\t\t{\n\t\t\t\talerts.add(\"Must select a form type\");\n\t\t\t\tmissing.add(\"formtype\");\n\t\t\t}\n\t\t\tcurrent_stack_frame.put(STATE_STACK_STRUCTOBJ_TYPE, formtype);\n\t\t\t//setupStructuredObjects(state);\n\t\t}\n\t\telse if(flow.equals(\"addInstance\"))\n\t\t{\n\t\t\tcaptureMultipleValues(state, params, false);\n\t\t\tString field = params.getString(\"field\");\n\t\t\tList new_items = (List) current_stack_frame.get(STATE_STACK_CREATE_ITEMS);\n\t\t\tif(new_items == null)\n\t\t\t{\n\t\t\t\tString defaultCopyrightStatus = (String) state.getAttribute(DEFAULT_COPYRIGHT);\n\t\t\t\tif(defaultCopyrightStatus == null || defaultCopyrightStatus.trim().equals(\"\"))\n\t\t\t\t{\n\t\t\t\t\tdefaultCopyrightStatus = ServerConfigurationService.getString(\"default.copyright\");\n\t\t\t\t\tstate.setAttribute(DEFAULT_COPYRIGHT, defaultCopyrightStatus);\n\t\t\t\t}\n\n\t\t\t\tString encoding = data.getRequest().getCharacterEncoding();\n\t\t\t\t\n\t\t\t\tTime defaultRetractDate = (Time) state.getAttribute(STATE_DEFAULT_RETRACT_TIME);\n\t\t\t\tif(defaultRetractDate == null)\n\t\t\t\t{\n\t\t\t\t\tdefaultRetractDate = TimeService.newTime();\n\t\t\t\t\tstate.setAttribute(STATE_DEFAULT_RETRACT_TIME, defaultRetractDate);\n\t\t\t\t}\n\n\t\t\t\tnew_items = newEditItems(collectionId, itemType, encoding, defaultCopyrightStatus, preventPublicDisplay.booleanValue(), defaultRetractDate, CREATE_MAX_ITEMS);\n\n\t\t\t\tcurrent_stack_frame.put(STATE_STACK_CREATE_ITEMS, new_items);\n\n\t\t\t}\n\t\t\tEditItem item = (EditItem) new_items.get(0);\n\t\t\taddInstance(field, item.getProperties());\n\t\t\tResourcesMetadata form = item.getForm();\n\t\t\tList flatList = form.getFlatList();\n\t\t\titem.setProperties(flatList);\n\t\t}\n\t\telse if(flow.equals(\"linkResource\") && TYPE_FORM.equals(itemType))\n\t\t{\n\t\t\tcaptureMultipleValues(state, params, false);\n\t\t\tcreateLink(data, state);\n\t\t\t\n\t\t}\n\t\telse if(flow.equals(\"showOptional\"))\n\t\t{\n\t\t\tcaptureMultipleValues(state, params, false);\n\t\t\tint twiggleNumber = params.getInt(\"twiggleNumber\", 0);\n\t\t\tString metadataGroup = params.getString(\"metadataGroup\");\n\t\t\tList new_items = (List) current_stack_frame.get(STATE_STACK_CREATE_ITEMS);\n\t\t\tif(new_items == null)\n\t\t\t{\n\t\t\t\tString defaultCopyrightStatus = (String) state.getAttribute(DEFAULT_COPYRIGHT);\n\t\t\t\tif(defaultCopyrightStatus == null || defaultCopyrightStatus.trim().equals(\"\"))\n\t\t\t\t{\n\t\t\t\t\tdefaultCopyrightStatus = ServerConfigurationService.getString(\"default.copyright\");\n\t\t\t\t\tstate.setAttribute(DEFAULT_COPYRIGHT, defaultCopyrightStatus);\n\t\t\t\t}\n\n\t\t\t\tString encoding = data.getRequest().getCharacterEncoding();\n\n\t\t\t\tTime defaultRetractDate = (Time) state.getAttribute(STATE_DEFAULT_RETRACT_TIME);\n\t\t\t\tif(defaultRetractDate == null)\n\t\t\t\t{\n\t\t\t\t\tdefaultRetractDate = TimeService.newTime();\n\t\t\t\t\tstate.setAttribute(STATE_DEFAULT_RETRACT_TIME, defaultRetractDate);\n\t\t\t\t}\n\n\t\t\t\tnew_items = newEditItems(collectionId, itemType, encoding, defaultCopyrightStatus, preventPublicDisplay.booleanValue(), defaultRetractDate, CREATE_MAX_ITEMS);\n\t\t\t\tcurrent_stack_frame.put(STATE_STACK_CREATE_ITEMS, new_items);\n\n\t\t\t}\n\t\t\tif(new_items != null && new_items.size() > twiggleNumber)\n\t\t\t{\n\t\t\t\tEditItem item = (EditItem) new_items.get(twiggleNumber);\n\t\t\t\tif(item != null)\n\t\t\t\t{\n\t\t\t\t\titem.showMetadataGroup(metadataGroup);\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// clear display of error messages\n\t\t\tstate.setAttribute(STATE_CREATE_ALERTS, new HashSet());\n\t\t\tIterator it = new_items.iterator();\n\t\t\twhile(it.hasNext())\n\t\t\t{\n\t\t\t\tEditItem item = (EditItem) it.next();\n\t\t\t\titem.clearMissing();\n\t\t\t}\n\t\t}\n\t\telse if(flow.equals(\"hideOptional\"))\n\t\t{\n\t\t\tcaptureMultipleValues(state, params, false);\n\t\t\tint twiggleNumber = params.getInt(\"twiggleNumber\", 0);\n\t\t\tString metadataGroup = params.getString(\"metadataGroup\");\n\t\t\tList new_items = (List) current_stack_frame.get(STATE_STACK_CREATE_ITEMS);\n\t\t\tif(new_items == null)\n\t\t\t{\n\t\t\t\tString defaultCopyrightStatus = (String) state.getAttribute(DEFAULT_COPYRIGHT);\n\t\t\t\tif(defaultCopyrightStatus == null || defaultCopyrightStatus.trim().equals(\"\"))\n\t\t\t\t{\n\t\t\t\t\tdefaultCopyrightStatus = ServerConfigurationService.getString(\"default.copyright\");\n\t\t\t\t\tstate.setAttribute(DEFAULT_COPYRIGHT, defaultCopyrightStatus);\n\t\t\t\t}\n\n\t\t\t\tString encoding = data.getRequest().getCharacterEncoding();\n\n\t\t\t\tTime defaultRetractDate = (Time) state.getAttribute(STATE_DEFAULT_RETRACT_TIME);\n\t\t\t\tif(defaultRetractDate == null)\n\t\t\t\t{\n\t\t\t\t\tdefaultRetractDate = TimeService.newTime();\n\t\t\t\t\tstate.setAttribute(STATE_DEFAULT_RETRACT_TIME, defaultRetractDate);\n\t\t\t\t}\n\n\t\t\t\tnew_items = newEditItems(collectionId, itemType, encoding, defaultCopyrightStatus, preventPublicDisplay.booleanValue(), defaultRetractDate, CREATE_MAX_ITEMS);\n\t\t\t\tcurrent_stack_frame.put(STATE_STACK_CREATE_ITEMS, new_items);\n\t\t\t}\n\t\t\tif(new_items != null && new_items.size() > twiggleNumber)\n\t\t\t{\n\t\t\t\tEditItem item = (EditItem) new_items.get(twiggleNumber);\n\t\t\t\tif(item != null)\n\t\t\t\t{\n\t\t\t\t\titem.hideMetadataGroup(metadataGroup);\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// clear display of error messages\n\t\t\tstate.setAttribute(STATE_CREATE_ALERTS, new HashSet());\n\t\t\tIterator it = new_items.iterator();\n\t\t\twhile(it.hasNext())\n\t\t\t{\n\t\t\t\tEditItem item = (EditItem) it.next();\n\t\t\t\titem.clearMissing();\n\t\t\t}\n\t\t}\n\n\t\talerts = (Set) state.getAttribute(STATE_CREATE_ALERTS);\n\t\tif(alerts == null)\n\t\t{\n\t\t\talerts = new HashSet();\n\t\t\tstate.setAttribute(STATE_CREATE_ALERTS, alerts);\n\t\t}\n\t\t\n\t\tIterator alertIt = alerts.iterator();\n\t\twhile(alertIt.hasNext())\n\t\t{\n\t\t\tString alert = (String) alertIt.next();\n\t\t\taddCreateContextAlert(state, alert);\n\t\t\t//addAlert(state, alert);\n\t\t}\n\t\talerts.clear();\n\t\tcurrent_stack_frame.put(STATE_CREATE_MISSING_ITEM, missing);\n\n\t\tif(pop)\n\t\t{\n\t\t\tList new_items = (List) current_stack_frame.get(ResourcesAction.STATE_HELPER_NEW_ITEMS);\n\t\t\tString helper_changed = (String) state.getAttribute(STATE_HELPER_CHANGED);\n\t\t\tif(Boolean.TRUE.toString().equals(helper_changed))\n\t\t\t{\n\t\t\t\t// get list of attachments?\n\t\t\t\tif(new_items != null)\n\t\t\t\t{\n\t\t\t\t\tList attachments = (List) state.getAttribute(STATE_ATTACHMENTS);\n\t\t\t\t\tif(attachments == null)\n\t\t\t\t\t{\n\t\t\t\t\t\tattachments = EntityManager.newReferenceList();\n\t\t\t\t\t\tstate.setAttribute(STATE_ATTACHMENTS, attachments);\n\t\t\t\t\t}\n\t\t\t\t\tIterator it = new_items.iterator();\n\t\t\t\t\twhile(it.hasNext())\n\t\t\t\t\t{\n\t\t\t\t\t\tAttachItem item = (AttachItem) it.next();\n\t\t\t\t\t\ttry \n\t\t\t\t\t\t{\t\n\t\t\t\t\t\t\tContentResource resource = ContentHostingService.getResource(item.getId());\n\t\t\t\t\t\t\tif (checkSelctItemFilter(resource, state))\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tattachments.add(resource.getReference());\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\telse\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tit.remove();\n\t\t\t\t\t\t\t\taddAlert(state, (String) rb.getFormattedMessage(\"filter\", new Object[]{item.getDisplayName()}));\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t} \n\t\t\t\t\t\tcatch (PermissionException e) \n\t\t\t\t\t\t{\n\t\t\t\t\t\t\taddAlert(state, (String) rb.getFormattedMessage(\"filter\", new Object[]{item.getDisplayName()}));\n\t\t\t\t\t\t} \n\t\t\t\t\t\tcatch (IdUnusedException e) \n\t\t\t\t\t\t{\n\t\t\t\t\t\t\taddAlert(state, (String) rb.getFormattedMessage(\"filter\", new Object[]{item.getDisplayName()}));\n\t\t\t\t\t\t} \n\t\t\t\t\t\tcatch (TypeException e) \n\t\t\t\t\t\t{\n\t\t\t\t\t\t\taddAlert(state, (String) rb.getFormattedMessage(\"filter\", new Object[]{item.getDisplayName()}));\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t\tReference ref = EntityManager.newReference(ContentHostingService.getReference(item.getId()));\n\n\t\t }\n\t\t\t\t}\n\t\t\t}\n\t\t\tpopFromStack(state);\n\t\t\tresetCurrentMode(state);\n\n\t\t\tif(!ResourcesAction.isStackEmpty(state) && new_items != null)\n\t\t\t{\n\t\t\t\tcurrent_stack_frame = peekAtStack(state);\n\t\t\t\tList old_items = (List) current_stack_frame.get(STATE_HELPER_NEW_ITEMS);\n\t\t\t\tif(old_items == null)\n\t\t\t\t{\n\t\t\t\t\told_items = new Vector();\n\t\t\t\t\tcurrent_stack_frame.put(STATE_HELPER_NEW_ITEMS, old_items);\n\t\t\t\t}\n\t\t\t\told_items.addAll(new_items);\n\t\t\t}\n\t\t}\n\n\t}", "private static void processItem(XMLTree item, SimpleWriter out) {\n assert item != null : \"Violation of: item is not null\";\n assert out != null : \"Violation of: out is not null\";\n assert item.isTag() && item.label().equals(\"item\") : \"\"\n + \"Violation of: the label root of item is an <item> tag\";\n assert out.isOpen() : \"Violation of: out.is_open\";\n \t\n // catch indexes of all the specific elements we'll need to clean up code\n int pubDateIndex = getChildElement(item, \"pubDate\");\n int sourceIndex = getChildElement(item, \"source\");\n int titleIndex = getChildElement(item, \"title\");\n int linkIndex = getChildElement(item, \"link\");\n int descriptionIndex = getChildElement(item, \"description\");\n \n \tout.println(\"<tr>\");\n \t\n \t// check the publication date, if we have it print if it not tell user\n \tif(pubDateIndex == -1) \n \t{\n \t\tout.println(\"<td>No date available</td>\");\n \t}\n \telse\n \t{\n \t\tout.println(\"<td>\" + item.child(pubDateIndex).child(0) + \"</td>\");\n \t}\n\t\t\n \tif(sourceIndex == -1)\n \t{\n \t\tout.println(\"<td>No source available</td>\");\n \t}\n \telse\n \t{\n \t\tout.println(\"<td><a href = \\\"\" + item.child(sourceIndex).attributeValue(\"url\") + \"\\\">\" + item.child(sourceIndex) + \"</a></td>\");\n \t}\n\t\t\n \tif(titleIndex == -1 || item.child(titleIndex).toString() == \"\")\n \t{\n \t\tif(descriptionIndex == -1 || item.child(descriptionIndex).child(descriptionIndex).toString() == \"\")\n \t\t{\n \t\t\tout.println(\"<td>No title available</td>\");\n \t\t}\n \t\telse\n \t\t{\n \t\t\tout.println(\"<td>\" + item.child(descriptionIndex).child(0) + \"</td>\");\n \t\t}\n \t}\n \telse\n \t{\n \t\tout.println(\"<td><a href = \\\"\" + item.child(linkIndex).child(0) + \"\\\">\" + item.child(titleIndex).child(0) + \"</a></td>\");\n \t}\n\t\t\n\t\tout.println(\"</tr>\");\n }", "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}", "@Test\n public void getItem() {\n Item item = new Item();\n item.setName(\"Drill\");\n item.setDescription(\"Power Tool\");\n item.setDaily_rate(new BigDecimal(\"24.99\"));\n item = service.saveItem(item);\n\n // Copy the Item added to the mock database using the Item API method\n Item itemCopy = service.findItem(item.getItem_id());\n\n // Test the getItem() API method\n verify(itemDao, times(1)).getItem(item.getItem_id());\n TestCase.assertEquals(itemCopy, item);\n }", "void updateItem(E itemElementView);", "@Test\n\tvoid descriptionTest() {\n\t\tfor(MedicalItem item: itemList) {\n\t\t\tString expected = \"Name: \" + item.toString() + \"\\nHeal Amount: \" + item.getHealAmount() +\n\t\t\t\t\t\"\\nCures Plague: \" + item.getCure() +\"\\nOutpost Cost: $\" + item.getPrice();\n\t\t\tassertEquals(item.itemDescription(), expected);\n\t\t}\n\t}", "private void itemResult(Item item) {\r\n int bidder = item.getBidderId();\r\n AH_AgentThread agent = AuctionServer.agentSearch(bidder);\r\n if (bidder != -1) {\r\n Message release = new Message.Builder()\r\n .command(Message.Command.TRANSFER)\r\n .balance(item.getCurrentBid())\r\n .accountId(bidder)\r\n .senderId(AuctionServer.auctionId);\r\n Message response = BankActions.sendToBank(release);\r\n assert response != null;\r\n if(response.getResponse() == Message.Response.SUCCESS) {\r\n System.out.println(\"Item Transferred\");\r\n agent.winner(item);\r\n } else {\r\n System.out.println(\"Item Transfer failed\");\r\n }\r\n auctionList.remove(item);\r\n }\r\n }", "@Test\n\tpublic void validState_changeState() {\n\t\tString testState = \"OFF\";\n\t\tItem testItem = new Item().createItemFromItemName(\"lamp_woonkamer\");\n\t\ttestItem.changeState(testItem.getName(), testState);\n\t\tSystem.out.println(testItem.getState());\n\t\tassertEquals(testItem.getState(), testState);\n\t\t\n\t}", "@Test\r\n\tvoid testCreateToDoItem() {\r\n\t\tToDoItem newItem = new ToDoItem(\"Item 1\", \"2/6/21\", 1, \"Body text 1\");\r\n\t\tString correctInfo = \"Name: Item 1\\nDue Date: 2/6/21\\nPriority: High\\nNotes: Body text 1\\nLate: Yes\\nItem Complete: No\";\r\n\r\n\t\tif (!newItem.getAllInfo().equals(correctInfo)) {\r\n\t\t\tfail(\"Error creating ToDoItem\");\r\n\t\t}\r\n\r\n\t}", "@Test\n public void testSelecionarItemTbViewPagamentos() {\n }", "@Test\n\tpublic abstract void testTransform4();", "@Test\n public void clickIncrementButton_ChangesQuantityAndCost() {\n onView((withId(R.id.increment_button))).perform(click());\n // 3. Check if the view does what you expect\n onView(withId(R.id.quantity_text_view)).check(matches(withText(\"1\")));\n onView(withId(R.id.cost_text_view)).check(matches(withText(\"$5.00\")));\n //Note: these test are language dependent. I had an emulator with the french language. and this would fail every single time. the\n // out put would be 5,00$ instead of $5.00\n }", "@Test\n public void myMeetingDetailsActivity_isLaunchedWhenWeClickOnAnItem() {\n // When perform a click on an item\n onView(withId(R.id.recyclerview)).perform(RecyclerViewActions.actionOnItemAtPosition(0, click()));\n // Then : MeetingDetailsActivity is launched\n onView(withId(R.id.activity_meeting_details));\n }", "@Test\n public void testDAM32101001() {\n // Index page\n DAM3IndexPage dam3IndexPage = new DAM3IndexPage(driver);\n\n OrderMB3ListPage orderMB3ListPage = dam3IndexPage.dam32101001Click();\n\n String expectedOrdeDetails = \"Order accepted, ITM0000001, Orange juice, CTG0000001, Drink, dummy1\";\n\n // get the details of the specified order in a single string\n String actualOrderDetails = orderMB3ListPage.getOrderDetails(1);\n\n // confirm the details of the order fetched from various tables\n assertThat(actualOrderDetails, is(expectedOrdeDetails));\n\n orderMB3ListPage.setItemCode(\"ITM0000001\");\n\n orderMB3ListPage = orderMB3ListPage.fetchRelatedEntity();\n\n // Expected related entity category details\n String expRelatedEntityDet = \"CTG0000001, Drink\";\n\n String actRelatedEntityDet = orderMB3ListPage\n .getRelatedEntityCategoryDeatils(1);\n\n // confirmed realted entity details\n assertThat(actRelatedEntityDet, is(expRelatedEntityDet));\n\n }", "@Test\n public void testViewRawMaterialWithSelectType1() throws Exception {\n System.out.println(\"viewRawMaterialWithSelectType\");\n Long factoryId = 1L;\n Collection<FactoryRawMaterialEntity> result = PurchaseOrderManagementModule.viewRawMaterialWithSelectType(factoryId);\n assertFalse(result.isEmpty());\n }", "@BeforeClass\n\tpublic static void generatingItems() {\n\t\tfor (Item i : allItems) {\n\t\t\tif (i.getType().equals(\"spores engine\")) {\n\t\t\t\titem4 = i;\n\t\t\t}\n\t\t}\n\t\tltsTest = new LongTermStorage();\n\t\tltsTest1 = new LongTermStorage();\n\t}", "@Test\n public void destiny2TransferItemTest() {\n InlineResponse20019 response = api.destiny2TransferItem();\n\n // TODO: test validations\n }", "public void mo68520e() {\n super.mo68520e();\n C26780aa.m87959a(this.itemView, mo75290r(), this.f77546j);\n C24942al.m81837c(mo75261ab(), this.f89221bo);\n C24958f.m81905a().mo65273b(this.f77546j).mo65266a(\"result_ad\").mo65276b(\"otherclick\").mo65283e(\"video\").mo65270a(mo75261ab());\n }", "@Test\n public void testDAM32102002() {\n // Index page\n DAM3IndexPage dam3IndexPage = new DAM3IndexPage(driver);\n\n OrderMB3ListPage orderMB3ListPage = dam3IndexPage.dam32102002Click();\n\n String expectedOrdeDetails = \"Order accepted, ITM0000001, Orange juice, CTG0000001, Drink, dummy1\";\n\n // get the details of the specified order in a single string\n String actualOrderDetails = orderMB3ListPage.getOrderDetails(1);\n\n // confirm the details of the order fetched from various tables\n assertThat(actualOrderDetails, is(expectedOrdeDetails));\n\n orderMB3ListPage.setItemCode(\"ITM0000001\");\n\n orderMB3ListPage = orderMB3ListPage.fetchRelatedEntityLazy();\n\n // Expected related entity category details\n String expRelatedEntityDet = \"CTG0000001, Drink\";\n\n String actRelatedEntityDet = orderMB3ListPage\n .getRelatedEntityCategoryDeatils(1);\n\n // confirmed realted entity details\n assertThat(actRelatedEntityDet, is(expRelatedEntityDet));\n }", "@Test\r\n\tpublic void testBonusFuerza() {\r\n\t\t\r\n\t\ttry {\r\n\t\t\tItem itemDes = new Item(idItem, \"elixir de Destreza\", 0, 0, 0, bonusFuerza, 0, 0, null, null);\r\n\t\t\t\r\n\t\t\tAssert.assertEquals(40, itemDes.getBonusFuerza());\r\n\t\t\t\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}\t\t\r\n\t}", "@Test\n public void testViewRawMaterialWithSelectType2() throws Exception {\n System.out.println(\"viewRawMaterialWithSelectType\");\n Long factoryId = 1L;\n Collection<FactoryRawMaterialEntity> result = PurchaseOrderManagementModule.viewRawMaterialWithSelectType(factoryId);\n assertFalse(result.isEmpty());\n }", "protected void sequence_Item(ISerializationContext context, Item semanticObject) {\n\t\tif (errorAcceptor != null) {\n\t\t\tif (transientValues.isValueTransient(semanticObject, AcceptanceTestPackage.Literals.ITEM__NAME) == ValueTransient.YES)\n\t\t\t\terrorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, AcceptanceTestPackage.Literals.ITEM__NAME));\n\t\t\tif (transientValues.isValueTransient(semanticObject, AcceptanceTestPackage.Literals.ITEM__QUANTITY) == ValueTransient.YES)\n\t\t\t\terrorAcceptor.accept(diagnosticProvider.createFeatureValueMissing(semanticObject, AcceptanceTestPackage.Literals.ITEM__QUANTITY));\n\t\t}\n\t\tSequenceFeeder feeder = createSequencerFeeder(context, semanticObject);\n\t\tfeeder.accept(grammarAccess.getItemAccess().getNameIDTerminalRuleCall_1_0(), semanticObject.getName());\n\t\tfeeder.accept(grammarAccess.getItemAccess().getQuantityINTTerminalRuleCall_3_0(), semanticObject.getQuantity());\n\t\tfeeder.finish();\n\t}", "@Override\r\n public boolean supportsPredictiveItemAnimations() {\r\n return true;\r\n }", "@Test(dependsOnMethods = {\"login\"})\n\tpublic void searchItem() {\n\t\thome.searchItem(data.readData(\"searchItem\"));\n\t\t// generating random number from total search result display using random number generator\n\t\tint index=data.randomeNum(getElementsCount(By.id(home.selectItem)));\n\t\t// storing title and price of searched item from search screen to verify later\n\t\ttitle= home.getTitle(index);\n\t\tprice=home.getPrice(index);\n\t\telementByIndex(By.id(home.selectItem), index).click();\n\t\twaitForElement(By.xpath(item.review));\n\t\t//Scrolling till we see addtocart button\n\t\tscrollPage();\n\t\tboolean actual = elementDisplay(By.xpath(item.addToCar));\n\t\tAssert.assertEquals(actual, true,\"Add to cart button not display\");\n\t}", "@Test\n public void lookUpListItemActivity(){\n TextView tv = (TextView) listItemActivity.findViewById(R.id.textView4);\n Spinner spinner = (Spinner) listItemActivity.findViewById(R.id.itemTypeSpinner);\n ListView lv = (ListView) listItemActivity.findViewById(R.id.itemListView);\n EditText et = (EditText) listItemActivity.findViewById(R.id.searchForItemByNameEditTExt);\n Button search = (Button) listItemActivity.findViewById(R.id.searchButton);\n //Button cancel = (Button) listItemActivity.findViewById(R.id.CancelSelectItemButton);\n Button addToDB = (Button) listItemActivity.findViewById(R.id.addToDBButton);\n\n assertNotNull(\"TextView could not be found in ListItemActivity\", tv);\n assertNotNull(\"Spinner could not be found in ListItemActivity\", spinner);\n assertNotNull(\"EditText could not be found in ListItemActivity\", et);\n assertNotNull(\"Search button could not be found in ListItemActivity\", search);\n //assertNotNull(\"Cancel Selected Item button could not be found in ListItemActivity\", cancel);\n assertNotNull(\"Add to DB button could not be found in ListItemActivity\", addToDB);\n }", "public void loadItemNotes(View view, Order_Item item) {\n Intent i = new Intent(getActivity(), item_notes.class);\n b.putSerializable(\"item\", item);\n i.putExtras(b);\n startActivity(i);\n }", "@Test\n public void getItemType () {\n Assert.assertEquals(\"SPECIAL\", bomb.getItemType().name());\n }", "@Test\n public void transformMenu() {\n onView(withId(R.id.transform_button))\n .perform(click());\n\n //Make sure fragment is loaded\n onView(withText(\"Stack Blur\"))\n .check(matches(isDisplayed()));\n }", "@Override\n @Test\n public void equipTest() {\n Axe axes;\n Sword sword;\n Staff staff;\n Spear spear;\n Luz luz;\n Oscuridad oscuridad;\n Anima anima;\n Bow bow;\n axes = new Axe(\"Axe\", 20, 1, 2);\n sword = new Sword(\"Sword\", 20, 1, 2);\n spear = new Spear(\"Spear\", 20, 1, 2);\n staff = new Staff(\"Staff\", 20, 1, 2);\n bow = new Bow(\"Bow\", 20, 2, 3);\n anima = new Anima(\"Anima\", 20, 1, 2);\n luz = new Luz(\"Luz\", 20, 1, 2);\n oscuridad = new Oscuridad(\"Oscuridad\", 20, 1, 2);\n sorcererAnima.addItem(axes);\n sorcererAnima.equipItem(axes);\n assertNull(sorcererAnima.getEquippedItem());\n sorcererAnima.items.remove(axes);\n sorcererAnima.addItem(sword);\n sorcererAnima.equipItem(sword);\n assertNull(sorcererAnima.getEquippedItem());\n sorcererAnima.items.remove(sword);\n sorcererAnima.addItem(spear);\n sorcererAnima.equipItem(spear);\n assertNull(sorcererAnima.getEquippedItem());\n sorcererAnima.items.remove(spear);\n sorcererAnima.addItem(staff);\n sorcererAnima.equipItem(staff);\n assertNull(sorcererAnima.getEquippedItem());\n sorcererAnima.items.remove(staff);\n sorcererAnima.addItem(bow);\n sorcererAnima.equipItem(bow);\n assertNull(sorcererAnima.getEquippedItem());\n sorcererAnima.items.remove(bow);}", "@Test\n public void selectChainedView() throws Exception {\n final Properties connectionProps = new Properties();\n connectionProps.setProperty(USER, TestInboundImpersonation.PROXY_NAME);\n connectionProps.setProperty(PASSWORD, TestInboundImpersonation.PROXY_PASSWORD);\n connectionProps.setProperty(IMPERSONATION_TARGET, TestInboundImpersonation.TARGET_NAME);\n BaseTestQuery.updateClient(connectionProps);\n BaseTestQuery.testBuilder().sqlQuery(\"SELECT * FROM %s.u0_lineitem ORDER BY l_orderkey LIMIT 1\", BaseTestImpersonation.getWSSchema(TestInboundImpersonation.OWNER)).ordered().baselineColumns(\"l_orderkey\", \"l_partkey\").baselineValues(1, 1552).go();\n }", "@Override\n public void setTestItem(){\n expectedName = \"Common lightMagicBook\";\n expectedPower = 10;\n expectedMinRange = 1;\n expectedMaxRange = 2;\n lightMagicBook = new LightMagicBook(expectedName,expectedPower,expectedMinRange,expectedMaxRange);\n animaMagicBook1 = new AnimaMagicBook(\"\",30,1,2);\n darknessMagicBook1 = new DarknessMagicBook(\"\",30,1,2);\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 functionalityTest() {\n new TestBuilder()\n .setModel(MODEL_PATH)\n .setContext(new ModelImplementationGroup3())\n .setPathGenerator(new RandomPath(new EdgeCoverage(100)))\n .setStart(\"e_GoToPage\")\n .execute();\n }", "@Test\n public void checkoutTest() {\n when(retroLibrary.getBooks()).thenReturn(Observable.just(getFakeBooks()));\n\n // Manually launch activity\n mActivityTestRule.launchActivity(new Intent());\n\n onView(withId(R.id.books_list)).perform(RecyclerViewActions.actionOnItemAtPosition(0, click()));\n\n ViewInteraction floatingActionButton = onView(allOf(withId(R.id.fab_checkout), isDisplayed()));\n\n floatingActionButton.perform(click());\n\n ViewInteraction appCompatEditText = onView(allOf(withId(android.R.id.input), isDisplayed()));\n\n appCompatEditText.perform(replaceText(\"Chet\"), closeSoftKeyboard());\n\n ViewInteraction mDButton = onView(\n allOf(withId(R.id.buttonDefaultPositive), withText(\"OK\"), isDisplayed()));\n mDButton.perform(click());\n\n }", "@Test\n public void testChangeToRecipes() {\n Context appContext = InstrumentationRegistry.getInstrumentation().getTargetContext();\n appContext.setTheme(R.style.Theme_Entree);\n MenuBarsView v = new MenuBarsView(appContext, null, null);\n\n v.onNavigationItemSelected(v.getRecipeMenuItem());\n\n assertTrue(v.getSubView() == v.getRecipeView());\n }", "@Test\n\tpublic void createItemEqual() {\n\t\tItem item = new Item().createItemFromItemName(\"lamp\");\n\t\tSystem.out.println(item);\n\t\tassertEquals(new Item(), item);\n\t}", "@Test(groups = \"suite1-1\")\n\tpublic void browseItems() {\n\n\t\tWebElement treasuryLink = driver.findElement(By\n\t\t\t\t.linkText(TREASURY_LINK_TEXT));\n\t\ttreasuryLink.click();\n\n\t\tWebDriverWait wait = new WebDriverWait(driver, 10);\n\n\t\t// Find the button to do the search inside treasury objects\n\t\tWebElement searchButton = wait\n\t\t\t\t.until(ExpectedConditions.elementToBeClickable(By\n\t\t\t\t\t\t.xpath(\"/HTML/BODY/DIV[@id=\\\"content\\\"]/DIV[2]/DIV[@id=\\\"listings-header\\\"]/FORM/SPAN/SPAN/INPUT\")));\n\n\t\t// Find the text input field to do the search\n\t\tWebElement searchField = driver\n\t\t\t\t.findElement(By\n\t\t\t\t\t\t.xpath(\"/HTML/BODY/DIV[@id=\\\"content\\\"]/DIV[2]/DIV[@id=\\\"listings-header\\\"]/FORM/INPUT[@name=\\\"search_query\\\"]\"));\n\t\t// Search key\n\t\tsearchField.sendKeys(\"bag\");\n\n\t\tsearchButton.click();\n\n\t\tWebElement numResults = driver.findElement(By\n\t\t\t\t.xpath(\"/HTML/BODY/DIV[@id=\\\"content\\\"]/DIV[1]/H1\"));\n\n\t\tassertNotEquals(numResults.getText().trim().substring(0, 1), \"0\",\n\t\t\t\t\"Results expected for given key\");\n\n\t\tWebElement gallery = wait\n\t\t\t\t.until(ExpectedConditions.elementToBeClickable(By\n\t\t\t\t\t\t.xpath(\"/HTML/BODY/DIV[@id=\\\"content\\\"]/DIV[2]/DIV[2]/UL/LI[1]/DIV[4]/A[1]/IMG\")));\n\t\t// Click should be done without errors\n\t\tgallery.click();\n\n\t}", "@Test\n void legendaryItems() {\n int[] sellDates = new int[]{-5, 0, 5};\n Item[] items = new Item[]{\n new Item(\"Sulfuras, Hand of Ragnaros\", sellDates[0], 80),\n new Item(\"Sulfuras, Hand of Ragnaros\", sellDates[1], 80),\n new Item(\"Sulfuras, Hand of Ragnaros\", sellDates[2], 80)\n };\n GildedRose app = new GildedRose(items);\n app.updateQuality();\n\n for (int i = 0; i < items.length; i++) {\n assertEquals(80, app.items[i].quality, \"Quality should be fixed\");\n assertEquals(sellDates[i], app.items[i].sellIn, \"SellIn dates should remain the same\");\n }\n }", "@Test\n\tpublic void getCostForItem() {\n\t\tfinal BasketItemImpl bi = new BasketItemImpl();\n\t\tbi.addBasketItem(\"banana\", 2);\n\t\tbi.addBasketItem(\"lemon\", 3);\n\n\t\tfinal int fc = bi.getAllBasketItems().get(\"banana\");\n\t\tassertTrue(Integer.compare(2, fc) == 0);\n\n\t}", "public static ItemDefinition itemDef(int i, ItemDefinition itemDef) {\n void var1_1;\n int n;\n switch (itemDef.id) {\n case 19892: {\n itemDef.name = \"Immortal Charm\";\n break;\n }\n case 1654: {\n itemDef.name = \"Necklace of Lightning\";\n itemDef.description = \"A necklace used to deflect some lightning damage.\";\n break;\n }\n case 1655: {\n itemDef.name = \"Necklace of Lightning\";\n itemDef.description = \"A necklace used to deflect some lightning damage.\";\n break;\n }\n case 1609: {\n itemDef.name = \"Stone of Lightning\";\n itemDef.description = \"A stone used to create the Necklace of Lightning.\";\n itemDef.originalModelColors[0] = ItemDef_8.RGB_to_RS2HSB(52, 145, 130);\n itemDef.originalModelColors[1] = ItemDef_8.RGB_to_RS2HSB(52, 145, 130);\n itemDef.originalModelColors[2] = ItemDef_8.RGB_to_RS2HSB(52, 145, 130);\n itemDef.originalModelColors[3] = ItemDef_8.RGB_to_RS2HSB(52, 145, 130);\n break;\n }\n case 746: {\n itemDef.name = \"Sword of Zeus\";\n itemDef.description = \"The famous sword of the God of Lightning Zeus.\";\n itemDef.modelZoom = 2500;\n itemDef.modelRotation1 = 292;\n itemDef.modelRotation2 = 1899;\n break;\n }\n case 747: {\n itemDef.name = \"Sword of Zeus\";\n itemDef.description = \"The famous sword of the God of Lightning Zeus.\";\n itemDef.modelZoom = 2500;\n itemDef.modelRotation1 = 292;\n itemDef.modelRotation2 = 1899;\n itemDef.certTemplateID = 799;\n itemDef.certID = 746;\n itemDef.toNote();\n break;\n }\n case 936: {\n itemDef.name = \"Staff of Zeus\";\n itemDef.description = \"A powerful staff of the God of Lightning.\";\n itemDef.modelOffset1 = -3;\n itemDef.modelOffset2 = 2;\n itemDef.modelZoom = 1874;\n itemDef.modelRotation1 = 292;\n itemDef.modelRotation2 = 1499;\n itemDef.groundModelId = 3;\n itemDef.maleEquipt = 4;\n itemDef.femaleEquipt = 4;\n itemDef.revisionType = RevisionType.CUSTOM_ITEM_MODELS;\n itemDef.stackable = false;\n itemDef.itemActions[1] = \"Wear\";\n break;\n }\n case 937: {\n itemDef.name = \"Staff of Zeus\";\n itemDef.description = \"A powerful staff of the God of Lightning.\";\n itemDef.modelOffset1 = -3;\n itemDef.modelOffset2 = 2;\n itemDef.modelZoom = 1874;\n itemDef.modelRotation1 = 292;\n itemDef.modelRotation2 = 1499;\n itemDef.certTemplateID = 540;\n itemDef.certID = 936;\n itemDef.revisionType = RevisionType.CUSTOM_ITEM_MODELS;\n break;\n }\n case 538: {\n itemDef.name = \"Zeus robe bottom\";\n itemDef.maleEquipt = 428;\n itemDef.femaleEquipt = 428;\n break;\n }\n case 539: {\n itemDef.name = \"Zeus robe bottom\";\n itemDef.maleEquipt = 428;\n itemDef.femaleEquipt = 428;\n break;\n }\n case 540: {\n itemDef.copy(799);\n itemDef.groundModelId = 9;\n itemDef.revisionType = RevisionType.CUSTOM_ITEM_MODELS;\n break;\n }\n case 14114: {\n itemDef.name = \"Zeus robe top\";\n itemDef.femaleEquipt = 8;\n itemDef.maleEquipt = 8;\n itemDef.groundModelId = 7;\n itemDef.modelZoom = 1150;\n itemDef.anInt188 = 10;\n itemDef.itemActions = new String[]{null, \"Wear\", null, null, \"Drop\"};\n itemDef.revisionType = RevisionType.CUSTOM_ITEM_MODELS;\n break;\n }\n case 14115: {\n itemDef.name = \"Zeus robe top\";\n itemDef.maleEquipt = 8;\n itemDef.femaleEquipt = 8;\n itemDef.groundModelId = 7;\n itemDef.modelZoom = 1150;\n itemDef.anInt188 = 10;\n itemDef.certID = 14114;\n itemDef.certTemplateID = 540;\n itemDef.itemActions = new String[]{null, null, null, null, \"Drop\"};\n itemDef.revisionType = RevisionType.CUSTOM_ITEM_MODELS;\n break;\n }\n case 626: {\n itemDef.name = \"Zeus boots\";\n itemDef.maleEquipt = 1;\n itemDef.femaleEquipt = 1;\n itemDef.groundModelId = 2;\n itemDef.revisionType = RevisionType.CUSTOM_ITEM_MODELS;\n break;\n }\n case 627: {\n itemDef.name = \"Zeus boots\";\n itemDef.certID = 626;\n itemDef.certTemplateID = 540;\n itemDef.revisionType = RevisionType.CUSTOM_ITEM_MODELS;\n break;\n }\n case 628: {\n itemDef.name = \"Zeus wings\";\n itemDef.maleEquipt = 14;\n itemDef.femaleEquipt = 14;\n itemDef.groundModelId = 13;\n itemDef.modelOffset1 = -60;\n itemDef.modelOffset2 = 0;\n itemDef.modelZoom = 1900;\n itemDef.modelRotation1 = 445;\n itemDef.modelRotation2 = 487;\n itemDef.revisionType = RevisionType.CUSTOM_ITEM_MODELS;\n break;\n }\n case 629: {\n itemDef.name = \"Zeus wings\";\n itemDef.groundModelId = 185;\n break;\n }\n case 74: {\n itemDef.name = \"Zeus helmet\";\n itemDef.maleEquipt = 40436;\n itemDef.femaleEquipt = 40436;\n itemDef.modelRotation1 = 1500;\n itemDef.modelRotation2 = 600;\n itemDef.modelOffset1 = 1;\n itemDef.modelOffset2 = 0;\n itemDef.modelZoom = 724;\n break;\n }\n case 75: {\n itemDef.name = \"Zeus helmet\";\n itemDef.maleEquipt = 40436;\n itemDef.femaleEquipt = 40436;\n itemDef.groundModelId = 40637;\n itemDef.certID = 74;\n itemDef.certTemplateID = 799;\n itemDef.toNote();\n break;\n }\n case 2902: {\n itemDef.name = \"Zeus gloves\";\n itemDef.groundModelId = 5;\n itemDef.maleEquipt = 6;\n itemDef.femaleEquipt = 6;\n itemDef.revisionType = RevisionType.CUSTOM_ITEM_MODELS;\n break;\n }\n case 2903: {\n itemDef.name = \"Zeus gloves\";\n itemDef.groundModelId = 5;\n itemDef.maleEquipt = 6;\n itemDef.femaleEquipt = 6;\n itemDef.certID = 2902;\n itemDef.certTemplateID = 9;\n itemDef.revisionType = RevisionType.CUSTOM_ITEM_MODELS;\n break;\n }\n case 19879: {\n itemDef.name = \"Immortal Band\";\n itemDef.itemActions = new String[5];\n itemDef.itemActions[1] = \"Wear\";\n break;\n }\n case 22044: {\n itemDef.groundModelId = 46409;\n itemDef.modelZoom = 2750;\n itemDef.modelRotation1 = 512;\n itemDef.modelRotation2 = 0;\n itemDef.modelOffset1 = 3;\n itemDef.modelOffset1 = 1;\n itemDef.name = \"$5 Bond\";\n itemDef.itemActions = new String[5];\n itemDef.itemActions[0] = \"Claim Credits\";\n itemDef.stackable = false;\n break;\n }\n case 22046: {\n itemDef.groundModelId = 46409;\n itemDef.modelZoom = 2700;\n itemDef.modelRotation1 = 512;\n itemDef.modelRotation2 = 0;\n itemDef.modelOffset1 = 3;\n itemDef.modelOffset1 = 1;\n itemDef.name = \"$10 Bond\";\n itemDef.itemActions = new String[5];\n itemDef.itemActions[0] = \"Claim Credits\";\n break;\n }\n case 22048: {\n itemDef.groundModelId = 46409;\n itemDef.modelZoom = 2650;\n itemDef.modelRotation1 = 512;\n itemDef.modelRotation2 = 0;\n itemDef.modelOffset1 = 3;\n itemDef.modelOffset1 = 1;\n itemDef.name = \"$25 Bond\";\n itemDef.itemActions = new String[5];\n itemDef.itemActions[0] = \"Claim Credits\";\n break;\n }\n case 22050: {\n itemDef.groundModelId = 46409;\n itemDef.modelZoom = 2600;\n itemDef.modelRotation1 = 512;\n itemDef.modelRotation2 = 0;\n itemDef.modelOffset1 = 3;\n itemDef.modelOffset1 = 1;\n itemDef.name = \"$50 Bond\";\n itemDef.itemActions = new String[5];\n itemDef.itemActions[0] = \"Claim Credits\";\n break;\n }\n case 22052: {\n itemDef.groundModelId = 46409;\n itemDef.modelZoom = 2550;\n itemDef.modelRotation1 = 512;\n itemDef.modelRotation2 = 0;\n itemDef.modelOffset1 = 3;\n itemDef.modelOffset1 = 1;\n itemDef.name = \"$100 Bond\";\n itemDef.itemActions = new String[5];\n itemDef.itemActions[0] = \"Claim Credits\";\n break;\n }\n case 22054: {\n itemDef.groundModelId = 46409;\n itemDef.modelZoom = 2500;\n itemDef.modelRotation1 = 512;\n itemDef.modelRotation2 = 0;\n itemDef.modelOffset1 = 3;\n itemDef.modelOffset1 = 1;\n itemDef.name = \"$150 Bond\";\n itemDef.itemActions = new String[5];\n itemDef.itemActions[0] = \"Claim Credits\";\n break;\n }\n case 22056: {\n itemDef.groundModelId = 46409;\n itemDef.modelZoom = 2450;\n itemDef.modelRotation1 = 512;\n itemDef.modelRotation2 = 0;\n itemDef.modelOffset1 = 3;\n itemDef.modelOffset1 = 1;\n itemDef.name = \"$250 Bond\";\n itemDef.itemActions = new String[5];\n itemDef.itemActions[0] = \"Claim Credits\";\n break;\n }\n case 22058: {\n itemDef.groundModelId = 46409;\n itemDef.modelZoom = 2400;\n itemDef.modelRotation1 = 512;\n itemDef.modelRotation2 = 0;\n itemDef.modelOffset1 = 3;\n itemDef.modelOffset1 = 1;\n itemDef.name = \"$500 Bond\";\n itemDef.itemActions = new String[5];\n itemDef.itemActions[0] = \"Claim Credits\";\n break;\n }\n case 22060: {\n itemDef.groundModelId = 46409;\n itemDef.modelZoom = 2350;\n itemDef.modelRotation1 = 512;\n itemDef.modelRotation2 = 0;\n itemDef.modelOffset1 = 3;\n itemDef.modelOffset1 = 1;\n itemDef.name = \"$1000 Bond\";\n itemDef.itemActions = new String[5];\n itemDef.itemActions[0] = \"Claim Credits\";\n break;\n }\n case 21183: {\n itemDef.groundModelId = 71001;\n itemDef.maleEquipt = 71002;\n itemDef.femaleEquipt = 71003;\n itemDef.modelZoom = 825;\n itemDef.modelOffset1 = 0;\n itemDef.modelOffset2 = -8;\n itemDef.modelRotation1 = 380;\n itemDef.modelRotation2 = 0;\n itemDef.name = \"Skeletal Full Helm\";\n itemDef.itemActions = new String[5];\n itemDef.itemActions[1] = \"Wear\";\n itemDef.stackable = false;\n break;\n }\n case 21185: {\n itemDef.groundModelId = 71004;\n itemDef.maleEquipt = 71005;\n itemDef.femaleEquipt = 71006;\n itemDef.modelZoom = 1450;\n itemDef.modelOffset1 = 0;\n itemDef.modelOffset2 = 12;\n itemDef.modelRotation1 = 425;\n itemDef.modelRotation2 = 0;\n itemDef.name = \"Skeletal Platebody\";\n itemDef.itemActions = new String[5];\n itemDef.itemActions[1] = \"Wear\";\n itemDef.stackable = false;\n break;\n }\n case 21187: {\n itemDef.groundModelId = 71007;\n itemDef.maleEquipt = 71008;\n itemDef.femaleEquipt = 71009;\n itemDef.modelZoom = 1660;\n itemDef.modelOffset1 = -5;\n itemDef.modelOffset2 = -3;\n itemDef.modelRotation1 = 515;\n itemDef.modelRotation2 = 0;\n itemDef.name = \"Skeletal Platelegs\";\n itemDef.itemActions = new String[5];\n itemDef.itemActions[1] = \"Wear\";\n itemDef.stackable = false;\n break;\n }\n case 19626: {\n itemDef.name = \"Memory Scroll\";\n itemDef.modelZoom = 3170;\n itemDef.modelOffset1 = 6;\n itemDef.modelOffset2 = 0;\n itemDef.modelRotation1 = 395;\n itemDef.modelRotation2 = 47;\n itemDef.itemActions = new String[5];\n itemDef.itemActions[0] = \"Read\";\n break;\n }\n case 22000: {\n itemDef.groundModelId = 46377;\n itemDef.modelZoom = 625;\n itemDef.modelOffset1 = 0;\n itemDef.modelOffset2 = 0;\n itemDef.modelRotation1 = 1050;\n itemDef.modelRotation2 = 60;\n itemDef.name = \"Jawbreaker\";\n itemDef.itemActions = new String[5];\n itemDef.itemActions[0] = \"Break\";\n itemDef.stackable = true;\n break;\n }\n case 22002: {\n itemDef.groundModelId = 46378;\n itemDef.modelZoom = 1640;\n itemDef.modelOffset1 = 0;\n itemDef.modelOffset2 = 0;\n itemDef.modelRotation1 = 160;\n itemDef.modelRotation2 = 0;\n itemDef.name = \"Empty Basket\";\n itemDef.itemActions = new String[5];\n itemDef.stackable = true;\n break;\n }\n case 22004: {\n itemDef.groundModelId = 46379;\n itemDef.maleEquipt = 46380;\n itemDef.femaleEquipt = 46380;\n itemDef.modelZoom = 916;\n itemDef.modelOffset1 = 3;\n itemDef.modelOffset2 = 1;\n itemDef.modelRotation1 = 428;\n itemDef.modelRotation2 = 0;\n itemDef.name = \"Pumpkin Head\";\n itemDef.itemActions = new String[5];\n itemDef.itemActions[1] = \"Wear\";\n itemDef.stackable = false;\n break;\n }\n case 22006: {\n itemDef.groundModelId = 46381;\n itemDef.modelZoom = 880;\n itemDef.modelOffset1 = 2;\n itemDef.modelOffset2 = 1;\n itemDef.modelRotation1 = 440;\n itemDef.modelRotation2 = 0;\n itemDef.name = \"Halloween Candy\";\n itemDef.itemActions = new String[5];\n itemDef.itemActions[0] = \"Eat\";\n itemDef.stackable = true;\n break;\n }\n case 22008: {\n itemDef.groundModelId = 46382;\n itemDef.modelZoom = 1388;\n itemDef.modelOffset1 = 0;\n itemDef.modelOffset2 = -3;\n itemDef.modelRotation1 = 521;\n itemDef.modelRotation2 = 50;\n itemDef.name = \"Halloween Candy\";\n itemDef.itemActions = new String[5];\n itemDef.itemActions[0] = \"Eat\";\n itemDef.stackable = true;\n break;\n }\n case 22010: {\n itemDef.groundModelId = 46383;\n itemDef.modelZoom = 861;\n itemDef.modelOffset1 = 3;\n itemDef.modelOffset2 = 18;\n itemDef.modelRotation1 = 323;\n itemDef.modelRotation2 = 0;\n itemDef.name = \"Halloween Candy\";\n itemDef.itemActions = new String[5];\n itemDef.itemActions[0] = \"Eat\";\n itemDef.stackable = true;\n break;\n }\n case 22012: {\n itemDef.groundModelId = 46384;\n itemDef.modelZoom = 1195;\n itemDef.modelOffset1 = 0;\n itemDef.modelOffset2 = 0;\n itemDef.modelRotation1 = 450;\n itemDef.modelRotation2 = 0;\n itemDef.name = \"Halloween Candy\";\n itemDef.itemActions = new String[5];\n itemDef.itemActions[0] = \"Eat\";\n itemDef.stackable = true;\n break;\n }\n case 22014: {\n itemDef.groundModelId = 46385;\n itemDef.modelZoom = 1481;\n itemDef.modelOffset1 = 3;\n itemDef.modelOffset2 = -12;\n itemDef.modelRotation1 = 408;\n itemDef.modelRotation2 = 0;\n itemDef.name = \"Halloween Candy\";\n itemDef.itemActions = new String[5];\n itemDef.itemActions[0] = \"Eat\";\n itemDef.stackable = true;\n break;\n }\n case 22016: {\n itemDef.groundModelId = 46386;\n itemDef.modelZoom = 1195;\n itemDef.modelOffset1 = 0;\n itemDef.modelOffset2 = 0;\n itemDef.modelRotation1 = 525;\n itemDef.modelRotation2 = 5;\n itemDef.name = \"Halloween Candy\";\n itemDef.itemActions = new String[5];\n itemDef.itemActions[0] = \"Eat\";\n itemDef.stackable = true;\n break;\n }\n case 22018: {\n itemDef.groundModelId = 46387;\n itemDef.modelZoom = 1030;\n itemDef.modelOffset1 = -4;\n itemDef.modelOffset2 = 4;\n itemDef.modelRotation1 = 595;\n itemDef.modelRotation2 = 125;\n itemDef.name = \"Voucher of Good Taste\";\n itemDef.itemActions = new String[5];\n itemDef.stackable = true;\n break;\n }\n case 22020: {\n itemDef.groundModelId = 46388;\n itemDef.modelZoom = 1174;\n itemDef.modelOffset1 = 0;\n itemDef.modelOffset2 = 7;\n itemDef.modelRotation1 = 401;\n itemDef.modelRotation2 = 0;\n itemDef.name = \"Voucher of Bad Taste\";\n itemDef.itemActions = new String[5];\n itemDef.stackable = true;\n break;\n }\n case 22022: {\n itemDef.groundModelId = 46389;\n itemDef.modelZoom = 1950;\n itemDef.modelOffset1 = 0;\n itemDef.modelOffset2 = 0;\n itemDef.modelRotation1 = 390;\n itemDef.modelRotation2 = 0;\n itemDef.name = \"Party Invitation\";\n itemDef.itemActions = new String[5];\n itemDef.itemActions[0] = \"Read\";\n itemDef.stackable = false;\n break;\n }\n case 22024: {\n itemDef.groundModelId = 46390;\n itemDef.modelZoom = 1470;\n itemDef.modelOffset1 = -2;\n itemDef.modelOffset2 = 63;\n itemDef.modelRotation1 = 268;\n itemDef.modelRotation2 = 1964;\n itemDef.name = \"Pumpkin\";\n itemDef.itemActions = new String[5];\n itemDef.stackable = true;\n break;\n }\n case 22026: {\n itemDef.groundModelId = 46391;\n itemDef.modelZoom = 1140;\n itemDef.modelOffset1 = 3;\n itemDef.modelOffset2 = 4;\n itemDef.modelRotation1 = 336;\n itemDef.modelRotation2 = 131;\n itemDef.name = \"Halloween Token Box\";\n itemDef.itemActions = new String[5];\n itemDef.itemActions[0] = \"Open\";\n itemDef.stackable = false;\n break;\n }\n case 22028: {\n itemDef.groundModelId = 46392;\n itemDef.modelZoom = 730;\n itemDef.modelOffset1 = 3;\n itemDef.modelOffset2 = 2;\n itemDef.modelRotation1 = 358;\n itemDef.modelRotation2 = 1949;\n itemDef.name = \"Halloween Token\";\n itemDef.itemActions = new String[5];\n itemDef.stackable = true;\n break;\n }\n case 22030: {\n itemDef.groundModelId = 46393;\n itemDef.modelZoom = 1390;\n itemDef.modelOffset1 = 4;\n itemDef.modelOffset2 = -10;\n itemDef.modelRotation1 = 191;\n itemDef.modelRotation2 = 76;\n itemDef.name = \"Basket of Candies\";\n itemDef.itemActions = new String[5];\n itemDef.itemActions[0] = \"Check\";\n itemDef.stackable = false;\n break;\n }\n case 22032: {\n itemDef.groundModelId = 46394;\n itemDef.maleEquipt = 46395;\n itemDef.femaleEquipt = 46395;\n itemDef.modelZoom = 755;\n itemDef.modelOffset1 = 8;\n itemDef.modelOffset2 = 11;\n itemDef.modelRotation1 = 426;\n itemDef.modelRotation2 = 196;\n itemDef.name = \"Ghost Mask\";\n itemDef.itemActions = new String[5];\n itemDef.itemActions[1] = \"Wear\";\n itemDef.stackable = false;\n break;\n }\n case 22034: {\n itemDef.groundModelId = 46396;\n itemDef.maleEquipt = 46397;\n itemDef.femaleEquipt = 46397;\n itemDef.modelZoom = 580;\n itemDef.modelOffset1 = 0;\n itemDef.modelOffset2 = 7;\n itemDef.modelRotation1 = 331;\n itemDef.modelRotation2 = 226;\n itemDef.name = \"Jason Mask\";\n itemDef.itemActions = new String[5];\n itemDef.itemActions[1] = \"Wear\";\n itemDef.stackable = false;\n break;\n }\n case 22036: {\n itemDef.groundModelId = 46398;\n itemDef.maleEquipt = 46399;\n itemDef.femaleEquipt = 46399;\n itemDef.modelZoom = 700;\n itemDef.modelOffset1 = 2;\n itemDef.modelOffset2 = 6;\n itemDef.modelRotation1 = 396;\n itemDef.modelRotation2 = 160;\n itemDef.name = \"Scream Mask\";\n itemDef.itemActions = new String[5];\n itemDef.itemActions[1] = \"Wear\";\n itemDef.stackable = false;\n break;\n }\n case 22038: {\n itemDef.groundModelId = 46400;\n itemDef.maleEquipt = 46401;\n itemDef.femaleEquipt = 46401;\n itemDef.modelZoom = 975;\n itemDef.modelOffset1 = 9;\n itemDef.modelOffset2 = 7;\n itemDef.modelRotation1 = 388;\n itemDef.modelRotation2 = 193;\n itemDef.name = \"Halloween Wizard Hat (R)\";\n itemDef.itemActions = new String[5];\n itemDef.itemActions[1] = \"Wear\";\n itemDef.stackable = false;\n break;\n }\n case 22040: {\n itemDef.groundModelId = 46402;\n itemDef.maleEquipt = 46403;\n itemDef.femaleEquipt = 46403;\n itemDef.modelZoom = 915;\n itemDef.modelOffset1 = 7;\n itemDef.modelOffset2 = 6;\n itemDef.modelRotation1 = 433;\n itemDef.modelRotation2 = 124;\n itemDef.name = \"Halloween Wizard Hat (G)\";\n itemDef.itemActions = new String[5];\n itemDef.itemActions[1] = \"Wear\";\n itemDef.stackable = false;\n break;\n }\n case 22042: {\n itemDef.groundModelId = 46404;\n itemDef.name = \"Pumpkin Pet\";\n itemDef.modelZoom = 2645;\n itemDef.modelOffset1 = 1;\n itemDef.modelOffset2 = -25;\n itemDef.modelRotation1 = 155;\n itemDef.modelRotation2 = 106;\n itemDef.itemActions = new String[5];\n itemDef.itemActions[3] = \"Summon\";\n itemDef.stackable = false;\n break;\n }\n case 21171: {\n itemDef.revisionType = RevisionType.CUSTOM_ITEM_MODELS;\n itemDef.groundModelId = 72;\n itemDef.maleEquipt = 73;\n itemDef.femaleEquipt = 74;\n itemDef.modelZoom = 1200;\n itemDef.modelOffset1 = 0;\n itemDef.modelOffset2 = 3;\n itemDef.modelRotation1 = 0;\n itemDef.modelRotation2 = 135;\n itemDef.name = \"Tyrant Full Helm\";\n itemDef.itemActions = new String[5];\n itemDef.itemActions[1] = \"Wear\";\n itemDef.stackable = false;\n break;\n }\n case 21173: {\n itemDef.revisionType = RevisionType.CUSTOM_ITEM_MODELS;\n itemDef.groundModelId = 75;\n itemDef.maleEquipt = 76;\n itemDef.femaleEquipt = 77;\n itemDef.modelZoom = 1710;\n itemDef.modelOffset1 = 0;\n itemDef.modelOffset2 = 0;\n itemDef.modelRotation1 = 595;\n itemDef.modelRotation2 = 0;\n itemDef.name = \"Tyrant Platebody\";\n itemDef.itemActions = new String[5];\n itemDef.itemActions[1] = \"Wear\";\n itemDef.stackable = false;\n break;\n }\n case 21175: {\n itemDef.revisionType = RevisionType.CUSTOM_ITEM_MODELS;\n itemDef.groundModelId = 78;\n itemDef.maleEquipt = 79;\n itemDef.femaleEquipt = 80;\n itemDef.modelZoom = 2000;\n itemDef.modelOffset1 = 0;\n itemDef.modelOffset2 = 0;\n itemDef.modelRotation1 = 500;\n itemDef.modelRotation2 = 0;\n itemDef.name = \"Tyrant Platelegs\";\n itemDef.itemActions = new String[5];\n itemDef.itemActions[1] = \"Wear\";\n itemDef.stackable = false;\n break;\n }\n case 21177: {\n itemDef.revisionType = RevisionType.CUSTOM_ITEM_MODELS;\n itemDef.groundModelId = 81;\n itemDef.maleEquipt = 82;\n itemDef.femaleEquipt = 83;\n itemDef.modelZoom = 760;\n itemDef.modelOffset1 = 0;\n itemDef.modelOffset2 = 0;\n itemDef.modelRotation1 = 590;\n itemDef.modelRotation2 = 0;\n itemDef.name = \"Tyrant Gloves\";\n itemDef.itemActions = new String[5];\n itemDef.itemActions[1] = \"Wear\";\n itemDef.stackable = false;\n break;\n }\n case 21179: {\n itemDef.revisionType = RevisionType.CUSTOM_ITEM_MODELS;\n itemDef.groundModelId = 84;\n itemDef.maleEquipt = 85;\n itemDef.femaleEquipt = 86;\n itemDef.modelZoom = 635;\n itemDef.modelOffset1 = 0;\n itemDef.modelOffset2 = 0;\n itemDef.modelRotation1 = 110;\n itemDef.modelRotation2 = 180;\n itemDef.name = \"Tyrant Boots\";\n itemDef.itemActions = new String[5];\n itemDef.itemActions[1] = \"Wear\";\n itemDef.stackable = false;\n break;\n }\n case 21181: {\n itemDef.revisionType = RevisionType.CUSTOM_ITEM_MODELS;\n itemDef.groundModelId = 87;\n itemDef.maleEquipt = 88;\n itemDef.femaleEquipt = 88;\n itemDef.modelZoom = 2070;\n itemDef.modelOffset1 = 0;\n itemDef.modelOffset2 = 0;\n itemDef.modelRotation1 = 470;\n itemDef.modelRotation2 = 1015;\n itemDef.name = \"Tyrant Cape\";\n itemDef.itemActions = new String[5];\n itemDef.itemActions[1] = \"Wear\";\n itemDef.stackable = false;\n break;\n }\n case 21161: {\n itemDef.groundModelId = 46358;\n itemDef.maleEquipt = 46359;\n itemDef.femaleEquipt = 46359;\n itemDef.name = \"LALA Axe\";\n itemDef.description = \"LALA Axe.\";\n itemDef.itemActions = new String[5];\n itemDef.itemActions[1] = \"Wear\";\n itemDef.stackable = false;\n break;\n }\n case 21153: {\n itemDef.groundModelId = 46356;\n itemDef.name = \"Extreme Donator Sword\";\n itemDef.description = \"A Extreme Donator Sword.\";\n itemDef.maleEquipt = 46357;\n itemDef.femaleEquipt = 46357;\n itemDef.modelZoom = 1785;\n itemDef.modelOffset1 = 2;\n itemDef.modelOffset2 = 0;\n itemDef.modelRotation1 = 560;\n itemDef.modelRotation2 = 0;\n itemDef.itemActions = new String[5];\n itemDef.itemActions[1] = \"Wear\";\n itemDef.stackable = false;\n break;\n }\n case 21010: {\n itemDef.groundModelId = 29216;\n itemDef.name = \"Zeus's Lightning Bolt\";\n itemDef.description = \"The Weapon Of The Gods!\";\n itemDef.maleEquipt = 29217;\n itemDef.femaleEquipt = 29217;\n itemDef.modelZoom = 750;\n itemDef.modelOffset1 = 0;\n itemDef.modelOffset2 = 3;\n itemDef.modelRotation1 = 488;\n itemDef.modelRotation2 = 600;\n itemDef.itemActions = new String[5];\n itemDef.itemActions[1] = \"Wear\";\n itemDef.stackable = true;\n break;\n }\n case 21001: {\n itemDef.groundModelId = 46336;\n itemDef.name = \"Diablo Sword\";\n itemDef.description = \"A Diablo sword!.\";\n itemDef.maleEquipt = 46337;\n itemDef.femaleEquipt = 46337;\n itemDef.modelOffset1 = 0;\n itemDef.modelOffset2 = 0;\n itemDef.itemActions = new String[5];\n itemDef.itemActions[1] = \"Wear\";\n itemDef.stackable = false;\n break;\n }\n case 21003: {\n itemDef.groundModelId = 46338;\n itemDef.name = \"Diablo Shield\";\n itemDef.description = \"A Diablo shield!.\";\n itemDef.maleEquipt = 46339;\n itemDef.femaleEquipt = 46339;\n itemDef.modelOffset1 = 0;\n itemDef.modelOffset2 = 0;\n itemDef.modelRotation1 = 575;\n itemDef.modelRotation2 = 0;\n itemDef.itemActions = new String[5];\n itemDef.itemActions[1] = \"Wear\";\n itemDef.stackable = false;\n break;\n }\n case 21005: {\n itemDef.groundModelId = 46340;\n itemDef.name = \"Diablo Bow\";\n itemDef.description = \"A Diablo bow!.\";\n itemDef.maleEquipt = 46341;\n itemDef.femaleEquipt = 46341;\n itemDef.modelOffset1 = 0;\n itemDef.modelOffset2 = 0;\n itemDef.itemActions = new String[5];\n itemDef.itemActions[1] = \"Wear\";\n itemDef.stackable = false;\n break;\n }\n case 21007: {\n itemDef.groundModelId = 46342;\n itemDef.name = \"Diablo Wings\";\n itemDef.description = \"A Diablo wings!.\";\n itemDef.maleEquipt = 46343;\n itemDef.femaleEquipt = 46343;\n itemDef.modelOffset1 = 0;\n itemDef.modelOffset2 = 0;\n itemDef.modelRotation1 = 450;\n itemDef.modelRotation2 = 0;\n itemDef.itemActions = new String[5];\n itemDef.itemActions[1] = \"Wear\";\n itemDef.stackable = false;\n break;\n }\n case 21009: {\n itemDef.groundModelId = 46344;\n itemDef.name = \"Blood Edge Sword\";\n itemDef.description = \"A Blood's Edge sword!.\";\n itemDef.modelZoom = 1750;\n itemDef.maleEquipt = 46345;\n itemDef.femaleEquipt = 46345;\n itemDef.modelOffset1 = 0;\n itemDef.modelOffset2 = 0;\n itemDef.modelRotation1 = 1575;\n itemDef.modelRotation2 = 1040;\n itemDef.itemActions = new String[5];\n itemDef.itemActions[1] = \"Wear\";\n itemDef.stackable = false;\n break;\n }\n case 21011: {\n itemDef.groundModelId = 46346;\n itemDef.name = \"HellSlayer Sword\";\n itemDef.description = \"A HellSlayer sword!.\";\n itemDef.modelZoom = 2550;\n itemDef.maleEquipt = 46347;\n itemDef.femaleEquipt = 46347;\n itemDef.modelOffset1 = 0;\n itemDef.modelOffset2 = 0;\n itemDef.modelRotation1 = 1630;\n itemDef.modelRotation2 = 0;\n itemDef.itemActions = new String[5];\n itemDef.itemActions[1] = \"Wear\";\n itemDef.stackable = false;\n break;\n }\n case 21013: {\n itemDef.groundModelId = 46348;\n itemDef.name = \"Equilibrium Sword [T1]\";\n itemDef.description = \"A Equilibrium sword.\";\n itemDef.modelZoom = 1750;\n itemDef.maleEquipt = 46349;\n itemDef.femaleEquipt = 46349;\n itemDef.modelOffset1 = 0;\n itemDef.modelOffset2 = 0;\n itemDef.modelRotation1 = 1575;\n itemDef.modelRotation2 = 1040;\n itemDef.itemActions = new String[5];\n itemDef.itemActions[1] = \"Wear\";\n itemDef.stackable = false;\n break;\n }\n case 21015: {\n itemDef.groundModelId = 46350;\n itemDef.name = \"Equilibrium Shield [T1]\";\n itemDef.description = \"A Equilibrium shield!.\";\n itemDef.modelZoom = 1930;\n itemDef.maleEquipt = 46351;\n itemDef.femaleEquipt = 46351;\n itemDef.modelOffset1 = 0;\n itemDef.modelOffset2 = 0;\n itemDef.modelRotation1 = 425;\n itemDef.modelRotation2 = 0;\n itemDef.itemActions = new String[5];\n itemDef.itemActions[1] = \"Wear\";\n itemDef.stackable = false;\n break;\n }\n case 21017: {\n itemDef.groundModelId = 46352;\n itemDef.name = \"Equilibrium Sword [T2]\";\n itemDef.description = \"A Equilibrium sword.\";\n itemDef.modelZoom = 1750;\n itemDef.maleEquipt = 46353;\n itemDef.femaleEquipt = 46353;\n itemDef.modelOffset1 = 0;\n itemDef.modelOffset2 = 0;\n itemDef.modelRotation1 = 550;\n itemDef.modelRotation2 = 500;\n itemDef.itemActions = new String[5];\n itemDef.itemActions[1] = \"Wear\";\n itemDef.stackable = false;\n break;\n }\n case 21019: {\n itemDef.groundModelId = 46354;\n itemDef.name = \"Equilibrium Shield [T2]\";\n itemDef.description = \"A Equilibrium shield!.\";\n itemDef.modelZoom = 1880;\n itemDef.maleEquipt = 46355;\n itemDef.femaleEquipt = 46355;\n itemDef.modelOffset1 = 0;\n itemDef.modelOffset2 = 0;\n itemDef.modelRotation1 = 550;\n itemDef.modelRotation2 = 0;\n itemDef.itemActions = new String[5];\n itemDef.itemActions[1] = \"Wear\";\n itemDef.stackable = false;\n break;\n }\n case 21151: {\n itemDef.groundModelId = 50025;\n itemDef.name = \"Diablo pet\";\n itemDef.description = \"A Diablo pet!.\";\n itemDef.modelZoom = 9000;\n itemDef.modelRotation1 = 0;\n itemDef.modelRotation2 = 0;\n itemDef.modelOffset1 = 0;\n itemDef.modelOffset2 = 0;\n itemDef.itemActions = new String[5];\n itemDef.itemActions[3] = \"Summon\";\n itemDef.itemActions[4] = \"Drop\";\n itemDef.stackable = false;\n break;\n }\n case 21152: {\n itemDef.groundModelId = 57393;\n itemDef.name = \"Zeus pet\";\n itemDef.description = \"A Zeus pet!.\";\n itemDef.modelZoom = 3000;\n itemDef.modelRotation1 = 0;\n itemDef.modelRotation2 = 0;\n itemDef.modelOffset1 = 0;\n itemDef.modelOffset2 = 0;\n itemDef.itemActions = new String[5];\n itemDef.itemActions[3] = \"Summon\";\n itemDef.itemActions[4] = \"Drop\";\n itemDef.stackable = false;\n break;\n }\n case 20191: {\n itemDef.name = \"Phantom helm\";\n itemDef.itemActions = new String[5];\n itemDef.itemActions[1] = \"Wear\";\n itemDef.groundModelId = 46327;\n itemDef.maleEquipt = 46328;\n itemDef.femaleEquipt = 46329;\n itemDef.modelZoom = 1000;\n itemDef.modelRotation1 = 0;\n itemDef.modelRotation2 = 1750;\n itemDef.stackable = false;\n itemDef.modelOffset1 = 0;\n itemDef.modelOffset2 = 0;\n itemDef.certID = -1;\n itemDef.certTemplateID = -1;\n break;\n }\n case 20193: {\n itemDef.name = \"Phantom platebody\";\n itemDef.itemActions = new String[5];\n itemDef.itemActions[1] = \"Wear\";\n itemDef.groundModelId = 46330;\n itemDef.maleEquipt = 46331;\n itemDef.femaleEquipt = 46332;\n itemDef.modelZoom = 1500;\n itemDef.modelRotation1 = 500;\n itemDef.modelRotation2 = 0;\n itemDef.stackable = false;\n itemDef.modelOffset1 = 0;\n itemDef.modelOffset2 = 0;\n itemDef.certID = -1;\n itemDef.certTemplateID = -1;\n break;\n }\n case 20195: {\n itemDef.name = \"Phantom platelegs\";\n itemDef.itemActions = new String[5];\n itemDef.itemActions[1] = \"Wear\";\n itemDef.groundModelId = 46333;\n itemDef.maleEquipt = 46334;\n itemDef.femaleEquipt = 46335;\n itemDef.modelZoom = 1750;\n itemDef.modelRotation1 = 500;\n itemDef.modelRotation2 = 0;\n itemDef.stackable = false;\n itemDef.modelOffset1 = 0;\n itemDef.modelOffset2 = 0;\n itemDef.certID = -1;\n itemDef.certTemplateID = -1;\n break;\n }\n case 20185: {\n itemDef.name = \"Elite full helm\";\n itemDef.itemActions = new String[5];\n itemDef.itemActions[1] = \"Wear\";\n itemDef.groundModelId = 46318;\n itemDef.maleEquipt = 46319;\n itemDef.femaleEquipt = 46320;\n itemDef.modelZoom = 1000;\n itemDef.modelRotation1 = 0;\n itemDef.modelRotation2 = 1750;\n itemDef.stackable = false;\n itemDef.modelOffset1 = 0;\n itemDef.modelOffset2 = 0;\n itemDef.certID = -1;\n itemDef.certTemplateID = -1;\n break;\n }\n case 20187: {\n itemDef.name = \"Elite platebody\";\n itemDef.itemActions = new String[5];\n itemDef.itemActions[1] = \"Wear\";\n itemDef.groundModelId = 46321;\n itemDef.maleEquipt = 46322;\n itemDef.femaleEquipt = 46323;\n itemDef.modelZoom = 1500;\n itemDef.modelRotation1 = 500;\n itemDef.modelRotation2 = 0;\n itemDef.stackable = false;\n itemDef.modelOffset1 = 0;\n itemDef.modelOffset2 = 0;\n itemDef.certID = -1;\n itemDef.certTemplateID = -1;\n break;\n }\n case 20189: {\n itemDef.name = \"Elite platelegs\";\n itemDef.itemActions = new String[5];\n itemDef.itemActions[1] = \"Wear\";\n itemDef.groundModelId = 46324;\n itemDef.maleEquipt = 46325;\n itemDef.femaleEquipt = 46326;\n itemDef.modelZoom = 1750;\n itemDef.modelRotation1 = 500;\n itemDef.modelRotation2 = 0;\n itemDef.stackable = false;\n itemDef.modelOffset1 = 0;\n itemDef.modelOffset2 = 0;\n itemDef.certID = -1;\n itemDef.certTemplateID = -1;\n break;\n }\n case 20197: {\n itemDef.name = \"K'ril Tsutsaroth Cape\";\n itemDef.itemActions = new String[5];\n itemDef.itemActions[1] = \"Wear\";\n itemDef.groundModelId = 46316;\n itemDef.maleEquipt = 46317;\n itemDef.femaleEquipt = 46317;\n itemDef.modelZoom = 1000;\n itemDef.modelRotation1 = 0;\n itemDef.modelRotation2 = 0;\n itemDef.stackable = false;\n itemDef.modelOffset1 = 0;\n itemDef.modelOffset2 = 0;\n itemDef.certID = -1;\n itemDef.certTemplateID = -1;\n break;\n }\n case 20155: {\n itemDef.name = \"Elite full helm\";\n itemDef.itemActions = new String[5];\n itemDef.itemActions[1] = \"Wear\";\n itemDef.groundModelId = 46280;\n itemDef.maleEquipt = 46283;\n itemDef.femaleEquipt = 46286;\n itemDef.modelZoom = 1000;\n itemDef.modelRotation1 = 0;\n itemDef.modelRotation2 = 1750;\n itemDef.stackable = false;\n itemDef.modelOffset1 = 0;\n itemDef.modelOffset2 = 0;\n break;\n }\n case 20157: {\n itemDef.name = \"Elite platebody\";\n itemDef.itemActions = new String[5];\n itemDef.itemActions[1] = \"Wear\";\n itemDef.groundModelId = 46281;\n itemDef.maleEquipt = 46284;\n itemDef.femaleEquipt = 46287;\n itemDef.modelZoom = 1500;\n itemDef.modelRotation1 = 500;\n itemDef.modelRotation2 = 0;\n itemDef.stackable = false;\n itemDef.modelOffset1 = 0;\n itemDef.modelOffset2 = 0;\n break;\n }\n case 20159: {\n itemDef.name = \"Elite platelegs\";\n itemDef.itemActions = new String[5];\n itemDef.itemActions[1] = \"Wear\";\n itemDef.groundModelId = 46282;\n itemDef.maleEquipt = 46285;\n itemDef.femaleEquipt = 46288;\n itemDef.modelZoom = 1750;\n itemDef.modelRotation1 = 500;\n itemDef.modelRotation2 = 0;\n itemDef.stackable = false;\n itemDef.modelOffset1 = 0;\n itemDef.modelOffset2 = 0;\n break;\n }\n case 20161: {\n itemDef.name = \"Elite full helm\";\n itemDef.itemActions = new String[5];\n itemDef.itemActions[1] = \"Wear\";\n itemDef.groundModelId = 46238;\n itemDef.maleEquipt = 46241;\n itemDef.femaleEquipt = 46244;\n itemDef.modelZoom = 1000;\n itemDef.modelRotation1 = 0;\n itemDef.modelRotation2 = 1750;\n itemDef.stackable = false;\n itemDef.modelOffset1 = 0;\n itemDef.modelOffset2 = 0;\n break;\n }\n case 20163: {\n itemDef.name = \"Elite platebody\";\n itemDef.itemActions = new String[5];\n itemDef.itemActions[1] = \"Wear\";\n itemDef.groundModelId = 46239;\n itemDef.maleEquipt = 46242;\n itemDef.femaleEquipt = 46245;\n itemDef.modelZoom = 1500;\n itemDef.modelRotation1 = 500;\n itemDef.modelRotation2 = 0;\n itemDef.stackable = false;\n itemDef.modelOffset1 = 0;\n itemDef.modelOffset2 = 0;\n break;\n }\n case 20165: {\n itemDef.name = \"Elite platelegs\";\n itemDef.itemActions = new String[5];\n itemDef.itemActions[1] = \"Wear\";\n itemDef.groundModelId = 46240;\n itemDef.maleEquipt = 46243;\n itemDef.femaleEquipt = 46246;\n itemDef.modelZoom = 1750;\n itemDef.modelRotation1 = 500;\n itemDef.modelRotation2 = 0;\n itemDef.stackable = false;\n itemDef.modelOffset1 = 0;\n itemDef.modelOffset2 = 0;\n break;\n }\n case 20167: {\n itemDef.name = \"Elite full helm\";\n itemDef.itemActions = new String[5];\n itemDef.itemActions[1] = \"Wear\";\n itemDef.groundModelId = 46289;\n itemDef.maleEquipt = 46292;\n itemDef.femaleEquipt = 46295;\n itemDef.modelZoom = 1000;\n itemDef.modelRotation1 = 0;\n itemDef.modelRotation2 = 1750;\n itemDef.stackable = false;\n itemDef.modelOffset1 = 0;\n itemDef.modelOffset2 = 0;\n break;\n }\n case 20169: {\n itemDef.name = \"Elite platebody\";\n itemDef.itemActions = new String[5];\n itemDef.itemActions[1] = \"Wear\";\n itemDef.groundModelId = 46290;\n itemDef.maleEquipt = 46293;\n itemDef.femaleEquipt = 46296;\n itemDef.modelZoom = 1500;\n itemDef.modelRotation1 = 500;\n itemDef.modelRotation2 = 0;\n itemDef.stackable = false;\n itemDef.modelOffset1 = 0;\n itemDef.modelOffset2 = 0;\n break;\n }\n case 20171: {\n itemDef.name = \"Elite platelegs\";\n itemDef.itemActions = new String[5];\n itemDef.itemActions[1] = \"Wear\";\n itemDef.groundModelId = 46291;\n itemDef.maleEquipt = 46294;\n itemDef.femaleEquipt = 46297;\n itemDef.modelZoom = 1750;\n itemDef.modelRotation1 = 500;\n itemDef.modelRotation2 = 0;\n itemDef.stackable = false;\n itemDef.modelOffset1 = 0;\n itemDef.modelOffset2 = 0;\n break;\n }\n case 20173: {\n itemDef.name = \"Elite full helm\";\n itemDef.itemActions = new String[5];\n itemDef.itemActions[1] = \"Wear\";\n itemDef.groundModelId = 46298;\n itemDef.maleEquipt = 46301;\n itemDef.femaleEquipt = 46304;\n itemDef.modelZoom = 1000;\n itemDef.modelRotation1 = 0;\n itemDef.modelRotation2 = 1750;\n itemDef.stackable = false;\n itemDef.modelOffset1 = 0;\n itemDef.modelOffset2 = 0;\n break;\n }\n case 20175: {\n itemDef.name = \"Elite platebody\";\n itemDef.itemActions = new String[5];\n itemDef.itemActions[1] = \"Wear\";\n itemDef.groundModelId = 46299;\n itemDef.maleEquipt = 46302;\n itemDef.femaleEquipt = 46305;\n itemDef.modelZoom = 1500;\n itemDef.modelRotation1 = 500;\n itemDef.modelRotation2 = 0;\n itemDef.stackable = false;\n itemDef.modelOffset1 = 0;\n itemDef.modelOffset2 = 0;\n break;\n }\n case 20177: {\n itemDef.name = \"Elite platelegs\";\n itemDef.itemActions = new String[5];\n itemDef.itemActions[1] = \"Wear\";\n itemDef.groundModelId = 46300;\n itemDef.maleEquipt = 46303;\n itemDef.femaleEquipt = 46306;\n itemDef.modelZoom = 1750;\n itemDef.modelRotation1 = 500;\n itemDef.modelRotation2 = 0;\n itemDef.stackable = false;\n itemDef.modelOffset1 = 0;\n itemDef.modelOffset2 = 0;\n break;\n }\n case 20179: {\n itemDef.name = \"Elite full helm\";\n itemDef.itemActions = new String[5];\n itemDef.itemActions[1] = \"Wear\";\n itemDef.groundModelId = 46307;\n itemDef.maleEquipt = 46310;\n itemDef.femaleEquipt = 46313;\n itemDef.modelZoom = 1000;\n itemDef.modelRotation1 = 0;\n itemDef.modelRotation2 = 1750;\n itemDef.stackable = false;\n itemDef.modelOffset1 = 0;\n itemDef.modelOffset2 = 0;\n break;\n }\n case 20181: {\n itemDef.name = \"Elite platebody\";\n itemDef.itemActions = new String[5];\n itemDef.itemActions[1] = \"Wear\";\n itemDef.groundModelId = 46308;\n itemDef.maleEquipt = 46311;\n itemDef.femaleEquipt = 46314;\n itemDef.modelZoom = 1500;\n itemDef.modelRotation1 = 500;\n itemDef.modelRotation2 = 0;\n itemDef.stackable = false;\n itemDef.modelOffset1 = 0;\n itemDef.modelOffset2 = 0;\n break;\n }\n case 20183: {\n itemDef.name = \"Elite platelegs\";\n itemDef.itemActions = new String[5];\n itemDef.itemActions[1] = \"Wear\";\n itemDef.groundModelId = 46309;\n itemDef.maleEquipt = 46312;\n itemDef.femaleEquipt = 46315;\n itemDef.modelZoom = 1750;\n itemDef.modelRotation1 = 500;\n itemDef.modelRotation2 = 0;\n itemDef.stackable = false;\n itemDef.modelOffset1 = 0;\n itemDef.modelOffset2 = 0;\n itemDef.certID = -1;\n itemDef.certTemplateID = -1;\n break;\n }\n case 20143: {\n itemDef.name = \"QBD Helm\";\n itemDef.revisionType = RevisionType.CUSTOM_ITEM_MODELS;\n itemDef.itemActions = new String[5];\n itemDef.itemActions[1] = \"Wear\";\n itemDef.groundModelId = 54;\n itemDef.maleEquipt = 55;\n itemDef.femaleEquipt = 56;\n itemDef.modelRotation1 = 0;\n itemDef.modelRotation2 = 1750;\n itemDef.modelZoom = 750;\n itemDef.modelOffset1 = 0;\n itemDef.modelOffset2 = 0;\n break;\n }\n case 20145: {\n itemDef.name = \"QBD Body\";\n itemDef.revisionType = RevisionType.CUSTOM_ITEM_MODELS;\n itemDef.itemActions = new String[5];\n itemDef.itemActions[1] = \"Wear\";\n itemDef.groundModelId = 57;\n itemDef.maleEquipt = 58;\n itemDef.femaleEquipt = 59;\n itemDef.modelZoom = 1250;\n itemDef.modelOffset1 = 0;\n itemDef.modelOffset2 = 0;\n break;\n }\n case 20147: {\n itemDef.name = \"QBD Legs\";\n itemDef.revisionType = RevisionType.CUSTOM_ITEM_MODELS;\n itemDef.itemActions = new String[5];\n itemDef.itemActions[1] = \"Wear\";\n itemDef.groundModelId = 60;\n itemDef.maleEquipt = 61;\n itemDef.femaleEquipt = 62;\n itemDef.modelZoom = 1750;\n itemDef.modelOffset1 = 0;\n itemDef.modelOffset2 = 0;\n break;\n }\n case 20149: {\n itemDef.name = \"QBD Gloves\";\n itemDef.revisionType = RevisionType.CUSTOM_ITEM_MODELS;\n itemDef.itemActions = new String[5];\n itemDef.itemActions[1] = \"Wear\";\n itemDef.groundModelId = 63;\n itemDef.maleEquipt = 64;\n itemDef.femaleEquipt = 65;\n itemDef.modelOffset1 = 0;\n itemDef.modelOffset2 = 0;\n break;\n }\n case 20151: {\n itemDef.name = \"QBD Boots\";\n itemDef.revisionType = RevisionType.CUSTOM_ITEM_MODELS;\n itemDef.itemActions = new String[5];\n itemDef.itemActions[1] = \"Wear\";\n itemDef.groundModelId = 66;\n itemDef.maleEquipt = 67;\n itemDef.femaleEquipt = 68;\n itemDef.modelZoom = 750;\n itemDef.modelOffset1 = 0;\n itemDef.modelOffset2 = 0;\n break;\n }\n case 20153: {\n itemDef.name = \"QBD Wings\";\n itemDef.revisionType = RevisionType.CUSTOM_ITEM_MODELS;\n itemDef.itemActions = new String[5];\n itemDef.itemActions[1] = \"Wear\";\n itemDef.groundModelId = 69;\n itemDef.maleEquipt = 70;\n itemDef.femaleEquipt = 71;\n itemDef.modelZoom = 1000;\n itemDef.modelOffset1 = 0;\n itemDef.modelOffset2 = 0;\n break;\n }\n case 201323: {\n itemDef.name = \"Youtuber Cape\";\n itemDef.itemActions = new String[5];\n itemDef.itemActions[1] = \"Wear\";\n itemDef.groundModelId = 46247;\n itemDef.maleEquipt = 46248;\n itemDef.femaleEquipt = 46248;\n itemDef.stackable = false;\n break;\n }\n case 20135: {\n itemDef.name = \"Helper Cape\";\n itemDef.itemActions = new String[5];\n itemDef.itemActions[1] = \"Wear\";\n itemDef.groundModelId = 46249;\n itemDef.maleEquipt = 46250;\n itemDef.femaleEquipt = 46250;\n itemDef.stackable = false;\n break;\n }\n case 20137: {\n itemDef.name = \"Moderator Cape\";\n itemDef.itemActions = new String[5];\n itemDef.itemActions[1] = \"Wear\";\n itemDef.groundModelId = 46251;\n itemDef.maleEquipt = 46252;\n itemDef.femaleEquipt = 46252;\n itemDef.stackable = false;\n break;\n }\n case 20139: {\n itemDef.name = \"Admin Cape\";\n itemDef.itemActions = new String[5];\n itemDef.itemActions[1] = \"Wear\";\n itemDef.groundModelId = 46253;\n itemDef.maleEquipt = 46254;\n itemDef.femaleEquipt = 46254;\n itemDef.stackable = false;\n break;\n }\n case 20141: {\n itemDef.name = \"Developer Cape\";\n itemDef.itemActions = new String[5];\n itemDef.itemActions[1] = \"Wear\";\n itemDef.groundModelId = 46255;\n itemDef.maleEquipt = 46256;\n itemDef.femaleEquipt = 46256;\n itemDef.stackable = false;\n break;\n }\n case 6542: {\n itemDef.name = \"Requirements Mystery Box\";\n itemDef.description = \"Requirements mystery box.\";\n itemDef.stackable = false;\n break;\n }\n case 19810: {\n itemDef.name = \"NPC Kill Medal [T1]\";\n itemDef.itemActions = new String[5];\n itemDef.itemActions[1] = \"Wear\";\n itemDef.modelZoom = 1550;\n itemDef.modelRotation1 = 500;\n itemDef.modelRotation2 = 0;\n itemDef.groundModelId = 49819;\n itemDef.femaleEquipt = 49814;\n itemDef.maleEquipt = 49814;\n itemDef.description = \"A great honor to have.\";\n itemDef.stackable = false;\n break;\n }\n case 19811: {\n itemDef.name = \"NPC Kill Medal [T2]\";\n itemDef.itemActions = new String[5];\n itemDef.itemActions[1] = \"Wear\";\n itemDef.modelZoom = 2000;\n itemDef.modelRotation1 = 500;\n itemDef.modelRotation2 = 0;\n itemDef.groundModelId = 49820;\n itemDef.femaleEquipt = 49815;\n itemDef.maleEquipt = 49815;\n itemDef.description = \"A great honor to have.\";\n itemDef.stackable = false;\n break;\n }\n case 19812: {\n itemDef.name = \"NPC Kill Medal [T3]\";\n itemDef.itemActions = new String[5];\n itemDef.itemActions[1] = \"Wear\";\n itemDef.modelZoom = 2000;\n itemDef.modelRotation1 = 500;\n itemDef.modelRotation2 = 0;\n itemDef.groundModelId = 49821;\n itemDef.femaleEquipt = 49816;\n itemDef.maleEquipt = 49816;\n itemDef.description = \"A great honor to have.\";\n itemDef.stackable = false;\n break;\n }\n case 19813: {\n itemDef.name = \"NPC Kill Medal [T4]\";\n itemDef.itemActions = new String[5];\n itemDef.itemActions[1] = \"Wear\";\n itemDef.modelZoom = 2000;\n itemDef.modelRotation1 = 500;\n itemDef.modelRotation2 = 0;\n itemDef.groundModelId = 49822;\n itemDef.femaleEquipt = 49817;\n itemDef.maleEquipt = 49817;\n itemDef.description = \"A great honor to have.\";\n itemDef.stackable = false;\n break;\n }\n case 19814: {\n itemDef.name = \"NPC Kill Medal [T5]\";\n itemDef.itemActions = new String[5];\n itemDef.itemActions[1] = \"Wear\";\n itemDef.modelZoom = 2000;\n itemDef.modelRotation1 = 500;\n itemDef.modelRotation2 = 0;\n itemDef.groundModelId = 49823;\n itemDef.femaleEquipt = 49818;\n itemDef.maleEquipt = 49818;\n itemDef.description = \"A great honor to have.\";\n itemDef.stackable = false;\n break;\n }\n case 19815: {\n itemDef.name = \"Nightmare Full Helm\";\n itemDef.itemActions = new String[5];\n itemDef.itemActions[1] = \"Wear\";\n itemDef.modelZoom = 1250;\n itemDef.modelRotation1 = 500;\n itemDef.modelRotation2 = 0;\n itemDef.groundModelId = 49824;\n itemDef.femaleEquipt = 49827;\n itemDef.maleEquipt = 49828;\n itemDef.description = \"A great honor to have.\";\n itemDef.stackable = false;\n break;\n }\n case 19816: {\n itemDef.name = \"Nightmare Platebody\";\n itemDef.itemActions = new String[5];\n itemDef.itemActions[1] = \"Wear\";\n itemDef.modelZoom = 1250;\n itemDef.modelRotation1 = 500;\n itemDef.modelRotation2 = 0;\n itemDef.groundModelId = 49825;\n itemDef.femaleEquipt = 49831;\n itemDef.maleEquipt = 49832;\n itemDef.description = \"A great honor to have.\";\n itemDef.stackable = false;\n break;\n }\n case 19817: {\n itemDef.name = \"Nightmare Platelegs\";\n itemDef.itemActions = new String[5];\n itemDef.itemActions[1] = \"Wear\";\n itemDef.modelZoom = 1250;\n itemDef.modelRotation1 = 500;\n itemDef.modelRotation2 = 0;\n itemDef.groundModelId = 49826;\n itemDef.femaleEquipt = 49831;\n itemDef.maleEquipt = 49832;\n itemDef.description = \"A great honor to have.\";\n itemDef.stackable = false;\n break;\n }\n case 19123: {\n itemDef.itemActions = new String[5];\n itemDef.itemActions[1] = \"Wear\";\n itemDef.description = \"A Cape made from Dandelion flowers.\";\n itemDef.groundModelId = 79240;\n itemDef.femaleEquipt = 79239;\n itemDef.maleEquipt = 79239;\n itemDef.modelZoom = 2128;\n itemDef.modelRotation1 = 504;\n itemDef.modelRotation2 = 0;\n itemDef.modelOffset1 = 0;\n itemDef.modelOffset2 = 1;\n itemDef.groundActions = new String[5];\n itemDef.groundActions[2] = \"Take\";\n itemDef.anInt175 = 14;\n itemDef.anInt197 = 7;\n itemDef.name = \"Dandelion Death Cape\";\n break;\n }\n case 13362: {\n itemDef.groundModelId = 62714;\n itemDef.name = \"Torva full helm\";\n itemDef.description = \"Torva full helm.\";\n itemDef.modelZoom = 672;\n itemDef.modelRotation1 = 85;\n itemDef.modelRotation2 = 1867;\n itemDef.modelOffset1 = 0;\n itemDef.modelOffset2 = -3;\n itemDef.femaleEquipt = 62738;\n itemDef.maleEquipt = 62754;\n itemDef.groundActions = new String[5];\n itemDef.groundActions[2] = \"Take\";\n itemDef.itemActions = new String[5];\n itemDef.itemActions[1] = \"Wear\";\n itemDef.itemActions[2] = \"Check-charges\";\n itemDef.itemActions[4] = \"Drop\";\n break;\n }\n case 19111: {\n itemDef.name = \"TokHaar-Kal\";\n itemDef.value = 60000;\n itemDef.femaleEquipt = 62575;\n itemDef.maleEquipt = 62582;\n itemDef.groundActions = new String[5];\n itemDef.groundActions[2] = \"Take\";\n itemDef.modelOffset1 = -4;\n itemDef.groundModelId = 62592;\n itemDef.stackable = false;\n itemDef.description = \"A cape made of ancient, enchanted rocks.\";\n itemDef.modelZoom = 2086;\n itemDef.itemActions = new String[5];\n itemDef.itemActions[1] = \"Wear\";\n itemDef.itemActions[4] = \"Drop\";\n itemDef.modelOffset2 = 0;\n itemDef.modelRotation1 = 533;\n itemDef.modelRotation2 = 333;\n break;\n }\n case 15651: {\n itemDef.groundModelId = 62820;\n itemDef.name = \"Obsidian boots\";\n itemDef.description = \"Obsidian boots.\";\n itemDef.modelZoom = 676;\n itemDef.modelRotation1 = 63;\n itemDef.modelRotation2 = 106;\n itemDef.modelOffset1 = 5;\n itemDef.modelOffset2 = -1;\n itemDef.femaleEquipt = 62818;\n itemDef.maleEquipt = 62818;\n itemDef.groundActions = new String[5];\n itemDef.groundActions[2] = \"Take\";\n itemDef.itemActions = new String[5];\n itemDef.itemActions[1] = \"Wear\";\n itemDef.itemActions[4] = \"Drop\";\n break;\n }\n case 15653: {\n itemDef.groundModelId = 62825;\n itemDef.name = \"Obsidian gloves\";\n itemDef.description = \"Obsidian Gloves.\";\n itemDef.modelZoom = 548;\n itemDef.modelRotation1 = 618;\n itemDef.modelRotation2 = 1143;\n itemDef.modelOffset1 = 0;\n itemDef.modelOffset2 = -5;\n itemDef.femaleEquipt = 62824;\n itemDef.maleEquipt = 62824;\n itemDef.groundActions = new String[5];\n itemDef.groundActions[2] = \"Take\";\n itemDef.itemActions = new String[5];\n itemDef.itemActions[1] = \"Wear\";\n itemDef.itemActions[4] = \"Drop\";\n break;\n }\n case 15654: {\n itemDef.itemActions = new String[5];\n itemDef.itemActions[1] = \"Wield\";\n itemDef.groundModelId = 62827;\n itemDef.femaleEquipt = 62826;\n itemDef.modelZoom = 1886;\n itemDef.modelRotation1 = 477;\n itemDef.modelRotation2 = 757;\n itemDef.modelOffset1 = 0;\n itemDef.modelOffset2 = 13;\n itemDef.stackable = false;\n itemDef.rdc2 = 304782;\n itemDef.name = \"Evil shield\";\n itemDef.description = \"A Shield said to be able to corrupt even the purest of hearts.\";\n break;\n }\n case 15662: {\n itemDef.groundModelId = 62803;\n itemDef.name = \"Tok-Tkzar Platebody\";\n itemDef.description = \"Tok-Tkzar legs\";\n itemDef.modelZoom = 1358;\n itemDef.modelOffset1 = 2;\n itemDef.modelOffset2 = 6;\n itemDef.modelRotation1 = 539;\n itemDef.modelRotation2 = 0;\n itemDef.femaleEquipt = 62802;\n itemDef.maleEquipt = 62802;\n itemDef.groundActions = new String[5];\n itemDef.groundActions[2] = \"Take\";\n itemDef.itemActions = new String[5];\n itemDef.itemActions[1] = \"Wear\";\n itemDef.itemActions[4] = \"Drop\";\n itemDef.anInt204 = 40;\n itemDef.anInt196 = 30;\n itemDef.anInt184 = 100;\n break;\n }\n case 15656: {\n itemDef.groundModelId = 62805;\n itemDef.name = \"Tok-Tkzar legs\";\n itemDef.description = \"Tok-Tkzar legs\";\n itemDef.modelZoom = 1828;\n itemDef.modelRotation1 = 539;\n itemDef.modelRotation2 = 0;\n itemDef.modelOffset1 = -1;\n itemDef.modelOffset2 = 0;\n itemDef.femaleEquipt = 62804;\n itemDef.maleEquipt = 62804;\n itemDef.groundActions = new String[5];\n itemDef.groundActions[2] = \"Take\";\n itemDef.itemActions = new String[5];\n itemDef.itemActions[1] = \"Wear\";\n itemDef.itemActions[4] = \"Drop\";\n itemDef.anInt204 = 40;\n itemDef.anInt196 = 30;\n itemDef.anInt184 = 100;\n break;\n }\n case 15657: {\n itemDef.groundModelId = 62807;\n itemDef.name = \"Tok-Tkzar cloak\";\n itemDef.description = \"Tok-Tkzar cloak\";\n itemDef.stackable = false;\n itemDef.modelZoom = 2713;\n itemDef.modelOffset1 = 0;\n itemDef.modelOffset2 = 29;\n itemDef.modelRotation1 = 504;\n itemDef.modelRotation2 = 1030;\n itemDef.femaleEquipt = 62806;\n itemDef.maleEquipt = 62806;\n itemDef.itemActions = new String[5];\n itemDef.itemActions[1] = \"Wear\";\n break;\n }\n case 15658: {\n itemDef.groundModelId = 62809;\n itemDef.name = \"Tok-Tkzar boots\";\n itemDef.description = \"Tok-Tkzar boots\";\n itemDef.modelZoom = 676;\n itemDef.modelRotation1 = 63;\n itemDef.modelRotation2 = 106;\n itemDef.modelOffset1 = 5;\n itemDef.modelOffset2 = -1;\n itemDef.femaleEquipt = 62808;\n itemDef.maleEquipt = 62808;\n itemDef.groundActions = new String[5];\n itemDef.groundActions[2] = \"Take\";\n itemDef.itemActions = new String[5];\n itemDef.itemActions[1] = \"Wear\";\n itemDef.itemActions[4] = \"Drop\";\n break;\n }\n case 15659: {\n itemDef.groundModelId = 62811;\n itemDef.name = \"Tok-Tkzar Gloves\";\n itemDef.description = \"Tok-Tkzar Gloves\";\n itemDef.modelZoom = 648;\n itemDef.modelRotation1 = 618;\n itemDef.modelRotation2 = 1143;\n itemDef.modelOffset1 = 0;\n itemDef.modelOffset2 = -5;\n itemDef.femaleEquipt = 62810;\n itemDef.maleEquipt = 62810;\n itemDef.groundActions = new String[5];\n itemDef.groundActions[2] = \"Take\";\n itemDef.itemActions = new String[5];\n itemDef.itemActions[1] = \"Wear\";\n itemDef.itemActions[4] = \"Drop\";\n break;\n }\n case 15660: {\n itemDef.groundModelId = 62813;\n itemDef.name = \"Tok-Tkzar Helm\";\n itemDef.description = \"Tok-Tkzar Helm.\";\n itemDef.modelZoom = 672;\n itemDef.modelRotation1 = 85;\n itemDef.modelRotation2 = 1867;\n itemDef.modelOffset1 = 0;\n itemDef.modelOffset2 = -3;\n itemDef.femaleEquipt = 62812;\n itemDef.maleEquipt = 62812;\n itemDef.groundActions = new String[5];\n itemDef.groundActions[2] = \"Take\";\n itemDef.itemActions = new String[5];\n itemDef.itemActions[1] = \"Morph\";\n itemDef.itemActions[2] = \"Check-charges\";\n itemDef.itemActions[4] = \"Drop\";\n break;\n }\n case 15661: {\n itemDef.groundModelId = 62815;\n itemDef.name = \"Tok-Tkzar Mace\";\n itemDef.description = \"Tok-Tkzar Mace.\";\n itemDef.modelZoom = 1672;\n itemDef.modelRotation1 = 285;\n itemDef.modelRotation2 = 607;\n itemDef.modelOffset1 = 0;\n itemDef.modelOffset2 = -3;\n itemDef.femaleEquipt = 62814;\n itemDef.maleEquipt = 62814;\n itemDef.groundActions = new String[5];\n itemDef.groundActions[2] = \"Take\";\n itemDef.itemActions = new String[5];\n itemDef.itemActions[1] = \"Morph\";\n itemDef.itemActions[2] = \"Check-charges\";\n itemDef.itemActions[4] = \"Drop\";\n break;\n }\n case 16603: {\n itemDef.groundModelId = 62841;\n itemDef.name = \"Max platelegs\";\n itemDef.description = \"Max platelegs\";\n itemDef.modelZoom = 1740;\n itemDef.modelRotation1 = 474;\n itemDef.modelRotation2 = 2045;\n itemDef.modelOffset1 = 0;\n itemDef.modelOffset2 = -5;\n itemDef.femaleEquipt = 62840;\n itemDef.maleEquipt = 62840;\n itemDef.groundActions = new String[5];\n itemDef.groundActions[2] = \"Take\";\n itemDef.itemActions = new String[5];\n itemDef.itemActions[1] = \"Wear\";\n itemDef.itemActions[2] = \"Check-charges\";\n itemDef.itemActions[4] = \"Drop\";\n break;\n }\n case 16604: {\n itemDef.groundModelId = 62843;\n itemDef.name = \"Max boots\";\n itemDef.description = \"Max boots\";\n itemDef.modelZoom = 676;\n itemDef.modelRotation1 = 63;\n itemDef.modelRotation2 = 106;\n itemDef.modelOffset1 = 5;\n itemDef.modelOffset2 = -1;\n itemDef.femaleEquipt = 62842;\n itemDef.maleEquipt = 62842;\n itemDef.groundActions = new String[5];\n itemDef.groundActions[2] = \"Take\";\n itemDef.itemActions = new String[5];\n itemDef.itemActions[1] = \"Wear\";\n itemDef.itemActions[4] = \"Drop\";\n break;\n }\n case 16605: {\n itemDef.groundModelId = 62845;\n itemDef.name = \"Max gloves\";\n itemDef.description = \"Max gloves\";\n itemDef.modelZoom = 548;\n itemDef.modelRotation1 = 618;\n itemDef.modelRotation2 = 1143;\n itemDef.modelOffset1 = 0;\n itemDef.modelOffset2 = -5;\n itemDef.femaleEquipt = 62844;\n itemDef.maleEquipt = 62844;\n itemDef.groundActions = new String[5];\n itemDef.groundActions[2] = \"Take\";\n itemDef.itemActions = new String[5];\n itemDef.itemActions[1] = \"Wear\";\n itemDef.itemActions[4] = \"Drop\";\n break;\n }\n case 16606: {\n itemDef.groundModelId = 62867;\n itemDef.name = \"Max Plate\";\n itemDef.description = \"Max Plate\";\n itemDef.modelZoom = 1506;\n itemDef.modelRotation1 = 473;\n itemDef.modelRotation2 = 2042;\n itemDef.modelOffset1 = 0;\n itemDef.modelOffset2 = 0;\n itemDef.femaleEquipt = 62846;\n itemDef.maleEquipt = 62846;\n itemDef.groundActions = new String[5];\n itemDef.groundActions[2] = \"Take\";\n itemDef.itemActions = new String[5];\n itemDef.itemActions[1] = \"Wear\";\n itemDef.itemActions[2] = \"Check-charges\";\n itemDef.itemActions[4] = \"Drop\";\n break;\n }\n case 16608: {\n itemDef.groundModelId = 62849;\n itemDef.name = \"Max Helm\";\n itemDef.description = \"Max Helm.\";\n itemDef.modelZoom = 672;\n itemDef.modelRotation1 = 85;\n itemDef.modelRotation2 = 1867;\n itemDef.modelOffset1 = 0;\n itemDef.modelOffset2 = -3;\n itemDef.femaleEquipt = 62848;\n itemDef.maleEquipt = 62848;\n itemDef.groundActions = new String[5];\n itemDef.groundActions[2] = \"Take\";\n itemDef.itemActions = new String[5];\n itemDef.itemActions[1] = \"Morph\";\n itemDef.itemActions[2] = \"Check-charges\";\n itemDef.itemActions[4] = \"Drop\";\n break;\n }\n case 16609: {\n itemDef.groundModelId = 62851;\n itemDef.name = \"Max Dual longsword\";\n itemDef.description = \"Max Dual longsword.\";\n itemDef.modelZoom = 1316;\n itemDef.modelRotation1 = 477;\n itemDef.modelRotation2 = 9;\n itemDef.modelOffset1 = 0;\n itemDef.modelOffset2 = 13;\n itemDef.femaleEquipt = 62850;\n itemDef.maleEquipt = 62850;\n itemDef.groundActions = new String[5];\n itemDef.groundActions[2] = \"Take\";\n itemDef.itemActions = new String[5];\n itemDef.itemActions[1] = \"Morph\";\n itemDef.itemActions[2] = \"Check-charges\";\n itemDef.itemActions[4] = \"Drop\";\n break;\n }\n case 16610: {\n itemDef.groundModelId = 62883;\n itemDef.name = \"Corrupt Dragon Fullhelm\";\n itemDef.modelZoom = 980;\n itemDef.description = \"You feel the corruption pulse through you.\";\n itemDef.modelRotation1 = 208;\n itemDef.modelRotation2 = 220;\n itemDef.modelOffset1 = 0;\n itemDef.modelOffset2 = -18;\n itemDef.stackable = false;\n itemDef.femaleEquipt = 62871;\n itemDef.maleEquipt = 62871;\n itemDef.groundActions = new String[5];\n itemDef.groundActions[2] = \"Take\";\n itemDef.itemActions = new String[5];\n itemDef.itemActions[1] = \"Wear\";\n itemDef.itemActions[4] = \"Drop\";\n itemDef.anInt175 = 62730;\n itemDef.anInt197 = 62730;\n break;\n }\n case 16611: {\n itemDef.groundModelId = 62879;\n itemDef.name = \"Corrupt Dragon Plate\";\n itemDef.description = \"You feel the corruption pulse through you\";\n itemDef.modelZoom = 1506;\n itemDef.modelRotation1 = 473;\n itemDef.modelRotation2 = 2042;\n itemDef.modelOffset1 = 0;\n itemDef.stackable = false;\n itemDef.modelOffset2 = 0;\n itemDef.femaleEquipt = 62869;\n itemDef.maleEquipt = 62873;\n itemDef.groundActions = new String[5];\n itemDef.groundActions[2] = \"Take\";\n itemDef.itemActions = new String[5];\n itemDef.itemActions[1] = \"Wear\";\n itemDef.itemActions[2] = \"Check-charges\";\n itemDef.itemActions[4] = \"Drop\";\n break;\n }\n case 16613: {\n itemDef.groundModelId = 62880;\n itemDef.name = \"Corrupt Dragon Platelegs\";\n itemDef.description = \"You feel the corruption pulse through you.\";\n itemDef.modelZoom = 1740;\n itemDef.modelRotation1 = 474;\n itemDef.modelRotation2 = 2045;\n itemDef.modelOffset1 = 0;\n itemDef.stackable = false;\n itemDef.modelOffset2 = -5;\n itemDef.femaleEquipt = 62870;\n itemDef.maleEquipt = 62874;\n itemDef.groundActions = new String[5];\n itemDef.groundActions[2] = \"Take\";\n itemDef.itemActions = new String[5];\n itemDef.itemActions[1] = \"Wear\";\n itemDef.itemActions[2] = \"Check-charges\";\n itemDef.itemActions[4] = \"Drop\";\n break;\n }\n case 16614: {\n itemDef.groundModelId = 62881;\n itemDef.name = \"Corrupt Dragon Gloves\";\n itemDef.description = \"You feel the corruption pulse through you\";\n itemDef.modelZoom = 548;\n itemDef.modelRotation1 = 618;\n itemDef.modelRotation2 = 1143;\n itemDef.modelOffset1 = 0;\n itemDef.stackable = false;\n itemDef.modelOffset2 = -5;\n itemDef.femaleEquipt = 62878;\n itemDef.maleEquipt = 62877;\n itemDef.groundActions = new String[5];\n itemDef.groundActions[2] = \"Take\";\n itemDef.itemActions = new String[5];\n itemDef.itemActions[1] = \"Wear\";\n itemDef.itemActions[4] = \"Drop\";\n break;\n }\n case 16615: {\n itemDef.groundModelId = 62882;\n itemDef.name = \"Corrupt Dragon Boots\";\n itemDef.modelZoom = 676;\n itemDef.description = \"You feel the corruption pulse through you\";\n itemDef.modelRotation1 = 63;\n itemDef.modelRotation2 = 106;\n itemDef.modelOffset1 = 5;\n itemDef.stackable = false;\n itemDef.modelOffset2 = -1;\n itemDef.femaleEquipt = 62872;\n itemDef.maleEquipt = 62876;\n itemDef.groundActions = new String[5];\n itemDef.groundActions[2] = \"Take\";\n itemDef.itemActions = new String[5];\n itemDef.itemActions[1] = \"Wear\";\n itemDef.itemActions[4] = \"Drop\";\n break;\n }\n case 16616: {\n itemDef.groundModelId = 62884;\n itemDef.name = \"Corrupt Dragon wings\";\n itemDef.description = \"Enchanted wings torn from the back of a Corrupt Dragon \";\n itemDef.modelZoom = 850;\n itemDef.modelRotation1 = 252;\n itemDef.modelRotation2 = 1020;\n itemDef.modelOffset1 = -1;\n itemDef.stackable = false;\n itemDef.modelOffset2 = 24;\n itemDef.membersObject = true;\n itemDef.femaleEquipt = 62868;\n itemDef.maleEquipt = 62868;\n itemDef.itemActions = new String[5];\n itemDef.itemActions[1] = \"Wear\";\n break;\n }\n case 17751: {\n itemDef.groundModelId = 62866;\n itemDef.name = \"@red@Corrupt Dragon wings\";\n itemDef.description = \"Enchanted wings torn from the back of a Corrupt Dragon \";\n itemDef.modelZoom = 850;\n itemDef.modelRotation1 = 252;\n itemDef.modelRotation2 = 1020;\n itemDef.modelOffset1 = -1;\n itemDef.modelOffset2 = 24;\n itemDef.stackable = false;\n itemDef.membersObject = true;\n itemDef.femaleEquipt = 62867;\n itemDef.maleEquipt = 62867;\n itemDef.itemActions = new String[5];\n itemDef.itemActions[1] = \"Wear\";\n break;\n }\n case 16618: {\n itemDef.groundModelId = 62778;\n itemDef.name = \"Blood mage hood\";\n itemDef.description = \"Deathy Hood from a lost order of mages.\";\n itemDef.modelZoom = 724;\n itemDef.modelRotation1 = 81;\n itemDef.modelRotation2 = 1670;\n itemDef.modelOffset1 = 0;\n itemDef.modelOffset2 = -4;\n itemDef.femaleEquipt = 62779;\n itemDef.maleEquipt = 62779;\n itemDef.groundActions = new String[5];\n itemDef.groundActions[2] = \"Take\";\n itemDef.itemActions = new String[5];\n itemDef.itemActions[1] = \"Wear\";\n itemDef.itemActions[2] = \"Check-charges\";\n itemDef.itemActions[4] = \"Drop\";\n break;\n }\n case 16619: {\n itemDef.groundModelId = 62787;\n itemDef.name = \"Blood mage robe top\";\n itemDef.description = \"Deathy robe top from a lost order of mages\";\n itemDef.modelZoom = 1513;\n itemDef.modelRotation1 = 566;\n itemDef.modelRotation2 = 0;\n itemDef.modelOffset1 = 1;\n itemDef.modelOffset2 = -8;\n itemDef.femaleEquipt = 62780;\n itemDef.maleEquipt = 62780;\n itemDef.groundActions = new String[5];\n itemDef.groundActions[2] = \"Take\";\n itemDef.itemActions = new String[5];\n itemDef.itemActions[1] = \"Wear\";\n itemDef.itemActions[2] = \"Check-charges\";\n itemDef.itemActions[4] = \"Drop\";\n break;\n }\n case 16620: {\n itemDef.groundModelId = 62781;\n itemDef.name = \"Blood Mage robe bottom \";\n itemDef.description = \"Deathy Hood from a lost order of mages\";\n itemDef.modelZoom = 1550;\n itemDef.modelRotation1 = 344;\n itemDef.modelRotation2 = 186;\n itemDef.modelOffset1 = 5;\n itemDef.modelOffset2 = 11;\n itemDef.femaleEquipt = 62782;\n itemDef.maleEquipt = 62782;\n itemDef.groundActions = new String[5];\n itemDef.groundActions[2] = \"Take\";\n itemDef.itemActions = new String[5];\n itemDef.itemActions[1] = \"Wear\";\n itemDef.itemActions[2] = \"Check-charges\";\n itemDef.itemActions[4] = \"Drop\";\n break;\n }\n case 16621: {\n itemDef.groundModelId = 62785;\n itemDef.name = \"Book of Cataclysm\";\n itemDef.description = \"This book contains the knowledge of generations of powerfull dark mages \";\n itemDef.modelZoom = 850;\n itemDef.modelRotation1 = 252;\n itemDef.modelRotation2 = 1020;\n itemDef.modelOffset1 = -1;\n itemDef.modelOffset2 = 24;\n itemDef.membersObject = true;\n itemDef.femaleEquipt = 62786;\n itemDef.maleEquipt = 62786;\n itemDef.itemActions = new String[5];\n itemDef.itemActions[1] = \"Wear\";\n break;\n }\n case 16623: {\n itemDef.groundModelId = 62783;\n itemDef.name = \"Staff of Sanguine\";\n itemDef.description = \"A powerfull staff able to suck the blood out of its enemies\";\n itemDef.modelZoom = 850;\n itemDef.modelRotation1 = 252;\n itemDef.modelRotation2 = 1020;\n itemDef.modelOffset1 = -1;\n itemDef.modelOffset2 = 24;\n itemDef.stackable = false;\n itemDef.membersObject = true;\n itemDef.femaleEquipt = 62784;\n itemDef.maleEquipt = 62784;\n itemDef.itemActions = new String[5];\n itemDef.itemActions[1] = \"Weild\";\n itemDef.itemActions[2] = \"Check-charges\";\n itemDef.itemActions[4] = \"Drop\";\n break;\n }\n case 16624: {\n itemDef.groundModelId = 62832;\n itemDef.name = \"BeastMaster Plate\";\n itemDef.description = \"BeastMaster Plate.\";\n itemDef.modelZoom = 1506;\n itemDef.modelRotation1 = 473;\n itemDef.modelRotation2 = 2042;\n itemDef.modelOffset1 = 0;\n itemDef.modelOffset2 = 0;\n itemDef.femaleEquipt = 62831;\n itemDef.maleEquipt = 62831;\n itemDef.stackable = false;\n itemDef.groundActions = new String[5];\n itemDef.groundActions[2] = \"Take\";\n itemDef.itemActions = new String[5];\n itemDef.itemActions[1] = \"Wear\";\n itemDef.itemActions[2] = \"Check-charges\";\n itemDef.itemActions[4] = \"Drop\";\n break;\n }\n case 16625: {\n itemDef.groundModelId = 62833;\n itemDef.name = \"BeastMaster platelegs\";\n itemDef.description = \"BeastMaster platelegs.\";\n itemDef.modelZoom = 1740;\n itemDef.modelRotation1 = 474;\n itemDef.modelRotation2 = 2045;\n itemDef.modelOffset1 = 0;\n itemDef.modelOffset2 = -5;\n itemDef.femaleEquipt = 62930;\n itemDef.maleEquipt = 62930;\n itemDef.stackable = false;\n itemDef.groundActions = new String[5];\n itemDef.groundActions[2] = \"Take\";\n itemDef.itemActions = new String[5];\n itemDef.itemActions[1] = \"Wear\";\n itemDef.itemActions[2] = \"Check-charges\";\n itemDef.itemActions[4] = \"Drop\";\n break;\n }\n case 16626: {\n itemDef.groundModelId = 62837;\n itemDef.name = \"BeastMaster boots\";\n itemDef.description = \"BeastMaster boots.\";\n itemDef.modelZoom = 676;\n itemDef.modelRotation1 = 63;\n itemDef.modelRotation2 = 106;\n itemDef.modelOffset1 = 5;\n itemDef.modelOffset2 = -1;\n itemDef.femaleEquipt = 62836;\n itemDef.maleEquipt = 62836;\n itemDef.stackable = false;\n itemDef.groundActions = new String[5];\n itemDef.groundActions[2] = \"Take\";\n itemDef.itemActions = new String[5];\n itemDef.itemActions[1] = \"Wear\";\n itemDef.itemActions[4] = \"Drop\";\n break;\n }\n case 16628: {\n itemDef.groundModelId = 62835;\n itemDef.name = \"BeastMaster helm\";\n itemDef.description = \"BeastMaster helm.\";\n itemDef.modelZoom = 672;\n itemDef.modelOffset1 = 0;\n itemDef.modelOffset2 = -3;\n itemDef.modelRotation1 = 50;\n itemDef.modelRotation2 = 2027;\n itemDef.femaleEquipt = 62834;\n itemDef.maleEquipt = 62834;\n itemDef.stackable = false;\n itemDef.groundActions = new String[5];\n itemDef.groundActions[2] = \"Take\";\n itemDef.itemActions = new String[5];\n itemDef.itemActions[1] = \"Morph\";\n itemDef.itemActions[2] = \"Check-charges\";\n itemDef.itemActions[4] = \"Drop\";\n break;\n }\n case 16629: {\n itemDef.groundModelId = 62839;\n itemDef.name = \"BeastMaster gloves\";\n itemDef.description = \"BeastMaster gloves.\";\n itemDef.modelZoom = 548;\n itemDef.modelRotation1 = 618;\n itemDef.modelRotation2 = 1143;\n itemDef.modelOffset1 = 0;\n itemDef.modelOffset2 = -5;\n itemDef.femaleEquipt = 62838;\n itemDef.maleEquipt = 62838;\n itemDef.groundActions = new String[5];\n itemDef.groundActions[2] = \"Take\";\n itemDef.itemActions = new String[5];\n itemDef.itemActions[1] = \"Wear\";\n itemDef.itemActions[4] = \"Drop\";\n itemDef.stackable = false;\n break;\n }\n case 16630: {\n itemDef.groundModelId = 62771;\n itemDef.name = \"Ares`s full helm\";\n itemDef.description = \"Helm of the war god, Ares.\";\n itemDef.modelZoom = 972;\n itemDef.modelOffset1 = 2;\n itemDef.modelOffset2 = -3;\n itemDef.modelRotation1 = 100;\n itemDef.modelRotation2 = 1667;\n itemDef.femaleEquipt = 62770;\n itemDef.maleEquipt = 62770;\n itemDef.stackable = false;\n itemDef.groundActions = new String[5];\n itemDef.groundActions[2] = \"Take\";\n itemDef.itemActions = new String[5];\n itemDef.itemActions[1] = \"Wear\";\n break;\n }\n case 16631: {\n itemDef.groundModelId = 62773;\n itemDef.name = \"Ares' Platelegs\";\n itemDef.description = \"Platelegs of the war god, Ares.\";\n itemDef.modelZoom = 1740;\n itemDef.modelRotation1 = 474;\n itemDef.modelRotation2 = 2045;\n itemDef.modelOffset1 = 0;\n itemDef.modelOffset2 = -5;\n itemDef.femaleEquipt = 62772;\n itemDef.maleEquipt = 62772;\n itemDef.stackable = false;\n itemDef.groundActions = new String[5];\n itemDef.groundActions[2] = \"Take\";\n itemDef.itemActions = new String[5];\n itemDef.itemActions[1] = \"Wear\";\n break;\n }\n case 16633: {\n itemDef.groundModelId = 62767;\n itemDef.name = \"Ares' Platebody\";\n itemDef.description = \"Platebody of the war god, Ares.\";\n itemDef.modelZoom = 1576;\n itemDef.modelOffset1 = -8;\n itemDef.modelOffset2 = 2;\n itemDef.modelRotation1 = 473;\n itemDef.modelRotation2 = 2042;\n itemDef.femaleEquipt = 62766;\n itemDef.maleEquipt = 62766;\n itemDef.stackable = false;\n itemDef.groundActions = new String[5];\n itemDef.groundActions[2] = \"Take\";\n itemDef.itemActions = new String[5];\n itemDef.itemActions[1] = \"Wear\";\n break;\n }\n case 16634: {\n itemDef.groundModelId = 62829;\n itemDef.name = \"Ares' gloves\";\n itemDef.description = \"Gloves of the war god, Ares.\";\n itemDef.modelZoom = 418;\n itemDef.modelOffset1 = -3;\n itemDef.modelOffset2 = 3;\n itemDef.modelRotation1 = 618;\n itemDef.modelRotation2 = 1143;\n itemDef.femaleEquipt = 62830;\n itemDef.maleEquipt = 62830;\n itemDef.stackable = false;\n itemDef.groundActions = new String[5];\n itemDef.groundActions[2] = \"Take\";\n itemDef.itemActions = new String[5];\n itemDef.itemActions[1] = \"Wear\";\n itemDef.itemActions[4] = \"Drop\";\n break;\n }\n case 16635: {\n itemDef.itemActions = new String[5];\n itemDef.itemActions[1] = \"Wield\";\n itemDef.groundModelId = 62789;\n itemDef.femaleEquipt = 62828;\n itemDef.maleEquipt = 62828;\n itemDef.modelZoom = 1316;\n itemDef.modelRotation1 = 477;\n itemDef.modelRotation2 = 9;\n itemDef.modelOffset1 = 0;\n itemDef.modelOffset2 = 13;\n itemDef.stackable = false;\n itemDef.name = \"Crossbow of Devastation\";\n itemDef.description = \"A Crossbow said to be able to lay waste to entire cities. One of the three Items of armageddon \";\n break;\n }\n case 16636: {\n itemDef.itemActions = new String[5];\n itemDef.itemActions[1] = \"Wield\";\n itemDef.groundModelId = 62777;\n itemDef.femaleEquipt = 62776;\n itemDef.maleEquipt = 62776;\n itemDef.modelZoom = 1316;\n itemDef.modelRotation1 = 477;\n itemDef.modelRotation2 = 9;\n itemDef.modelOffset1 = 0;\n itemDef.modelOffset2 = 13;\n itemDef.stackable = false;\n itemDef.name = \"Spear of Rapture\";\n itemDef.description = \"A Spear said to be able to reap the soul out of a body. One of the three items of armageddon.\";\n break;\n }\n case 16638: {\n itemDef.itemActions = new String[5];\n itemDef.itemActions[1] = \"Wield\";\n itemDef.groundModelId = 62775;\n itemDef.femaleEquipt = 62774;\n itemDef.modelZoom = 1316;\n itemDef.modelRotation1 = 477;\n itemDef.modelRotation2 = 9;\n itemDef.modelOffset1 = 0;\n itemDef.modelOffset2 = 13;\n itemDef.stackable = false;\n itemDef.name = \"Shield of Wrath\";\n itemDef.description = \"A Shield said to be able harness the power of the heavens. One of the three items of armageddon.\";\n break;\n }\n case 16639: {\n itemDef.groundModelId = 78000;\n itemDef.name = \"Knightmare Plate\";\n itemDef.description = \"22222222222222222 \";\n itemDef.modelZoom = 1506;\n itemDef.modelRotation1 = 473;\n itemDef.modelRotation2 = 2042;\n itemDef.modelOffset1 = 0;\n itemDef.modelOffset2 = 0;\n itemDef.femaleEquipt = 78001;\n itemDef.maleEquipt = 78001;\n itemDef.stackable = false;\n itemDef.groundActions = new String[5];\n itemDef.groundActions[2] = \"Take\";\n itemDef.itemActions = new String[5];\n itemDef.itemActions[1] = \"Morph\";\n itemDef.itemActions[2] = \"Check-charges\";\n itemDef.itemActions[4] = \"Drop\";\n break;\n }\n case 16640: {\n itemDef.groundModelId = 78002;\n itemDef.name = \"Knightmare platelegs\";\n itemDef.description = \"2222222222222222222222222.\";\n itemDef.modelZoom = 1740;\n itemDef.modelRotation1 = 474;\n itemDef.modelRotation2 = 2045;\n itemDef.modelOffset1 = 0;\n itemDef.modelOffset2 = -5;\n itemDef.femaleEquipt = 78003;\n itemDef.maleEquipt = 78003;\n itemDef.stackable = false;\n itemDef.groundActions = new String[5];\n itemDef.groundActions[2] = \"Take\";\n itemDef.itemActions = new String[5];\n itemDef.itemActions[1] = \"Wear\";\n itemDef.itemActions[2] = \"Check\";\n itemDef.itemActions[4] = \"Drop\";\n break;\n }\n case 16641: {\n itemDef.groundModelId = 78004;\n itemDef.name = \"Knightmare boots\";\n itemDef.description = \"2222222222222222222222222.\";\n itemDef.modelZoom = 676;\n itemDef.modelRotation1 = 63;\n itemDef.modelRotation2 = 106;\n itemDef.modelOffset1 = 5;\n itemDef.modelOffset2 = -1;\n itemDef.femaleEquipt = 78005;\n itemDef.maleEquipt = 78005;\n itemDef.stackable = false;\n itemDef.groundActions = new String[5];\n itemDef.groundActions[2] = \"Take\";\n itemDef.itemActions = new String[5];\n itemDef.itemActions[1] = \"Wear\";\n itemDef.itemActions[4] = \"Drop\";\n break;\n }\n case 16644: {\n itemDef.groundModelId = 78008;\n itemDef.name = \"Knightmare Helm\";\n itemDef.description = \"2222222222222222222222222.\";\n itemDef.modelZoom = 1172;\n itemDef.modelRotation1 = 85;\n itemDef.modelRotation2 = 1867;\n itemDef.modelOffset1 = 0;\n itemDef.modelOffset2 = -3;\n itemDef.femaleEquipt = 78009;\n itemDef.maleEquipt = 78009;\n itemDef.stackable = false;\n itemDef.groundActions = new String[5];\n itemDef.groundActions[2] = \"Take\";\n itemDef.itemActions = new String[5];\n itemDef.itemActions[1] = \"Morph\";\n itemDef.itemActions[2] = \"Check-charges\";\n itemDef.itemActions[4] = \"Drop\";\n break;\n }\n case 16645: {\n itemDef.groundModelId = 78010;\n itemDef.name = \"Souledge\";\n itemDef.stackable = false;\n itemDef.description = \"A powerful weapon.\";\n itemDef.modelZoom = 2200;\n itemDef.modelRotation1 = 9;\n itemDef.modelRotation2 = 477;\n itemDef.modelOffset1 = 0;\n itemDef.modelOffset2 = 13;\n itemDef.femaleEquipt = 78011;\n itemDef.maleEquipt = 78011;\n itemDef.groundActions = new String[5];\n itemDef.groundActions[2] = \"Take\";\n itemDef.itemActions = new String[5];\n itemDef.itemActions[1] = \"Wield\";\n itemDef.itemActions[4] = \"Drop\";\n break;\n }\n case 17743: {\n itemDef.groundModelId = 62853;\n itemDef.name = \"Completionest Plate\";\n itemDef.description = \"22222222222222222 \";\n itemDef.modelZoom = 1506;\n itemDef.modelRotation1 = 473;\n itemDef.modelRotation2 = 2042;\n itemDef.modelOffset1 = 0;\n itemDef.modelOffset2 = 0;\n itemDef.femaleEquipt = 62852;\n itemDef.maleEquipt = 62852;\n itemDef.stackable = false;\n itemDef.groundActions = new String[5];\n itemDef.groundActions[2] = \"Take\";\n itemDef.itemActions = new String[5];\n itemDef.itemActions[1] = \"Wear\";\n itemDef.itemActions[2] = \"Check-charges\";\n itemDef.itemActions[4] = \"Drop\";\n break;\n }\n case 17744: {\n itemDef.groundModelId = 62855;\n itemDef.name = \"Completionest platelegs\";\n itemDef.description = \"2222222222222222222222222.\";\n itemDef.modelZoom = 1740;\n itemDef.modelRotation1 = 474;\n itemDef.modelRotation2 = 2045;\n itemDef.modelOffset1 = 0;\n itemDef.modelOffset2 = -5;\n itemDef.femaleEquipt = 62854;\n itemDef.maleEquipt = 62854;\n itemDef.stackable = false;\n itemDef.groundActions = new String[5];\n itemDef.groundActions[2] = \"Take\";\n itemDef.itemActions = new String[5];\n itemDef.itemActions[1] = \"Wear\";\n itemDef.itemActions[2] = \"Check-charges\";\n itemDef.itemActions[4] = \"Drop\";\n break;\n }\n case 17745: {\n itemDef.groundModelId = 62861;\n itemDef.name = \"Completionest boots\";\n itemDef.description = \"2222222222222222222222222.\";\n itemDef.modelZoom = 676;\n itemDef.modelRotation1 = 63;\n itemDef.modelRotation2 = 106;\n itemDef.modelOffset1 = 5;\n itemDef.modelOffset2 = -1;\n itemDef.femaleEquipt = 62860;\n itemDef.maleEquipt = 62860;\n itemDef.stackable = false;\n itemDef.groundActions = new String[5];\n itemDef.groundActions[2] = \"Take\";\n itemDef.itemActions = new String[5];\n itemDef.itemActions[1] = \"Wear\";\n itemDef.itemActions[4] = \"Drop\";\n break;\n }\n case 17746: {\n itemDef.groundModelId = 62859;\n itemDef.name = \"Completionest gloves\";\n itemDef.description = \"2222222222222222222222222.\";\n itemDef.modelZoom = 548;\n itemDef.modelRotation1 = 618;\n itemDef.modelRotation2 = 1143;\n itemDef.modelOffset1 = 0;\n itemDef.modelOffset2 = -5;\n itemDef.femaleEquipt = 62858;\n itemDef.maleEquipt = 62858;\n itemDef.stackable = false;\n itemDef.groundActions = new String[5];\n itemDef.groundActions[2] = \"Take\";\n itemDef.itemActions = new String[5];\n itemDef.itemActions[1] = \"Wear\";\n itemDef.itemActions[4] = \"Drop\";\n break;\n }\n case 17748: {\n itemDef.groundModelId = 62857;\n itemDef.name = \"Completionest Helm\";\n itemDef.description = \"2222222222222222222222222.\";\n itemDef.modelZoom = 672;\n itemDef.modelRotation1 = 85;\n itemDef.modelRotation2 = 1867;\n itemDef.modelOffset1 = 0;\n itemDef.modelOffset2 = -3;\n itemDef.femaleEquipt = 62856;\n itemDef.maleEquipt = 62856;\n itemDef.stackable = false;\n itemDef.groundActions = new String[5];\n itemDef.groundActions[2] = \"Take\";\n itemDef.itemActions = new String[5];\n itemDef.itemActions[1] = \"Morph\";\n itemDef.itemActions[2] = \"Check-charges\";\n itemDef.itemActions[4] = \"Drop\";\n break;\n }\n case 17749: {\n itemDef.groundModelId = 62863;\n itemDef.name = \"Completionest longsword (main Hand)\";\n itemDef.description = \"2222222222222222222222222.\";\n itemDef.modelZoom = 1300;\n itemDef.modelRotation1 = 477;\n itemDef.modelRotation2 = 9;\n itemDef.modelOffset1 = 0;\n itemDef.modelOffset2 = 13;\n itemDef.femaleEquipt = 62862;\n itemDef.maleEquipt = 62862;\n itemDef.stackable = false;\n itemDef.groundActions = new String[5];\n itemDef.groundActions[2] = \"Take\";\n itemDef.itemActions = new String[5];\n itemDef.itemActions[1] = \"Morph\";\n itemDef.itemActions[2] = \"Check-charges\";\n itemDef.itemActions[4] = \"Drop\";\n break;\n }\n case 17750: {\n itemDef.groundModelId = 62863;\n itemDef.name = \"Completionest longsword (Off Hand)\";\n itemDef.description = \"2222222222222222222222222.\";\n itemDef.modelZoom = 1300;\n itemDef.modelRotation1 = 477;\n itemDef.modelRotation2 = 9;\n itemDef.modelOffset1 = 0;\n itemDef.modelOffset2 = 13;\n itemDef.femaleEquipt = 62864;\n itemDef.maleEquipt = 62864;\n itemDef.stackable = false;\n itemDef.groundActions = new String[5];\n itemDef.groundActions[2] = \"Take\";\n itemDef.itemActions = new String[5];\n itemDef.itemActions[1] = \"Morph\";\n itemDef.itemActions[2] = \"Check-charges\";\n itemDef.itemActions[4] = \"Drop\";\n break;\n }\n case 17779: {\n itemDef.groundModelId = 78013;\n itemDef.name = \"@red@Advanced Comp Cape\";\n itemDef.description = \"What in the world ? You really got that ? Your amazing dude! \";\n itemDef.modelZoom = 1316;\n itemDef.modelRotation1 = 252;\n itemDef.modelRotation2 = 1020;\n itemDef.modelOffset1 = -1;\n itemDef.modelOffset2 = 24;\n itemDef.membersObject = true;\n itemDef.femaleEquipt = 78012;\n itemDef.maleEquipt = 78012;\n itemDef.itemActions = new String[5];\n itemDef.itemActions[1] = \"Wear\";\n break;\n }\n case 17851: {\n itemDef.groundModelId = 78025;\n itemDef.name = \"@red@Advanced Dung cape\";\n itemDef.description = \"What in the world ? You really got that ? Your amazing dude! \";\n itemDef.modelZoom = 1316;\n itemDef.modelRotation1 = 252;\n itemDef.modelRotation2 = 1020;\n itemDef.modelOffset1 = -1;\n itemDef.modelOffset2 = 24;\n itemDef.membersObject = true;\n itemDef.femaleEquipt = 78024;\n itemDef.maleEquipt = 78024;\n itemDef.itemActions = new String[5];\n itemDef.itemActions[1] = \"Wear\";\n break;\n }\n case 4279: {\n itemDef.groundModelId = 78014;\n itemDef.name = \"@blu@Trident of the MOON\";\n itemDef.description = \"What in the world ? You really got that ? Your amazing dude! \";\n itemDef.modelZoom = 3355;\n itemDef.modelRotation1 = 512;\n itemDef.modelRotation2 = 256;\n itemDef.modelOffset1 = 3;\n itemDef.modelOffset2 = -9;\n itemDef.femaleEquipt = 78014;\n itemDef.maleEquipt = 78014;\n itemDef.itemActions = new String[5];\n itemDef.itemActions[1] = \"Wear\";\n itemDef.stackable = false;\n break;\n }\n case 17845: {\n itemDef.groundModelId = 78016;\n itemDef.name = \"@blu@Chronic Greataxe\";\n itemDef.description = \"What in the world ? You really got that ? Your amazing dude! \";\n itemDef.modelZoom = 2500;\n itemDef.modelRotation1 = 228;\n itemDef.modelRotation2 = 1155;\n itemDef.modelOffset1 = -5;\n itemDef.modelOffset2 = 65;\n itemDef.membersObject = true;\n itemDef.stackable = false;\n itemDef.femaleEquipt = 78015;\n itemDef.maleEquipt = 78015;\n itemDef.itemActions = new String[5];\n itemDef.itemActions[1] = \"Wear\";\n break;\n }\n case 17846: {\n itemDef.groundModelId = 78018;\n itemDef.name = \"@blu@Chronic Godsword\";\n itemDef.description = \"What in the world ? You really got that ? Your amazing dude! \";\n itemDef.modelZoom = 2000;\n itemDef.modelRotation1 = 228;\n itemDef.modelRotation2 = 1225;\n itemDef.modelOffset1 = -5;\n itemDef.modelOffset2 = 65;\n itemDef.membersObject = true;\n itemDef.stackable = false;\n itemDef.femaleEquipt = 78017;\n itemDef.maleEquipt = 78017;\n itemDef.itemActions = new String[5];\n itemDef.itemActions[1] = \"Wear\";\n break;\n }\n case 17847: {\n itemDef.groundModelId = 79610;\n itemDef.name = \"Lavaflow Godsword\";\n itemDef.description = \"What in the world ? You really got that ? Youre amazing dude! \";\n itemDef.modelZoom = 1500;\n itemDef.modelRotation1 = 228;\n itemDef.modelRotation2 = 1985;\n itemDef.modelOffset1 = 5;\n itemDef.modelOffset2 = -55;\n itemDef.stackable = false;\n itemDef.membersObject = true;\n itemDef.femaleEquipt = 78019;\n itemDef.maleEquipt = 78019;\n itemDef.itemActions = new String[5];\n itemDef.itemActions[1] = \"Wear\";\n break;\n }\n case 17848: {\n itemDef.groundModelId = 78021;\n itemDef.name = \"Blazing Sword\";\n itemDef.description = \"What in the world ? You really got that ? Youre amazing dude! \";\n itemDef.modelZoom = 2000;\n itemDef.modelRotation1 = 228;\n itemDef.modelRotation2 = 1985;\n itemDef.modelOffset1 = 5;\n itemDef.modelOffset2 = -55;\n itemDef.membersObject = true;\n itemDef.femaleEquipt = 78020;\n itemDef.maleEquipt = 78020;\n itemDef.stackable = false;\n itemDef.itemActions = new String[5];\n itemDef.itemActions[1] = \"Wear\";\n break;\n }\n case 17849: {\n itemDef.groundModelId = 79464;\n itemDef.name = \"Flaming Whip\";\n itemDef.description = \"What in the world ? You really got that ? Youre amazing dude! \";\n itemDef.modelZoom = 1000;\n itemDef.modelRotation1 = 601;\n itemDef.modelRotation2 = 1000;\n itemDef.modelOffset1 = 4;\n itemDef.modelOffset2 = 8;\n itemDef.membersObject = true;\n itemDef.femaleEquipt = 78022;\n itemDef.maleEquipt = 78022;\n itemDef.itemActions = new String[5];\n itemDef.itemActions[1] = \"Wear\";\n break;\n }\n case 17850: {\n itemDef.groundModelId = 79465;\n itemDef.name = \"Razor Whip\";\n itemDef.description = \"What in the world ? You really got that ? Your amazing dude! \";\n itemDef.modelZoom = 1000;\n itemDef.modelRotation1 = 601;\n itemDef.modelRotation2 = 1000;\n itemDef.modelOffset1 = 4;\n itemDef.modelOffset2 = 8;\n itemDef.membersObject = true;\n itemDef.femaleEquipt = 78023;\n itemDef.maleEquipt = 78023;\n itemDef.itemActions = new String[5];\n itemDef.itemActions[1] = \"Wear\";\n break;\n }\n case 17854: {\n itemDef.groundModelId = 78028;\n itemDef.name = \"Brutal longsword ( offhand )\";\n itemDef.description = \"What in the world ? You really got that ? Your amazing dude! \";\n itemDef.modelZoom = 1447;\n itemDef.modelRotation1 = 444;\n itemDef.modelRotation2 = 1217;\n itemDef.modelOffset1 = -5;\n itemDef.modelOffset2 = -4;\n itemDef.membersObject = true;\n itemDef.femaleEquipt = 78028;\n itemDef.maleEquipt = 78028;\n itemDef.itemActions = new String[5];\n itemDef.itemActions[1] = \"Wear\";\n itemDef.stackable = false;\n break;\n }\n case 17855: {\n itemDef.groundModelId = 78029;\n itemDef.name = \"@yel@Sword of Edictation\";\n itemDef.description = \"What in the world ? You really got that ? Your amazing dude! \";\n itemDef.modelZoom = 1744;\n itemDef.modelRotation1 = 738;\n itemDef.modelRotation2 = 1985;\n itemDef.modelOffset1 = 0;\n itemDef.modelOffset2 = 0;\n itemDef.membersObject = true;\n itemDef.femaleEquipt = 78029;\n itemDef.maleEquipt = 78029;\n itemDef.itemActions = new String[5];\n itemDef.itemActions[1] = \"Wear\";\n itemDef.stackable = false;\n break;\n }\n case 17856: {\n itemDef.groundModelId = 78027;\n itemDef.name = \"@bla@Obsidian rapier\";\n itemDef.description = \"What in the world ? You really got that ? Youre amazing dude! \";\n itemDef.modelZoom = 2079;\n itemDef.modelRotation1 = 459;\n itemDef.modelRotation2 = 77;\n itemDef.modelOffset1 = 5;\n itemDef.stackable = false;\n itemDef.modelOffset2 = -7;\n itemDef.membersObject = true;\n itemDef.femaleEquipt = 78030;\n itemDef.maleEquipt = 78030;\n itemDef.itemActions = new String[5];\n itemDef.itemActions[1] = \"Wear\";\n break;\n }\n case 17857: {\n itemDef.groundModelId = 78032;\n itemDef.name = \"@yel@Corrupt Korasi sword\";\n itemDef.description = \"What in the world ? You really got that ? Your amazing dude! \";\n itemDef.modelZoom = 1779;\n itemDef.modelOffset1 = 5;\n itemDef.modelOffset2 = 0;\n itemDef.modelRotation1 = 500;\n itemDef.modelRotation2 = 0;\n itemDef.membersObject = true;\n itemDef.stackable = false;\n itemDef.femaleEquipt = 78031;\n itemDef.maleEquipt = 78031;\n itemDef.itemActions = new String[5];\n itemDef.itemActions[1] = \"Wear\";\n break;\n }\n case 17858: {\n itemDef.groundModelId = 78034;\n itemDef.name = \"Red Anchor of Death\";\n itemDef.description = \"What in the world ? You really got that ? Your amazing dude! \";\n itemDef.modelZoom = 1104;\n itemDef.modelRotation1 = 321;\n itemDef.modelRotation2 = 24;\n itemDef.modelOffset1 = -5;\n itemDef.modelOffset2 = 2;\n itemDef.membersObject = true;\n itemDef.femaleEquipt = 78033;\n itemDef.maleEquipt = 78033;\n itemDef.itemActions = new String[5];\n itemDef.itemActions[1] = \"Wear\";\n itemDef.modifiedModelColors = new int[7];\n itemDef.originalModelColors = new int[7];\n itemDef.modifiedModelColors[0] = 10283;\n itemDef.originalModelColors[0] = 1818;\n itemDef.modifiedModelColors[1] = 10287;\n itemDef.originalModelColors[1] = 1820;\n itemDef.modifiedModelColors[2] = 10279;\n itemDef.originalModelColors[2] = 1825;\n itemDef.modifiedModelColors[3] = 10291;\n itemDef.originalModelColors[3] = 1818;\n itemDef.modifiedModelColors[4] = 10275;\n itemDef.originalModelColors[4] = 1819;\n itemDef.stackable = false;\n break;\n }\n case 17859: {\n itemDef.groundModelId = 78036;\n itemDef.name = \"Upgraded Armadyl Godsword\";\n itemDef.description = \"What in the world ? You really got that ? Your amazing dude! \";\n itemDef.modelZoom = 2000;\n itemDef.modelRotation1 = 228;\n itemDef.modelRotation2 = 1985;\n itemDef.modelOffset1 = 5;\n itemDef.modelOffset2 = 55;\n itemDef.membersObject = true;\n itemDef.femaleEquipt = 78035;\n itemDef.maleEquipt = 78035;\n itemDef.itemActions = new String[5];\n itemDef.itemActions[1] = \"Wear\";\n break;\n }\n case 17860: {\n itemDef.groundModelId = 78038;\n itemDef.name = \"Christmas TreeHat\";\n itemDef.description = \"What in the world ? You really got that ? Your amazing dude! \";\n itemDef.modelZoom = 996;\n itemDef.modelRotation1 = 9;\n itemDef.modelRotation2 = 1815;\n itemDef.modelOffset1 = 0;\n itemDef.modelOffset2 = 1;\n itemDef.membersObject = true;\n itemDef.femaleEquipt = 78037;\n itemDef.maleEquipt = 78037;\n itemDef.itemActions = new String[5];\n itemDef.itemActions[1] = \"Wear\";\n break;\n }\n case 17861: {\n itemDef.groundModelId = 78042;\n itemDef.stackable = false;\n itemDef.name = \"Tzhaar Whip\";\n itemDef.description = \"What in the world ? You really got that ? Your amazing dude! \";\n itemDef.modelZoom = 987;\n itemDef.modelRotation1 = 440;\n itemDef.modelRotation2 = 630;\n itemDef.modelOffset1 = 8;\n itemDef.modelOffset2 = -1;\n itemDef.membersObject = true;\n itemDef.femaleEquipt = 78041;\n itemDef.maleEquipt = 78041;\n itemDef.itemActions = new String[5];\n itemDef.itemActions[1] = \"Wear\";\n break;\n }\n case 17862: {\n itemDef.groundModelId = 79476;\n itemDef.stackable = false;\n itemDef.name = \"Tzhaar body\";\n itemDef.description = \"What in the world ? You really got that ? Your amazing dude! \";\n itemDef.modelZoom = 1500;\n itemDef.modelRotation1 = 512;\n itemDef.modelRotation2 = 0;\n itemDef.modelOffset1 = 0;\n itemDef.modelOffset2 = -1;\n itemDef.membersObject = true;\n itemDef.femaleEquipt = 78043;\n itemDef.maleEquipt = 78043;\n itemDef.itemActions = new String[5];\n itemDef.itemActions[1] = \"Wear\";\n break;\n }\n case 17863: {\n itemDef.groundModelId = 79475;\n itemDef.stackable = false;\n itemDef.name = \"Tzhaar legs\";\n itemDef.description = \"What in the world ? You really got that ? Your amazing dude! \";\n itemDef.modelZoom = 2000;\n itemDef.modelRotation1 = 512;\n itemDef.modelRotation2 = 0;\n itemDef.modelOffset1 = 0;\n itemDef.modelOffset2 = -1;\n itemDef.membersObject = true;\n itemDef.femaleEquipt = 78044;\n itemDef.maleEquipt = 78044;\n itemDef.itemActions = new String[5];\n itemDef.itemActions[1] = \"Wear\";\n break;\n }\n case 17864: {\n itemDef.groundModelId = 78046;\n itemDef.name = \"Obsidian Body\";\n itemDef.description = \"What in the world ? You really got that ? Your amazing dude! \";\n itemDef.modelZoom = 1650;\n itemDef.modelRotation1 = 512;\n itemDef.modelRotation2 = 0;\n itemDef.modelOffset1 = 0;\n itemDef.modelOffset2 = -1;\n itemDef.stackable = false;\n itemDef.membersObject = true;\n itemDef.femaleEquipt = 78045;\n itemDef.maleEquipt = 78045;\n itemDef.itemActions = new String[5];\n itemDef.itemActions[1] = \"Wear\";\n break;\n }\n case 17865: {\n itemDef.groundModelId = 78048;\n itemDef.name = \"Obsidian legs\";\n itemDef.description = \"What in the world ? You really got that ? Your amazing dude! \";\n itemDef.modelZoom = 1850;\n itemDef.modelRotation1 = 512;\n itemDef.modelRotation2 = 0;\n itemDef.modelOffset1 = 0;\n itemDef.modelOffset2 = -1;\n itemDef.stackable = false;\n itemDef.membersObject = true;\n itemDef.femaleEquipt = 78047;\n itemDef.maleEquipt = 78047;\n itemDef.itemActions = new String[5];\n itemDef.itemActions[1] = \"Wear\";\n break;\n }\n case 15001: {\n itemDef.name = \"White wings\";\n itemDef.value = 60000;\n itemDef.femaleEquipt = 79242;\n itemDef.maleEquipt = 79242;\n itemDef.groundActions = new String[5];\n itemDef.groundActions[2] = \"Take\";\n itemDef.modelOffset1 = -1;\n itemDef.groundModelId = 79243;\n itemDef.stackable = false;\n itemDef.description = \"White WINS!.\";\n itemDef.modelZoom = 850;\n itemDef.itemActions = new String[5];\n itemDef.itemActions[1] = \"Wear\";\n itemDef.itemActions[4] = \"Drop\";\n itemDef.modelOffset2 = 24;\n itemDef.modelRotation1 = 252;\n itemDef.modelRotation2 = 1020;\n break;\n }\n case 16428: {\n itemDef.groundModelId = 9001;\n itemDef.name = \"Rainbow Partyhat\";\n itemDef.description = \"Rainbow Partyhat.\";\n itemDef.modelZoom = 440;\n itemDef.value = 60000;\n itemDef.modelRotation2 = 1845;\n itemDef.modelRotation1 = 121;\n itemDef.modelOffset1 = 0;\n itemDef.modelOffset2 = 1;\n itemDef.femaleEquipt = 9000;\n itemDef.maleEquipt = 9002;\n itemDef.groundActions = new String[5];\n itemDef.groundActions[2] = \"Take\";\n itemDef.itemActions = new String[5];\n itemDef.itemActions[1] = \"Wear\";\n itemDef.stackable = false;\n break;\n }\n case 9500: {\n itemDef.name = \"@yel@Wizard Hat\";\n itemDef.value = 20000000;\n itemDef.femaleEquipt = 13079;\n itemDef.maleEquipt = 13082;\n itemDef.groundActions = new String[5];\n itemDef.groundActions[2] = \"Take\";\n itemDef.modelOffset1 = -1;\n itemDef.modelOffset2 = -1;\n itemDef.groundModelId = 11400;\n itemDef.stackable = false;\n itemDef.description = \"Its a wizard hat.\";\n itemDef.modelZoom = 800;\n itemDef.itemActions = new String[5];\n itemDef.itemActions[1] = \"Wear\";\n itemDef.itemActions[4] = \"Drop\";\n itemDef.modelRotation1 = 152;\n itemDef.modelRotation2 = 156;\n break;\n }\n case 9501: {\n itemDef.name = \"@yel@Zaros Godsword\";\n itemDef.value = 2000000000;\n itemDef.femaleEquipt = 7997;\n itemDef.maleEquipt = 7997;\n itemDef.groundActions = new String[5];\n itemDef.groundActions[2] = \"Take\";\n itemDef.modelOffset1 = -1;\n itemDef.modelOffset2 = -1;\n itemDef.groundModelId = 7998;\n itemDef.stackable = false;\n itemDef.description = \"Its a zaros godsword.\";\n itemDef.modelZoom = 1957;\n itemDef.itemActions = new String[5];\n itemDef.itemActions[1] = \"Wear\";\n itemDef.itemActions[4] = \"Drop\";\n itemDef.modelRotation1 = 498;\n itemDef.modelRotation2 = 484;\n break;\n }\n case 9502: {\n itemDef.name = \"@yel@Masamune\";\n itemDef.value = 2000000000;\n itemDef.femaleEquipt = 13083;\n itemDef.maleEquipt = 13083;\n itemDef.groundActions = new String[5];\n itemDef.groundActions[2] = \"Take\";\n itemDef.modelOffset1 = -1;\n itemDef.modelOffset2 = -1;\n itemDef.groundModelId = 13084;\n itemDef.stackable = false;\n itemDef.description = \"Auron's Celestial Weapon: The Masamune.\";\n itemDef.modelZoom = 1957;\n itemDef.itemActions = new String[5];\n itemDef.itemActions[1] = \"Wear\";\n itemDef.itemActions[4] = \"Drop\";\n itemDef.modelRotation1 = 498;\n itemDef.modelRotation2 = 484;\n break;\n }\n case 19000: {\n itemDef.name = \"@yel@drygore Mace\";\n itemDef.value = 2000000000;\n itemDef.femaleEquipt = 19001;\n itemDef.maleEquipt = 19001;\n itemDef.groundActions = new String[5];\n itemDef.groundActions[2] = \"Take\";\n itemDef.modelOffset1 = -1;\n itemDef.modelOffset2 = -1;\n itemDef.groundModelId = 19000;\n itemDef.stackable = false;\n itemDef.description = \"Its's a drygore weapon.\";\n itemDef.modelZoom = 1250;\n itemDef.itemActions = new String[5];\n itemDef.itemActions[1] = \"Wear\";\n itemDef.itemActions[4] = \"Drop\";\n itemDef.modelRotation1 = 498;\n itemDef.modelRotation2 = 484;\n break;\n }\n case 18999: {\n itemDef.name = \"@yel@Upgraded drygore Mace\";\n itemDef.value = 2000000000;\n itemDef.femaleEquipt = 18999;\n itemDef.maleEquipt = 18999;\n itemDef.groundActions = new String[5];\n itemDef.groundActions[2] = \"Take\";\n itemDef.modelOffset1 = -1;\n itemDef.modelOffset2 = -1;\n itemDef.groundModelId = 19000;\n itemDef.stackable = false;\n itemDef.description = \"Its's a drygore weapon.\";\n itemDef.modelZoom = 1250;\n itemDef.itemActions = new String[5];\n itemDef.itemActions[1] = \"Wear\";\n itemDef.itemActions[4] = \"Drop\";\n itemDef.modelRotation1 = 498;\n itemDef.modelRotation2 = 484;\n break;\n }\n case 19001: {\n itemDef.name = \"@yel@drygore Mace ( broken )\";\n itemDef.value = 2000000000;\n itemDef.femaleEquipt = -1;\n itemDef.maleEquipt = -1;\n itemDef.groundActions = new String[5];\n itemDef.groundActions[2] = \"Take\";\n itemDef.modelOffset1 = -1;\n itemDef.modelOffset2 = -1;\n itemDef.groundModelId = 19002;\n itemDef.stackable = false;\n itemDef.description = \"Its's a drygore weapon.\";\n itemDef.modelZoom = 1250;\n itemDef.modelRotation1 = 498;\n itemDef.modelRotation2 = 484;\n break;\n }\n case 8671: {\n itemDef.itemActions = new String[5];\n itemDef.itemActions[1] = \"Wear\";\n itemDef.itemActions[4] = \"Drop\";\n itemDef.modifiedModelColors = new int[1];\n itemDef.originalModelColors = new int[1];\n itemDef.modifiedModelColors[0] = 926;\n itemDef.originalModelColors[0] = 11200;\n itemDef.groundModelId = 2438;\n itemDef.modelZoom = 730;\n itemDef.modelRotation1 = 516;\n itemDef.modelRotation2 = 0;\n itemDef.anInt204 = 0;\n itemDef.modelOffset1 = 0;\n itemDef.modelOffset2 = -10;\n itemDef.femaleEquipt = 3188;\n itemDef.maleEquipt = 3192;\n itemDef.name = \"Yellow h'ween Mask\";\n itemDef.description = \"AaaarrrgmodelRotation1h... I'm a monster.\";\n break;\n }\n case 19002: {\n itemDef.name = \"@yel@drygore Mace ( off-hand )\";\n itemDef.value = 2000000000;\n itemDef.femaleEquipt = 19003;\n itemDef.maleEquipt = 19003;\n itemDef.groundActions = new String[5];\n itemDef.groundActions[2] = \"Take\";\n itemDef.modelOffset1 = -1;\n itemDef.modelOffset2 = -1;\n itemDef.groundModelId = 19003;\n itemDef.stackable = false;\n itemDef.description = \"Its's a drygore weapon.\";\n itemDef.itemActions = new String[5];\n itemDef.itemActions[1] = \"Wield\";\n itemDef.itemActions[4] = \"Drop\";\n itemDef.modelZoom = 1250;\n itemDef.modelRotation1 = 498;\n itemDef.modelRotation2 = 484;\n break;\n }\n case 19003: {\n itemDef.name = \"@yel@drygore Longsword ( off-hand )\";\n itemDef.value = 2000000000;\n itemDef.femaleEquipt = 19004;\n itemDef.maleEquipt = 19004;\n itemDef.groundActions = new String[5];\n itemDef.groundActions[2] = \"Take\";\n itemDef.modelOffset1 = -1;\n itemDef.modelOffset2 = -1;\n itemDef.groundModelId = 19005;\n itemDef.stackable = false;\n itemDef.description = \"Its's a drygore weapon.\";\n itemDef.itemActions = new String[5];\n itemDef.itemActions[1] = \"Wield\";\n itemDef.itemActions[4] = \"Drop\";\n itemDef.modelZoom = 1250;\n itemDef.modelRotation1 = 498;\n itemDef.modelRotation2 = 484;\n break;\n }\n case 19004: {\n itemDef.name = \"@yel@drygore Longsword ( broken )\";\n itemDef.value = 2000000000;\n itemDef.femaleEquipt = -1;\n itemDef.maleEquipt = -1;\n itemDef.groundActions = new String[5];\n itemDef.groundActions[2] = \"Take\";\n itemDef.modelOffset1 = -1;\n itemDef.modelOffset2 = -1;\n itemDef.groundModelId = 19006;\n itemDef.stackable = false;\n itemDef.description = \"Its's a drygore weapon.\";\n itemDef.modelZoom = 1250;\n itemDef.modelRotation1 = 498;\n itemDef.modelRotation2 = 484;\n break;\n }\n case 19005: {\n itemDef.name = \"@yel@drygore Longsword\";\n itemDef.value = 2000000000;\n itemDef.femaleEquipt = 19007;\n itemDef.maleEquipt = 19007;\n itemDef.groundActions = new String[5];\n itemDef.groundActions[2] = \"Take\";\n itemDef.modelOffset1 = -1;\n itemDef.modelOffset2 = -1;\n itemDef.groundModelId = 19005;\n itemDef.stackable = false;\n itemDef.description = \"Its's a drygore weapon.\";\n itemDef.itemActions = new String[5];\n itemDef.itemActions[1] = \"Wield\";\n itemDef.itemActions[4] = \"Drop\";\n itemDef.modelZoom = 1250;\n itemDef.modelRotation1 = 498;\n itemDef.modelRotation2 = 484;\n break;\n }\n case 19006: {\n itemDef.name = \"@yel@drygore Rapier ( off-hand )\";\n itemDef.value = 2000000000;\n itemDef.femaleEquipt = 19008;\n itemDef.maleEquipt = 19008;\n itemDef.groundActions = new String[5];\n itemDef.groundActions[2] = \"Take\";\n itemDef.modelOffset1 = -1;\n itemDef.modelOffset2 = -1;\n itemDef.groundModelId = 19009;\n itemDef.stackable = false;\n itemDef.description = \"Its's a drygore weapon.\";\n itemDef.itemActions = new String[5];\n itemDef.itemActions[1] = \"Wield\";\n itemDef.itemActions[4] = \"Drop\";\n itemDef.modelZoom = 1250;\n itemDef.modelRotation1 = 498;\n itemDef.modelRotation2 = 484;\n break;\n }\n case 19007: {\n itemDef.name = \"@yel@drygore Rapier\";\n itemDef.value = 2000000000;\n itemDef.femaleEquipt = 19010;\n itemDef.maleEquipt = 19010;\n itemDef.groundActions = new String[5];\n itemDef.groundActions[2] = \"Take\";\n itemDef.modelOffset1 = -1;\n itemDef.modelOffset2 = -1;\n itemDef.groundModelId = 19009;\n itemDef.stackable = false;\n itemDef.description = \"Its's a drygore weapon.\";\n itemDef.itemActions = new String[5];\n itemDef.itemActions[1] = \"Wield\";\n itemDef.itemActions[4] = \"Drop\";\n itemDef.modelZoom = 1250;\n itemDef.modelRotation1 = 498;\n itemDef.modelRotation2 = 484;\n break;\n }\n case 19008: {\n itemDef.name = \"@yel@drygore Rapier ( broken )\";\n itemDef.value = 2000000000;\n itemDef.femaleEquipt = -1;\n itemDef.maleEquipt = -1;\n itemDef.groundActions = new String[5];\n itemDef.groundActions[2] = \"Take\";\n itemDef.modelOffset1 = -1;\n itemDef.modelOffset2 = -1;\n itemDef.groundModelId = 19011;\n itemDef.stackable = false;\n itemDef.description = \"Its's a drygore weapon.\";\n itemDef.modelZoom = 1250;\n itemDef.modelRotation1 = 498;\n itemDef.modelRotation2 = 484;\n break;\n }\n case 19009: {\n itemDef.name = \"Halo Sword\";\n itemDef.value = 2000000000;\n itemDef.femaleEquipt = 19013;\n itemDef.maleEquipt = 19013;\n itemDef.groundActions = new String[5];\n itemDef.groundActions[2] = \"Take\";\n itemDef.modelOffset1 = -1;\n itemDef.modelOffset2 = -1;\n itemDef.groundModelId = 19012;\n itemDef.stackable = false;\n itemDef.description = \"its a sword from halo game.\";\n itemDef.modelZoom = 1250;\n itemDef.itemActions = new String[5];\n itemDef.itemActions[1] = \"Wield\";\n itemDef.itemActions[4] = \"Drop\";\n itemDef.modelRotation1 = 498;\n itemDef.modelRotation2 = 484;\n break;\n }\n case 8673: {\n itemDef.itemActions = new String[5];\n itemDef.itemActions[1] = \"Wear\";\n itemDef.itemActions[4] = \"Drop\";\n itemDef.modifiedModelColors = new int[1];\n itemDef.originalModelColors = new int[1];\n itemDef.modifiedModelColors[0] = 926;\n itemDef.originalModelColors[0] = 6073;\n itemDef.groundModelId = 2438;\n itemDef.modelZoom = 730;\n itemDef.modelRotation1 = 516;\n itemDef.modelRotation2 = 0;\n itemDef.anInt204 = 0;\n itemDef.modelOffset1 = 0;\n itemDef.modelOffset2 = -10;\n itemDef.femaleEquipt = 3188;\n itemDef.maleEquipt = 3192;\n itemDef.name = \"Orange h'ween Mask\";\n itemDef.description = \"AaaarrrgmodelRotation1h... I'm a monster.\";\n break;\n }\n case 8675: {\n itemDef.itemActions = new String[5];\n itemDef.itemActions[1] = \"Wear\";\n itemDef.itemActions[4] = \"Drop\";\n itemDef.modifiedModelColors = new int[1];\n itemDef.originalModelColors = new int[1];\n itemDef.modifiedModelColors[0] = 926;\n itemDef.originalModelColors[0] = 32895;\n itemDef.groundModelId = 2438;\n itemDef.modelZoom = 730;\n itemDef.modelRotation1 = 516;\n itemDef.modelRotation2 = 0;\n itemDef.anInt204 = 0;\n itemDef.modelOffset1 = 0;\n itemDef.modelOffset2 = -10;\n itemDef.femaleEquipt = 3188;\n itemDef.maleEquipt = 3192;\n itemDef.name = \"Random h'ween Mask\";\n itemDef.description = \"AaaarrrgmodelRotation1h... I'm a monster.\";\n break;\n }\n case 8695: {\n itemDef.itemActions = new String[5];\n itemDef.itemActions[1] = \"Wear\";\n itemDef.itemActions[4] = \"Drop\";\n itemDef.modifiedModelColors = new int[1];\n itemDef.originalModelColors = new int[1];\n itemDef.modifiedModelColors[0] = 926;\n itemDef.originalModelColors[0] = 57300;\n itemDef.groundModelId = 2438;\n itemDef.modelZoom = 730;\n itemDef.modelRotation1 = 516;\n itemDef.modelRotation2 = 0;\n itemDef.anInt204 = 0;\n itemDef.modelOffset1 = 0;\n itemDef.modelOffset2 = -10;\n itemDef.femaleEquipt = 3188;\n itemDef.maleEquipt = 3192;\n itemDef.name = \"Hot h'ween Mask\";\n itemDef.description = \"AaaarrrgmodelRotation1h... I'm a monster.\";\n break;\n }\n case 8697: {\n itemDef.itemActions = new String[5];\n itemDef.itemActions[1] = \"Wear\";\n itemDef.itemActions[4] = \"Drop\";\n itemDef.modifiedModelColors = new int[1];\n itemDef.originalModelColors = new int[1];\n itemDef.modifiedModelColors[0] = 926;\n itemDef.originalModelColors[0] = 34503;\n itemDef.groundModelId = 2438;\n itemDef.modelZoom = 730;\n itemDef.modelRotation1 = 516;\n itemDef.modelRotation2 = 0;\n itemDef.anInt204 = 0;\n itemDef.modelOffset1 = 0;\n itemDef.modelOffset2 = -10;\n itemDef.femaleEquipt = 3188;\n itemDef.maleEquipt = 3192;\n itemDef.name = \"Winter h'ween Mask\";\n itemDef.description = \"AaaarrrgmodelRotation1h... I'm a monster.\";\n break;\n }\n case 8677: {\n itemDef.groundModelId = 40920;\n itemDef.name = \"Pink Special spirit shield\";\n itemDef.description = \"It's a Spectral spirit shield\";\n itemDef.modifiedModelColors = new int[13];\n itemDef.originalModelColors = new int[13];\n itemDef.modifiedModelColors[0] = 44635;\n itemDef.originalModelColors[0] = 62135;\n itemDef.modifiedModelColors[1] = 44612;\n itemDef.originalModelColors[1] = 62135;\n itemDef.modifiedModelColors[2] = 44606;\n itemDef.originalModelColors[2] = 62135;\n itemDef.modifiedModelColors[3] = 44615;\n itemDef.originalModelColors[3] = 62135;\n itemDef.modifiedModelColors[4] = 44641;\n itemDef.originalModelColors[4] = 62135;\n itemDef.modifiedModelColors[5] = 44564;\n itemDef.originalModelColors[5] = 62135;\n itemDef.modifiedModelColors[6] = 44575;\n itemDef.originalModelColors[6] = 62135;\n itemDef.modifiedModelColors[7] = 44618;\n itemDef.originalModelColors[7] = 62135;\n itemDef.modifiedModelColors[8] = 105;\n itemDef.originalModelColors[8] = 6073;\n itemDef.modifiedModelColors[9] = 44603;\n itemDef.originalModelColors[9] = 62135;\n itemDef.modifiedModelColors[10] = 44570;\n itemDef.originalModelColors[10] = 62135;\n itemDef.modifiedModelColors[11] = 4500;\n itemDef.originalModelColors[11] = 62135;\n itemDef.modelZoom = 1616;\n itemDef.modelRotation1 = 396;\n itemDef.modelRotation2 = 1050;\n itemDef.modelOffset2 = -3;\n itemDef.modelOffset1 = 4;\n itemDef.femaleEquipt = 40940;\n itemDef.maleEquipt = 40940;\n itemDef.groundActions = new String[5];\n itemDef.groundActions[2] = \"Take\";\n itemDef.itemActions = new String[5];\n itemDef.itemActions[1] = \"Wear\";\n itemDef.itemActions[4] = \"Drop\";\n break;\n }\n case 8679: {\n itemDef.groundModelId = 5412;\n itemDef.name = \"Cyan Whip\";\n itemDef.itemActions = new String[5];\n itemDef.itemActions[1] = \"Wear\";\n itemDef.modelZoom = 840;\n itemDef.femaleEquipt = 5409;\n itemDef.maleEquipt = 5409;\n itemDef.modelRotation1 = 280;\n itemDef.modelRotation2 = 0;\n itemDef.modelOffset1 = -2;\n itemDef.modelOffset2 = 56;\n itemDef.aByte205 = (byte)7;\n itemDef.aByte154 = (byte)-7;\n itemDef.originalModelColors = new int[1];\n itemDef.modifiedModelColors = new int[1];\n itemDef.originalModelColors[0] = 34503;\n itemDef.modifiedModelColors[0] = 944;\n itemDef.stackable = false;\n break;\n }\n case 8687: {\n itemDef.itemActions = new String[5];\n itemDef.itemActions[1] = \"Wear\";\n itemDef.modifiedModelColors = new int[1];\n itemDef.originalModelColors = new int[1];\n itemDef.modifiedModelColors[0] = 926;\n itemDef.originalModelColors[0] = 34503;\n itemDef.groundModelId = 2635;\n itemDef.modelZoom = 440;\n itemDef.modelRotation1 = 76;\n itemDef.modelRotation2 = 1850;\n itemDef.anInt204 = 0;\n itemDef.modelOffset1 = 1;\n itemDef.modelOffset2 = 1;\n itemDef.femaleEquipt = 187;\n itemDef.maleEquipt = 363;\n itemDef.anInt175 = 29;\n itemDef.anInt197 = 87;\n itemDef.name = \"Cyan Party Hat\";\n itemDef.description = \"An Cyan Party Hat.\";\n break;\n }\n case 8689: {\n itemDef.itemActions = new String[5];\n itemDef.itemActions[1] = \"Wear\";\n itemDef.modifiedModelColors = new int[1];\n itemDef.originalModelColors = new int[1];\n itemDef.modifiedModelColors[0] = 926;\n itemDef.originalModelColors[0] = 57300;\n itemDef.groundModelId = 2635;\n itemDef.modelZoom = 440;\n itemDef.modelRotation1 = 76;\n itemDef.modelRotation2 = 1850;\n itemDef.anInt204 = 0;\n itemDef.modelOffset1 = 1;\n itemDef.modelOffset2 = 1;\n itemDef.femaleEquipt = 187;\n itemDef.maleEquipt = 363;\n itemDef.anInt175 = 29;\n itemDef.anInt197 = 87;\n itemDef.name = \"Random Party Hat\";\n itemDef.description = \"An Random Party Hat.\";\n break;\n }\n case 8691: {\n itemDef.itemActions = new String[5];\n itemDef.itemActions[1] = \"Wear\";\n itemDef.modifiedModelColors = new int[1];\n itemDef.originalModelColors = new int[1];\n itemDef.modifiedModelColors[0] = 926;\n itemDef.originalModelColors[0] = 14898140;\n itemDef.groundModelId = 2635;\n itemDef.modelZoom = 440;\n itemDef.modelRotation1 = 76;\n itemDef.modelRotation2 = 1850;\n itemDef.anInt204 = 0;\n itemDef.modelOffset1 = 1;\n itemDef.modelOffset2 = 1;\n itemDef.femaleEquipt = 187;\n itemDef.maleEquipt = 363;\n itemDef.anInt175 = 29;\n itemDef.anInt197 = 87;\n itemDef.name = \"Random Party Hat\";\n itemDef.description = \"An Random Party Hat.\";\n break;\n }\n case 8693: {\n itemDef.groundModelId = 40920;\n itemDef.name = \"De'Vil spirit shield\";\n itemDef.description = \"It's a Spectral spirit shield\";\n itemDef.modifiedModelColors = new int[13];\n itemDef.originalModelColors = new int[13];\n itemDef.modifiedModelColors[0] = 44635;\n itemDef.originalModelColors[0] = 924;\n itemDef.modifiedModelColors[1] = 44612;\n itemDef.originalModelColors[1] = 924;\n itemDef.modifiedModelColors[2] = 44606;\n itemDef.originalModelColors[2] = 924;\n itemDef.modifiedModelColors[3] = 44615;\n itemDef.originalModelColors[3] = 924;\n itemDef.modifiedModelColors[4] = 44641;\n itemDef.originalModelColors[4] = 924;\n itemDef.modifiedModelColors[5] = 44564;\n itemDef.originalModelColors[5] = 924;\n itemDef.modifiedModelColors[6] = 44575;\n itemDef.originalModelColors[6] = 924;\n itemDef.modifiedModelColors[7] = 44618;\n itemDef.originalModelColors[7] = 924;\n itemDef.modifiedModelColors[8] = 105;\n itemDef.originalModelColors[8] = 105;\n itemDef.modifiedModelColors[9] = 44603;\n itemDef.originalModelColors[9] = 924;\n itemDef.modifiedModelColors[10] = 44570;\n itemDef.originalModelColors[10] = 924;\n itemDef.modifiedModelColors[11] = 4500;\n itemDef.originalModelColors[11] = 924;\n itemDef.modelZoom = 1616;\n itemDef.modelRotation1 = 396;\n itemDef.modelRotation2 = 1050;\n itemDef.modelOffset2 = -3;\n itemDef.modelOffset1 = 4;\n itemDef.femaleEquipt = 40940;\n itemDef.maleEquipt = 40940;\n itemDef.groundActions = new String[5];\n itemDef.groundActions[2] = \"Take\";\n itemDef.itemActions = new String[5];\n itemDef.itemActions[1] = \"Wear\";\n itemDef.itemActions[4] = \"Drop\";\n break;\n }\n case 8699: {\n itemDef.groundModelId = 40920;\n itemDef.name = \"Saradomin spirit shield\";\n itemDef.description = \"It's a Spectral spirit shield\";\n itemDef.modifiedModelColors = new int[13];\n itemDef.originalModelColors = new int[13];\n itemDef.modifiedModelColors[0] = 44635;\n itemDef.originalModelColors[0] = 105;\n itemDef.modifiedModelColors[1] = 44612;\n itemDef.originalModelColors[1] = 105;\n itemDef.modifiedModelColors[2] = 44606;\n itemDef.originalModelColors[2] = 105;\n itemDef.modifiedModelColors[3] = 44615;\n itemDef.originalModelColors[3] = 105;\n itemDef.modifiedModelColors[4] = 44641;\n itemDef.originalModelColors[4] = 105;\n itemDef.modifiedModelColors[5] = 44564;\n itemDef.originalModelColors[5] = 105;\n itemDef.modifiedModelColors[6] = 44575;\n itemDef.originalModelColors[6] = 105;\n itemDef.modifiedModelColors[7] = 44618;\n itemDef.originalModelColors[7] = 105;\n itemDef.modifiedModelColors[8] = 105;\n itemDef.originalModelColors[8] = 105;\n itemDef.modifiedModelColors[9] = 44603;\n itemDef.originalModelColors[9] = 105;\n itemDef.modifiedModelColors[10] = 44570;\n itemDef.originalModelColors[10] = 105;\n itemDef.modifiedModelColors[11] = 4500;\n itemDef.originalModelColors[11] = 105;\n itemDef.modelZoom = 1616;\n itemDef.modelRotation1 = 396;\n itemDef.modelRotation2 = 1050;\n itemDef.modelOffset2 = -3;\n itemDef.modelOffset1 = 4;\n itemDef.femaleEquipt = 40940;\n itemDef.maleEquipt = 40940;\n itemDef.groundActions = new String[5];\n itemDef.groundActions[2] = \"Take\";\n itemDef.itemActions = new String[5];\n itemDef.itemActions[1] = \"Wear\";\n itemDef.itemActions[4] = \"Drop\";\n break;\n }\n case 8701: {\n itemDef.groundModelId = 40920;\n itemDef.name = \"Lava spirit shield\";\n itemDef.description = \"It's a Spectral spirit shield\";\n itemDef.modifiedModelColors = new int[13];\n itemDef.originalModelColors = new int[13];\n itemDef.modifiedModelColors[0] = 44635;\n itemDef.originalModelColors[0] = 6073;\n itemDef.modifiedModelColors[1] = 44612;\n itemDef.originalModelColors[1] = 6073;\n itemDef.modifiedModelColors[2] = 44606;\n itemDef.originalModelColors[2] = 6073;\n itemDef.modifiedModelColors[3] = 44615;\n itemDef.originalModelColors[3] = 6073;\n itemDef.modifiedModelColors[4] = 44641;\n itemDef.originalModelColors[4] = 6073;\n itemDef.modifiedModelColors[5] = 44564;\n itemDef.originalModelColors[5] = 6073;\n itemDef.modifiedModelColors[6] = 44575;\n itemDef.originalModelColors[6] = 6073;\n itemDef.modifiedModelColors[7] = 44618;\n itemDef.originalModelColors[7] = 6073;\n itemDef.modifiedModelColors[8] = 105;\n itemDef.originalModelColors[8] = 105;\n itemDef.modifiedModelColors[9] = 44603;\n itemDef.originalModelColors[9] = 6073;\n itemDef.modifiedModelColors[10] = 44570;\n itemDef.originalModelColors[10] = 6073;\n itemDef.modifiedModelColors[11] = 4500;\n itemDef.originalModelColors[11] = 6073;\n itemDef.modelZoom = 1616;\n itemDef.modelRotation1 = 396;\n itemDef.modelRotation2 = 1050;\n itemDef.modelOffset2 = -3;\n itemDef.modelOffset1 = 4;\n itemDef.femaleEquipt = 40940;\n itemDef.maleEquipt = 40940;\n itemDef.groundActions = new String[5];\n itemDef.groundActions[2] = \"Take\";\n itemDef.itemActions = new String[5];\n itemDef.itemActions[1] = \"Wear\";\n itemDef.itemActions[4] = \"Drop\";\n break;\n }\n case 8717: {\n itemDef.groundModelId = 40920;\n itemDef.name = \"DOOM spirit shield\";\n itemDef.description = \"It's a Spectral spirit shield\";\n itemDef.modifiedModelColors = new int[13];\n itemDef.originalModelColors = new int[13];\n itemDef.modifiedModelColors[0] = 44635;\n itemDef.originalModelColors[0] = 1;\n itemDef.modifiedModelColors[1] = 44612;\n itemDef.originalModelColors[1] = 1;\n itemDef.modifiedModelColors[2] = 44606;\n itemDef.originalModelColors[2] = 1;\n itemDef.modifiedModelColors[3] = 44615;\n itemDef.originalModelColors[3] = 1;\n itemDef.modifiedModelColors[4] = 44641;\n itemDef.originalModelColors[4] = 1;\n itemDef.modifiedModelColors[5] = 44564;\n itemDef.originalModelColors[5] = 1;\n itemDef.modifiedModelColors[6] = 44575;\n itemDef.originalModelColors[6] = 1;\n itemDef.modifiedModelColors[7] = 44618;\n itemDef.originalModelColors[7] = 1;\n itemDef.modifiedModelColors[8] = 105;\n itemDef.originalModelColors[8] = 17350;\n itemDef.modifiedModelColors[9] = 44603;\n itemDef.originalModelColors[9] = 1;\n itemDef.modifiedModelColors[10] = 44570;\n itemDef.originalModelColors[10] = 1;\n itemDef.modifiedModelColors[11] = 4500;\n itemDef.originalModelColors[11] = 1;\n itemDef.modelZoom = 1616;\n itemDef.modelRotation1 = 396;\n itemDef.modelRotation2 = 1050;\n itemDef.modelOffset2 = -3;\n itemDef.modelOffset1 = 4;\n itemDef.femaleEquipt = 40940;\n itemDef.maleEquipt = 40940;\n itemDef.groundActions = new String[5];\n itemDef.groundActions[2] = \"Take\";\n itemDef.itemActions = new String[5];\n itemDef.itemActions[1] = \"Wear\";\n itemDef.itemActions[4] = \"Drop\";\n break;\n }\n case 8719: {\n itemDef.groundModelId = 40920;\n itemDef.name = \"Lime spirit shield\";\n itemDef.description = \"It's a Spectral spirit shield\";\n itemDef.modifiedModelColors = new int[13];\n itemDef.originalModelColors = new int[13];\n itemDef.modifiedModelColors[0] = 44635;\n itemDef.originalModelColors[0] = 17350;\n itemDef.modifiedModelColors[1] = 44612;\n itemDef.originalModelColors[1] = 17350;\n itemDef.modifiedModelColors[2] = 44606;\n itemDef.originalModelColors[2] = 17350;\n itemDef.modifiedModelColors[3] = 44615;\n itemDef.originalModelColors[3] = 17350;\n itemDef.modifiedModelColors[4] = 44641;\n itemDef.originalModelColors[4] = 17350;\n itemDef.modifiedModelColors[5] = 44564;\n itemDef.originalModelColors[5] = 17350;\n itemDef.modifiedModelColors[6] = 44575;\n itemDef.originalModelColors[6] = 17350;\n itemDef.modifiedModelColors[7] = 44618;\n itemDef.originalModelColors[7] = 17350;\n itemDef.modifiedModelColors[8] = 105;\n itemDef.originalModelColors[8] = 105;\n itemDef.modifiedModelColors[9] = 44603;\n itemDef.originalModelColors[9] = 17350;\n itemDef.modifiedModelColors[10] = 44570;\n itemDef.originalModelColors[10] = 17350;\n itemDef.modifiedModelColors[11] = 4500;\n itemDef.originalModelColors[11] = 17350;\n itemDef.modelZoom = 1616;\n itemDef.modelRotation1 = 396;\n itemDef.modelRotation2 = 1050;\n itemDef.modelOffset2 = -3;\n itemDef.modelOffset1 = 4;\n itemDef.femaleEquipt = 40940;\n itemDef.maleEquipt = 40940;\n itemDef.groundActions = new String[5];\n itemDef.groundActions[2] = \"Take\";\n itemDef.itemActions = new String[5];\n itemDef.itemActions[1] = \"Wear\";\n itemDef.itemActions[4] = \"Drop\";\n break;\n }\n case 8721: {\n itemDef.groundModelId = 40920;\n itemDef.name = \"Shaded spirit shield\";\n itemDef.description = \"It's a Spectral spirit shield\";\n itemDef.modifiedModelColors = new int[13];\n itemDef.originalModelColors = new int[13];\n itemDef.modifiedModelColors[0] = 44635;\n itemDef.originalModelColors[0] = 6028;\n itemDef.modifiedModelColors[1] = 44612;\n itemDef.originalModelColors[1] = 6028;\n itemDef.modifiedModelColors[2] = 44606;\n itemDef.originalModelColors[2] = 6028;\n itemDef.modifiedModelColors[3] = 44615;\n itemDef.originalModelColors[3] = 6028;\n itemDef.modifiedModelColors[4] = 44641;\n itemDef.originalModelColors[4] = 6028;\n itemDef.modifiedModelColors[5] = 44564;\n itemDef.originalModelColors[5] = 6028;\n itemDef.modifiedModelColors[6] = 44575;\n itemDef.originalModelColors[6] = 6028;\n itemDef.modifiedModelColors[7] = 44618;\n itemDef.originalModelColors[7] = 6028;\n itemDef.modifiedModelColors[8] = 105;\n itemDef.originalModelColors[8] = 105;\n itemDef.modifiedModelColors[9] = 44603;\n itemDef.originalModelColors[9] = 6028;\n itemDef.modifiedModelColors[10] = 44570;\n itemDef.originalModelColors[10] = 6028;\n itemDef.modifiedModelColors[11] = 4500;\n itemDef.originalModelColors[11] = 6028;\n itemDef.modelZoom = 1616;\n itemDef.modelRotation1 = 396;\n itemDef.modelRotation2 = 1050;\n itemDef.modelOffset2 = -3;\n itemDef.modelOffset1 = 4;\n itemDef.femaleEquipt = 40940;\n itemDef.maleEquipt = 40940;\n itemDef.groundActions = new String[5];\n itemDef.groundActions[2] = \"Take\";\n itemDef.itemActions = new String[5];\n itemDef.itemActions[1] = \"Wear\";\n itemDef.itemActions[4] = \"Drop\";\n break;\n }\n case 8723: {\n itemDef.groundModelId = 40920;\n itemDef.name = \"DragonBone shield\";\n itemDef.description = \"It's a Spectral spirit shield\";\n itemDef.modifiedModelColors = new int[13];\n itemDef.originalModelColors = new int[13];\n itemDef.modifiedModelColors[0] = 44635;\n itemDef.originalModelColors[0] = 44635;\n itemDef.modifiedModelColors[1] = 44612;\n itemDef.originalModelColors[1] = 44612;\n itemDef.modifiedModelColors[2] = 44606;\n itemDef.originalModelColors[2] = 44606;\n itemDef.modifiedModelColors[3] = 44615;\n itemDef.originalModelColors[3] = 44615;\n itemDef.modifiedModelColors[4] = 44641;\n itemDef.originalModelColors[4] = 6028;\n itemDef.modifiedModelColors[5] = 44564;\n itemDef.originalModelColors[5] = 44564;\n itemDef.modifiedModelColors[6] = 44575;\n itemDef.originalModelColors[6] = 44575;\n itemDef.modifiedModelColors[7] = 44618;\n itemDef.originalModelColors[7] = 44618;\n itemDef.modifiedModelColors[8] = 105;\n itemDef.originalModelColors[8] = 1;\n itemDef.modifiedModelColors[9] = 44603;\n itemDef.originalModelColors[9] = 44603;\n itemDef.modifiedModelColors[10] = 44570;\n itemDef.originalModelColors[10] = 6028;\n itemDef.modifiedModelColors[11] = 4500;\n itemDef.originalModelColors[11] = 4500;\n itemDef.modelZoom = 1616;\n itemDef.modelRotation1 = 396;\n itemDef.modelRotation2 = 1050;\n itemDef.modelOffset2 = -3;\n itemDef.modelOffset1 = 4;\n itemDef.femaleEquipt = 40940;\n itemDef.maleEquipt = 40940;\n itemDef.groundActions = new String[5];\n itemDef.groundActions[2] = \"Take\";\n itemDef.itemActions = new String[5];\n itemDef.itemActions[1] = \"Wear\";\n itemDef.itemActions[4] = \"Drop\";\n break;\n }\n case 8711: {\n itemDef.itemActions = new String[5];\n itemDef.itemActions[1] = \"Wear\";\n itemDef.itemActions[4] = \"Drop\";\n itemDef.modifiedModelColors = new int[1];\n itemDef.originalModelColors = new int[1];\n itemDef.modifiedModelColors[0] = 926;\n itemDef.originalModelColors[0] = 17350;\n itemDef.groundModelId = 2438;\n itemDef.modelZoom = 730;\n itemDef.modelRotation1 = 516;\n itemDef.modelRotation2 = 0;\n itemDef.anInt204 = 0;\n itemDef.modelOffset1 = 0;\n itemDef.modelOffset2 = -10;\n itemDef.femaleEquipt = 3188;\n itemDef.maleEquipt = 3192;\n itemDef.name = \"Lime h'ween Mask\";\n itemDef.description = \"AaaarrrgmodelRotation1h... I'm a monster.\";\n break;\n }\n case 14018: {\n itemDef.itemActions = new String[5];\n itemDef.itemActions[1] = \"Wear\";\n itemDef.itemActions[4] = \"Drop\";\n itemDef.modifiedModelColors = new int[1];\n itemDef.originalModelColors = new int[1];\n itemDef.modifiedModelColors[0] = 926;\n itemDef.originalModelColors[0] = 6028;\n itemDef.groundModelId = 2438;\n itemDef.modelZoom = 730;\n itemDef.modelRotation1 = 516;\n itemDef.modelRotation2 = 0;\n itemDef.anInt204 = 0;\n itemDef.modelOffset1 = 0;\n itemDef.modelOffset2 = -10;\n itemDef.femaleEquipt = 3188;\n itemDef.maleEquipt = 3192;\n itemDef.name = \"Bronze h'ween Mask\";\n itemDef.description = \"AaaarrrgmodelRotation1h... I'm a monster.\";\n break;\n }\n case 14019: {\n itemDef.itemActions = new String[5];\n itemDef.itemActions[1] = \"Wear\";\n itemDef.itemActions[4] = \"Drop\";\n itemDef.modifiedModelColors = new int[1];\n itemDef.originalModelColors = new int[1];\n itemDef.modifiedModelColors[0] = 926;\n itemDef.originalModelColors[0] = 33;\n itemDef.groundModelId = 2438;\n itemDef.modelZoom = 730;\n itemDef.modelRotation1 = 516;\n itemDef.modelRotation2 = 0;\n itemDef.anInt204 = 0;\n itemDef.modelOffset1 = 0;\n itemDef.modelOffset2 = -10;\n itemDef.femaleEquipt = 3188;\n itemDef.maleEquipt = 3192;\n itemDef.name = \"Iron h'ween Mask\";\n itemDef.description = \"AaaarrrgmodelRotation1h... I'm a monster.\";\n break;\n }\n case 14020: {\n itemDef.itemActions = new String[5];\n itemDef.itemActions[1] = \"Wear\";\n itemDef.itemActions[4] = \"Drop\";\n itemDef.modifiedModelColors = new int[1];\n itemDef.originalModelColors = new int[1];\n itemDef.modifiedModelColors[0] = 926;\n itemDef.originalModelColors[0] = 61;\n itemDef.groundModelId = 2438;\n itemDef.modelZoom = 730;\n itemDef.modelRotation1 = 516;\n itemDef.modelRotation2 = 0;\n itemDef.anInt204 = 0;\n itemDef.modelOffset1 = 0;\n itemDef.modelOffset2 = -10;\n itemDef.femaleEquipt = 3188;\n itemDef.maleEquipt = 3192;\n itemDef.name = \"Steel h'ween Mask\";\n itemDef.description = \"AaaarrrgmodelRotation1h... I'm a monster.\";\n break;\n }\n case 14021: {\n itemDef.itemActions = new String[5];\n itemDef.itemActions[1] = \"Wear\";\n itemDef.itemActions[4] = \"Drop\";\n itemDef.modifiedModelColors = new int[1];\n itemDef.originalModelColors = new int[1];\n itemDef.modifiedModelColors[0] = 926;\n itemDef.originalModelColors[0] = 6020;\n itemDef.groundModelId = 2438;\n itemDef.modelZoom = 730;\n itemDef.modelRotation1 = 516;\n itemDef.modelRotation2 = 0;\n itemDef.anInt204 = 0;\n itemDef.modelOffset1 = 0;\n itemDef.modelOffset2 = -10;\n itemDef.femaleEquipt = 3188;\n itemDef.maleEquipt = 3192;\n itemDef.name = \"Black h'ween Mask\";\n itemDef.description = \"AaaarrrgmodelRotation1h... I'm a monster.\";\n break;\n }\n case 14022: {\n itemDef.itemActions = new String[5];\n itemDef.itemActions[1] = \"Wear\";\n itemDef.itemActions[4] = \"Drop\";\n itemDef.modifiedModelColors = new int[1];\n itemDef.originalModelColors = new int[1];\n itemDef.modifiedModelColors[0] = 926;\n itemDef.originalModelColors[0] = 255;\n itemDef.groundModelId = 2438;\n itemDef.modelZoom = 730;\n itemDef.modelRotation1 = 516;\n itemDef.modelRotation2 = 0;\n itemDef.anInt204 = 0;\n itemDef.modelOffset1 = 0;\n itemDef.modelOffset2 = -10;\n itemDef.femaleEquipt = 3188;\n itemDef.maleEquipt = 3192;\n itemDef.name = \"White h'ween Mask\";\n itemDef.description = \"AaaarrrgmodelRotation1h... I'm a monster.\";\n break;\n }\n case 14023: {\n itemDef.itemActions = new String[5];\n itemDef.itemActions[1] = \"Wear\";\n itemDef.itemActions[4] = \"Drop\";\n itemDef.modifiedModelColors = new int[1];\n itemDef.originalModelColors = new int[1];\n itemDef.modifiedModelColors[0] = 926;\n itemDef.originalModelColors[0] = 43297;\n itemDef.groundModelId = 2438;\n itemDef.modelZoom = 730;\n itemDef.modelRotation1 = 516;\n itemDef.modelRotation2 = 0;\n itemDef.anInt204 = 0;\n itemDef.modelOffset1 = 0;\n itemDef.modelOffset2 = -10;\n itemDef.femaleEquipt = 3188;\n itemDef.maleEquipt = 3192;\n itemDef.name = \"Mithril h'ween Mask\";\n itemDef.description = \"AaaarrrgmodelRotation1h... I'm a monster.\";\n break;\n }\n case 14024: {\n itemDef.itemActions = new String[5];\n itemDef.itemActions[1] = \"Wear\";\n itemDef.itemActions[4] = \"Drop\";\n itemDef.modifiedModelColors = new int[1];\n itemDef.originalModelColors = new int[1];\n itemDef.modifiedModelColors[0] = 926;\n itemDef.originalModelColors[0] = 21662;\n itemDef.groundModelId = 2438;\n itemDef.modelZoom = 730;\n itemDef.modelRotation1 = 516;\n itemDef.modelRotation2 = 0;\n itemDef.anInt204 = 0;\n itemDef.modelOffset1 = 0;\n itemDef.modelOffset2 = -10;\n itemDef.femaleEquipt = 3188;\n itemDef.maleEquipt = 3192;\n itemDef.name = \"Adamant h'ween Mask\";\n itemDef.description = \"AaaarrrgmodelRotation1h... I'm a monster.\";\n break;\n }\n case 14025: {\n itemDef.itemActions = new String[5];\n itemDef.itemActions[1] = \"Wear\";\n itemDef.itemActions[4] = \"Drop\";\n itemDef.modifiedModelColors = new int[1];\n itemDef.originalModelColors = new int[1];\n itemDef.modifiedModelColors[0] = 926;\n itemDef.originalModelColors[0] = 36252;\n itemDef.groundModelId = 2438;\n itemDef.modelZoom = 730;\n itemDef.modelRotation1 = 516;\n itemDef.modelRotation2 = 0;\n itemDef.anInt204 = 0;\n itemDef.modelOffset1 = 0;\n itemDef.modelOffset2 = -10;\n itemDef.femaleEquipt = 3188;\n itemDef.maleEquipt = 3192;\n itemDef.name = \"Rune h'ween Mask\";\n itemDef.description = \"AaaarrrgmodelRotation1h... I'm a monster.\";\n break;\n }\n case 14026: {\n itemDef.itemActions = new String[5];\n itemDef.itemActions[1] = \"Wear\";\n itemDef.itemActions[4] = \"Drop\";\n itemDef.modifiedModelColors = new int[1];\n itemDef.originalModelColors = new int[1];\n itemDef.modifiedModelColors[0] = 945;\n itemDef.originalModelColors[0] = 926;\n itemDef.groundModelId = 2438;\n itemDef.modelZoom = 730;\n itemDef.modelRotation1 = 516;\n itemDef.modelRotation2 = 0;\n itemDef.anInt204 = 0;\n itemDef.modelOffset1 = 0;\n itemDef.modelOffset2 = -10;\n itemDef.femaleEquipt = 3188;\n itemDef.maleEquipt = 3192;\n itemDef.name = \"Dragon h'ween Mask\";\n itemDef.description = \"AaaarrrgmodelRotation1h... I'm a monster.\";\n break;\n }\n case 14027: {\n itemDef.itemActions = new String[5];\n itemDef.itemActions[1] = \"Wear\";\n itemDef.itemActions[4] = \"Drop\";\n itemDef.modifiedModelColors = new int[1];\n itemDef.originalModelColors = new int[1];\n itemDef.modifiedModelColors[0] = 926;\n itemDef.originalModelColors[0] = 6073;\n itemDef.groundModelId = 2438;\n itemDef.modelZoom = 730;\n itemDef.modelRotation1 = 516;\n itemDef.modelRotation2 = 0;\n itemDef.anInt204 = 0;\n itemDef.modelOffset1 = 0;\n itemDef.modelOffset2 = -10;\n itemDef.femaleEquipt = 3188;\n itemDef.maleEquipt = 3192;\n itemDef.name = \"Lava h'ween Mask\";\n itemDef.description = \"AaaarrrgmodelRotation1h... I'm a monster.\";\n break;\n }\n case 14028: {\n itemDef.itemActions = new String[5];\n itemDef.itemActions[1] = \"Wear\";\n itemDef.itemActions[4] = \"Drop\";\n itemDef.groundModelId = 2438;\n itemDef.modelZoom = 730;\n itemDef.modelRotation1 = 516;\n itemDef.modelRotation2 = 0;\n itemDef.anInt204 = 0;\n itemDef.rdc3 = 521111;\n itemDef.modelOffset1 = 0;\n itemDef.modelOffset2 = -10;\n itemDef.femaleEquipt = 3188;\n itemDef.maleEquipt = 3192;\n itemDef.name = \"Pink hell h'ween Mask\";\n itemDef.description = \"AaaarrrgmodelRotation1h... I'm a monster.\";\n break;\n }\n case 14029: {\n itemDef.itemActions = new String[5];\n itemDef.itemActions[1] = \"Wear\";\n itemDef.itemActions[4] = \"Drop\";\n itemDef.groundModelId = 2438;\n itemDef.modelZoom = 730;\n itemDef.modelRotation1 = 516;\n itemDef.modelRotation2 = 0;\n itemDef.anInt204 = 0;\n itemDef.rdc3 = 225555;\n itemDef.modelOffset1 = 0;\n itemDef.modelOffset2 = -10;\n itemDef.femaleEquipt = 3188;\n itemDef.maleEquipt = 3192;\n itemDef.name = \"Green hell h'ween Mask\";\n itemDef.description = \"AaaarrrgmodelRotation1h... I'm a monster.\";\n break;\n }\n case 14030: {\n itemDef.itemActions = new String[5];\n itemDef.itemActions[1] = \"Wear\";\n itemDef.itemActions[4] = \"Drop\";\n itemDef.groundModelId = 2438;\n itemDef.modelZoom = 730;\n itemDef.modelRotation1 = 516;\n itemDef.modelRotation2 = 0;\n itemDef.anInt204 = 0;\n itemDef.rdc3 = 152222;\n itemDef.modelOffset1 = 0;\n itemDef.modelOffset2 = -10;\n itemDef.femaleEquipt = 3188;\n itemDef.maleEquipt = 3192;\n itemDef.name = \"Lime hell h'ween Mask\";\n itemDef.description = \"AaaarrrgmodelRotation1h... I'm a monster.\";\n break;\n }\n case 14031: {\n itemDef.itemActions = new String[5];\n itemDef.itemActions[1] = \"Wear\";\n itemDef.itemActions[4] = \"Drop\";\n itemDef.groundModelId = 2438;\n itemDef.modelZoom = 730;\n itemDef.modelRotation1 = 516;\n itemDef.modelRotation2 = 0;\n itemDef.anInt204 = 0;\n itemDef.rdc3 = 834788;\n itemDef.modelOffset1 = 0;\n itemDef.modelOffset2 = -10;\n itemDef.femaleEquipt = 3188;\n itemDef.maleEquipt = 3192;\n itemDef.name = \"White hell h'ween Mask\";\n itemDef.description = \"AaaarrrgmodelRotation1h... I'm a monster.\";\n break;\n }\n case 14032: {\n itemDef.itemActions = new String[5];\n itemDef.itemActions[1] = \"Wear\";\n itemDef.itemActions[4] = \"Drop\";\n itemDef.groundModelId = 2438;\n itemDef.modelZoom = 730;\n itemDef.modelRotation1 = 516;\n itemDef.modelRotation2 = 0;\n itemDef.anInt204 = 0;\n itemDef.rdc3 = 1555;\n itemDef.modelOffset1 = 0;\n itemDef.modelOffset2 = -10;\n itemDef.femaleEquipt = 3188;\n itemDef.maleEquipt = 3192;\n itemDef.name = \"Bronze hell h'ween Mask\";\n itemDef.description = \"AaaarrrgmodelRotation1h... I'm a monster.\";\n break;\n }\n case 14033: {\n itemDef.itemActions = new String[5];\n itemDef.itemActions[1] = \"Wear\";\n itemDef.itemActions[4] = \"Drop\";\n itemDef.groundModelId = 2438;\n itemDef.modelZoom = 730;\n itemDef.modelRotation1 = 516;\n itemDef.modelRotation2 = 0;\n itemDef.anInt204 = 0;\n itemDef.rdc3 = 52666;\n itemDef.modelOffset1 = 0;\n itemDef.modelOffset2 = -10;\n itemDef.femaleEquipt = 3188;\n itemDef.maleEquipt = 3192;\n itemDef.name = \"Purple hell h'ween Mask\";\n itemDef.description = \"AaaarrrgmodelRotation1h... I'm a monster.\";\n break;\n }\n case 14034: {\n itemDef.itemActions = new String[5];\n itemDef.itemActions[1] = \"Wear\";\n itemDef.itemActions[4] = \"Drop\";\n itemDef.modifiedModelColors = new int[1];\n itemDef.originalModelColors = new int[1];\n itemDef.modifiedModelColors[0] = 926;\n itemDef.originalModelColors[0] = 51136;\n itemDef.groundModelId = 2438;\n itemDef.modelZoom = 730;\n itemDef.modelRotation1 = 516;\n itemDef.modelRotation2 = 0;\n itemDef.anInt204 = 0;\n itemDef.modelOffset1 = 0;\n itemDef.modelOffset2 = -10;\n itemDef.femaleEquipt = 3188;\n itemDef.maleEquipt = 3192;\n itemDef.name = \"Purple h'ween Mask\";\n itemDef.description = \"AaaarrrgmodelRotation1h... I'm a monster.\";\n break;\n }\n case 14035: {\n itemDef.itemActions = new String[5];\n itemDef.itemActions[1] = \"Wear\";\n itemDef.itemActions[4] = \"Drop\";\n itemDef.modifiedModelColors = new int[1];\n itemDef.originalModelColors = new int[1];\n itemDef.modifiedModelColors[0] = 926;\n itemDef.originalModelColors[0] = 290770;\n itemDef.groundModelId = 2438;\n itemDef.modelZoom = 730;\n itemDef.modelRotation1 = 516;\n itemDef.modelRotation2 = 0;\n itemDef.anInt204 = 0;\n itemDef.modelOffset1 = 0;\n itemDef.modelOffset2 = -10;\n itemDef.femaleEquipt = 3188;\n itemDef.maleEquipt = 3192;\n itemDef.name = \"Blurite h'ween Mask\";\n itemDef.description = \"AaaarrrgmodelRotation1h... I'm a monster.\";\n break;\n }\n case 14036: {\n itemDef.itemActions = new String[5];\n itemDef.itemActions[1] = \"Wear\";\n itemDef.itemActions[4] = \"Drop\";\n itemDef.modifiedModelColors = new int[1];\n itemDef.originalModelColors = new int[1];\n itemDef.modifiedModelColors[0] = 926;\n itemDef.originalModelColors[0] = 226770;\n itemDef.groundModelId = 2438;\n itemDef.modelZoom = 730;\n itemDef.modelRotation1 = 516;\n itemDef.modelRotation2 = 0;\n itemDef.anInt204 = 0;\n itemDef.modelOffset1 = 0;\n itemDef.modelOffset2 = -10;\n itemDef.femaleEquipt = 3188;\n itemDef.maleEquipt = 3192;\n itemDef.name = \"Aqua h'ween Mask\";\n itemDef.description = \"AaaarrrgmodelRotation1h... I'm a monster.\";\n break;\n }\n case 938: {\n itemDef.name = \"Robin hood hat\";\n itemDef.groundModelId = 3021;\n itemDef.stackable = false;\n itemDef.modifiedModelColors = new int[3];\n itemDef.originalModelColors = new int[3];\n itemDef.modifiedModelColors[0] = 15009;\n itemDef.originalModelColors[0] = 3745;\n itemDef.modifiedModelColors[1] = 17294;\n itemDef.originalModelColors[1] = 3982;\n itemDef.modifiedModelColors[2] = 15252;\n itemDef.originalModelColors[2] = 3988;\n itemDef.modelZoom = 650;\n itemDef.modelRotation1 = 2044;\n itemDef.modelRotation2 = 256;\n itemDef.modelOffset1 = -3;\n itemDef.modelOffset2 = -2;\n itemDef.femaleEquipt = 3378;\n itemDef.maleEquipt = 3382;\n itemDef.itemActions = new String[5];\n itemDef.itemActions[1] = \"Wear\";\n break;\n }\n case 939: {\n itemDef.name = \"Robin hood hat\";\n itemDef.groundModelId = 3021;\n itemDef.stackable = false;\n itemDef.modifiedModelColors = new int[3];\n itemDef.originalModelColors = new int[3];\n itemDef.modifiedModelColors[0] = 15009;\n itemDef.originalModelColors[0] = 30847;\n itemDef.modifiedModelColors[1] = 17294;\n itemDef.originalModelColors[1] = 32895;\n itemDef.modifiedModelColors[2] = 15252;\n itemDef.originalModelColors[2] = 30847;\n itemDef.modelZoom = 650;\n itemDef.modelRotation1 = 2044;\n itemDef.modelRotation2 = 256;\n itemDef.modelOffset1 = -3;\n itemDef.modelOffset2 = -2;\n itemDef.femaleEquipt = 3378;\n itemDef.maleEquipt = 3382;\n itemDef.itemActions = new String[5];\n itemDef.itemActions[1] = \"Wear\";\n break;\n }\n case 940: {\n itemDef.name = \"Robin hood hat\";\n itemDef.groundModelId = 3021;\n itemDef.stackable = false;\n itemDef.modifiedModelColors = new int[3];\n itemDef.originalModelColors = new int[3];\n itemDef.modifiedModelColors[0] = 15009;\n itemDef.originalModelColors[0] = 10015;\n itemDef.modifiedModelColors[1] = 17294;\n itemDef.originalModelColors[1] = 7730;\n itemDef.modifiedModelColors[2] = 15252;\n itemDef.originalModelColors[2] = 7973;\n itemDef.modelZoom = 650;\n itemDef.modelRotation1 = 2044;\n itemDef.modelRotation2 = 256;\n itemDef.modelOffset1 = -3;\n itemDef.modelOffset2 = -2;\n itemDef.femaleEquipt = 3378;\n itemDef.maleEquipt = 3382;\n itemDef.itemActions = new String[5];\n itemDef.itemActions[1] = \"Wear\";\n break;\n }\n case 941: {\n itemDef.name = \"Robin hood hat\";\n itemDef.groundModelId = 3021;\n itemDef.stackable = false;\n itemDef.modifiedModelColors = new int[3];\n itemDef.originalModelColors = new int[3];\n itemDef.modifiedModelColors[0] = 15009;\n itemDef.originalModelColors[0] = 35489;\n itemDef.modifiedModelColors[1] = 17294;\n itemDef.originalModelColors[1] = 37774;\n itemDef.modifiedModelColors[2] = 15252;\n itemDef.originalModelColors[2] = 35732;\n itemDef.modelZoom = 650;\n itemDef.modelRotation1 = 2044;\n itemDef.modelRotation2 = 256;\n itemDef.modelOffset1 = -3;\n itemDef.modelOffset2 = -2;\n itemDef.femaleEquipt = 3378;\n itemDef.maleEquipt = 3382;\n itemDef.itemActions = new String[5];\n itemDef.itemActions[1] = \"Wear\";\n break;\n }\n case 904: {\n itemDef.name = \"Gnome scarf\";\n itemDef.stackable = false;\n itemDef.groundModelId = 17125;\n itemDef.modifiedModelColors = new int[3];\n itemDef.originalModelColors = new int[3];\n itemDef.modifiedModelColors[0] = 119;\n itemDef.originalModelColors[0] = 7737;\n itemDef.modifiedModelColors[1] = 103;\n itemDef.originalModelColors[1] = 7737;\n itemDef.modifiedModelColors[2] = 127;\n itemDef.originalModelColors[2] = 7737;\n itemDef.modelZoom = 919;\n itemDef.modelRotation1 = 595;\n itemDef.modelRotation2 = 0;\n itemDef.modelOffset1 = -7;\n itemDef.modelOffset2 = 8;\n itemDef.femaleEquipt = 17155;\n itemDef.maleEquipt = 17157;\n itemDef.itemActions = new String[5];\n itemDef.itemActions[1] = \"Wear\";\n break;\n }\n case 943: {\n itemDef.name = \"Gnome scarf\";\n itemDef.groundModelId = 17125;\n itemDef.stackable = false;\n itemDef.modifiedModelColors = new int[3];\n itemDef.originalModelColors = new int[3];\n itemDef.modifiedModelColors[0] = 119;\n itemDef.originalModelColors[0] = 725;\n itemDef.modifiedModelColors[1] = 103;\n itemDef.originalModelColors[1] = 725;\n itemDef.modifiedModelColors[2] = 127;\n itemDef.originalModelColors[2] = 725;\n itemDef.modelZoom = 919;\n itemDef.modelRotation1 = 595;\n itemDef.modelRotation2 = 0;\n itemDef.modelOffset1 = -7;\n itemDef.modelOffset2 = 8;\n itemDef.femaleEquipt = 17155;\n itemDef.maleEquipt = 17157;\n itemDef.itemActions = new String[5];\n itemDef.itemActions[1] = \"Wear\";\n break;\n }\n case 906: {\n itemDef.name = \"Gnome scarf\";\n itemDef.groundModelId = 17125;\n itemDef.stackable = false;\n itemDef.modifiedModelColors = new int[3];\n itemDef.originalModelColors = new int[3];\n itemDef.modifiedModelColors[0] = 119;\n itemDef.originalModelColors[0] = -22250;\n itemDef.modifiedModelColors[1] = 103;\n itemDef.originalModelColors[1] = -22250;\n itemDef.modifiedModelColors[2] = 127;\n itemDef.originalModelColors[2] = -22250;\n itemDef.modelZoom = 919;\n itemDef.modelRotation1 = 595;\n itemDef.modelRotation2 = 0;\n itemDef.modelOffset1 = -7;\n itemDef.modelOffset2 = 8;\n itemDef.femaleEquipt = 17155;\n itemDef.maleEquipt = 17157;\n itemDef.itemActions = new String[5];\n itemDef.itemActions[1] = \"Wear\";\n break;\n }\n case 899: {\n itemDef.name = \"Gnome scarf\";\n itemDef.groundModelId = 17125;\n itemDef.stackable = false;\n itemDef.modifiedModelColors = new int[3];\n itemDef.originalModelColors = new int[3];\n itemDef.modifiedModelColors[0] = 119;\n itemDef.originalModelColors[0] = 23970;\n itemDef.modifiedModelColors[1] = 103;\n itemDef.originalModelColors[1] = 23970;\n itemDef.modifiedModelColors[2] = 127;\n itemDef.originalModelColors[2] = 23970;\n itemDef.modelZoom = 919;\n itemDef.modelRotation1 = 595;\n itemDef.modelRotation2 = 0;\n itemDef.modelOffset1 = -7;\n itemDef.modelOffset2 = 8;\n itemDef.femaleEquipt = 17155;\n itemDef.maleEquipt = 17157;\n itemDef.itemActions = new String[5];\n itemDef.itemActions[1] = \"Wear\";\n break;\n }\n case 19904: {\n itemDef.itemActions = new String[5];\n itemDef.itemActions[1] = \"Wear\";\n itemDef.originalModelColors = new int[1];\n itemDef.originalModelColors[0] = 57300;\n itemDef.modifiedModelColors = new int[1];\n itemDef.modifiedModelColors[0] = 944;\n itemDef.groundModelId = 5412;\n itemDef.modelZoom = 840;\n itemDef.modelRotation1 = 280;\n itemDef.modelRotation2 = 0;\n itemDef.anInt204 = 0;\n itemDef.modelOffset1 = -2;\n itemDef.modelOffset2 = 56;\n itemDef.femaleEquipt = 5409;\n itemDef.maleEquipt = 5409;\n itemDef.anInt188 = -1;\n itemDef.anInt164 = -1;\n itemDef.anInt175 = -1;\n itemDef.anInt197 = -1;\n itemDef.name = \"Pink Whip\";\n itemDef.stackable = false;\n itemDef.description = \"A weapon from the abyss.\";\n break;\n }\n case 19905: {\n itemDef.itemActions = new String[5];\n itemDef.itemActions[1] = \"Wear\";\n itemDef.originalModelColors = new int[1];\n itemDef.originalModelColors[0] = 1;\n itemDef.modifiedModelColors = new int[1];\n itemDef.modifiedModelColors[0] = 944;\n itemDef.groundModelId = 5412;\n itemDef.modelZoom = 840;\n itemDef.modelRotation1 = 280;\n itemDef.modelRotation2 = 0;\n itemDef.anInt204 = 0;\n itemDef.modelOffset1 = -2;\n itemDef.modelOffset2 = 56;\n itemDef.femaleEquipt = 5409;\n itemDef.maleEquipt = 5409;\n itemDef.anInt188 = -1;\n itemDef.anInt164 = -1;\n itemDef.anInt175 = -1;\n itemDef.anInt197 = -1;\n itemDef.name = \"Black Whip\";\n itemDef.stackable = false;\n itemDef.description = \"A weapon from the abyss.\";\n break;\n }\n case 19906: {\n itemDef.itemActions = new String[5];\n itemDef.itemActions[1] = \"Wear\";\n itemDef.originalModelColors = new int[1];\n itemDef.originalModelColors[0] = 33;\n itemDef.modifiedModelColors = new int[1];\n itemDef.modifiedModelColors[0] = 944;\n itemDef.groundModelId = 5412;\n itemDef.modelZoom = 840;\n itemDef.modelRotation1 = 280;\n itemDef.modelRotation2 = 0;\n itemDef.anInt204 = 0;\n itemDef.modelOffset1 = -2;\n itemDef.modelOffset2 = 56;\n itemDef.femaleEquipt = 5409;\n itemDef.maleEquipt = 5409;\n itemDef.anInt188 = -1;\n itemDef.anInt164 = -1;\n itemDef.anInt175 = -1;\n itemDef.anInt197 = -1;\n itemDef.name = \"Iron Whip\";\n itemDef.stackable = false;\n itemDef.description = \"A weapon from the abyss.\";\n break;\n }\n case 19908: {\n itemDef.itemActions = new String[5];\n itemDef.itemActions[1] = \"Wear\";\n itemDef.originalModelColors = new int[1];\n itemDef.originalModelColors[0] = 21662;\n itemDef.modifiedModelColors = new int[1];\n itemDef.modifiedModelColors[0] = 944;\n itemDef.groundModelId = 5412;\n itemDef.modelZoom = 840;\n itemDef.modelRotation1 = 280;\n itemDef.modelRotation2 = 0;\n itemDef.anInt204 = 0;\n itemDef.modelOffset1 = -2;\n itemDef.modelOffset2 = 56;\n itemDef.femaleEquipt = 5409;\n itemDef.maleEquipt = 5409;\n itemDef.anInt188 = -1;\n itemDef.anInt164 = -1;\n itemDef.anInt175 = -1;\n itemDef.anInt197 = -1;\n itemDef.name = \"Adamant Whip\";\n itemDef.stackable = false;\n itemDef.description = \"A weapon from the abyss.\";\n break;\n }\n case 19909: {\n itemDef.itemActions = new String[5];\n itemDef.itemActions[1] = \"Wear\";\n itemDef.originalModelColors = new int[1];\n itemDef.originalModelColors[0] = 43297;\n itemDef.modifiedModelColors = new int[1];\n itemDef.modifiedModelColors[0] = 944;\n itemDef.groundModelId = 5412;\n itemDef.modelZoom = 840;\n itemDef.modelRotation1 = 280;\n itemDef.modelRotation2 = 0;\n itemDef.anInt204 = 0;\n itemDef.modelOffset1 = -2;\n itemDef.modelOffset2 = 56;\n itemDef.femaleEquipt = 5409;\n itemDef.maleEquipt = 5409;\n itemDef.anInt188 = -1;\n itemDef.anInt164 = -1;\n itemDef.anInt175 = -1;\n itemDef.anInt197 = -1;\n itemDef.name = \"Mithirl Whip\";\n itemDef.stackable = false;\n itemDef.description = \"a weapon from the abyss\";\n break;\n }\n case 19910: {\n itemDef.itemActions = new String[5];\n itemDef.itemActions[1] = \"Wear\";\n itemDef.originalModelColors = new int[1];\n itemDef.originalModelColors[0] = 49823;\n itemDef.modifiedModelColors = new int[1];\n itemDef.modifiedModelColors[0] = 944;\n itemDef.groundModelId = 5412;\n itemDef.modelZoom = 840;\n itemDef.modelRotation1 = 280;\n itemDef.modelRotation2 = 0;\n itemDef.anInt204 = 0;\n itemDef.modelOffset1 = -2;\n itemDef.modelOffset2 = 56;\n itemDef.femaleEquipt = 5409;\n itemDef.maleEquipt = 5409;\n itemDef.anInt188 = -1;\n itemDef.anInt164 = -1;\n itemDef.anInt175 = -1;\n itemDef.anInt197 = -1;\n itemDef.name = \"Elemental Whip\";\n itemDef.stackable = false;\n itemDef.description = \"a weapon from the abyss\";\n break;\n }\n case 19911: {\n itemDef.itemActions = new String[5];\n itemDef.itemActions[1] = \"Wear\";\n itemDef.originalModelColors = new int[1];\n itemDef.originalModelColors[0] = 17350;\n itemDef.modifiedModelColors = new int[1];\n itemDef.modifiedModelColors[0] = 944;\n itemDef.groundModelId = 5412;\n itemDef.modelZoom = 840;\n itemDef.modelRotation1 = 280;\n itemDef.modelRotation2 = 0;\n itemDef.anInt204 = 0;\n itemDef.modelOffset1 = -2;\n itemDef.modelOffset2 = 56;\n itemDef.femaleEquipt = 5409;\n itemDef.maleEquipt = 5409;\n itemDef.anInt188 = -1;\n itemDef.anInt164 = -1;\n itemDef.anInt175 = -1;\n itemDef.anInt197 = -1;\n itemDef.name = \"Lime Whip\";\n itemDef.stackable = false;\n itemDef.description = \"A weapon from the abyss.\";\n break;\n }\n case 19913: {\n itemDef.itemActions = new String[5];\n itemDef.itemActions[1] = \"Wear\";\n itemDef.originalModelColors = new int[1];\n itemDef.originalModelColors[0] = 43072;\n itemDef.modifiedModelColors = new int[1];\n itemDef.modifiedModelColors[0] = 944;\n itemDef.groundModelId = 5412;\n itemDef.modelZoom = 840;\n itemDef.modelRotation1 = 280;\n itemDef.modelRotation2 = 0;\n itemDef.anInt204 = 0;\n itemDef.modelOffset1 = -2;\n itemDef.modelOffset2 = 56;\n itemDef.femaleEquipt = 5409;\n itemDef.maleEquipt = 5409;\n itemDef.anInt188 = -1;\n itemDef.anInt164 = -1;\n itemDef.anInt175 = -1;\n itemDef.anInt197 = -1;\n itemDef.name = \"Steel Whip\";\n itemDef.stackable = false;\n itemDef.description = \"A weapon from the abyss.\";\n break;\n }\n case 19914: {\n itemDef.itemActions = new String[5];\n itemDef.itemActions[1] = \"Wear\";\n itemDef.originalModelColors = new int[1];\n itemDef.originalModelColors[0] = 36133;\n itemDef.modifiedModelColors = new int[1];\n itemDef.modifiedModelColors[0] = 944;\n itemDef.groundModelId = 5412;\n itemDef.modelZoom = 840;\n itemDef.modelRotation1 = 280;\n itemDef.modelRotation2 = 0;\n itemDef.anInt204 = 0;\n itemDef.modelOffset1 = -2;\n itemDef.modelOffset2 = 56;\n itemDef.femaleEquipt = 5409;\n itemDef.maleEquipt = 5409;\n itemDef.anInt188 = -1;\n itemDef.anInt164 = -1;\n itemDef.anInt175 = -1;\n itemDef.anInt197 = -1;\n itemDef.name = \"Rune Whip\";\n itemDef.stackable = false;\n itemDef.description = \"A weapon from the abyss.\";\n break;\n }\n case 19915: {\n itemDef.itemActions = new String[5];\n itemDef.itemActions[1] = \"Wear\";\n itemDef.originalModelColors = new int[1];\n itemDef.originalModelColors[0] = 7833;\n itemDef.modifiedModelColors = new int[1];\n itemDef.modifiedModelColors[0] = 944;\n itemDef.groundModelId = 5412;\n itemDef.modelZoom = 840;\n itemDef.modelRotation1 = 280;\n itemDef.modelRotation2 = 0;\n itemDef.anInt204 = 0;\n itemDef.modelOffset1 = -2;\n itemDef.modelOffset2 = 56;\n itemDef.femaleEquipt = 5409;\n itemDef.maleEquipt = 5409;\n itemDef.anInt188 = -1;\n itemDef.anInt164 = -1;\n itemDef.anInt175 = -1;\n itemDef.anInt197 = -1;\n itemDef.name = \"Barrows Whip\";\n itemDef.stackable = false;\n itemDef.description = \"A weapon from the abyss.\";\n break;\n }\n case 19916: {\n itemDef.itemActions = new String[5];\n itemDef.itemActions[1] = \"Wear\";\n itemDef.originalModelColors = new int[1];\n itemDef.originalModelColors[0] = 6073;\n itemDef.modifiedModelColors = new int[1];\n itemDef.modifiedModelColors[0] = 944;\n itemDef.groundModelId = 5412;\n itemDef.modelZoom = 840;\n itemDef.modelRotation1 = 280;\n itemDef.modelRotation2 = 0;\n itemDef.anInt204 = 0;\n itemDef.modelOffset1 = -2;\n itemDef.modelOffset2 = 56;\n itemDef.femaleEquipt = 5409;\n itemDef.maleEquipt = 5409;\n itemDef.anInt188 = -1;\n itemDef.anInt164 = -1;\n itemDef.anInt175 = -1;\n itemDef.anInt197 = -1;\n itemDef.name = \"Lava Whip\";\n itemDef.stackable = false;\n itemDef.description = \"A weapon from the abyss.\";\n break;\n }\n case 19907: {\n itemDef.itemActions = new String[5];\n itemDef.itemActions[1] = \"Wear\";\n itemDef.originalModelColors = new int[1];\n itemDef.originalModelColors[0] = 6028;\n itemDef.modifiedModelColors = new int[1];\n itemDef.modifiedModelColors[0] = 944;\n itemDef.groundModelId = 5412;\n itemDef.modelZoom = 840;\n itemDef.modelRotation1 = 280;\n itemDef.modelRotation2 = 0;\n itemDef.anInt204 = 0;\n itemDef.modelOffset1 = -2;\n itemDef.modelOffset2 = 56;\n itemDef.femaleEquipt = 5409;\n itemDef.maleEquipt = 5409;\n itemDef.anInt188 = -1;\n itemDef.anInt164 = -1;\n itemDef.anInt175 = -1;\n itemDef.anInt197 = -1;\n itemDef.name = \"Bronze Whip\";\n itemDef.stackable = false;\n itemDef.description = \"A weapon from the abyss.\";\n break;\n }\n case 19912: {\n itemDef.itemActions = new String[5];\n itemDef.itemActions[1] = \"Wear\";\n itemDef.originalModelColors = new int[1];\n itemDef.originalModelColors[0] = 1000;\n itemDef.modifiedModelColors = new int[1];\n itemDef.modifiedModelColors[0] = 944;\n itemDef.groundModelId = 5412;\n itemDef.modelZoom = 840;\n itemDef.modelRotation1 = 280;\n itemDef.modelRotation2 = 0;\n itemDef.anInt204 = 0;\n itemDef.modelOffset1 = -2;\n itemDef.modelOffset2 = 56;\n itemDef.femaleEquipt = 5409;\n itemDef.maleEquipt = 5409;\n itemDef.anInt188 = -1;\n itemDef.anInt164 = -1;\n itemDef.anInt175 = -1;\n itemDef.anInt197 = -1;\n itemDef.name = \"Dragon Whip\";\n itemDef.stackable = false;\n itemDef.description = \"A weapon from the abyss.\";\n break;\n }\n case 19917: {\n itemDef.itemActions = new String[5];\n itemDef.itemActions[1] = \"Wear\";\n itemDef.originalModelColors = new int[1];\n itemDef.originalModelColors[0] = 255;\n itemDef.modifiedModelColors = new int[1];\n itemDef.modifiedModelColors[0] = 944;\n itemDef.groundModelId = 5412;\n itemDef.modelZoom = 840;\n itemDef.modelRotation1 = 280;\n itemDef.modelRotation2 = 0;\n itemDef.anInt204 = 0;\n itemDef.modelOffset1 = -2;\n itemDef.modelOffset2 = 56;\n itemDef.femaleEquipt = 5409;\n itemDef.maleEquipt = 5409;\n itemDef.anInt188 = -1;\n itemDef.anInt164 = -1;\n itemDef.anInt175 = -1;\n itemDef.anInt197 = -1;\n itemDef.name = \"White Whip\";\n itemDef.description = \"A weapon from the abyss.\";\n itemDef.stackable = false;\n break;\n }\n case 798: {\n itemDef.name = \"Trickster helm\";\n itemDef.description = \"Its a Trickster helm\";\n itemDef.maleEquipt = 44764;\n itemDef.femaleEquipt = 44764;\n itemDef.groundModelId = 45328;\n itemDef.modelRotation1 = 5;\n itemDef.modelRotation2 = 1889;\n itemDef.modelZoom = 738;\n itemDef.modelOffset2 = 0;\n itemDef.modelOffset1 = 0;\n itemDef.itemActions = new String[5];\n itemDef.itemActions[1] = \"Wear\";\n break;\n }\n case 796: {\n itemDef.name = \"Trickster robe\";\n itemDef.description = \"Its a Trickster robe\";\n itemDef.maleEquipt = 44786;\n itemDef.femaleEquipt = 44786;\n itemDef.groundModelId = 45329;\n itemDef.modelRotation1 = 593;\n itemDef.modelRotation2 = 2041;\n itemDef.modelZoom = 1420;\n itemDef.modelOffset2 = 0;\n itemDef.modelOffset1 = 0;\n itemDef.itemActions = new String[5];\n itemDef.itemActions[1] = \"Wear\";\n break;\n }\n case 797: {\n itemDef.name = \"Trickster robe legs\";\n itemDef.description = \"Its a Trickster robe\";\n itemDef.maleEquipt = 44770;\n itemDef.femaleEquipt = 44770;\n itemDef.groundModelId = 45335;\n itemDef.modelRotation1 = 567;\n itemDef.modelRotation2 = 1023;\n itemDef.modelZoom = 2105;\n itemDef.modelOffset2 = 0;\n itemDef.modelOffset1 = 0;\n itemDef.itemActions = new String[5];\n itemDef.itemActions[1] = \"Wear\";\n break;\n }\n case 1685: {\n itemDef.groundModelId = 45316;\n itemDef.name = \"Trickster boots\";\n itemDef.description = \"Its a Trickster boot\";\n itemDef.modelZoom = 848;\n itemDef.modelRotation2 = 141;\n itemDef.modelRotation1 = 141;\n itemDef.modelOffset1 = -9;\n itemDef.modelOffset2 = 0;\n itemDef.stackable = false;\n itemDef.itemActions = new String[5];\n itemDef.itemActions[1] = \"Wear\";\n itemDef.maleEquipt = 44757;\n itemDef.femaleEquipt = 44757;\n break;\n }\n case 894: {\n itemDef.groundModelId = 45317;\n itemDef.name = \"Trickster gloves\";\n itemDef.description = \"Its a Trickster glove\";\n itemDef.modelZoom = 830;\n itemDef.modelRotation2 = 150;\n itemDef.modelRotation1 = 536;\n itemDef.modelOffset1 = 1;\n itemDef.modelOffset2 = 3;\n itemDef.stackable = false;\n itemDef.itemActions = new String[5];\n itemDef.itemActions[1] = \"Wear\";\n itemDef.maleEquipt = 44761;\n itemDef.femaleEquipt = 44761;\n break;\n }\n case 895: {\n itemDef.groundModelId = 44633;\n itemDef.name = \"Vanguard helm\";\n itemDef.description = \"Its a Vanguard helm\";\n itemDef.modelZoom = 855;\n itemDef.modelRotation1 = 1966;\n itemDef.modelRotation2 = 5;\n itemDef.modelOffset2 = 4;\n itemDef.modelOffset1 = -1;\n itemDef.stackable = false;\n itemDef.itemActions = new String[5];\n itemDef.itemActions[1] = \"Wear\";\n itemDef.maleEquipt = 44769;\n itemDef.femaleEquipt = 44769;\n break;\n }\n case 896: {\n itemDef.groundModelId = 44627;\n itemDef.name = \"Vanguard body\";\n itemDef.description = \"Its a Vanguard body\";\n itemDef.modelZoom = 1513;\n itemDef.modelRotation2 = 2041;\n itemDef.modelRotation1 = 593;\n var1_1.modelOffset1 = 3;\n var1_1.modelOffset2 = -11;\n var1_1.stackable = false;\n var1_1.itemActions = new String[5];\n var1_1.itemActions[1] = \"Wear\";\n var1_1.maleEquipt = 44812;\n var1_1.femaleEquipt = 44812;\n break;\n }\n case 2052: {\n var1_1.groundModelId = 79903;\n var1_1.name = \"Vanguard legs\";\n var1_1.description = \"Its a Vanguard legs\";\n var1_1.modelZoom = 1711;\n var1_1.modelRotation2 = 0;\n var1_1.modelRotation1 = 360;\n var1_1.modelOffset1 = 3;\n var1_1.modelOffset2 = -11;\n var1_1.stackable = false;\n var1_1.itemActions = new String[5];\n var1_1.itemActions[1] = \"Wear\";\n var1_1.maleEquipt = 44768;\n var1_1.femaleEquipt = 44768;\n break;\n }\n case 898: {\n var1_1.groundModelId = 79340;\n var1_1.name = \"Vanguard gloves\";\n var1_1.description = \"Its a Vanguard glove\";\n var1_1.modelZoom = 830;\n var1_1.modelRotation2 = 0;\n var1_1.modelRotation1 = 536;\n var1_1.modelOffset1 = 9;\n var1_1.modelOffset2 = 3;\n var1_1.stackable = false;\n var1_1.itemActions = new String[5];\n var1_1.itemActions[1] = \"Wear\";\n var1_1.maleEquipt = 44758;\n var1_1.femaleEquipt = 44758;\n break;\n }\n case 18995: {\n var1_1.groundModelId = 44700;\n var1_1.name = \"Vanguard boots\";\n var1_1.description = \"Its a Vanguard boot\";\n var1_1.modelZoom = 848;\n var1_1.modelRotation2 = 141;\n var1_1.modelRotation1 = 141;\n var1_1.modelOffset1 = 4;\n var1_1.modelOffset2 = 0;\n var1_1.stackable = false;\n var1_1.itemActions = new String[5];\n var1_1.itemActions[1] = \"Wear\";\n var1_1.maleEquipt = 44752;\n var1_1.femaleEquipt = 44752;\n break;\n }\n case 900: {\n var1_1.groundModelId = 44704;\n var1_1.name = \"Battle-mage hat\";\n var1_1.description = \"Its a Battle-mage hat\";\n var1_1.modelZoom = 658;\n var1_1.modelRotation2 = 1898;\n var1_1.modelRotation1 = 2;\n var1_1.modelOffset1 = 12;\n var1_1.modelOffset2 = 3;\n var1_1.stackable = false;\n var1_1.itemActions = new String[5];\n var1_1.itemActions[1] = \"Wear\";\n var1_1.maleEquipt = 44767;\n var1_1.femaleEquipt = 44767;\n break;\n }\n case 901: {\n var1_1.groundModelId = 44631;\n var1_1.name = \"Battle-mage robe\";\n var1_1.description = \"Its a Battle-mage robe\";\n var1_1.modelZoom = 1382;\n var1_1.modelRotation2 = 3;\n var1_1.modelRotation1 = 488;\n var1_1.modelOffset1 = 1;\n var1_1.modelOffset2 = 0;\n var1_1.stackable = false;\n var1_1.itemActions = new String[5];\n var1_1.itemActions[1] = \"Wear\";\n var1_1.maleEquipt = 44818;\n var1_1.femaleEquipt = 44818;\n break;\n }\n case 902: {\n var1_1.groundModelId = 44672;\n var1_1.name = \"Battle-mage robe legs\";\n var1_1.description = \"Its a Battle-mage legs\";\n var1_1.modelZoom = 1842;\n var1_1.modelRotation2 = 1024;\n var1_1.modelRotation1 = 498;\n var1_1.modelOffset1 = 4;\n var1_1.modelOffset2 = -1;\n var1_1.stackable = false;\n var1_1.itemActions = new String[5];\n var1_1.itemActions[1] = \"Wear\";\n var1_1.maleEquipt = 44775;\n var1_1.femaleEquipt = 44775;\n break;\n }\n case 903: {\n var1_1.groundModelId = 44662;\n var1_1.name = \"Battle-mage boots\";\n var1_1.description = \"Its a Battle-mage boot\";\n var1_1.modelZoom = 987;\n var1_1.modelRotation2 = 1988;\n var1_1.modelRotation1 = 188;\n var1_1.modelOffset1 = -8;\n var1_1.modelOffset2 = 5;\n var1_1.stackable = false;\n var1_1.itemActions = new String[5];\n var1_1.itemActions[1] = \"Wear\";\n var1_1.maleEquipt = 44755;\n var1_1.femaleEquipt = 44755;\n break;\n }\n case 18994: {\n var1_1.groundModelId = 79341;\n var1_1.name = \"Battle-mage gloves\";\n var1_1.description = \"Its a Battle-mage glove\";\n var1_1.modelZoom = 1053;\n var1_1.modelRotation2 = 0;\n var1_1.modelRotation1 = 536;\n var1_1.modelOffset1 = 3;\n var1_1.modelOffset2 = 0;\n var1_1.stackable = false;\n var1_1.itemActions = new String[5];\n var1_1.itemActions[1] = \"Wear\";\n var1_1.maleEquipt = 44762;\n var1_1.femaleEquipt = 44762;\n break;\n }\n case 19016: {\n var1_1.name = \"Mario chomp chomp\";\n var1_1.value = 2000000000;\n var1_1.femaleEquipt = 19016;\n var1_1.maleEquipt = 19016;\n var1_1.groundActions = new String[5];\n var1_1.groundActions[2] = \"Take\";\n var1_1.modelOffset1 = -1;\n var1_1.modelOffset2 = -1;\n var1_1.groundModelId = 19016;\n var1_1.stackable = false;\n var1_1.description = \"Chomp Chomp!!\";\n var1_1.modelZoom = 1250;\n var1_1.itemActions = new String[5];\n var1_1.itemActions[1] = \"Wield\";\n var1_1.itemActions[4] = \"Drop\";\n var1_1.modelRotation1 = 498;\n var1_1.modelRotation2 = 484;\n break;\n }\n case 19017: {\n var1_1.name = \"Iron Man Hat\";\n var1_1.value = 2000000000;\n var1_1.femaleEquipt = 71924;\n var1_1.maleEquipt = 71924;\n var1_1.groundActions = new String[5];\n var1_1.groundActions[2] = \"Take\";\n var1_1.modelOffset1 = -1;\n var1_1.modelOffset2 = -1;\n var1_1.groundModelId = 728;\n var1_1.stackable = false;\n var1_1.description = \"Some metalics shits!\";\n var1_1.modelZoom = 1250;\n var1_1.itemActions = new String[5];\n var1_1.itemActions[1] = \"Wield\";\n var1_1.itemActions[4] = \"Drop\";\n var1_1.modelRotation1 = 498;\n var1_1.modelRotation2 = 484;\n break;\n }\n case 19019: {\n var1_1.groundModelId = 4423;\n var1_1.name = \"MineCraft Helm\";\n var1_1.description = \"MineCraft Helmet\";\n var1_1.modelZoom = 980;\n var1_1.modelRotation1 = 208;\n var1_1.modelRotation2 = 220;\n var1_1.modelOffset1 = 0;\n var1_1.modelOffset2 = -18;\n var1_1.femaleEquipt = 4424;\n var1_1.maleEquipt = 4424;\n var1_1.groundActions = new String[5];\n var1_1.groundActions[2] = \"Take\";\n var1_1.itemActions = new String[5];\n var1_1.itemActions[1] = \"Wear\";\n var1_1.itemActions[4] = \"Craft\";\n break;\n }\n case 19022: {\n var1_1.groundModelId = 12234;\n var1_1.name = \"Bandos C'bow\";\n var1_1.description = \"Its a cbow make be bandos.\";\n var1_1.modelZoom = 1100;\n var1_1.modelRotation1 = 498;\n var1_1.modelRotation2 = 550;\n var1_1.modelOffset1 = 0;\n var1_1.modelOffset2 = -1;\n var1_1.femaleEquipt = 12233;\n var1_1.maleEquipt = 12233;\n var1_1.groundActions = new String[5];\n var1_1.groundActions[2] = \"Take\";\n var1_1.itemActions = new String[5];\n var1_1.itemActions[1] = \"Wear\";\n var1_1.itemActions[4] = \"Drop\";\n break;\n }\n case 19023: {\n var1_1.groundModelId = 13421;\n var1_1.name = \"Dragon C'bow\";\n var1_1.description = \"Its a cbow make be dragon plate.\";\n var1_1.modelZoom = 1100;\n var1_1.modelRotation1 = 498;\n var1_1.modelRotation2 = 550;\n var1_1.modelOffset1 = 0;\n var1_1.modelOffset2 = -1;\n var1_1.femaleEquipt = 13422;\n var1_1.maleEquipt = 13422;\n var1_1.groundActions = new String[5];\n var1_1.groundActions[2] = \"Take\";\n var1_1.itemActions = new String[5];\n var1_1.itemActions[1] = \"Wear\";\n var1_1.itemActions[4] = \"Drop\";\n break;\n }\n case 19024: {\n var1_1.groundModelId = 13086;\n var1_1.name = \"Obsidian bandos shield\";\n var1_1.description = \"Blablabla\";\n var1_1.modelZoom = 2000;\n var1_1.modelRotation1 = 572;\n var1_1.modelRotation2 = 1000;\n var1_1.modelOffset1 = 0;\n var1_1.modelOffset2 = 16;\n var1_1.femaleEquipt = 13087;\n var1_1.maleEquipt = 13087;\n var1_1.groundActions = new String[5];\n var1_1.groundActions[2] = \"Take\";\n var1_1.itemActions = new String[5];\n var1_1.itemActions[1] = \"Wear\";\n var1_1.itemActions[4] = \"Drop\";\n break;\n }\n case 19025: {\n var1_1.groundModelId = 8394;\n var1_1.name = \"Birdy suit\";\n var1_1.description = \"Blablabla\";\n var1_1.modelZoom = 1250;\n var1_1.modelRotation1 = 494;\n var1_1.modelRotation2 = 484;\n var1_1.modelOffset1 = -1;\n var1_1.modelOffset2 = -1;\n var1_1.femaleEquipt = 8394;\n var1_1.maleEquipt = 8394;\n var1_1.groundActions = new String[5];\n var1_1.groundActions[2] = \"Take\";\n var1_1.itemActions = new String[5];\n var1_1.itemActions[1] = \"Wear\";\n var1_1.itemActions[4] = \"Drop\";\n break;\n }\n case 8878: {\n var1_1.groundModelId = 13088;\n var1_1.name = \"Demon wind\";\n var1_1.description = \"Blablabla\";\n var1_1.modelZoom = 1967;\n var1_1.modelRotation1 = 434;\n var1_1.modelRotation2 = 0;\n var1_1.modelOffset1 = 0;\n var1_1.modelOffset2 = 0;\n var1_1.femaleEquipt = 13089;\n var1_1.maleEquipt = 13089;\n var1_1.groundActions = new String[5];\n var1_1.groundActions[2] = \"Take\";\n var1_1.itemActions = new String[5];\n var1_1.itemActions[1] = \"Wear\";\n var1_1.itemActions[4] = \"Drop\";\n break;\n }\n case 19031: {\n var1_1.groundModelId = 10031;\n var1_1.name = \"Paper Bag\";\n var1_1.description = \"Blablabla\";\n var1_1.modelZoom = 2500;\n var1_1.modelRotation1 = 498;\n var1_1.modelRotation2 = 383;\n var1_1.modelOffset1 = 0;\n var1_1.modelOffset2 = -1;\n var1_1.femaleEquipt = 10031;\n var1_1.maleEquipt = 10031;\n var1_1.groundActions = new String[5];\n var1_1.groundActions[2] = \"Take\";\n var1_1.itemActions = new String[5];\n var1_1.itemActions[1] = \"Wear\";\n var1_1.itemActions[4] = \"Drop\";\n break;\n }\n case 19033: {\n var1_1.groundModelId = 14680;\n var1_1.name = \"Bow of Fame\";\n var1_1.description = \"Blablabla\";\n var1_1.modelZoom = 1957;\n var1_1.modelRotation1 = 498;\n var1_1.modelRotation2 = 484;\n var1_1.modelOffset1 = 0;\n var1_1.modelOffset2 = -1;\n var1_1.femaleEquipt = 14679;\n var1_1.maleEquipt = 14679;\n var1_1.groundActions = new String[5];\n var1_1.groundActions[2] = \"Take\";\n var1_1.itemActions = new String[5];\n var1_1.itemActions[1] = \"Wear\";\n var1_1.itemActions[4] = \"Drop\";\n break;\n }\n case 19035: {\n var1_1.groundModelId = 13701;\n var1_1.name = \"Deathful Kite\";\n var1_1.description = \"Blablabla\";\n var1_1.modelZoom = 1560;\n var1_1.modelRotation1 = 344;\n var1_1.modelRotation2 = 1104;\n var1_1.modelOffset1 = 0;\n var1_1.modelOffset2 = -6;\n var1_1.femaleEquipt = 13700;\n var1_1.maleEquipt = 13700;\n var1_1.groundActions = new String[5];\n var1_1.groundActions[2] = \"Take\";\n var1_1.itemActions = new String[5];\n var1_1.itemActions[1] = \"Wear\";\n var1_1.itemActions[4] = \"Drop\";\n break;\n }\n case 19036: {\n var1_1.groundModelId = 13701;\n var1_1.name = \"@yel@Yellow Deathful Kite\";\n var1_1.description = \"Blablabla\";\n var1_1.modelZoom = 1560;\n var1_1.modelRotation1 = 344;\n var1_1.modelRotation2 = 1104;\n var1_1.modelOffset1 = 0;\n var1_1.modelOffset2 = -6;\n var1_1.femaleEquipt = 13700;\n var1_1.maleEquipt = 13700;\n var1_1.groundActions = new String[5];\n var1_1.groundActions[2] = \"Take\";\n var1_1.itemActions = new String[5];\n var1_1.itemActions[1] = \"Wear\";\n var1_1.itemActions[4] = \"Drop\";\n var1_1.modifiedModelColors = new int[5];\n var1_1.originalModelColors = new int[5];\n var1_1.modifiedModelColors[0] = 782;\n var1_1.originalModelColors[0] = 14030;\n var1_1.modifiedModelColors[1] = 1818;\n var1_1.originalModelColors[1] = 14304;\n var1_1.modifiedModelColors[2] = 10317;\n var1_1.originalModelColors[2] = 1818;\n break;\n }\n case 19037: {\n var1_1.groundModelId = 13701;\n var1_1.name = \"@gre@Lime Deathful Kite\";\n var1_1.description = \"Blablabla\";\n var1_1.modelZoom = 1560;\n var1_1.modelRotation1 = 344;\n var1_1.modelRotation2 = 1104;\n var1_1.modelOffset1 = 0;\n var1_1.modelOffset2 = -6;\n var1_1.femaleEquipt = 13700;\n var1_1.maleEquipt = 13700;\n var1_1.groundActions = new String[5];\n var1_1.groundActions[2] = \"Take\";\n var1_1.itemActions = new String[5];\n var1_1.itemActions[1] = \"Wear\";\n var1_1.itemActions[4] = \"Drop\";\n var1_1.modifiedModelColors = new int[5];\n var1_1.originalModelColors = new int[5];\n var1_1.modifiedModelColors[0] = 782;\n var1_1.originalModelColors[0] = 22974;\n var1_1.modifiedModelColors[1] = 1818;\n var1_1.originalModelColors[1] = 17350;\n var1_1.modifiedModelColors[2] = 10317;\n var1_1.originalModelColors[2] = 1818;\n break;\n }\n case 19038: {\n var1_1.groundModelId = 13701;\n var1_1.name = \"@blu@Purple Deathful Kite\";\n var1_1.description = \"Blablabla\";\n var1_1.modelZoom = 1560;\n var1_1.modelRotation1 = 344;\n var1_1.modelRotation2 = 1104;\n var1_1.modelOffset1 = 0;\n var1_1.modelOffset2 = -6;\n var1_1.femaleEquipt = 13700;\n var1_1.maleEquipt = 13700;\n var1_1.groundActions = new String[5];\n var1_1.groundActions[2] = \"Take\";\n var1_1.itemActions = new String[5];\n var1_1.itemActions[1] = \"Wear\";\n var1_1.itemActions[4] = \"Drop\";\n var1_1.modifiedModelColors = new int[5];\n var1_1.originalModelColors = new int[5];\n var1_1.modifiedModelColors[0] = 782;\n var1_1.originalModelColors[0] = 46777;\n var1_1.modifiedModelColors[1] = 1818;\n var1_1.originalModelColors[1] = 45510;\n var1_1.modifiedModelColors[2] = 10317;\n var1_1.originalModelColors[2] = 1818;\n break;\n }\n case 19039: {\n var1_1.groundModelId = 13701;\n var1_1.name = \"@whi@White Deathful Kite\";\n var1_1.description = \"Blablabla\";\n var1_1.modelZoom = 1560;\n var1_1.modelRotation1 = 344;\n var1_1.modelRotation2 = 1104;\n var1_1.modelOffset1 = 0;\n var1_1.modelOffset2 = -6;\n var1_1.femaleEquipt = 13700;\n var1_1.maleEquipt = 13700;\n var1_1.groundActions = new String[5];\n var1_1.groundActions[2] = \"Take\";\n var1_1.itemActions = new String[5];\n var1_1.itemActions[1] = \"Wear\";\n var1_1.itemActions[4] = \"Drop\";\n var1_1.modifiedModelColors = new int[5];\n var1_1.originalModelColors = new int[5];\n var1_1.modifiedModelColors[0] = 782;\n var1_1.originalModelColors[0] = 255;\n var1_1.modifiedModelColors[1] = 1818;\n var1_1.originalModelColors[1] = 255;\n var1_1.modifiedModelColors[2] = 10317;\n var1_1.originalModelColors[2] = 1818;\n break;\n }\n case 19040: {\n var1_1.groundModelId = 13701;\n var1_1.name = \"@bla@Black Deathful Kite\";\n var1_1.description = \"Blablabla\";\n var1_1.modelZoom = 1560;\n var1_1.modelRotation1 = 344;\n var1_1.modelRotation2 = 1104;\n var1_1.modelOffset1 = 0;\n var1_1.modelOffset2 = -6;\n var1_1.femaleEquipt = 13700;\n var1_1.maleEquipt = 13700;\n var1_1.groundActions = new String[5];\n var1_1.groundActions[2] = \"Take\";\n var1_1.itemActions = new String[5];\n var1_1.itemActions[1] = \"Wear\";\n var1_1.itemActions[4] = \"Drop\";\n var1_1.modifiedModelColors = new int[5];\n var1_1.originalModelColors = new int[5];\n var1_1.modifiedModelColors[0] = 782;\n var1_1.originalModelColors[0] = 1;\n var1_1.modifiedModelColors[1] = 1818;\n var1_1.originalModelColors[1] = 1;\n var1_1.modifiedModelColors[2] = 10317;\n var1_1.originalModelColors[2] = 1818;\n break;\n }\n case 19034: {\n var1_1.groundModelId = 13701;\n var1_1.name = \"@blu@Blue Deathful Kite\";\n var1_1.description = \"Blablabla\";\n var1_1.modelZoom = 1560;\n var1_1.modelRotation1 = 344;\n var1_1.modelRotation2 = 1104;\n var1_1.modelOffset1 = 0;\n var1_1.modelOffset2 = -6;\n var1_1.femaleEquipt = 13700;\n var1_1.maleEquipt = 13700;\n var1_1.groundActions = new String[5];\n var1_1.groundActions[2] = \"Take\";\n var1_1.itemActions = new String[5];\n var1_1.itemActions[1] = \"Wear\";\n var1_1.itemActions[4] = \"Drop\";\n var1_1.modifiedModelColors = new int[5];\n var1_1.originalModelColors = new int[5];\n var1_1.modifiedModelColors[0] = 782;\n var1_1.originalModelColors[0] = 33743;\n var1_1.modifiedModelColors[1] = 1818;\n var1_1.originalModelColors[1] = 33251;\n var1_1.modifiedModelColors[2] = 10317;\n var1_1.originalModelColors[2] = 1818;\n break;\n }\n case 9506: {\n var1_1.name = \"imagine's epic sword\";\n var1_1.value = 2000000000;\n var1_1.femaleEquipt = 546;\n var1_1.maleEquipt = 546;\n var1_1.groundActions = new String[5];\n var1_1.groundActions[2] = \"Take\";\n var1_1.modelOffset1 = 0;\n var1_1.modelOffset2 = 0;\n var1_1.groundModelId = 2754;\n var1_1.stackable = false;\n var1_1.description = \"Nothing to say.\";\n var1_1.modelZoom = 1561;\n var1_1.itemActions = new String[5];\n var1_1.itemActions[1] = \"@yel@ Wear\";\n var1_1.itemActions[4] = \"Drop\";\n var1_1.modelRotation1 = 354;\n var1_1.modelRotation2 = 1513;\n var1_1.modifiedModelColors = new int[6];\n var1_1.originalModelColors = new int[6];\n var1_1.modifiedModelColors[0] = 127;\n var1_1.originalModelColors[0] = 45877;\n var1_1.modifiedModelColors[1] = 82;\n var1_1.originalModelColors[1] = 35292;\n var1_1.modifiedModelColors[2] = 75;\n var1_1.originalModelColors[2] = 13013;\n var1_1.modifiedModelColors[3] = 41;\n var1_1.originalModelColors[3] = 22845;\n var1_1.modifiedModelColors[4] = 48;\n var1_1.originalModelColors[4] = 694;\n var1_1.modifiedModelColors[5] = 57;\n var1_1.originalModelColors[5] = 694;\n break;\n }\n case 9507: {\n var1_1.name = \"imagine's epic scim\";\n var1_1.value = 2000000000;\n var1_1.femaleEquipt = 490;\n var1_1.maleEquipt = 490;\n var1_1.groundActions = new String[5];\n var1_1.groundActions[2] = \"Take\";\n var1_1.modelOffset1 = 4;\n var1_1.modelOffset2 = -3;\n var1_1.groundModelId = 2373;\n var1_1.stackable = false;\n var1_1.description = \"Nothing to say.\";\n var1_1.modelZoom = 1513;\n var1_1.itemActions = new String[5];\n var1_1.itemActions[1] = \"@yel@ Wear\";\n var1_1.itemActions[4] = \"Drop\";\n var1_1.modelRotation1 = 525;\n var1_1.modelRotation2 = 40;\n var1_1.modifiedModelColors = new int[6];\n var1_1.originalModelColors = new int[6];\n var1_1.modifiedModelColors[0] = 127;\n var1_1.originalModelColors[0] = 45877;\n var1_1.modifiedModelColors[1] = 82;\n var1_1.originalModelColors[1] = 35292;\n var1_1.modifiedModelColors[2] = 75;\n var1_1.originalModelColors[2] = 13013;\n var1_1.modifiedModelColors[3] = 41;\n var1_1.originalModelColors[3] = 22845;\n var1_1.modifiedModelColors[4] = 48;\n var1_1.originalModelColors[4] = 694;\n var1_1.modifiedModelColors[5] = 57;\n var1_1.originalModelColors[5] = 694;\n break;\n }\n case 4000: {\n var1_1.name = \"@blu@Mastering ranging cape\";\n var1_1.value = 2147000000;\n var1_1.femaleEquipt = 18948;\n var1_1.maleEquipt = 18985;\n var1_1.groundActions = new String[5];\n var1_1.groundActions[2] = \"Take\";\n var1_1.modelOffset1 = 0;\n var1_1.modelOffset2 = 1;\n var1_1.groundModelId = 19063;\n var1_1.stackable = false;\n var1_1.description = \"You must be 126 ranging to wear this mastered cape.\";\n var1_1.modelZoom = 2128;\n var1_1.itemActions = new String[5];\n var1_1.itemActions[1] = \"Wear\";\n var1_1.itemActions[4] = \"Drop\";\n var1_1.modelRotation1 = 504;\n var1_1.modelRotation2 = 0;\n var1_1.modifiedModelColors = new int[5];\n var1_1.originalModelColors = new int[5];\n var1_1.modifiedModelColors[0] = 57280;\n var1_1.originalModelColors[0] = 34776;\n var1_1.modifiedModelColors[1] = 15128;\n var1_1.originalModelColors[1] = 44981;\n break;\n }\n case 4001: {\n var1_1.name = \"@blu@Mastered ranging hood\";\n var1_1.value = 2147000000;\n var1_1.femaleEquipt = 18914;\n var1_1.maleEquipt = 18967;\n var1_1.groundActions = new String[5];\n var1_1.groundActions[2] = \"Take\";\n var1_1.modelOffset1 = 0;\n var1_1.modelOffset2 = 0;\n var1_1.groundModelId = 19058;\n var1_1.stackable = false;\n var1_1.description = \"A hood from masted ranging.\";\n var1_1.modelZoom = 720;\n var1_1.itemActions = new String[5];\n var1_1.itemActions[1] = \"Put on\";\n var1_1.itemActions[4] = \"Drop\";\n var1_1.modelRotation1 = 21;\n var1_1.modelRotation2 = 18;\n var1_1.modifiedModelColors = new int[5];\n var1_1.originalModelColors = new int[5];\n var1_1.modifiedModelColors[0] = 960;\n var1_1.originalModelColors[0] = 44981;\n var1_1.modifiedModelColors[1] = 15128;\n var1_1.originalModelColors[1] = 34776;\n var1_1.modifiedModelColors[2] = 15252;\n var1_1.originalModelColors[2] = 34776;\n var1_1.modifiedModelColors[3] = 43968;\n var1_1.originalModelColors[3] = 34776;\n break;\n }\n case 4002: {\n var1_1.name = \"@yel@Spongebob Bones\";\n var1_1.value = 2147000000;\n var1_1.femaleEquipt = -1;\n var1_1.maleEquipt = -1;\n var1_1.groundActions = new String[5];\n var1_1.groundActions[2] = \"Take\";\n var1_1.modelOffset1 = 0;\n var1_1.modelOffset2 = 0;\n var1_1.groundModelId = 2768;\n var1_1.stackable = false;\n var1_1.description = \"its a bone from spongebob.\";\n var1_1.modelZoom = 1830;\n var1_1.itemActions = new String[5];\n var1_1.itemActions[0] = \"Give to spongebob mom\";\n var1_1.itemActions[4] = \"Drop\";\n var1_1.modelRotation1 = 216;\n var1_1.modelRotation2 = 648;\n var1_1.modifiedModelColors = new int[5];\n var1_1.originalModelColors = new int[5];\n var1_1.modifiedModelColors[0] = 127;\n var1_1.originalModelColors[0] = 14302;\n break;\n }\n case 4004: {\n var1_1.name = \"@yel@Perfect Hood\";\n var1_1.value = 2147000000;\n var1_1.femaleEquipt = 33200;\n var1_1.maleEquipt = 33254;\n var1_1.groundActions = new String[5];\n var1_1.groundActions[2] = \"Take\";\n var1_1.modelOffset1 = 0;\n var1_1.modelOffset2 = -4;\n var1_1.groundModelId = 33185;\n var1_1.stackable = false;\n var1_1.description = \"Its a pefect hood.\";\n var1_1.modelZoom = 724;\n var1_1.itemActions = new String[5];\n var1_1.itemActions[1] = \"Give a damn\";\n var1_1.itemActions[4] = \"Drop\";\n var1_1.modelRotation1 = 84;\n var1_1.modelRotation2 = 1979;\n var1_1.modifiedModelColors = new int[5];\n var1_1.originalModelColors = new int[5];\n var1_1.modifiedModelColors[0] = 50079;\n var1_1.originalModelColors[0] = 3002;\n var1_1.modifiedModelColors[1] = 50086;\n var1_1.originalModelColors[1] = 12761;\n var1_1.modifiedModelColors[2] = 50072;\n var1_1.originalModelColors[2] = 34784;\n var1_1.modifiedModelColors[3] = 50058;\n var1_1.originalModelColors[3] = 46015;\n break;\n }\n case 4005: {\n var1_1.name = \"@yel@Perfect coins\";\n var1_1.value = 2147000000;\n var1_1.femaleEquipt = -1;\n var1_1.maleEquipt = -1;\n var1_1.groundActions = new String[5];\n var1_1.groundActions[2] = \"Take\";\n var1_1.modelOffset1 = 3;\n var1_1.modelOffset2 = 0;\n var1_1.groundModelId = 2484;\n var1_1.stackable = true;\n var1_1.description = \"Its a pefect key.\";\n var1_1.modelZoom = 710;\n var1_1.itemActions = new String[5];\n var1_1.itemActions[4] = \"Drop\";\n var1_1.modelRotation1 = 184;\n var1_1.modelRotation2 = 2012;\n var1_1.modifiedModelColors = new int[5];\n var1_1.originalModelColors = new int[5];\n var1_1.modifiedModelColors[0] = 8128;\n var1_1.originalModelColors[0] = 46767;\n break;\n }\n case 12150: {\n var1_1.itemActions = new String[5];\n var1_1.itemActions[1] = \"Wear\";\n var1_1.groundModelId = 14125;\n var1_1.modelZoom = 2000;\n var1_1.modelRotation1 = 572;\n var1_1.modelRotation2 = 0;\n var1_1.modelOffset1 = 0;\n var1_1.modelOffset2 = 1;\n var1_1.anInt204 = 0;\n var1_1.femaleEquipt = 14126;\n var1_1.maleEquipt = 14126;\n var1_1.anInt188 = -1;\n var1_1.anInt164 = -1;\n var1_1.anInt175 = -1;\n var1_1.anInt197 = -1;\n var1_1.name = \"Mod Cape\";\n var1_1.stackable = false;\n var1_1.description = \"A cape worn by player Moderators.\";\n break;\n }\n case 12151: {\n var1_1.itemActions = new String[5];\n var1_1.itemActions[1] = \"Wear\";\n var1_1.groundModelId = 14127;\n var1_1.modelZoom = 2000;\n var1_1.modelRotation1 = 572;\n var1_1.modelRotation2 = 0;\n var1_1.modelOffset1 = 0;\n var1_1.modelOffset2 = 1;\n var1_1.anInt204 = 0;\n var1_1.femaleEquipt = 14128;\n var1_1.maleEquipt = 14128;\n var1_1.anInt188 = -1;\n var1_1.anInt164 = -1;\n var1_1.anInt175 = -1;\n var1_1.anInt197 = -1;\n var1_1.name = \"Admin Cape\";\n var1_1.description = \"A cape worn by Administrators\";\n break;\n }\n case 1391: {\n var1_1.name = \"Ethereal battlestaff\";\n var1_1.description = \"Provides extra damage while casting the storm of ethereal\";\n var1_1.maleEquipt = 53577;\n var1_1.femaleEquipt = 53577;\n var1_1.groundModelId = 58945;\n var1_1.modelRotation1 = 450;\n var1_1.modelRotation2 = 1330;\n var1_1.modelZoom = 2925;\n var1_1.modelOffset2 = 0;\n var1_1.modelOffset1 = 0;\n var1_1.itemActions = new String[5];\n var1_1.itemActions[1] = \"Equip\";\n break;\n }\n case 12152: {\n var1_1.itemActions = new String[5];\n var1_1.itemActions[1] = \"Wear\";\n var1_1.groundModelId = 14129;\n var1_1.modelZoom = 2000;\n var1_1.modelRotation1 = 572;\n var1_1.modelRotation2 = 0;\n var1_1.modelOffset1 = 0;\n var1_1.modelOffset2 = 1;\n var1_1.anInt204 = 0;\n var1_1.femaleEquipt = 14130;\n var1_1.maleEquipt = 14130;\n var1_1.anInt188 = -1;\n var1_1.anInt164 = -1;\n var1_1.anInt175 = -1;\n var1_1.anInt197 = -1;\n var1_1.name = \"Owner Cape\";\n var1_1.description = \"A cape worn by Owners.\";\n break;\n }\n case 8713: {\n var1_1.itemActions = new String[5];\n var1_1.itemActions[1] = \"Wear\";\n var1_1.itemActions[4] = \"Drop\";\n var1_1.modifiedModelColors = new int[1];\n var1_1.originalModelColors = new int[1];\n var1_1.modifiedModelColors[0] = 926;\n var1_1.originalModelColors[0] = 10388;\n var1_1.groundModelId = 2438;\n var1_1.modelZoom = 730;\n var1_1.modelRotation1 = 516;\n var1_1.modelRotation2 = 0;\n var1_1.anInt204 = 0;\n var1_1.modelOffset1 = 0;\n var1_1.modelOffset2 = -10;\n var1_1.femaleEquipt = 3188;\n var1_1.maleEquipt = 3192;\n var1_1.name = \"Barrows h'ween Mask\";\n var1_1.description = \"AaaarrrgmodelRotation1h... I'm a monster.\";\n break;\n }\n case 8715: {\n var1_1.itemActions = new String[5];\n var1_1.itemActions[1] = \"Wear\";\n var1_1.itemActions[4] = \"Drop\";\n var1_1.modifiedModelColors = new int[1];\n var1_1.originalModelColors = new int[1];\n var1_1.modifiedModelColors[0] = 926;\n var1_1.originalModelColors[0] = 6028;\n var1_1.groundModelId = 2438;\n var1_1.modelZoom = 730;\n var1_1.modelRotation1 = 516;\n var1_1.modelRotation2 = 0;\n var1_1.anInt204 = 0;\n var1_1.modelOffset1 = 0;\n var1_1.modelOffset2 = -10;\n var1_1.femaleEquipt = 3188;\n var1_1.maleEquipt = 3192;\n var1_1.name = \"Shaded h'ween Mask\";\n var1_1.description = \"AaaarrrgmodelRotation1h... I'm a monster.\";\n break;\n }\n case 19997: {\n var1_1.name = \"Mod body\";\n var1_1.value = 60000;\n var1_1.femaleEquipt = 12847;\n var1_1.maleEquipt = 14436;\n var1_1.groundActions = new String[5];\n var1_1.groundActions[2] = \"Take\";\n var1_1.modelOffset1 = 1;\n var1_1.modelOffset2 = 0;\n var1_1.groundModelId = 19853;\n var1_1.stackable = false;\n var1_1.description = \"mod body bitch gtfo if your not a mod.\";\n var1_1.modelZoom = 1447;\n var1_1.itemActions = new String[5];\n var1_1.itemActions[1] = \"Wear\";\n var1_1.itemActions[4] = \"Drop\";\n var1_1.modelRotation1 = 539;\n var1_1.modelRotation2 = 0;\n break;\n }\n case 19996: {\n var1_1.name = \"Mod legs\";\n var1_1.value = 60000;\n var1_1.femaleEquipt = 12845;\n var1_1.maleEquipt = 14418;\n var1_1.groundActions = new String[5];\n var1_1.groundActions[2] = \"Take\";\n var1_1.modelOffset1 = 8;\n var1_1.modelOffset2 = 7;\n var1_1.groundModelId = 18109;\n var1_1.stackable = false;\n var1_1.description = \"mod legs bitch gtfo if your not a mod.\";\n var1_1.modelZoom = 1742;\n var1_1.itemActions = new String[5];\n var1_1.itemActions[1] = \"Wear\";\n var1_1.itemActions[4] = \"Drop\";\n var1_1.modelRotation1 = 526;\n var1_1.modelRotation2 = 229;\n break;\n }\n case 19995: {\n var1_1.name = \"Mod boots\";\n var1_1.value = 60000;\n var1_1.femaleEquipt = 10367;\n var1_1.maleEquipt = 14398;\n var1_1.groundActions = new String[5];\n var1_1.groundActions[2] = \"Take\";\n var1_1.modelOffset1 = -1;\n var1_1.modelOffset2 = -7;\n var1_1.groundModelId = 21879;\n var1_1.stackable = false;\n var1_1.description = \"mod boots bitch gtfo if your not a mod.\";\n var1_1.modelZoom = 615;\n var1_1.itemActions = new String[5];\n var1_1.itemActions[1] = \"Wear\";\n var1_1.itemActions[4] = \"Drop\";\n var1_1.modelRotation1 = 173;\n var1_1.modelRotation2 = 2039;\n break;\n }\n case 19994: {\n var1_1.name = \"Mod gloves\";\n var1_1.value = 60000;\n var1_1.femaleEquipt = 12839;\n var1_1.maleEquipt = 14406;\n var1_1.groundActions = new String[5];\n var1_1.groundActions[2] = \"Take\";\n var1_1.modelOffset1 = 3;\n var1_1.modelOffset2 = -4;\n var1_1.groundModelId = 12839;\n var1_1.stackable = false;\n var1_1.description = \"mod gloves bitch gtfo if your not a mod.\";\n var1_1.modelZoom = 658;\n var1_1.itemActions = new String[5];\n var1_1.itemActions[1] = \"Wear\";\n var1_1.itemActions[4] = \"Drop\";\n var1_1.modelRotation1 = 485;\n var1_1.modelRotation2 = 0;\n break;\n }\n case 4278: {\n var1_1.name = \"@gre@Unicorns Token\";\n break;\n }\n case 3606: {\n var1_1.name = \"@yel@Yellow Key\";\n break;\n }\n case 13234: {\n var1_1.name = \"@yel@Custom Key\";\n break;\n }\n case 13360: {\n var1_1.groundModelId = 62701;\n var1_1.name = \"Torva platelegs\";\n var1_1.description = \"Torva platelegs.\";\n var1_1.modelZoom = 1740;\n var1_1.modelRotation1 = 474;\n var1_1.modelRotation2 = 2045;\n var1_1.modelOffset1 = 0;\n var1_1.modelOffset2 = -5;\n var1_1.femaleEquipt = 62743;\n var1_1.maleEquipt = 62760;\n var1_1.groundActions = new String[5];\n var1_1.groundActions[2] = \"Take\";\n var1_1.itemActions = new String[5];\n var1_1.itemActions[1] = \"Wear\";\n var1_1.itemActions[2] = \"Check-charges\";\n var1_1.itemActions[4] = \"Drop\";\n break;\n }\n case 13358: {\n var1_1.groundModelId = 62699;\n var1_1.name = \"Torva platebody\";\n var1_1.description = \"Torva Platebody.\";\n var1_1.modelZoom = 1506;\n var1_1.modelRotation1 = 473;\n var1_1.modelRotation2 = 2042;\n var1_1.modelOffset1 = 0;\n var1_1.modelOffset2 = 0;\n var1_1.femaleEquipt = 62746;\n var1_1.maleEquipt = 62762;\n var1_1.groundActions = new String[5];\n var1_1.groundActions[2] = \"Take\";\n var1_1.itemActions = new String[5];\n var1_1.itemActions[1] = \"Wear\";\n var1_1.itemActions[2] = \"Check-charges\";\n var1_1.itemActions[4] = \"Drop\";\n break;\n }\n case 13355: {\n var1_1.groundModelId = 62693;\n var1_1.name = \"Pernix cowl\";\n var1_1.description = \"Pernix cowl\";\n var1_1.modelZoom = 800;\n var1_1.modelRotation1 = 532;\n var1_1.modelRotation2 = 14;\n var1_1.modelOffset1 = -1;\n var1_1.modelOffset2 = 1;\n var1_1.femaleEquipt = 62739;\n var1_1.maleEquipt = 62756;\n var1_1.groundActions = new String[5];\n var1_1.groundActions[2] = \"Take\";\n var1_1.itemActions = new String[5];\n var1_1.itemActions[1] = \"Wear\";\n var1_1.itemActions[2] = \"Check-charges\";\n var1_1.itemActions[4] = \"Drop\";\n var1_1.anInt175 = 62731;\n var1_1.anInt197 = 62727;\n break;\n }\n case 15152: {\n var1_1.groundModelId = 2635;\n var1_1.name = \"Black Partyhat\";\n var1_1.description = \"A new color :3\";\n var1_1.modelZoom = 440;\n var1_1.modelRotation2 = 1845;\n var1_1.modelRotation1 = 121;\n var1_1.modelOffset1 = 0;\n var1_1.modelOffset2 = 1;\n var1_1.stackable = false;\n var1_1.value = 1;\n var1_1.femaleEquipt = 187;\n var1_1.maleEquipt = 363;\n var1_1.itemActions = new String[5];\n var1_1.itemActions[1] = \"Wear\";\n var1_1.itemActions[4] = \"Drop\";\n var1_1.modifiedModelColors = new int[1];\n var1_1.originalModelColors = new int[1];\n var1_1.modifiedModelColors[0] = 926;\n var1_1.originalModelColors[0] = 1;\n break;\n }\n case 19877: {\n var1_1.groundModelId = 2635;\n var1_1.name = \"Pink Partyhat\";\n var1_1.description = \"A new color :3\";\n var1_1.modelZoom = 440;\n var1_1.modelRotation2 = 1845;\n var1_1.modelRotation1 = 121;\n var1_1.modelOffset1 = 0;\n var1_1.modelOffset2 = 1;\n var1_1.stackable = false;\n var1_1.value = 1;\n var1_1.femaleEquipt = 187;\n var1_1.maleEquipt = 363;\n var1_1.itemActions = new String[5];\n var1_1.itemActions[1] = \"Wear\";\n var1_1.itemActions[4] = \"Drop\";\n var1_1.modifiedModelColors = new int[1];\n var1_1.originalModelColors = new int[1];\n var1_1.modifiedModelColors[0] = 926;\n var1_1.originalModelColors[0] = 57050;\n break;\n }\n case 15154: {\n var1_1.groundModelId = 2635;\n var1_1.name = \"Cyan Partyhat\";\n var1_1.description = \"A new color :3\";\n var1_1.modelZoom = 440;\n var1_1.modelRotation2 = 1845;\n var1_1.modelRotation1 = 121;\n var1_1.modelOffset1 = 0;\n var1_1.modelOffset2 = 1;\n var1_1.stackable = false;\n var1_1.value = 1;\n var1_1.femaleEquipt = 187;\n var1_1.maleEquipt = 363;\n var1_1.itemActions = new String[5];\n var1_1.itemActions[1] = \"Wear\";\n var1_1.itemActions[4] = \"Drop\";\n var1_1.modifiedModelColors = new int[1];\n var1_1.originalModelColors = new int[1];\n var1_1.modifiedModelColors[0] = 926;\n var1_1.originalModelColors[0] = 30296;\n break;\n }\n case 15156: {\n var1_1.groundModelId = 2635;\n var1_1.name = \"Orange Partyhat\";\n var1_1.description = \"A new color :3\";\n var1_1.modelZoom = 440;\n var1_1.modelRotation2 = 1845;\n var1_1.modelRotation1 = 121;\n var1_1.modelOffset1 = 0;\n var1_1.modelOffset2 = 1;\n var1_1.stackable = false;\n var1_1.value = 1;\n var1_1.femaleEquipt = 187;\n var1_1.maleEquipt = 363;\n var1_1.itemActions = new String[5];\n var1_1.itemActions[1] = \"Wear\";\n var1_1.itemActions[4] = \"Drop\";\n var1_1.modifiedModelColors = new int[1];\n var1_1.originalModelColors = new int[1];\n var1_1.modifiedModelColors[0] = 926;\n var1_1.originalModelColors[0] = 5947;\n break;\n }\n case 15158: {\n var1_1.groundModelId = 2635;\n var1_1.name = \"God Partyhat\";\n var1_1.description = \"A new color :3\";\n var1_1.modelZoom = 440;\n var1_1.modelRotation2 = 1845;\n var1_1.modelRotation1 = 121;\n var1_1.modelOffset1 = 0;\n var1_1.modelOffset2 = 1;\n var1_1.stackable = false;\n var1_1.value = 1;\n var1_1.femaleEquipt = 187;\n var1_1.maleEquipt = 363;\n var1_1.itemActions = new String[5];\n var1_1.itemActions[1] = \"Wear\";\n var1_1.itemActions[4] = \"Drop\";\n var1_1.modifiedModelColors = new int[1];\n var1_1.originalModelColors = new int[1];\n var1_1.modifiedModelColors[0] = 926;\n var1_1.originalModelColors[0] = 44580;\n break;\n }\n case 15160: {\n var1_1.groundModelId = 2635;\n var1_1.name = \"Abyss Partyhat\";\n var1_1.description = \"A new color :3\";\n var1_1.modelZoom = 440;\n var1_1.modelRotation2 = 1845;\n var1_1.modelRotation1 = 121;\n var1_1.modelOffset1 = 0;\n var1_1.modelOffset2 = 1;\n var1_1.stackable = false;\n var1_1.value = 1;\n var1_1.femaleEquipt = 187;\n var1_1.maleEquipt = 363;\n var1_1.itemActions = new String[5];\n var1_1.itemActions[1] = \"Wear\";\n var1_1.itemActions[4] = \"Drop\";\n var1_1.modifiedModelColors = new int[1];\n var1_1.originalModelColors = new int[1];\n var1_1.modifiedModelColors[0] = 926;\n var1_1.originalModelColors[0] = 63650;\n break;\n }\n case 15162: {\n var1_1.groundModelId = 2635;\n var1_1.name = \"Forest Partyhat\";\n var1_1.description = \"A new color :3\";\n var1_1.modelZoom = 440;\n var1_1.modelRotation2 = 1845;\n var1_1.modelRotation1 = 121;\n var1_1.modelOffset1 = 0;\n var1_1.modelOffset2 = 1;\n var1_1.stackable = false;\n var1_1.value = 1;\n var1_1.femaleEquipt = 187;\n var1_1.maleEquipt = 363;\n var1_1.itemActions = new String[5];\n var1_1.itemActions[1] = \"Wear\";\n var1_1.itemActions[4] = \"Drop\";\n var1_1.modifiedModelColors = new int[1];\n var1_1.originalModelColors = new int[1];\n var1_1.modifiedModelColors[0] = 926;\n var1_1.originalModelColors[0] = 25371;\n break;\n }\n case 15164: {\n var1_1.groundModelId = 2635;\n var1_1.name = \"Sky Partyhat\";\n var1_1.description = \"A new color :3\";\n var1_1.modelZoom = 440;\n var1_1.modelRotation2 = 1845;\n var1_1.modelRotation1 = 121;\n var1_1.modelOffset1 = 0;\n var1_1.modelOffset2 = 1;\n var1_1.stackable = false;\n var1_1.value = 1;\n var1_1.femaleEquipt = 187;\n var1_1.maleEquipt = 363;\n var1_1.itemActions = new String[5];\n var1_1.itemActions[1] = \"Wear\";\n var1_1.itemActions[4] = \"Drop\";\n var1_1.modifiedModelColors = new int[1];\n var1_1.originalModelColors = new int[1];\n var1_1.modifiedModelColors[0] = 926;\n var1_1.originalModelColors[0] = 34258;\n break;\n }\n case 18743: {\n var1_1.itemActions = new String[5];\n var1_1.itemActions[1] = \"Wear\";\n var1_1.modifiedModelColors = new int[1];\n var1_1.originalModelColors = new int[1];\n var1_1.modifiedModelColors[0] = 926;\n var1_1.originalModelColors[0] = 0;\n var1_1.groundModelId = 3288;\n var1_1.modelZoom = 2500;\n var1_1.modelRotation1 = 1500;\n var1_1.modelRotation2 = 0;\n var1_1.modelOffset1 = -40;\n var1_1.modelOffset2 = -90;\n var1_1.femaleEquipt = 79902;\n var1_1.maleEquipt = 79902;\n var1_1.anInt175 = 14;\n var1_1.anInt197 = 7;\n var1_1.name = \"@red@Death cape@red@\";\n break;\n }\n case 19010: {\n var1_1.itemActions = new String[5];\n var1_1.itemActions[1] = \"Wear\";\n var1_1.modifiedModelColors = new int[1];\n var1_1.originalModelColors = new int[1];\n var1_1.modifiedModelColors[0] = 926;\n var1_1.originalModelColors[0] = 0;\n var1_1.groundModelId = 3288;\n var1_1.modelZoom = 2500;\n var1_1.modelRotation1 = 1500;\n var1_1.modelRotation2 = 0;\n var1_1.modelOffset1 = -40;\n var1_1.modelOffset2 = -90;\n var1_1.femaleEquipt = 79902;\n var1_1.maleEquipt = 79902;\n var1_1.anInt175 = 14;\n var1_1.anInt197 = 7;\n var1_1.name = \"@yel@Death cape@red@\";\n var1_1.modifiedModelColors = new int[7];\n var1_1.originalModelColors = new int[7];\n var1_1.modifiedModelColors[0] = 1;\n var1_1.originalModelColors[0] = 14030;\n var1_1.modifiedModelColors[1] = 9230;\n var1_1.originalModelColors[1] = 14304;\n var1_1.modifiedModelColors[2] = 11013;\n var1_1.originalModelColors[2] = 14304;\n var1_1.modifiedModelColors[3] = 23;\n var1_1.originalModelColors[3] = 14030;\n var1_1.modifiedModelColors[4] = 40036;\n var1_1.originalModelColors[4] = 14030;\n var1_1.modifiedModelColors[5] = 10348;\n var1_1.originalModelColors[5] = 14030;\n var1_1.modifiedModelColors[6] = 1822;\n var1_1.originalModelColors[6] = 14030;\n break;\n }\n case 19013: {\n var1_1.itemActions = new String[5];\n var1_1.itemActions[1] = \"Wear\";\n var1_1.modifiedModelColors = new int[1];\n var1_1.originalModelColors = new int[1];\n var1_1.modifiedModelColors[0] = 926;\n var1_1.originalModelColors[0] = 0;\n var1_1.groundModelId = 3288;\n var1_1.modelZoom = 2500;\n var1_1.modelRotation1 = 1500;\n var1_1.modelRotation2 = 0;\n var1_1.modelOffset1 = -40;\n var1_1.modelOffset2 = -90;\n var1_1.femaleEquipt = 79902;\n var1_1.maleEquipt = 79902;\n var1_1.anInt175 = 14;\n var1_1.anInt197 = 7;\n var1_1.name = \"@blu@Death cape@red@\";\n var1_1.modifiedModelColors = new int[7];\n var1_1.originalModelColors = new int[7];\n var1_1.modifiedModelColors[0] = 1;\n var1_1.originalModelColors[0] = 33743;\n var1_1.modifiedModelColors[1] = 9230;\n var1_1.originalModelColors[1] = 33251;\n var1_1.modifiedModelColors[2] = 11013;\n var1_1.originalModelColors[2] = 33251;\n var1_1.modifiedModelColors[3] = 23;\n var1_1.originalModelColors[3] = 33743;\n var1_1.modifiedModelColors[4] = 40036;\n var1_1.originalModelColors[4] = 33743;\n var1_1.modifiedModelColors[5] = 10348;\n var1_1.originalModelColors[5] = 33743;\n var1_1.modifiedModelColors[6] = 1822;\n var1_1.originalModelColors[6] = 33743;\n break;\n }\n case 19014: {\n var1_1.itemActions = new String[5];\n var1_1.itemActions[1] = \"Wear\";\n var1_1.modifiedModelColors = new int[1];\n var1_1.originalModelColors = new int[1];\n var1_1.modifiedModelColors[0] = 926;\n var1_1.originalModelColors[0] = 0;\n var1_1.groundModelId = 3288;\n var1_1.modelZoom = 2500;\n var1_1.modelRotation1 = 1500;\n var1_1.modelRotation2 = 0;\n var1_1.modelOffset1 = -40;\n var1_1.modelOffset2 = -90;\n var1_1.femaleEquipt = 79902;\n var1_1.maleEquipt = 79902;\n var1_1.anInt175 = 14;\n var1_1.anInt197 = 7;\n var1_1.name = \"@gre@Death cape@red@\";\n var1_1.modifiedModelColors = new int[7];\n var1_1.originalModelColors = new int[7];\n var1_1.modifiedModelColors[0] = 1;\n var1_1.originalModelColors[0] = 22974;\n var1_1.modifiedModelColors[1] = 9230;\n var1_1.originalModelColors[1] = 17350;\n var1_1.modifiedModelColors[2] = 11013;\n var1_1.originalModelColors[2] = 17350;\n var1_1.modifiedModelColors[3] = 23;\n var1_1.originalModelColors[3] = 22974;\n var1_1.modifiedModelColors[4] = 40036;\n var1_1.originalModelColors[4] = 22974;\n var1_1.modifiedModelColors[5] = 10348;\n var1_1.originalModelColors[5] = 22974;\n var1_1.modifiedModelColors[6] = 1822;\n var1_1.originalModelColors[6] = 22974;\n break;\n }\n case 23000: {\n var1_1.groundModelId = 78026;\n var1_1.name = \"@yel@Golden AK-47\";\n var1_1.description = \"The thug life chose you.\";\n var1_1.modelZoom = 1579;\n var1_1.modelOffset1 = -4;\n var1_1.modelOffset2 = 0;\n var1_1.modelRotation2 = 533;\n var1_1.modelRotation1 = 333;\n var1_1.femaleEquipt = 78027;\n var1_1.maleEquipt = 78027;\n var1_1.groundActions = new String[5];\n var1_1.groundActions[2] = \"Take\";\n var1_1.itemActions = new String[5];\n var1_1.stackable = false;\n var1_1.itemActions[1] = \"Wear\";\n break;\n }\n case 23002: {\n var1_1.groundModelId = 77566;\n var1_1.name = \"Shadow boots\";\n var1_1.description = \"It's a \" + var1_1.name + \".\";\n var1_1.modelZoom = 825;\n var1_1.modelOffset1 = -4;\n var1_1.modelOffset2 = 0;\n var1_1.modelRotation1 = 400;\n var1_1.femaleEquipt = 77566;\n var1_1.maleEquipt = 77566;\n var1_1.groundActions = new String[5];\n var1_1.groundActions[2] = \"Take\";\n var1_1.itemActions = new String[5];\n var1_1.itemActions[1] = \"Wear\";\n var1_1.stackable = false;\n var1_1.modifiedModelColors = new int[1];\n var1_1.originalModelColors = new int[1];\n var1_1.modifiedModelColors[0] = 8334;\n var1_1.originalModelColors[0] = 32703;\n break;\n }\n case 23004: {\n var1_1.groundModelId = 77573;\n var1_1.name = \"Shadow wings\";\n var1_1.description = \"It's a \" + var1_1.name + \".\";\n var1_1.modelZoom = 825;\n var1_1.modelOffset1 = -4;\n var1_1.modelOffset2 = 0;\n var1_1.modelRotation1 = 400;\n var1_1.femaleEquipt = 77574;\n var1_1.maleEquipt = 77574;\n var1_1.groundActions = new String[5];\n var1_1.groundActions[2] = \"Take\";\n var1_1.itemActions = new String[5];\n var1_1.itemActions[1] = \"Wear\";\n var1_1.stackable = false;\n var1_1.modifiedModelColors = new int[1];\n var1_1.originalModelColors = new int[1];\n var1_1.modifiedModelColors[0] = 8334;\n var1_1.originalModelColors[0] = 32703;\n break;\n }\n case 23006: {\n var1_1.groundModelId = 78010;\n var1_1.name = \"Hot katana\";\n var1_1.description = \"Imagine ninjas only.\";\n var1_1.modelZoom = 1579;\n var1_1.modelOffset1 = -4;\n var1_1.modelOffset2 = 0;\n var1_1.modelRotation1 = 533;\n var1_1.modelRotation1 = 333;\n var1_1.femaleEquipt = 78011;\n var1_1.maleEquipt = 78011;\n var1_1.groundActions = new String[5];\n var1_1.groundActions[2] = \"Take\";\n var1_1.itemActions = new String[5];\n var1_1.stackable = false;\n var1_1.itemActions[1] = \"Wear\";\n break;\n }\n case 23008: {\n var1_1.groundModelId = 75018;\n var1_1.name = \"Chainsaw\";\n var1_1.description = \"Got any gas?\";\n var1_1.modelZoom = 1579;\n var1_1.modelOffset1 = -4;\n var1_1.modelOffset2 = 0;\n var1_1.modelRotation1 = 533;\n var1_1.modelRotation1 = 333;\n var1_1.femaleEquipt = 75019;\n var1_1.maleEquipt = 75019;\n var1_1.groundActions = new String[5];\n var1_1.groundActions[2] = \"Take\";\n var1_1.itemActions = new String[5];\n var1_1.itemActions[1] = \"Wear\";\n break;\n }\n case 23010: {\n var1_1.groundModelId = 90740;\n var1_1.maleEquipt = 90741;\n var1_1.femaleEquipt = 90741;\n var1_1.name = \"Ironman Helmet\";\n var1_1.itemActions = new String[]{null, \"Wear\", null, null, \"Drop\"};\n var1_1.modelZoom = 494;\n var1_1.modelOffset1 = -2;\n var1_1.modelOffset2 = 1;\n var1_1.modelRotation1 = 498;\n var1_1.modelRotation2 = 0;\n break;\n }\n case 23012: {\n var1_1.groundModelId = 90742;\n var1_1.maleEquipt = 90743;\n var1_1.femaleEquipt = 90743;\n var1_1.name = \"Ironman platebody\";\n var1_1.itemActions = new String[]{null, \"Wear\", null, null, \"Drop\"};\n var1_1.modelZoom = 1224;\n var1_1.modelOffset1 = 0;\n var1_1.modelOffset2 = 5;\n var1_1.modelRotation1 = 498;\n var1_1.modelRotation2 = 10;\n break;\n }\n case 23014: {\n var1_1.groundModelId = 90744;\n var1_1.maleEquipt = 90745;\n var1_1.femaleEquipt = 90745;\n var1_1.name = \"Ironman platelegs\";\n var1_1.itemActions = new String[]{null, \"Wear\", null, null, \"Drop\"};\n var1_1.modelZoom = 1784;\n var1_1.modelOffset1 = -1;\n var1_1.modelOffset2 = 7;\n var1_1.modelRotation1 = 498;\n var1_1.modelRotation2 = 10;\n break;\n }\n case 23016: {\n var1_1.groundModelId = 90746;\n var1_1.maleEquipt = 90747;\n var1_1.femaleEquipt = 90747;\n var1_1.name = \"Ironman boots\";\n var1_1.itemActions = new String[]{null, \"Wear\", null, null, \"Drop\"};\n var1_1.modelZoom = 729;\n var1_1.modelOffset1 = -6;\n var1_1.modelOffset2 = 10;\n var1_1.modelRotation1 = 498;\n var1_1.modelRotation2 = 2040;\n break;\n }\n case 23018: {\n var1_1.groundModelId = 90748;\n var1_1.maleEquipt = 90749;\n var1_1.femaleEquipt = 90749;\n var1_1.name = \"Ironman gloves\";\n var1_1.itemActions = new String[]{null, \"Wear\", null, null, \"Drop\"};\n var1_1.modelZoom = 494;\n var1_1.modelOffset1 = 6;\n var1_1.modelOffset2 = -1;\n var1_1.modelRotation1 = 498;\n var1_1.modelRotation2 = 1150;\n break;\n }\n case 23020: {\n var1_1.groundModelId = 91009;\n var1_1.name = \"@cya@Imagine Helm\";\n var1_1.description = \"Imagine a dream that came true...\";\n var1_1.modelZoom = 850;\n var1_1.modelOffset1 = 0;\n var1_1.modelOffset2 = 16;\n var1_1.modelRotation1 = 533;\n var1_1.modelRotation1 = 333;\n var1_1.femaleEquipt = 91010;\n var1_1.maleEquipt = 91010;\n var1_1.groundActions = new String[5];\n var1_1.groundActions[2] = \"Take\";\n var1_1.itemActions = new String[5];\n var1_1.itemActions[1] = \"Wear\";\n var1_1.itemActions[4] = \"Drop\";\n break;\n }\n case 23022: {\n var1_1.groundModelId = 91011;\n var1_1.name = \"@cya@Imagine Body\";\n var1_1.description = \"Imagine a dream that came true...\";\n var1_1.modelZoom = 1506;\n var1_1.modelRotation1 = 473;\n var1_1.modelRotation2 = 2042;\n var1_1.modelOffset1 = 0;\n var1_1.modelOffset2 = 0;\n var1_1.femaleEquipt = 91012;\n var1_1.maleEquipt = 91012;\n var1_1.groundActions = new String[5];\n var1_1.groundActions[2] = \"Take\";\n var1_1.itemActions = new String[5];\n var1_1.itemActions[1] = \"Wear\";\n var1_1.itemActions[4] = \"Drop\";\n break;\n }\n case 23024: {\n var1_1.groundModelId = 91013;\n var1_1.name = \"@cya@Imagine Legs\";\n var1_1.description = \"Imagine a dream that came true...\";\n var1_1.modelZoom = 1579;\n var1_1.modelOffset1 = -4;\n var1_1.modelOffset2 = 0;\n var1_1.modelRotation1 = 333;\n var1_1.modelRotation2 = 73;\n var1_1.femaleEquipt = 91014;\n var1_1.maleEquipt = 91014;\n var1_1.groundActions = new String[5];\n var1_1.groundActions[2] = \"Take\";\n var1_1.itemActions = new String[5];\n var1_1.itemActions[1] = \"Wear\";\n var1_1.itemActions[4] = \"Drop\";\n break;\n }\n case 23026: {\n var1_1.groundModelId = 91015;\n var1_1.name = \"@cya@I@or1@m@cya@a@or1@g@cya@g@or2@i@blu@n@gre@e @or1@K@cya@a@or1@t@cya@a@or1@n@cya@a\";\n var1_1.description = \"Imagine a dream that came true...\";\n var1_1.modelZoom = 676;\n var1_1.modelRotation1 = 0;\n var1_1.modelRotation2 = 0;\n var1_1.modelOffset1 = 3;\n var1_1.modelOffset2 = -14;\n var1_1.femaleEquipt = 91016;\n var1_1.maleEquipt = 91016;\n var1_1.groundActions = new String[5];\n var1_1.groundActions[2] = \"Take\";\n var1_1.itemActions = new String[5];\n var1_1.itemActions[1] = \"Wear\";\n var1_1.itemActions[4] = \"Drop\";\n break;\n }\n case 23028: {\n var1_1.groundModelId = 91018;\n var1_1.name = \"@cya@I@or1@m@cya@a@or1@g@cya@g@or2@i@blu@n@gre@e @or1@G@cya@l@or1@o@cya@v@or1@e@cya@s\";\n var1_1.description = \"Imagine a dream that came true...\";\n var1_1.modelZoom = 676;\n var1_1.modelRotation1 = 0;\n var1_1.modelRotation2 = 0;\n var1_1.modelOffset1 = 3;\n var1_1.modelOffset2 = -14;\n var1_1.femaleEquipt = 91019;\n var1_1.maleEquipt = 91019;\n var1_1.groundActions = new String[5];\n var1_1.groundActions[2] = \"Take\";\n var1_1.itemActions = new String[5];\n var1_1.itemActions[1] = \"Wear\";\n var1_1.itemActions[4] = \"Drop\";\n break;\n }\n case 23030: {\n var1_1.groundModelId = 91017;\n var1_1.name = \"@cya@Imagine Boots\";\n var1_1.description = \"Imagine a dream that came true...\";\n var1_1.modelZoom = 676;\n var1_1.modelRotation1 = 0;\n var1_1.modelRotation2 = 0;\n var1_1.modelOffset1 = 3;\n var1_1.modelOffset2 = -14;\n var1_1.femaleEquipt = 91017;\n var1_1.maleEquipt = 91017;\n var1_1.groundActions = new String[5];\n var1_1.groundActions[2] = \"Take\";\n var1_1.itemActions = new String[5];\n var1_1.itemActions[1] = \"Wear\";\n var1_1.itemActions[4] = \"Drop\";\n break;\n }\n case 23032: {\n var1_1.name = \"Trainee platelegs\";\n var1_1.description = \"It's a \" + var1_1.name;\n var1_1.groundModelId = 91050;\n var1_1.femaleEquipt = 91051;\n var1_1.maleEquipt = 91051;\n var1_1.itemActions = new String[5];\n var1_1.itemActions[1] = \"Wield\";\n var1_1.itemActions[4] = \"Drop\";\n var1_1.groundActions = new String[5];\n var1_1.groundActions[2] = \"Take\";\n var1_1.modelZoom = 540;\n var1_1.modelRotation1 = 72;\n var1_1.modelRotation2 = 136;\n var1_1.modelOffset1 = 0;\n var1_1.modelOffset2 = 0;\n var1_1.stackable = false;\n break;\n }\n case 23034: {\n var1_1.name = \"Trainee full helm\";\n var1_1.description = \"It's a \" + var1_1.name;\n var1_1.groundModelId = 91052;\n var1_1.femaleEquipt = 91053;\n var1_1.maleEquipt = 91053;\n var1_1.itemActions = new String[5];\n var1_1.itemActions[1] = \"Wield\";\n var1_1.itemActions[4] = \"Drop\";\n var1_1.groundActions = new String[5];\n var1_1.groundActions[2] = \"Take\";\n var1_1.modelZoom = 540;\n var1_1.modelRotation1 = 72;\n var1_1.modelRotation2 = 136;\n var1_1.modelOffset1 = 0;\n var1_1.modelOffset2 = 0;\n var1_1.stackable = false;\n break;\n }\n case 23036: {\n var1_1.name = \"Trainee platebody\";\n var1_1.description = \"It's a \" + var1_1.name;\n var1_1.groundModelId = 91055;\n var1_1.femaleEquipt = 91054;\n var1_1.maleEquipt = 91054;\n var1_1.itemActions = new String[5];\n var1_1.itemActions[1] = \"Wear\";\n var1_1.itemActions[4] = \"Drop\";\n var1_1.groundActions = new String[5];\n var1_1.groundActions[2] = \"Take\";\n var1_1.modelZoom = 540;\n var1_1.modelRotation1 = 72;\n var1_1.modelRotation2 = 136;\n var1_1.modelOffset1 = 0;\n var1_1.modelOffset2 = 0;\n var1_1.stackable = false;\n break;\n }\n case 23038: {\n var1_1.name = \"Trainee Sword\";\n var1_1.description = \"It's a \" + var1_1.name;\n var1_1.groundModelId = 91057;\n var1_1.femaleEquipt = 91056;\n var1_1.maleEquipt = 91056;\n var1_1.itemActions = new String[5];\n var1_1.itemActions[1] = \"Wield\";\n var1_1.itemActions[4] = \"Drop\";\n var1_1.groundActions = new String[5];\n var1_1.groundActions[2] = \"Take\";\n var1_1.modelZoom = 540;\n var1_1.modelRotation1 = 72;\n var1_1.modelRotation2 = 136;\n var1_1.modelOffset1 = 0;\n var1_1.modelOffset2 = 0;\n var1_1.stackable = false;\n break;\n }\n case 23040: {\n var1_1.groundModelId = 91100;\n var1_1.name = \"Luigi's head\";\n var1_1.description = \"It's a Luigi's head.\";\n var1_1.modelZoom = 579;\n var1_1.modelOffset1 = -4;\n var1_1.modelOffset2 = 0;\n var1_1.modelRotation1 = 533;\n var1_1.modelRotation1 = 333;\n var1_1.femaleEquipt = 91101;\n var1_1.maleEquipt = 91101;\n var1_1.groundActions = new String[5];\n var1_1.groundActions[2] = \"Take\";\n var1_1.itemActions = new String[5];\n var1_1.itemActions[1] = \"Wield\";\n break;\n }\n case 23042: {\n var1_1.name = \"Mario's head\";\n var1_1.description = \"It's a Mario head.\";\n var1_1.groundModelId = 91104;\n var1_1.itemActions = new String[5];\n var1_1.itemActions[1] = \"Wield\";\n var1_1.itemActions[4] = \"Drop\";\n var1_1.groundActions = new String[5];\n var1_1.groundActions[2] = \"Take\";\n var1_1.femaleEquipt = 91105;\n var1_1.maleEquipt = 91105;\n var1_1.modelZoom = 625;\n var1_1.modelRotation1 = 72;\n var1_1.modelRotation2 = 20;\n var1_1.modelOffset1 = 0;\n var1_1.modelOffset2 = -10;\n var1_1.stackable = false;\n break;\n }\n case 23044: {\n var1_1.groundModelId = 91315;\n var1_1.femaleEquipt = 91316;\n var1_1.maleEquipt = 91316;\n var1_1.name = \"@blc@Emperor Platebody\";\n var1_1.description = \"It's an \" + var1_1.name;\n var1_1.itemActions = new String[]{null, \"Wield\", null, null, \"Drop\"};\n var1_1.modelZoom = 1506;\n var1_1.modelRotation1 = 473;\n var1_1.modelRotation2 = 2042;\n var1_1.modelOffset1 = 0;\n var1_1.modelOffset2 = 0;\n var1_1.groundActions = new String[5];\n var1_1.groundActions[2] = \"Take\";\n break;\n }\n case 23046: {\n var1_1.groundModelId = 91317;\n var1_1.femaleEquipt = 91317;\n var1_1.maleEquipt = 91317;\n var1_1.name = \"@blc@Emperor Boots\";\n var1_1.description = \"It's an \" + var1_1.name;\n var1_1.itemActions = new String[]{null, \"Wield\", null, null, \"Drop\"};\n var1_1.modelZoom = 850;\n var1_1.modelOffset1 = 0;\n var1_1.modelOffset2 = 16;\n var1_1.modelRotation1 = 533;\n var1_1.modelRotation1 = 333;\n var1_1.groundActions = new String[5];\n var1_1.groundActions[2] = \"Take\";\n break;\n }\n case 23048: {\n var1_1.groundModelId = 91318;\n var1_1.femaleEquipt = 91319;\n var1_1.maleEquipt = 91319;\n var1_1.name = \"@blc@Emperor Gloves\";\n var1_1.description = \"It's an \" + var1_1.name;\n var1_1.itemActions = new String[]{null, \"Wield\", null, null, \"Drop\"};\n var1_1.modelZoom = 1053;\n var1_1.modelRotation2 = 0;\n var1_1.modelRotation1 = 536;\n var1_1.modelOffset1 = 3;\n var1_1.modelOffset2 = 0;\n var1_1.groundActions = new String[5];\n var1_1.groundActions[2] = \"Take\";\n break;\n }\n case 23050: {\n var1_1.groundModelId = 91320;\n var1_1.femaleEquipt = 91321;\n var1_1.maleEquipt = 91321;\n var1_1.name = \"@blc@Emperors Helmet\";\n var1_1.description = \"It's an \" + var1_1.name;\n var1_1.itemActions = new String[]{null, \"Wield\", null, null, \"Drop\"};\n var1_1.modelZoom = 1500;\n var1_1.modelOffset1 = 0;\n var1_1.modelOffset2 = 0;\n var1_1.modelRotation1 = 900;\n var1_1.modelRotation2 = 1200;\n var1_1.groundActions = new String[5];\n var1_1.groundActions[2] = \"Take\";\n break;\n }\n case 23052: {\n var1_1.groundModelId = 91323;\n var1_1.femaleEquipt = 91322;\n var1_1.maleEquipt = 91322;\n var1_1.name = \"@blc@Emperors Platelegs\";\n var1_1.description = \"It's an \" + var1_1.name;\n var1_1.itemActions = new String[]{null, \"Wield\", null, null, \"Drop\"};\n var1_1.modelZoom = 1500;\n var1_1.modelOffset1 = 0;\n var1_1.modelOffset2 = 0;\n var1_1.modelRotation1 = 900;\n var1_1.modelRotation2 = 1200;\n var1_1.groundActions = new String[5];\n var1_1.groundActions[2] = \"Take\";\n break;\n }\n case 23054: {\n var1_1.name = \"Nex soul\";\n var1_1.description = \"A soul\";\n var1_1.groundModelId = 91349;\n var1_1.femaleEquipt = 91349;\n var1_1.maleEquipt = 91349;\n var1_1.itemActions = new String[5];\n var1_1.itemActions[4] = \"Drop\";\n var1_1.groundActions = new String[5];\n var1_1.groundActions[2] = \"Take\";\n var1_1.modelZoom = 2500;\n var1_1.modelRotation1 = 700;\n var1_1.modelRotation2 = 20;\n var1_1.modelOffset1 = 0;\n var1_1.modelOffset2 = 5;\n break;\n }\n case 23056: {\n var1_1.name = \"@blc@Emperor's soul\";\n var1_1.description = \"A soul\";\n var1_1.groundModelId = 91439;\n var1_1.femaleEquipt = 91439;\n var1_1.maleEquipt = 91439;\n var1_1.itemActions = new String[5];\n var1_1.itemActions[0] = \"Combine\";\n var1_1.itemActions[4] = \"Drop\";\n var1_1.groundActions = new String[5];\n var1_1.groundActions[2] = \"Take\";\n var1_1.modelZoom = 2500;\n var1_1.modelRotation1 = 700;\n var1_1.modelRotation2 = 20;\n var1_1.modelOffset1 = 0;\n var1_1.modelOffset2 = 5;\n break;\n }\n case 23058: {\n var1_1.groundModelId = 91415;\n var1_1.name = \"@yel@Platinum AK-47\";\n var1_1.description = \"The thug life chose you.\";\n var1_1.modelZoom = 1579;\n var1_1.modelOffset1 = -4;\n var1_1.modelOffset2 = 0;\n var1_1.modelRotation1 = 533;\n var1_1.modelRotation1 = 333;\n var1_1.femaleEquipt = 91416;\n var1_1.maleEquipt = 91416;\n var1_1.groundActions = new String[5];\n var1_1.groundActions[2] = \"Take\";\n var1_1.itemActions = new String[5];\n var1_1.stackable = false;\n var1_1.itemActions[1] = \"Wear\";\n break;\n }\n case 23060: {\n var1_1.groundModelId = 91500;\n var1_1.femaleEquipt = 91501;\n var1_1.maleEquipt = 91501;\n var1_1.name = \"Hunters helm\";\n var1_1.description = \"It's an \" + var1_1.name;\n var1_1.itemActions = new String[]{null, \"Wield\", null, null, \"Drop\"};\n var1_1.modelZoom = 850;\n var1_1.modelOffset1 = 0;\n var1_1.modelOffset2 = 16;\n var1_1.modelRotation1 = 533;\n var1_1.modelRotation1 = 333;\n var1_1.groundActions = new String[5];\n var1_1.groundActions[2] = \"Take\";\n break;\n }\n case 23062: {\n var1_1.groundModelId = 91502;\n var1_1.femaleEquipt = 91503;\n var1_1.maleEquipt = 91503;\n var1_1.name = \"Hunters platelegs\";\n var1_1.description = \"It's an \" + var1_1.name;\n var1_1.itemActions = new String[]{null, \"Wield\", null, null, \"Drop\"};\n var1_1.modelZoom = 1579;\n var1_1.modelOffset1 = -4;\n var1_1.modelOffset2 = 0;\n var1_1.modelRotation1 = 333;\n var1_1.modelRotation2 = 73;\n var1_1.groundActions = new String[5];\n var1_1.groundActions[2] = \"Take\";\n break;\n }\n case 23064: {\n var1_1.groundModelId = 91504;\n var1_1.femaleEquipt = 91505;\n var1_1.maleEquipt = 91505;\n var1_1.name = \"Hunters platebody\";\n var1_1.description = \"It's an \" + var1_1.name;\n var1_1.itemActions = new String[]{null, \"Wield\", null, null, \"Drop\"};\n var1_1.modelZoom = 1506;\n var1_1.modelRotation1 = 473;\n var1_1.modelRotation2 = 2042;\n var1_1.modelOffset1 = 0;\n var1_1.modelOffset2 = 0;\n var1_1.groundActions = new String[5];\n var1_1.groundActions[2] = \"Take\";\n break;\n }\n case 23066: {\n var1_1.name = \"Staff of 1000 Truths\";\n var1_1.groundModelId = 91512;\n var1_1.modelZoom = 2256;\n var1_1.modelRotation1 = 456;\n var1_1.modelRotation2 = 513;\n var1_1.modelOffset1 = 0;\n var1_1.modelOffset2 = 0;\n var1_1.femaleEquipt = 91513;\n var1_1.maleEquipt = 91513;\n var1_1.itemActions = new String[5];\n var1_1.itemActions[1] = \"Wield\";\n break;\n }\n case 23068: {\n var1_1.itemActions = new String[5];\n var1_1.itemActions[1] = \"Wear\";\n var1_1.groundModelId = 91514;\n var1_1.modelZoom = 1325;\n var1_1.modelRotation1 = 240;\n var1_1.modelRotation2 = 110;\n var1_1.modelOffset1 = -6;\n var1_1.modelOffset2 = -40;\n var1_1.femaleEquipt = 91516;\n var1_1.maleEquipt = 91516;\n var1_1.name = \"Ascension Crossbow Offhand\";\n var1_1.description = \"A weapon originally developed for Armadyl's forces\";\n break;\n }\n case 23070: {\n var1_1.groundModelId = 91517;\n var1_1.femaleEquipt = 91518;\n var1_1.maleEquipt = 91518;\n var1_1.name = \"@sly@Oblivion helm\";\n var1_1.description = \"It's an \" + var1_1.name;\n var1_1.itemActions = new String[]{null, \"Wield\", null, null, \"Drop\"};\n var1_1.modelZoom = 850;\n var1_1.modelOffset1 = 0;\n var1_1.modelOffset2 = 16;\n var1_1.modelRotation1 = 533;\n var1_1.modelRotation1 = 333;\n var1_1.groundActions = new String[5];\n var1_1.groundActions[2] = \"Take\";\n break;\n }\n case 23072: {\n var1_1.groundModelId = 91519;\n var1_1.femaleEquipt = 91520;\n var1_1.maleEquipt = 91520;\n var1_1.name = \"@sly@Oblivion platelegs\";\n var1_1.description = \"It's an \" + var1_1.name;\n var1_1.itemActions = new String[]{null, \"Wield\", null, null, \"Drop\"};\n var1_1.modelZoom = 1579;\n var1_1.modelOffset1 = -4;\n var1_1.modelOffset2 = 0;\n var1_1.modelRotation1 = 333;\n var1_1.modelRotation2 = 73;\n var1_1.groundActions = new String[5];\n var1_1.groundActions[2] = \"Take\";\n break;\n }\n case 23074: {\n var1_1.groundModelId = 91521;\n var1_1.femaleEquipt = 91522;\n var1_1.maleEquipt = 91522;\n var1_1.name = \"@sly@Oblivion platebody\";\n var1_1.description = \"It's an \" + var1_1.name;\n var1_1.itemActions = new String[]{null, \"Wield\", null, null, \"Drop\"};\n var1_1.modelZoom = 1506;\n var1_1.modelRotation1 = 473;\n var1_1.modelRotation2 = 2042;\n var1_1.modelOffset1 = 0;\n var1_1.modelOffset2 = 0;\n var1_1.groundActions = new String[5];\n var1_1.groundActions[2] = \"Take\";\n break;\n }\n case 23076: {\n var1_1.groundModelId = 91523;\n var1_1.name = \"@sly@Oblivion Wings\";\n var1_1.description = \"It's a \" + var1_1.name + \".\";\n var1_1.modelZoom = 1579;\n var1_1.modelOffset1 = -4;\n var1_1.modelOffset2 = 0;\n var1_1.modelRotation1 = 533;\n var1_1.modelRotation1 = 333;\n var1_1.femaleEquipt = 91524;\n var1_1.maleEquipt = 91524;\n var1_1.groundActions = new String[5];\n var1_1.groundActions[2] = \"Take\";\n var1_1.itemActions = new String[5];\n var1_1.stackable = false;\n var1_1.itemActions[1] = \"Wear\";\n break;\n }\n case 23078: {\n var1_1.groundModelId = 91581;\n var1_1.femaleEquipt = 91582;\n var1_1.maleEquipt = 91582;\n var1_1.name = \"Black Knight Platebody\";\n var1_1.description = \"you are one rich son of a bitch\";\n var1_1.itemActions = new String[]{null, \"Wield\", null, null, \"Drop\"};\n var1_1.modelZoom = 1506;\n var1_1.modelRotation1 = 473;\n var1_1.modelRotation2 = 2042;\n var1_1.modelOffset1 = 0;\n var1_1.modelOffset2 = 0;\n var1_1.groundActions = new String[5];\n var1_1.groundActions[2] = \"Take\";\n break;\n }\n case 23080: {\n var1_1.groundModelId = 91583;\n var1_1.femaleEquipt = 91584;\n var1_1.maleEquipt = 91584;\n var1_1.name = \"Black Knight Helmet\";\n var1_1.description = \"you are one rich son of a bitch\";\n var1_1.itemActions = new String[]{null, \"Wield\", null, null, \"Drop\"};\n var1_1.modelZoom = 1500;\n var1_1.modelOffset1 = 0;\n var1_1.modelOffset2 = 0;\n var1_1.modelRotation1 = 900;\n var1_1.modelRotation2 = 1200;\n var1_1.groundActions = new String[5];\n var1_1.groundActions[2] = \"Take\";\n break;\n }\n case 23082: {\n var1_1.groundModelId = 91585;\n var1_1.femaleEquipt = 91586;\n var1_1.maleEquipt = 91586;\n var1_1.name = \"Black Knight Platelegs\";\n var1_1.description = \"you are one rich son of a bitch\";\n var1_1.itemActions = new String[]{null, \"Wield\", null, null, \"Drop\"};\n var1_1.modelZoom = 1500;\n var1_1.modelOffset1 = 0;\n var1_1.modelOffset2 = 0;\n var1_1.modelRotation1 = 900;\n var1_1.modelRotation2 = 1200;\n var1_1.groundActions = new String[5];\n var1_1.groundActions[2] = \"Take\";\n break;\n }\n case 23084: {\n var1_1.groundModelId = 94116;\n var1_1.maleEquipt = 94117;\n var1_1.femaleEquipt = 94117;\n var1_1.name = \"Samurai Hat\";\n var1_1.description = \"Recoloured samurai set.\";\n var1_1.itemActions = new String[]{null, \"Wear\", null, null, \"Drop\"};\n var1_1.modelZoom = 964;\n var1_1.modelRotation1 = 498;\n var1_1.modelRotation2 = 1150;\n var1_1.modelOffset1 = -1;\n var1_1.modelOffset2 = -1;\n break;\n }\n case 23086: {\n var1_1.groundModelId = 94118;\n var1_1.maleEquipt = 94119;\n var1_1.femaleEquipt = 94119;\n var1_1.name = \"Samurai Body\";\n var1_1.description = \"Recoloured samurai set.\";\n var1_1.itemActions = new String[]{null, \"Wear\", null, null, \"Drop\"};\n var1_1.modelZoom = 964;\n var1_1.modelRotation1 = 498;\n var1_1.modelRotation2 = 1150;\n var1_1.modelOffset1 = -1;\n var1_1.modelOffset2 = -1;\n break;\n }\n case 23088: {\n var1_1.groundModelId = 94120;\n var1_1.maleEquipt = 94121;\n var1_1.femaleEquipt = 94121;\n var1_1.name = \"Samurai Legs\";\n var1_1.description = \"Recoloured samurai set.\";\n var1_1.itemActions = new String[]{null, \"Wear\", null, null, \"Drop\"};\n var1_1.modelZoom = 964;\n var1_1.modelRotation1 = 498;\n var1_1.modelRotation2 = 1150;\n var1_1.modelOffset1 = -1;\n var1_1.modelOffset2 = -1;\n break;\n }\n case 23090: {\n var1_1.groundModelId = 94127;\n var1_1.maleEquipt = 94128;\n var1_1.femaleEquipt = 94128;\n var1_1.name = \"Raiden Helm\";\n var1_1.itemActions = new String[]{null, \"Wear\", null, null, \"Drop\"};\n var1_1.modelZoom = 1179;\n var1_1.modelOffset1 = -1;\n var1_1.modelOffset2 = -1;\n var1_1.modelRotation1 = 498;\n var1_1.modelRotation2 = 1150;\n break;\n }\n case 23092: {\n var1_1.groundModelId = 94129;\n var1_1.maleEquipt = 94130;\n var1_1.femaleEquipt = 94130;\n var1_1.name = \"Raiden Body\";\n var1_1.itemActions = new String[]{null, \"Wear\", null, null, \"Drop\"};\n var1_1.modelZoom = 1054;\n var1_1.modelOffset1 = 1;\n var1_1.modelOffset2 = -3;\n var1_1.modelRotation1 = 578;\n var1_1.modelRotation2 = 10;\n break;\n }\n case 23094: {\n var1_1.groundModelId = 94131;\n var1_1.maleEquipt = 94132;\n var1_1.femaleEquipt = 94132;\n var1_1.name = \"Raiden Legs\";\n var1_1.itemActions = new String[]{null, \"Wear\", null, null, \"Drop\"};\n var1_1.modelZoom = 1614;\n var1_1.modelOffset1 = -1;\n var1_1.modelOffset2 = 1;\n var1_1.modelRotation1 = 498;\n var1_1.modelRotation2 = 2040;\n break;\n }\n case 23096: {\n var1_1.groundModelId = 94133;\n var1_1.maleEquipt = 94134;\n var1_1.femaleEquipt = 94134;\n var1_1.name = \"Dark Raiden Helm\";\n var1_1.itemActions = new String[]{null, \"Wear\", null, null, \"Drop\"};\n var1_1.modelZoom = 1109;\n var1_1.modelOffset1 = -1;\n var1_1.modelOffset2 = -1;\n var1_1.modelRotation1 = 498;\n var1_1.modelRotation2 = 1150;\n break;\n }\n case 23098: {\n var1_1.groundModelId = 94135;\n var1_1.maleEquipt = 94136;\n var1_1.femaleEquipt = 94136;\n var1_1.name = \"Dark Raiden Body\";\n var1_1.itemActions = new String[]{null, \"Wear\", null, null, \"Drop\"};\n var1_1.modelZoom = 1239;\n var1_1.modelOffset1 = 0;\n var1_1.modelOffset2 = -1;\n var1_1.modelRotation1 = 498;\n var1_1.modelRotation2 = 0;\n break;\n }\n case 23100: {\n var1_1.groundModelId = 94137;\n var1_1.maleEquipt = 94138;\n var1_1.femaleEquipt = 94138;\n var1_1.name = \"Dark Raiden Legs\";\n var1_1.itemActions = new String[]{null, \"Wear\", null, null, \"Drop\"};\n var1_1.modelZoom = 1624;\n var1_1.modelOffset1 = -1;\n var1_1.modelOffset2 = 1;\n var1_1.modelRotation1 = 498;\n var1_1.modelRotation2 = 2040;\n break;\n }\n case 23102: {\n var1_1.groundModelId = 90092;\n var1_1.name = \"Malevolent cuirass\";\n var1_1.description = \"It's a \" + var1_1.name + \".\";\n var1_1.modelZoom = 1524;\n var1_1.modelOffset1 = 0;\n var1_1.modelOffset2 = -73;\n var1_1.modelRotation1 = 333;\n var1_1.modelRotation2 = 31;\n var1_1.femaleEquipt = 90092;\n var1_1.maleEquipt = 90092;\n var1_1.groundActions = new String[5];\n var1_1.groundActions[2] = \"Take\";\n var1_1.itemActions = new String[5];\n var1_1.stackable = false;\n var1_1.itemActions[1] = \"Wear\";\n break;\n }\n case 23104: {\n var1_1.groundModelId = 90094;\n var1_1.name = \"Malevolent greaves\";\n var1_1.description = \"It's a \" + var1_1.name + \".\";\n var1_1.modelZoom = 1244;\n var1_1.modelOffset1 = -4;\n var1_1.modelOffset2 = 0;\n var1_1.modelRotation1 = 333;\n var1_1.modelRotation2 = 5;\n var1_1.femaleEquipt = 90094;\n var1_1.maleEquipt = 90094;\n var1_1.groundActions = new String[5];\n var1_1.groundActions[2] = \"Take\";\n var1_1.itemActions = new String[5];\n var1_1.stackable = false;\n var1_1.itemActions[1] = \"Wear\";\n break;\n }\n case 23106: {\n var1_1.groundModelId = 90096;\n var1_1.name = \"Malevolent helm\";\n var1_1.description = \"It's a \" + var1_1.name + \".\";\n var1_1.modelZoom = 1239;\n var1_1.modelOffset1 = 0;\n var1_1.modelOffset2 = -127;\n var1_1.modelRotation1 = 333;\n var1_1.modelRotation2 = 26;\n var1_1.femaleEquipt = 90096;\n var1_1.maleEquipt = 90096;\n var1_1.groundActions = new String[5];\n var1_1.groundActions[2] = \"Take\";\n var1_1.itemActions = new String[5];\n var1_1.stackable = false;\n var1_1.itemActions[1] = \"Wear\";\n break;\n }\n case 23108: {\n var1_1.name = \"@dgr@T@gra@y@dgr@r@gra@a@dgr@n@gra@t@dgr@i@gra@t@dgr@o@gra@'@dgr@s @gra@C@dgr@a@gra@p@dgr@e\";\n var1_1.groundModelId = 80346;\n var1_1.femaleEquipt = 80346;\n var1_1.maleEquipt = 80346;\n var1_1.groundActions = new String[5];\n var1_1.groundActions[2] = \"Take\";\n var1_1.itemActions = new String[5];\n var1_1.itemActions[1] = \"Wear\";\n break;\n }\n case 23110: {\n var1_1.name = \"The Pummeller\";\n var1_1.groundModelId = 11;\n var1_1.femaleEquipt = 12;\n var1_1.maleEquipt = 12;\n var1_1.groundActions = new String[5];\n var1_1.groundActions[2] = \"Take\";\n var1_1.itemActions = new String[5];\n var1_1.itemActions[1] = \"Equip\";\n var1_1.revisionType = RevisionType.CUSTOM_ITEM_MODELS;\n var1_1.modelRotation1 = 607;\n var1_1.modelRotation2 = 267;\n var1_1.modelOffset1 = 0;\n var1_1.modelOffset2 = 0;\n var1_1.modelZoom = 1560;\n break;\n }\n case 23112: {\n var1_1.name = \"Donor boots\";\n var1_1.maleEquipt = 15;\n var1_1.femaleEquipt = 15;\n var1_1.groundModelId = 16;\n var1_1.revisionType = RevisionType.CUSTOM_ITEM_MODELS;\n var1_1.modelZoom = 645;\n var1_1.modelOffset1 = 0;\n var1_1.modelOffset2 = 25;\n var1_1.modelRotation1 = 320;\n var1_1.modelRotation2 = 11;\n var1_1.itemActions = new String[5];\n var1_1.itemActions[1] = \"Equip\";\n break;\n }\n case 23114: {\n var1_1.name = \"Donor Demon Cape\";\n var1_1.revisionType = RevisionType.CUSTOM_ITEM_MODELS;\n var1_1.groundModelId = 18;\n var1_1.maleEquipt = 17;\n var1_1.modelZoom = 1700;\n var1_1.modelOffset1 = -20;\n var1_1.modelOffset2 = -10;\n var1_1.modelRotation1 = 305;\n var1_1.modelRotation2 = 0;\n var1_1.femaleEquipt = 17;\n var1_1.itemActions = new String[5];\n var1_1.itemActions[1] = \"Wear\";\n var1_1.stackable = false;\n break;\n }\n case 23116: {\n var1_1.name = \"Donor gloves\";\n var1_1.groundModelId = 20;\n var1_1.maleEquipt = 19;\n var1_1.femaleEquipt = 19;\n var1_1.modelZoom = 610;\n var1_1.modelOffset1 = 1;\n var1_1.modelOffset2 = -6;\n var1_1.modelRotation1 = 320;\n var1_1.modelRotation2 = 0;\n var1_1.revisionType = RevisionType.CUSTOM_ITEM_MODELS;\n var1_1.itemActions = new String[5];\n var1_1.itemActions[1] = \"Wear\";\n var1_1.stackable = false;\n break;\n }\n case 23118: {\n var1_1.name = \"Donor Helm\";\n var1_1.maleEquipt = 21;\n var1_1.femaleEquipt = 21;\n var1_1.groundModelId = 22;\n var1_1.modelZoom = 865;\n var1_1.modelOffset1 = 0;\n var1_1.modelOffset2 = 12;\n var1_1.modelRotation1 = 320;\n var1_1.modelRotation2 = 0;\n var1_1.revisionType = RevisionType.CUSTOM_ITEM_MODELS;\n var1_1.itemActions = new String[5];\n var1_1.itemActions[1] = \"Wear\";\n var1_1.stackable = false;\n break;\n }\n case 23120: {\n var1_1.name = \"Donor Body\";\n var1_1.maleEquipt = 23;\n var1_1.femaleEquipt = 23;\n var1_1.groundModelId = 24;\n var1_1.modelZoom = 1320;\n var1_1.modelOffset1 = 1;\n var1_1.modelOffset2 = 12;\n var1_1.modelRotation1 = 320;\n var1_1.modelRotation2 = 0;\n var1_1.revisionType = RevisionType.CUSTOM_ITEM_MODELS;\n var1_1.itemActions = new String[5];\n var1_1.itemActions[1] = \"Wear\";\n var1_1.stackable = false;\n break;\n }\n case 23122: {\n var1_1.name = \"Donor Legs\";\n var1_1.maleEquipt = 25;\n var1_1.femaleEquipt = 25;\n var1_1.groundModelId = 26;\n var1_1.modelZoom = 1555;\n var1_1.modelOffset1 = -4;\n var1_1.modelOffset2 = 9;\n var1_1.modelRotation1 = 320;\n var1_1.modelRotation2 = 0;\n var1_1.revisionType = RevisionType.CUSTOM_ITEM_MODELS;\n var1_1.itemActions = new String[5];\n var1_1.itemActions[1] = \"Wear\";\n var1_1.stackable = false;\n break;\n }\n case 23124: {\n var1_1.name = \"Superior Slayer Helm\";\n var1_1.maleEquipt = 27;\n var1_1.femaleEquipt = 27;\n var1_1.groundModelId = 28;\n var1_1.modelZoom = 770;\n var1_1.modelOffset1 = -5;\n var1_1.modelOffset2 = 17;\n var1_1.modelRotation1 = 320;\n var1_1.modelRotation2 = 0;\n var1_1.revisionType = RevisionType.CUSTOM_ITEM_MODELS;\n var1_1.itemActions = new String[5];\n var1_1.itemActions[1] = \"Wear\";\n var1_1.stackable = false;\n break;\n }\n case 23126: {\n var1_1.name = \"Superior Slayer Cape\";\n var1_1.revisionType = RevisionType.CUSTOM_ITEM_MODELS;\n var1_1.groundModelId = 30;\n var1_1.maleEquipt = 29;\n var1_1.femaleEquipt = 29;\n var1_1.modelZoom = 2885;\n var1_1.modelOffset1 = -4;\n var1_1.modelOffset2 = 76;\n var1_1.modelRotation1 = 320;\n var1_1.modelRotation2 = 5;\n var1_1.itemActions = new String[5];\n var1_1.itemActions[1] = \"Wear\";\n var1_1.stackable = false;\n break;\n }\n case 23128: {\n var1_1.name = \"Superior Slayer Scarf\";\n var1_1.revisionType = RevisionType.CUSTOM_ITEM_MODELS;\n var1_1.groundModelId = 32;\n var1_1.maleEquipt = 31;\n var1_1.femaleEquipt = 31;\n var1_1.modelZoom = 1040;\n var1_1.modelOffset1 = -6;\n var1_1.modelOffset2 = 4;\n var1_1.modelRotation1 = 320;\n var1_1.modelRotation2 = 876;\n var1_1.itemActions = new String[5];\n var1_1.itemActions[1] = \"Wear\";\n var1_1.stackable = false;\n break;\n }\n case 23130: {\n var1_1.name = \"Superior Slayer PlateBody\";\n var1_1.maleEquipt = 33;\n var1_1.femaleEquipt = 33;\n var1_1.groundModelId = 34;\n var1_1.modelZoom = 1415;\n var1_1.modelOffset1 = 2;\n var1_1.modelOffset2 = -13;\n var1_1.modelRotation1 = 320;\n var1_1.modelRotation2 = 1;\n var1_1.revisionType = RevisionType.CUSTOM_ITEM_MODELS;\n var1_1.itemActions = new String[5];\n var1_1.itemActions[1] = \"Wear\";\n var1_1.stackable = false;\n break;\n }\n case 23132: {\n var1_1.name = \"Superior Slayer PlateLegs\";\n var1_1.maleEquipt = 35;\n var1_1.femaleEquipt = 35;\n var1_1.groundModelId = 36;\n var1_1.modelZoom = 1755;\n var1_1.modelOffset1 = -8;\n var1_1.modelOffset2 = 7;\n var1_1.modelRotation1 = 320;\n var1_1.modelRotation2 = 1;\n var1_1.revisionType = RevisionType.CUSTOM_ITEM_MODELS;\n var1_1.itemActions = new String[5];\n var1_1.itemActions[1] = \"Wear\";\n var1_1.stackable = false;\n break;\n }\n case 23134: {\n var1_1.name = \"Superior Slayer KiteShield\";\n var1_1.maleEquipt = 37;\n var1_1.femaleEquipt = 37;\n var1_1.groundModelId = 38;\n var1_1.modelZoom = 1755;\n var1_1.modelOffset1 = -4;\n var1_1.modelOffset2 = 12;\n var1_1.modelRotation1 = 320;\n var1_1.modelRotation2 = 11;\n var1_1.revisionType = RevisionType.CUSTOM_ITEM_MODELS;\n var1_1.itemActions = new String[5];\n var1_1.itemActions[1] = \"Wear\";\n var1_1.stackable = false;\n break;\n }\n case 23136: {\n var1_1.name = \"Superior Slayer Gloves\";\n var1_1.maleEquipt = 39;\n var1_1.femaleEquipt = 39;\n var1_1.groundModelId = 40;\n var1_1.modelZoom = 665;\n var1_1.modelOffset1 = 1;\n var1_1.modelOffset2 = -4;\n var1_1.modelRotation1 = 320;\n var1_1.modelRotation2 = 431;\n var1_1.revisionType = RevisionType.CUSTOM_ITEM_MODELS;\n var1_1.itemActions = new String[5];\n var1_1.itemActions[1] = \"Wear\";\n var1_1.stackable = false;\n break;\n }\n case 23138: {\n var1_1.name = \"Superior Slayer Boots\";\n var1_1.maleEquipt = 41;\n var1_1.femaleEquipt = 41;\n var1_1.groundModelId = 42;\n var1_1.modelZoom = 655;\n var1_1.modelOffset1 = 1;\n var1_1.modelOffset2 = 18;\n var1_1.modelRotation1 = 320;\n var1_1.modelRotation2 = 0;\n var1_1.revisionType = RevisionType.CUSTOM_ITEM_MODELS;\n var1_1.itemActions = new String[5];\n var1_1.itemActions[1] = \"Wear\";\n var1_1.stackable = false;\n break;\n }\n case 23140: {\n var1_1.name = \"Hailstorm Sword\";\n var1_1.maleEquipt = 43;\n var1_1.femaleEquipt = 43;\n var1_1.groundModelId = 44;\n var1_1.modelZoom = 2100;\n var1_1.modelOffset1 = -5;\n var1_1.modelOffset2 = 13;\n var1_1.modelRotation1 = 350;\n var1_1.modelRotation2 = 545;\n var1_1.revisionType = RevisionType.CUSTOM_ITEM_MODELS;\n var1_1.itemActions = new String[5];\n var1_1.itemActions[1] = \"Wear\";\n var1_1.groundActions = new String[5];\n var1_1.groundActions[2] = \"HOLY SHIT\";\n var1_1.stackable = false;\n break;\n }\n case 23142: {\n var1_1.name = \"Omega Helm\";\n var1_1.maleEquipt = 45;\n var1_1.femaleEquipt = 45;\n var1_1.groundModelId = 46;\n var1_1.modelZoom = 540;\n var1_1.modelOffset1 = -1;\n var1_1.modelOffset2 = 27;\n var1_1.modelRotation1 = 320;\n var1_1.modelRotation2 = 0;\n var1_1.revisionType = RevisionType.CUSTOM_ITEM_MODELS;\n var1_1.itemActions = new String[5];\n var1_1.itemActions[1] = \"Wear\";\n var1_1.stackable = false;\n break;\n }\n case 23144: {\n var1_1.name = \"Omega PlateBody\";\n var1_1.maleEquipt = 47;\n var1_1.femaleEquipt = 47;\n var1_1.groundModelId = 48;\n var1_1.modelZoom = 1305;\n var1_1.modelOffset1 = -2;\n var1_1.modelOffset2 = 12;\n var1_1.modelRotation1 = 320;\n var1_1.modelRotation2 = 0;\n var1_1.revisionType = RevisionType.CUSTOM_ITEM_MODELS;\n var1_1.itemActions = new String[5];\n var1_1.itemActions[1] = \"Wear\";\n var1_1.stackable = false;\n break;\n }\n case 23146: {\n var1_1.name = \"Omega PlateLegs\";\n var1_1.maleEquipt = 49;\n var1_1.femaleEquipt = 49;\n var1_1.groundModelId = 50;\n var1_1.modelZoom = 1620;\n var1_1.modelOffset1 = -8;\n var1_1.modelOffset2 = 12;\n var1_1.modelRotation1 = 320;\n var1_1.modelRotation2 = 0;\n var1_1.revisionType = RevisionType.CUSTOM_ITEM_MODELS;\n var1_1.itemActions = new String[5];\n var1_1.itemActions[1] = \"Wear\";\n var1_1.stackable = false;\n break;\n }\n case 23148: {\n var1_1.name = \"Omega Gloves\";\n var1_1.maleEquipt = 51;\n var1_1.femaleEquipt = 51;\n var1_1.groundModelId = 52;\n var1_1.modelZoom = 450;\n var1_1.modelOffset1 = -3;\n var1_1.modelOffset2 = -8;\n var1_1.modelRotation1 = 320;\n var1_1.modelRotation2 = 0;\n var1_1.revisionType = RevisionType.CUSTOM_ITEM_MODELS;\n var1_1.itemActions = new String[5];\n var1_1.itemActions[1] = \"Wear\";\n var1_1.stackable = false;\n break;\n }\n case 23150: {\n var1_1.name = \"Omega Boots\";\n var1_1.maleEquipt = 53;\n var1_1.femaleEquipt = 53;\n var1_1.groundModelId = 53;\n var1_1.modelZoom = 680;\n var1_1.modelOffset1 = 0;\n var1_1.modelOffset2 = 29;\n var1_1.modelRotation1 = 320;\n var1_1.modelRotation2 = 41;\n var1_1.revisionType = RevisionType.CUSTOM_ITEM_MODELS;\n var1_1.itemActions = new String[5];\n var1_1.itemActions[1] = \"Wear\";\n var1_1.stackable = false;\n break;\n }\n case 23152: {\n var1_1.name = \"Sword\";\n var1_1.maleEquipt = 53;\n var1_1.femaleEquipt = 53;\n var1_1.groundModelId = 54;\n var1_1.revisionType = RevisionType.CUSTOM_ITEM_MODELS;\n var1_1.itemActions = new String[5];\n var1_1.itemActions[1] = \"Wear\";\n var1_1.stackable = false;\n break;\n }\n case 23154: {\n var1_1.name = \"Morty Pet\";\n var1_1.maleEquipt = 94004;\n var1_1.femaleEquipt = 94004;\n var1_1.groundModelId = 94004;\n var1_1.itemActions = new String[5];\n var1_1.itemActions[1] = \"Drop\";\n var1_1.revisionType = RevisionType.CUSTOM_ITEM_MODELS;\n var1_1.modelZoom = 964;\n var1_1.modelRotation1 = 498;\n var1_1.modelRotation2 = 1150;\n var1_1.modelOffset1 = -1;\n var1_1.modelOffset2 = -1;\n break;\n }\n case 23156: {\n var1_1.name = \"Rick Pet\";\n var1_1.maleEquipt = 94005;\n var1_1.femaleEquipt = 94005;\n var1_1.groundModelId = 94005;\n var1_1.itemActions = new String[5];\n var1_1.itemActions[1] = \"Drop\";\n var1_1.revisionType = RevisionType.CUSTOM_ITEM_MODELS;\n var1_1.modelZoom = 964;\n var1_1.modelRotation1 = 498;\n var1_1.modelRotation2 = 1150;\n var1_1.modelOffset1 = -1;\n var1_1.modelOffset2 = -1;\n break;\n }\n case 23158: {\n var1_1.name = \"Crash Bandicoot jr\";\n var1_1.maleEquipt = 94218;\n var1_1.femaleEquipt = 94218;\n var1_1.groundModelId = 94218;\n var1_1.itemActions = new String[5];\n var1_1.itemActions[1] = \"Drop\";\n var1_1.revisionType = RevisionType.CUSTOM_ITEM_MODELS;\n var1_1.modelZoom = 964;\n var1_1.modelRotation1 = 498;\n var1_1.modelRotation2 = 1150;\n var1_1.modelOffset1 = -1;\n var1_1.modelOffset2 = -1;\n break;\n }\n case 23160: {\n var1_1.name = \"Space Invader jr\";\n var1_1.maleEquipt = 94214;\n var1_1.femaleEquipt = 94214;\n var1_1.groundModelId = 94214;\n var1_1.itemActions = new String[5];\n var1_1.itemActions[1] = \"Drop\";\n var1_1.revisionType = RevisionType.CUSTOM_ITEM_MODELS;\n var1_1.modelZoom = 964;\n var1_1.modelRotation1 = 498;\n var1_1.modelRotation2 = 1150;\n var1_1.modelOffset1 = -1;\n var1_1.modelOffset2 = -1;\n break;\n }\n case 23162: {\n var1_1.name = \"Pacman jr\";\n var1_1.maleEquipt = 94205;\n var1_1.femaleEquipt = 94205;\n var1_1.groundModelId = 94205;\n var1_1.itemActions = new String[5];\n var1_1.itemActions[1] = \"Drop\";\n var1_1.revisionType = RevisionType.CUSTOM_ITEM_MODELS;\n var1_1.modelZoom = 964;\n var1_1.modelRotation1 = 498;\n var1_1.modelRotation2 = 1150;\n var1_1.modelOffset1 = -1;\n var1_1.modelOffset2 = -1;\n break;\n }\n case 18449: {\n var1_1.name = \"Imagine PlateBody\";\n var1_1.groundModelId = 89;\n var1_1.maleEquipt = 90;\n var1_1.femaleEquipt = 90;\n var1_1.groundActions = new String[5];\n var1_1.groundActions[2] = \"Take\";\n var1_1.itemActions = new String[5];\n var1_1.itemActions[1] = \"Equip\";\n var1_1.revisionType = RevisionType.CUSTOM_ITEM_MODELS;\n var1_1.modelZoom = 1244;\n var1_1.modelOffset1 = 0;\n var1_1.modelOffset2 = -1;\n var1_1.modelRotation1 = 498;\n var1_1.modelRotation2 = 5;\n break;\n }\n case 18450: {\n var1_1.name = \"Imagine Helm\";\n var1_1.groundModelId = 91;\n var1_1.maleEquipt = 92;\n var1_1.femaleEquipt = 92;\n var1_1.groundActions = new String[5];\n var1_1.groundActions[2] = \"Take\";\n var1_1.itemActions = new String[5];\n var1_1.itemActions[1] = \"Equip\";\n var1_1.revisionType = RevisionType.CUSTOM_ITEM_MODELS;\n var1_1.modelZoom = 649;\n var1_1.modelOffset1 = 2;\n var1_1.modelOffset2 = 4;\n var1_1.modelRotation1 = 498;\n var1_1.modelRotation2 = 2035;\n break;\n }\n case 18451: {\n var1_1.name = \"Imagine Platelegs\";\n var1_1.groundModelId = 93;\n var1_1.maleEquipt = 94;\n var1_1.femaleEquipt = 94;\n var1_1.groundActions = new String[5];\n var1_1.groundActions[2] = \"Take\";\n var1_1.itemActions = new String[5];\n var1_1.itemActions[1] = \"Equip\";\n var1_1.revisionType = RevisionType.CUSTOM_ITEM_MODELS;\n var1_1.modelZoom = 1614;\n var1_1.modelOffset1 = -7;\n var1_1.modelOffset2 = -1;\n var1_1.modelRotation1 = 498;\n var1_1.modelRotation2 = 0;\n break;\n }\n case 18452: {\n var1_1.name = \"Imagine Sword\";\n var1_1.groundModelId = 95;\n var1_1.maleEquipt = 96;\n var1_1.femaleEquipt = 96;\n var1_1.groundActions = new String[5];\n var1_1.groundActions[2] = \"Take\";\n var1_1.itemActions = new String[5];\n var1_1.itemActions[1] = \"Equip\";\n var1_1.revisionType = RevisionType.CUSTOM_ITEM_MODELS;\n var1_1.modelZoom = 1649;\n var1_1.modelOffset1 = -2;\n var1_1.modelOffset2 = -1;\n var1_1.modelRotation1 = 1753;\n var1_1.modelRotation2 = 1520;\n break;\n }\n case 18453: {\n var1_1.name = \"Imagine Sword\";\n var1_1.groundModelId = 95;\n var1_1.maleEquipt = 96;\n var1_1.femaleEquipt = 96;\n var1_1.groundActions = new String[5];\n var1_1.groundActions[2] = \"Take\";\n var1_1.itemActions = new String[5];\n var1_1.itemActions[1] = \"Equip\";\n var1_1.revisionType = RevisionType.CUSTOM_ITEM_MODELS;\n var1_1.modelZoom = 1649;\n var1_1.modelOffset1 = -2;\n var1_1.modelOffset2 = -1;\n var1_1.modelRotation1 = 1753;\n var1_1.modelRotation2 = 1520;\n break;\n }\n case 18454: {\n var1_1.name = \"Imagine Spirit Shield\";\n var1_1.groundModelId = 97;\n var1_1.maleEquipt = 98;\n var1_1.femaleEquipt = 98;\n var1_1.groundActions = new String[5];\n var1_1.groundActions[2] = \"Take\";\n var1_1.itemActions = new String[5];\n var1_1.itemActions[1] = \"Equip\";\n var1_1.revisionType = RevisionType.CUSTOM_ITEM_MODELS;\n var1_1.modelZoom = 1694;\n var1_1.modelOffset1 = -3;\n var1_1.modelOffset2 = -6;\n var1_1.modelRotation1 = 513;\n var1_1.modelRotation2 = 2025;\n break;\n }\n case 18455: {\n var1_1.name = \"Imagine Fire Cape\";\n var1_1.groundModelId = 99;\n var1_1.maleEquipt = 100;\n var1_1.femaleEquipt = 100;\n var1_1.groundActions = new String[5];\n var1_1.groundActions[2] = \"Take\";\n var1_1.itemActions = new String[5];\n var1_1.itemActions[1] = \"Equip\";\n var1_1.revisionType = RevisionType.CUSTOM_ITEM_MODELS;\n var1_1.modelZoom = 1809;\n var1_1.modelOffset1 = -1;\n var1_1.modelOffset2 = -9;\n var1_1.modelRotation1 = 498;\n var1_1.modelRotation2 = 1005;\n break;\n }\n case 23164: {\n var1_1.name = \"Imagine Gloves\";\n var1_1.groundModelId = 101;\n var1_1.maleEquipt = 102;\n var1_1.femaleEquipt = 102;\n var1_1.groundActions = new String[5];\n var1_1.groundActions[2] = \"Take\";\n var1_1.itemActions = new String[5];\n var1_1.itemActions[1] = \"Equip\";\n var1_1.revisionType = RevisionType.CUSTOM_ITEM_MODELS;\n var1_1.modelZoom = 579;\n var1_1.modelOffset1 = -2;\n var1_1.modelOffset2 = -1;\n var1_1.modelRotation1 = 498;\n var1_1.modelRotation2 = 1150;\n break;\n }\n case 23166: {\n var1_1.name = \"Imagine Boots\";\n var1_1.groundModelId = 103;\n var1_1.maleEquipt = 103;\n var1_1.femaleEquipt = 103;\n var1_1.groundActions = new String[5];\n var1_1.groundActions[2] = \"Take\";\n var1_1.itemActions = new String[5];\n var1_1.itemActions[1] = \"Equip\";\n var1_1.revisionType = RevisionType.CUSTOM_ITEM_MODELS;\n var1_1.modelZoom = 644;\n var1_1.modelOffset1 = 0;\n var1_1.modelOffset2 = 2;\n var1_1.modelRotation1 = 28;\n var1_1.modelRotation2 = 2025;\n break;\n }\n case 23168: {\n var1_1.name = \"Imagine Chest(MBox)\";\n var1_1.groundModelId = 104;\n var1_1.maleEquipt = 104;\n var1_1.femaleEquipt = 104;\n var1_1.groundActions = new String[5];\n var1_1.groundActions[2] = \"Take\";\n var1_1.itemActions = new String[5];\n var1_1.itemActions[1] = \"Open\";\n var1_1.revisionType = RevisionType.CUSTOM_ITEM_MODELS;\n var1_1.modelZoom = 964;\n var1_1.modelOffset1 = -1;\n var1_1.modelOffset2 = 2;\n var1_1.modelRotation1 = 2038;\n var1_1.modelRotation2 = 2025;\n break;\n }\n case 23169: {\n var1_1.name = \"Beginner Trophy\";\n var1_1.groundModelId = 105;\n var1_1.maleEquipt = 105;\n var1_1.femaleEquipt = 105;\n var1_1.groundActions = new String[5];\n var1_1.groundActions[2] = \"Take\";\n var1_1.itemActions = new String[5];\n var1_1.itemActions[1] = \"Equip\";\n var1_1.revisionType = RevisionType.CUSTOM_ITEM_MODELS;\n var1_1.modelZoom = 1355;\n var1_1.modelOffset1 = -4;\n var1_1.modelOffset2 = 3;\n var1_1.modelRotation1 = 550;\n var1_1.modelRotation2 = 776;\n break;\n }\n case 23170: {\n var1_1.name = \"Easy Trophy\";\n var1_1.groundModelId = 106;\n var1_1.maleEquipt = 106;\n var1_1.femaleEquipt = 106;\n var1_1.groundActions = new String[5];\n var1_1.groundActions[2] = \"Take\";\n var1_1.itemActions = new String[5];\n var1_1.itemActions[1] = \"Equip\";\n var1_1.revisionType = RevisionType.CUSTOM_ITEM_MODELS;\n var1_1.modelZoom = 1355;\n var1_1.modelOffset1 = -4;\n var1_1.modelOffset2 = 3;\n var1_1.modelRotation1 = 550;\n var1_1.modelRotation2 = 776;\n break;\n }\n case 23171: {\n var1_1.name = \"Medium Trophy\";\n var1_1.groundModelId = 107;\n var1_1.maleEquipt = 107;\n var1_1.femaleEquipt = 107;\n var1_1.groundActions = new String[5];\n var1_1.groundActions[2] = \"Take\";\n var1_1.itemActions = new String[5];\n var1_1.itemActions[1] = \"Equip\";\n var1_1.revisionType = RevisionType.CUSTOM_ITEM_MODELS;\n var1_1.modelZoom = 1355;\n var1_1.modelOffset1 = -4;\n var1_1.modelOffset2 = 3;\n var1_1.modelRotation1 = 550;\n var1_1.modelRotation2 = 776;\n break;\n }\n case 23172: {\n var1_1.name = \"Hard Trophy\";\n var1_1.groundModelId = 108;\n var1_1.maleEquipt = 108;\n var1_1.femaleEquipt = 108;\n var1_1.groundActions = new String[5];\n var1_1.groundActions[2] = \"Take\";\n var1_1.itemActions = new String[5];\n var1_1.itemActions[1] = \"Equip\";\n var1_1.revisionType = RevisionType.CUSTOM_ITEM_MODELS;\n var1_1.modelZoom = 1355;\n var1_1.modelOffset1 = -4;\n var1_1.modelOffset2 = 3;\n var1_1.modelRotation1 = 550;\n var1_1.modelRotation2 = 776;\n break;\n }\n case 23173: {\n var1_1.name = \"Elite Trophy\";\n var1_1.groundModelId = 109;\n var1_1.maleEquipt = 109;\n var1_1.femaleEquipt = 109;\n var1_1.groundActions = new String[5];\n var1_1.groundActions[2] = \"Take\";\n var1_1.itemActions = new String[5];\n var1_1.itemActions[1] = \"Equip\";\n var1_1.revisionType = RevisionType.CUSTOM_ITEM_MODELS;\n var1_1.modelZoom = 1355;\n var1_1.modelOffset1 = -4;\n var1_1.modelOffset2 = 3;\n var1_1.modelRotation1 = 550;\n var1_1.modelRotation2 = 776;\n break;\n }\n case 23174: {\n var1_1.name = \"Hailstorm Shield\";\n var1_1.maleEquipt = 110;\n var1_1.femaleEquipt = 110;\n var1_1.groundModelId = 111;\n var1_1.revisionType = RevisionType.CUSTOM_ITEM_MODELS;\n var1_1.itemActions = new String[5];\n var1_1.itemActions[1] = \"Wear\";\n var1_1.groundActions = new String[5];\n var1_1.groundActions[2] = \"HOLY SHIT\";\n var1_1.stackable = false;\n var1_1.modelZoom = 1760;\n var1_1.modelOffset1 = -2;\n var1_1.modelOffset2 = 4;\n var1_1.modelRotation1 = 555;\n var1_1.modelRotation2 = 0;\n break;\n }\n case 23176: {\n var1_1.name = \"Finest Rune\";\n var1_1.groundModelId = 112;\n var1_1.maleEquipt = 112;\n var1_1.femaleEquipt = 112;\n var1_1.groundActions = new String[5];\n var1_1.groundActions[2] = \"Take\";\n var1_1.revisionType = RevisionType.CUSTOM_ITEM_MODELS;\n var1_1.modelZoom = 1355;\n var1_1.modelOffset1 = -4;\n var1_1.modelOffset2 = 3;\n var1_1.modelRotation1 = 550;\n var1_1.modelRotation2 = 776;\n break;\n }\n case 23177: {\n var1_1.name = \"Lucky Rune\";\n var1_1.groundModelId = 113;\n var1_1.maleEquipt = 113;\n var1_1.femaleEquipt = 113;\n var1_1.groundActions = new String[5];\n var1_1.groundActions[2] = \"Take\";\n var1_1.revisionType = RevisionType.CUSTOM_ITEM_MODELS;\n var1_1.modelZoom = 1355;\n var1_1.modelOffset1 = -4;\n var1_1.modelOffset2 = 3;\n var1_1.modelRotation1 = 550;\n var1_1.modelRotation2 = 776;\n break;\n }\n case 23178: {\n var1_1.name = \"Chaos Stone\";\n var1_1.groundModelId = 114;\n var1_1.maleEquipt = 114;\n var1_1.femaleEquipt = 114;\n var1_1.groundActions = new String[5];\n var1_1.groundActions[2] = \"Take\";\n var1_1.revisionType = RevisionType.CUSTOM_ITEM_MODELS;\n var1_1.modelZoom = 1355;\n var1_1.modelOffset1 = -4;\n var1_1.modelOffset2 = 15;\n var1_1.modelRotation1 = 800;\n var1_1.modelRotation2 = 1031;\n break;\n }\n case 23179: {\n var1_1.name = \"Extreme Stone\";\n var1_1.groundModelId = 115;\n var1_1.maleEquipt = 115;\n var1_1.femaleEquipt = 115;\n var1_1.groundActions = new String[5];\n var1_1.groundActions[2] = \"Take\";\n var1_1.revisionType = RevisionType.CUSTOM_ITEM_MODELS;\n var1_1.modelZoom = 1355;\n var1_1.modelOffset1 = -4;\n var1_1.modelOffset2 = 15;\n var1_1.modelRotation1 = 800;\n var1_1.modelRotation2 = 1031;\n break;\n }\n case 23180: {\n var1_1.name = \"Rune of Protection I\";\n var1_1.groundModelId = 116;\n var1_1.maleEquipt = 116;\n var1_1.femaleEquipt = 116;\n var1_1.groundActions = new String[5];\n var1_1.groundActions[2] = \"Take\";\n var1_1.revisionType = RevisionType.CUSTOM_ITEM_MODELS;\n var1_1.modelZoom = 460;\n var1_1.modelOffset1 = 0;\n var1_1.modelOffset2 = 2;\n var1_1.modelRotation1 = 550;\n var1_1.modelRotation2 = 1;\n break;\n }\n case 23181: {\n var1_1.name = \"Rune of Protection II\";\n var1_1.groundModelId = 117;\n var1_1.maleEquipt = 117;\n var1_1.femaleEquipt = 117;\n var1_1.groundActions = new String[5];\n var1_1.groundActions[2] = \"Take\";\n var1_1.revisionType = RevisionType.CUSTOM_ITEM_MODELS;\n var1_1.modelZoom = 460;\n var1_1.modelOffset1 = 0;\n var1_1.modelOffset2 = 2;\n var1_1.modelRotation1 = 550;\n var1_1.modelRotation2 = 1;\n break;\n }\n case 23182: {\n var1_1.name = \"Rune of Protection III\";\n var1_1.groundModelId = 118;\n var1_1.maleEquipt = 118;\n var1_1.femaleEquipt = 118;\n var1_1.groundActions = new String[5];\n var1_1.groundActions[2] = \"Take\";\n var1_1.revisionType = RevisionType.CUSTOM_ITEM_MODELS;\n var1_1.modelZoom = 460;\n var1_1.modelOffset1 = 0;\n var1_1.modelOffset2 = 2;\n var1_1.modelRotation1 = 550;\n var1_1.modelRotation2 = 1;\n break;\n }\n case 23183: {\n var1_1.name = \"Rune of Protection IV\";\n var1_1.groundModelId = 119;\n var1_1.maleEquipt = 119;\n var1_1.femaleEquipt = 119;\n var1_1.groundActions = new String[5];\n var1_1.groundActions[2] = \"Take\";\n var1_1.revisionType = RevisionType.CUSTOM_ITEM_MODELS;\n var1_1.modelZoom = 460;\n var1_1.modelOffset1 = 0;\n var1_1.modelOffset2 = 2;\n var1_1.modelRotation1 = 550;\n var1_1.modelRotation2 = 1;\n break;\n }\n case 23184: {\n var1_1.name = \"Master Stone +17\";\n var1_1.groundModelId = 120;\n var1_1.maleEquipt = 120;\n var1_1.femaleEquipt = 120;\n var1_1.groundActions = new String[5];\n var1_1.groundActions[2] = \"Take\";\n var1_1.revisionType = RevisionType.CUSTOM_ITEM_MODELS;\n var1_1.modelZoom = 1355;\n var1_1.modelOffset1 = -4;\n var1_1.modelOffset2 = 3;\n var1_1.modelRotation1 = 550;\n var1_1.modelRotation2 = 1031;\n break;\n }\n case 23185: {\n var1_1.name = \"Master Stone +18\";\n var1_1.groundModelId = 121;\n var1_1.maleEquipt = 121;\n var1_1.femaleEquipt = 121;\n var1_1.groundActions = new String[5];\n var1_1.groundActions[2] = \"Take\";\n var1_1.revisionType = RevisionType.CUSTOM_ITEM_MODELS;\n var1_1.modelZoom = 1355;\n var1_1.modelOffset1 = -4;\n var1_1.modelOffset2 = 3;\n var1_1.modelRotation1 = 550;\n var1_1.modelRotation2 = 1006;\n break;\n }\n case 23186: {\n var1_1.name = \"Master Stone +19\";\n var1_1.groundModelId = 122;\n var1_1.maleEquipt = 122;\n var1_1.femaleEquipt = 122;\n var1_1.groundActions = new String[5];\n var1_1.groundActions[2] = \"Take\";\n var1_1.revisionType = RevisionType.CUSTOM_ITEM_MODELS;\n var1_1.modelZoom = 1355;\n var1_1.modelOffset1 = -4;\n var1_1.modelOffset2 = 3;\n var1_1.modelRotation1 = 550;\n var1_1.modelRotation2 = 1006;\n break;\n }\n case 23187: {\n var1_1.name = \"Master Stone +20\";\n var1_1.groundModelId = 123;\n var1_1.maleEquipt = 123;\n var1_1.femaleEquipt = 123;\n var1_1.groundActions = new String[5];\n var1_1.groundActions[2] = \"Take\";\n var1_1.revisionType = RevisionType.CUSTOM_ITEM_MODELS;\n var1_1.modelZoom = 1165;\n var1_1.modelOffset1 = -3;\n var1_1.modelOffset2 = 5;\n var1_1.modelRotation1 = 550;\n var1_1.modelRotation2 = 1026;\n break;\n }\n case 23188: {\n var1_1.name = \"Master Stone +21\";\n var1_1.groundModelId = 124;\n var1_1.maleEquipt = 124;\n var1_1.femaleEquipt = 124;\n var1_1.groundActions = new String[5];\n var1_1.groundActions[2] = \"Take\";\n var1_1.revisionType = RevisionType.CUSTOM_ITEM_MODELS;\n var1_1.modelZoom = 1170;\n var1_1.modelOffset1 = -4;\n var1_1.modelOffset2 = 3;\n var1_1.modelRotation1 = 550;\n var1_1.modelRotation2 = 1001;\n break;\n }\n case 23189: {\n var1_1.name = \"Master Stone +23\";\n var1_1.groundModelId = 125;\n var1_1.maleEquipt = 125;\n var1_1.femaleEquipt = 125;\n var1_1.groundActions = new String[5];\n var1_1.groundActions[2] = \"Take\";\n var1_1.revisionType = RevisionType.CUSTOM_ITEM_MODELS;\n var1_1.modelZoom = 1190;\n var1_1.modelOffset1 = -4;\n var1_1.modelOffset2 = 3;\n var1_1.modelRotation1 = 550;\n var1_1.modelRotation2 = 1011;\n break;\n }\n case 23190: {\n var1_1.name = \"Master Stone +25\";\n var1_1.groundModelId = 126;\n var1_1.maleEquipt = 126;\n var1_1.femaleEquipt = 126;\n var1_1.groundActions = new String[5];\n var1_1.groundActions[2] = \"Take\";\n var1_1.revisionType = RevisionType.CUSTOM_ITEM_MODELS;\n var1_1.modelZoom = 900;\n var1_1.modelOffset1 = -3;\n var1_1.modelOffset2 = -5;\n var1_1.modelRotation1 = 550;\n var1_1.modelRotation2 = 1016;\n break;\n }\n case 23191: {\n var1_1.name = \"Master Stone +26\";\n var1_1.groundModelId = 127;\n var1_1.maleEquipt = 127;\n var1_1.femaleEquipt = 127;\n var1_1.groundActions = new String[5];\n var1_1.groundActions[2] = \"Take\";\n var1_1.revisionType = RevisionType.CUSTOM_ITEM_MODELS;\n var1_1.modelZoom = 1100;\n var1_1.modelOffset1 = -3;\n var1_1.modelOffset2 = 3;\n var1_1.modelRotation1 = 550;\n var1_1.modelRotation2 = 1016;\n break;\n }\n case 23192: {\n var1_1.name = \"Master Stone +27\";\n var1_1.groundModelId = 128;\n var1_1.maleEquipt = 128;\n var1_1.femaleEquipt = 128;\n var1_1.groundActions = new String[5];\n var1_1.groundActions[2] = \"Take\";\n var1_1.revisionType = RevisionType.CUSTOM_ITEM_MODELS;\n var1_1.modelZoom = 995;\n var1_1.modelOffset1 = 2;\n var1_1.modelOffset2 = 4;\n var1_1.modelRotation1 = 550;\n var1_1.modelRotation2 = 1016;\n break;\n }\n case 23193: {\n var1_1.name = \"Master Stone +28\";\n var1_1.groundModelId = 129;\n var1_1.maleEquipt = 129;\n var1_1.femaleEquipt = 129;\n var1_1.groundActions = new String[5];\n var1_1.groundActions[2] = \"Take\";\n var1_1.revisionType = RevisionType.CUSTOM_ITEM_MODELS;\n var1_1.modelZoom = 935;\n var1_1.modelOffset1 = -1;\n var1_1.modelOffset2 = -1;\n var1_1.modelRotation1 = 550;\n var1_1.modelRotation2 = 1036;\n break;\n }\n case 23194: {\n var1_1.name = \"Master Stone +29\";\n var1_1.groundModelId = 130;\n var1_1.maleEquipt = 130;\n var1_1.femaleEquipt = 130;\n var1_1.groundActions = new String[5];\n var1_1.groundActions[2] = \"Take\";\n var1_1.revisionType = RevisionType.CUSTOM_ITEM_MODELS;\n var1_1.modelZoom = 1165;\n var1_1.modelOffset1 = -2;\n var1_1.modelOffset2 = 6;\n var1_1.modelRotation1 = 550;\n var1_1.modelRotation2 = 1036;\n break;\n }\n case 23195: {\n var1_1.name = \"Master Stone +30\";\n var1_1.groundModelId = 131;\n var1_1.maleEquipt = 131;\n var1_1.femaleEquipt = 131;\n var1_1.groundActions = new String[5];\n var1_1.groundActions[2] = \"Take\";\n var1_1.revisionType = RevisionType.CUSTOM_ITEM_MODELS;\n var1_1.modelZoom = 1310;\n var1_1.modelOffset1 = -1;\n var1_1.modelOffset2 = -1;\n var1_1.modelRotation1 = 550;\n var1_1.modelRotation2 = 1036;\n break;\n }\n case 13151: {\n var1_1.name = \"Vote Book\";\n break;\n }\n case 23196: {\n var1_1.name = \"Necklace of Virtue\";\n var1_1.itemActions = new String[5];\n var1_1.itemActions[1] = \"Wear\";\n var1_1.groundModelId = 132;\n var1_1.maleEquipt = 133;\n var1_1.femaleEquipt = 133;\n var1_1.modelZoom = 1005;\n var1_1.modelOffset1 = 2;\n var1_1.modelOffset2 = 12;\n var1_1.modelRotation1 = 320;\n var1_1.modelRotation2 = 31;\n var1_1.revisionType = RevisionType.CUSTOM_ITEM_MODELS;\n break;\n }\n case 23197: {\n var1_1.name = \"Band of Virtue\";\n var1_1.itemActions = new String[5];\n var1_1.itemActions[1] = \"Wear\";\n var1_1.groundModelId = 134;\n var1_1.maleEquipt = 134;\n var1_1.femaleEquipt = 134;\n var1_1.modelZoom = 740;\n var1_1.modelOffset1 = 6;\n var1_1.modelOffset2 = 29;\n var1_1.modelRotation1 = 320;\n var1_1.modelRotation2 = 271;\n var1_1.revisionType = RevisionType.CUSTOM_ITEM_MODELS;\n break;\n }\n case 23198: {\n var1_1.groundModelId = 135;\n var1_1.name = \"Medusa's Bow\";\n var1_1.description = \"A Medusa bow!.\";\n var1_1.maleEquipt = 135;\n var1_1.femaleEquipt = 135;\n var1_1.modelOffset1 = 0;\n var1_1.modelOffset2 = 0;\n var1_1.itemActions = new String[5];\n var1_1.itemActions[1] = \"Wear\";\n var1_1.stackable = false;\n var1_1.revisionType = RevisionType.CUSTOM_ITEM_MODELS;\n break;\n }\n case 23199: {\n var1_1.groundModelId = 94277;\n var1_1.name = \"Thanos pet\";\n var1_1.description = \"A Thanos pet!.\";\n var1_1.modelZoom = 3000;\n var1_1.modelRotation1 = 0;\n var1_1.modelRotation2 = 0;\n var1_1.modelOffset1 = 0;\n var1_1.modelOffset2 = 0;\n var1_1.itemActions = new String[5];\n var1_1.itemActions[3] = \"Summon\";\n var1_1.itemActions[4] = \"Drop\";\n var1_1.stackable = false;\n break;\n }\n case 23200: {\n var1_1.groundModelId = 94259;\n var1_1.name = \"Hulk pet\";\n var1_1.description = \"A Hulk pet!.\";\n var1_1.modelZoom = 3000;\n var1_1.modelRotation1 = 0;\n var1_1.modelRotation2 = 0;\n var1_1.modelOffset1 = 0;\n var1_1.modelOffset2 = 0;\n var1_1.itemActions = new String[5];\n var1_1.itemActions[3] = \"Summon\";\n var1_1.itemActions[4] = \"Drop\";\n var1_1.stackable = false;\n break;\n }\n case 23201: {\n var1_1.name = \"Skeletal Plate Gloves\";\n var1_1.groundModelId = 136;\n var1_1.maleEquipt = 137;\n var1_1.femaleEquipt = 137;\n var1_1.groundActions = new String[5];\n var1_1.groundActions[2] = \"Take\";\n var1_1.itemActions = new String[5];\n var1_1.itemActions[1] = \"Equip\";\n var1_1.revisionType = RevisionType.CUSTOM_ITEM_MODELS;\n var1_1.modelZoom = 585;\n var1_1.modelOffset1 = 0;\n var1_1.modelOffset2 = 2;\n var1_1.modelRotation1 = 320;\n var1_1.modelRotation2 = 0;\n break;\n }\n case 23202: {\n var1_1.name = \"Skeletal Plate Boots\";\n var1_1.groundModelId = 138;\n var1_1.maleEquipt = 139;\n var1_1.femaleEquipt = 139;\n var1_1.groundActions = new String[5];\n var1_1.groundActions[2] = \"Take\";\n var1_1.itemActions = new String[5];\n var1_1.itemActions[1] = \"Equip\";\n var1_1.revisionType = RevisionType.CUSTOM_ITEM_MODELS;\n var1_1.modelZoom = 735;\n var1_1.modelOffset1 = -1;\n var1_1.modelOffset2 = 22;\n var1_1.modelRotation1 = 370;\n var1_1.modelRotation2 = 0;\n break;\n }\n }\n if (n >= 23000 && n <= 23111 && (n & 1) == 1) {\n ItemDefinition.convertToNote((ItemDefinition)var1_1, n - 1, 799);\n }\n boolean bl = false;\n String[] arrstring = var1_1.itemActions;\n int n2 = arrstring.length;\n int n3 = 0;\n do {\n if (n3 >= n2) {\n if (!bl) return var1_1;\n var1_1.aByte154 = (byte)-15;\n return var1_1;\n }\n String string = arrstring[n3];\n if (string != null && string.length() != 0 && string.equalsIgnoreCase(\"Wear\")) {\n bl = true;\n }\n ++n3;\n } while (true);\n }", "public static boolean renderCustomEffect(RenderItem renderItem, ItemStack itemStack, IBakedModel model) {\n/* 765 */ if (enchantmentProperties == null)\n/* */ {\n/* 767 */ return false;\n/* */ }\n/* 769 */ if (itemStack == null)\n/* */ {\n/* 771 */ return false;\n/* */ }\n/* */ \n/* */ \n/* 775 */ int[][] idLevels = getEnchantmentIdLevels(itemStack);\n/* */ \n/* 777 */ if (idLevels.length <= 0)\n/* */ {\n/* 779 */ return false;\n/* */ }\n/* */ \n/* */ \n/* 783 */ HashSet<Integer> layersRendered = null;\n/* 784 */ boolean rendered = false;\n/* 785 */ TextureManager textureManager = Config.getTextureManager();\n/* */ \n/* 787 */ for (int i = 0; i < idLevels.length; i++) {\n/* */ \n/* 789 */ int id = idLevels[i][0];\n/* */ \n/* 791 */ if (id >= 0 && id < enchantmentProperties.length) {\n/* */ \n/* 793 */ CustomItemProperties[] cips = enchantmentProperties[id];\n/* */ \n/* 795 */ if (cips != null)\n/* */ {\n/* 797 */ for (int p = 0; p < cips.length; p++) {\n/* */ \n/* 799 */ CustomItemProperties cip = cips[p];\n/* */ \n/* 801 */ if (layersRendered == null)\n/* */ {\n/* 803 */ layersRendered = new HashSet();\n/* */ }\n/* */ \n/* 806 */ if (layersRendered.add(Integer.valueOf(id)) && matchesProperties(cip, itemStack, idLevels) && cip.textureLocation != null) {\n/* */ \n/* 808 */ textureManager.bindTexture(cip.textureLocation);\n/* 809 */ float width = cip.getTextureWidth(textureManager);\n/* */ \n/* 811 */ if (!rendered) {\n/* */ \n/* 813 */ rendered = true;\n/* 814 */ GlStateManager.depthMask(false);\n/* 815 */ GlStateManager.depthFunc(514);\n/* 816 */ GlStateManager.disableLighting();\n/* 817 */ GlStateManager.matrixMode(5890);\n/* */ } \n/* */ \n/* 820 */ Blender.setupBlend(cip.blend, 1.0F);\n/* 821 */ GlStateManager.pushMatrix();\n/* 822 */ GlStateManager.scale(width / 2.0F, width / 2.0F, width / 2.0F);\n/* 823 */ float offset = cip.speed * (float)(Minecraft.getSystemTime() % 3000L) / 3000.0F / 8.0F;\n/* 824 */ GlStateManager.translate(offset, 0.0F, 0.0F);\n/* 825 */ GlStateManager.rotate(cip.rotation, 0.0F, 0.0F, 1.0F);\n/* 826 */ renderItem.func_175035_a(model, -1);\n/* 827 */ GlStateManager.popMatrix();\n/* */ } \n/* */ } \n/* */ }\n/* */ } \n/* */ } \n/* */ \n/* 834 */ if (rendered) {\n/* */ \n/* 836 */ GlStateManager.enableAlpha();\n/* 837 */ GlStateManager.enableBlend();\n/* 838 */ GlStateManager.blendFunc(770, 771);\n/* 839 */ GlStateManager.color(1.0F, 1.0F, 1.0F, 1.0F);\n/* 840 */ GlStateManager.matrixMode(5888);\n/* 841 */ GlStateManager.enableLighting();\n/* 842 */ GlStateManager.depthFunc(515);\n/* 843 */ GlStateManager.depthMask(true);\n/* 844 */ textureManager.bindTexture(TextureMap.locationBlocksTexture);\n/* */ } \n/* */ \n/* 847 */ return rendered;\n/* */ }", "@Overwrite(remap = false)\n private void renderDroppedItem(EntityItem entityItem, IIcon icon, int p_77020_3_, float p_77020_4_, float p_77020_5_, float p_77020_6_, float p_77020_7_, int pass) {\n Tessellator tessellator = Tessellator.instance;\n ItemStack itemStack = ItemUtils.changeRenderTarget(entityItem.getEntityItem());\n\n\n if (icon == null) {\n TextureManager texturemanager = Minecraft.getMinecraft().getTextureManager();\n ResourceLocation resourcelocation = texturemanager.getResourceLocation(itemStack.getItemSpriteNumber());\n icon = ((TextureMap) texturemanager.getTexture(resourcelocation)).getAtlasSprite(\"missingno\");\n }\n\n float f14 = icon.getMinU();\n float f15 = icon.getMaxU();\n float f4 = icon.getMinV();\n float f5 = icon.getMaxV();\n float f6 = 1.0F;\n float f7 = 0.5F;\n float f8 = 0.25F;\n float f10;\n\n if (this.renderManager.options.fancyGraphics) {\n GL11.glPushMatrix();\n\n if (renderInFrame) {\n GL11.glRotatef(180.0F, 0.0F, 1.0F, 0.0F);\n } else {\n GL11.glRotatef((((float) entityItem.age + p_77020_4_) / 20.0F + entityItem.hoverStart) * (180F / (float) Math.PI), 0.0F, 1.0F, 0.0F);\n }\n\n float f9 = 0.0625F;\n f10 = 0.021875F;\n //ItemStack itemStack = entityItem.getEntityItem();\n int j = itemStack.stackSize;\n byte b0;\n\n if (j < 2) {\n b0 = 1;\n } else if (j < 16) {\n b0 = 2;\n } else if (j < 32) {\n b0 = 3;\n } else {\n b0 = 4;\n }\n\n b0 = getMiniItemCount(itemStack, b0);\n\n GL11.glTranslatef(-f7, -f8, -((f9 + f10) * (float) b0 / 2.0F));\n\n for (int k = 0; k < b0; ++k) {\n // Makes items offset when in 3D, like when in 2D, looks much better. Considered a vanilla bug...\n if (k > 0 && shouldSpreadItems()) {\n float x = (random.nextFloat() * 2.0F - 1.0F) * 0.3F / 0.5F;\n float y = (random.nextFloat() * 2.0F - 1.0F) * 0.3F / 0.5F;\n float z = (random.nextFloat() * 2.0F - 1.0F) * 0.3F / 0.5F;\n GL11.glTranslatef(x, y, f9 + f10);\n } else {\n GL11.glTranslatef(0f, 0f, f9 + f10);\n }\n\n if (itemStack.getItemSpriteNumber() == 0) {\n this.bindTexture(TextureMap.locationBlocksTexture);\n } else {\n this.bindTexture(TextureMap.locationItemsTexture);\n }\n\n GL11.glColor4f(p_77020_5_, p_77020_6_, p_77020_7_, 1.0F);\n ItemRenderer.renderItemIn2D(tessellator, f15, f4, f14, f5, icon.getIconWidth(), icon.getIconHeight(), f9);\n\n if (itemStack.hasEffect(pass)) {\n GL11.glDepthFunc(GL11.GL_EQUAL);\n GL11.glDisable(GL11.GL_LIGHTING);\n this.renderManager.renderEngine.bindTexture(RES_ITEM_GLINT);\n GL11.glEnable(GL11.GL_BLEND);\n GL11.glBlendFunc(GL11.GL_SRC_COLOR, GL11.GL_ONE);\n float f11 = 0.76F;\n GL11.glColor4f(0.5F * f11, 0.25F * f11, 0.8F * f11, 1.0F);\n GL11.glMatrixMode(GL11.GL_TEXTURE);\n GL11.glPushMatrix();\n float f12 = 0.125F;\n GL11.glScalef(f12, f12, f12);\n float f13 = (float) (Minecraft.getSystemTime() % 3000L) / 3000.0F * 8.0F;\n GL11.glTranslatef(f13, 0.0F, 0.0F);\n GL11.glRotatef(-50.0F, 0.0F, 0.0F, 1.0F);\n ItemRenderer.renderItemIn2D(tessellator, 0.0F, 0.0F, 1.0F, 1.0F, 255, 255, f9);\n GL11.glPopMatrix();\n GL11.glPushMatrix();\n GL11.glScalef(f12, f12, f12);\n f13 = (float) (Minecraft.getSystemTime() % 4873L) / 4873.0F * 8.0F;\n GL11.glTranslatef(-f13, 0.0F, 0.0F);\n GL11.glRotatef(10.0F, 0.0F, 0.0F, 1.0F);\n ItemRenderer.renderItemIn2D(tessellator, 0.0F, 0.0F, 1.0F, 1.0F, 255, 255, f9);\n GL11.glPopMatrix();\n GL11.glMatrixMode(GL11.GL_MODELVIEW);\n GL11.glDisable(GL11.GL_BLEND);\n GL11.glEnable(GL11.GL_LIGHTING);\n GL11.glDepthFunc(GL11.GL_LEQUAL);\n }\n }\n\n GL11.glPopMatrix();\n } else {\n for (int l = 0; l < p_77020_3_; ++l) {\n GL11.glPushMatrix();\n\n if (l > 0) {\n f10 = (this.random.nextFloat() * 2.0F - 1.0F) * 0.3F;\n float f16 = (this.random.nextFloat() * 2.0F - 1.0F) * 0.3F;\n float f17 = (this.random.nextFloat() * 2.0F - 1.0F) * 0.3F;\n GL11.glTranslatef(f10, f16, f17);\n }\n\n if (!renderInFrame) {\n GL11.glRotatef(180.0F - this.renderManager.playerViewY, 0.0F, 1.0F, 0.0F);\n }\n\n GL11.glColor4f(p_77020_5_, p_77020_6_, p_77020_7_, 1.0F);\n tessellator.startDrawingQuads();\n tessellator.setNormal(0.0F, 1.0F, 0.0F);\n tessellator.addVertexWithUV((double) (0.0F - f7), (double) (0.0F - f8), 0.0D, (double) f14, (double) f5);\n tessellator.addVertexWithUV((double) (f6 - f7), (double) (0.0F - f8), 0.0D, (double) f15, (double) f5);\n tessellator.addVertexWithUV((double) (f6 - f7), (double) (1.0F - f8), 0.0D, (double) f15, (double) f4);\n tessellator.addVertexWithUV((double) (0.0F - f7), (double) (1.0F - f8), 0.0D, (double) f14, (double) f4);\n tessellator.draw();\n GL11.glPopMatrix();\n }\n }\n }", "public static void testShowTodoView(){\n }", "protected void generateContent( ExtendedItemDesign item,\n \t\t\tIForeignContent content )\n \t{\n \t\tExtendedItemHandle handle = (ExtendedItemHandle) item.getHandle( );\n \t\tString name = item.getName( );\n \n \t\tbyte[] generationStatus = null;\n \t\tif ( itemGeneration != null )\n \t\t{\n \t\t\tIBaseQueryDefinition[] queries = (IBaseQueryDefinition[]) ( (ExtendedItemDesign) item )\n \t\t\t\t\t.getQueries( );\n \n \t\t\tReportItemGenerationInfo info = new ReportItemGenerationInfo( );\n \t\t\tinfo.setModelObject( handle );\n\t\t\tinfo\n\t\t\t\t\t.setApplicationClassLoader( context\n\t\t\t\t\t\t\t.getApplicationClassLoader( ) );\n \t\t\tinfo.setReportContext( context.getReportContext( ) );\n \t\t\tinfo.setReportQueries( queries );\n \t\t\tinfo.setExtendedItemContent( content );\n \t\t\titemGeneration.init( info );\n \t\t\t\n \t\t\ttry\n \t\t\t{\n \t\t\t\tIBaseResultSet[] resultSets = rsets;\n \t\t\t\tif ( resultSets == null )\n \t\t\t\t{\n \t\t\t\t\tIBaseResultSet prset = getParentResultSet( );\n \t\t\t\t\tif ( prset != null )\n \t\t\t\t\t{\n \t\t\t\t\t\tint rsetType = prset.getType( );\n \t\t\t\t\t\tif ( rsetType == IBaseResultSet.QUERY_RESULTSET )\n \t\t\t\t\t\t{\n \t\t\t\t\t\t\tresultSets = new IBaseResultSet[1];\n \t\t\t\t\t\t\tresultSets[0] = new SingleQueryResultSet(\n \t\t\t\t\t\t\t\t\t(IQueryResultSet) prset );\n \t\t\t\t\t\t}\n \t\t\t\t\t\telse if ( rsetType == IBaseResultSet.CUBE_RESULTSET )\n \t\t\t\t\t\t{\n \t\t\t\t\t\t\tresultSets = new IBaseResultSet[1];\n \t\t\t\t\t\t\tresultSets[0] = new SingleCubeResultSet(\n \t\t\t\t\t\t\t\t\t(ICubeResultSet) prset );\n \t\t\t\t\t\t}\n \t\t\t\t\t}\n \t\t\t\t}\n \t\t\t\titemGeneration.onRowSets( resultSets );\n \t\t\t\tif ( itemGeneration.needSerialization( ) )\n \t\t\t\t{\n \t\t\t\t\tByteArrayOutputStream out = new ByteArrayOutputStream( );\n \t\t\t\t\titemGeneration.serialize( out );\n \t\t\t\t\tgenerationStatus = out.toByteArray( );\n \t\t\t\t}\n \t\t\t\titemGeneration.finish( );\n \t\t\t}\n \t\t\tcatch ( BirtException ex )\n \t\t\t{\n \t\t\t\tlogger.log( Level.SEVERE, ex.getMessage( ), ex );\n \t\t\t\tcontext.addException( new EngineException(\n \t\t\t\t\t\tMessageConstants.EXTENDED_ITEM_GENERATION_ERROR, handle\n \t\t\t\t\t\t\t\t.getExtensionName( )\n \t\t\t\t\t\t\t\t+ ( name != null ? \" \" + name : \"\" ), ex ) );//$NON-NLS-1$\n \t\t\t}\n \t\t}\n \t\telse\n \t\t{\n \t\t\t// TODO: review. If itemGeneration is null. we should create a text\n \t\t\t// item for it. and set the alttext as its text.\n \t\t}\n \t\tcontent.setRawType( IForeignContent.EXTERNAL_TYPE );\n \t\tcontent.setRawValue( generationStatus );\n \t}", "@Test\r\n public void testListar() {\r\n TipoItemRN rn = new TipoItemRN();\r\n TipoItem item = new TipoItem();\r\n item.setDescricao(\"ListarDescriçãoTipoItem\");\r\n rn.salvar(item);\r\n \r\n TipoItem item2 = new TipoItem();\r\n item2.setDescricao(\"ListarDescriçãoTipoItem2\");\r\n rn.salvar(item2);\r\n \r\n List<TipoItem> tipoItens = rn.listar();\r\n \r\n assertTrue(tipoItens.size() >0);\r\n \r\n rn.remover(item);\r\n rn.remover(item2);\r\n }", "@Test\r\n\tpublic void testBonusInteligencia() {\r\n\t\t\r\n\t\ttry {\r\n\t\t\tItem itemDes = new Item(idItem, \"elixir de Destreza\", 0, 0, 0, 0, 0, bonusInteligencia, null, null);\r\n\t\t\t\r\n\t\t\tAssert.assertEquals(30, itemDes.getBonusInteligencia());\r\n\t\t\t\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}\t\t\r\n\t}", "@Test\r\n\tpublic void itemRetTest() {\r\n\t\tItem item = new Item();\r\n\t\ttry {\r\n\t\t\tint k = 0;\r\n\t\t\tk = item.getNumberOfItems(SELLER);\r\n\t\t\tassertNotSame(k, 0);\r\n\t\t\tItem tempSet[] = item.getAllForUser(SELLER);\r\n\t\t\tassertEquals(tempSet.length, k);\t\t\t// Retrieves correct number of items\r\n\t\t} catch (SQLException e) {\r\n\t\t\tfail(\"Failed to get number of items for seller id \" + SELLER + \": SQLException\");\r\n\t\t\t//e.printStackTrace();\r\n\t\t}\r\n\t\t\r\n\t\ttry {\r\n\t\t\tint k = 0;\r\n\t\t\tk = item.getNumberOfItemsInOrder(ORDER);\r\n\t\t\tassertNotSame(k, 0);\r\n\t\t\tItem tempSet[] = item.getAllByOrder(ORDER);\r\n\t\t\tassertEquals(tempSet.length, k);\t\t\t// Retrieves correct number of items\r\n\t\t} catch (SQLException e) {\r\n\t\t\tfail(\"Failed to get number of items for order id \" + ORDER + \": SQLException\");\r\n\t\t\t//e.printStackTrace();\r\n\t\t}\r\n\t\t\r\n\t\ttry {\r\n\t\t\tItem tempSet[] = item.getAllByOrder(ORDER);\r\n\t\t\tfor (int i = 0; i < tempSet.length; i++) {\r\n\t\t\t\tassertNotNull(tempSet[i]);\r\n\t\t\t\tassertNotNull(tempSet[i].getId());\r\n\t\t\t\tassertNotSame(tempSet[i].getId(), 0);\r\n\t\t\t}\r\n\t\t} catch (SQLException e) {\r\n\t\t\tfail(\"Failed to load items for order id \" + ORDER + \": SQLException\");\r\n\t\t\t//e.printStackTrace();\r\n\t\t}\r\n\t}", "private void readItems() {\n }", "public abstract boolean isItemFiltered(pt.keep.oaiextended.AgentItem item);", "public interface ItemComposition\n{\n\t/**\n\t * Returns the item's name as a string.\n\t * @return the name of the item\n\t */\n\t@Import(\"name\")\n\tString getName();\n\n\t/**\n\t * Returns the item's ID. A list of item IDs can be\n\t * found in net.runelite.api.ItemID.\n\t * @return the item's ID as an integer\n\t */\n\t@Import(\"id\")\n\tint getId();\n\n\t/**\n\t * Returns a result that depends on whether the item\n\t * is in noted form or not.\n\t * @return 799 if noted, -1 if unnoted\n\t */\n\t@Import(\"notedTemplate\")\n\tint getNote();\n\n\t/**\n\t * Returns the item ID of the noted/unnoted counterpart.\n\t * For example, if you call this on an unnoted monkfish(ID 7946),\n\t * this method will return the ID of a noted monkfish(ID 7947),\n\t * and vice versa.\n\t * @return the ID that is linked to this item in noted/unnoted form.\n\t */\n\t@Import(\"note\")\n\tint getLinkedNoteId();\n\n\t/**\n\t * Returns the store price of the item. Even if the item cannot\n\t * be found in a store, all items have a store price from which the\n\t * High and Low Alchemy values are calculated. Multiply the price by\n\t * 0.6 to get the High Alchemy value, or 0.4 to get the Low Alchemy\n\t * value.\n\t * @return the general store value of the item\n\t */\n\t@Import(\"price\")\n\tint getPrice();\n\n\t/**\n\t * Returns whether or not the item is members-only.\n\t * @return true if members-only, false otherwise.\n\t */\n\t@Import(\"isMembers\")\n\tboolean isMembers();\n\n\t@Import(\"maleModel\")\n\tint getMaleModel();\n}", "@Test\n public void clickOnItemInDepartmentAndVerifyItIsOfTheRightCategory(){\n onView(withId(R.id.card_view_department)).perform(click());\n onView(withText(\"Produce\")).perform(click());\n onView(withId(R.id.department_items_list_recycler_view)).perform(RecyclerViewActions.actionOnItemAtPosition(5, click()));\n onView(withText(\"VIEW MORE INFORMATION\")).perform(click());\n onView(withId(android.R.id.message)).check(matches(allOf(withSubstring(\"Department: Produce\"), isDisplayed())));\n onView(withText(\"OK\")).perform(click());\n Espresso.pressBack();\n\n onView(withText(\"Deli\")).perform(click());\n onView(withId(R.id.department_items_list_recycler_view)).perform(RecyclerViewActions.actionOnItemAtPosition(7, click()));\n onView(withText(\"VIEW MORE INFORMATION\")).perform(click());\n onView(withId(android.R.id.message)).check(matches(allOf(withSubstring(\"Department: Deli\"), isDisplayed())));\n onView(withText(\"OK\")).perform(click());\n Espresso.pressBack();\n\n onView(withText(\"Dairy\")).perform(click());\n onView(withId(R.id.department_items_list_recycler_view)).perform(RecyclerViewActions.actionOnItemAtPosition(1, click()));\n onView(withText(\"VIEW MORE INFORMATION\")).perform(click());\n onView(withId(android.R.id.message)).check(matches(allOf(withSubstring(\"Department: Dairy\"), isDisplayed())));\n onView(withText(\"OK\")).perform(click());\n Espresso.pressBack();\n\n onView(withText(\"Frozen\")).perform(click());\n onView(withId(R.id.department_items_list_recycler_view)).perform(RecyclerViewActions.actionOnItemAtPosition(4, click()));\n onView(withText(\"VIEW MORE INFORMATION\")).perform(click());\n onView(withId(android.R.id.message)).check(matches(allOf(withSubstring(\"Department: Frozen\"), isDisplayed())));\n onView(withText(\"OK\")).perform(click());\n Espresso.pressBack();\n\n onView(withText(\"Meat\")).perform(click());\n onView(withId(R.id.department_items_list_recycler_view)).perform(RecyclerViewActions.actionOnItemAtPosition(3, click()));\n onView(withText(\"VIEW MORE INFORMATION\")).perform(click());\n onView(withId(android.R.id.message)).check(matches(allOf(withSubstring(\"Department: Meat\"), isDisplayed())));\n onView(withText(\"OK\")).perform(click());\n Espresso.pressBack();\n\n onView(withText(\"Other\")).perform(click());\n onView(withId(R.id.department_items_list_recycler_view)).perform(RecyclerViewActions.actionOnItemAtPosition(6, click()));\n onView(withText(\"VIEW MORE INFORMATION\")).perform(click());\n onView(withId(android.R.id.message)).check(matches(allOf(withSubstring(\"Department: Other\"), isDisplayed())));\n onView(withText(\"OK\")).perform(click());\n Espresso.pressBack();\n }", "public void itemStateChanged(ItemEvent e){\n model.setSolution();\n view.update();\n\n }", "@Test\n public void testCreateView() {\n System.out.println(\"createView\");\n int i =1;\n AfinadorModelo modeloTest = new AfinadorModelo();\n AfinadorControlador controladorTest = new AfinadorControlador(modeloTest,i);\n String test = controladorTest.vista1.bpmOutputLabel.getText();\n if( test != \"APAGADO \")\n fail(\"The test case is a prototype.\");\n }", "@Test\n public void testCreateAndReadPositive() throws Exception{\n Item item = new Item();\n item.setName(\"item\");\n item.setType(ItemTypes.ALCOHOLIC_BEVERAGE);\n itemDao.create(item);\n Assert.assertNotNull(itemDao.read(item.getName()));\n }", "@Test(groups ={Slingshot,Regression,SubmitMeterRead})\npublic void verifyYourdetailsGasOverLayLink()\t\n{\t\n\tReport.createTestLogHeader(\"Anonymous Submit meter read\", \"verify the Gas OverLay Link's In Your details\");\n\n\t\tnew SubmitMeterReadAction()\n\t\t.openSMRpage(\"Gas\")\t\t\n\t\t.verifyGasWhyWeNeedThisLink()\n\t\t.verifyGasAcctnoWhereCanIfindthisLink()\n\t\t.verifyGasMeterPointWhereCanIfindthisLink()\n\t\t.verifyGasMeterIDWhereCanIfindthisLink();\n}", "public void clickAddTopping(int itemIndex, ItemCart item);", "public void handleItem(String item) {\r\n switch (item) {\r\n // Restore all health points\r\n case \"potionvie\":\r\n setHealthPoints(5);\r\n System.out.println(\"Vous trouvez une potion de vie!\");\r\n break;\r\n // Restore health points by 1\r\n case \"coeur\":\r\n if (getHealthPoints() < 5) {\r\n setHealthPoints(getHealthPoints() + 1);\r\n }\r\n System.out.println(\"Vous trouvez un coeur!\");\r\n break;\r\n // Increase hexaforce count by 1\r\n case \"hexaforce\":\r\n setHexaforces(getHexaforces() + 1);\r\n System.out.println(\"Vous trouvez un morceau d'Hexaforce!\");\r\n break;\r\n default:\r\n break;\r\n }\r\n }", "@Override\n public boolean onMenuItemActionCollapse(MenuItem item) {\n loadNewBeerData(new ArrayList<BeerDetails>());\n // loading new data\n presenter.getBeers(1);\n searchString = null;\n return true;\n }", "@Override\n public void packageItem() {\n System.out.println(\"Fresh Produce packing : done\");\n }", "@Override\r\n\tpublic void process(ResultItems resultItems, Task task) {\n\t\tfinal String url = resultItems.getRequest().getUrl();\r\n\t\tSystem.out.println(\"****************--Entry Pipeline Process--*****************\");\r\n\t\tSystem.out.println(\"Get page: \" + url);\r\n\r\n\t\t/*\r\n\t\t * if(url.matches(\r\n\t\t * \"http://blog\\\\.sina\\\\.com\\\\.cn/s/articlelist_.*\\\\.html\")){//文章列表\r\n\t\t * System.out.println(\"No Op in Article List\"); // }else\r\n\t\t * if(url.matches(\"http://www\\\\.asianews\\\\.it/news-en/.*\")){\r\n\t\t */\r\n\t\t// 具体文章内容\r\n\t\tString time = null, title = null, content = null, abstracts = null, convertUrl = null,query=\"\";\r\n\r\n\t\tfor (Map.Entry<String, Object> entry : resultItems.getAll().entrySet()) {\r\n\t\t\t// System.out.println(entry.getKey()+\":\\n\"+entry.getValue());\r\n\r\n\t\t\tif (AsianViewDetailItem.TIME.equals(entry.getKey())) {\r\n\t\t\t\ttime = (String) entry.getValue();\r\n\t\t\t} else if (AsianViewDetailItem.TITLE.equals(entry.getKey())) {\r\n\t\t\t\ttitle = (String) entry.getValue();\r\n\t\t\t} else if (AsianViewDetailItem.ABSTRACT.equals(entry.getKey())) {\r\n\t\t\t\tabstracts = (String) entry.getValue();\r\n\t\t\t} else if (AsianViewDetailItem.CONTENT.equals(entry.getKey())) {\r\n\t\t\t\tcontent = (String) entry.getValue();\r\n\t\t\t} else if (AsianViewDetailItem.URL.equals(entry.getKey())) {\r\n\t\t\t\tassert url.equals(entry.getValue());\r\n\t\t\t} else if (AsianViewDetailItem.CONVERT_URL.equals(entry.getKey())) {\r\n\t\t\t\tconvertUrl = (String) entry.getValue();\r\n\t\t\t}else if(AsianViewDetailItem.QUERY.equals(entry.getKey())){\r\n//\t\t\t\tquery=\"//query_\"+(String) entry.getValue();\r\n\t\t\t\tquery=(entry.getValue()!=null)?\"//query_\"+entry.getValue():\"\";\r\n\t\t\t\t\t\r\n\t\t\t}\r\n\r\n\t\t}\r\n\t\t// System.out.println(\"Time:\\n\"+CorpusFormatter.timeFormat(time));\r\n\t\t//\r\n\t\t// System.out.println(\"Title:\\n\"+title);\r\n\t\t//\r\n\t\t// System.out.println(\"Abstract:\\n\"+abstracts);\r\n\t\t//\r\n\t\t// System.out.println(\"Content:\\n\"+content);\r\n\t\t//\r\n\t\t// System.out.println(\"Url:\\n\"+url);\r\n\r\n\t\tString id = String.format(\"%s-%s\", time, ++counter);\r\n\r\n\t\tfinal String fileName = String.format(\".//\" + FileUtils.docName + \"%s//%s.txt\",query, id);\r\n\t\tSystem.out.println(\"File name :\" + fileName);\r\n\t\t// FileUtils.writeContent(fileName, time, title, content);\r\n\t\tFileUtils.writeCorpus(fileName,\r\n\t\t\t\tconvertUrl != null\r\n\t\t\t\t\t\t? CorpusFormatter.format(id, time, url, \"T\", \"P\", title, abstracts,\r\n\t\t\t\t\t\t\t\tcontent, \"\", \"\", convertUrl)\r\n\t\t\t\t\t\t: CorpusFormatter.format(id, time, url, \"T\", \"P\", title, abstracts,\r\n\t\t\t\t\t\t\t\tcontent, \"\", \"\"));\r\n\r\n\t\t// }else{\r\n\t\t// System.out.println(\"Can't match Url\");\r\n\t\t// }\r\n\t\tSystem.out.println(\"****************--Exit Pipeline Process--*****************\");\r\n\r\n\t}", "protected void selectSource(Object item) {\n\t\tif(item instanceof Mart){\r\n\t\t\tthis.generateLinkTree((Mart) item);\r\n\t\t}\r\n\t}", "public void inputItemDetails()\r\n\t{\r\n\t\tserialNum = inputValidSerialNum();\r\n\t\tweight = inputValidWeight();\r\n\t}", "protected abstract void compareItem(Item expected, Item actual);", "protected abstract void editItem();", "@Test\n public void BackstagePass_HandleSpecialCase() {\n GildedRose sut = new GildedRose(createItemArray(BACKSTAGE_PASS, 5, 40));\n sut.updateQuality();\n assertEquals(42, sut.items[0].quality);\n }" ]
[ "0.60910815", "0.60685545", "0.58995795", "0.5882861", "0.58334297", "0.5830194", "0.56861603", "0.558316", "0.5555562", "0.5524411", "0.54817635", "0.54498416", "0.5449743", "0.5435956", "0.5427642", "0.54138255", "0.5409509", "0.5397624", "0.53968084", "0.5395452", "0.53953", "0.53946173", "0.5394405", "0.539139", "0.53910667", "0.53878164", "0.53862023", "0.538084", "0.53796357", "0.5377222", "0.537686", "0.53388023", "0.53383815", "0.5310809", "0.53023607", "0.52752095", "0.52680117", "0.52556115", "0.52384716", "0.5236393", "0.5235564", "0.5232991", "0.5231054", "0.52147704", "0.52137", "0.52132934", "0.5209286", "0.5203407", "0.51987267", "0.51966834", "0.519411", "0.51522785", "0.5152203", "0.51440674", "0.5143524", "0.51427287", "0.5138684", "0.5127003", "0.51249", "0.5123328", "0.51195997", "0.5118893", "0.5110388", "0.51079446", "0.50883526", "0.5087796", "0.50835556", "0.5076117", "0.50595", "0.50573856", "0.5057148", "0.50566137", "0.5056263", "0.5053656", "0.50536233", "0.50461483", "0.5039157", "0.5038544", "0.50314486", "0.50252116", "0.501679", "0.5015606", "0.50135183", "0.50115097", "0.5008963", "0.500779", "0.50064874", "0.5006473", "0.50062156", "0.500286", "0.49933732", "0.4990835", "0.49835646", "0.4978305", "0.49720818", "0.49701402", "0.49660483", "0.49653366", "0.49591532", "0.49584532" ]
0.565766
7
Creates new form merits
public merits() { initComponents(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static Result newForm() {\n return ok(newForm.render(palletForm, setOfArticleForm));\n }", "FORM createFORM();", "public abstract void addEditorForm();", "public abstract void addSelectorForm();", "public void onNew() {\t\t\n\t\tdesignWidget.addNewForm();\n\t}", "@Override public SnpAssociationForm createForm(Association association) {\n\n\n SnpAssociationStandardMultiForm form = new SnpAssociationStandardMultiForm();\n\n // Set association ID\n form.setAssociationId(association.getId());\n form.setAssociationExtension(association.getAssociationExtension());\n\n // Set simple string and float association attributes\n form.setRiskFrequency(association.getRiskFrequency());\n form.setPvalueDescription(association.getPvalueDescription());\n form.setSnpType(association.getSnpType());\n form.setMultiSnpHaplotype(association.getMultiSnpHaplotype());\n form.setSnpApproved(association.getSnpApproved());\n form.setPvalueMantissa(association.getPvalueMantissa());\n form.setPvalueExponent(association.getPvalueExponent());\n form.setStandardError(association.getStandardError());\n form.setRange(association.getRange());\n form.setDescription(association.getDescription());\n\n // Set OR/Beta values\n form.setOrPerCopyNum(association.getOrPerCopyNum());\n form.setOrPerCopyRecip(association.getOrPerCopyRecip());\n form.setOrPerCopyRecipRange(association.getOrPerCopyRecipRange());\n form.setBetaNum(association.getBetaNum());\n form.setBetaUnit(association.getBetaUnit());\n form.setBetaDirection(association.getBetaDirection());\n\n // Add collection of Efo traits\n form.setEfoTraits(association.getEfoTraits());\n\n // For each locus get genes and risk alleles\n Collection<Locus> loci = association.getLoci();\n Collection<Gene> locusGenes = new ArrayList<>();\n Collection<RiskAllele> locusRiskAlleles = new ArrayList<RiskAllele>();\n\n // For multi-snp and standard snps we assume their is only one locus\n for (Locus locus : loci) {\n locusGenes.addAll(locus.getAuthorReportedGenes());\n locusRiskAlleles.addAll(locus.getStrongestRiskAlleles()\n .stream()\n .sorted((v1, v2) -> Long.compare(v1.getId(), v2.getId()))\n .collect(Collectors.toList()));\n\n // There should only be one locus thus should be safe to set these here\n form.setMultiSnpHaplotypeNum(locus.getHaplotypeSnpCount());\n form.setMultiSnpHaplotypeDescr(locus.getDescription());\n }\n\n\n // Get name of gene and add to form\n Collection<String> authorReportedGenes = new ArrayList<>();\n for (Gene locusGene : locusGenes) {\n authorReportedGenes.add(locusGene.getGeneName());\n }\n form.setAuthorReportedGenes(authorReportedGenes);\n\n // Handle snp rows\n Collection<GenomicContext> snpGenomicContexts = new ArrayList<GenomicContext>();\n Collection<SingleNucleotidePolymorphism> snps = new ArrayList<>();\n List<SnpFormRow> snpFormRows = new ArrayList<SnpFormRow>();\n List<SnpMappingForm> snpMappingForms = new ArrayList<SnpMappingForm>();\n for (RiskAllele riskAllele : locusRiskAlleles) {\n SnpFormRow snpFormRow = new SnpFormRow();\n snpFormRow.setStrongestRiskAllele(riskAllele.getRiskAlleleName());\n\n SingleNucleotidePolymorphism snp = riskAllele.getSnp();\n snps.add(snp);\n String rsID = snp.getRsId();\n snpFormRow.setSnp(rsID);\n\n Collection<Location> locations = snp.getLocations();\n for (Location location : locations) {\n SnpMappingForm snpMappingForm = new SnpMappingForm(rsID, location);\n snpMappingForms.add(snpMappingForm);\n }\n\n // Set proxy if one is present\n Collection<String> proxySnps = new ArrayList<>();\n if (riskAllele.getProxySnps() != null) {\n for (SingleNucleotidePolymorphism riskAlleleProxySnp : riskAllele.getProxySnps()) {\n proxySnps.add(riskAlleleProxySnp.getRsId());\n }\n }\n snpFormRow.setProxySnps(proxySnps);\n\n snpGenomicContexts.addAll(genomicContextRepository.findBySnpId(snp.getId()));\n snpFormRows.add(snpFormRow);\n }\n\n form.setSnpMappingForms(snpMappingForms);\n form.setGenomicContexts(snpGenomicContexts);\n form.setSnps(snps);\n form.setSnpFormRows(snpFormRows);\n return form;\n }", "public void createAgendamento() {\n\n if (tbagendamento.getTmdataagendamento().after(TimeControl.getDateIni())) {\n if (agendamentoLogic.createTbagendamento(tbagendamento)) {\n AbstractFacesContextUtils.redirectPage(PagesUrl.URL_AGENDAMENTO_LIST);\n AbstractFacesContextUtils.addMessageInfo(\"Agendamento cadastrado com sucesso.\");\n } else {\n AbstractFacesContextUtils.addMessageWarn(\"Falhar ao realizado cadastro do agendamento.\");\n }\n } else {\n AbstractFacesContextUtils.addMessageWarn(\"verifique se a data de agendamento esta correta.\");\n }\n }", "@Override\r\n protected void createDbContentCreateEdit() {\n DbContentCreateEdit dbContentCreateEdit = new DbContentCreateEdit();\r\n dbContentCreateEdit.init(null);\r\n form.getModelObject().setDbContentCreateEdit(dbContentCreateEdit);\r\n dbContentCreateEdit.setParent(form.getModelObject());\r\n ruServiceHelper.updateDbEntity(form.getModelObject()); \r\n }", "public FormInserir() {\n initComponents();\n }", "@Override\n protected void populateForm(final CreateCoinForm form, final Coin element) {\n }", "public void registrarMateria() {\n materia.setIdDepartamento(departamento);\n ejbFacade.create(materia);\n RequestContext requestContext = RequestContext.getCurrentInstance();\n requestContext.execute(\"PF('MateriaCreateDialog').hide()\");\n items = ejbFacade.findAll();\n departamento = new Departamento();\n materia = new Materia();\n\n FacesMessage msg = new FacesMessage(FacesMessage.SEVERITY_INFO, \"Información\", \"La materia se registró con éxito\");\n FacesContext.getCurrentInstance().addMessage(null, msg);\n requestContext.update(\"msg\");//Actualiza la etiqueta growl para que el mensaje pueda ser mostrado\n\n requestContext.update(\"MateriaListForm\");\n requestContext.update(\"MateriaCreateForm\");\n }", "@Override\n\tpublic void create(CreateCoinForm form) throws Exception {\n\t}", "private void initFormCreateMode() {\n initSpinnerSelectionChamps();\n //TODO\n }", "@Override\n\tpublic void createForm(ERForm form) {\n\t\t\tString sql = \"insert into project1.reimbursementInfo (userName, fullName, thedate, eventstartdate, thelocation, description, thecost, gradingformat, passingpercentage, eventtype, filename,status,reason) values (?,?,?,?,?,?,?,?,?,?,?,?,?);\";\n\t\t\ttry {PreparedStatement stmt = conn.prepareCall(sql);\n\t\t\t//RID should auto increment, so this isnt necessary\n\t\t\t\n\t\t\tstmt.setString(1, form.getUserName());\n\t\t\tstmt.setString(2, form.getFullName());\n\t\t\tstmt.setDate(3, Date.valueOf(form.getTheDate()));\n\t\t\tstmt.setDate(4, Date.valueOf(form.getEventStartDate()));\n\t\t\tstmt.setString(5, form.getTheLocation());\n\t\t\tstmt.setString(6, form.getDescription());\n\t\t\tstmt.setDouble(7, form.getTheCost());\n\t\t\tstmt.setString(8, form.getGradingFormat());\n\t\t\tstmt.setString(9, form.getPassingPercentage());\n\t\t\tstmt.setString(10, form.getEventType());\n\t\t\tstmt.setString(11, form.getFileName());\n\t\t\tstmt.setString(12, \"pending\");\n\t\t\tstmt.setString(13, \"\");\n\t\t\tstmt.executeUpdate();\n\t\t\t\n\t\t} catch (SQLException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "Builder addEditor(Person.Builder value);", "@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 organizationComboBox = new javax.swing.JComboBox();\n jScrollPane1 = new javax.swing.JScrollPane();\n organizationTable = new javax.swing.JTable();\n jLabel2 = new javax.swing.JLabel();\n organizationEComboBox = new javax.swing.JComboBox();\n jLabel3 = new javax.swing.JLabel();\n txtName = new javax.swing.JTextField();\n jButton1 = new javax.swing.JButton();\n btnCreate = new javax.swing.JButton();\n\n jLabel1.setFont(new java.awt.Font(\"微软雅黑\", 0, 18)); // NOI18N\n jLabel1.setText(\"Organization\");\n\n organizationComboBox.setFont(new java.awt.Font(\"微软雅黑\", 0, 18)); // NOI18N\n organizationComboBox.setModel(new javax.swing.DefaultComboBoxModel(new String[] { \"Item 1\", \"Item 2\", \"Item 3\", \"Item 4\" }));\n organizationComboBox.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n organizationComboBoxActionPerformed(evt);\n }\n });\n\n organizationTable.setFont(new java.awt.Font(\"微软雅黑\", 0, 18)); // NOI18N\n organizationTable.setModel(new javax.swing.table.DefaultTableModel(\n new Object [][] {\n\n },\n new String [] {\n \"ID\", \"Name\"\n }\n ) {\n boolean[] canEdit = new boolean [] {\n false, false\n };\n\n public boolean isCellEditable(int rowIndex, int columnIndex) {\n return canEdit [columnIndex];\n }\n });\n jScrollPane1.setViewportView(organizationTable);\n if (organizationTable.getColumnModel().getColumnCount() > 0) {\n organizationTable.getColumnModel().getColumn(0).setResizable(false);\n organizationTable.getColumnModel().getColumn(1).setResizable(false);\n }\n\n jLabel2.setFont(new java.awt.Font(\"微软雅黑\", 0, 18)); // NOI18N\n jLabel2.setText(\"Organization\");\n\n organizationEComboBox.setFont(new java.awt.Font(\"微软雅黑\", 0, 18)); // NOI18N\n organizationEComboBox.setModel(new javax.swing.DefaultComboBoxModel(new String[] { \"Item 1\", \"Item 2\", \"Item 3\", \"Item 4\" }));\n\n jLabel3.setFont(new java.awt.Font(\"微软雅黑\", 0, 18)); // NOI18N\n jLabel3.setText(\"Name\");\n\n jButton1.setFont(new java.awt.Font(\"微软雅黑\", 0, 18)); // NOI18N\n jButton1.setText(\"<< Back\");\n jButton1.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton1ActionPerformed(evt);\n }\n });\n\n btnCreate.setFont(new java.awt.Font(\"微软雅黑\", 0, 18)); // NOI18N\n btnCreate.setText(\"Create\");\n btnCreate.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btnCreateActionPerformed(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 .addGap(70, 70, 70)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addComponent(jLabel1)\n .addGap(45, 45, 45)\n .addComponent(organizationComboBox, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel2)\n .addComponent(jLabel3))\n .addGap(45, 45, 45)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(txtName)\n .addComponent(organizationEComboBox, 0, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)))\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)\n .addGroup(layout.createSequentialGroup()\n .addComponent(jButton1)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(btnCreate))\n .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addContainerGap(257, Short.MAX_VALUE))\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGap(50, 50, 50)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel1)\n .addComponent(organizationComboBox, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(33, 33, 33)\n .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 108, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(49, 49, 49)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(jLabel2)\n .addComponent(organizationEComboBox, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(35, 35, 35)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel3)\n .addComponent(txtName, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 42, Short.MAX_VALUE)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jButton1)\n .addComponent(btnCreate))\n .addGap(35, 35, 35))\n );\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n Title = new javax.swing.JLabel();\n NAME = new javax.swing.JLabel();\n txt_name = new javax.swing.JTextField();\n PROVIDER = new javax.swing.JLabel();\n ComboBox_provider = new javax.swing.JComboBox<>();\n CATEGORY = new javax.swing.JLabel();\n ComboBox_category = new javax.swing.JComboBox<>();\n Trademark = new javax.swing.JLabel();\n ComboBox_trademark = new javax.swing.JComboBox<>();\n COLOR = new javax.swing.JLabel();\n ComboBox_color = new javax.swing.JComboBox<>();\n SIZE = new javax.swing.JLabel();\n ComboBox_size = new javax.swing.JComboBox<>();\n MATERIAL = new javax.swing.JLabel();\n ComboBox_material = new javax.swing.JComboBox<>();\n PRICE = new javax.swing.JLabel();\n txt_price = new javax.swing.JTextField();\n SAVE = new javax.swing.JButton();\n CANCEL = new javax.swing.JButton();\n Background = new javax.swing.JLabel();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n getContentPane().setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());\n\n Title.setFont(new java.awt.Font(\"Dialog\", 1, 24)); // NOI18N\n Title.setForeground(new java.awt.Color(255, 255, 255));\n Title.setText(\"NEW PRODUCT\");\n getContentPane().add(Title, new org.netbeans.lib.awtextra.AbsoluteConstraints(200, 33, -1, -1));\n\n NAME.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n NAME.setForeground(new java.awt.Color(255, 255, 255));\n NAME.setText(\"Name\");\n getContentPane().add(NAME, new org.netbeans.lib.awtextra.AbsoluteConstraints(40, 150, 70, 30));\n\n txt_name.setBackground(new java.awt.Color(51, 51, 51));\n txt_name.setForeground(new java.awt.Color(255, 255, 255));\n getContentPane().add(txt_name, new org.netbeans.lib.awtextra.AbsoluteConstraints(120, 150, 100, 30));\n\n PROVIDER.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n PROVIDER.setForeground(new java.awt.Color(255, 255, 255));\n PROVIDER.setText(\"Provider\");\n getContentPane().add(PROVIDER, new org.netbeans.lib.awtextra.AbsoluteConstraints(30, 200, 70, 30));\n\n ComboBox_provider.setBackground(new java.awt.Color(51, 51, 51));\n ComboBox_provider.setForeground(new java.awt.Color(255, 255, 255));\n ComboBox_provider.setModel(new javax.swing.DefaultComboBoxModel<>(new String[] { \"Item 1\", \"Item 2\", \"Item 3\", \"Item 4\" }));\n getContentPane().add(ComboBox_provider, new org.netbeans.lib.awtextra.AbsoluteConstraints(120, 200, 100, 30));\n\n CATEGORY.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n CATEGORY.setForeground(new java.awt.Color(255, 255, 255));\n CATEGORY.setText(\"Category\");\n getContentPane().add(CATEGORY, new org.netbeans.lib.awtextra.AbsoluteConstraints(30, 250, 70, 30));\n\n ComboBox_category.setBackground(new java.awt.Color(51, 51, 51));\n ComboBox_category.setForeground(new java.awt.Color(255, 255, 255));\n ComboBox_category.setModel(new javax.swing.DefaultComboBoxModel<>(new String[] { \"Item 1\", \"Item 2\", \"Item 3\", \"Item 4\" }));\n getContentPane().add(ComboBox_category, new org.netbeans.lib.awtextra.AbsoluteConstraints(120, 250, 100, 30));\n\n Trademark.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n Trademark.setForeground(new java.awt.Color(255, 255, 255));\n Trademark.setText(\"Trademark\");\n getContentPane().add(Trademark, new org.netbeans.lib.awtextra.AbsoluteConstraints(30, 300, 70, 30));\n\n ComboBox_trademark.setBackground(new java.awt.Color(51, 51, 51));\n ComboBox_trademark.setForeground(new java.awt.Color(255, 255, 255));\n ComboBox_trademark.setModel(new javax.swing.DefaultComboBoxModel<>(new String[] { \"Item 1\", \"Item 2\", \"Item 3\", \"Item 4\" }));\n ComboBox_trademark.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n ComboBox_trademarkActionPerformed(evt);\n }\n });\n getContentPane().add(ComboBox_trademark, new org.netbeans.lib.awtextra.AbsoluteConstraints(120, 300, 100, 30));\n\n COLOR.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n COLOR.setForeground(new java.awt.Color(255, 255, 255));\n COLOR.setText(\"Color\");\n getContentPane().add(COLOR, new org.netbeans.lib.awtextra.AbsoluteConstraints(300, 150, 70, 30));\n\n ComboBox_color.setBackground(new java.awt.Color(51, 51, 51));\n ComboBox_color.setForeground(new java.awt.Color(255, 255, 255));\n ComboBox_color.setModel(new javax.swing.DefaultComboBoxModel<>(new String[] { \"Item 1\", \"Item 2\", \"Item 3\", \"Item 4\" }));\n getContentPane().add(ComboBox_color, new org.netbeans.lib.awtextra.AbsoluteConstraints(400, 150, 100, 30));\n\n SIZE.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n SIZE.setForeground(new java.awt.Color(255, 255, 255));\n SIZE.setText(\"Size\");\n getContentPane().add(SIZE, new org.netbeans.lib.awtextra.AbsoluteConstraints(300, 200, 70, 30));\n\n ComboBox_size.setBackground(new java.awt.Color(51, 51, 51));\n ComboBox_size.setForeground(new java.awt.Color(255, 255, 255));\n ComboBox_size.setModel(new javax.swing.DefaultComboBoxModel<>(new String[] { \"Item 1\", \"Item 2\", \"Item 3\", \"Item 4\" }));\n getContentPane().add(ComboBox_size, new org.netbeans.lib.awtextra.AbsoluteConstraints(400, 200, 100, 30));\n\n MATERIAL.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n MATERIAL.setForeground(new java.awt.Color(255, 255, 255));\n MATERIAL.setText(\"Material\");\n getContentPane().add(MATERIAL, new org.netbeans.lib.awtextra.AbsoluteConstraints(300, 250, 70, 30));\n\n ComboBox_material.setBackground(new java.awt.Color(51, 51, 51));\n ComboBox_material.setForeground(new java.awt.Color(255, 255, 255));\n ComboBox_material.setModel(new javax.swing.DefaultComboBoxModel<>(new String[] { \"Item 1\", \"Item 2\", \"Item 3\", \"Item 4\" }));\n getContentPane().add(ComboBox_material, new org.netbeans.lib.awtextra.AbsoluteConstraints(400, 250, 100, 30));\n\n PRICE.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n PRICE.setForeground(new java.awt.Color(255, 255, 255));\n PRICE.setText(\"Price\");\n getContentPane().add(PRICE, new org.netbeans.lib.awtextra.AbsoluteConstraints(300, 300, 70, 30));\n\n txt_price.setBackground(new java.awt.Color(51, 51, 51));\n txt_price.setForeground(new java.awt.Color(255, 255, 255));\n txt_price.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n txt_priceActionPerformed(evt);\n }\n });\n getContentPane().add(txt_price, new org.netbeans.lib.awtextra.AbsoluteConstraints(400, 300, 100, 30));\n\n SAVE.setBackground(new java.awt.Color(25, 25, 25));\n SAVE.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/img/icono_guardar-A.png\"))); // NOI18N\n SAVE.setCursor(new java.awt.Cursor(java.awt.Cursor.HAND_CURSOR));\n SAVE.setPressedIcon(new javax.swing.ImageIcon(getClass().getResource(\"/img/icono_guardar-B.png\"))); // NOI18N\n SAVE.setRolloverIcon(new javax.swing.ImageIcon(getClass().getResource(\"/img/icono_guardar.png\"))); // NOI18N\n SAVE.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n SAVEActionPerformed(evt);\n }\n });\n getContentPane().add(SAVE, new org.netbeans.lib.awtextra.AbsoluteConstraints(210, 480, 50, 50));\n\n CANCEL.setBackground(new java.awt.Color(25, 25, 25));\n CANCEL.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/img/icono_no-A.png\"))); // NOI18N\n CANCEL.setCursor(new java.awt.Cursor(java.awt.Cursor.HAND_CURSOR));\n CANCEL.setPressedIcon(new javax.swing.ImageIcon(getClass().getResource(\"/img/icono_no-B.png\"))); // NOI18N\n CANCEL.setRolloverIcon(new javax.swing.ImageIcon(getClass().getResource(\"/img/icono_no.png\"))); // NOI18N\n CANCEL.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n CANCELActionPerformed(evt);\n }\n });\n getContentPane().add(CANCEL, new org.netbeans.lib.awtextra.AbsoluteConstraints(280, 480, 50, 50));\n\n Background.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/img/fondo_windows2.jpg\"))); // NOI18N\n getContentPane().add(Background, new org.netbeans.lib.awtextra.AbsoluteConstraints(0, 0, -1, -1));\n\n pack();\n }", "private void azzeraInsertForm() {\n\t\tviewInserimento.getCmbbxTipologia().setSelectedIndex(-1);\n\t\tviewInserimento.getTxtFieldDataI().setText(\"\");\n\t\tviewInserimento.getTxtFieldValore().setText(\"\");\n\t\tviewInserimento.getTxtFieldDataI().setBackground(Color.white);\n\t\tviewInserimento.getTxtFieldValore().setBackground(Color.white);\n\t}", "public void add() {\n preAdd();\n EntitySelect<T> entitySelect = getEntitySelect();\n entitySelect.setMultiSelect(true);\n getEntitySelect().open();\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n jLabelMatricula = new javax.swing.JLabel();\n jTextFieldAtividadesMatricula = new javax.swing.JTextField();\n jLabelNome = new javax.swing.JLabel();\n jTextFieldAtividadesNome = new javax.swing.JTextField();\n jComboBoxAtividadesTipo = new javax.swing.JComboBox<>();\n jLabelData = new javax.swing.JLabel();\n jLabelTipo = new javax.swing.JLabel();\n jTextFieldAtividadesData = new javax.swing.JFormattedTextField();\n jLabelLocal = new javax.swing.JLabel();\n jTextFieldAtividadesLocal = new javax.swing.JTextField();\n jLabelDescricao = new javax.swing.JLabel();\n jButtonAtividadesInserir = new javax.swing.JButton();\n jScrollPane1 = new javax.swing.JScrollPane();\n jTextAreaAtividadesDescricao = new javax.swing.JTextArea();\n jButtonLimpar = new javax.swing.JButton();\n\n setClosable(true);\n setIconifiable(true);\n setMaximizable(true);\n setResizable(true);\n setTitle(\"Inserir Atividades\");\n addInternalFrameListener(new javax.swing.event.InternalFrameListener() {\n public void internalFrameActivated(javax.swing.event.InternalFrameEvent evt) {\n formInternalFrameActivated(evt);\n }\n public void internalFrameClosed(javax.swing.event.InternalFrameEvent evt) {\n }\n public void internalFrameClosing(javax.swing.event.InternalFrameEvent evt) {\n }\n public void internalFrameDeactivated(javax.swing.event.InternalFrameEvent evt) {\n }\n public void internalFrameDeiconified(javax.swing.event.InternalFrameEvent evt) {\n }\n public void internalFrameIconified(javax.swing.event.InternalFrameEvent evt) {\n }\n public void internalFrameOpened(javax.swing.event.InternalFrameEvent evt) {\n formInternalFrameOpened(evt);\n }\n });\n\n jLabelMatricula.setText(\"Matrícula:*\");\n\n jLabelNome.setText(\"Nome:*\");\n\n jComboBoxAtividadesTipo.setModel(new javax.swing.DefaultComboBoxModel<>(new String[] { \"Selecione\", \"Lazer\", \"Trabalho\", \"Escola\", \"Faculdade\", \"Física\" }));\n jComboBoxAtividadesTipo.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jComboBoxAtividadesTipoActionPerformed(evt);\n }\n });\n\n jLabelData.setText(\"Data:*\");\n\n jLabelTipo.setText(\"Tipo: *\");\n\n try {\n jTextFieldAtividadesData.setFormatterFactory(new javax.swing.text.DefaultFormatterFactory(new javax.swing.text.MaskFormatter(\"##/##/####\")));\n } catch (java.text.ParseException ex) {\n ex.printStackTrace();\n }\n\n jLabelLocal.setText(\"Local:*\");\n\n jLabelDescricao.setText(\"Descrição:\");\n\n jButtonAtividadesInserir.setText(\"Inserir\");\n jButtonAtividadesInserir.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButtonAtividadesInserirActionPerformed(evt);\n }\n });\n\n jTextAreaAtividadesDescricao.setColumns(20);\n jTextAreaAtividadesDescricao.setRows(5);\n jScrollPane1.setViewportView(jTextAreaAtividadesDescricao);\n\n jButtonLimpar.setText(\"Limpar\");\n jButtonLimpar.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButtonLimparActionPerformed(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 .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addComponent(jLabelMatricula)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jTextFieldAtividadesMatricula, javax.swing.GroupLayout.PREFERRED_SIZE, 110, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(18, 18, 18)\n .addComponent(jLabelNome)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jTextFieldAtividadesNome))\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jButtonAtividadesInserir)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jButtonLimpar))\n .addGroup(layout.createSequentialGroup()\n .addGap(2, 2, 2)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addComponent(jLabelTipo)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jComboBoxAtividadesTipo, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(jLabelData)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jTextFieldAtividadesData, javax.swing.GroupLayout.PREFERRED_SIZE, 87, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(jLabelLocal)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jTextFieldAtividadesLocal, javax.swing.GroupLayout.DEFAULT_SIZE, 149, Short.MAX_VALUE))\n .addGroup(layout.createSequentialGroup()\n .addComponent(jLabelDescricao)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jScrollPane1)))))\n .addContainerGap())\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)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jTextFieldAtividadesNome, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabelNome))\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabelMatricula)\n .addComponent(jTextFieldAtividadesMatricula, 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(jComboBoxAtividadesTipo, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabelData)\n .addComponent(jLabelTipo)\n .addComponent(jTextFieldAtividadesData, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabelLocal)\n .addComponent(jTextFieldAtividadesLocal, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jScrollPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 221, Short.MAX_VALUE)\n .addGroup(layout.createSequentialGroup()\n .addComponent(jLabelDescricao)\n .addGap(0, 0, Short.MAX_VALUE)))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jButtonAtividadesInserir)\n .addComponent(jButtonLimpar))\n .addGap(1, 1, 1))\n );\n\n pack();\n }", "private void newDialog() {\n\t\tAlertDialog.Builder builder = new AlertDialog.Builder(this);\n\t\tbuilder.setTitle(getString(R.string.addmark));\n\t\tfinal EditText input = new EditText(this);\n\t\tinput.setHint(getString(R.string.pleasemark));\n\t\tbuilder.setView(input);\n\t\tbuilder.setPositiveButton(getString(R.string.yes),\n\t\t\t\tnew OnClickListener() {\n\t\t\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\t\t\tif (input.getText().toString().trim().length() > 0) {\n\t\t\t\t\t\t\taddTag(input.getText().toString());\n\t\t\t\t\t\t\tdialog.dismiss();\n\t\t\t\t\t\t\tToast.makeText(ArchermindReaderActivity.this,\n\t\t\t\t\t\t\t\t\tgetString(R.string.successaddmark),\n\t\t\t\t\t\t\t\t\tToast.LENGTH_SHORT).show();\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tToast.makeText(ArchermindReaderActivity.this,\n\t\t\t\t\t\t\t\t\tgetString(R.string.pleasemark),\n\t\t\t\t\t\t\t\t\tToast.LENGTH_SHORT).show();\n\t\t\t\t\t\t\tnewDialog();\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t});\n\t\tbuilder.setNegativeButton(getString(R.string.no),\n\t\t\t\tnew OnClickListener() {\n\t\t\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\t\t\tdialog.dismiss();\n\t\t\t\t\t}\n\t\t\t\t});\n\t\tbuilder.show();\n\t}", "private HStack createEditForm() {\r\n\t\teditFormHStack = new HStack();\r\n\t\t\r\n\t\tVStack editFormVStack = new VStack();\r\n\t\teditFormVStack.addMember(addStarRatings());\r\n\t\t\r\n\t\tboundSwagForm = new DynamicForm();\r\n\t\tboundSwagForm.setNumCols(2);\r\n//\t\tboundSwagForm.setLongTextEditorThreshold(40);\r\n\t\tboundSwagForm.setDataSource(SmartGWTRPCDataSource.getInstance());\r\n\t\tboundSwagForm.setAutoFocus(true);\r\n\r\n\t\tHiddenItem keyItem = new HiddenItem(\"key\");\r\n\t\tTextItem nameItem = new TextItem(\"name\");\r\n\t\tnameItem.setLength(50);\r\n\t\tnameItem.setSelectOnFocus(true);\r\n\t\tTextItem companyItem = new TextItem(\"company\");\r\n\t\tcompanyItem.setLength(20);\r\n\t\tTextItem descriptionItem = new TextItem(\"description\");\r\n\t\tdescriptionItem.setLength(100);\r\n\t\tTextItem tag1Item = new TextItem(\"tag1\");\r\n\t\ttag1Item.setLength(15);\r\n\t\tTextItem tag2Item = new TextItem(\"tag2\");\r\n\t\ttag2Item.setLength(15);\r\n\t\tTextItem tag3Item = new TextItem(\"tag3\");\r\n\t\ttag3Item.setLength(15);\r\n\t\tTextItem tag4Item = new TextItem(\"tag4\");\r\n\t\ttag4Item.setLength(15);\r\n\t\t\r\n\t\tStaticTextItem isFetchOnlyItem = new StaticTextItem(\"isFetchOnly\");\r\n\t\tisFetchOnlyItem.setVisible(false);\r\n\t\tStaticTextItem imageKeyItem = new StaticTextItem(\"imageKey\");\r\n\t\timageKeyItem.setVisible(false);\r\n\t\t\r\n\t\tTextItem newImageURLItem = new TextItem(\"newImageURL\");\r\n\r\n\t\tboundSwagForm.setFields(keyItem, nameItem, companyItem, descriptionItem, tag1Item,\r\n\t\t\t\ttag2Item, tag3Item, tag4Item, isFetchOnlyItem, imageKeyItem, newImageURLItem);\r\n\t\teditFormVStack.addMember(boundSwagForm);\r\n\t\t\r\n\t\tcurrentSwagImage = new Img(\"/images/no_photo.jpg\"); \r\n\t\tcurrentSwagImage.setImageType(ImageStyle.NORMAL); \r\n\t\teditFormVStack.addMember(currentSwagImage);\r\n\t\teditFormVStack.addMember(createImFeelingLuckyImageSearch());\r\n\t\t\r\n\t\tIButton saveButton = new IButton(\"Save\");\r\n\t\tsaveButton.setAutoFit(true);\r\n\t\tsaveButton.addClickHandler(new ClickHandler() {\r\n\t\t\tpublic void onClick(ClickEvent event) {\r\n\t\t\t\t//TODO\r\n\t\t\t\t//uploadForm.submitForm();\r\n\t\t\t\t//Turn off fetch only (could have been on from them rating the item\r\n\t\t\t\tboundSwagForm.getField(\"isFetchOnly\").setValue(false);\r\n\t\t\t\tboundSwagForm.saveData();\r\n\t\t\t\thandleSubmitComment(); //in case they commented while editing\r\n\t\t\t\t//re-sort\r\n\t\t\t\tdoSort();\r\n\t\t\t\tif (boundSwagForm.hasErrors()) {\r\n\t\t\t\t\tWindow.alert(\"\" + boundSwagForm.getErrors());\r\n\t\t\t\t} else {\r\n\t\t\t\t\tboundSwagForm.clearValues();\r\n\t\t\t\t\t\r\n\t\t\t\t\teditFormHStack.hide();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t});\r\n\t\tIButton cancelButton = new IButton(\"Cancel\");\r\n\t\tcancelButton.setAutoFit(true);\r\n\t\tcancelButton.addClickHandler(new ClickHandler() {\r\n\t\t\tpublic void onClick(ClickEvent event) {\r\n\t\t\t\tboundSwagForm.clearValues();\r\n\t\t\t\teditFormHStack.hide();\r\n\t\t\t}\r\n\t\t});\r\n\t\t\r\n\t\tIButton deleteButton = new IButton(\"Delete\");\r\n\t\tdeleteButton.setAutoFit(true);\r\n\t\tdeleteButton.addClickHandler(new ClickHandler() {\r\n\t\t\tpublic void onClick(ClickEvent event) {\r\n\t\t\t\tshowConfirmRemovePopup(itemsTileGrid.getSelectedRecord());\r\n\t\t\t\teditFormHStack.hide();\r\n\t\t\t}\r\n\t\t});\r\n\t\t\r\n\t\teditButtonsLayout = new HLayout();\r\n\t\teditButtonsLayout.setHeight(20);\r\n\t\teditButtonsLayout.addMember(saveButton);\r\n\t\teditButtonsLayout.addMember(cancelButton);\r\n\t\teditButtonsLayout.addMember(deleteButton);\r\n\t\t\r\n\t\teditFormVStack.addMember(editButtonsLayout);\r\n\t\t\r\n\t\ttabSet = new TabSet();\r\n\t\ttabSet.setDestroyPanes(false);\r\n tabSet.setTabBarPosition(Side.TOP);\r\n tabSet.setTabBarAlign(Side.LEFT);\r\n tabSet.setWidth(570);\r\n tabSet.setHeight(570);\r\n \r\n\r\n Tab viewEditTab = new Tab();\r\n viewEditTab.setPane(editFormVStack);\r\n\r\n commentsTab = new Tab(\"Comments\");\r\n commentsTab.setPane(createComments());\r\n \r\n tabSet.addTab(viewEditTab);\r\n tabSet.addTab(commentsTab);\r\n //put focus in commentsEditor when they click the Comments tab\r\n tabSet.addClickHandler(new ClickHandler() {\r\n\t\t\tpublic void onClick(ClickEvent event) {\r\n\t\t\t\tTab selectedTab = tabSet.getSelectedTab();\r\n\t\t\t\tif (commentsTab==selectedTab) {\r\n\t\t\t\t\trichTextCommentsEditor.focus();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t});\r\n \r\n VStack tabsVStack = new VStack();\r\n itemEditTitleLabel = new Label(); \r\n itemEditTitleLabel.setHeight(30); \r\n itemEditTitleLabel.setAlign(Alignment.LEFT); \r\n itemEditTitleLabel.setValign(VerticalAlignment.TOP); \r\n itemEditTitleLabel.setWrap(false); \r\n tabsVStack.addMember(itemEditTitleLabel);\r\n //make sure this is drawn since we set the tab names early\r\n tabSet.draw();\r\n tabsVStack.addMember(tabSet);\r\n\t\teditFormHStack.addMember(tabsVStack);\r\n\t\teditFormHStack.hide();\r\n\t\treturn editFormHStack;\r\n\t}", "public String newBoleta() {\n\t\tresetForm();\n\t\treturn \"/boleta/insert.xhtml\";\n\t}", "public Association createAssociation(SnpAssociationStandardMultiForm form) {\n Association association = setCommonAssociationElements(form);\n association.setSnpInteraction(false);\n\n // Add loci to association, for multi-snp and standard snps we assume their is only one locus\n Collection<Locus> loci = new ArrayList<>();\n Locus locus = new Locus();\n\n // Set locus description and haplotype count\n // Set this number to the number of rows entered by curator\n Integer numberOfRows = form.getSnpFormRows().size();\n if (numberOfRows > 1) {\n locus.setHaplotypeSnpCount(numberOfRows);\n association.setMultiSnpHaplotype(true);\n }\n\n if (form.getMultiSnpHaplotypeDescr() != null && !form.getMultiSnpHaplotypeDescr().isEmpty()) {\n locus.setDescription(form.getMultiSnpHaplotypeDescr());\n }\n else {\n if (numberOfRows > 1) {\n locus.setDescription(numberOfRows + \"-SNP haplotype\");\n }\n else {\n locus.setDescription(\"Single variant\");\n }\n }\n\n // Create gene from each string entered, may sure to check pre-existence\n Collection<String> authorReportedGenes = form.getAuthorReportedGenes();\n Collection<Gene> locusGenes = lociAttributesService.createGene(authorReportedGenes);\n\n // Set locus genes\n locus.setAuthorReportedGenes(locusGenes);\n\n // Handle rows entered for haplotype by curator\n Collection<SnpFormRow> rows = form.getSnpFormRows();\n Collection<RiskAllele> locusRiskAlleles = new ArrayList<>();\n\n for (SnpFormRow row : rows) {\n\n // Create snps from row information\n String curatorEnteredSNP = row.getSnp();\n SingleNucleotidePolymorphism snp = lociAttributesService.createSnp(curatorEnteredSNP);\n\n // Get the curator entered risk allele\n String curatorEnteredRiskAllele = row.getStrongestRiskAllele();\n\n // Create a new risk allele and assign newly created snp\n RiskAllele riskAllele = lociAttributesService.createRiskAllele(curatorEnteredRiskAllele, snp);\n\n // If association is not a multi-snp haplotype save frequency to risk allele\n if (!form.getMultiSnpHaplotype()) {\n riskAllele.setRiskFrequency(form.getRiskFrequency());\n }\n\n // Check for proxies and if we have one create a proxy snps\n if (row.getProxySnps() != null && !row.getProxySnps().isEmpty()) {\n Collection<SingleNucleotidePolymorphism> riskAlleleProxySnps = new ArrayList<>();\n\n for (String curatorEnteredProxySnp : row.getProxySnps()) {\n SingleNucleotidePolymorphism proxySnp = lociAttributesService.createSnp(curatorEnteredProxySnp);\n riskAlleleProxySnps.add(proxySnp);\n }\n\n riskAllele.setProxySnps(riskAlleleProxySnps);\n }\n\n locusRiskAlleles.add(riskAllele);\n }\n\n // Assign all created risk alleles to locus\n locus.setStrongestRiskAlleles(locusRiskAlleles);\n\n // Add locus to collection and link to our association\n loci.add(locus);\n association.setLoci(loci);\n return association;\n }", "public void CrearNew(ActionEvent e) {\n List<Pensum> R = ejbFacade.existePensumID(super.getSelected().getIdpensum());\n if(R.isEmpty()){\n super.saveNew(e);\n }else{\n new Auxiliares().setMsj(3,\"PENSUM ID YA EXISTE\");\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 ID = new javax.swing.JTextField();\n jLabel2 = new javax.swing.JLabel();\n jLabel4 = new javax.swing.JLabel();\n jLabel5 = new javax.swing.JLabel();\n jLabel6 = new javax.swing.JLabel();\n Ph = new javax.swing.JTextField();\n Cell = new javax.swing.JTextField();\n Name = new javax.swing.JTextField();\n jLabel11 = new javax.swing.JLabel();\n Email = new javax.swing.JTextField();\n jLabel12 = new javax.swing.JLabel();\n jScrollPane1 = new javax.swing.JScrollPane();\n Address = new javax.swing.JTextArea();\n jButton2 = new javax.swing.JButton();\n jButton3 = new javax.swing.JButton();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);\n setTitle(\"New Supplier\");\n setResizable(false);\n\n jLabel1.setText(\"Supplier ID\");\n\n jLabel2.setFont(new java.awt.Font(\"Forte\", 1, 14));\n jLabel2.setText(\"New Supplier\");\n\n jLabel4.setText(\"Cell\");\n\n jLabel5.setText(\"TelPh\");\n\n jLabel6.setText(\"Supplier Name\");\n\n jLabel11.setText(\"Email\");\n\n jLabel12.setText(\"Address\");\n\n Address.setColumns(20);\n Address.setRows(5);\n jScrollPane1.setViewportView(Address);\n\n jButton2.setText(\"Exit\");\n jButton2.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton2ActionPerformed(evt);\n }\n });\n\n jButton3.setFont(new java.awt.Font(\"Franklin Gothic Heavy\", 1, 12)); // NOI18N\n jButton3.setText(\"Save\");\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(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 .addContainerGap()\n .addComponent(jLabel2)\n .addGap(218, 218, 218))\n .addGroup(layout.createSequentialGroup()\n .addGap(63, 63, 63)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(jLabel6)\n .addComponent(jLabel1)\n .addComponent(jLabel5)\n .addComponent(jLabel4))\n .addGap(31, 31, 31)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)\n .addComponent(ID, javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(Ph, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, 151, Short.MAX_VALUE)\n .addComponent(Name)\n .addComponent(Cell, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, 151, Short.MAX_VALUE))\n .addGap(6, 6, 6)))\n .addGap(76, 76, 76)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)\n .addGroup(layout.createSequentialGroup()\n .addComponent(jLabel11)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(Email, javax.swing.GroupLayout.PREFERRED_SIZE, 135, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(javax.swing.GroupLayout.Alignment.LEADING, layout.createSequentialGroup()\n .addGap(18, 18, 18)\n .addComponent(jLabel12)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(jScrollPane1, 0, 0, Short.MAX_VALUE))\n .addGroup(layout.createSequentialGroup()\n .addComponent(jButton3, javax.swing.GroupLayout.PREFERRED_SIZE, 76, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(87, 87, 87)))\n .addContainerGap())\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()\n .addContainerGap(281, Short.MAX_VALUE)\n .addComponent(jButton2, javax.swing.GroupLayout.PREFERRED_SIZE, 87, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(200, 200, 200))\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()\n .addGap(84, 84, 84)\n .addComponent(jLabel2, javax.swing.GroupLayout.PREFERRED_SIZE, 31, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 29, Short.MAX_VALUE)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel1)\n .addComponent(ID, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(78, 78, 78)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel6)\n .addComponent(Name, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(Email, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel11))\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGap(31, 31, 31)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(Ph, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel5)\n .addComponent(jLabel12)))\n .addGroup(layout.createSequentialGroup()\n .addGap(28, 28, 28)\n .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 83, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(Cell, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel4)))\n .addGroup(layout.createSequentialGroup()\n .addGap(29, 29, 29)\n .addComponent(jButton3)))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jButton2, javax.swing.GroupLayout.PREFERRED_SIZE, 31, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(25, 25, 25))\n );\n\n pack();\n }", "@GetMapping(\"/showFormForAdd\")\n public String showFormForAdd(Model theModel) {\n Associate a=new Associate();\n Skill b = new Skill();\n b.setAssociates(a);\n theModel.addAttribute(\"skill\", b);\n return \"skill-form\";\n }", "@Override\n\tpublic void onFormCreate(AbstractForm arg0, DataMsgBus arg1) {\n\t}", "@GetMapping(\"/add\")\n public String showSocioForm(Model model, Persona persona) {\n List<Cargo> cargos = cargoService.getCargos();\n model.addAttribute(\"cargos\", cargos);\n return \"/backoffice/socioForm\";\n }", "public void saveAndCreateNew() throws Exception {\n\t\topenPrimaryButtonDropdown();\n\t\tgetControl(\"saveAndCreateNewButton\").click();\n\t}", "public void createFieldEditors()\n\t{\n\t}", "public void onMergeItemSelected();", "public static Result startNewForm() {\r\n\t\tString formName = ChangeOrderForm.NAME;\r\n\t\tDecision firstDecision = CMSGuidedFormFill.startNewForm(formName,\r\n\t\t\t\tCMSSession.getEmployeeName(), CMSSession.getEmployeeId());\r\n\t\treturn ok(backdrop.render(firstDecision));\r\n\t}", "public static AssessmentCreationForm openFillCreationForm(Assessment assm) {\n openCreationSearchForm(Roles.STAFF, WingsTopMenu.WingsStaffMenuItem.P_ASSESSMENTS, Popup.Create);\n\n Logger.getInstance().info(\"Fill out the required fields with valid data\");\n AssessmentCreationForm creationForm = new AssessmentCreationForm();\n creationForm.fillAssessmentInformation(new User(Roles.STAFF), assm);\n\n return new AssessmentCreationForm();\n }", "public String actionCreateNew() {\r\n \t\tsetBook(new Book());\r\n \t\treturn \"new\";\r\n \t}", "@GetMapping(\"/add\")\n\tpublic String showFormForAdd(Model model) {\n\t\tMemo memo = new Memo();\n\t\t\n\t\t// load categories for select options\n\t\tMap<String, String> mapCategories = generateMapCategories();\n\t\t\n\t\t// add to the model\n\t\tmodel.addAttribute(\"memo\", memo);\n\t\tmodel.addAttribute(\"categories\", mapCategories);\n\t\t\n\t\treturn \"add\";\n\t}", "@Override\n public void formPopulated(FormEvent fe) {\n formObject = FormContext.getCurrentInstance().getFormReference();\n\n formObject.setNGValue(\"purchasestatus\", \"\");\n formObject.setNGValue(\"purchaseremarks\", \"\");\n formObject.setNGValue(\"previousstatus\", \"\");\n formObject.setNGValue(\"returnpo\", \"\");\n\n String previousactivity = formObject.getNGValue(\"previousactivity\");\n if (previousactivity.equalsIgnoreCase(\"Initiator\")\n || previousactivity.equalsIgnoreCase(\"StoreMaker\")\n || previousactivity.equalsIgnoreCase(\"StoreChecker\")\n || previousactivity.equalsIgnoreCase(\"AccountsMaker\")\n || previousactivity.equalsIgnoreCase(\"AccountsChecker\")) {\n formObject.addComboItem(\"purchasestatus\", \"Hold\", \"Hold\");\n formObject.addComboItem(\"purchasestatus\", \"Exception Cleared\", \"Exception Cleared\");\n }\n\n if (previousactivity.equalsIgnoreCase(\"QualityMaker\")\n || previousactivity.equalsIgnoreCase(\"QualityChecker\")) {\n formObject.addComboItem(\"purchasestatus\", \"Hold\", \"Hold\");\n formObject.addComboItem(\"purchasestatus\", \"Replacement or Exchange\", \"Replacement or Exchange\");\n formObject.addComboItem(\"purchasestatus\", \"Purchase Return\", \"Purchase Return\");\n }\n\n formObject.clear(\"proctype\");\n Query = \"select HeadName from supplypoheadmaster order by HeadName asc\";\n System.out.println(\"Query is \" + Query);\n result = formObject.getDataFromDataSource(Query);\n for (int i = 0; i < result.size(); i++) {\n formObject.addComboItem(\"proctype\", result.get(i).get(0), result.get(i).get(0));\n }\n }", "Builder addCreator(Organization.Builder value);", "protected void shoAddNewDataEditor () {\n\t\t\n\t\t\n\t\tinstantiateDataForAddNewTemplate(new AsyncCallback< DATA>() {\n\t\t\t@Override\n\t\t\tpublic void onFailure(Throwable caught) {\n\t\t\t\t// ini tidak mungkin gagal\n\t\t\t\t\n\t\t\t}\n\t\t\t@Override\n\t\t\tpublic void onSuccess(final DATA result) {\n\t\t\t\teditorGenerator.instantiatePanel(new ExpensivePanelGenerator<BaseDualControlDataEditor<PK,DATA>>() {\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void onPanelGenerationComplete(\n\t\t\t\t\t\t\tBaseDualControlDataEditor<PK, DATA> widget) {\n\t\t\t\t\t\tconfigureAndPlaceEditorPanel(widget);\n\t\t\t\t\t\twidget.requestDoubleSubmitToken(null);\n\t\t\t\t\t\twidget.addAndEditNewData(result);\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\t\n\t\t\n\t}", "public ViewCreatePagamento() {\n initComponents();\n clientesDAO cDAO = DaoFactory.createClientesDao(); \n matriculaDAO mDAO = DaoFactory.createMatriculaDao();\n \n cmbIDClientes.addItem(null);\n cDAO.findAll().forEach((p) -> {\n cmbIDClientes.addItem(p.getNome());\n });\n \n \n txtDataAtual.setText(DateFormat.getDateInstance().format(new Date()));\n }", "@RequestMapping(method=RequestMethod.GET)\n\tpublic String intializeForm(Model model) {\t\t\n\t\tlog.info(\"GET method is called to initialize the registration form\");\n\t\tEmployeeManagerRemote employeeManager = null;\n\t\tEmployeeRegistrationForm employeeRegistrationForm = new EmployeeRegistrationForm();\n\t\tList<Supervisor> supervisors = null;\n\t\ttry{\n\t\t\temployeeManager = (EmployeeManagerRemote) ApplicationUtil.getEjbReference(emplManagerRef);\n\t\t\tsupervisors = employeeManager.getAllSupervisors();\n\t\t\t\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\tmodel.addAttribute(\"supervisors\", supervisors);\n\t\tmodel.addAttribute(\"employeeRegistrationForm\", employeeRegistrationForm);\n\t\t\n\t\treturn FORMVIEW;\n\t}", "@Override\n\tprotected Fragment createFragment() {\n\t\treturn new FormFragment();\n\t}", "public Form(){\n\t\ttypeOfLicenseApp = new TypeOfLicencsApplication();\n\t\toccupationalTrainingList = new ArrayList<OccupationalTraining>();\n\t\taffiadavit = new Affidavit();\n\t\tapplicationForReciprocity = new ApplicationForReciprocity();\n\t\teducationBackground = new EducationBackground();\n\t\toccupationalLicenses = new OccupationalLicenses();\n\t\tofficeUseOnlyInfo = new OfficeUseOnlyInfo();\n\t}", "public CreateAccount() {\n initComponents();\n selectionall();\n }", "public void automerge() {\n\t\tif (automerge) {\n\t\t\tfor(int i = 0; i<create_modifier+1;i++) {\n\t\t\t\tmerge();\n\t\t\t}\n\t\tif(autoidentify) {\n\t\t\tauto_identify_crystal(autoIdentifyTier); // replace this eventually\n\t\t}\n\t\t\t//collection();\n\t\t}\n\t}", "public void popupAdd() {\n builder = new AlertDialog.Builder(getView().getContext());\n View views = getLayoutInflater().inflate(R.layout.departmentpopup, (ViewGroup) null);\n DepartmentName = (EditText) views.findViewById(R.id.department_name);\n DepartmentId = (EditText) views.findViewById(R.id.department_id);\n pbar =views.findViewById(R.id.departmentProgress);\n Button button =views.findViewById(R.id.save_depart);\n saveButton = button;\n button.setOnClickListener(new View.OnClickListener() {\n public void onClick(View view) {\n addDeparatments();\n }\n });\n builder.setView(views);\n AlertDialog create =builder.create();\n dialog = create;\n create.show();\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 jRadioButton1 = new javax.swing.JRadioButton();\n jRadioButton2 = new javax.swing.JRadioButton();\n jLabel3 = new javax.swing.JLabel();\n jTextField1 = new javax.swing.JTextField();\n jComboBox1 = new javax.swing.JComboBox<>();\n jButton1 = new javax.swing.JButton();\n jButton2 = new javax.swing.JButton();\n jScrollPane1 = new javax.swing.JScrollPane();\n jTable1 = new javax.swing.JTable();\n\n setClosable(true);\n setTitle(\"Cats and Merits\");\n addInternalFrameListener(new javax.swing.event.InternalFrameListener() {\n public void internalFrameActivated(javax.swing.event.InternalFrameEvent evt) {\n }\n public void internalFrameClosed(javax.swing.event.InternalFrameEvent evt) {\n }\n public void internalFrameClosing(javax.swing.event.InternalFrameEvent evt) {\n }\n public void internalFrameDeactivated(javax.swing.event.InternalFrameEvent evt) {\n }\n public void internalFrameDeiconified(javax.swing.event.InternalFrameEvent evt) {\n }\n public void internalFrameIconified(javax.swing.event.InternalFrameEvent evt) {\n }\n public void internalFrameOpened(javax.swing.event.InternalFrameEvent evt) {\n formInternalFrameOpened(evt);\n }\n });\n\n jPanel1.setBorder(javax.swing.BorderFactory.createTitledBorder(\"\"));\n\n jLabel1.setText(\"Merit Name\");\n\n jLabel2.setText(\"Used in End of Term\");\n\n jRadioButton1.setText(\"Yes\");\n\n jRadioButton2.setText(\"No\");\n\n jLabel3.setText(\"Merit Type\");\n\n jComboBox1.setModel(new javax.swing.DefaultComboBoxModel<>(new String[] { \"Choose Merit\", \"Merit 1\", \"Merit 2\", \"Merit 3\", \"Cat 1\", \"Cat 2\", \"Cat 3\", \"Divisional\", \"Mock\" }));\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.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addComponent(jLabel2)\n .addGap(18, 18, 18)\n .addComponent(jRadioButton1)\n .addGap(18, 18, 18)\n .addComponent(jRadioButton2))\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)\n .addComponent(jLabel3, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jLabel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n .addGap(18, 18, 18)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jComboBox1, 0, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jTextField1, javax.swing.GroupLayout.DEFAULT_SIZE, 323, Short.MAX_VALUE))))\n .addContainerGap())\n );\n jPanel1Layout.setVerticalGroup(\n jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel1)\n .addComponent(jTextField1, javax.swing.GroupLayout.PREFERRED_SIZE, 25, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel3)\n .addComponent(jComboBox1, javax.swing.GroupLayout.PREFERRED_SIZE, 25, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel2)\n .addComponent(jRadioButton1)\n .addComponent(jRadioButton2))\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n );\n\n jButton1.setText(\"SAVE\");\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.setText(\"CANCEL\");\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 \"Merit Name\", \"Merit Type\", \"End Term\"\n }\n ));\n jScrollPane1.setViewportView(jTable1);\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 .addGroup(layout.createSequentialGroup()\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 .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 0, Short.MAX_VALUE)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()\n .addGap(0, 0, Short.MAX_VALUE)\n .addComponent(jButton2, javax.swing.GroupLayout.PREFERRED_SIZE, 100, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jButton1, javax.swing.GroupLayout.PREFERRED_SIZE, 100, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addContainerGap())\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addContainerGap()\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 .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jButton1, javax.swing.GroupLayout.PREFERRED_SIZE, 30, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jButton2, javax.swing.GroupLayout.PREFERRED_SIZE, 30, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 173, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n );\n\n pack();\n }", "@Override\n\tprotected Control createDialogArea(Composite parent) {\n\n\t\tgetShell().setText(\"Person anlegen oder anpassen\");\n\n\t\tComposite container = (Composite) super.createDialogArea(parent);\n\t\tcontainer.setLayout(new FillLayout(SWT.HORIZONTAL));\n\n\t\tparentForm = formToolkit.createForm(container);\n\t\tformToolkit.paintBordersFor(parentForm);\n\t\tformToolkit.decorateFormHeading(parentForm);\n\t\tparentForm.setText(\"Person anlegen oder anpassen\");\n\t\tparentForm.getBody().setLayout(new GridLayout(1, false));\n\n\t\tSection baseSection = formToolkit.createSection(parentForm.getBody(),\n\t\t\t\tSection.TITLE_BAR);\n\t\tbaseSection.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true,\n\t\t\t\t1, 1));\n\t\tformToolkit.paintBordersFor(baseSection);\n\t\tbaseSection.setText(\"Basisdaten\");\n\n\t\tComposite composite = formToolkit\n\t\t\t\t.createComposite(baseSection, SWT.NONE);\n\t\tformToolkit.paintBordersFor(composite);\n\t\tbaseSection.setClient(composite);\n\t\tcomposite.setLayout(new GridLayout(4, false));\n\n\t\tLabel nameLabel = formToolkit.createLabel(composite, \"Name\", SWT.NONE);\n\t\tnameLabel.setLayoutData(new GridData(SWT.RIGHT, SWT.CENTER, false,\n\t\t\t\tfalse, 1, 1));\n\n\t\tnameText = formToolkit.createText(composite, \"\", SWT.BORDER);\n\t\tnameText.setText(\"\");\n\t\tnameText.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, false,\n\t\t\t\t1, 1));\n\n\t\tLabel firstnameLabel = formToolkit.createLabel(composite, \"Vorname\",\n\t\t\t\tSWT.NONE);\n\t\tfirstnameLabel.setLayoutData(new GridData(SWT.RIGHT, SWT.CENTER, false,\n\t\t\t\tfalse, 1, 1));\n\n\t\tfirstnameText = formToolkit.createText(composite, \"\", SWT.BORDER);\n\t\tGridData gd_firstnameText = new GridData(SWT.FILL, SWT.CENTER, true,\n\t\t\t\tfalse, 1, 1);\n\t\tgd_firstnameText.minimumWidth = 175;\n\t\tfirstnameText.setLayoutData(gd_firstnameText);\n\n\t\tLabel streetLabel = formToolkit.createLabel(composite, \"Strasse\",\n\t\t\t\tSWT.NONE);\n\t\tstreetLabel.setLayoutData(new GridData(SWT.RIGHT, SWT.CENTER, false,\n\t\t\t\tfalse, 1, 1));\n\n\t\tstreetText = formToolkit.createText(composite, \"\", SWT.BORDER);\n\t\tstreetText.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true,\n\t\t\t\tfalse, 1, 1));\n\t\tnew Label(composite, SWT.NONE);\n\t\tnew Label(composite, SWT.NONE);\n\n\t\tLabel postalcodeLabel = formToolkit.createLabel(composite, \"PLZ\",\n\t\t\t\tSWT.NONE);\n\t\tpostalcodeLabel.setLayoutData(new GridData(SWT.RIGHT, SWT.CENTER,\n\t\t\t\tfalse, false, 1, 1));\n\n\t\tpostalcodeText = formToolkit.createText(composite, \"\", SWT.BORDER);\n\t\tpostalcodeText.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true,\n\t\t\t\tfalse, 1, 1));\n\n\t\tLabel cityLabel = formToolkit.createLabel(composite, \"Ort\", SWT.NONE);\n\t\tcityLabel.setLayoutData(new GridData(SWT.RIGHT, SWT.CENTER, false,\n\t\t\t\tfalse, 1, 1));\n\n\t\tcityText = formToolkit.createText(composite, \"\", SWT.BORDER);\n\t\tcityText.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, false,\n\t\t\t\t1, 1));\n\n\t\tLabel birthdayLabel = formToolkit.createLabel(composite, \"Geburtstag\",\n\t\t\t\tSWT.NONE);\n\t\tbirthdayLabel.setLayoutData(new GridData(SWT.RIGHT, SWT.TOP, false,\n\t\t\t\tfalse, 1, 1));\n\n\t\tfinal DateTime dateTime = new DateTime(composite, SWT.BORDER\n\t\t\t\t| SWT.CALENDAR);\n\t\tformToolkit.adapt(dateTime);\n\t\tformToolkit.paintBordersFor(dateTime);\n\t\tnew Label(composite, SWT.NONE);\n\t\tnew Label(composite, SWT.NONE);\n\n\t\tformToolkit.adapt(composite);\n\t\tformToolkit.paintBordersFor(composite);\n\n\t\tSection advancedSection = formToolkit.createSection(\n\t\t\t\tparentForm.getBody(), Section.TITLE_BAR);\n\t\tadvancedSection.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true,\n\t\t\t\tfalse, 1, 1));\n\t\tformToolkit.paintBordersFor(advancedSection);\n\t\tadvancedSection.setText(\"erweiterte Daten\");\n\n\t\tComposite advancedComposite = formToolkit.createComposite(\n\t\t\t\tadvancedSection, SWT.NONE);\n\t\tformToolkit.paintBordersFor(advancedComposite);\n\t\tadvancedSection.setClient(advancedComposite);\n\t\tadvancedComposite.setLayout(new GridLayout(2, false));\n\n\t\tnew Label(advancedComposite, SWT.NONE);\n\n\t\tfinal Button activeMemberCheckButton = new Button(advancedComposite,\n\t\t\t\tSWT.CHECK);\n\t\tformToolkit.adapt(activeMemberCheckButton, true, true);\n\t\tactiveMemberCheckButton.setText(\"Aktives Mitglied\");\n\n\t\tLabel telephoneLabel = formToolkit.createLabel(advancedComposite,\n\t\t\t\t\"Telefon\", SWT.NONE);\n\t\ttelephoneLabel.setLayoutData(new GridData(SWT.RIGHT, SWT.TOP, false,\n\t\t\t\tfalse, 1, 1));\n\n\t\ttelephoneText = formToolkit.createText(advancedComposite, \"\",\n\t\t\t\tSWT.BORDER);\n\t\ttelephoneText.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true,\n\t\t\t\tfalse, 1, 1));\n\n\t\tLabel mobileLabel = formToolkit.createLabel(advancedComposite, \"Handy\",\n\t\t\t\tSWT.NONE);\n\t\tmobileLabel.setLayoutData(new GridData(SWT.RIGHT, SWT.TOP, false,\n\t\t\t\tfalse, 1, 1));\n\n\t\tmobileText = formToolkit.createText(advancedComposite, \"\", SWT.BORDER);\n\t\tgd_firstnameText.minimumWidth = 175;\n\t\tmobileText.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true,\n\t\t\t\tfalse, 1, 1));\n\n\t\tLabel faxLabel = formToolkit.createLabel(advancedComposite, \"Fax\",\n\t\t\t\tSWT.NONE);\n\t\tfaxLabel.setLayoutData(new GridData(SWT.RIGHT, SWT.TOP, false, false,\n\t\t\t\t1, 1));\n\n\t\tfaxText = formToolkit.createText(advancedComposite, \"\", SWT.BORDER);\n\t\tfaxText.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, false,\n\t\t\t\t1, 1));\n\n\t\tLabel emailLabel = formToolkit.createLabel(advancedComposite, \"E-Mail\",\n\t\t\t\tSWT.NONE);\n\t\temailLabel.setLayoutData(new GridData(SWT.RIGHT, SWT.TOP, false, false,\n\t\t\t\t1, 1));\n\n\t\temailText = formToolkit.createText(advancedComposite, \"\", SWT.BORDER);\n\t\temailText.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, false,\n\t\t\t\t1, 1));\n\n\t\tnameText.setText(person.getName() != null ? person.getName() : \"\");\n\t\tfirstnameText.setText(person.getFirstname() != null ? person\n\t\t\t\t.getFirstname() : \"\");\n\t\tstreetText\n\t\t\t\t.setText(person.getStreet() != null ? person.getStreet() : \"\");\n\t\tpostalcodeText.setText(person.getPostalcode() != null ? person\n\t\t\t\t.getPostalcode() : \"\");\n\t\tcityText.setText(person.getCity() != null ? person.getCity() : \"\");\n\t\tif (person.getBirthday() != null) {\n\t\t\tCalendar c = Calendar.getInstance();\n\t\t\tc.setTime(person.getBirthday());\n\t\t\tdateTime.setDate(c.get(Calendar.YEAR), c.get(Calendar.MONTH),\n\t\t\t\t\tc.get(Calendar.DAY_OF_MONTH));\n\t\t}\n\n\t\tactiveMemberCheckButton\n\t\t\t\t.setSelection(person.isActiveMember() != null ? person\n\t\t\t\t\t\t.isActiveMember() : false);\n\t\ttelephoneText.setText(person.getPhone() != null ? person.getPhone()\n\t\t\t\t: \"\");\n\t\tmobileText\n\t\t\t\t.setText(person.getMobile() != null ? person.getMobile() : \"\");\n\t\tfaxText.setText(person.getFax() != null ? person.getFax() : \"\");\n\t\temailText.setText(person.getEmail() != null ? person.getEmail() : \"\");\n\n\t\tModifyListener modifyListener = new ModifyListener() {\n\t\t\t@Override\n\t\t\tpublic void modifyText(ModifyEvent e) {\n\t\t\t\tif (e.widget == nameText) {\n\t\t\t\t\tperson.setName(nameText.getText());\n\t\t\t\t} else if (e.widget == firstnameText) {\n\t\t\t\t\tperson.setFirstname(firstnameText.getText());\n\t\t\t\t} else if (e.widget == streetText) {\n\t\t\t\t\tperson.setStreet(streetText.getText());\n\t\t\t\t} else if (e.widget == postalcodeText) {\n\t\t\t\t\tperson.setPostalcode(postalcodeText.getText());\n\t\t\t\t} else if (e.widget == cityText) {\n\t\t\t\t\tperson.setCity(cityText.getText());\n\t\t\t\t} else if (e.widget == telephoneText) {\n\t\t\t\t\tperson.setPhone(telephoneText.getText());\n\t\t\t\t} else if (e.widget == mobileText) {\n\t\t\t\t\tperson.setMobile(mobileText.getText());\n\t\t\t\t} else if (e.widget == faxText) {\n\t\t\t\t\tperson.setFax(faxText.getText());\n\t\t\t\t} else if (e.widget == emailText) {\n\t\t\t\t\tperson.setEmail(emailText.getText());\n\t\t\t\t}\n\t\t\t}\n\t\t};\n\t\tnameText.addModifyListener(modifyListener);\n\t\tfirstnameText.addModifyListener(modifyListener);\n\t\tstreetText.addModifyListener(modifyListener);\n\t\tpostalcodeText.addModifyListener(modifyListener);\n\t\tcityText.addModifyListener(modifyListener);\n\t\ttelephoneText.addModifyListener(modifyListener);\n\t\tmobileText.addModifyListener(modifyListener);\n\t\tfaxText.addModifyListener(modifyListener);\n\t\temailText.addModifyListener(modifyListener);\n\t\tactiveMemberCheckButton.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tperson.setActiveMember(activeMemberCheckButton.getSelection());\n\t\t\t}\n\t\t});\n\t\tdateTime.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tCalendar c = Calendar.getInstance();\n\t\t\t\tc.set(dateTime.getYear(), dateTime.getMonth(),\n\t\t\t\t\t\tdateTime.getDay());\n\t\t\t\tperson.setBirthday(c.getTime());\n\t\t\t}\n\t\t});\n\n\t\treturn container;\n\t}", "protected abstract void createFieldEditors();", "private void populateForm() {\n Part selectedPart = (Part) PassableData.getPartData();\n partPrice.setText(String.valueOf(selectedPart.getPrice()));\n partName.setText(selectedPart.getName());\n inventoryCount.setText(String.valueOf(selectedPart.getStock()));\n partId.setText(String.valueOf(selectedPart.getId()));\n maximumInventory.setText(String.valueOf(selectedPart.getMax()));\n minimumInventory.setText(String.valueOf(selectedPart.getMin()));\n\n if (PassableData.isOutsourced()) {\n Outsourced part = (Outsourced) selectedPart;\n variableTextField.setText(part.getCompanyName());\n outsourced.setSelected(true);\n\n } else if (!PassableData.isOutsourced()) {\n InHouse part = (InHouse) selectedPart;\n variableTextField.setText(String.valueOf(part.getMachineId()));\n inHouse.setSelected(true);\n }\n\n\n }", "public RelationshipDialog() {\n super(getRTParent(), \"Add Relationship...\", true);\n getContentPane().setLayout(new BorderLayout(5,5));\n JPanel center = new JPanel(new GridLayout(5,2,5,5));\n center.add(new JLabel(\"From\")); \n center.add(new JLabel(\"To\"));\n\n String blanks[] = KeyMaker.blanks(getRTParent().getRootBundles().getGlobals());\n center.add(from_cb = new JComboBox(blanks));\n center.add(to_cb = new JComboBox(blanks));\n\n center.add(from_symbol_cb = new JComboBox(Utils.SHAPE_STRS));\n center.add(to_symbol_cb = new JComboBox(Utils.SHAPE_STRS));\n center.add(from_typed_cb = new JCheckBox(\"Field Typed\", false));\n center.add(to_typed_cb = new JCheckBox(\"Field Typed\", false));\n center.add(ignore_ns_cb = new JCheckBox(\"Ignore Not Sets\", true));\n getContentPane().add(\"Center\", center);\n\n getContentPane().add(\"North\", style_cb = new JComboBox(STYLE_STRS));\n\n JPanel bottom = new JPanel(new FlowLayout());\n JButton add_bt, cancel_bt;\n bottom.add(add_bt = new JButton(\"Add\"));\n bottom.add(cancel_bt = new JButton(\"Cancel\"));\n getContentPane().add(\"South\", bottom);\n\n // Add listeners\n cancel_bt.addActionListener(new ActionListener() { \n public void actionPerformed(ActionEvent ae) { setVisible(false); dispose(); } } );\n add_bt.addActionListener(new ActionListener() { \n public void actionPerformed(ActionEvent ae) {\n setVisible(false); dispose();\n\t addRelationship((String) from_cb.getSelectedItem(), \n\t (String) from_symbol_cb.getSelectedItem(),\n\t \t\t from_typed_cb.isSelected(),\n\t (String) to_cb.getSelectedItem(), \n\t (String) to_symbol_cb.getSelectedItem(),\n\t\t \t to_typed_cb.isSelected(),\n (String) style_cb.getSelectedItem(), \n\t\t\t ignore_ns_cb.isSelected(), \n\t\t\t false);\n } } );\n pack(); setVisible(true);\n }", "public FrmCadastro() {\n initComponents();\n \n lblNumeroConta.setText(\"Número da conta: \" + Agencia.getProximaConta());\n \n List<Integer> agencias = Principal.banco.retornarNumeroAgencias();\n for(int i : agencias){\n cmbAgencias.addItem(\"Agência \" + i);\n }\n }", "@RequestMapping(value = \"/newrecipe\", method = RequestMethod.GET)\n\tpublic String newRecipeForm(Model model) {\n\t\tmodel.addAttribute(\"recipe\", new Recipe()); //empty recipe object\n\t\tmodel.addAttribute(\"categories\", CatRepo.findAll());\n\t\treturn \"newrecipe\";\n\t}", "@RequestMapping(\"/book/new\")\n public String newBook(Model model){\n model.addAttribute(\"book\", new Book ());\n return \"bookform\";\n }", "public static Result submit() {\n Pallet pallet = palletForm.bindFromRequest().get();\n SetOfArticle sOA = setOfArticleForm.bindFromRequest().get();\n pallet.setTimeEntrance(new Date());\n sOA.setPallet(pallet);\n Ebean.beginTransaction();\n try {\n pallet.getTag1().save();\n pallet.getTag2().save();\n pallet.save();\n sOA.save();\n Ebean.commitTransaction();\n } catch (PersistenceException e) {\n flash(\"danger\", \"Pallet couldn't be created.\");\n return badRequest(newForm.render(palletForm, setOfArticleForm));\n } finally {\n Ebean.endTransaction();\n }\n flash(\"success\", \"Pallet with IDs: \" + pallet.getTag1().getId()+ \", \" + pallet.getTag2().getId() +\n \" and \" + sOA.getAmount() + \" pieces of \" +\n Article.find.byId(sOA.getArticle().getId()).getName() + \" added to database!\");\n return redirect(controllers.routes.PalletView.list());\n }", "public void addRelationshipDialog() { new RelationshipDialog(); }", "@Override\n\tprotected void setViewAtributes() throws Exception {\n\t\tif (log.isDebugEnabled()) {\n\t\t\tlog.debug(\"Entering 'save' method\");\n\t\t}\n\t\tlog.debug(\"setAddAttributes method ....\");\n\t\tMantenimientoCRAMatrizDiasSearchForm f = (MantenimientoCRAMatrizDiasSearchForm) this.formBusqueda;\n\t\tPais pais = this.mPantallaPrincipalBean.getCurrentCountry();\n\n\t\tf.setCodigoPais(pais.getCodigo());\n\n\t\tf.setActividad(null);\n\t\tf.setGrupoZona(null);\n\n\t\tReporteService reporteService = (ReporteService) getBean(\"scsicc.reporteService\");\n\n\t\t// obteniendo las lista de grupode facturacion y actividad\n\t\tMantenimientoMAEClienteService clienteService = (MantenimientoMAEClienteService) getBean(\"spusicc.mantenimientoMAEClienteService\");\n\t\tLong oidMarca = clienteService\n\t\t\t\t.getOidMarca(Constants.CODIGO_MARCA_DEFAULT);\n\t\tLong oidCanal = clienteService\n\t\t\t\t.getOidCanal(Constants.CODIGO_CANAL_DEFAULT);\n\n\t\tMap params = new HashMap();\n\t\tparams.put(\"codigoPais\", pais.getCodigo());\n\t\tparams.put(\n\t\t\t\t\"oidPais\",\n\t\t\t\tnew Long(reporteService.getOidString(\"getOidPaisByCodigoPais\",\n\t\t\t\t\t\tparams)));\n\t\tparams.put(\"oidMarca\", oidMarca);\n\t\tparams.put(\"oidCanal\", oidCanal);\n\n\t\tsiccGrupoFacturacionList = reporteService.getGrupoFacturacion(params);\n\t\tsiccActividadList = reporteService.getActividad(params);\n\t\tfindList(f);\n\n\t\tthis.mostrarBotonBuscar = false;\n\t\tthis.mostrarBotonModificar = false;\n\t\tthis.mostrarBotonNuevo = false;\n\t\tthis.mostrarBotonEliminar = false;\n\t\tthis.mostrarBotonConsultar = false;\n\n\t}", "CounselorBiographyTemp create(CounselorBiographyTemp entity);", "private void populateForm(SecurityGroupsForm securityGroupsForm) {\n SecurityGroup group;\n if (IdUtil.isValidId(securityGroupsForm.getGroupId())) {\n group = securityManager.getSecurityGroup(securityGroupsForm.getGroupId());\n } else {\n group = new SecurityGroup();\n }\n\n securityGroupsForm.setGroupId(group.getId());\n securityGroupsForm.setGroupName(group.getName());\n securityGroupsForm.setDescription(group.getDescription());\n\n securityGroupsForm.getAuthorities().clear();\n for (SecurityAuthority authority : securityManager.getAllGrantedAuthorities()) {\n boolean checked = group.getGrantedAuthorities() != null && group.getGrantedAuthorities().contains(authority);\n securityGroupsForm.getAuthorities().add(new SecurityGroupsForm.Authority(authority, checked));\n }\n Collections.sort(securityGroupsForm.getAuthorities());\n }", "@GetMapping(\"/list/showFormForAdd\")\n\tpublic String showFormForAdd(Model theModel) {\n\t\tPerson thePerson = new Person();\n\t\ttheModel.addAttribute(\"person\", thePerson);\n\n\t\treturn \"person-form\";\n\t}", "@Override\r\n\t\t\tpublic void onApply() {\n\t\t\t\tFormPanel panel = new FormPanel();\r\n\t\t\t\tpanel.setWidth(350);\r\n\t\t\t\tpanel.setLabelSeparator(\"\");\r\n\t\t\t\tpanel.setHeaderVisible(false);\r\n\t\t\t\tpanel.setLabelAlign(LabelAlign.TOP);\r\n\t\t\t\t\r\n\t\t\t\t// Make RPC call via a proxy, see appendixes for info\r\n\t\t\t\tfinal RemoteGatewayAsync rpcService = (RemoteGatewayAsync) GWT.create(RemoteGateway.class);\r\n\t\t\t\tRpcProxy<ListLoadResult<Customer>> rpcProxy = new RpcProxy<ListLoadResult<Customer>>() {\r\n\t\t\t\t @Override\r\n\t\t\t\t public void load(Object cfg, AsyncCallback<ListLoadResult<Customer>> callback) {\r\n\t\t\t\t \trpcService.listCustomers((ListLoadConfig) cfg, callback);\r\n\t\t\t\t }\r\n\t\t\t\t};\r\n\t\t\t\t\r\n\t\t\t\t// setup the store used by the combo's\r\n\t\t\t\tListLoader<ListLoadResult<ModelData>> loader = new BaseListLoader<ListLoadResult<ModelData>>(rpcProxy, new BeanModelReader());\t\t \r\n\t\t\t\tListStore<BeanModel> customerStore = new ListStore<BeanModel>(loader);\r\n\t\t\t\t\r\n\t\t\t\t// The first combo\r\n\t\t\t\t// this one uses the simple\r\n\t\t\t\t// template to show bold names,\r\n\t\t\t\t// we'll call them 'Bold Customers'\r\n\t\t\t\tComboBox<BeanModel> combo1 = new ComboBox<BeanModel>();\t\t\t\t\r\n\t\t\t\tcombo1.setStore(customerStore);\r\n\t\t\t\tcombo1.setTemplate(getTemplate());\r\n\t\t\t\tconfigureCombo(combo1, \"Bold Customers\");\r\n\t\t\t\tpanel.add(combo1);\r\n\t\t\t\t\r\n\t\t\t\t// The second combo\r\n\t\t\t\t// this one uses the advance\r\n\t\t\t\t// template to show customer name\r\n\t\t\t\t// with their gender on the left\r\n\t\t\t\t// and their age on the right,\r\n\t\t\t\t// we'll call them 'Gender Sensitive Customers'\r\n\t\t\t\tComboBox<BeanModel> combo2 = new ComboBox<BeanModel>();\t\t\t\r\n\t\t\t\tcombo2.setStore(customerStore);\r\n\t\t\t\tcombo2.setTemplate(getAdvTemplate());\r\n\t\t\t\tconfigureCombo(combo2, \"Gender Sensitive Customers\");\r\n\t\t\t\tpanel.add(combo2);\r\n\t\t\t\t\r\n\t\t\t\t// put the form on screen, equivalent\r\n\t\t\t\t// to RootPanel.get().add(panel)\r\n\t\t\t\t\r\n\t\t\t\tGxtCookBk.getAppCenterPanel().add(panel);\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t}", "private void submitNewUser() {\n\t\tboolean validationFlag = true;\n\t\tArrayList<HashMap<String, String>> signUpFields = new ArrayList<HashMap<String, String>>();\n\t\tint size = lnr_form.getChildCount();\n\t\tfor (int i = 0; i < size; i++) {\n\t\t\tLinearLayout v = (LinearLayout) lnr_form.getChildAt(i);\n\t\t\t@SuppressWarnings(\"unchecked\")\n\t\t\tHashMap<String, String> field = (HashMap<String, String>) v.getTag();\n\n\t\t\tIjoomerEditText edtValue = null;\n\t\t\tSpinner spnrValue = null;\n\n\t\t\tif (field != null) {\n\t\t\t\tif (field.get(TYPE).equals(TEXT)) {\n\t\t\t\t\tedtValue = (IjoomerEditText) ((LinearLayout) v.findViewById(R.id.lnrEdit)).findViewById(R.id.txtValue);\n\t\t\t\t} else if (field.get(TYPE).equals(TEXTAREA)) {\n\t\t\t\t\tedtValue = (IjoomerEditText) ((LinearLayout) v.findViewById(R.id.lnrEditArea)).findViewById(R.id.txtValue);\n\t\t\t\t} else if (field.get(TYPE).equals(PASSWORD)) {\n\t\t\t\t\tedtValue = (IjoomerEditText) ((LinearLayout) v.findViewById(R.id.lnrPassword)).findViewById(R.id.txtValue);\n\t\t\t\t} else if (field.get(TYPE).equals(MAP)) {\n\t\t\t\t\tedtValue = (IjoomerEditText) ((LinearLayout) v.findViewById(R.id.lnrEditMap)).findViewById(R.id.txtValue);\n\t\t\t\t} else if (field.get(\"type\").equals(LABEL)) {\n\t\t\t\t\tedtValue = (IjoomerEditText) ((LinearLayout) v.findViewById(R.id.lnrLabel)).findViewById(R.id.txtValue);\n\t\t\t\t} else if (field.get(TYPE).equals(DATE)) {\n\t\t\t\t\tedtValue = (IjoomerEditText) ((LinearLayout) v.findViewById(R.id.lnrEditClickable)).findViewById(R.id.txtValue);\n\n\t\t\t\t\tif (edtValue.getText().toString().trim().length() > 0) {\n\t\t\t\t\t\tif (!IjoomerUtilities.birthdateValidator(edtValue.getText().toString().trim())) {\n\t\t\t\t\t\t\tedtValue.setFocusable(true);\n\t\t\t\t\t\t\tedtValue.setError(getString(R.string.validation_invalid_birth_date));\n\t\t\t\t\t\t\tvalidationFlag = false;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t} else if (field.get(TYPE).equals(MULTIPLESELECT)) {\n\t\t\t\t\tedtValue = (IjoomerEditText) ((LinearLayout) v.findViewById(R.id.lnrEditClickable)).findViewById(R.id.txtValue);\n\t\t\t\t}\n\t\t\t\tif (field.get(TYPE).equals(TIME)) {\n\t\t\t\t\tedtValue = (IjoomerEditText) ((LinearLayout) v.findViewById(R.id.lnrEditClickable)).findViewById(R.id.txtValue);\n\t\t\t\t}\n\n\t\t\t\tif (field.get(TYPE).equals(SELECT)) {\n\t\t\t\t\tspnrValue = (Spinner) ((LinearLayout) v.findViewById(R.id.lnrSpin)).findViewById(R.id.txtValue);\n\t\t\t\t\tfield.put(VALUE, spnrValue.getSelectedItem().toString());\n\t\t\t\t\tsignUpFields.add(field);\n\t\t\t\t} else if (field.get(TYPE).equals(PASSWORD) && field.get(NAME).equals(\"Retype Password\")) {\n\t\t\t\t\tint len = lnr_form.getChildCount();\n\t\t\t\t\tfor (int j = 0; j < len; j++) {\n\t\t\t\t\t\tLinearLayout view = (LinearLayout) lnr_form.getChildAt(i);\n\t\t\t\t\t\t@SuppressWarnings(\"unchecked\")\n\t\t\t\t\t\tHashMap<String, String> row = (HashMap<String, String>) view.getTag();\n\t\t\t\t\t\tif (row.get(TYPE).equals(PASSWORD) && field.get(NAME).equals(\"Password\")) {\n\t\t\t\t\t\t\tString password = ((IjoomerEditText) ((LinearLayout) v.findViewById(R.id.lnrPassword)).findViewById(R.id.txtValue)).getText().toString();\n\t\t\t\t\t\t\tif (password.equals(edtValue.getText().toString())) {\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tedtValue.setError(getString(R.string.validation_password_not_match));\n\t\t\t\t\t\t\t\tvalidationFlag = 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}\n\t\t\t\t} else if (edtValue != null && edtValue.getText().toString().trim().length() <= 0 && (field.get(REQUIRED).equals(\"1\"))) {\n\t\t\t\t\tedtValue.setError(getString(R.string.validation_value_required));\n\t\t\t\t\tvalidationFlag = false;\n\t\t\t\t} else {\n\t\t\t\t\tfield.put(VALUE, edtValue.getText().toString().trim());\n\t\t\t\t\tsignUpFields.add(field);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tif (validationFlag) {\n\t\t\tfinal SeekBar proSeekBar = IjoomerUtilities.getLoadingDialog(getString(R.string.dialog_loading_register_newuser));\n\t\t\tnew IjoomerRegistration(this).submitNewUser(signUpFields, new WebCallListener() {\n\n\t\t\t\t@Override\n\t\t\t\tpublic void onProgressUpdate(int progressCount) {\n\t\t\t\t\tproSeekBar.setProgress(progressCount);\n\t\t\t\t}\n\n\t\t\t\t@Override\n\t\t\t\tpublic void onCallComplete(final int responseCode, String errorMessage, ArrayList<HashMap<String, String>> data1, Object data2) {\n\t\t\t\t\tif (responseCode == 200) {\n\t\t\t\t\t\tIjoomerUtilities.getCustomOkDialog(getString(R.string.dialog_loading_profile), getString(R.string.registration_successfully), getString(R.string.ok),\n\t\t\t\t\t\t\t\tR.layout.ijoomer_ok_dialog, new CustomAlertNeutral() {\n\n\t\t\t\t\t\t\t\t\t@Override\n\t\t\t\t\t\t\t\t\tpublic void NeutralMethod() {\n\n\t\t\t\t\t\t\t\t\t\tIntent intent = new Intent(\"clearStackActivity\");\n\t\t\t\t\t\t\t\t\t\tintent.setType(\"text/plain\");\n\t\t\t\t\t\t\t\t\t\tsendBroadcast(intent);\n\t\t\t\t\t\t\t\t\t\tIjoomerWebService.cookies = null;\n\n\t\t\t\t\t\t\t\t\t\tloadNew(IjoomerLoginActivity.class, IPropertyRegistrationActivity.this, true);\n\t\t\t\t\t\t\t\t\t\tfinish();\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t});\n\n\t\t\t\t\t} else {\n\t\t\t\t\t\tIjoomerUtilities.getCustomOkDialog(getString(R.string.dialog_loading_profile),\n\t\t\t\t\t\t\t\tgetString(getResources().getIdentifier(\"code\" + responseCode, \"string\", getPackageName())), getString(R.string.ok), R.layout.ijoomer_ok_dialog,\n\t\t\t\t\t\t\t\tnew CustomAlertNeutral() {\n\n\t\t\t\t\t\t\t\t\t@Override\n\t\t\t\t\t\t\t\t\tpublic void NeutralMethod() {\n\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}\n\t\t\t\t}\n\t\t\t});\n\t\t}\n\t}", "@RequestMapping(value = \"/add\")\n public String addForm(Model model) {\n model.addAttribute(\"service\",fservice.findAllServices());\n model.addAttribute(\"customer\", mservice.findAllCustomer());\n model.addAttribute(\"customer\", new Customer());\n return \"customer-form\";\n }", "@ModelAttribute(\"student\")\n public Student_gra_84 setupAddForm() {\n return new Student_gra_84();\n }", "private void loadForm() {\n service.getReasons(refusalReasons);\n service.getVacEligibilty(vacElig);\n service.getVacSites(vacSites);\n service.getReactions(vacReactions);\n service.getOverrides(vacOverrides);\n updateComboValues();\n \n selPrv = \"\";\n selLoc = \"\";\n \n //datGiven.setDateConstraint(new SimpleDateConstraint(SimpleDateConstraint.NO_NEGATIVE, DateUtil.addDays(patient.getBirthDate(), -1, true), null, BgoConstants.TX_BAD_DATE_DOB));\n datGiven.setDateConstraint(getConstraintDOBDate());\n datEventDate.setConstraint(getConstraintDOBDate());\n radFacility.setLabel(service.getParam(\"Caption-Facility\", \"&Facility\"));\n if (immunItem != null) {\n \n txtVaccine.setValue(immunItem.getVaccineName());\n txtVaccine.setAttribute(\"ID\", immunItem.getVaccineID());\n txtVaccine.setAttribute(\"DATA\", immunItem.getVaccineID() + U + immunItem.getVaccineName());\n setEventType(immunItem.getEventType());\n \n radRefusal.setDisabled(!radRefusal.isChecked());\n radHistorical.setDisabled(!radHistorical.isChecked());\n radCurrent.setDisabled(!radCurrent.isChecked());\n \n visitIEN = immunItem.getVisitIEN();\n if (immunItem.getProvider() != null) {\n txtProvider.setText(FhirUtil.formatName(immunItem.getProvider().getName()));\n txtProvider.setAttribute(\"ID\", immunItem.getProvider().getId().getIdPart());\n selPrv = immunItem.getProvider().getId().getIdPart() + U + U + immunItem.getProvider().getName();\n }\n switch (immunItem.getEventType()) {\n case REFUSAL:\n ListUtil.selectComboboxItem(cboReason, immunItem.getReason());\n txtComment.setText(immunItem.getComment());\n datEventDate.setValue(immunItem.getDate());\n break;\n case HISTORICAL:\n datEventDate.setValue(immunItem.getDate());\n txtLocation.setValue(immunItem.isImmunization() ? immunItem.getLocationName() : \"\");\n txtLocation.setAttribute(\"ID\", immunItem.isImmunization() ? immunItem.getLocationID() : \"\");\n selLoc = immunItem.getLocationID() + U + U + immunItem.getLocationName();\n radOther.setSelected(txtLocation.getAttribute(\"ID\") != null\n ? txtLocation.getAttribute(\"ID\").toString().isEmpty() : false);\n txtAdminNote.setText(immunItem.getAdminNotes());\n ZKUtil.disableChildren(fraDate, true);\n ZKUtil.disableChildren(fraHistorical, true);\n default:\n service.getLot(lotNumbers, getVaccineID());\n loadComboValues(cboLot, lotNumbers, comboRenderer);\n loadVaccination();\n txtLocation.setValue(immunItem.isImmunization() ? immunItem.getLocationName() : \"\");\n txtLocation.setAttribute(\"ID\", immunItem.isImmunization() ? immunItem.getLocationID() : \"\");\n selLoc = immunItem.getLocationID() + U + U + immunItem.getLocationName();\n radOther.setSelected(txtLocation.getAttribute(\"ID\") != null\n ? txtLocation.getAttribute(\"ID\").toString().isEmpty() : false);\n ListUtil.selectComboboxItem(cboLot, immunItem.getLot());\n ListUtil.selectComboboxItem(cboSite, StrUtil.piece(immunItem.getInjSite(), \"~\", 2));\n spnVolume.setText(immunItem.getVolume());\n datGiven.setDate(immunItem.getDate());\n datVIS.setValue(immunItem.isImmunization() ? immunItem.getVISDate() : null);\n ListUtil.selectComboboxItem(cboReaction, immunItem.getReaction());\n ListUtil.selectComboboxData(cboOverride, immunItem.getVacOverride());\n txtAdminNote.setText(immunItem.getAdminNotes());\n cbCounsel.setChecked(immunItem.wasCounseled());\n }\n } else {\n IUser user = UserContext.getActiveUser();\n Practitioner provider = new Practitioner();\n provider.setId(user.getLogicalId());\n provider.setName(FhirUtil.parseName(user.getFullName()));\n txtProvider.setValue(FhirUtil.formatName(provider.getName()));\n txtProvider.setAttribute(\"ID\", VistAUtil.parseIEN(provider)); //provider.getId().getIdPart());\n selPrv = txtProvider.getAttribute(\"ID\") + U + U + txtProvider.getValue();\n Location location = new Location();\n location.setName(\"\");\n location.setId(\"\");\n datGiven.setDate(getBroker().getHostTime());\n onClick$btnVaccine(null);\n \n if (txtVaccine.getValue().isEmpty()) {\n close(true);\n return;\n }\n \n Encounter encounter = EncounterContext.getActiveEncounter();\n if (!EncounterUtil.isPrepared(encounter)) {\n setEventType(EventType.HISTORICAL);\n radCurrent.setDisabled(true);\n } else {\n if (isCategory(encounter, \"E\")) {\n setEventType(EventType.HISTORICAL);\n Date date = encounter == null ? null : encounter.getPeriod().getStart();\n datEventDate.setValue(DateUtil.stripTime(date == null ? getBroker().getHostTime() : date));\n radCurrent.setDisabled(true);\n txtLocation.setText(user.getSecurityDomain().getName());\n PromptDialog.showInfo(user.getSecurityDomain().getLogicalId());\n txtLocation.setAttribute(\"ID\", user.getSecurityDomain().getLogicalId());\n \n } else {\n if (isVaccineInactive()) {\n setEventType(EventType.HISTORICAL);\n radCurrent.setDisabled(true);\n } else {\n setEventType(EventType.CURRENT);\n radCurrent.setDisabled(false);\n }\n }\n }\n selectItem(cboReason, NONESEL);\n }\n btnSave.setLabel(immunItem == null ? \"Add\" : \"Save\");\n btnSave.setTooltiptext(immunItem == null ? \"Add record\" : \"Save record\");\n txtVaccine.setFocus(true);\n }", "protected abstract void addFormComponents(final Form<T> form);", "public void onSelectionCreate(ActionEvent event) throws SQLException {\n //TODO think about creating league model class to get id easily\n if(chooseAgeGroupCreate.getValue() != null && chooseCityBoxCreate.getValue() != null){\n chooseLeagueBoxCreate.setDisable(false);\n chooseLeagueTeamBoxCreate.getItems().clear();\n chooseLeagueBoxCreate.getItems().clear();\n ObservableList<String> leagueList = DatabaseManager.getLeagues(user, chooseCityBoxCreate.getValue().toString(), chooseAgeGroupCreate.getValue());\n chooseLeagueBoxCreate.getSelectionModel().clearSelection();\n chooseLeagueBoxCreate .setButtonCell(new ListCell<String>() {\n @Override\n protected void updateItem(String item, boolean empty) {\n super.updateItem(item, empty) ;\n if (empty || item == null) {\n setText(\"Choose League\");\n } else {\n setText(item);\n }\n }\n });\n if(leagueList.size() != 0){\n chooseLeagueBoxCreate.getItems().addAll(leagueList);\n }\n }\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 jLabel7 = new javax.swing.JLabel();\n jLabel8 = new javax.swing.JLabel();\n jLabel9 = new javax.swing.JLabel();\n jLabel10 = new javax.swing.JLabel();\n jLabel12 = new javax.swing.JLabel();\n jLabel1 = new javax.swing.JLabel();\n jPanel3 = new javax.swing.JPanel();\n jLabel3 = new javax.swing.JLabel();\n txtSupId = new javax.swing.JTextField();\n jLabel4 = new javax.swing.JLabel();\n txtName = new javax.swing.JTextField();\n jLabel5 = new javax.swing.JLabel();\n txtEmail = new javax.swing.JTextField();\n jLabel6 = new javax.swing.JLabel();\n txtContactNumber = new javax.swing.JTextField();\n btnAddEmp = new javax.swing.JButton();\n rdMr = new javax.swing.JRadioButton();\n rdMrs = new javax.swing.JRadioButton();\n rdMiss = new javax.swing.JRadioButton();\n jSeparator1 = new javax.swing.JSeparator();\n jSeparator2 = new javax.swing.JSeparator();\n jSeparator3 = new javax.swing.JSeparator();\n jSeparator4 = new javax.swing.JSeparator();\n reset = new javax.swing.JButton();\n jLabel11 = new javax.swing.JLabel();\n jSeparator5 = new javax.swing.JSeparator();\n txtItem = new javax.swing.JTextField();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n setTitle(\"ADD SUPPLIERS\");\n setResizable(false);\n addWindowListener(new java.awt.event.WindowAdapter() {\n public void windowOpened(java.awt.event.WindowEvent evt) {\n formWindowOpened(evt);\n }\n });\n getContentPane().setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());\n\n jPanel1.setBackground(new java.awt.Color(255, 255, 255));\n\n jPanel2.setBackground(new java.awt.Color(0, 0, 51));\n\n jLabel7.setBackground(new java.awt.Color(45, 118, 238));\n jLabel7.setFont(new java.awt.Font(\"Century Gothic\", 1, 24)); // NOI18N\n jLabel7.setForeground(new java.awt.Color(255, 255, 255));\n jLabel7.setText(\"ADD SUPPLIER\");\n\n jLabel8.setBackground(new java.awt.Color(45, 118, 238));\n jLabel8.setFont(new java.awt.Font(\"Century Gothic\", 1, 24)); // NOI18N\n jLabel8.setForeground(new java.awt.Color(255, 255, 255));\n jLabel8.setText(\"FriendsTek\");\n\n jLabel9.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/GUI/images/icons8_Add_Shopping_Cart_64px_3.png\"))); // NOI18N\n\n jLabel10.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/GUI/images/icons8_Cancel_35px.png\"))); // NOI18N\n jLabel10.setCursor(new java.awt.Cursor(java.awt.Cursor.HAND_CURSOR));\n jLabel10.setDoubleBuffered(true);\n jLabel10.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mousePressed(java.awt.event.MouseEvent evt) {\n jLabel10MousePressed(evt);\n }\n });\n\n jLabel12.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/GUI/images/icons8_Shutdown_35px.png\"))); // NOI18N\n jLabel12.setCursor(new java.awt.Cursor(java.awt.Cursor.HAND_CURSOR));\n jLabel12.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mousePressed(java.awt.event.MouseEvent evt) {\n jLabel12MousePressed(evt);\n }\n });\n\n jLabel1.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/GUI/images/icons8_Back_Arrow_35px.png\"))); // NOI18N\n jLabel1.setCursor(new java.awt.Cursor(java.awt.Cursor.HAND_CURSOR));\n jLabel1.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mousePressed(java.awt.event.MouseEvent evt) {\n jLabel1MousePressed(evt);\n }\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(66, 66, 66)\n .addComponent(jLabel9)\n .addGap(18, 18, 18)\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel7)\n .addComponent(jLabel8))\n .addContainerGap(1018, Short.MAX_VALUE))\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel2Layout.createSequentialGroup()\n .addComponent(jLabel1)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jLabel12)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(jLabel10)\n .addGap(26, 26, 26))\n );\n jPanel2Layout.setVerticalGroup(\n jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel2Layout.createSequentialGroup()\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel10)\n .addComponent(jLabel12)\n .addComponent(jLabel1))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 20, Short.MAX_VALUE)\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(jLabel9)\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addComponent(jLabel8)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jLabel7)))\n .addGap(85, 85, 85))\n );\n\n jPanel3.setBackground(new java.awt.Color(0, 0, 51));\n\n jLabel3.setFont(new java.awt.Font(\"Century Gothic\", 1, 13)); // NOI18N\n jLabel3.setForeground(new java.awt.Color(255, 255, 255));\n jLabel3.setText(\"SUPPLIER ID\");\n\n txtSupId.setBackground(new java.awt.Color(0, 0, 51));\n txtSupId.setForeground(new java.awt.Color(255, 255, 255));\n txtSupId.setBorder(null);\n\n jLabel4.setBackground(new java.awt.Color(45, 118, 238));\n jLabel4.setFont(new java.awt.Font(\"Century Gothic\", 1, 14)); // NOI18N\n jLabel4.setForeground(new java.awt.Color(255, 255, 255));\n jLabel4.setText(\"NAME\");\n\n txtName.setBackground(new java.awt.Color(0, 0, 51));\n txtName.setForeground(new java.awt.Color(255, 255, 255));\n txtName.setBorder(null);\n\n jLabel5.setBackground(new java.awt.Color(45, 118, 238));\n jLabel5.setFont(new java.awt.Font(\"Century Gothic\", 1, 14)); // NOI18N\n jLabel5.setForeground(new java.awt.Color(255, 255, 255));\n jLabel5.setText(\"EMAIL\");\n\n txtEmail.setBackground(new java.awt.Color(0, 0, 51));\n txtEmail.setForeground(new java.awt.Color(255, 255, 255));\n txtEmail.setBorder(null);\n\n jLabel6.setFont(new java.awt.Font(\"Century Gothic\", 1, 14)); // NOI18N\n jLabel6.setForeground(new java.awt.Color(255, 255, 255));\n jLabel6.setText(\"CONTACT NUMBER\");\n\n txtContactNumber.setBackground(new java.awt.Color(0, 0, 51));\n txtContactNumber.setForeground(new java.awt.Color(255, 255, 255));\n txtContactNumber.setBorder(null);\n txtContactNumber.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n txtContactNumberActionPerformed(evt);\n }\n });\n\n btnAddEmp.setBackground(new java.awt.Color(255, 255, 255));\n btnAddEmp.setFont(new java.awt.Font(\"Century Gothic\", 1, 14)); // NOI18N\n btnAddEmp.setForeground(new java.awt.Color(0, 0, 51));\n btnAddEmp.setText(\"ADD\");\n btnAddEmp.setActionCommand(\"Add Employee\");\n btnAddEmp.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btnAddEmpActionPerformed(evt);\n }\n });\n\n rdMr.setBackground(new java.awt.Color(0, 0, 51));\n rdMr.setFont(new java.awt.Font(\"Century Gothic\", 0, 13)); // NOI18N\n rdMr.setForeground(new java.awt.Color(255, 255, 255));\n rdMr.setText(\"Mr\");\n\n rdMrs.setBackground(new java.awt.Color(0, 0, 51));\n rdMrs.setFont(new java.awt.Font(\"Century Gothic\", 0, 13)); // NOI18N\n rdMrs.setForeground(new java.awt.Color(255, 255, 255));\n rdMrs.setText(\"Mrs\");\n\n rdMiss.setBackground(new java.awt.Color(0, 0, 51));\n rdMiss.setFont(new java.awt.Font(\"Century Gothic\", 0, 13)); // NOI18N\n rdMiss.setForeground(new java.awt.Color(255, 255, 255));\n rdMiss.setText(\"Miss\");\n rdMiss.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n rdMissActionPerformed(evt);\n }\n });\n\n reset.setBackground(new java.awt.Color(255, 255, 255));\n reset.setFont(new java.awt.Font(\"Century Gothic\", 1, 14)); // NOI18N\n reset.setForeground(new java.awt.Color(0, 0, 51));\n reset.setText(\"RESET\");\n reset.setActionCommand(\"Add Employee\");\n reset.setCursor(new java.awt.Cursor(java.awt.Cursor.HAND_CURSOR));\n reset.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n resetActionPerformed(evt);\n }\n });\n\n jLabel11.setFont(new java.awt.Font(\"Century Gothic\", 1, 14)); // NOI18N\n jLabel11.setForeground(new java.awt.Color(255, 255, 255));\n jLabel11.setText(\"ITEMS\");\n\n txtItem.setBackground(new java.awt.Color(0, 0, 51));\n txtItem.setForeground(new java.awt.Color(255, 255, 255));\n txtItem.setBorder(null);\n txtItem.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n txtItemActionPerformed(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 .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addGroup(jPanel3Layout.createSequentialGroup()\n .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)\n .addGroup(javax.swing.GroupLayout.Alignment.LEADING, jPanel3Layout.createSequentialGroup()\n .addGap(39, 39, 39)\n .addComponent(jLabel3)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n .addGroup(jPanel3Layout.createSequentialGroup()\n .addGap(40, 40, 40)\n .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel6)\n .addComponent(jLabel5)\n .addComponent(jLabel11))\n .addGap(75, 75, 75)))\n .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(txtEmail, javax.swing.GroupLayout.DEFAULT_SIZE, 288, Short.MAX_VALUE)\n .addComponent(txtSupId)\n .addComponent(jSeparator3))\n .addComponent(jSeparator5, javax.swing.GroupLayout.PREFERRED_SIZE, 288, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(txtItem, javax.swing.GroupLayout.PREFERRED_SIZE, 288, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addGroup(jPanel3Layout.createSequentialGroup()\n .addGap(39, 39, 39)\n .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addGroup(jPanel3Layout.createSequentialGroup()\n .addComponent(jLabel4)\n .addGap(161, 161, 161)\n .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jSeparator2, javax.swing.GroupLayout.PREFERRED_SIZE, 288, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(jSeparator1)\n .addComponent(txtName, javax.swing.GroupLayout.DEFAULT_SIZE, 288, Short.MAX_VALUE))))\n .addGroup(jPanel3Layout.createSequentialGroup()\n .addComponent(btnAddEmp, javax.swing.GroupLayout.PREFERRED_SIZE, 101, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(56, 56, 56)\n .addComponent(reset, javax.swing.GroupLayout.PREFERRED_SIZE, 92, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(19, 19, 19))\n .addComponent(jSeparator4, javax.swing.GroupLayout.PREFERRED_SIZE, 288, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(txtContactNumber, javax.swing.GroupLayout.PREFERRED_SIZE, 288, javax.swing.GroupLayout.PREFERRED_SIZE))))\n .addGap(29, 29, 29)\n .addComponent(rdMr)\n .addGap(27, 27, 27)\n .addComponent(rdMrs)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 33, Short.MAX_VALUE)\n .addComponent(rdMiss)\n .addGap(23, 23, 23))\n );\n jPanel3Layout.setVerticalGroup(\n jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel3Layout.createSequentialGroup()\n .addGap(42, 42, 42)\n .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel3)\n .addComponent(txtSupId, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel3Layout.createSequentialGroup()\n .addGap(7, 7, 7)\n .addComponent(jSeparator1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(26, 26, 26)\n .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel4)\n .addComponent(txtName, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel3Layout.createSequentialGroup()\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(rdMr)\n .addComponent(rdMrs)\n .addComponent(rdMiss))))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jSeparator2, javax.swing.GroupLayout.PREFERRED_SIZE, 10, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(19, 19, 19)\n .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(jLabel5)\n .addComponent(txtEmail, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jSeparator3, javax.swing.GroupLayout.PREFERRED_SIZE, 10, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(14, 14, 14)\n .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(txtContactNumber, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel6))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jSeparator4, javax.swing.GroupLayout.PREFERRED_SIZE, 10, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 11, Short.MAX_VALUE)\n .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel11)\n .addComponent(txtItem, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jSeparator5, javax.swing.GroupLayout.PREFERRED_SIZE, 12, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(30, 30, 30)\n .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(btnAddEmp, javax.swing.GroupLayout.PREFERRED_SIZE, 44, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(reset, javax.swing.GroupLayout.PREFERRED_SIZE, 44, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(40, 40, 40))\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 .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 .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jPanel3, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(252, 252, 252))\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 .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(jPanel3, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addContainerGap(61, Short.MAX_VALUE))\n );\n\n getContentPane().add(jPanel1, new org.netbeans.lib.awtextra.AbsoluteConstraints(0, 0, -1, -1));\n\n pack();\n }", "private void createGroupDialog() {\n AlertDialog.Builder dialog = new AlertDialog.Builder(Objects.requireNonNull(this),\n R.style.AlertDialogTheme);\n dialog.setTitle(R.string.add_new_group_title);\n dialog.setMessage(R.string.add_new_group_description);\n\n View newGroupDialog = getLayoutInflater().inflate(R.layout.new_group_dialog, null);\n dialog.setView(newGroupDialog);\n\n AlertDialog alertDialog = dialog.create();\n setAddGroupButtonListener(alertDialog, newGroupDialog);\n\n alertDialog.show();\n }", "public frmVerzamelingBeheer() {\n try {\n initComponents();\n \n lblId.setVisible(false);\n\n pnlEdit.setVisible(false);\n\n for (VerzamelingsType type : TypeService.GetAllTypes()) {\n cmbType.addItem(new VerzamelingsType(type.getId(), type.getNaam()));\n cmbEditType.addItem(new VerzamelingsType(type.getId(), type.getNaam()));\n }\n\n \n for (Categorie categorie : CategorieService.GetAllCategories()) {\n cmbCategorie.addItem(new Categorie(categorie.getId(), categorie.getNaam()));\n cmbEditCategorie.addItem(new Categorie(categorie.getId(), categorie.getNaam()));\n }\n \n //vertaling voor JOptionpane\n UIManager.put(\"OptionPane.cancelButtonText\", \"Annuleren\");\n UIManager.put(\"OptionPane.noButtonText\", \"Nee\");\n UIManager.put(\"OptionPane.okButtonText\", \"Oke\");\n UIManager.put(\"OptionPane.yesButtonText\", \"Ja\");\n \n this.setTitle(\"Verzamelingen beheren - Verzamelingenbeheer\");\n \n ShowEditItems(false);\n RefreshList();\n }\n catch (ExceptionInInitializerError ex)\n {\n JOptionPane.showMessageDialog(null, \"Er kan geen verbinding worden gemaakt met de database (\" + ex.getMessage() + \").\", \"Fout\", ERROR_MESSAGE);\n System.exit(1);\n }\n\n }", "@RequestMapping(\"/save\")\n\tpublic String createProjectForm(Project project, Model model) {\n\t\t\n\tproRep.save(project);\n\tList<Project> getall = (List<Project>) proRep.getAll();\n\tmodel.addAttribute(\"projects\", getall);\n\t\n\treturn \"listproject\";\n\t\t\n\t}", "public Form(){ \n\t\tsuper(tag(Form.class)); \n\t}", "public void createFieldEditors() {\n\t\taddField(\n\t\t\tnew BooleanFieldEditor(\n\t\t\t\tPreferenceConstants.PRETTY_CML,\n\t\t\t\t\"&Pretty print CML\",\n\t\t\t\tgetFieldEditorParent()));\n\t\tbioclipseLogging = new BooleanFieldEditor(\n\t\t\tPreferenceConstants.BIOCLIPSE_LOGGING,\n\t\t\t\"&Use Bioclipse Logging\",\n\t\t\tgetFieldEditorParent());\n\t\taddField(bioclipseLogging);\n\t}", "public void populateForm(Model model) {\n populateFormats(model);\n }", "private void updateMergedEntry() {\n // Check if the type has changed\n if (!identicalTypes && !typeRadioButtons.isEmpty() && typeRadioButtons.get(0).isSelected()) {\n mergedEntry.setType(leftEntry.getType());\n } else {\n mergedEntry.setType(rightEntry.getType());\n }\n\n // Check the potentially different fields\n for (Field field : differentFields) {\n if (!radioButtons.containsKey(field)) {\n // May happen during initialization -> just ignore\n continue;\n }\n if (radioButtons.get(field).get(LEFT_RADIOBUTTON_INDEX).isSelected()) {\n mergedEntry.setField(field, leftEntry.getField(field).get()); // Will only happen if field exists\n } else if (radioButtons.get(field).get(RIGHT_RADIOBUTTON_INDEX).isSelected()) {\n mergedEntry.setField(field, rightEntry.getField(field).get()); // Will only happen if field exists\n } else {\n mergedEntry.clearField(field);\n }\n }\n }", "@Override\n protected Representation put(Representation entity) throws ResourceException {\n\n int itemId = Integer.parseInt(getAttribute(\"id\"));\n Form form = new Form(entity);\n System.err.println(form);\n //categories\n ArrayList<String> newCategories = new ArrayList<>();\n for (int i=0; i<form.size() ; i++){\n if(form.get(i).getName().contains(\"categories\")){\n System.err.println(form.get(i).getValue());\n newCategories.add(form.get(i).getValue());\n }\n }\n //check the values\n if ( form.getFirstValue(\"userId\") == null || form.getFirstValue(\"userId\").isEmpty()\n ||form.getFirstValue(\"name\") == null || form.getFirstValue(\"name\").equals(\"\")\n ||newCategories.isEmpty()\n ||form.getFirstValue(\"location\") == null || form.getFirstValue(\"location\").equals(\"\")\n ||form.getFirstValue(\"country\") == null || form.getFirstValue(\"country\").equals(\"\")\n ||form.getFirstValue(\"first_bid\") == null\n ||form.getFirstValue(\"end\") == null || form.getFirstValue(\"end\").equals(\"\")\n ||form.getFirstValue(\"description\") == null || form.getFirstValue(\"description\").equals(\"\")\n ){\n System.err.println(form);\n throw new ResourceException(Status.CLIENT_ERROR_BAD_REQUEST, \"missing or empty parameters\");\n }\n\n //extract the values\n long userId = Long.parseLong(form.getFirstValue(\"userId\"));\n String name = form.getFirstValue(\"name\");\n Float buyPrice;\n if(!(form.getFirstValue(\"buy_price\") == null || form.getFirstValue(\"buy_price\").isEmpty()))\n buyPrice = Float.parseFloat(form.getFirstValue(\"buy_price\"));\n else\n buyPrice = null;\n float firstBid = Float.parseFloat(form.getFirstValue(\"first_bid\"));\n String location = form.getFirstValue(\"location\");\n Double latitude = null;\n Double longitude = null;\n String country = form.getFirstValue(\"country\");\n DateTimeFormatter myFormatObj = DateTimeFormatter.ofPattern(\"yyyy-MM-dd HH:mm:ss\");\n String end = LocalDateTime.parse(form.getFirstValue(\"end\")).format(myFormatObj).toString();//end time\n String description = form.getFirstValue(\"description\");\n\n if(form.getFirstValue(\"latitude\") == null || form.getFirstValue(\"latitude\").equals(\"\")\n ||form.getFirstValue(\"longitude\") == null || form.getFirstValue(\"longitude\").equals(\"\")){\n System.err.println(\"coordinates are not given.\");\n }\n else{\n latitude = Double.parseDouble(form.getFirstValue(\"latitude\"));\n longitude = Double.parseDouble(form.getFirstValue(\"longitude\"));\n }\n\n Item item;\n\n try{\n Optional<Item> itemOptional = itemDAO.getItemById(itemId);\n if(!itemOptional.isPresent()){\n throw new ResourceException(Status.CLIENT_ERROR_BAD_REQUEST, \"Item does not exist\");\n }\n item = itemOptional.get();\n if(!item.isRunning()){\n throw new ResourceException(Status.CLIENT_ERROR_EXPECTATION_FAILED, \"Auction is closed\");\n }\n if(item.getNumberOfBids()>0){\n throw new ResourceException(Status.CLIENT_ERROR_EXPECTATION_FAILED, \"Auction has bids and cannot be edited\");\n }\n\n item.setName(name);\n item.setBuyPrice(buyPrice);\n item.setFirstBid(firstBid);\n item.setCurrentBid(firstBid);\n item.setLocationName(location);\n item.setLatitude(latitude);\n item.setLongitude(longitude);\n item.setCountry(country);\n item.setEnd(end);\n item.setDescription(description);\n\n itemDAO.updateItem(item);\n\n List<String> oldCategories = item.getCategories();\n for (String c: oldCategories) {\n if(!newCategories.contains(c)){\n itemDAO.removeCategoryFromItem(item, c);\n }\n }\n for (String c: newCategories) {\n if(!oldCategories.contains(c)){\n itemDAO.addCategoryToItem(item, c);\n }\n }\n item.setCategories(newCategories);\n }\n catch (DataAccessException e){\n throw new ResourceException(Status.SERVER_ERROR_INTERNAL, \"item update in database failed\");\n }\n\n Map<String,Object> map = new HashMap<>();\n map.put(\"item\", item);\n\n return new JsonMapRepresentation(map);\n }", "Builder addContributor(Person.Builder value);", "public Dialog onCreateDialog(Bundle savedInstanceState) {\n AlertDialog.Builder builder = new AlertDialog.Builder(getActivity());\n LayoutInflater inflater = getActivity().getLayoutInflater();\n\n View layout = inflater.inflate(R.layout.add_item_layout, null);\n\n builder.setView(layout)\n .setPositiveButton(\"Add\", new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n int price = (int) (Float.parseFloat(((EditText)layout.findViewById(R.id.price)).getText().toString())*100);\n Group g = Group.getCurrentGroup();\n for(int i = 0; i < Integer.parseInt(((EditText) layout.findViewById(R.id.quantity)).getText().toString()); i++) {\n g.addItem(\n new Item(\n ((EditText)layout.findViewById(R.id.item_name)).getText().toString(),\n price\n )\n );\n }\n getDialog().dismiss();\n }\n })\n .setNegativeButton(\"Cancel\", new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n getDialog().dismiss();\n }\n })\n .setTitle(\"Add Items\");\n // Create the AlertDialog object and return it\n return builder.create();\n }", "public ModelAndView populateAndGetFormView(Game entity, Model model) {\n // Populate the form with all the necessary elements\n populateForm(model);\n // Add concurrency attribute to the model to show the concurrency form\n // in the current edit view\n model.addAttribute(\"concurrency\", true);\n // Add the new version value to the model.\n model.addAttribute(\"newVersion\", getLastVersion(entity));\n // Add the current pet values to maintain the values introduced by the user\n model.addAttribute(getModelName(), entity);\n // Return the edit view path\n return new org.springframework.web.servlet.ModelAndView(getEditViewPath(), model.asMap());\n }", "@RequestMapping(method = RequestMethod.GET)\n \tpublic String createForm(Model model, ForgotLoginForm form) {\n \t\tmodel.addAttribute(\"form\", form);\n \t\treturn \"forgotlogin/index\";\n \t}", "private void createForumDialog() {\n AlertDialog.Builder dialog = new AlertDialog.Builder(Objects.requireNonNull(this),\n R.style.AlertDialogTheme);\n dialog.setTitle(R.string.add_new_forum_title);\n dialog.setMessage(R.string.add_new_forum_description);\n\n View newForumDialog = getLayoutInflater().inflate(R.layout.new_forum_dialog, null);\n dialog.setView(newForumDialog);\n\n AlertDialog alertDialog = dialog.create();\n setAddForumButtonListener(alertDialog, newForumDialog);\n\n alertDialog.show();\n }", "Builder addEditor(Person value);", "@PostMapping( value = \"/new\", params = \"auto\" )\n public String createEventFormAutoPopulate( @ModelAttribute CreateEventForm createEventForm )\n {\n // provide default values to make user submission easier\n createEventForm.setSummary( \"A new event....\" );\n createEventForm.setDescription( \"This was autopopulated to save time creating a valid event.\" );\n createEventForm.setWhen( new Date() );\n\n // make the attendee not the current user\n CalendarUser currentUser = userContext.getCurrentUser();\n int attendeeId = currentUser.getId() == 0 ? 1 : 0;\n CalendarUser attendee = calendarService.getUser( attendeeId );\n createEventForm.setAttendeeEmail( attendee.getEmail() );\n\n return \"events/create\";\n }", "Builder addCreator(Person.Builder value);", "@RequestMapping(\"/recipe/new\")\n public String newRecipe(Model model){\n model.addAttribute(\"recipe\", new RecipeCommand());\n \n return \"recipe/recipeForm\";\n }", "public void createFieldEditors() {\n\t\taddField(new BooleanFieldEditor(SUAEntityPreferenceConstants.FILTER_DIFFS,\n\t\t\t\t\"Filter &Diff on startup\", getFieldEditorParent()));\n\n\t\taddField(new BooleanFieldEditor(SUAEntityPreferenceConstants.FILTER_DIFFS,\n\t\t\t\t\"Filter D&oclocs on startup\", getFieldEditorParent()));\n\n\t\taddField(new BooleanFieldEditor(SUAEntityPreferenceConstants.FILTER_DIFFS,\n\t\t\t\t\"Filter &Survey on startup\", getFieldEditorParent()));\n\t}", "void fillEditTransactionForm(Transaction transaction);", "public Result addNewRoomType() {\n\n DynamicForm dynamicform = Form.form().bindFromRequest();\n if (dynamicform.get(\"AdminAddRoom\") != null) {\n\n return ok(views.html.AddRoomType.render());\n }\n\n\n return ok(\"Something went wrong\");\n }", "public PromotionForm(PromotionView promotionView, BookingRepository bookingRepo) {\n\t\tthis.promotionView = promotionView;\n\n\t\tselect.setLeftColumnCaption(\"Available options\");\n\t\tselect.setRightColumnCaption(\"Selected options\");\n\n\t\tbinder.bind(description, Promotion::getDescription, Promotion::setDescription);\n\t\tbinder.bind(type, Promotion::getType, Promotion::setType);\n\t\tbinder.bind(discount, Promotion::getDiscount, Promotion::setDiscount);\n\t\tbinder.bind(customer_quota, Promotion::getCustomer_quota, Promotion::setCustomer_quota);\n\t\tbinder.bind(overall_quota, Promotion::getOverall_quota, Promotion::setOverall_quota);\n\n\t\t//Get relevant tour offering ids\n\t\tList<Booking> bookings = bookingRepo.findAll();\n\t\tList<String> bookingIds = new ArrayList<>();\n\t\tfor(Booking booking: bookings) {\n\t\t\tbookingIds.add(booking.getBooking_id());\n\t\t}\n\t\tselect.setItems(bookingIds);\n\n\t\t// Few items, so we can set rows to match item count\n\t\tselect.setRows(5);\n\n\t\tsetSizeUndefined();\n\t\tHorizontalLayout buttons = new HorizontalLayout(save, close);\n\t\tHorizontalLayout row1 = new HorizontalLayout(description, type, discount);\n\t\tdescription.setSizeFull();\n\t\tHorizontalLayout row2 = new HorizontalLayout(deadline, customer_quota,\n\t\t\t\toverall_quota);\n\n\t\taddComponents(row1, row2, select,buttons);\n\n\t\tsave.setStyleName(ValoTheme.BUTTON_PRIMARY);\n\t\tsave.setClickShortcut(KeyCode.ENTER);\n\n\t\tsave.addClickListener(e -> save());\n\t\tclose.addClickListener(e -> setVisible(false));\n\n\t}", "@Override\n\tpublic Oglas createNewOglas(NewOglasForm oglasForm) {\n\t\tSimpleDateFormat formatter = new SimpleDateFormat(\"yyyy-MM-dd\");\n\t\t\n\t\tOglas oglas = new Oglas();\n\t\tSystem.out.println(oglas.getId());\n\t\toglas.setNaziv(oglasForm.getNaziv());\n\t\toglas.setOpis(oglasForm.getOpis());\n\t\ttry {\n\t\t\toglas.setDatum(formatter.parse(oglasForm.getDatum()));\n\t\t\tSystem.out.println(oglas.getDatum());\n System.out.println(formatter.format(oglas.getDatum()));\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\t\n\t\treturn repository.save(oglas);\n\t}", "@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 StatusjComboBox = new javax.swing.JComboBox();\n lastNamejLabel = new javax.swing.JLabel();\n firstNamejLabel = new javax.swing.JLabel();\n biojLabel = new javax.swing.JLabel();\n picturejLabel = new javax.swing.JLabel();\n notesjLabel = new javax.swing.JLabel();\n lastNamejTextField = new javax.swing.JTextField();\n firstNamejTextField = new javax.swing.JTextField();\n biojScrollPane = new javax.swing.JScrollPane();\n biojTextArea = new javax.swing.JTextArea();\n notesjScrollPane = new javax.swing.JScrollPane();\n notesjTextArea = new javax.swing.JTextArea();\n imagejLabel = new javax.swing.JLabel();\n addjButton = new javax.swing.JButton();\n canceljButton = new javax.swing.JButton();\n BrowsejButton = new javax.swing.JButton();\n jLabel1 = new javax.swing.JLabel();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);\n setTitle(\"Ajouter un auteur\");\n\n jPanel1.setToolTipText(\"\");\n\n StatusjComboBox.setModel(initModelStatus());\n\n lastNamejLabel.setText(\"Nom* :\");\n\n firstNamejLabel.setText(\"Prénom* :\");\n\n biojLabel.setText(\"Biographie :\");\n\n picturejLabel.setText(\"Image :\");\n\n notesjLabel.setText(\"Commentaires :\");\n\n biojTextArea.setColumns(20);\n biojTextArea.setLineWrap(true);\n biojTextArea.setRows(5);\n biojTextArea.setWrapStyleWord(true);\n biojScrollPane.setViewportView(biojTextArea);\n\n notesjTextArea.setColumns(20);\n notesjTextArea.setLineWrap(true);\n notesjTextArea.setRows(5);\n notesjTextArea.setWrapStyleWord(true);\n notesjScrollPane.setViewportView(notesjTextArea);\n\n imagejLabel.setBackground(new java.awt.Color(255, 255, 255));\n\n addjButton.setText(\"Ajouter\");\n addjButton.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n addjButtonActionPerformed(evt);\n }\n });\n\n canceljButton.setText(\"Annuler\");\n canceljButton.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n canceljButtonActionPerformed(evt);\n }\n });\n\n BrowsejButton.setText(\"Parcourir\");\n BrowsejButton.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n BrowsejButtonActionPerformed(evt);\n }\n });\n\n jLabel1.setText(\"* Champs obligatoires\");\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(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addComponent(addjButton)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(canceljButton))\n .addComponent(StatusjComboBox, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.PREFERRED_SIZE, 416, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGroup(javax.swing.GroupLayout.Alignment.LEADING, jPanel1Layout.createSequentialGroup()\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(lastNamejLabel)\n .addComponent(firstNamejLabel)\n .addComponent(biojLabel))\n .addGap(41, 41, 41)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(lastNamejTextField)\n .addComponent(firstNamejTextField)\n .addComponent(biojScrollPane))))\n .addContainerGap(50, Short.MAX_VALUE))\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(notesjLabel)\n .addComponent(picturejLabel))\n .addGap(18, 18, 18)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addComponent(BrowsejButton)\n .addGap(18, 18, 18)\n .addComponent(imagejLabel, javax.swing.GroupLayout.PREFERRED_SIZE, 206, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addComponent(notesjScrollPane, javax.swing.GroupLayout.PREFERRED_SIZE, 308, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addComponent(jLabel1)))\n );\n jPanel1Layout.setVerticalGroup(\n jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGap(20, 20, 20)\n .addComponent(StatusjComboBox, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(18, 18, 18)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(lastNamejLabel)\n .addComponent(lastNamejTextField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(18, 18, 18)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(firstNamejLabel)\n .addComponent(firstNamejTextField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(18, 18, 18)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(biojLabel)\n .addComponent(biojScrollPane, javax.swing.GroupLayout.PREFERRED_SIZE, 200, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(18, 18, 18)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(notesjScrollPane, javax.swing.GroupLayout.PREFERRED_SIZE, 100, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(notesjLabel))\n .addGap(18, 18, 18)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(BrowsejButton)\n .addComponent(picturejLabel)\n .addComponent(imagejLabel, javax.swing.GroupLayout.PREFERRED_SIZE, 206, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jLabel1)\n .addGap(18, 18, 18)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(addjButton)\n .addComponent(canceljButton, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n .addGap(20, 20, 20))\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 .addContainerGap(50, Short.MAX_VALUE)\n .addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addContainerGap())\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 }", "public void createFieldEditors() {\n\t\t\n\t\tList<String> listOfValues = PreferenceOptions.GetTreeEditorFeatureOptions();\n\t\tint count = listOfValues.size();\n\t\tpreviously = Activator.getDefault().getPreferenceStore().getString(PreferenceOptions.FeatureEditor_CHOICE);\t\t\n\t\t\n\t\tString[][] labelAndvalues = new String[count][2];\n\t\tfor (int i = 0; i < count; i++)\n\t\t\tfor (int j = 0; j < 2; j++) \n\t\t\t\tlabelAndvalues[i][j] = listOfValues.get(i);\t\t\t\n\t\t\n\t\taddField(new RadioGroupFieldEditor(\n\t\t\t\tPreferenceOptions.FeatureEditor_CHOICE,\n\t\t\t\t\"Tree Editor Feature Wizard\",\n\t\t\t\t1,\n\t\t\t\tlabelAndvalues, \n\t\t\t\tgetFieldEditorParent()));\t\n\n\t\t/*Select the Engine to execute constraint*/\n\t\t\n\t\tList<String> listOfEngines = PreferenceOptions.getEngineOptions();\n\t\tint countEngines = listOfEngines.size();\t\t\n\t\t\n\t\tif (listOfEngines.size() != 0) {\n\t\t\t\n\t\t\tpreviouslyEngine = Activator.getDefault().getPreferenceStore().getString(PreferenceOptions.ENGINE_CHOICE);\n\t\t\t\n\t\t\tString[][] labelAndvaluesEngine = new String[countEngines][2];\n\t\t\tfor (int i = 0; i < countEngines; i++)\n\t\t\t\tfor (int j = 0; j < 2; j++) \n\t\t\t\t\tlabelAndvaluesEngine[i][j] = listOfEngines.get(i);\n\t\t\t\t\n\t\t\taddField(new RadioGroupFieldEditor(\n\t\t\t\t\tPreferenceOptions.ENGINE_CHOICE,\n\t\t\t\t\t\"Engine for the execution of constraints\",\n\t\t\t\t\t1,\n\t\t\t\t\tlabelAndvaluesEngine, \n\t\t\t\t\tgetFieldEditorParent()));\t\t\t\n\t\t}\t\n\t}", "public void performTambah() {\n\n dialogEntry.postInit();\n dialogEntry.clearFields();\n dialogEntry.setRowToBeEdited(-1);\n //dialogEntry.clearFields ();\n dialogEntry.show(true); // -- modal dialog ya, jd harus menunggu..\n //if (isDirty()) {\n loadTable();\n // TODO : select last item added\n //}\n }", "public newRelationship() {\n initComponents();\n }", "@Override\r\n public Dialog onCreateDialog(Bundle savedInstanceState) {\r\n //use the builder class for convenient dialog construction\r\n AlertDialog.Builder builder = new AlertDialog.Builder(getActivity());\r\n //get the layout inflater\r\n LayoutInflater inflater = getActivity().getLayoutInflater();\r\n View rootView = inflater.inflate(R.layout.dialog_room, null);\r\n mRoomNumber = rootView.findViewById(R.id.roomNumberEditText);\r\n mAllergy = rootView.findViewById(R.id.allergyEditText);\r\n mPlateType = rootView.findViewById(R.id.plateTypeEditText);\r\n mChemicalDiet = rootView.findViewById(R.id.chemicalDietEditText);\r\n mTextureDiet = rootView.findViewById(R.id.textureDietEditText);\r\n mLiquidDiet = rootView.findViewById(R.id.liquidDietEditText);\r\n mLikes = rootView.findViewById(R.id.likesEditText);\r\n mDislikes = rootView.findViewById(R.id.dislikesEditText);\r\n mNotes = rootView.findViewById(R.id.notesEditText);\r\n mMeal = rootView.findViewById(R.id.mealEditText);\r\n mDessert = rootView.findViewById(R.id.dessertEditText);\r\n mBeverage = rootView.findViewById(R.id.beverageEditText);\r\n\r\n mBeverage.setOnEditorActionListener(new TextView.OnEditorActionListener() {\r\n @Override\r\n public boolean onEditorAction(TextView textView, int i, KeyEvent keyEvent) {\r\n if (i == EditorInfo.IME_ACTION_DONE || keyEvent.getAction() == KeyEvent.ACTION_DOWN){\r\n addRoom();\r\n }\r\n return true;\r\n }\r\n });\r\n\r\n //inflate and set the layout for the dialog\r\n //pass null as the parent view cause its going in the dialog layout.\r\n builder.setView(rootView).setPositiveButton(R.string.button_done, new DialogInterface.OnClickListener() {\r\n @Override\r\n public void onClick(DialogInterface dialogInterface, int i) {\r\n addRoom();\r\n }\r\n });\r\n\r\n return builder.create();\r\n }", "private void formFiller(FormLayout fl)\n\t{\n fl.setSizeFull();\n\n\t\ttf0=new TextField(\"Name\");\n\t\ttf0.setRequired(true);\n\t\t\n sf1 = new Select (\"Customer\");\n try \n {\n\t\t\tfor(String st :db.selectAllCustomers())\n\t\t\t{\n\t\t\t\tsf1.addItem(st);\n\t\t\t}\n\t\t} \n \tcatch (UnsupportedOperationException | SQLException e) \n \t{\n \t\tErrorWindow wind = new ErrorWindow(e); \n\t UI.getCurrent().addWindow(wind);\n \t\te.printStackTrace();\n \t}\n sf1.setRequired(true);\n \n sf2 = new Select (\"Project Type\");\n sf2.addItem(\"In house\");\n sf2.addItem(\"Outsourcing\");\n df3=new DateField(\"Start Date\");\n df3.setDateFormat(\"d-M-y\");\n df3.setRequired(true);\n \n df4=new DateField(\"End Date\");\n df4.setDateFormat(\"d-M-y\");\n \n df4.setRangeStart(df3.getValue());\n \n df5=new DateField(\"Next DeadLine\");\n df5.setDateFormat(\"d-M-y\");\n df5.setRangeStart(df3.getValue());\n df5.setRangeEnd(df4.getValue());\n sf6 = new Select (\"Active\");\n sf6.addItem(\"yes\");\n sf6.addItem(\"no\");\n sf6.setRequired(true);\n \n tf7=new TextField(\"Budget(mandays)\");\n \n tf8=new TextArea(\"Description\");\n \n tf9=new TextField(\"Inserted By\");\n \n tf10=new TextField(\"Inserted At\");\n \n tf11=new TextField(\"Modified By\");\n \n tf12=new TextField(\"Modified At\");\n \n if( project.getName()!=null)tf0.setValue(project.getName());\n else tf0.setValue(\"\");\n\t\tif(!editable)tf0.setReadOnly(true);\n fl.addComponent(tf0, 0);\n \n\n if(project.getCustomerID()!=-1)\n\t\t\ttry \n \t{\n\t\t\t\tsf1.setValue(db.selectCustomerforId(project.getCustomerID()));\n\t\t\t}\n \tcatch (ReadOnlyException | SQLException e) \n \t{\n \t\tErrorWindow wind = new ErrorWindow(e); \n\t\t UI.getCurrent().addWindow(wind);\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\telse sf1.setValue(\"\");\n if(!editable)sf1.setReadOnly(true);\n fl.addComponent(sf1, 1);\n \n \n if(project.getProjectType()!=null)sf2.setValue(project.getProjectType());\n else sf2.setValue(\"\");\n if(!editable)sf2.setReadOnly(true);\n fl.addComponent(sf2, 2);\n \n if(project.getStartDate()!=null) df3.setValue(project.getStartDate());\n if(!editable)df3.setReadOnly(true);\n fl.addComponent(df3, 3);\n \n if(project.getEndDate()!=null) df4.setValue(project.getEndDate());\n if(!editable)df4.setReadOnly(true);\n fl.addComponent(df4, 4);\n \n if(project.getNextDeadline()!=null)df5.setValue(project.getNextDeadline());\n if(!editable)df5.setReadOnly(true);\n fl.addComponent(df5, 5);\n \n if (project.isActive())sf6.setValue(\"yes\");\n else sf6.setValue(\"no\");\n if(!editable)sf6.setReadOnly(true);\n fl.addComponent(sf6, 6);\n \n if(project.getBudget()!=-1.0) tf7.setValue(String.valueOf(project.getBudget()));\n else tf7.setValue(\"\");\n if(!editable)tf7.setReadOnly(true);\n fl.addComponent(tf7, 7);\n \n if(project.getDescription()!=null)tf8.setValue(project.getDescription());\n else tf8.setValue(\"\");\n if(!editable)tf8.setReadOnly(true);\n fl.addComponent(tf8, 8);\n \n if(project.getInserted_by()!=null)tf9.setValue(project.getInserted_by());\n else tf9.setValue(\"\");\n tf9.setEnabled(false);\n fl.addComponent(tf9, 9);\n \n if(project.getInserted_at()!=null)tf10.setValue(project.getInserted_at().toString());\n else tf10.setValue(\"\");\n tf10.setEnabled(false);\n fl.addComponent(tf10, 10);\n \n if(project.getModified_by()!=null)tf11.setValue(project.getModified_by());\n else tf11.setValue(\"\");\n tf11.setEnabled(false);\n fl.addComponent(tf11, 11);\n \n if(project.getModified_at()!=null)tf12.setValue(project.getModified_at().toString());\n else tf12.setValue(\"\");\n tf12.setEnabled(false);\n fl.addComponent(tf12, 12);\n \n \n\t}", "private void addOrUpdate() {\n try {\n Stokdigudang s = new Stokdigudang();\n if (!tableStok.getSelectionModel().isSelectionEmpty()) {\n s.setIDBarang(listStok.get(row).getIDBarang());\n }\n s.setNamaBarang(tfNama.getText());\n s.setHarga(new Integer(tfHarga.getText()));\n s.setStok((int) spJumlah.getValue());\n s.setBrand(tfBrand.getText());\n s.setIDKategori((Kategorimotor) cbKategori.getSelectedItem());\n s.setIDSupplier((Supplier) cbSupplier.getSelectedItem());\n s.setTanggalDidapat(dateChooser.getDate());\n\n daoStok.addOrUpdateStok(s);\n JOptionPane.showMessageDialog(this, \"Data berhasil disimpan!\");\n showAllDataStok();\n } catch (Exception e) {\n JOptionPane.showMessageDialog(this, \"Data gagal disimpan!\");\n }\n }", "@Override\n public Dialog onCreateDialog(Bundle savedInstanceState) {\n AlertDialog.Builder builder = new AlertDialog.Builder(getActivity());\n\n builder.setTitle(\"Add Participant...\");\n builder.setMessage(\"Participant address:\");\n\n final EditText input = new EditText(getActivity());\n LinearLayout.LayoutParams lp = new LinearLayout.LayoutParams(\n LinearLayout.LayoutParams.MATCH_PARENT,\n LinearLayout.LayoutParams.MATCH_PARENT);\n input.setLayoutParams(lp);\n builder.setView(input); // uncomment this line\n\n\n builder.setPositiveButton(\"Add\", new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n mListener.onAddUserDialogAdd(input.getText().toString());\n }\n })\n .setNegativeButton(\"Cancel\", new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n mListener.onAddUserDialogCancel();\n }\n });\n // Create the AlertDialog object and return it\n return builder.create();\n }", "@Override\r\n\tprotected void agregarObjeto() {\r\n\t\t// opcion 1 es agregar nuevo justificativo\r\n\t\tthis.setTitle(\"PROCESOS - PERMISOS INDIVIDUALES (AGREGANDO)\");\r\n\t\tthis.opcion = 1;\r\n\t\tactivarFormulario();\r\n\t\tlimpiarTabla();\r\n\t\tthis.panelBotones.habilitar();\r\n\t}", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n jPanel2 = new javax.swing.JPanel();\n btnVolver = new javax.swing.JButton();\n jLabel1 = new javax.swing.JLabel();\n cmbRegiones = new javax.swing.JComboBox<>();\n jLabel2 = new javax.swing.JLabel();\n txtInfectados = new javax.swing.JTextField();\n jLabel3 = new javax.swing.JLabel();\n txtFecha = new javax.swing.JTextField();\n btnAddIncidencia = new javax.swing.JButton();\n jLabel4 = new javax.swing.JLabel();\n txtFallecidos = new javax.swing.JTextField();\n jLabel5 = new javax.swing.JLabel();\n txtAlta = new javax.swing.JTextField();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n setTitle(\"Añadir Incidencias\");\n setSize(new java.awt.Dimension(761, 516));\n addWindowListener(new java.awt.event.WindowAdapter() {\n public void windowOpened(java.awt.event.WindowEvent evt) {\n formWindowOpened(evt);\n }\n });\n\n jPanel2.setBackground(new java.awt.Color(255, 255, 255));\n\n btnVolver.setText(\"Volver\");\n btnVolver.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btnVolverActionPerformed(evt);\n }\n });\n\n jLabel1.setText(\"Region\");\n\n jLabel2.setText(\"Infectados\");\n\n jLabel3.setText(\"Fecha de infección\");\n\n txtFecha.setToolTipText(\"yyyy-mm-dd\");\n\n btnAddIncidencia.setText(\"Añadir incidencia\");\n btnAddIncidencia.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btnAddIncidenciaActionPerformed(evt);\n }\n });\n\n jLabel4.setText(\"Fallecidos\");\n\n jLabel5.setText(\"Dados de alta\");\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 .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addGap(332, 332, 332)\n .addComponent(btnVolver))\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addGap(301, 301, 301)\n .addComponent(btnAddIncidencia)))\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel2Layout.createSequentialGroup()\n .addContainerGap(14, Short.MAX_VALUE)\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel3, javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(jLabel1, javax.swing.GroupLayout.Alignment.TRAILING))\n .addGap(18, 18, 18)\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(cmbRegiones, 0, 175, Short.MAX_VALUE)\n .addComponent(txtFecha))\n .addGap(61, 61, 61)\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel2Layout.createSequentialGroup()\n .addComponent(jLabel5)\n .addGap(18, 18, 18)\n .addComponent(txtAlta, javax.swing.GroupLayout.PREFERRED_SIZE, 230, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel2Layout.createSequentialGroup()\n .addComponent(jLabel4)\n .addGap(18, 18, 18)\n .addComponent(txtFallecidos, javax.swing.GroupLayout.PREFERRED_SIZE, 230, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel2Layout.createSequentialGroup()\n .addComponent(jLabel2)\n .addGap(18, 18, 18)\n .addComponent(txtInfectados, javax.swing.GroupLayout.PREFERRED_SIZE, 230, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addGap(29, 29, 29))\n );\n jPanel2Layout.setVerticalGroup(\n jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel2Layout.createSequentialGroup()\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel2)\n .addComponent(txtInfectados, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel4)\n .addComponent(txtFallecidos, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel5)\n .addComponent(txtAlta, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addGap(26, 26, 26)\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel1)\n .addComponent(cmbRegiones, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel3)\n .addComponent(txtFecha, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))))\n .addGap(78, 78, 78)\n .addComponent(btnAddIncidencia)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(btnVolver)\n .addContainerGap(24, 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(jPanel2, 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(jPanel2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n );\n\n pack();\n setLocationRelativeTo(null);\n }" ]
[ "0.6048309", "0.5702663", "0.56618047", "0.53282046", "0.53083545", "0.529948", "0.5268724", "0.52008194", "0.51964176", "0.518635", "0.50581443", "0.5057707", "0.5054142", "0.50462765", "0.5041847", "0.5019946", "0.49976707", "0.49964312", "0.49916437", "0.4976602", "0.49637756", "0.49617857", "0.49616805", "0.49515012", "0.49508217", "0.49245822", "0.49095836", "0.49077806", "0.48962998", "0.48728767", "0.48700702", "0.48656642", "0.48578724", "0.483193", "0.4801309", "0.47966218", "0.47929227", "0.47918537", "0.47906137", "0.47715026", "0.47648025", "0.4764447", "0.476139", "0.47540265", "0.4749486", "0.47443095", "0.47440273", "0.47438186", "0.47362867", "0.47331053", "0.4724459", "0.4723911", "0.47197464", "0.47162223", "0.47149372", "0.47083697", "0.47074723", "0.46841776", "0.46787876", "0.46748802", "0.46727714", "0.46597037", "0.4656937", "0.46558416", "0.46510607", "0.46468186", "0.4644245", "0.4634305", "0.46325165", "0.46274406", "0.4618097", "0.46117544", "0.46105278", "0.46095362", "0.46094358", "0.4609185", "0.4609156", "0.460379", "0.45976907", "0.45965987", "0.45943433", "0.4592907", "0.45928913", "0.4591632", "0.4591417", "0.45881465", "0.45881334", "0.45863244", "0.4582987", "0.45809883", "0.4576274", "0.4572743", "0.45651007", "0.45634633", "0.4562291", "0.45620713", "0.45609477", "0.45582318", "0.4557655", "0.45544755" ]
0.6463908
0
This method is called from within the constructor to initialize the form. WARNING: Do NOT modify this code. The content of this method is always regenerated by the Form Editor.
@SuppressWarnings("unchecked") // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents private void initComponents() { jPanel1 = new javax.swing.JPanel(); jLabel1 = new javax.swing.JLabel(); jLabel2 = new javax.swing.JLabel(); jRadioButton1 = new javax.swing.JRadioButton(); jRadioButton2 = new javax.swing.JRadioButton(); jLabel3 = new javax.swing.JLabel(); jTextField1 = new javax.swing.JTextField(); jComboBox1 = new javax.swing.JComboBox<>(); jButton1 = new javax.swing.JButton(); jButton2 = new javax.swing.JButton(); jScrollPane1 = new javax.swing.JScrollPane(); jTable1 = new javax.swing.JTable(); setClosable(true); setTitle("Cats and Merits"); addInternalFrameListener(new javax.swing.event.InternalFrameListener() { public void internalFrameActivated(javax.swing.event.InternalFrameEvent evt) { } public void internalFrameClosed(javax.swing.event.InternalFrameEvent evt) { } public void internalFrameClosing(javax.swing.event.InternalFrameEvent evt) { } public void internalFrameDeactivated(javax.swing.event.InternalFrameEvent evt) { } public void internalFrameDeiconified(javax.swing.event.InternalFrameEvent evt) { } public void internalFrameIconified(javax.swing.event.InternalFrameEvent evt) { } public void internalFrameOpened(javax.swing.event.InternalFrameEvent evt) { formInternalFrameOpened(evt); } }); jPanel1.setBorder(javax.swing.BorderFactory.createTitledBorder("")); jLabel1.setText("Merit Name"); jLabel2.setText("Used in End of Term"); jRadioButton1.setText("Yes"); jRadioButton2.setText("No"); jLabel3.setText("Merit Type"); jComboBox1.setModel(new javax.swing.DefaultComboBoxModel<>(new String[] { "Choose Merit", "Merit 1", "Merit 2", "Merit 3", "Cat 1", "Cat 2", "Cat 3", "Divisional", "Mock" })); javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1); jPanel1.setLayout(jPanel1Layout); jPanel1Layout.setHorizontalGroup( jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel1Layout.createSequentialGroup() .addContainerGap() .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel1Layout.createSequentialGroup() .addComponent(jLabel2) .addGap(18, 18, 18) .addComponent(jRadioButton1) .addGap(18, 18, 18) .addComponent(jRadioButton2)) .addGroup(jPanel1Layout.createSequentialGroup() .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false) .addComponent(jLabel3, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(jLabel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)) .addGap(18, 18, 18) .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jComboBox1, 0, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(jTextField1, javax.swing.GroupLayout.DEFAULT_SIZE, 323, Short.MAX_VALUE)))) .addContainerGap()) ); jPanel1Layout.setVerticalGroup( jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel1Layout.createSequentialGroup() .addContainerGap() .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jLabel1) .addComponent(jTextField1, javax.swing.GroupLayout.PREFERRED_SIZE, 25, javax.swing.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jLabel3) .addComponent(jComboBox1, javax.swing.GroupLayout.PREFERRED_SIZE, 25, javax.swing.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jLabel2) .addComponent(jRadioButton1) .addComponent(jRadioButton2)) .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)) ); jButton1.setText("SAVE"); jButton1.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jButton1ActionPerformed(evt); } }); jButton2.setText("CANCEL"); jTable1.setModel(new javax.swing.table.DefaultTableModel( new Object [][] { {null, null, null, null}, {null, null, null, null}, {null, null, null, null}, {null, null, null, null} }, new String [] { "Merit Name", "Merit Type", "End Term" } )); jScrollPane1.setViewportView(jTable1); javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane()); getContentPane().setLayout(layout); layout.setHorizontalGroup( layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(layout.createSequentialGroup() .addContainerGap() .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(layout.createSequentialGroup() .addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addGap(0, 0, Short.MAX_VALUE)) .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 0, Short.MAX_VALUE) .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup() .addGap(0, 0, Short.MAX_VALUE) .addComponent(jButton2, javax.swing.GroupLayout.PREFERRED_SIZE, 100, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(jButton1, javax.swing.GroupLayout.PREFERRED_SIZE, 100, javax.swing.GroupLayout.PREFERRED_SIZE))) .addContainerGap()) ); layout.setVerticalGroup( layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(layout.createSequentialGroup() .addContainerGap() .addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jButton1, javax.swing.GroupLayout.PREFERRED_SIZE, 30, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jButton2, javax.swing.GroupLayout.PREFERRED_SIZE, 30, javax.swing.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 173, javax.swing.GroupLayout.PREFERRED_SIZE) .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)) ); pack(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Form() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n }", "public frmRectangulo() {\n initComponents();\n }", "public form() {\n initComponents();\n }", "public AdjointForm() {\n initComponents();\n setDefaultCloseOperation(HIDE_ON_CLOSE);\n }", "public FormListRemarking() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n \n }", "public FormPemilihan() {\n initComponents();\n }", "public GUIForm() { \n initComponents();\n }", "public FrameForm() {\n initComponents();\n }", "public TorneoForm() {\n initComponents();\n }", "public FormCompra() {\n initComponents();\n }", "public muveletek() {\n initComponents();\n }", "public Interfax_D() {\n initComponents();\n }", "public quanlixe_form() {\n initComponents();\n }", "public SettingsForm() {\n initComponents();\n }", "public RegistrationForm() {\n initComponents();\n this.setLocationRelativeTo(null);\n }", "public Soru1() {\n initComponents();\n }", "public FMainForm() {\n initComponents();\n this.setResizable(false);\n setLocationRelativeTo(null);\n }", "public soal2GUI() {\n initComponents();\n }", "public EindopdrachtGUI() {\n initComponents();\n }", "public MechanicForm() {\n initComponents();\n }", "public AddDocumentLineForm(java.awt.Frame parent) {\n super(parent);\n initComponents();\n myInit();\n }", "public quotaGUI() {\n initComponents();\n }", "public BloodDonationGUI() {\n initComponents();\n }", "public Customer_Form() {\n initComponents();\n setSize(890,740);\n \n \n }", "public PatientUI() {\n initComponents();\n }", "public myForm() {\n\t\t\tinitComponents();\n\t\t}", "public Oddeven() {\n initComponents();\n }", "public Magasin() {\n initComponents();\n }", "public intrebarea() {\n initComponents();\n }", "public RadioUI()\n {\n initComponents();\n }", "public NewCustomerGUI() {\n initComponents();\n }", "public ZobrazUdalost() {\n initComponents();\n }", "public FormUtama() {\n initComponents();\n }", "public p0() {\n initComponents();\n }", "public INFORMACION() {\n initComponents();\n this.setLocationRelativeTo(null); \n }", "public ProgramForm() {\n setLookAndFeel();\n initComponents();\n }", "public AmountReleasedCommentsForm() {\r\n initComponents();\r\n }", "public form2() {\n initComponents();\n }", "public MainForm() {\n\t\tsuper(\"Hospital\", List.IMPLICIT);\n\n\t\tstartComponents();\n\t}", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n setName(\"Form\"); // NOI18N\n setRequestFocusEnabled(false);\n setVerifyInputWhenFocusTarget(false);\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, 465, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 357, Short.MAX_VALUE)\n );\n }", "public LixeiraForm() {\n initComponents();\n setLocationRelativeTo(null);\n }", "public kunde() {\n initComponents();\n }", "public frmMain() {\n initComponents();\n }", "public frmMain() {\n initComponents();\n }", "public MusteriEkle() {\n initComponents();\n }", "public DESHBORDPANAL() {\n initComponents();\n }", "public GUIForm() {\n initComponents();\n inputField.setText(NO_FILE_SELECTED);\n outputField.setText(NO_FILE_SELECTED);\n progressLabel.setBackground(INFO);\n progressLabel.setText(SELECT_FILE);\n }", "public frmVenda() {\n initComponents();\n }", "public FrmMenu() {\n initComponents();\n }", "public Botonera() {\n initComponents();\n }", "public OffertoryGUI() {\n initComponents();\n setTypes();\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents()\n {\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n setBackground(new java.awt.Color(255, 255, 255));\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 .addGap(0, 983, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 769, Short.MAX_VALUE)\n );\n\n pack();\n }", "public JFFornecedores() {\n initComponents();\n }", "public EnterDetailsGUI() {\n initComponents();\n }", "public vpemesanan1() {\n initComponents();\n }", "public Kost() {\n initComponents();\n }", "public UploadForm() {\n initComponents();\n }", "public FormHorarioSSE() {\n initComponents();\n }", "public frmacceso() {\n initComponents();\n }", "public HW3() {\n initComponents();\n }", "public Managing_Staff_Main_Form() {\n initComponents();\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents()\n {\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n getContentPane().setLayout(null);\n\n pack();\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n setName(\"Form\"); // NOI18N\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, 400, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 300, Short.MAX_VALUE)\n );\n }", "public sinavlar2() {\n initComponents();\n }", "public P0405() {\n initComponents();\n }", "public IssueBookForm() {\n initComponents();\n }", "public MiFrame2() {\n initComponents();\n }", "public Choose1() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n\n String oldAuthor = prefs.get(\"AUTHOR\", \"\");\n if(oldAuthor != null) {\n this.authorTextField.setText(oldAuthor);\n }\n String oldBook = prefs.get(\"BOOK\", \"\");\n if(oldBook != null) {\n this.bookTextField.setText(oldBook);\n }\n String oldDisc = prefs.get(\"DISC\", \"\");\n if(oldDisc != null) {\n try {\n int oldDiscNum = Integer.parseInt(oldDisc);\n oldDiscNum++;\n this.discNumberTextField.setText(Integer.toString(oldDiscNum));\n } catch (Exception ex) {\n this.discNumberTextField.setText(oldDisc);\n }\n this.bookTextField.setText(oldBook);\n }\n\n\n }", "public GUI_StudentInfo() {\n initComponents();\n }", "public JFrmPrincipal() {\n initComponents();\n }", "public Lihat_Dokter_Keseluruhan() {\n initComponents();\n }", "public bt526() {\n initComponents();\n }", "public Pemilihan_Dokter() {\n initComponents();\n }", "public Ablak() {\n initComponents();\n }", "@Override\n\tprotected void initUi() {\n\t\t\n\t}", "@SuppressWarnings(\"unchecked\")\n\t// <editor-fold defaultstate=\"collapsed\" desc=\"Generated\n\t// Code\">//GEN-BEGIN:initComponents\n\tprivate void initComponents() {\n\n\t\tlabel1 = new java.awt.Label();\n\t\tlabel2 = new java.awt.Label();\n\t\tlabel3 = new java.awt.Label();\n\t\tlabel4 = new java.awt.Label();\n\t\tlabel5 = new java.awt.Label();\n\t\tlabel6 = new java.awt.Label();\n\t\tlabel7 = new java.awt.Label();\n\t\tlabel8 = new java.awt.Label();\n\t\tlabel9 = new java.awt.Label();\n\t\tlabel10 = new java.awt.Label();\n\t\ttextField1 = new java.awt.TextField();\n\t\ttextField2 = new java.awt.TextField();\n\t\tlabel14 = new java.awt.Label();\n\t\tlabel15 = new java.awt.Label();\n\t\tlabel16 = new java.awt.Label();\n\t\ttextField3 = new java.awt.TextField();\n\t\ttextField4 = new java.awt.TextField();\n\t\ttextField5 = new java.awt.TextField();\n\t\tlabel17 = new java.awt.Label();\n\t\tlabel18 = new java.awt.Label();\n\t\tlabel19 = new java.awt.Label();\n\t\tlabel20 = new java.awt.Label();\n\t\tlabel21 = new java.awt.Label();\n\t\tlabel22 = new java.awt.Label();\n\t\ttextField6 = new java.awt.TextField();\n\t\ttextField7 = new java.awt.TextField();\n\t\ttextField8 = new java.awt.TextField();\n\t\tlabel23 = new java.awt.Label();\n\t\ttextField9 = new java.awt.TextField();\n\t\ttextField10 = new java.awt.TextField();\n\t\ttextField11 = new java.awt.TextField();\n\t\ttextField12 = new java.awt.TextField();\n\t\tlabel24 = new java.awt.Label();\n\t\tlabel25 = new java.awt.Label();\n\t\tlabel26 = new java.awt.Label();\n\t\tlabel27 = new java.awt.Label();\n\t\tlabel28 = new java.awt.Label();\n\t\tlabel30 = new java.awt.Label();\n\t\tlabel31 = new java.awt.Label();\n\t\tlabel32 = new java.awt.Label();\n\t\tjButton1 = new javax.swing.JButton();\n\n\t\tlabel1.setFont(new java.awt.Font(\"Segoe UI Semibold\", 0, 18)); // NOI18N\n\t\tlabel1.setText(\"It seems that some of the buttons on the ATM machine are not working!\");\n\n\t\tlabel2.setFont(new java.awt.Font(\"Segoe UI Semibold\", 0, 18)); // NOI18N\n\t\tlabel2.setText(\"Unfortunately these numbers are exactly what Professor has to use to type in his password.\");\n\n\t\tlabel3.setFont(new java.awt.Font(\"Segoe UI Semibold\", 0, 18)); // NOI18N\n\t\tlabel3.setText(\n\t\t\t\t\"If you want to eat tonight, you have to help him out and construct the numbers of the password with the working buttons and math operators.\");\n\n\t\tlabel4.setFont(new java.awt.Font(\"Segoe UI Semibold\", 0, 14)); // NOI18N\n\t\tlabel4.setText(\"Denver's Password: 2792\");\n\n\t\tlabel5.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel5.setText(\"import java.util.Scanner;\\n\");\n\n\t\tlabel6.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel6.setText(\"public class ATM{\");\n\n\t\tlabel7.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel7.setText(\"public static void main(String[] args){\");\n\n\t\tlabel8.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel8.setText(\"System.out.print(\");\n\n\t\tlabel9.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel9.setText(\" -\");\n\n\t\tlabel10.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel10.setText(\");\");\n\n\t\ttextField1.addActionListener(new java.awt.event.ActionListener() {\n\t\t\tpublic void actionPerformed(java.awt.event.ActionEvent evt) {\n\t\t\t\ttextField1ActionPerformed(evt);\n\t\t\t}\n\t\t});\n\n\t\tlabel14.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel14.setText(\"System.out.print( (\");\n\n\t\tlabel15.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel15.setText(\"System.out.print(\");\n\n\t\tlabel16.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel16.setText(\"System.out.print( ( (\");\n\n\t\tlabel17.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel17.setText(\")\");\n\n\t\tlabel18.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel18.setText(\" +\");\n\n\t\tlabel19.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel19.setText(\");\");\n\n\t\tlabel20.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel20.setText(\" /\");\n\n\t\tlabel21.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel21.setText(\" %\");\n\n\t\tlabel22.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel22.setText(\" +\");\n\n\t\tlabel23.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel23.setText(\");\");\n\n\t\tlabel24.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel24.setText(\" +\");\n\n\t\tlabel25.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel25.setText(\" /\");\n\n\t\tlabel26.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel26.setText(\" *\");\n\n\t\tlabel27.setCursor(new java.awt.Cursor(java.awt.Cursor.DEFAULT_CURSOR));\n\t\tlabel27.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel27.setText(\")\");\n\n\t\tlabel28.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel28.setText(\")\");\n\n\t\tlabel30.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel30.setText(\"}\");\n\n\t\tlabel31.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel31.setText(\"}\");\n\n\t\tlabel32.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel32.setText(\");\");\n\n\t\tjButton1.setFont(new java.awt.Font(\"Segoe UI Semibold\", 0, 14)); // NOI18N\n\t\tjButton1.setText(\"Check\");\n\t\tjButton1.addActionListener(new java.awt.event.ActionListener() {\n\t\t\tpublic void actionPerformed(java.awt.event.ActionEvent evt) {\n\t\t\t\tjButton1ActionPerformed(evt);\n\t\t\t}\n\t\t});\n\n\t\tjavax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n\t\tlayout.setHorizontalGroup(layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(28).addGroup(layout\n\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING).addComponent(getDoneButton()).addComponent(jButton1)\n\t\t\t\t\t\t.addComponent(label7, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addComponent(label6, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addComponent(label5, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addComponent(label4, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addComponent(label3, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t.addComponent(label1, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t.addGap(1)\n\t\t\t\t\t\t\t\t.addComponent(label2, GroupLayout.PREFERRED_SIZE, 774, GroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t.addGap(92).addGroup(layout.createParallelGroup(Alignment.LEADING).addGroup(layout\n\t\t\t\t\t\t\t\t\t\t.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING, false)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label15, GroupLayout.PREFERRED_SIZE, 145,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField8, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(2)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label21, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField7, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label8, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField1, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label9, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED).addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttextField2, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label31, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label14, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(37))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(174)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField5, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t20, GroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label18, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(7)))\n\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING).addGroup(layout\n\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.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.TRAILING, false).addGroup(layout\n\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.addComponent(textField4, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t20, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label17, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label22, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField9, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t20, GroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t.addGap(20)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label23, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label20, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField3, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t20, GroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t.addGap(20).addComponent(label19, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(23).addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tlabel10, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))))\n\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label16, GroupLayout.PREFERRED_SIZE, 177,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField12, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label24, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField6, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label27, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label25, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField11, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label28, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGap(1)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label26, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField10, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED).addComponent(label32,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))))\n\t\t\t\t\t\t.addComponent(label30, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t.addContainerGap(GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)));\n\t\tlayout.setVerticalGroup(\n\t\t\t\tlayout.createParallelGroup(Alignment.LEADING).addGroup(layout.createSequentialGroup().addContainerGap()\n\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t.addComponent(label1, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t.addComponent(label2, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t.addGap(1)\n\t\t\t\t\t\t.addComponent(label3, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(label4, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(label5, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(label6, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(label7, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\tAlignment.TRAILING)\n\t\t\t\t\t\t\t\t.addGroup(\n\t\t\t\t\t\t\t\t\t\tlayout.createSequentialGroup().addGroup(layout.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\tAlignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createSequentialGroup().addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.TRAILING).addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label9,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label8,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField1,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\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\ttextField2, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label10,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(3)))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(19)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField5,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label14,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label18,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label17,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField4,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(1))))\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label20, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label19, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField3, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(78)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label27, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(76)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField11, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(75)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label32,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField10,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED, 20,\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.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.TRAILING, false)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\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\tAlignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label15,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.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\tGroupLayout.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\tGroupLayout.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(textField8,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.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\tGroupLayout.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\tGroupLayout.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(label21,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.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\tGroupLayout.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\tGroupLayout.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(textField7,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.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\tGroupLayout.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\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(27))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\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\tAlignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField9,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.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\tGroupLayout.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\tGroupLayout.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(layout\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.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\t\t\tAlignment.LEADING)\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.addComponent(label22,\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\tGroupLayout.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\tGroupLayout.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\tGroupLayout.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.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\t\t\tlayout.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\t\t.addGap(3)\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\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\t\t\tlabel23,\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\t\t\tGroupLayout.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\t\t\tGroupLayout.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\t\t\tGroupLayout.PREFERRED_SIZE))))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(29)))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label16,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField12,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\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\tAlignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label24,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.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\tGroupLayout.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\tGroupLayout.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(textField6,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.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\tGroupLayout.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\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(1))))))\n\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t.addComponent(label25, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t.addComponent(label28, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t.addComponent(label26, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t.addGap(30)\n\t\t\t\t\t\t.addComponent(label31, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addGap(25)\n\t\t\t\t\t\t.addComponent(label30, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addGap(26).addComponent(jButton1).addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(getDoneButton()).addContainerGap(23, Short.MAX_VALUE)));\n\t\tthis.setLayout(layout);\n\n\t\tlabel16.getAccessibleContext().setAccessibleName(\"System.out.print( ( (\");\n\t\tlabel17.getAccessibleContext().setAccessibleName(\"\");\n\t\tlabel18.getAccessibleContext().setAccessibleName(\" +\");\n\t}", "public Pregunta23() {\n initComponents();\n }", "public FormMenuUser() {\n super(\"Form Menu User\");\n initComponents();\n }", "public AvtekOkno() {\n initComponents();\n }", "public busdet() {\n initComponents();\n }", "public ViewPrescriptionForm() {\n initComponents();\n }", "public Ventaform() {\n initComponents();\n }", "public Kuis2() {\n initComponents();\n }", "public CreateAccount_GUI() {\n initComponents();\n }", "public POS1() {\n initComponents();\n }", "public Carrera() {\n initComponents();\n }", "public EqGUI() {\n initComponents();\n }", "public JFriau() {\n initComponents();\n this.setLocationRelativeTo(null);\n this.setTitle(\"BuNus - Budaya Nusantara\");\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n setBackground(new java.awt.Color(204, 204, 204));\n setMinimumSize(new java.awt.Dimension(1, 1));\n setPreferredSize(new java.awt.Dimension(760, 402));\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, 750, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 400, Short.MAX_VALUE)\n );\n }", "public nokno() {\n initComponents();\n }", "public dokter() {\n initComponents();\n }", "public ConverterGUI() {\n initComponents();\n }", "public hitungan() {\n initComponents();\n }", "public Modify() {\n initComponents();\n }", "public frmAddIncidencias() {\n initComponents();\n }", "public FP_Calculator_GUI() {\n initComponents();\n \n setVisible(true);\n }" ]
[ "0.73201853", "0.7291607", "0.7291607", "0.7291607", "0.7285772", "0.7248832", "0.721371", "0.72083634", "0.71965843", "0.7190274", "0.71847606", "0.71592176", "0.71481156", "0.70935035", "0.70799935", "0.70570904", "0.6987588", "0.6977819", "0.69557554", "0.6953564", "0.6945299", "0.6942377", "0.69355065", "0.69326174", "0.69278985", "0.69251215", "0.69248855", "0.6911974", "0.6911815", "0.68930984", "0.68926644", "0.6890748", "0.689013", "0.6889194", "0.68833196", "0.68817353", "0.68812305", "0.68779206", "0.6875422", "0.6874629", "0.687249", "0.6859694", "0.6857467", "0.6855978", "0.68553996", "0.68549085", "0.6853271", "0.6853271", "0.68530285", "0.68427855", "0.6837456", "0.68367314", "0.682818", "0.6828002", "0.6826416", "0.6823491", "0.6823434", "0.68172073", "0.6816386", "0.6810029", "0.68090403", "0.680861", "0.6807909", "0.6807168", "0.680365", "0.67955285", "0.6795115", "0.6792028", "0.6790702", "0.6789993", "0.67889", "0.67872643", "0.6782707", "0.67665267", "0.6765798", "0.6765086", "0.6755966", "0.6755084", "0.6751955", "0.6750892", "0.67433685", "0.67388666", "0.6737211", "0.6735823", "0.673344", "0.67278177", "0.67267376", "0.67203826", "0.6716326", "0.67144203", "0.6713941", "0.6707991", "0.67068243", "0.6704236", "0.6701207", "0.66996884", "0.6698865", "0.6697606", "0.6693878", "0.6691149", "0.6689875" ]
0.0
-1
Returns the shared instance
public static synchronized SettingsStore getInstance() { if (instance == null) { instance = new SettingsStore(); } return instance; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Shared shared();", "public T getInstance() {\n return instance;\n }", "public static SingleObject getInstance(){\n return instance;\n }", "@Override\n public T getInstance() {\n return instance;\n }", "public static EnduserApi getSharedInstance() {\n if (EnduserApi.sharedInstance == null) {\n throw new NullPointerException(\"Instance is null. Please use getSharedInstance(apikey, context) \" +\n \"or setSharedInstance\");\n }\n return EnduserApi.sharedInstance;\n }", "public static SingleObject getInstance()\r\n {\r\n return instance;\r\n }", "public static SingleObject getInstance(){\n\t\treturn instance;\n\t}", "public static Singleton instance() {\n return Holder.instance;\n }", "public static Singleton getInstance() {\n return mSing;\n }", "public static SingletonEager getInstance()\n {\n return instance;\n }", "@Override\n\t\tpublic Object getInstance() {\n\t\t\treturn null;\n\t\t}", "public static RCProxy instance(){\n\t\treturn SingletonHolder.INSTANCE;\n\t}", "public static Singleton getInstance( ) {\n return singleton;\n }", "public static Singleton getInstance( ) {\n return singleton;\n }", "public static SingletonEager get_instance(){\n }", "public static utilitys getInstance(){\n\r\n\t\treturn instance;\r\n\t}", "public static Main getInstance() {\r\n return instance;\r\n }", "static public AtomSlinger Get_Instance ()\n {\n return AtomSlingerContainer._instance;\n }", "protected static KShingler getInstance() {\n return ShinglerSingleton.INSTANCE;\n }", "public static Singleton getInstance() {\n return SingletonHolder.SINGLETON_INSTANCE;\n }", "public static OI getInstance() {\n\t\treturn INSTANCE;\n\t}", "public static Main getInstance() {\n return instance;\n }", "synchronized public static SampletypeManager getInstance()\n {\n return singleton;\n }", "public static AppClient getInstance() {\n return instance;\n }", "private static Session getInstance() {\n return SingletonHolder.INSTANCE;\n }", "public static Logger getInstance(){\n if (shareInstance == null) {\n shareInstance = new Logger();\n }\n return shareInstance;\n }", "public static Gadget getInstance(){\r\n\t\t\treturn instance;\r\n\t\t}", "public static TaskManager getInstance()\n {\n return gInstance;\n }", "public static AccessSub getInstance() {\n\t\treturn instance;\n\t}", "public static FacebookUtils getInstance() {\n return FacebookUtils.shared_instance;\n }", "T getInstance();", "public Object getShared (Object aKey)\n\t{\n\t\treturn shared.get (aKey);\n\t}", "public static MetaDataManager getInstance() {\n return instance;\n }", "synchronized static PersistenceHandler getInstance() {\n return singleInstance;\n }", "public static MarketDataManagerImpl getInstance()\n {\n return instance;\n }", "public static ToolRegistery getInstance(){\n\t\treturn InstanceKeeper.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 EagerInitializationSingleton getInstance() {\n\t\treturn INSTANCE;\n\t}", "public static SPSSDialog getCurrentInstance()\n\t{\n\t\treturn instance;\n\t}", "public static synchronized Singleton getInstance(){\n if(instance == null){\n instance = new Singleton();\n }\n return instance;\n }", "public boolean getShared(){\n return this.shared;\n }", "public static SingletonTextureFactory getInstance(){\n\t\treturn instance;\n\t}", "public synchronized static Session getInstance(){\n if (_instance == null) {\n _instance = new Session();\n }\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 Boot getInstance()\n {\n return instance;\n }", "public static PSUniqueObjectGenerator getInstance()\n {\n if ( null == ms_instance )\n ms_instance = new PSUniqueObjectGenerator();\n return ms_instance;\n }", "public static Controller getInstance() { return INSTANCE; }", "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 SalesOrderDataSingleton getInstance()\n {\n // Return the instance\n return instance;\n }", "public static synchronized DemoApplication getInstance() {\n return mInstance;\n }", "public static GameManager getInstance() {\n return ourInstance;\n }", "public static RMIUtils getInstance() {\n return InstanceHolder.INSTANCE;\n }", "public static Light getInstance() {\n\treturn INSTANCE;\n }", "public static OneByOneManager getInstance() {\n // The static instance of this class\n return INSTANCE;\n }", "public static Settings get() {\n return INSTANCE;\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 METSNamespace getInstance() {\n return ONLY_INSTANCE;\n }", "String getInstance()\n {\n return instance;\n }", "public static CZSZApplication_bak getInstance() {\n return theSingletonInstance;\n }", "public static Resources getSharedResources() {\n return sharedResource;\n }", "public static Empty getInstance() {\n return instance;\n }", "public static MusicPlayer getInstance()\n {\n return INSTANCE;\n }", "static OpenSamlImplementation getInstance() {\n\t\treturn instance;\n\t}", "public static AnagramService getInstance() {\n\t\treturn SingletonHelper.INSTANCE;\n\t}", "public static synchronized ChoseActivity getInstance() {\n return mInstance;\n }", "public static FaceDetection getInstance()\n\t{\n\t\treturn SingletonHolder.INSTANCE;\n\t}", "public org.omg.uml.behavioralelements.commonbehavior.Instance getInstance();", "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}", "public static UserInteraction getInstance() {\n\t\tif (sharedInstance == null) {\n\t\t\tsharedInstance = new UserInteraction();\n\t\t}\n\t\treturn sharedInstance;\n\t}", "public static TinkerPrefs getInstance() {\n\t\treturn instance;\n\t}", "public static ModuleMapper getInstance() {\n return singleton;\n }", "public static MainWindow getInstance ()\r\n {\r\n return INSTANCE;\r\n }", "static SerialCommunication getInstance() {\r\n\t\treturn INSTANCE;\r\n\t}", "public static AccountVerificationSingleton getInstance()\n {\n if (uniqueInstance == null)\n {\n uniqueInstance = new AccountVerificationSingleton();\n }\n \n return uniqueInstance;\n }", "public static synchronized QuestStateTableDataGateway getSingleton()\n\t{\n\t\tif (singleton == null)\n\t\t{\n\t\t\tsingleton = new QuestStateTableDataGatewayRDS();\n\t\t}\n\t\treturn singleton;\n\t}", "public static ColorParserFactory sharedInstance()\n {\n return _sInstance;\n }", "public static Ontology getInstance() {\n return theInstance;\n }", "public static Ontology getInstance() {\n return theInstance;\n }", "public static GameController getInstance() {\n\t\treturn INSTANCE; \n\t}", "public static LibValid getInstance() {\n\t\treturn instance;\n\t}", "public static ColorPaletteBuilder getInstance()\n {\n return SingletonHolder.instance;\n }", "public static OImaging getInstance() {\n return (OImaging) App.getInstance();\n }", "public static RecordUtil sharedInstance() {\n if (sRecordUtil != null) {\n return sRecordUtil;\n } else {\n throw new RuntimeException(\"RecordUtil must be initialized in the Application class before use\");\n }\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 synchronized static ApModel getInstance()\n\t{\n\t\tif (INSTANCE == null)\n\t\t\tINSTANCE = new ApModel();\n\t\treturn INSTANCE;\n\t}", "public static synchronized ChatAdministration getInstance(){\n\t\treturn singleInstance;\n\t}", "public static GameEngine getInstance() {\n return 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 DataModule getInstance() {\n return Holder.INSTANCE;\n }", "public static CarSingleton2 getInstance() {\n\t\treturn singleton_instance;\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 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 Client getInstance() {\n if(client == null) {\n client = new Client();\n }\n return client;\n }", "public static SlavesHolder getInstance() {\n if (instance == null) {\n instance = new SlavesHolder();\n }\n return instance;\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 String name() {\n\t\treturn \"shared\";\n\t}", "public static RetrofitClient getInstance() {\n return OUR_INSTANCE;\n }", "public static BackendFactory getInstance() {\n return INSTANCE;\n }", "public static GameVariableRepository getInstance() {\r\n\t\treturn instance;\r\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 MessageBusImpl getInstance() \r\n\t{\r\n\t\treturn MessageBusImplHolder.instance;\r\n\t}" ]
[ "0.7632382", "0.7592664", "0.7545918", "0.7495189", "0.74723595", "0.7447487", "0.7382395", "0.7339353", "0.7288101", "0.7265372", "0.7244134", "0.7227265", "0.7176469", "0.71117234", "0.70697963", "0.704939", "0.6979159", "0.6949296", "0.694791", "0.6945432", "0.6937742", "0.6932995", "0.6932344", "0.6920273", "0.6894221", "0.6867778", "0.68400717", "0.6831522", "0.6807339", "0.6794936", "0.6792896", "0.67649555", "0.67464036", "0.6739778", "0.67340136", "0.6723222", "0.6715325", "0.6709522", "0.6704821", "0.66928095", "0.6681966", "0.66779435", "0.6673944", "0.66685885", "0.66598606", "0.66546863", "0.66533023", "0.66248906", "0.6619589", "0.6617113", "0.6616215", "0.6616114", "0.6605319", "0.6603507", "0.65806085", "0.6578576", "0.65752953", "0.656818", "0.65574455", "0.6553226", "0.65446603", "0.6543974", "0.65357965", "0.6532151", "0.65286744", "0.652376", "0.6523195", "0.6517611", "0.6504249", "0.6499768", "0.6495797", "0.648545", "0.6479596", "0.6474091", "0.64721054", "0.64644617", "0.6451292", "0.6451292", "0.644812", "0.64320654", "0.6429708", "0.64259815", "0.6414516", "0.64101416", "0.64098203", "0.6403441", "0.6401797", "0.6397901", "0.6396871", "0.6390044", "0.6388791", "0.6387128", "0.63843524", "0.63751173", "0.6374729", "0.63734156", "0.63733584", "0.63668525", "0.63610023", "0.63577455", "0.6355794" ]
0.0
-1
Returns the current home directory where settings and property files can be stored.
public File getHome() { return homeDir; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static String getHomeDirectory() {\n\t\treturn System.getProperty(\"user.home\");\n\t}", "private static String\n\tgetDefaultPrefsDir()\n\t{\n\t\tString homeDir\t= System.getProperty( \"user.home\" );\n\t\tif ( homeDir == null )\n\t\t{\n\t\t\thomeDir\t= \".\";\n\t\t}\n\t\t\n\t\treturn( homeDir );\n\t}", "public static String home() {\n\n String treefsHome = stringValue(\"treefs.home\");\n if(isNullOrEmpty(treefsHome)) {\n // default home location\n treefsHome = System.getProperty(\"user.dir\");\n }\n\n return treefsHome;\n }", "private File getHomeDirectory() {\n String brunelDir = System.getProperty(\"brunel.home\");\n File home = brunelDir != null ? new File(brunelDir) :\n new File(System.getProperty(\"user.home\"), \"brunel\");\n return ensureWritable(home);\n }", "public static String getUserHome() {\n return System.getProperty(\"user.home\");\n }", "public File getHomeDir() {\n\t\tFile f = new File(System.getProperty(\"user.home\"),MuViChatConstants.muviHomeDir);\t\t\n if (!f.isDirectory()) {\n\t f.mkdir();\t \n\t }\n return f;\n\t}", "public static String getUserDir() {\n return System.getProperty(\"user.dir\");\n }", "public File getHomeDir() {\n return physicalHomeDir;\n }", "public synchronized static String getCurrentDirectory() {\n if (currentDirectory == null)\n currentDirectory = canon(System.getProperty(\"user.home\"));\n return currentDirectory;\n }", "public String getFileDirectory() {\n String storedDirectory = settings.get(\"fileDirectory\");\n \n // Default to the program files\n if (storedDirectory == null) {\n storedDirectory = System.getenv(\"ProgramFiles\");\n }\n \n return storedDirectory;\n }", "public static File getPreferencesDirectory() {\n\t\treturn PREFERENCES_DIRECTORY;\n\t}", "private String getInitialDirectory() {\n String lastSavedPath = controller.getLastSavePath();\n\n if (lastSavedPath == null) {\n return System.getProperty(Constants.JAVA_USER_HOME);\n }\n\n File lastSavedFile = new File(lastSavedPath);\n\n return lastSavedFile.getAbsoluteFile().getParent();\n }", "public static String getBaseDir() {\r\n Path currentRelativePath = Paths.get(System.getProperty(\"user.dir\"));\r\n return currentRelativePath.toAbsolutePath().toString();\r\n }", "public String workingDirectory() {\n\t\treturn workingDir.getAbsolutePath();\n\t}", "public File getInstHomeDir() {\n \treturn this.getHomeDir(\"octHome\");\n }", "public static String getUserFolder() {\n\n String sPath;\n String sConfDir;\n\n \n // default is to use system's home folder setting\n sPath = System.getProperty(\"user.home\") + File.separator + \"sextante\"; \n \n // check if SEXTANTE.confDir has been set\n sConfDir = System.getProperty(\"SEXTANTE.confDir\"); \t\n if ( sConfDir != null ) {\n \t sConfDir = sConfDir.trim();\n \t \tif ( sConfDir.length() > 0 ) {\n \t \t\t// check if we have to append a separator char\n \t \t\tif ( sConfDir.endsWith(File.separator) ) {\n \t \t\t\tsPath = sConfDir;\n \t \t\t} else {\n \t \t\t\tsPath = sConfDir + File.separator;\n\t\t\t\t}\n\t\t\t}\n }\n\n final File sextanteFolder = new File(sPath);\n if (!sextanteFolder.exists()) {\n \t sextanteFolder.mkdir();\n }\n return sPath;\n\n }", "public String getProgramHomeDirName() {\n return pathsProvider.getProgramDirName();\n }", "protected File getFlexHomeDirectory()\n\t{\n\t\tif (!m_initializedFlexHomeDirectory)\n\t\t{\n\t\t\tm_initializedFlexHomeDirectory = true;\n\t\t\tm_flexHomeDirectory = new File(\".\"); // default in case the following logic fails //$NON-NLS-1$\n\t\t\tString flexHome = System.getProperty(\"application.home\"); //$NON-NLS-1$\n\t\t\tif (flexHome != null && flexHome.length() > 0)\n\t\t\t{\n\t\t\t\ttry\n\t\t\t\t{\n\t\t\t\t\tm_flexHomeDirectory = new File(flexHome).getCanonicalFile();\n\t\t\t\t}\n\t\t\t\tcatch (IOException e)\n\t\t\t\t{\n\t\t\t\t\t// ignore\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\treturn m_flexHomeDirectory;\n\t}", "public static String getUserDir() {\r\n\t\treturn userDir;\r\n\t}", "public static String getPreferenceDirectory() {\n\t\treturn PREF_DIR;\n\t}", "public static String getWorkingDirectory() {\n\n return System.getProperty(\"user.dir\");\n }", "public static Path getUserSaveDir() {\n\t\treturn Paths.get(prefs.get(Constants.PREF_USERSAVE_DIR, null));\n\t}", "public static File getConfigDirectory() {\n return getDirectoryStoragePath(\"/NWD/config\", false);\n }", "public String getWorkspacePath() {\n\t\tString workspacePath = userSettingsService.getUserSettings().getWorkspacePath();\n\t\treturn getAbsoluteSubDirectoryPath(workspacePath);\n\t}", "protected File getDefaultHomeDir()\n throws AntException\n {\n if( null != m_userDir )\n {\n try \n {\n checkDirectory( m_userDir, null );\n return m_userDir;\n }\n catch( final AntException ae ) {}\n }\n\n final String os = System.getProperty( \"os.name\" );\n final File candidate = \n (new File( getSystemLocationFor( os ) )).getAbsoluteFile();\n checkDirectory( candidate, \"ant-home\" );\n return candidate;\n }", "private static String getRioHomeDirectory() {\n String rioHome = RioHome.get();\n if(!rioHome.endsWith(File.separator))\n rioHome = rioHome+File.separator;\n return rioHome;\n }", "@Override\r\n\tpublic String getRootDir() {\t\t\r\n\t\treturn Global.USERROOTDIR;\r\n\t}", "public static File systemInstallDir() {\n String systemInstallDir = System.getProperty(INSTALL_DIR_SYSTEM_PROP, \"../config\").trim();\n return new File(systemInstallDir);\n }", "public File getJavaHome()\n {\n return javaHomeDir;\n }", "private String getHome()\n {\n return this.bufferHome.getAbsolutePath() + \"/\";\n }", "public static String getOutputFolder() {\n\n if ((m_sOutputFolder == null) || m_sOutputFolder.trim().equals(\"\")) {\n return System.getProperty(\"user.home\");\n }\n else {\n return m_sOutputFolder;\n }\n\n }", "public String getNabtoHomeDirectory() {\n return nabtoHomeDirectory.getAbsolutePath();\n }", "public Path getInstallationHome() {\n return home;\n }", "public static String findCurrentDirectory() {\n\t\tString absolutePath = new File(\"\").getAbsolutePath();\n\t return absolutePath;\n\t}", "private static File getUserFolderConfFile() {\n String confFileName = UserPreferences.getAppName() + CONFIG_FILE_EXTENSION;\n File userFolder = PlatformUtil.getUserDirectory();\n File userEtcFolder = new File(userFolder, ETC_FOLDER_NAME);\n if (!userEtcFolder.exists()) {\n userEtcFolder.mkdir();\n }\n return new File(userEtcFolder, confFileName);\n }", "public static String testHome()\n {\n if (testHome == null)\n {\n //See if we set it as a property using TestLauncher\n testHome = System.getProperty (\"jacorb.test.home\");\n\n //Try to find it from the run directory\n if (testHome == null)\n {\n URL url = TestUtils.class.getResource(\"/.\");\n\n String result = url.toString();\n if (result.matches(\"file:/.*?\"))\n {\n result = result.substring (5, result.length() - 9);\n }\n String relativePath=\"/classes/\";\n if (!pathExists(result, relativePath))\n {\n throw new RuntimeException (\"cannot find test home\");\n }\n testHome = osDependentPath(result);\n }\n }\n return testHome;\n }", "public static File getPlatformDir () {\n return new File (System.getProperty (\"netbeans.home\")); // NOI18N\n }", "public static String setupJMeterHome() {\n if (JMeterUtils.getJMeterProperties() == null) {\n String file = \"jmeter.properties\";\n File f = new File(file);\n if (!f.canRead()) {\n System.out.println(\"Can't find \" + file + \" - trying bin/ and ../bin\");\n if (!new File(\"bin/\" + file).canRead()) {\n // When running tests inside IntelliJ\n filePrefix = \"../bin/\"; // JMeterUtils assumes Unix-style separators\n } else {\n filePrefix = \"bin/\"; // JMeterUtils assumes Unix-style separators\n }\n file = filePrefix + file;\n } else {\n filePrefix = \"\";\n }\n // Used to be done in initializeProperties\n String home=new File(System.getProperty(\"user.dir\"),filePrefix).getParent();\n System.out.println(\"Setting JMeterHome: \"+home);\n JMeterUtils.setJMeterHome(home);\n }\n return filePrefix;\n }", "private String getArcGISHomeDir() throws IOException {\n String arcgisHome = null;\n /* Not found in env, check system property */\n if (System.getProperty(ARCGISHOME_ENV) != null) {\n arcgisHome = System.getProperty(ARCGISHOME_ENV);\n }\n if(arcgisHome == null) {\n /* To make env lookup case insensitive */\n Map<String, String> envs = System.getenv();\n for (String envName : envs.keySet()) {\n if (envName.equalsIgnoreCase(ARCGISHOME_ENV)) {\n arcgisHome = envs.get(envName);\n }\n }\n }\n if(arcgisHome != null && !arcgisHome.endsWith(File.separator)) {\n arcgisHome += File.separator;\n }\n return arcgisHome;\n }", "Preferences systemRoot();", "private void setWorkDiretory() {\n\t\tthis.workDiretory = System.getProperty(\"user.dir\");\n\t}", "public String getGitBasePath() {\n\t\tif (StringUtils.isBlank(gitBasePath)) {\n\t\t\tgitBasePath = System.getProperties().getProperty(\"user.home\") + \"/gittest\";\n\t\t}\n\t\treturn gitBasePath;\n\t}", "private static String getConfigFile() {\n\n final String sPath = getUserFolder();\n\n return sPath + File.separator + \"sextante.settings\";\n\n }", "HomeDir getHome(BaseUser u);", "private File findDefaultsFile() {\r\n String defaultsPath = \"/defaults/users.defaults.xml\";\r\n String xmlDir = server.getServerProperties().get(XML_DIR_KEY);\r\n return (xmlDir == null) ?\r\n new File (System.getProperty(\"user.dir\") + \"/xml\" + defaultsPath) :\r\n new File (xmlDir + defaultsPath);\r\n }", "public static String getBaseDir() {\n // 'basedir' is set by Maven Surefire. It always points to the current subproject,\n // even in reactor builds.\n String baseDir = System.getProperty(\"basedir\");\n\n // if 'basedir' is not set, try the current directory\n if (baseDir == null) {\n baseDir = System.getProperty(\"user.dir\");\n }\n return baseDir;\n }", "public static File getScriptDirectory() {\n \t\treturn new File(getScriptlerHomeDirectory(), \"scripts\");\n \t}", "public String getConfigurationDirectory() {\n\t\treturn props.getProperty(ARGUMENT_CONFIGURATION_DIRECTORY);\n\t}", "public static String getConfigFolder() {\n\t\tString progArg = System.getProperty(ConfigConstants.CONFIG_DIR_PROG_ARGUMENT);\n\t\tif (progArg != null) {\n\t\t\treturn progArg;\n\t\t} else {\n\t\t\treturn configFolder;\n\t\t}\n\t}", "public static File getRootDirectory() {\n\t\treturn ROOT_DIRECTORY;\n\t}", "public String getProjectRootDirectory() {\r\n\t\treturn getTextValue(workspaceRootText);\r\n\t}", "public String getCurrentProfiledir()\r\n {\r\n String res = null, aux = \"\";\r\n File dir;\r\n Vector<String> profiles = getProfiledirs();\r\n\r\n for (Enumeration<String> e = profiles.elements(); e.hasMoreElements();)\r\n {\r\n aux = e.nextElement();\r\n dir = new File(aux + File.separator + _lockFile);\r\n if (dir.exists())\r\n {\r\n res = aux + File.separator;\r\n }\r\n }\r\n return res;\r\n }", "public String getLocalBasePath() {\n\t\treturn DataManager.getLocalBasePath();\n\t}", "private static File getHadoopConfFolder() throws IOException {\n if (System.getenv().containsKey(\"HADOOP_CONF_DIR\")) {\n return new File(System.getenv(\"HADOOP_CONF_DIR\"));\n } else if (System.getenv().containsKey(\"HADOOP_HOME\")) {\n return new File(System.getenv(\"HADOOP_HOME\") + \"/etc/hadoop/\");\n } else {\n throw new IOException(\"Unable to find hadoop configuration folder.\");\n }\n }", "protected File getRootDir() {\r\n\t\tif (rootDir == null) {\r\n\t\t\trootDir = new File(getProperties().getString(\"rootDir\"));\r\n\t\t\tif (! rootDir.exists())\r\n\t\t\t\tif (! rootDir.mkdirs())\r\n\t\t\t\t\tthrow new RuntimeException(\"Could not create root dir\");\r\n\t\t}\r\n\t\treturn rootDir;\r\n\t}", "public static Path getPluginsDir() {\n\t\treturn Paths.get(prefs.get(Constants.PREF_USERSAVE_DIR, null)).resolve(PLUGINS_DIR);\n\t}", "public static File getAppsDirectory() {\n\t\treturn APPS_DIRECTORY;\n\t}", "public static String getCurrentFolderPath(){\n\t\treturn currentFolderPath;\n\t}", "public static File getDataDirectory() {\n\t\treturn DATA_DIRECTORY;\n\t}", "public File getCommonDir()\n {\n return validatePath(ServerSettings.getInstance().getProperty(ServerSettings.COMMON_DIR));\n }", "public File getBasedir()\n {\n return basedir;\n }", "public static String rootDir()\n {\n read_if_needed_();\n \n return _root;\n }", "protected File getCacheDirectory() {\n \t\treturn Activator.getDefault().getStateLocation().append(\"cache\").toFile(); //$NON-NLS-1$\n \t}", "public static String uploadDir() {\n\n String uploads = stringValue(\"treefs.uploads\");\n if(isNullOrEmpty(uploads)) {\n // default home location\n uploads = home() + File.separator + \"uploads\";\n } else {\n uploads = home() + File.separator + uploads;\n }\n\n System.out.println(\"uploadDir=\" + uploads);\n return uploads;\n }", "public static File getUserDir()\n {\n return fUserDir;\n }", "public static String getTempDirectoryPath()\n {\n return System.getProperty( \"java.io.tmpdir\" );\n }", "public File getConfigFile() {\r\n\t\treturn new File(homeDir, \"tacos.config\");\r\n\t}", "public static String getCurrentPath() {\n File file = new File(\"\");\n return file.getAbsolutePath();\n }", "@Override\n public String getCurrentDirectory() {\n return (String) gemFileState.get(STATE_SYNC_DIRECTORY);\n }", "public File getHome() {\n return home;\n }", "static File getDistributionInstallationFolder() {\n return ProcessRunnerImpl.getDistRootPath();\n }", "public static String getOutputDir() {\n outputDir = getProperty(\"outputDir\");\n if (outputDir == null) outputDir = \"./\";\n return outputDir;\n }", "public static String getBasePath() {\n String basePath;\n if (new File(\"../../MacOS/JavaApplicationStub\").canExecute()) {\n basePath = \"../../../..\";\n } else {\n basePath = \".\";\n }\n return basePath;\n }", "public static File getRegistrationDirectory() {\n\t\t\n\t\tFile home = ApplicationRuntime.getInstance().getApplicationHomeDir();\n\n\t\tFile registrationDirectory = new File(home,REGISTRATION_DIRECTORY_NAME);\n\t\tif (!registrationDirectory.exists()) {\n\t\t\tregistrationDirectory.mkdir();\n\t\t}\n\t\treturn registrationDirectory;\n\t}", "public File getApplicationPath()\n {\n return validateFile(ServerSettings.getInstance().getProperty(ServerSettings.APP_EXE));\n }", "@Override\n public String getTempDir() {\n return Comm.getAppHost().getTempDirPath();\n }", "public static File getAppDir()\n {\n return fAppDir;\n }", "public java.io.File getBaseDir() {\n return baseDir;\n }", "Preferences userRoot();", "public static String getPathProgramsFiles(){\r\n\t\treturn System.getenv(\"ProgramFiles\");\r\n\t}", "public File getRootDir() {\n return rootDir;\n }", "public static File getWorkspaceDir(BundleContext context)\n {\n return new File(getTargetDir(context), \"../../\");\n }", "public File getBaseDir() {\n if (baseDir == null) {\n try {\n setBasedir(\".\");\n } catch (BuildException ex) {\n ex.printStackTrace();\n }\n }\n return baseDir;\n }", "String getInstallRoot();", "public static String getConfigFileLocation(String propertyFilePath) {\n String fileLoc = System.getProperty(\"user.dir\") + propertyFilePath;\n return fileLoc.replace(\"/\", File.separator);\n }", "public String getPublicUserDirectoryName() {\n return getStringProperty(PUBLIC_USER_DIRECTORY_NAME_KEY);\n }", "public void gettingDesktopPath() {\n FileSystemView filesys = FileSystemView.getFileSystemView();\n File[] roots = filesys.getRoots();\n homePath = filesys.getHomeDirectory().toString();\n System.out.println(homePath);\n //checking if file existing on that location\n pathTo = homePath + \"\\\\SpisakReversa.xlsx\";\n }", "public File getRootDir() {\r\n\t\treturn rootDir;\r\n\t}", "protected File getAsinstalldir() throws ClassNotFoundException {\n\t\tif (asinstalldir == null) {\n\t\t\tString home = getProject().getProperty(\"asinstall.dir\");\n\t\t\tif (home != null) {\n asinstalldir = new File(home);\n\t\t\t}\n else {\n home = getProject().getProperty(\"sunone.home\");\n if (home != null)\n {\n final String msg = lsm.getString(\"DeprecatedProperty\", new Object[] {\"sunone.home\", \"asinstall.dir\"});\n log(msg, Project.MSG_WARN);\n asinstalldir = new File(home);\n }\n \n }\n\t\t}\n if (asinstalldir!=null) verifyAsinstalldir(asinstalldir);\n\t\treturn asinstalldir;\n\t}", "private static String systemInstallDir() {\n String systemInstallDir = System.getProperty(ESSEM_INSTALL_DIR_SYSPROP, \"\").trim();\n if(systemInstallDir.length() > 0 && !systemInstallDir.endsWith(\"/\")) {\n systemInstallDir = systemInstallDir + \"/\";\n }\n return systemInstallDir;\n }", "@Override\n\tpublic String getWorkingDir() {\n\t\treturn model.getWorkingDir();\n\t}", "public static String getWorkingDirectory() {\r\n try {\r\n // get working directory as File\r\n String path = DBLIS.class.getProtectionDomain().getCodeSource()\r\n .getLocation().toURI().getPath();\r\n File folder = new File(path);\r\n folder = folder.getParentFile().getParentFile(); // 2x .getParentFile() for debug, 1x for normal\r\n\r\n // directory as String\r\n return folder.getPath() + \"/\"; // /dist/ for debug, / for normal\r\n } catch (URISyntaxException ex) {\r\n return \"./\";\r\n }\r\n }", "public FileObject getProjectDirectory() {\n return helper.getProjectDirectory();\n }", "public String getBaseDirectory()\n {\n return m_baseDirectory;\n }", "public String getBackupDirectory() {\n\t\treturn props.getProperty(ARGUMENT_BACKUP_DIRECTORY);\n\t}", "public File getCwd() {\n return _cwd;\n }", "java.io.File getBaseDir();", "@Override\n public String getApplicationDirectory() {\n return Comm.getAppHost().getAppLogDirPath();\n }", "public String getWorkDiretory() {\n\t\treturn workDiretory;\n\t}", "public String getDataDirectory() {\n return dataDirectory;\n }" ]
[ "0.8382781", "0.8316306", "0.79771596", "0.7849393", "0.77653074", "0.7760969", "0.7698669", "0.7650467", "0.7554375", "0.74806905", "0.7403694", "0.74029326", "0.7276697", "0.71622425", "0.7112055", "0.709669", "0.7094626", "0.7092498", "0.70779485", "0.70772856", "0.7033285", "0.69515496", "0.6951536", "0.69102407", "0.6887031", "0.6864221", "0.68577653", "0.6847206", "0.68315244", "0.6813862", "0.679997", "0.67916065", "0.67842674", "0.67686045", "0.6720479", "0.668045", "0.6659351", "0.66592354", "0.6657074", "0.6632409", "0.66181123", "0.66079646", "0.6588118", "0.6585938", "0.6559834", "0.6548347", "0.6541364", "0.6521389", "0.64935815", "0.6487446", "0.647262", "0.64541954", "0.6440156", "0.6425948", "0.64126664", "0.63938886", "0.637951", "0.63710386", "0.6351274", "0.6339569", "0.6336508", "0.6335057", "0.63223016", "0.6302092", "0.63006485", "0.6296729", "0.62779975", "0.62505555", "0.6236353", "0.6234333", "0.6231044", "0.6227355", "0.62150997", "0.6209572", "0.6207835", "0.6195308", "0.61912674", "0.6190759", "0.6182068", "0.6179541", "0.6177446", "0.6174844", "0.61638665", "0.61573225", "0.615698", "0.6149267", "0.6142136", "0.61197907", "0.6118798", "0.61134326", "0.610385", "0.6083413", "0.6078561", "0.60758996", "0.6074938", "0.607159", "0.6063535", "0.6062458", "0.6059226", "0.6057637" ]
0.7577323
8
Returns the current file where the system settings configuration is located.
public File getConfigFile() { return new File(homeDir, "tacos.config"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static String getConfigFile() {\n\n final String sPath = getUserFolder();\n\n return sPath + File.separator + \"sextante.settings\";\n\n }", "public static File getSettingsfile() {\n return settingsfile;\n }", "public static String getCurrentPath() {\n File file = new File(\"\");\n return file.getAbsolutePath();\n }", "public String getApplicationContext()\n {\n return configfile.getApplicationPath(getASPManager().getCurrentHostIndex());\n }", "public File getConfigRoot()\r\n\t{\n\t\treturn file.getParentFile();\r\n\t}", "public String getFileDirectory() {\n String storedDirectory = settings.get(\"fileDirectory\");\n \n // Default to the program files\n if (storedDirectory == null) {\n storedDirectory = System.getenv(\"ProgramFiles\");\n }\n \n return storedDirectory;\n }", "private File getConfigurationFile() {\n return new File(BungeeBan.getInstance().getDataFolder(), this.filename);\n }", "public static String getConfigurationFilePath() {\n\n return getCloudTestRootPath() + File.separator + \"Config\"\n + File.separator + \"PluginConfig.xml\";\n }", "public String getCurrentPath() {\n\t\treturn DataManager.getCurrentPath();\n\t}", "public File getConfigurationFile();", "public File getApplicationPath()\n {\n return validateFile(ServerSettings.getInstance().getProperty(ServerSettings.APP_EXE));\n }", "public String getConfigurationFileString() {\r\n\t\treturn configurationFileString;\r\n\t}", "public URI getConfigurationFile() {\n return configurationFile;\n }", "public static String getSettingsPath(User user){\r\n File file = (File)userDirs.get(user);\r\n return file == null ? null : file.getAbsolutePath();\r\n // Not 100% sure we should use the absolute path...\r\n }", "private String getFilePath(){\n\t\tif(directoryPath==null){\n\t\t\treturn System.getProperty(tmpDirSystemProperty);\n\t\t}\n\t\treturn directoryPath;\n\t}", "public final String getSettingsFileName() {\n return settingsFileName;\n }", "private File getConnConfigFile(){\n\t\tFile f = new File(getHomeDir(),filename);\n\t\treturn f;\n\t}", "public static File getConfigDirectory() {\n return getDirectoryStoragePath(\"/NWD/config\", false);\n }", "public synchronized static String getCurrentDirectory() {\n if (currentDirectory == null)\n currentDirectory = canon(System.getProperty(\"user.home\"));\n return currentDirectory;\n }", "public static String findCurrentDirectory() {\n\t\tString absolutePath = new File(\"\").getAbsolutePath();\n\t return absolutePath;\n\t}", "public FileConfiguration getSettings() {\r\n\t\treturn settings.getConfig();\r\n\t}", "public String getCurrentPath() {\n\t\treturn \"\";\n\t}", "public static String getWorkingDirectory() {\n\n return System.getProperty(\"user.dir\");\n }", "public String workingDirectory() {\n\t\treturn workingDir.getAbsolutePath();\n\t}", "public static String getConfigFileName() {\r\n\t\treturn configFileName;\r\n\t}", "@Override\r\n public File getProfileConfigurationFile() {\n return new File(getConfigurablePath(ConfigurablePathId.PROFILE_ROOT), MAIN_CONFIGURATION_FILENAME);\r\n }", "public String getFilePath() {\n return getString(CommandProperties.FILE_PATH);\n }", "String getConfigFileName();", "public File getJobFilePath() {\n Preferences prefs = Preferences.userNodeForPackage(MainApp.class);\n String filePath = prefs.get(powerdropshipDir, null);\n if (filePath != null) {\n return new File(filePath);\n } else {\n return null;\n }\n }", "public String getLocalFilePath() {\n return loadConn.getProperty(\"filePath\");\n }", "public static void GetApplicationSettingsFile() {\n\t\t// Get the current path where the application (.jar) was launched from\n\t\tString path = \"\";\n\t\ttry {\n\t\t\tpath = Main.class.getProtectionDomain().getCodeSource().getLocation().toURI().getPath();\n\t\t}\n\t\tcatch (URISyntaxException e) { e.printStackTrace(); }\n\t\t// Handle result\n\t\tif (path.length() > 0) {\n\t\t\t// Handle leading \"/\"\n\t\t\tif (path.startsWith(\"/\")) {\n\t\t\t\tpath = path.substring(1);\n\t\t\t}\n\t\t\t// Check for settings file\n\t\t\tBoolean exists = new File(path + \"settings.xml\").exists();\n\t\t\t// Handle existence\n\t\t\tif (exists) {\n\t\t\t\t// Load the file into memory\n\t\t\t\tapplicationSettingsFile = Utilities.LoadDocumentFromFilePath(path + \"settings.xml\");\n\t\t\t}\n\t\t\telse {\n\t\t\t\t// Create the file\n\t\t\t\tapplicationSettingsFile = Utilities.CreateDocument();\n\t\t\t\t// Create the root element node\n\t\t\t org.w3c.dom.Element root = applicationSettingsFile.createElement(\"root\");\n\t\t\t applicationSettingsFile.appendChild(root);\n\t\t\t // Write the document to disk\n\t\t\t Utilities.writeDocumentToFile(applicationSettingsFile, new File(path + \"settings.xml\"));\n\t\t\t}\n\t\t\t// Store a reference to the file path\n\t\t applicationSettingsFilePath = path + \"settings.xml\";\n\t\t}\n\t}", "public static String getConfigFileLocation(String propertyFilePath) {\n String fileLoc = System.getProperty(\"user.dir\") + propertyFilePath;\n return fileLoc.replace(\"/\", File.separator);\n }", "static String getDefaultConfigurationFileName() {\n // This is a file calles 'jmx-scandir.xml' located\n // in the user directory.\n final String user = System.getProperty(\"user.home\");\n final String defconf = user+File.separator+\"jmx-scandir.xml\";\n return defconf;\n }", "public static File systemInstallDir() {\n String systemInstallDir = System.getProperty(INSTALL_DIR_SYSTEM_PROP, \"../config\").trim();\n return new File(systemInstallDir);\n }", "public String getConfigFile()\n {\n return __m_ConfigFile;\n }", "private File findDefaultsFile() {\r\n String defaultsPath = \"/defaults/users.defaults.xml\";\r\n String xmlDir = server.getServerProperties().get(XML_DIR_KEY);\r\n return (xmlDir == null) ?\r\n new File (System.getProperty(\"user.dir\") + \"/xml\" + defaultsPath) :\r\n new File (xmlDir + defaultsPath);\r\n }", "public static File getPreferencesDirectory() {\n\t\treturn PREFERENCES_DIRECTORY;\n\t}", "public final File getConfigFile() {\n\t\treturn configFile;\n\t}", "public String getConfigFile() {\n return configFile;\n }", "File getWorkingDirectory();", "String getApplicationContextPath();", "public final File getReportingConfig() {\n\t\treturn configFile;\n\t}", "public static String getCurrentFolderPath(){\n\t\treturn currentFolderPath;\n\t}", "public static String sActivePath() \r\n\t{\r\n\t\tString activePath = null;\r\n\t\t\r\n\t\ttry \r\n\t\t{\r\n\t\t\tactivePath = new java.io.File(\"\").getCanonicalPath();\r\n\t\t} \r\n\t\tcatch (IOException e) \r\n\t\t{\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\t\r\n\t\treturn activePath;\r\n\t}", "public static String getPropertyFile() {\n\t\treturn propertyFileAddress;\n\t}", "public String getCurrentProfiledir()\r\n {\r\n String res = null, aux = \"\";\r\n File dir;\r\n Vector<String> profiles = getProfiledirs();\r\n\r\n for (Enumeration<String> e = profiles.elements(); e.hasMoreElements();)\r\n {\r\n aux = e.nextElement();\r\n dir = new File(aux + File.separator + _lockFile);\r\n if (dir.exists())\r\n {\r\n res = aux + File.separator;\r\n }\r\n }\r\n return res;\r\n }", "public static String getBaseDir() {\r\n Path currentRelativePath = Paths.get(System.getProperty(\"user.dir\"));\r\n return currentRelativePath.toAbsolutePath().toString();\r\n }", "public String getFileName()\r\n\t{\r\n\t\treturn settings.getFileName();\r\n\t}", "public static File loadFilePath() {\n Preferences prefs = Preferences.userNodeForPackage(Main.class);\n String filePath = prefs.get(\"filePath\", null);\n if (filePath != null) {\n return new File(filePath);\n } else {\n return null;\n }\n }", "private static String\n\tgetDefaultPrefsDir()\n\t{\n\t\tString homeDir\t= System.getProperty( \"user.home\" );\n\t\tif ( homeDir == null )\n\t\t{\n\t\t\thomeDir\t= \".\";\n\t\t}\n\t\t\n\t\treturn( homeDir );\n\t}", "public File getWorkingParent()\n {\n return validatePath(ServerSettings.getInstance().getProperty(ServerSettings.WORKING_PARENT));\n }", "protected String getConfigurationFileName() \n\t{\n\t\treturn configurationFileName;\n\t}", "private static File getInstallFolderConfFile() throws IOException {\n String confFileName = UserPreferences.getAppName() + CONFIG_FILE_EXTENSION;\n String installFolder = PlatformUtil.getInstallPath();\n File installFolderEtc = new File(installFolder, ETC_FOLDER_NAME);\n File installFolderConfigFile = new File(installFolderEtc, confFileName);\n if (!installFolderConfigFile.exists()) {\n throw new IOException(\"Conf file could not be found\" + installFolderConfigFile.toString());\n }\n return installFolderConfigFile;\n }", "public static String getWorkingDirectory() {\r\n try {\r\n // get working directory as File\r\n String path = DBLIS.class.getProtectionDomain().getCodeSource()\r\n .getLocation().toURI().getPath();\r\n File folder = new File(path);\r\n folder = folder.getParentFile().getParentFile(); // 2x .getParentFile() for debug, 1x for normal\r\n\r\n // directory as String\r\n return folder.getPath() + \"/\"; // /dist/ for debug, / for normal\r\n } catch (URISyntaxException ex) {\r\n return \"./\";\r\n }\r\n }", "public String getSimConfigFilename() {\n return simConfigFile;\n }", "Preferences systemRoot();", "public File getCwd() {\n return _cwd;\n }", "public static String getUserDir() {\n return System.getProperty(\"user.dir\");\n }", "public String getConfigurationDirectory() {\n\t\treturn props.getProperty(ARGUMENT_CONFIGURATION_DIRECTORY);\n\t}", "public String getSystemPath() throws PropertyDoesNotExistException {\r\n\t\tif (this.settings.containsKey(\"systemPath\")) {\r\n\t\t\treturn this.settings.getProperty(\"systemPath\");\r\n\t\t}\r\n\t\tthrow new PropertyDoesNotExistException(\"Can't find property 'systemPath'\");\r\n\t}", "public File getWorkingDirectory()\r\n\t{\r\n\t\treturn workingDirectory;\r\n\t}", "public String getApplicationPath()\n {\n return getApplicationPath(false);\n }", "@Override\n public String getCurrentDirectory() {\n return (String) gemFileState.get(STATE_SYNC_DIRECTORY);\n }", "public String getCurrentTsoPath() {\n return currentTsoPath;\n }", "public String getAbsolutePath() {\n\t\treturn Util.getAbsolutePath();\n\t}", "public String getStorageLocation() {\n\t\treturn io.getFile();\n\t}", "public static String getWorkingDirectory() {\n // Since System.getProperty(\"user.dir\") and user.home etc. can be confusing\n // and I haven't quite figured out if they really are reliable on all systems,\n // I chose a little more complicated approach. This is exactly the same\n // like if a file is created relatively, like new File(\"testfile.txt\"), which\n // would be relative to the working directory.\n\n File f = new File(\".\");\n\n try {\n return addPathSeparator(f.getCanonicalPath());\n } catch (IOException e) {\n return null;\n }\n }", "public static String getConfigFolder() {\n\t\tString progArg = System.getProperty(ConfigConstants.CONFIG_DIR_PROG_ARGUMENT);\n\t\tif (progArg != null) {\n\t\t\treturn progArg;\n\t\t} else {\n\t\t\treturn configFolder;\n\t\t}\n\t}", "public String getWorkDirectory(){\n String wd = \"\";\n try {\n wd = new File(\"test.txt\").getCanonicalPath().replace(\"/test.txt\",\"\");\n } catch (IOException e) {\n e.printStackTrace();\n }\n return wd;\n }", "public String getWorkspacePath() {\n\t\tString workspacePath = userSettingsService.getUserSettings().getWorkspacePath();\n\t\treturn getAbsoluteSubDirectoryPath(workspacePath);\n\t}", "String getWorkingDirectory();", "public static File getAppDir()\n {\n return fAppDir;\n }", "public String getConfFileName() {\n return confFileName;\n }", "@Override\n public Path getUserPrefsFilePath() {\n return userPrefsStorage.getUserPrefsFilePath();\n }", "public static String getPreferenceDirectory() {\n\t\treturn PREF_DIR;\n\t}", "protected File getCurrentDocument() {\n\n return (File)stage.getProperties().get(GlobalConstants.CURRENT_DOCUMENT_PROPERTY_KEY);\n }", "Path getManageMeFilePath();", "public final String getFilePath() {\n\t\treturn m_info.getPath();\n\t}", "public String getPropertyFile()\n\t{\n\t\treturn propertyFile;\n\t}", "public String getSavingLocation()\n {\n return Environment.getExternalStorageDirectory() + File.separator + getResources().getString(R.string.app_name);\n }", "public File getWorkingDir() {\n return workingDir;\n }", "public File getWorkingDir() {\n return workingDir;\n }", "public final String getCredentialsFile() {\n return properties.get(CREDENTIALS_FILE_PROPERTY);\n }", "public String getProjectFilePath() {\n\t\tif (projectFileIO != null) {\n\t\t\treturn projectFileIO.getFilePath();\n\t\t}\n\t\telse {\n\t\t\treturn null;\n\t\t}\n\t}", "public String getLocalBasePath() {\n\t\treturn DataManager.getLocalBasePath();\n\t}", "public static String getBasepath() {\n\t\treturn basepath;\n\t}", "public static String getBasepath() {\n\t\treturn basepath;\n\t}", "private static File getUserFolderConfFile() {\n String confFileName = UserPreferences.getAppName() + CONFIG_FILE_EXTENSION;\n File userFolder = PlatformUtil.getUserDirectory();\n File userEtcFolder = new File(userFolder, ETC_FOLDER_NAME);\n if (!userEtcFolder.exists()) {\n userEtcFolder.mkdir();\n }\n return new File(userEtcFolder, confFileName);\n }", "private String getConfigurationDirectory() throws UnsupportedEncodingException {\r\n\r\n String folder;\r\n if (ISphereJobLogExplorerPlugin.getDefault() != null) {\r\n // Executed, when started from a plug-in.\r\n folder = ISphereJobLogExplorerPlugin.getDefault().getStateLocation().toFile().getAbsolutePath() + File.separator + REPOSITORY_LOCATION\r\n + File.separator;\r\n FileHelper.ensureDirectory(folder);\r\n } else {\r\n // Executed, when started on a command line.\r\n URL url = getClass().getResource(DEFAULT_CONFIGURATION_FILE);\r\n if (url == null) {\r\n return null;\r\n }\r\n String resource = URLDecoder.decode(url.getFile(), \"utf-8\"); //$NON-NLS-1$\r\n folder = new File(resource).getParent() + File.separator;\r\n }\r\n return folder;\r\n }", "@Override\n public String getConfigPath() {\n String fs = String.valueOf(File.separatorChar);\n StringBuilder sb = new StringBuilder();\n\n sb.append(\"scan\").append(fs);\n sb.append(\"config\").append(fs);\n sb.append(\"mesoTableConfig\").append(fs);\n\n return sb.toString();\n }", "public String getWorkingDataFile()\n\t{\n\t return workingDataFileName;\n\t}", "public String getXslFile() {\n return directory_path2;\n }", "File getWorkfile();", "public String getBasePath(){\r\n\t\t \r\n\t\t String basePath = properties.getProperty(\"getPath\");\r\n\t\t if(basePath != null) return basePath;\r\n\t\t else throw new RuntimeException(\"getPath not specified in the configuration.properties file.\");\r\n\t }", "public static Configuration getCurrentConfig() {\n return ConfigManager.getCurrentConfig();\n }", "public static File getFileToLoad() {\n\t\treturn new File(System.getProperty(\"user.home\") + File.separatorChar + \"Documents\" + File.separatorChar + \"main.css\");\n\t\t//return null;\n\t}", "public static String home() {\n\n String treefsHome = stringValue(\"treefs.home\");\n if(isNullOrEmpty(treefsHome)) {\n // default home location\n treefsHome = System.getProperty(\"user.dir\");\n }\n\n return treefsHome;\n }", "public static IFile getConfigLocalFile(IProject proj) {\n return proj.getFile(SLOEBER_PROJECT);\n }", "public String getPath() {\n\t\treturn this.baseDir.getAbsolutePath();\n\t}", "public final String getScriptFile() {\n return properties.get(SCRIPT_FILE_PROPERTY);\n }" ]
[ "0.7766469", "0.7586891", "0.7428248", "0.72196263", "0.71316004", "0.69915175", "0.69513285", "0.693568", "0.6884157", "0.6880308", "0.6868851", "0.6862318", "0.68256646", "0.67671704", "0.67644185", "0.6759029", "0.6735652", "0.6732016", "0.6711465", "0.671079", "0.6709996", "0.67016447", "0.66931295", "0.66729015", "0.6647485", "0.66138047", "0.6591404", "0.6588881", "0.6586465", "0.65841955", "0.65823", "0.6569356", "0.6529311", "0.652126", "0.6520263", "0.65182424", "0.6516151", "0.65006775", "0.6495076", "0.6474608", "0.6461246", "0.6456972", "0.64551634", "0.6448957", "0.643956", "0.6416692", "0.64123446", "0.641134", "0.64088845", "0.64015836", "0.639599", "0.63948715", "0.6394587", "0.637244", "0.63664854", "0.63648766", "0.63634366", "0.6355584", "0.6351769", "0.6348116", "0.6341906", "0.6331033", "0.63004917", "0.6286965", "0.6275482", "0.6260701", "0.6245593", "0.6242386", "0.62415224", "0.6241341", "0.62384665", "0.62338173", "0.62118536", "0.6197543", "0.61904156", "0.6187863", "0.61842686", "0.6178552", "0.6151619", "0.6143906", "0.6141294", "0.6141294", "0.6138078", "0.61300576", "0.61016077", "0.6097431", "0.6097431", "0.60913754", "0.6088981", "0.60824263", "0.60815173", "0.6078615", "0.606383", "0.60609233", "0.60502046", "0.60491484", "0.60486007", "0.6048356", "0.6044983", "0.60426563" ]
0.71536916
4
Reads and returns the content of the global system.properties file that is located in the classpath.
public Properties getSystemProperties() { InputStream in = null; Properties p = new Properties(); try { ExternalContext ext = FacesContext.getCurrentInstance().getExternalContext(); URL resource = ext.getResource("/WEB-INF/classes/system.properties"); if (resource == null) { logger.warn("No system.properties file found in classpath"); return p; } in = resource.openStream(); p.load(in); return p; } catch (Exception ex) { logger.error("Failed to read system properties", ex); return p; } finally { IOUtils.closeQuietly(in); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static Properties setup() {\n Properties props = System.getProperties();\n try {\n props.load(new FileInputStream(new File(\"src/config.properties\")));\n } catch (Exception e) {\n e.printStackTrace();\n System.exit(-1);\n }\n return props;\n }", "public String getSystemProperties() {\n return systemProperties;\n }", "public static void loadProperties() {\n properties = new Properties();\n try {\n File f = new File(\"system.properties\");\n if (!(f.exists())) {\n OutputStream out = new FileOutputStream(f);\n }\n InputStream is = new FileInputStream(f);\n properties.load(is);\n lastDir = getLastDir();\n if (lastDir == null) {\n lastDir = \"~\";\n setLastDir(lastDir);\n }\n properties.setProperty(\"lastdir\", lastDir);\n\n // Try loading properties from the file (if found)\n properties.load(is);\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "public CommandlineJava.SysProperties getSysProperties() {\r\n return getCommandLine().getSystemProperties();\r\n }", "public ReadConfigFile (){\n\t\ttry {\n\t\t\tinput = ReadConfigFile.class.getClassLoader().getResourceAsStream(Constant.CONFIG_PROPERTIES_DIRECTORY);\n\t\t\tprop = new Properties();\n\t\t\tprop.load(input);\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t}catch ( IOException e ) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\t\t\n\t}", "private static String readPropertiesFile() {\n Properties prop = new Properties();\n\n try (InputStream inputStream = MembershipService.class.getClassLoader().getResourceAsStream(\"config.properties\")) {\n\n if (inputStream != null) {\n prop.load(inputStream);\n } else {\n throw new FileNotFoundException(\"property file 'config.properties' not found in the classpath\");\n }\n } catch (Exception e) {\n return \"\";\n }\n return prop.getProperty(\"introducer\");\n }", "private static Properties loadProperties() throws SystemException {\r\n final Properties result;\r\n try {\r\n result = getProperties(PROPERTIES_DEFAULT_FILENAME);\r\n }\r\n catch (final IOException e) {\r\n throw new SystemException(\"properties not found.\", e);\r\n }\r\n if (LOGGER.isDebugEnabled()) {\r\n LOGGER.debug(\"Default properties: \" + result);\r\n }\r\n Properties specific;\r\n try {\r\n specific = getProperties(PROPERTIES_FILENAME);\r\n }\r\n catch (final IOException e) {\r\n specific = new Properties();\r\n if (LOGGER.isDebugEnabled()) {\r\n LOGGER.debug(\"Error on loading specific properties.\", e);\r\n }\r\n }\r\n if (LOGGER.isDebugEnabled()) {\r\n LOGGER.debug(\"Specific properties: \" + specific);\r\n }\r\n result.putAll(specific);\r\n \r\n // Load constant properties\r\n Properties constant = new Properties();\r\n try {\r\n constant = getProperties(PROPERTIES_CONSTANT_FILENAME);\r\n }\r\n catch (final IOException e) {\r\n if (LOGGER.isWarnEnabled()) {\r\n LOGGER.warn(\"Error on loading contant properties.\");\r\n }\r\n if (LOGGER.isDebugEnabled()) {\r\n LOGGER.debug(\"Error on loading contant properties.\", e);\r\n }\r\n }\r\n if (LOGGER.isDebugEnabled()) {\r\n LOGGER.debug(\"Constant properties: \" + constant);\r\n }\r\n result.putAll(constant);\r\n \r\n if (LOGGER.isDebugEnabled()) {\r\n LOGGER.debug(\"Merged properties: \" + result);\r\n }\r\n // set Properties as System-Variables\r\n for (final Object o : result.keySet()) {\r\n final String key = (String) o;\r\n String value = result.getProperty(key);\r\n value = replaceEnvVariables(value);\r\n System.setProperty(key, value);\r\n }\r\n return result;\r\n }", "public static Properties load() throws IOException {\n Properties properties = new Properties();\n\n try (InputStream defaultProperties = PropertiesLoader.class.getClassLoader().getResourceAsStream(DEFAULT_PROPERTIES_PATH)) {\n properties.load(defaultProperties);\n }\n\n try (InputStream overwriteProperties = PropertiesLoader.class.getClassLoader().getResourceAsStream(OVERWRITE_PROPERTIES_PATH)) {\n if (overwriteProperties != null) {\n properties.load(overwriteProperties);\n }\n }\n\n String systemPropertiesPath = System.getProperty(SYSTEM_PROPERTY);\n if (systemPropertiesPath != null) {\n try (InputStream overwriteProperties = new FileInputStream(systemPropertiesPath)) {\n properties.load(overwriteProperties);\n }\n }\n\n properties.putAll(System.getProperties());\n\n return properties;\n }", "private Properties getProperties() throws IOException {\r\n\t\tInputStream input = this.getClass().getResourceAsStream(\"/properties/application.properties\");\r\n\t\tProperties properties = new Properties();\r\n\t\tproperties.load(input);\r\n\t\treturn properties;\r\n\t}", "public static Properties loadProperties() throws IOException {\r\n Properties properties = new Properties();\r\n properties.load(new FileInputStream(\"..\" + File.separator + \"commons\" + File.separator + \"src\" + File.separator + \"test\" + File.separator + \"resources\" + File.separator + \"framework.properties\"));\r\n return properties;\r\n }", "public String getSystemPath() throws PropertyDoesNotExistException {\r\n\t\tif (this.settings.containsKey(\"systemPath\")) {\r\n\t\t\treturn this.settings.getProperty(\"systemPath\");\r\n\t\t}\r\n\t\tthrow new PropertyDoesNotExistException(\"Can't find property 'systemPath'\");\r\n\t}", "public static String getPropertyFromFile(String propName)throws ISException{\n InputStream inputStream;\n Properties prop = new Properties();\n try {\n inputStream = new FileInputStream(new File(System.getenv(\"conf.home\")+\"\\\\application.properties\"));\n prop.load(inputStream);\n if(prop==null){\n throw new ISException(\"getProperty: Cannot open property file!\");\n }\n return prop.getProperty(propName);\n } catch(Exception e){\n throw new ISException(\"getProperty: Cannot open property file!\");\n }\n }", "private static String loadPropertiesFileByEnvironement(String propertiesPath) {\n\t\t\tSystem.setProperty(\"ENV\", \"dev\");\n\t\tString env = System.getProperty(\"ENV\");\n\t\tString [] ts = propertiesPath.split(\"/\");\n\t\tfor(int i = 0;i<ts.length;i++){\n\t\t\tif(ts[i].contains(\".cfg.\")){\n\t\t\t\tts[i] = env+\"_\"+ts[i];\t\t\t\t\t\t\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\tString newPathProperties = \"\";\n\t\tfor(String s : ts)\n\t\t\tnewPathProperties=newPathProperties +\"/\"+s;\n\t\tnewPathProperties = newPathProperties.substring(1,newPathProperties.length());\n\t\treturn newPathProperties;\n\t}", "private static String getProperty(String property) {\n\t\tString value = System.getProperty(property);\r\n\t\tif (value == null) {\r\n\t\t\tvalue = System.getenv(property);\r\n\t\t}\r\n\t\treturn value;\r\n\t}", "@SynchronizedMethod(lockType = MethodLockType.EXPLICIT,\n description = \"An explicit private lock which cannot be shared from outside.\",\n otherSynchronizedMethods = {\"storeSystemConfigProperties\"})\n public static SystemConfigProperties getSystemConfigProperties() {\n synchronized (LOCK) {\n if (systemConfigProperties == null) {\n\n Properties properties = new Properties();\n\n String repositoryPath = SystemConstants.USER_HOME + File.separator + SystemConstants.APPLICATION_HOME_NAME;\n String configPath = repositoryPath + File.separator + SystemConstants.SYSTEM_CONFIG_FILE_NAME;\n File configFile = new File(configPath);\n\n if (configFile.isFile()) {\n FileInputStream fileInputStream = null;\n\n try {\n fileInputStream = new FileInputStream(configFile);\n properties.load(fileInputStream);\n } catch (IOException ex) {\n SystemLogger.warn(SystemConfigPropertiesFactory.class, MessageFactory.getMessage(WarnType.CANNOT_READ_CONFIG_FILE, repositoryPath), ex);\n setDefaultProperties(configFile, properties, repositoryPath);\n } finally {\n if (fileInputStream != null) {\n try {\n fileInputStream.close();\n } catch (IOException ex) {\n SystemLogger.warn(SystemConfigPropertiesFactory.class, MessageFactory.getMessage(WarnType.CANNOT_CLOSE_CONFIG_FILE, repositoryPath), ex);\n }\n }\n }\n\n } else {\n\n setDefaultProperties(configFile, properties, repositoryPath);\n }\n\n return new SystemConfigProperties(properties);\n }\n\n return systemConfigProperties;\n }\n }", "public String getConfigProperties(String key) {\n String value = null;\n try {\n FileReader fileReader=new FileReader(System.getProperty(\"user.dir\")+\"/src/main/resources/config.properties\");\n Properties properties=new Properties();\n properties.load(fileReader);\n value= properties.getProperty(key);\n }catch (Exception e){\n e.printStackTrace();\n }\n return value;\n }", "public String getSystemProperties(String key) {\n // Whether EDGE, UMTS, etc...\n return SystemProperties.get(key);\n }", "private void loadSystemConfig() {\r\n try {\r\n Properties systemProperties = System.getProperties();\r\n for (Enumeration e = systemProperties.keys(); e.hasMoreElements(); ) {\r\n String key = (String) e.nextElement();\r\n if (key.startsWith(DEFAULT_PROPERTY_PREFIX)) {\r\n Object value = systemProperties.getProperty(key);\r\n properties.put(key, value);\r\n if (LOG.isDebugEnabled()) {\r\n LOG.debug(\"Override Scope property \" + key + \" with \" + value);\r\n }\r\n }\r\n }\r\n } catch (SecurityException e) {\r\n if (LOG.isDebugEnabled()) {\r\n LOG.debug(\"Can't access System properties\", e);\r\n }\r\n }\r\n }", "Properties getEnvironment();", "Properties getEnvironment();", "private Properties readProperties() throws IOException {\n\t\tProperties props = new Properties();\n\t\t\n\t\tFileInputStream in = new FileInputStream(\"Config.properties\");\n\t\tprops.load(in);\n\t\tin.close();\n\t\treturn props;\n\t}", "private void getPropValues() {\n Properties prop = new Properties();\n \n InputStream inputStream = getClass().getClassLoader().getResourceAsStream(propFileName);\n try {\n prop.load(inputStream);\n } catch (IOException ex) {\n Logger.getLogger(PropResources.class.getName()).log(Level.SEVERE, null, ex);\n }\n if (inputStream == null) {\n try {\n throw new FileNotFoundException(\"ERROR: property file '\" + propFileName + \"' not found in the classpath\");\n } catch (FileNotFoundException ex) {\n Logger.getLogger(PropResources.class.getName()).log(Level.SEVERE, null, ex);\n }\n }\n // get property values\n this.defaultDirectory = prop.getProperty(\"defaultDirectory\");\n this.topicsFile = this.defaultDirectory + prop.getProperty(\"topics\");\n this.scripturesFile = this.defaultDirectory + prop.getProperty(\"scriptures\");\n this.defaultJournalXML = this.defaultDirectory + prop.getProperty(\"defaultJournalXML\");\n this.defaultJournalTxt = this.defaultDirectory + prop.getProperty(\"defaultJournalTxt\");\n }", "public void getPropValues() throws IOException {\r\n try {\r\n Properties prop = new Properties();\r\n String path = System.getProperty(\"user.dir\") +\"\\\\src\\\\es\\\\udc\\\\redes\\\\webserver\\\\resources\\\\\";\r\n\t String filename = \"config.properties\";\r\n inputStream = new FileInputStream(path+filename);\r\n if (inputStream != null) {\r\n prop.load(inputStream);\r\n } else {\r\n\t\tthrow new FileNotFoundException(\"property file '\"+path + filename + \"' not found\");\r\n }\r\n\t // get the property value and set in attributes\r\n\t this.PORT = prop.getProperty(\"PORT\");\r\n this.DIRECTORY_INDEX = prop.getProperty(\"DIRECTORY_INDEX\");\r\n this.DIRECTORY = System.getProperty(\"user.dir\")+ prop.getProperty(\"DIRECTORY\");\r\n this.ALLOW = prop.getProperty(\"ALLOW\");\r\n this.HOSTNAME = prop.getProperty(\"HOSTNAME\");\r\n System.out.println();\r\n } catch (Exception e) {\r\n\t\tSystem.out.println(\"Exception: \" + e);\r\n\t} finally {\r\n\t\tinputStream.close();\r\n\t}\r\n }", "public Properties loadConfig(){\n\t\tprintln(\"Begin loadConfig \");\n\t\tProperties prop = null;\n\t\t prop = new Properties();\n\t\ttry {\n\t\t\t\n\t\t\tprop.load(new FileInputStream(APIConstant.configFullPath));\n\n\t } catch (Exception ex) {\n\t ex.printStackTrace();\n\t println(\"Exception \"+ex.toString());\n\t \n\t }\n\t\tprintln(\"End loadConfig \");\n\t\treturn prop;\n\t\t\n\t}", "public String getPropertyPath();", "public String getPropertyPath();", "static void getProp() throws Exception {\r\n\r\n\t\tFileInputStream fileInputStream = new FileInputStream(\r\n\t\t\t\t\"C:\\\\repos\\\\test\\\\src\\\\main\\\\java\\\\test\\\\config.properties\");\r\n\r\n\t\tProperties properties = new Properties();\r\n\t\tproperties.load(fileInputStream);\r\n\r\n\t\tSystem.out.println(\"By using File Input stream class: \" + properties.getProperty(\"username\"));\r\n\r\n\t}", "private String getSystemProperties() {\n\t\tStringWriter swriter = new StringWriter();\n\t\tPrintWriter writer = new PrintWriter(swriter);\n\t\twriter.println(\"<html>\");\n\t\twriter.println(\"<head><title>Java Properties</title></head>\");\n\t\twriter.println(\"<body>\");\n\t\twriter.println(\"<pre>\");\n\t\tProperties properties = System.getProperties();\n\t\tproperties.list(writer);\n\t\twriter.println(\"</pre>\");\n\t\twriter.println(\"</body>\");\n\t\twriter.println(\"</html>\");\n\t\twriter.flush();\n\t\treturn swriter.toString();\n\t}", "public ReadConfigProperty() {\n\n\t\ttry {\n\t\t\tString filename = \"com/unitedcloud/resources/config.properties\";\n\t\t\tinput = ReadConfigProperty.class.getClassLoader().getResourceAsStream(filename);\n\t\t\tif (input == null) {\n\t\t\t\tSystem.out.println(\"Sorry, unable to find \" + filename);\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tprop = new Properties();\n\t\t\tprop.load(input);\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "private static Properties readProps() {\n Path[] candidatePaths = {\n Paths.get(System.getProperty(\"user.home\"), \".sourcegraph-jetbrains.properties\"),\n Paths.get(System.getProperty(\"user.home\"), \"sourcegraph-jetbrains.properties\"),\n };\n\n for (Path path : candidatePaths) {\n try {\n return readPropsFile(path.toFile());\n } catch (IOException e) {\n // no-op\n }\n }\n // No files found/readable\n return new Properties();\n }", "public static String getPropertyPath(){\n\t\tString path = System.getProperty(\"user.dir\") + FILE_SEP + propertyName;\r\n\t\tLOGGER.info(\"properties path: \" + path);\r\n\t\treturn path;\r\n\t}", "public synchronized Map<String, String> getenv() {\n return System.getenv();\n }", "private Properties getSystemPropertiesPost71() {\n Properties props = getSystemProperties();\n return props;\n }", "File getPropertiesFile();", "public static String getProperty(String key, String defaultValue, String text)\n/* */ {\n/* */ try\n/* */ {\n/* 181 */ String propVal = System.getProperty(key);\n/* 182 */ if (propVal == null)\n/* */ {\n/* 184 */ propVal = System.getenv(key);\n/* */ }\n/* 186 */ if (propVal == null)\n/* */ {\n/* 188 */ propVal = System.getenv(key.replace(\".\", \"_\"));\n/* */ }\n/* 190 */ if (propVal == null)\n/* */ {\n/* 192 */ propVal = System.getenv(key.toUpperCase().replace(\".\", \"_\"));\n/* */ }\n/* 194 */ if (propVal != null) {\n/* 195 */ return propVal;\n/* */ }\n/* */ }\n/* */ catch (Throwable ex) {\n/* 199 */ System.err.println(\"Could not resolve key '\" + key + \"' in '\" + text + \"' as system property or in environment: \" + ex);\n/* */ }\n/* */ \n/* 202 */ return defaultValue;\n/* */ }", "public static String getProperty (String key) {\n return SystemProperties.getProperty(key);\n }", "private Properties loadProperties() {\n Properties properties = new Properties();\n try {\n properties.load(getClass().getResourceAsStream(\"/config.properties\"));\n } catch (IOException e) {\n throw new WicketRuntimeException(e);\n }\n return properties;\n }", "public static void load() {\n try {\n File confFile = SessionService.getConfFileByPath(Const.FILE_CONFIGURATION);\n UtilSystem.recoverFileIfRequired(confFile);\n // Conf file doesn't exist at first launch\n if (confFile.exists()) {\n // Now read the conf file\n InputStream str = new FileInputStream(confFile);\n try {\n properties.load(str);\n } finally {\n str.close();\n }\n }\n } catch (Exception e) {\n Log.error(e);\n Messages.showErrorMessage(114);\n }\n }", "public static void systemPropertyTest() {\n\n Properties properties = System.getProperties();\n properties.list(System.out);\n }", "private static Properties loadOverrideProperties() {\n String confFile = System.getProperty(HAPI_PROPERTIES);\n if(confFile != null) {\n try {\n Properties props = new Properties();\n props.load(new FileInputStream(confFile));\n return props;\n }\n catch (Exception e) {\n throw new ConfigurationException(\"Could not load HAPI properties file: \" + confFile, e);\n }\n }\n\n return null;\n }", "public static final String getSystemString(String key) {\n\t\tString value = null;\n\t\ttry {\n\t\t\tvalue = System.getProperty(key);\n\t\t} catch (NullPointerException e) {\n\n\t\t\tif (THROW_ON_LOAD_FAILURE)\n\t\t\t\tthrow e;\n\t\t}\n\t\treturn value;\n\t}", "public String accessLocationPropFile(){\n\t\tProperties prop = new Properties();\n\t\tString loc=\"\";\n\t\ttry {\n\t\t\t//load a properties file\n\t\t\tprop.load(new FileInputStream(\"C:/Users/SARA/Desktop/OpenMRS/de/DeIdentifiedPatientDataExportModule/api/src/main/resources/config1.properties\"));\n\t\t\tInteger a = getRandomBetween(1, 3);\n\t\t\tloc = prop.getProperty(a.toString());\n\n\t\t} catch (IOException ex) {\n\t\t\tlog.error(\"IOException in accessing Location File\", ex);\n\t\t}\n\t\treturn loc;\n\t}", "public static void read_Environment_Variable_for_Web() {\n\t\tProperties prop = new Properties();\n\t\tInputStream input = null;\n\n\t\ttry {\n\n\t\t\tinput = new FileInputStream(\"/Environment File/environmentVariableForWebProduction2.properties\");\n\n\t\t\t// load a properties file\n\t\t\tprop.load(input);\n\n\t\t\t// get the property value and print it out\n\t\t Map<String, Object> map = new HashMap<>();\n\t\t\tfor (Entry<Object, Object> entry : prop.entrySet()) {\n\t\t\t\tmap.put((String) entry.getKey(), entry.getValue());\n\t\t\t}\n\t\t\tEnvironmentVariablesForWeb.setEnvironmentPropertyMap(map);\n\t\t\t/*EnvironmentVariables.PLATFORM_NAME = prop.getProperty(\"PLATFORM_NAME\");\n\t\t\tEnvironmentVariables.VERSION_NAME = prop.getProperty(\"VERSION_NAME\");\n\t\t\tEnvironmentVariables.DEVICE_NAME = prop.getProperty(\"DEVICE_NAME\");\n\t\t\tSystem.out.println(EnvironmentVariables.PLATFORM_NAME);\n\t\t\tSystem.out.println(EnvironmentVariables.VERSION_NAME);\n\t\t\tSystem.out.println(EnvironmentVariables.DEVICE_NAME);*/\n\n\t\t} catch (IOException ex) {\n\t\t\tex.printStackTrace();\n\t\t} finally {\n\t\t\tif (input != null) {\n\t\t\t\ttry {\n\t\t\t\t\tinput.close();\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t }", "public abstract String getPropertyFile();", "public final Properties init() throws FileNotFoundException, IOException{\n /*\n Your properties file must be in the deployed .war file in WEB-INF/classes/tokens. It is there automatically\n if you have it in Source Packages/java/tokens when you build. That is how this will read it in without defining a root location\n https://stackoverflow.com/questions/2395737/java-relative-path-of-a-file-in-a-java-web-application\n */\n String fileLoc =TinyTokenManager.class.getResource(Constant.PROPERTIES_FILE_NAME).toString();\n fileLoc = fileLoc.replace(\"file:\", \"\");\n setFileLocation(fileLoc);\n InputStream input = new FileInputStream(propFileLocation);\n props.load(input);\n input.close();\n currentAccessToken = props.getProperty(\"access_token\");\n currentRefreshToken = props.getProperty(\"refresh_token\");\n currentS3AccessID = props.getProperty(\"s3_access_id\");\n currentS3Secret = props.getProperty(\"s3_secret\");\n currentS3BucketName = props.getProperty(\"s3_bucket_name\");\n currentS3Region = Region.US_WEST_2;\n apiSetting = props.getProperty(\"open_api_cors\");\n return props;\n }", "private static String getConfigFile() {\n\n final String sPath = getUserFolder();\n\n return sPath + File.separator + \"sextante.settings\";\n\n }", "public static String getPropertyFile() {\n\t\treturn propertyFileAddress;\n\t}", "public ReadPropertyFile()\n\t{\n\t prob = new Properties(); \n\t \n\t try\n\t {\n\t FileInputStream fis = new FileInputStream(\".//config.properties\");\n\t prob.load(fis);\n\t }\n\t catch(FileNotFoundException e)\n\t {\n\t\t System.out.println(e.getMessage());\n\t }\n catch(IOException e)\n\t {\n \t System.out.println(e.getMessage());\n\t }\n\t}", "public static String getConfigValues(String sProperty) {\n\t\tString sValue = \"\";\n\t\tInputStream input = null;\n\t\ttry {\n\t\t\tProperties prop = new Properties();\n\t\t\tinput = new FileInputStream(System.getProperty(\"user.dir\")\n\t\t\t\t\t+ \"\\\\Config\\\\Config\" + \".properties\");\n\t\t\tprop.load(input);\n\t\t\tsValue = prop.getProperty(sProperty);\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn sValue;\n\t}", "static void getProps() throws Exception {\r\n\t\tFileReader fileReader = new FileReader(\"C:\\\\repos\\\\test\\\\src\\\\main\\\\java\\\\test\\\\config.properties\");\r\n\t\tProperties properties = new Properties();\r\n\r\n\t\tproperties.load(fileReader);\r\n\r\n\t\tSystem.out.println(\"By using File Reader: \" + properties.getProperty(\"username\"));\r\n\r\n\t}", "public static Properties getProperties(){\n\n\t\tProperties prop = new Properties();\n\t\tInputStream input = null;\n\n\t\ttry {\n\n\t\t\tinput = new FileInputStream(\"C:\\\\BCJMay16\\\\Developer\\\\MIddleLayer\\\\Workspace\\\\java\\\\springworkspace\\\\txuenergy\\\\ApplicationResources.properties\");\n\n\t\t\tprop.load(input);\n\n\t\t} catch (IOException ex) {\n\t\t\tex.printStackTrace();\n\t\t} finally {\n\t\t\tif (input != null) {\n\t\t\t\ttry {\n\t\t\t\t\tinput.close();\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn prop;\n\t }", "public PropertiesUtil() {\n\t\t// Read properties file.\n\n\t\tproperties = new Properties();\n\t\ttry {\n\t\t\tproperties.load(PropertiesUtil.class.getClassLoader().getResourceAsStream(\"variables.properties\"));\n\t\t\tlog.info(\"variables.properties file loaded successfully\");\n\t\t} catch (Exception e) {\n\t\t\tlog.error(\"variables.properties file not found: \", e);\n\t\t}\n\t}", "public static void loadProperties()\n {\n Properties props = new Properties();\n try {\n props.load( new BufferedInputStream( ClassLoader.getSystemResourceAsStream(\"bench.properties\") ) );\n } catch (IOException ioe)\n {\n logger.log(Level.SEVERE, ioe.getMessage());\n }\n props.putAll(System.getProperties()); //overwrite\n System.getProperties().putAll(props);\n }", "private void loadConfig() throws IOException {\r\n final boolean hasPropertiesFile = configFile != null && configFile.exists() \r\n && configFile.canRead() && configFile.isFile();\r\n if (hasPropertiesFile) {\r\n Properties props = new Properties();\r\n FileInputStream fis = null;\r\n try {\r\n fis = new FileInputStream(configFile);\r\n props.load(fis);\r\n Iterator<Object> keys = props.keySet().iterator();\r\n envVariables = new ArrayList<Variable>();\r\n while (keys.hasNext()) {\r\n String key = (String) keys.next();\r\n if (key.equalsIgnoreCase(GRKeys.GDAL_CACHEMAX)) {\r\n // Setting GDAL_CACHE_MAX Environment variable if available\r\n String cacheMax = null;\r\n try {\r\n cacheMax = (String) props.get(GRKeys.GDAL_CACHEMAX);\r\n if (cacheMax != null) {\r\n int gdalCacheMaxMemory = Integer.parseInt(cacheMax); // Only for validation\r\n Variable var = new Variable();\r\n var.setKey(GRKeys.GDAL_CACHEMAX);\r\n var.setValue(cacheMax);\r\n envVariables.add(var);\r\n }\r\n } catch (NumberFormatException nfe) {\r\n if (LOGGER.isLoggable(Level.WARNING)) {\r\n LOGGER.log(Level.WARNING, \"Unable to parse the specified property as a number: \"\r\n + cacheMax, nfe);\r\n }\r\n }\r\n } else if (key.equalsIgnoreCase(GRKeys.GDAL_DATA)\r\n || key.equalsIgnoreCase(GRKeys.GDAL_LOGGING_DIR)\r\n || key.equalsIgnoreCase(GRKeys.TEMP_DIR)) {\r\n // Parsing specified folder path\r\n String path = (String) props.get(key);\r\n if (path != null) {\r\n final File directory = new File(path);\r\n if (directory.exists() && directory.isDirectory()\r\n && ((key.equalsIgnoreCase(GRKeys.GDAL_DATA) && directory.canRead()) || directory.canWrite())) {\r\n Variable var = new Variable();\r\n var.setKey(key);\r\n var.setValue(path);\r\n envVariables.add(var);\r\n \r\n } else {\r\n if (LOGGER.isLoggable(Level.WARNING)) {\r\n LOGGER.log(Level.WARNING, \"The specified folder for \" + key + \" variable isn't valid, \"\r\n + \"or it doesn't exist or it isn't a readable directory or it is a \" \r\n + \"destination folder which can't be written: \" + path);\r\n }\r\n }\r\n }\r\n } else if (key.equalsIgnoreCase(GRKeys.EXECUTION_TIMEOUT)) {\r\n // Parsing execution timeout\r\n String timeout = null;\r\n try {\r\n timeout = (String) props.get(GRKeys.EXECUTION_TIMEOUT);\r\n if (timeout != null) {\r\n executionTimeout = Long.parseLong(timeout); // Only for validation\r\n }\r\n } catch (NumberFormatException nfe) {\r\n if (LOGGER.isLoggable(Level.WARNING)) {\r\n LOGGER.log(Level.WARNING, \"Unable to parse the specified property as a number: \"\r\n + timeout, nfe);\r\n }\r\n }\r\n } else if (key.equalsIgnoreCase(GRKeys.GDAL_WARP_PARAMS)\r\n || key.equalsIgnoreCase(GRKeys.GDAL_TRANSLATE_PARAMS)) {\r\n // Parsing gdal operations custom option parameters\r\n String param = (String) props.get(key);\r\n if (param != null) {\r\n if (key.equalsIgnoreCase(GRKeys.GDAL_WARP_PARAMS)) {\r\n gdalWarpingParameters = param.trim();\r\n } else {\r\n gdalTranslateParameters = param.trim();\r\n }\r\n }\r\n } else if (key.endsWith(\"PATH\")) {\r\n // Dealing with properties like LD_LIBRARY_PATH, PATH, ...\r\n String param = (String) props.get(key);\r\n if (param != null) {\r\n Variable var = new Variable();\r\n var.setKey(key);\r\n var.setValue(param);\r\n envVariables.add(var);\r\n }\r\n }\r\n }\r\n \r\n } catch (FileNotFoundException e) {\r\n if (LOGGER.isLoggable(Level.WARNING)) {\r\n LOGGER.log(Level.WARNING, \"Unable to parse the config file: \" + configFile.getAbsolutePath(), e);\r\n }\r\n \r\n } catch (IOException e) {\r\n if (LOGGER.isLoggable(Level.WARNING)) {\r\n LOGGER.log(Level.WARNING, \"Unable to parse the config file: \" + configFile.getAbsolutePath(), e);\r\n }\r\n } finally {\r\n if (fis != null) {\r\n try {\r\n fis.close();\r\n } catch (Throwable t) {\r\n // Does nothing\r\n }\r\n }\r\n }\r\n }\r\n }", "public String getPropertyFile() {\n return propertyFile;\n }", "private String getAndroidResourcePathFromSystemProperty() {\n String resourcePath = System.getProperty(\"android.sdk.path\");\n if (resourcePath != null) {\n return new File(resourcePath, getAndroidResourceSubPath()).toString();\n }\n return null;\n }", "private void initialize(String configLocation) throws IOException {\n\t\tInputStream input = null;\n\t\tProperties props = null;\n\t\ttry {\n\t\t\tinput = SystemListener.class.getResourceAsStream(configLocation);\n\t\t\tprops = new Properties();\n\t\t\tprops.load(input);\t\t\t\n\t\t} finally {\n\t\t\tif (input != null) {\n\t\t\t\tinput.close();\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(\"System Configration initialize Details:\");\n\t\t\n\t\tfor (Entry<Object, Object> entry : props.entrySet()) {\n\t\t String key=(String)entry.getKey();\n\t\t String value=(String)entry.getValue();\n\t\t System.out.println(\"|------ key[\"+key+\"];value[\"+value+\"]\");\n\t\t\tSystem.setProperty(key , value);\n\t\t}\n\t\tSystem.out.println(\"-------finish\");\n\t}", "public static synchronized String getPropValue(String key, String path)\r\n/* */ {\r\n/* 21 */ if (p == null) {\r\n/* 22 */ String npath = path + \"WEB-INF/classes/config.properties\";\r\n/* 23 */ InputStream is = null;\r\n/* */ try {\r\n/* 25 */ is = new FileInputStream(npath);\r\n/* */ } catch (FileNotFoundException e1) {\r\n/* 27 */ e1.printStackTrace();\r\n/* */ }\r\n/* 29 */ p = new Properties();\r\n/* */ try {\r\n/* 31 */ p.load(is);\r\n/* */ } catch (IOException e) {\r\n/* 33 */ e.printStackTrace();\r\n/* */ }\r\n/* */ }\r\n/* 36 */ return p.getProperty(JobStandConfs.work_base_dir);\r\n/* */ }", "private static synchronized Properties getLoggingProperties() {\n if (_hasLoggingProperties && (_loggingProperties == null)) {\n String fileName = System.getProperty(\n \"java.util.logging.config.file\"); // NOI18N\n\n if (fileName == null) {\n fileName = System.getProperty(\"java.home\");\t// NOI18N\n\n if (fileName != null) {\n File file = new File(fileName, \"lib\");\t// NOI18N\n\n file = new File(file, \"logging.properties\");\t// NOI18N\n\n try {\n fileName = file.getCanonicalPath();\n } catch (IOException ioe) {\n fileName = null;\n }\n }\n }\n\n if (fileName != null) {\n InputStream inputStream = null;\n File file = null;\n\n try {\n Properties properties = new Properties();\n BufferedInputStream bufferedInputStream = null;\n\n inputStream = new FileInputStream(fileName);\n bufferedInputStream = new BufferedInputStream(inputStream);\n properties.load(bufferedInputStream);\n _loggingProperties = properties;\n } catch (Exception e) {\n _hasLoggingProperties = false;\n } finally {\n if (inputStream != null) {\n try {\n inputStream.close();\n } catch (IOException ioe) {\n // couldn't close it for some reason\n }\n }\n }\n } else {\n _hasLoggingProperties = false;\n }\n }\n\n return _loggingProperties;\n }", "public String getPropertyFile()\n\t{\n\t\treturn propertyFile;\n\t}", "public String readConfiguration(String path);", "public String getEnvironment(){\n\n String env = null;\n try {\n env = System.getProperty(\"env\");\n if(env !=null)\n return env;\n else\n return prop.getProperty(ENVIRONMENT_KEY);\n\n }catch(Exception e)\n {\n return prop.getProperty(ENVIRONMENT_KEY);\n }\n }", "private final static void getProp() {\n try(InputStream fis = ConnectionBDD.class.getClassLoader().getResourceAsStream(\"conf.properties\")){\n \n props.load(fis);\n \n Class.forName(props.getProperty(\"jdbc.driver.class\"));\n \n url = props.getProperty(\"jdbc.url\");\n login = props.getProperty(\"jdbc.login\");\n password = props.getProperty(\"jdbc.password\");\n \n } catch (ClassNotFoundException e) {\n e.printStackTrace();\n } catch (FileNotFoundException e1) {\n e1.printStackTrace();\n } catch (IOException e1) {\n e1.printStackTrace();\n }\n }", "private void readProperties() {\n // reading config files\n if (driver == null) {\n try {\n fis = new FileInputStream(userDir + \"\\\\src\\\\main\\\\resources\\\\properties\\\\Config.properties\");\n } catch (IOException e) {\n e.printStackTrace();\n }\n try {\n config.load(fis);\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n }", "public static Properties getPropertiesDefault() throws IOException {\n\t\treturn getProperties(\"/properties/configuration.properties\");\n\t\t\n\t}", "private Properties getDbProperties() {\n if (dbProperties == null) {\n // like ~/Dropbox/ACM-UWR/config.properties\n File propertiesFile = getSandbox().inputFile(pathsProvider.getProgramConfigFile().toPath());\n if (propertiesFile.exists()) {\n try {\n BufferedInputStream in = new BufferedInputStream(\n new FileInputStream(propertiesFile));\n Properties props = new Properties();\n props.load(in);\n dbProperties = props;\n } catch (IOException e) {\n throw new RuntimeException(\"Unable to load configuration file: \"\n + propertiesFile.getName(), e);\n }\n }\n }\n return dbProperties;\n }", "public Properties init_prop() {\n\t\tprop = new Properties();\n\t\tString path = null;\n\t\tString env = null;\n\n\t\ttry {\n\n\t\t\tenv = System.getProperty(\"env\");\n\t\t\tSystem.out.println(\"Running on Envirnment: \" + env);\n\n\t\t\tif (env == null) {\n\t\t\t\tSystem.out.println(\"Default Envirnment: \" + \"PROD\");\n\t\t\t\tpath = \"D:\\\\Rupali\\\\Workspace\\\\HubSpotFramework\\\\src\\\\main\\\\java\\\\com\\\\qa\\\\hubspot\\\\config\\\\Config.prod.properties\";\n\n\t\t\t} else {\n\t\t\t\tswitch (env) {\n\t\t\t\tcase \"qa\":\n\t\t\t\t\tpath = \"D:\\\\Rupali\\\\Workspace\\\\HubSpotFramework\\\\src\\\\main\\\\java\\\\com\\\\qa\\\\hubspot\\\\config\\\\Config.qa.properties\";\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"dev\":\n\t\t\t\t\tpath = \"D:\\\\Rupali\\\\Workspace\\\\HubSpotFramework\\\\src\\\\main\\\\java\\\\com\\\\qa\\\\hubspot\\\\config\\\\Config.dev.properties\";\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"stage\":\n\t\t\t\t\tpath = \"D:\\\\Rupali\\\\Workspace\\\\HubSpotFramework\\\\src\\\\main\\\\java\\\\com\\\\qa\\\\hubspot\\\\config\\\\Config.stage.properties\";\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"prod\":\n\t\t\t\t\tpath = \"D:\\\\Rupali\\\\Workspace\\\\HubSpotFramework\\\\src\\\\main\\\\java\\\\com\\\\qa\\\\hubspot\\\\config\\\\Config.prod.properties\";\n\t\t\t\t\tbreak;\n\n\t\t\t\tdefault:\n\t\t\t\t\tSystem.out.println(\"Please Pass the Correct Env Value...\");\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tFileInputStream finput = new FileInputStream(path);\n\t\t\tprop.load(finput);\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\n\t\treturn prop;\n\t}", "private void readProperties() throws Exception{\n\t\t InputStream fisGlobal=null,fisModul=null; \n\t\t propiedades = new Properties();\n try {\n \t // Path directorio de configuracion\n \t String pathConf = System.getProperty(\"ad.path.properties\");\n \t \n \t // Propiedades globales\n \t fisGlobal = new FileInputStream(pathConf + \"sistra/global.properties\");\n \t propiedades.load(fisGlobal);\n \t\t \n \t // Propiedades modulo\n \t\t fisModul = new FileInputStream(pathConf + \"sistra/plugins/plugin-firma.properties\");\n \t\t propiedades.load(fisModul);\n \t \t \t\t \n } catch (Exception e) {\n \t propiedades = null;\n throw new Exception(\"Excepcion accediendo a las propiedadades del modulo\", e);\n } finally {\n try{if (fisGlobal != null){fisGlobal.close();}}catch(Exception ex){}\n try{if (fisModul != null){fisModul.close();}}catch(Exception ex){}\n }\t\t\n\t}", "private Properties loadConfigProperties() {\n \tProperties prop = new Properties();\n \tInputStream in = null;\n \ttry {\n \t\tin = this.getClass().getClassLoader().getResourceAsStream(\"resources/config.properties\");\n \t\tprop.load(in);\n \t} catch (IOException ex) {\n \t\tex.printStackTrace();\n \t} finally {\n \t\tif (in != null) {\n \t\t\ttry {\n \t\t\t\tin.close();\n \t\t\t} catch (IOException e) {\n \t\t\t\te.printStackTrace();\n \t\t\t}\n \t\t}\n \t}\n \treturn prop;\n\t}", "public static Properties getPropertiesFromClasspath(String fileName)\n throws PropertiesFileNotFoundException {\n\n Properties props = new Properties();\n try {\n InputStream is = ClassLoader.getSystemResourceAsStream(fileName);\n if (is == null) { // try this instead\n is = Thread.currentThread().getContextClassLoader().getResourceAsStream(fileName);\n logger.debug(\"loaded properties file with Thread.currentThread()\");\n }\n props.load(is);\n } catch (Exception e) {\n throw new PropertiesFileNotFoundException(\n \"ERROR LOADING PROPERTIES FROM CLASSPATH >\" + fileName + \"< !!!\", e);\n }\n return props;\n }", "public static String getPropertyValue(String filename,String variable) {\n\t\tProperties prop = new Properties();\n\t\tInputStream input = null;\n\t\tString result;\n\t\tString home = System.getProperty(\"conf.dir\");\n\t\ttry {\n\t\t\tinput = new FileInputStream(home+\"/\"+filename);\n\t\t\tprop.load(input);\n\t\t\tresult=prop.getProperty(variable);\n\t\t} catch (IOException e) {\n\t\t\tlogger.error(\"Error occured while getting properties: \",e);\n\t\t\tresult=null;\n\t\t}\n\t\treturn result;\n\t}", "public File getPropertiesFile()\n {\n if (m_file != null)\n return m_file;\n \n String path = PSServer.getRxDir() + \"/\"\n + PSConfigService.CONFIG_FILE_BASE + \"/BeanProperties.xml\";\n m_file = new File(path);\n return m_file;\n }", "public static Properties getProperties(String propFilename) {\n File propFile = new File(propFilename);\n\n if (!propFile.exists()) {\n log.error(\"ERROR: Properties file '{}' cannot be found or accessed.\", propFilename);\n System.exit(1);\n }\n\n Properties props = null;\n try {\n FileInputStream propFileIn = new FileInputStream(propFile);\n props = new Properties(System.getProperties());\n props.load(propFileIn);\n } catch (IOException ioe) {\n log.error(\"ERROR: Reading properties file '{}'\", propFilename, ioe);\n System.exit(1);\n }\n return props;\n }", "private Properties getProptertiesUrl() {\n\t\tprop = new Properties();\n\t\tInputStream inputUrl = null;\n\t\ttry {\n\t\t\tinputUrl = new FileInputStream(\n\t\t\t\t\tcurrentDir + fileSeparator + \"properties\" + fileSeparator + \"prop.properties\");\n\t\t} catch (FileNotFoundException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\t// load a properties file\n\t\ttry {\n\t\t\tprop.load(inputUrl);\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn prop;\n\t}", "public static String get(String key) throws UnknownID, IOFailure, ArgumentNotValid {\n\t\tArgumentNotValid.checkNotNullOrEmpty(key, \"String key\");\n\t\tString val = System.getProperty(key);\n\t\tif (val != null) {\n\t\t\treturn val;\n\t\t}\n\n\t\t// Key not in System.properties try loaded data instead\n\t\tsynchronized (fileSettingsXmlList) {\n\t\t\tfor (SimpleXml settingsXml : fileSettingsXmlList) {\n\t\t\t\tif (settingsXml.hasKey(key)) {\n\t\t\t\t\treturn settingsXml.getString(key);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n/*\n\t\t// Key not in file based settings, try classpath settings instead\n\t\tsynchronized (defaultClasspathSettingsXmlList) {\n\t\t\tfor (SimpleXml settingsXml : defaultClasspathSettingsXmlList) {\n\t\t\t\tif (settingsXml.hasKey(key)) {\n\t\t\t\t\treturn settingsXml.getString(key);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n */\n\t\tthrow new UnknownID(\"No match for key '\" + key + \"' in settings\");\n\t}", "public static File getFileToLoad() {\n\t\treturn new File(System.getProperty(\"user.home\") + File.separatorChar + \"Documents\" + File.separatorChar + \"main.css\");\n\t\t//return null;\n\t}", "public String getSystemClassPath();", "@Test\n public void testGetProperties() throws Exception {\n logger.info(\"testGetProperties: test the basic properties file interface\");\n\n // copy system properties\n logger.info(\"Copy system properties to a file\");\n Properties prop1 = System.getProperties();\n File file1 = createFile(\"createAndReadPropertyFile-1\", prop1);\n\n // read in properties, and compare\n logger.info(\"Read in properties from new file\");\n Properties prop2 = PropertyUtil.getProperties(file1);\n\n // they should match\n assertEquals(prop1, prop2);\n\n Properties prop3 = PropertyUtil.getProperties(INTERPOLATION_PROPERTIES);\n\n assertEquals(\"no\", prop3.getProperty(INTERPOLATION_NO));\n assertEquals(System.getenv(\"HOME\"), prop3.getProperty(INTERPOLATION_ENV));\n assertEquals(LoggerUtil.ROOT_LOGGER, prop3.getProperty(INTERPOLATION_CONST));\n assertEquals(System.getProperty(\"user.home\"), prop3.getProperty(INTERPOLATION_SYS));\n\n Properties prop4 = new Properties();\n prop4.put(INTERPOLATION_NO, \"no\");\n prop4.put(INTERPOLATION_ENV, \"${env:HOME}\");\n prop4.put(INTERPOLATION_CONST, \"${const:org.onap.policy.drools.utils.logging.LoggerUtil.ROOT_LOGGER}\");\n prop4.put(INTERPOLATION_SYS, \"${sys:user.home}\");\n\n PropertyUtil.setSystemProperties(prop4);\n\n assertEquals(\"no\", System.getProperty(INTERPOLATION_NO));\n assertEquals(System.getenv(\"HOME\"), System.getProperty(INTERPOLATION_ENV));\n assertEquals(LoggerUtil.ROOT_LOGGER, System.getProperty(INTERPOLATION_CONST));\n assertEquals(System.getProperty(\"user.home\"), System.getProperty(INTERPOLATION_SYS));\n }", "protected static String getSystemProperty(String prop) {\n\t\ttry {\n\t\t\treturn System.getProperty(prop);\n\t\t} catch (SecurityException e) {\n\t\t\treturn \"\";\n\t\t}\n\t}", "public static String get(String key){\n\t\tif(sys_cfg == null){\n\t\t\tsys_cfg = new Configuration(\"text.properties\");\n\t\t}\n\t\tString value = sys_cfg.getValue(key);\n\t\treturn value;\n\t}", "public String readConfig(String path) throws Exception {\n\t\treturn getObject(path + CONFIG);\n\t}", "public static Properties getProperties(String filename)\r\n/* 13: */ {\r\n/* 14:26 */ Properties properties = new Properties();\r\n/* 15: */ try\r\n/* 16: */ {\r\n/* 17:29 */ properties.load(new FileInputStream(System.getProperty(\"user.dir\") + \"/properties/\" + filename));\r\n/* 18: */ }\r\n/* 19: */ catch (IOException ex)\r\n/* 20: */ {\r\n/* 21:31 */ logger.error(\"Can't load properties file: \" + filename, ex);\r\n/* 22: */ }\r\n/* 23:33 */ return properties;\r\n/* 24: */ }", "public PropertyManager() {\n propFileName = System.getProperty(\"user.home\") + File.separator +\n defPropFile;\n\n recentResult = loadPropertyFile(propFileName);\n }", "public static String getProperty( String key )\r\n {\r\n if (System.getProperties().containsKey( key ))\r\n {\r\n return System.getProperty( key );\r\n }\r\n return _resourceBundle.getString( key );\r\n }", "@Nonnull\r\n public List<String> getSystemIncludePath() {\r\n return sysincludepath;\r\n }", "public static void loadPropertyFile() {\r\n\t\t\r\n\t\tif (loaded) {\r\n\t\t\tthrow new IllegalStateException(\"Properties have already been loaded!\"); \r\n\t\t}\r\n\t\tloaded = true; \r\n\t\t\r\n\t\t// if property file was specified, use it instead of standard property\r\n\t\t// file\r\n\r\n\t\tString file = STANDARD_PROPERTY_FILE;\r\n\r\n\t\tif (System.getProperty(PROPERTY_WHERE_TO_FIND_PROPERTY_FILE) != null\r\n\t\t\t\t&& System.getProperty(PROPERTY_WHERE_TO_FIND_PROPERTY_FILE)\r\n\t\t\t\t\t\t.length() != 0) {\r\n\t\t\tfile = System.getProperty(PROPERTY_WHERE_TO_FIND_PROPERTY_FILE);\r\n\t\t}\r\n\r\n\t\t// load property file\r\n\t\ttry {\r\n\t\t\tProperties props = System.getProperties();\r\n\t\t\tprops.load(ClassLoader.getSystemResourceAsStream(file));\r\n\t\t\tSystem.setProperties(props);\r\n\t\t} catch (IOException e) {\r\n\t\t\tthrow new RuntimeException(\"Property file was not found: \" + file\r\n\t\t\t\t\t+ \"! It must be located in the CLASSPATH and \"\r\n\t\t\t\t\t+ \"either be named 'chord.properties' or its name \"\r\n\t\t\t\t\t+ \"be specified by -Dchord.properties.file='filename'\", e);\r\n\t\t} catch (NullPointerException e) {\r\n\t\t\tthrow new RuntimeException(\"Property file was not found: \" + file\r\n\t\t\t\t\t+ \"! It must be located in the CLASSPATH and \"\r\n\t\t\t\t\t+ \"either be named 'chord.properties' or its name \"\r\n\t\t\t\t\t+ \"be specified by -Dchord.properties.file='filename'\", e);\r\n\t\t}\r\n\r\n\t}", "private void LoadConfigFromClasspath() throws IOException \n {\n InputStream is = this.getClass().getClassLoader().getResourceAsStream(\"lrs.properties\");\n config.load(is);\n is.close();\n\t}", "public static String extractFromPropertiesFile(String key) throws IOException {\n\t\tFileInputStream fis = new FileInputStream(\"./env.properties\");\n\t\tProperties prop = new Properties();\n\t\tprop.load(fis);\t\n\t\treturn prop.getProperty(key);\n\t}", "public Properties initProperties() {\r\n\t\tprop = new Properties();\r\n\t\ttry {\r\n\t\t\tFileInputStream fis = new FileInputStream(\"./src/main/java/com/automation/qe/config/config.properties\");\r\n\t\t\tprop.load(fis);\r\n\t\t} catch (FileNotFoundException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t} catch (IOException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\treturn prop;\r\n\t}", "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 static Properties load(String basedir, boolean bServer)\n throws Exception {\n if (!basedir.endsWith(File.separator)) {\n basedir = basedir + File.separator;\n }\n \n Properties prop = null;\n String amConfigProperties = basedir +\n SetupConstants.AMCONFIG_PROPERTIES;\n File file = new File(amConfigProperties);\n if (file.exists()) {\n prop = new Properties();\n InputStream propIn = new FileInputStream(amConfigProperties);\n try {\n prop.load(propIn);\n } finally {\n propIn.close();\n }\n SystemProperties.initializeProperties(prop);\n } else {\n isBootstrap = true;\n BootstrapData bData = new BootstrapData(basedir);\n prop = getConfiguration(bData, true, bServer);\n }\n \n return prop;\n }", "private void loadSystemMessages() {\n // As a back-up, load the messages from the class path\n LOGGER.warn(null, MODULE_NAME, \"Loading message-properties file from class path\");\n systemMessages = ResourceBundle.getBundle(\"messages\");\n }", "private AppConfigLoader() {\r\n\r\n\t\tProperties appConfigPropertySet = new Properties();\r\n\t\tProperties envConfigPropertySet = new Properties();\r\n\r\n\t\ttry {\r\n\r\n\t\t\t// read properties file\r\n\t\t\tInputStream appConfigPropertyStream = AppConfigLoader.class\r\n\t\t\t\t\t.getResourceAsStream(\"/config/baseAppConfig.properties\");\r\n\t\t\tappConfigPropertySet.load(appConfigPropertyStream);\r\n\r\n\t\t\tInputStream envConfigPropertyStream = null;\r\n\r\n\t\t\t// check if current environment is defined (QA, Integration or Staging)\r\n\t\t\tif (System.getProperty(\"environment\") != null) {\r\n\t\t\t\tenvConfigPropertyStream = AppConfigLoader.class\r\n\t\t\t\t\t\t.getResourceAsStream(\"/config/\" + System.getProperty(\"environment\") + \"/appConfig.properties\");\r\n\t\t\t\tSystem.out.println(\"********'ENVIRONMENT Details taken from Runtime'********\");\r\n\t\t\t\tSystem.out.println(\"********'\" + System.getProperty(\"environment\") + \" ENVIRONMENT'********\");\r\n\t\t\t\tenvironment = System.getProperty(\"environment\");\r\n\t\t\t} else {\r\n\t\t\t\tenvConfigPropertyStream = AppConfigLoader.class.getResourceAsStream(\r\n\t\t\t\t\t\t\"/config/\" + appConfigPropertySet.getProperty(\"CurrentEnvironment\") + \"/appConfig.properties\");\r\n\t\t\t\tSystem.out.println(\"********'ENVIRONMENT Details taken from Baseapp config property file'********\");\r\n\t\t\t\tSystem.out.println(\r\n\t\t\t\t\t\t\"********'\" + appConfigPropertySet.getProperty(\"CurrentEnvironment\") + \" ENVIRONMENT'********\");\r\n\t\t\t\tenvironment = appConfigPropertySet.getProperty(\"CurrentEnvironment\");\r\n\t\t\t}\r\n\r\n\t\t\tenvConfigPropertySet.load(envConfigPropertyStream);\r\n\r\n\t\t\tthis.sampleURL = envConfigPropertySet.getProperty(\"SampleUrl\");\r\n\t\t\tthis.sampleAPIURL = envConfigPropertySet.getProperty(\"SampleAPIUrl\");\r\n\r\n\t\t\tthis.sampleDbConnectionString = envConfigPropertySet.getProperty(\"SampleConnectionString\");\r\n\r\n\t\t\tenvConfigPropertyStream.close();\r\n\t\t\tappConfigPropertyStream.close();\r\n\r\n\t\t} catch (IOException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}", "String getEnvironmentProperty(String key);", "private synchronized void readProperties()\n {\n \n String workPath = \"webserver\";\n try\n {\n workPath = (String) SageTV.api(\"GetProperty\", new Object[]{\"nielm/webserver/root\",\"webserver\"});\n }\n catch (InvocationTargetException e)\n {\n System.out.println(e);\n }\n \n // check if called within 30 secs (to prevent to much FS access)\n if (fileLastReadTime + 30000 > System.currentTimeMillis())\n {\n return;\n }\n\n // check if file has recently been loaded\n File propsFile=new File(workPath,\"extenders.properties\");\n if (fileLastReadTime >= propsFile.lastModified())\n {\n return;\n }\n\n if (propsFile.canRead())\n {\n BufferedReader in = null;\n contextNames.clear();\n try\n {\n in = new BufferedReader(new FileReader(propsFile));\n String line;\n Pattern p = Pattern.compile(\"([^=]+[^=]*)=(.*)\");\n while (null != (line = in.readLine()))\n {\n line = line.trim();\n if ((line.length() > 0) && (line.charAt(0) != '#'))\n {\n Matcher m =p.matcher(line.trim());\n if (m.matches())\n {\n contextNames.put(m.group(1).trim(), m.group(2).trim());\n }\n else\n {\n System.out.println(\"Invalid line in \"+propsFile+\"\\\"\"+line+\"\\\"\");\n }\n }\n }\n fileLastReadTime=System.currentTimeMillis();\n\n }\n catch (IOException e)\n {\n System.out.println(\"Exception occurred trying to load properties file: \"+propsFile+\"-\" + e);\n }\n finally\n {\n if (in != null)\n {\n try\n {\n in.close();\n }\n catch (IOException e) {}\n }\n }\n } \n }", "public Map<String, String> fetchPropertyFromFile()\n {\n Map<String, String> components = new HashMap<>();\n Properties props = new Properties();\n InputStream in = null;\n try {\n in = new FileInputStream(\"/slog/properties/LogAnalyzer.properties\");\n props.load(in);\n in.close();\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n }\n\n catch (IOException e) {\n e.printStackTrace();\n }\n// Add component config , logname RegEx pattern to a Map. This map will be used to search matching files and forming logstash command\n for (String key : props .stringPropertyNames())\n {\n System.out.println(key + \" = \" + props .getProperty(key));\n components.put (key, props.getProperty(key));\n }\n\n return components;\n }", "@Override\n\tpublic String getProperty(String property)\n\t{\n\t\tString value = super.getProperty(property.trim());\n\t\tif (value == null)\n\t\t\treturn null;\n\t\t\n\t\taddRequestedProperty(property, value);\n\t\t\t\t\n\t\tint i1 = value.indexOf(\"<property:\");\n\t\twhile (i1 >= 0)\n\t\t{\n\t\t\tint i2 = value.substring(i1).indexOf(\">\")+i1;\n\t\t\tif (i2 < 0)\n\t\t\t\ti2 = value.length();\n\t\t\t\n\t\t\tif (i2 > i1+10)\n\t\t\t{\n\t\t\t\tString p = value.substring(i1+10, i2);\n\t\t\t\tif (super.containsKey(p))\n\t\t\t\t{\n\t\t\t\t\tString v = super.getProperty(p);\n\t\t\t\t\tvalue = value.substring(0,i1)+v+value.substring(i2+1);\n\t\t\t\t} \n\t\t\t\telse\n\t\t\t\t\treturn \"ERROR: Property \"+p+\" is not specified in the properties file\";\n\t\t\t}\n\t\t\ti1 = value.indexOf(\"<property:\");\n\t\t}\n\n\t\ti1 = value.indexOf(\"<env:\");\n\t\twhile (i1 >= 0)\n\t\t{\n\t\t\tint i2 = value.indexOf(\">\");\n\t\t\tif (i2 > i1+5)\n\t\t\t{\n\t\t\t\tString p = value.substring(i1+5, i2);\n\t\t\t\tString v = System.getenv(p);\n\t\t\t\tif (v != null)\n\t\t\t\t\tvalue = value.substring(0,i1)+v+value.substring(i2+1);\n\t\t\t\telse\n\t\t\t\t\treturn \"ERROR: Property \"+p+\" is not specified in the user's environment\";\n\t\t\t}\n\t\t\ti1 = value.indexOf(\"<env:\");\n\t\t}\n\n\t\treturn value.trim();\n\t}", "public static TerminalProperties getGlobalTerminalProperties() {\n return globalTerminalProperties;\n }", "@Override\n public SystemProperties getSystemProperties() {\n return null;\n }", "public static String getConfigFileLocation(String propertyFilePath) {\n String fileLoc = System.getProperty(\"user.dir\") + propertyFilePath;\n return fileLoc.replace(\"/\", File.separator);\n }" ]
[ "0.68793607", "0.6731312", "0.67280823", "0.67097926", "0.659015", "0.65699965", "0.65064275", "0.6454742", "0.64145905", "0.6378353", "0.6366962", "0.62660086", "0.6259395", "0.62532294", "0.62406176", "0.620556", "0.62018776", "0.6194697", "0.6168184", "0.6168184", "0.6150256", "0.61401296", "0.61318225", "0.61107814", "0.6080737", "0.6080737", "0.6080119", "0.60501385", "0.60355556", "0.60028446", "0.60027874", "0.5981155", "0.5970615", "0.59683424", "0.59572566", "0.5951254", "0.5946953", "0.5936397", "0.5931497", "0.5927658", "0.59276015", "0.5917627", "0.59142894", "0.5908682", "0.5908041", "0.58981836", "0.58835816", "0.58797926", "0.5854509", "0.5851565", "0.5817585", "0.5816537", "0.58142596", "0.57927746", "0.5776393", "0.57701975", "0.5769195", "0.57556415", "0.5738407", "0.5727242", "0.5723121", "0.5702441", "0.570072", "0.5691767", "0.5689485", "0.56770015", "0.567412", "0.56441224", "0.56424713", "0.56242585", "0.56239897", "0.5613262", "0.56125164", "0.55946034", "0.55922824", "0.5575816", "0.5569242", "0.556212", "0.55594677", "0.5546816", "0.55456483", "0.55323356", "0.55251473", "0.55250984", "0.55233645", "0.55227417", "0.55197376", "0.5511446", "0.5510915", "0.5509369", "0.55081266", "0.5496198", "0.54920727", "0.54919153", "0.5486237", "0.5477381", "0.5477142", "0.54637253", "0.5458458", "0.54526514" ]
0.7388867
0
Initialize the store and set the directory
private void init() { // check system property if (System.getProperty(TACOS_HOME) != null) { File customHome = new File(System.getProperty(TACOS_HOME)); if (initHome(customHome)) { homeDir = customHome; logger.info("Using custom home directory ('" + homeDir + "')"); return; } } // custom home directory not available (or failed to initialize) File defaultHome = new File(System.getProperty(DEFAULT_HOME), ".tacos"); if (initHome(defaultHome)) { homeDir = defaultHome; logger.info("Using default home directory ('" + homeDir + "')"); return; } // fallback if everything goes wrong logger.warn("Using temporary directory to store files"); homeDir = new File(System.getProperty("java.io.tmpdir"), ".tacos"); initHome(homeDir); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static void initDirectories() {\n String storeName = System.getProperty(USER_DIR)\n + File.separator\n + QVCSConstants.QVCS_META_DATA_DIRECTORY\n + File.separator\n + QVCSConstants.QVCS_FILEID_STORE_NAME\n + \".dat\";\n File storeFile = new File(storeName);\n if (storeFile.exists()) {\n storeFile.delete();\n }\n deleteAuthenticationStore();\n initAuthenticationStore();\n\n deleteRoleProjectViewStore();\n initRoleProjectViewStore();\n\n initProjectProperties();\n }", "private void initializeStore()\r\n {\r\n log.debug(\"initializing MongoStore\");\r\n try (InputStream is = getClass().getClassLoader().getResourceAsStream(\"visualharvester.properties\"))\r\n {\r\n final Properties properties = new Properties();\r\n properties.load(is);\r\n\r\n host = properties.get(\"mongo.host\").toString();\r\n final String portString = properties.get(\"mongo.port\").toString();\r\n port = Integer.valueOf(portString).intValue();\r\n database = properties.get(\"mongo.database\").toString();\r\n collection = properties.get(\"mongo.collection\").toString();\r\n\r\n }\r\n catch (final IOException e)\r\n {\r\n log.error(\"Could not open properties file, using defaults\", e);\r\n host = \"localhost\";\r\n port = 27017;\r\n database = \"visualdb\";\r\n collection = \"visualcollection\";\r\n }\r\n\r\n store = new MongoStorage(host, port, database, collection);\r\n\r\n }", "private void initializeStoreDirectories() {\n LOG.info(\"Initializing side input store directories.\");\n\n stores.keySet().forEach(storeName -> {\n File storeLocation = getStoreLocation(storeName);\n String storePath = storeLocation.toPath().toString();\n if (!isValidSideInputStore(storeName, storeLocation)) {\n LOG.info(\"Cleaning up the store directory at {} for {}\", storePath, storeName);\n new FileUtil().rm(storeLocation);\n }\n\n if (isPersistedStore(storeName) && !storeLocation.exists()) {\n LOG.info(\"Creating {} as the store directory for the side input store {}\", storePath, storeName);\n storeLocation.mkdirs();\n }\n });\n }", "public File getStoreDir();", "public void init() {\n LOG.info(\"Initializing side input stores.\");\n\n initializeStoreDirectories();\n }", "public Storage() {\n\t\tstorageReader = new StorageReader();\n\t\tstorageWriter = new StorageWriter();\n\t\tdirectoryManager = new DirectoryManager();\n\n\t\tFile loadedDirectory = storageReader.loadDirectoryConfigFile(FILENAME_DIRCONFIG);\n\t\tif (loadedDirectory != null) {\n\t\t\tif (directoryManager.createDirectory(loadedDirectory) == true) {\n\t\t\t\tdirectory = loadedDirectory;\n\t\t\t\tSystem.out.println(\"{Storage} Directory loaded | \" + directory.getAbsolutePath());\n\t\t\t} else { //loaded directory was invalid or could not be created\n\t\t\t\tdirectoryManager.createDirectory(DEFAULT_DIRECTORY);\n\t\t\t\tdirectory = DEFAULT_DIRECTORY;\n\t\t\t}\n\t\t} else { //directory config file was not found\n\t\t\tdirectoryManager.createDirectory(DEFAULT_DIRECTORY);\n\t\t\tdirectory = DEFAULT_DIRECTORY;\n\t\t}\n\t}", "public void init() {\n // the config string contains just the asset store directory path\n //set baseDir?\n this.initialized = true;\n }", "public void init(Profile p) {\n\t\tString s = p.getParameter(PersistentDeliveryService.PERSISTENT_DELIVERY_BASEDIR, null);\n\t\tif(s == null) {\n\t\t\ts = \".\" + File.separator + \"PersistentDeliveryStore\";\n\t\t}\n\n\t\tbaseDir = new File(s);\n\t\tif(!baseDir.exists()) {\n\t\t\tbaseDir.mkdir();\n\t\t}\n\t}", "public StorageManager() {\n makeDirectory();\n }", "public void init(){\n\t\ttry{\n\t\t\tFile file=new File(\"c:/EasyShare/setting/dir.es\");\n\t\t\tif(!file.exists()){\n\t\t\t\tfile.getParentFile().mkdirs();\n\t\t\t\tfile.createNewFile();\n\n\t\t\t\t\n\t\t\t\t}\n\t\t\t}catch (Exception e) {\n\t\t\t}\n\t}", "public void init( ){\n\t filepath = getServletContext().getContextPath();\r\n\tappPath = getServletContext().getRealPath(SAVE_DIR);\r\n\t \r\n\t }", "@Override\n public void initialize(final Instance _instance,\n final Store _store)\n throws EFapsException\n {\n super.initialize(_instance, _store);\n\n final StringBuilder fileNameTmp = new StringBuilder();\n\n final String useTypeIdStr = getStore().getResourceProperties().get(VFSStoreResource.PROPERTY_USE_TYPE);\n if (\"true\".equalsIgnoreCase(useTypeIdStr)) {\n fileNameTmp.append(getInstance().getType().getId()).append(\"/\");\n }\n\n final String numberSubDirsStr = getStore().getResourceProperties().get(\n VFSStoreResource.PROPERTY_NUMBER_SUBDIRS);\n if (numberSubDirsStr != null) {\n final long numberSubDirs = Long.parseLong(numberSubDirsStr);\n final String pathFormat = \"%0\"\n + Math.round(Math.log10(numberSubDirs) + 0.5d)\n + \"d\";\n fileNameTmp.append(String.format(pathFormat,\n getInstance().getId() % numberSubDirs))\n .append(\"/\");\n }\n fileNameTmp.append(getInstance().getType().getId()).append(\".\").append(getInstance().getId());\n this.storeFileName = fileNameTmp.toString();\n\n final String numberBackupStr = getStore().getResourceProperties().get(VFSStoreResource.PROPERTY_NUMBER_BACKUP);\n if (numberBackupStr != null) {\n this.numberBackup = Integer.parseInt(numberBackupStr);\n }\n\n if (this.manager == null) {\n try {\n DefaultFileSystemManager tmpMan = null;\n if (getStore().getResourceProperties().containsKey(Store.PROPERTY_JNDINAME)) {\n final InitialContext initialContext = new InitialContext();\n final Context context = (Context) initialContext.lookup(\"java:comp/env\");\n final NamingEnumeration<NameClassPair> nameEnum = context.list(\"\");\n while (nameEnum.hasMoreElements()) {\n final NameClassPair namePair = nameEnum.next();\n if (namePair.getName().equals(getStore().getResourceProperties().get(\n Store.PROPERTY_JNDINAME))) {\n tmpMan = (DefaultFileSystemManager) context.lookup(\n getStore().getResourceProperties().get(Store.PROPERTY_JNDINAME));\n break;\n }\n }\n }\n if (tmpMan == null && this.manager == null) {\n this.manager = evaluateFileSystemManager();\n }\n } catch (final NamingException e) {\n throw new EFapsException(VFSStoreResource.class, \"initialize.NamingException\", e);\n }\n }\n }", "private void initializeStoreFromPersistedData() throws IOException\r\n {\r\n loadKeys();\r\n\r\n if (keyHash.isEmpty())\r\n {\r\n dataFile.reset();\r\n }\r\n else\r\n {\r\n final boolean isOk = checkKeyDataConsistency(false);\r\n if (!isOk)\r\n {\r\n keyHash.clear();\r\n keyFile.reset();\r\n dataFile.reset();\r\n log.warn(\"{0}: Corruption detected. Resetting data and keys files.\", logCacheName);\r\n }\r\n else\r\n {\r\n synchronized (this)\r\n {\r\n startupSize = keyHash.size();\r\n }\r\n }\r\n }\r\n }", "void setupAppState() {\n // Attempt to load existing config\n app_state = new AppState();\n app_state.loadConfiguration();\n\n // Force user to select a folder where journal will be stored (if not selected already)\n if (!app_state.configurationExists()) {\n DirectoryChooser directory_chooser = new DirectoryChooser();\n directory_chooser.setTitle(\"Journal location\");\n\n // We have to use new window\n StackPane root = new StackPane();\n Stage stage = new Stage();\n stage.setTitle(\"New Stage Title\");\n stage.setScene(new Scene(root, 150, 150));\n\n File selected_directory = directory_chooser.showDialog(stage.getScene().getWindow());\n if (selected_directory != null) {\n Path dir = selected_directory.toPath();\n app_state.changeConfiguration(dir.toString(), \"Journal\");\n } else {\n Helpers.alertErrorExit(\"No journal directory was selected!\");\n }\n\n stage.close();\n }\n\n app_state.loadTree();\n TreeItem<FileTree> root = new TreeItem<>(app_state.file_tree);\n note_tree.setRoot(root);\n\n try {\n fillTreeView(root);\n } catch (IOException e) {\n Helpers.alertErrorExit(\"Couldn't load a note image!\");\n }\n }", "public void setDataDirectory(String dataDirectory) {\n this.dataDirectory = dataDirectory;\n }", "public FileStorage(File path) {\n dataFolder = path;\n }", "private synchronized void initAtomStore() {\n if (atomStore != null) {\n return;\n }\n\n atomStore = new PersistedAtomStore(this);\n }", "@Override\n public void Init() {\n strRemoteDownloadPath = strBasePath + (\"serialize/to/\");\n strRemoteUploadPath = strBasePath + (\"serialize/from/\");\n new File(strRemoteDownloadPath).mkdirs();\n new File(strRemoteUploadPath).mkdirs();\n }", "private void initializeFileSystem(final IndexedDiskCacheAttributes cattr)\r\n {\r\n this.rafDir = cattr.getDiskPath();\r\n log.info(\"{0}: Cache file root directory: {1}\", logCacheName, rafDir);\r\n }", "private void initDirectoryService(File workDir) {\n if (!workDir.exists()) {\n boolean dirsCreated = workDir.mkdirs();\n if (!dirsCreated) {\n logger.debug(\"Not all directories could be created. \" + workDir.getAbsolutePath());\n }\n }\n /*\n WhydahConfig fCconfig = new WhydahConfig();\n if (fCconfig.getProptype().equals(\"FCDEV\")) {\n dc = \"WHYDAH\";\n } else if (fCconfig.getProptype().equals(\"DEV\")) {\n dc = \"WHYDAH\";\n } else {\n dc = \"WHYDAH\";\n }\n */\n init(workDir.getPath());\n\n // And start the identity\n // service.startup();\n }", "protected void loadStore() throws IOException {\n // auto create starting directory if needed\n if (!fileStore.exists()) {\n LOG.debug(\"Creating filestore: {}\", fileStore);\n File parent = fileStore.getParentFile();\n if (parent != null && !parent.exists()) {\n boolean mkdirsResult = parent.mkdirs();\n if (!mkdirsResult) {\n LOG.warn(\"Cannot create the filestore directory at: {}\", parent);\n }\n }\n boolean created = FileUtil.createNewFile(fileStore);\n if (!created) {\n throw new IOException(\"Cannot create filestore: \" + fileStore);\n }\n }\n\n LOG.trace(\"Loading to 1st level cache from state filestore: {}\", fileStore);\n\n cache.clear();\n try (Scanner scanner = new Scanner(fileStore, null, STORE_DELIMITER)) {\n while (scanner.hasNext()) {\n String line = scanner.next();\n int separatorIndex = line.indexOf(KEY_VALUE_DELIMITER);\n String key = line.substring(0, separatorIndex);\n String value = line.substring(separatorIndex + KEY_VALUE_DELIMITER.length());\n cache.put(key, value);\n }\n } catch (IOException e) {\n throw RuntimeCamelException.wrapRuntimeCamelException(e);\n }\n\n LOG.debug(\"Loaded {} to the 1st level cache from state filestore: {}\", cache.size(), fileStore);\n }", "public void initDataSource(String path) throws IOException {\n File file = new File(path);\n if (!file.exists()) {\n Path dirPath = Paths.get(PATH);\n Files.createDirectories(dirPath);\n file.createNewFile();\n }\n }", "public void initPersistence (){\n\t\tif (!this._onAppInit){\n\t\t\t/*\n\t\t\t * Evita stackoverflow\n\t\t\t */\n\t\t\tcloseActiveStoreData ();\n\t\t}\n\t\tsetDatastoreProperties ();\n\t\tfinal Properties properties = this._dataStoreEnvironment.getDataStoreProperties ();\n\t\tfinal PersistenceManagerFactory pmf =\n\t\t\t\t\t JDOHelper.getPersistenceManagerFactory(properties);\n\t\t\n//\t\tSystem.out.println (\"Setting persistent manager from \"+properties);\n\t\t\n\t\tthis.pm = pmf.getPersistenceManager();\n\t\t\n\t\tif (this.pm.currentTransaction().isActive ()){\n\t\t\tthis.pm.currentTransaction().commit();\n\t\t}\n\t\tthis.pm.currentTransaction().setOptimistic (false);\n//\t\tthis.pm.currentTransaction().begin();\n\t}", "protected void setStore(String store) {\n this.store = store;\n }", "void setup( File storeDir, Consumer<GraphDatabaseService> create );", "void setDirectory(File dir);", "private void initializeLocation() throws CoreException {\n \t\tif (location.toFile().exists()) {\n \t\t\tif (!location.toFile().isDirectory()) {\n \t\t\t\tString message = NLS.bind(CommonMessages.meta_notDir, location);\n \t\t\t\tthrow new CoreException(new Status(IStatus.ERROR, IRuntimeConstants.PI_RUNTIME, IRuntimeConstants.FAILED_WRITE_METADATA, message, null));\n \t\t\t}\n \t\t}\n \t\t//try infer the device if there isn't one (windows)\n \t\tif (location.getDevice() == null)\n \t\t\tlocation = new Path(location.toFile().getAbsolutePath());\n \t\tcreateLocation();\n \t\tinitialized = true;\n \t}", "private void initializeEmptyStore() throws IOException\r\n {\r\n this.keyHash.clear();\r\n\r\n if (!dataFile.isEmpty())\r\n {\r\n dataFile.reset();\r\n }\r\n }", "public boolean initStore(String dbname) {\n return true;\n }", "public File getDataStoreDir() {\n\t\treturn this.localDataStoreDir;\n\t}", "private static void initialization() {\n File installationDir = new File(Constants.INSTALL_DIRECTORY, \"docli\");\n if(installationDir.exists()) {\n // user file exists\n } else {\n String s = String.format(\"Installing files at %s\", Constants.INSTALL_DIRECTORY);\n display.display(s);\n installationDir.mkdir();\n try {\n File f = new File(installationDir, \"docli_database.db\");\n f.createNewFile();\n }catch (IOException e) {\n System.out.println(e.getMessage());\n }\n manager.executeDMLStatementSync(Constants.CREATE_TABLE_ITEM);\n }\n }", "public Store() {\r\n\t\tsuper();\r\n\t}", "public void init_store() {\r\n /* init inventory dictionary*/ \r\n System.out.println(\"Initializing Store\");\r\n dailyRollInventory.put(\"Egg roll\", MAX_ROLL_COUNT);\r\n dailyRollInventory.put(\"Jelly roll\", MAX_ROLL_COUNT);\r\n dailyRollInventory.put(\"Pastry roll\", MAX_ROLL_COUNT);\r\n dailyRollInventory.put(\"Sausage roll\", MAX_ROLL_COUNT);\r\n dailyRollInventory.put(\"Spring roll\", MAX_ROLL_COUNT);\r\n\r\n /* init totalRollSales for the month */\r\n totalRollSales.put(\"Egg roll\", 0.0);\r\n totalRollSales.put(\"Jelly roll\", 0.0);\r\n totalRollSales.put(\"Pastry roll\", 0.0);\r\n totalRollSales.put(\"Sausage roll\", 0.0);\r\n totalRollSales.put(\"Spring roll\", 0.0);\r\n\r\n /* init totalCustomerSales for the month */\r\n totalCustomerSales.put(\"Casual\", 0.0);\r\n totalCustomerSales.put(\"Business\", 0.0);\r\n totalCustomerSales.put(\"Catering\", 0.0);\r\n\r\n /* init daily customer sales */\r\n dailyCustomerSales.put(\"Casual\", 0.0);\r\n dailyCustomerSales.put(\"Business\", 0.0);\r\n dailyCustomerSales.put(\"Catering\", 0.0);\r\n \r\n }", "public void setDir(File dir) {\n this.dir = dir;\n }", "public void setPersistance() throws IOException {\n createDir(BLOBS);\n createDir(REMOVAL);\n createDir(INDEX);\n createDir(Main.ALL_BRANCHES);\n createDir(Main.ALL_COMMITS);\n createFile(MASTERBRANCH);\n createFile(HEADFILE);\n createFile(HEADNAME);\n }", "public TorrentState() {\n tempDir = System.getProperty(property) + \"AStreamOfTorrents\";\n }", "public void onStart() {\n FileWriteAheadLogManager wal = (FileWriteAheadLogManager)ctx.cache().context().wal();\n\n if (wal == null)\n return;\n\n this.wal = wal;\n\n SegmentRouter segmentRouter = wal.getSegmentRouter();\n\n if (segmentRouter.hasArchive())\n walFolders = new File[] {segmentRouter.getWalArchiveDir(), segmentRouter.getWalWorkDir()};\n else\n walFolders = new File[] {segmentRouter.getWalWorkDir()};\n }", "public void init() {\n\t\tfilePath = getServletContext().getInitParameter(\"file-upload\");\n\t\tcreateDirIfDoesntExist(filePath);\n\t\ttmpFilePath = getServletContext().getInitParameter(\"tmp-file-upload\");\n\t\tcreateDirIfDoesntExist(tmpFilePath);\n\t}", "private Store() {\n\t}", "public void createDataStore (){\n\t\tcloseActiveStoreData ();\n\t\tif (_usablePersistenceManager){\n\t\t\tclosePersistence ();\n\t\t}\n\t\tsetDatastoreProperties ();\n\t\tthis.pm = DataStoreUtil.createDataStore (getDataStoreEnvironment (), true);\n\t\t_usablePersistenceManager = true;\n\t}", "public void setLocalCacheDirectory(String dir) {\n\t\tlocalCacheDirectory = dir;\n\t\tif(dir == null) {\n\t\t\tcache.clear();\n\t\t\tSystem.out.println(\"INFO: Local cache directory is disabled\");\n\t\t}\n\t\telse {\n\t\t\tString indexFileName = localCacheDirectory + File.separator + \"service.idx\"; \n\t\t\ttry {\n\t\t\t\tFile indexFile = new File(indexFileName);\n\t\n\t\t\t\tcache = new Properties();\t\t\t\t\n\t\t\t\n\t\t\t\tcache.load(new FileInputStream(indexFile));\n\t\n\t\t\t\tSystem.out.println(\"INFO: Cache has been initialized with \" + cache.size() + \" entries\");\n\t\t\t} catch(FileNotFoundException e) {\n\t\t\t\tSystem.err.println(\"ERROR: Cache index file \" + indexFileName + \" cannot be found\");\n\t\t\t\tlocalCacheDirectory = null;\n\t\t\t} catch(IOException e) {\n\t\t\t\tSystem.err.println(\"ERROR: Cache index file \" + indexFileName + \" has an invalid format\");\n\t\t\t\tlocalCacheDirectory = null;\n\t\t\t}\t\n\t\t}\n\t}", "public void initiateStore() {\r\n\t\tURLConnection urlConnection = null;\r\n\t\tBufferedReader in = null;\r\n\t\tURL dataUrl = null;\r\n\t\ttry {\r\n\t\t\tdataUrl = new URL(URL_STRING);\r\n\t\t\turlConnection = dataUrl.openConnection();\r\n\t\t\tin = new BufferedReader(new InputStreamReader(urlConnection.getInputStream()));\r\n\t\t\tString inputLine;\r\n\t\t\twhile ((inputLine = in.readLine()) != null) {\r\n\t\t\t\tString[] splittedLine = inputLine.split(\";\");\r\n\t\t\t\t// an array of 4 elements, the fourth element\r\n\t\t\t\t// the first three elements are the properties of the book.\r\n\t\t\t\t// last element is the quantity.\r\n\t\t\t\tBook book = new Book();\r\n\t\t\t\tbook.setTitle(splittedLine[0]);\r\n\t\t\t\tbook.setAuthor(splittedLine[1]);\r\n\t\t\t\tBigDecimal decimalPrice = new BigDecimal(splittedLine[2].replaceAll(\",\", \"\"));\r\n\t\t\t\tbook.setPrice(decimalPrice);\r\n\t\t\t\tfor(int i=0; i<Integer.parseInt(splittedLine[3]); i++)\r\n\t\t\t\t\tthis.addBook(book);\r\n\t\t\t}\r\n\r\n\t\t} catch (Exception e) {\r\n\t\t\te.printStackTrace();\r\n\t\t} finally {\r\n\t\t\ttry {\r\n\t\t\t\tif(!in.equals(null)) in.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}\r\n\t}", "public void setup() {\n\t\tif(!plugin.getDataFolder().exists()) {\n\t\t\tplugin.getDataFolder().mkdir();\n\t\t}\n\n\t\t// Create main file\n\t\tString FileLocation = plugin.getDataFolder().toString() + File.separator + \"Storage\" + \".yml\";\n\t\tFile tmp = new File(FileLocation);\n\t\tstoragefile = tmp;\n\t\t// Check if file exists\n\t\tif (!storagefile.exists()) {\n\t\t\ttry {\n\t\t\t\tstoragefile.createNewFile();\n\t\t\t}catch(IOException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t\tBukkit.getServer().getConsoleSender().sendMessage(net.md_5.bungee.api.ChatColor.RED + \"Storage file unable to be created!\");\n\t\t\t}\n\t\t}\n\t\tstoragecfg = YamlConfiguration.loadConfiguration(storagefile);\n\t\tcreateStorageValues();\n\t}", "@Override\r\n\t\tpublic void setDir(String dir)\r\n\t\t\t{\n\t\t\t\t\r\n\t\t\t}", "void resetStore() {\n File storeFile = new File(getStoreName());\n if (storeFile.exists()) {\n storeFile.delete();\n }\n }", "public HWDiskStore() {\n this.diskStore = new oshi.hardware.HWDiskStore();\n }", "public void init() {\n File file = new File(FILE);\n if (!file.exists()) {\n File file2 = new File(file.getParent());\n if (!file2.exists()) {\n file2.mkdirs();\n }\n }\n if (this.accessFile == null) {\n try {\n this.accessFile = new RandomAccessFile(FILE, \"rw\");\n } catch (FileNotFoundException unused) {\n }\n }\n }", "private void initPath() {\n this.IniFile = new IniFile();\n String configPath = this.getApplicationContext().getFilesDir()\n .getParentFile().getAbsolutePath();\n if (configPath.endsWith(\"/\") == false) {\n configPath = configPath + \"/\";\n }\n this.appIniFile = configPath + constants.USER_CONFIG_FILE_NAME;\n }", "protected static void setKeyStorePath(String keyStorePath) {\n Program.keyStorePath = keyStorePath;\n Program.authType = AUTH_TYPE.CERT;\n }", "@Before\n public void init(){\n spaceCapacity = 20;\n fileSystem = new FileSystem(spaceCapacity);\n }", "public void setRootDir(String rootDir);", "public interface DataStoreManager {\n\n\t/**\n\t * Create a database file.\n\t * \n\t * If only a file name is given, the database will create in %USER_HOME%/zoodb on Windows \n\t * or ~/zoodb on Linux/UNIX.\n\t * \n\t * If a full path is given, the full path will be used instead.\n\t * \n * Any necessary parent folders are created automatically.\n\n * It is recommended to use <code>.zdb</code> as file extension, for example \n * <code>myDatabase.zdb</code>.\n * \n\t * @param dbName The database file name or path \n\t * @see ZooJdoProperties#ZooJdoProperties(String)\n\t */\n\tvoid createDb(String dbName);\n\t\n\t/**\n\t * Check if a database exists. This checks only whether the file exists, not whether it is a \n\t * valid database file.\n\t * \n\t * @param dbName The database file name or path \n\t * @return <code>true</code> if the database exists.\n\t */\n\tboolean dbExists(String dbName);\n\n /**\n * Delete a database(-file).\n * @param dbName The database file name or path \n * @return {@code true} if the database could be removed, otherwise false\n */\n\tboolean removeDb(String dbName);\n\t\n /**\n * \n * @return The default database folder.\n */\n\tString getDefaultDbFolder();\n\t\n\t/**\n\t * Calculates the full path for the given database name, whether the database exists or not.\n\t * @param dbName The database file name or path \n\t * @return The full path of the database given by <code>dbName</code>.\n\t */\n\tString getDbPath(String dbName);\n}", "public synchronized void writeStore() {\n FileOutputStream fileStream = null;\n\n try {\n File storeFile = new File(getStoreName());\n File oldStoreFile = new File(oldStoreName);\n\n if (oldStoreFile.exists()) {\n oldStoreFile.delete();\n }\n\n if (storeFile.exists()) {\n storeFile.renameTo(oldStoreFile);\n }\n\n File newStoreFile = new File(getStoreName());\n\n // Make sure the needed directories exists\n if (!newStoreFile.getParentFile().exists()) {\n newStoreFile.getParentFile().mkdirs();\n }\n\n fileStream = new FileOutputStream(newStoreFile);\n ObjectOutputStream outStream = new ObjectOutputStream(fileStream);\n outStream.writeObject(store);\n } catch (Exception e) {\n LOGGER.log(Level.WARNING, Utility.expandStackTraceToString(e));\n } finally {\n if (fileStream != null) {\n try {\n fileStream.close();\n } catch (IOException e) {\n LOGGER.log(Level.WARNING, Utility.expandStackTraceToString(e));\n }\n }\n }\n }", "public void initDatabase() {\n Datastore mongoDataStore = DatabaseHandler.getInstance().getMongoDataStore();\n initUsers();\n initAccounts();\n mongoDataStore.save(users);\n }", "static private void initSystem() {\n // Ensure the file-based PatchStore provider is available\n if ( ! PatchStore.isRegistered(DPS.PatchStoreFileProvider) ) {\n FmtLog.warn(LOG, \"PatchStoreFile provider not registered\");\n PatchStore ps = new PatchStoreFile();\n if ( ! DPS.PatchStoreFileProvider.equals(ps.getProviderName())) {\n FmtLog.error(LOG, \"PatchStoreFile provider name is wrong (expected=%s, got=%s)\", DPS.PatchStoreFileProvider, ps.getProviderName());\n throw new DeltaConfigException();\n }\n PatchStore.register(ps);\n }\n \n // Default the log provider to \"file\"\n if ( PatchStore.getDefault() == null ) {\n //FmtLog.warn(LOG, \"PatchStore default not set.\");\n PatchStore.setDefault(DPS.PatchStoreFileProvider);\n }\n }", "public PathXFileManager(PathXPanel initView, PathXDataModel initModel, PathXMiniGame initMiniGame)\n {\n // KEEP IT FOR LATER\n miniGame = initMiniGame;\n \n // KEEP THESE REFERENCE FOR LATER\n view = initView;\n model = initModel;\n \n fileFilter = new XMLFilter();\n \n // NOTHING YET\n currentFile = null;\n currentFileName = null;\n saved = true;\n }", "public void initLoadingFileEnviroment() {\n // file init\n try {\n DiskFileItemFactory fileFactory = new DiskFileItemFactory();\n File filepath = new File(DATA_PATH);\n fileFactory.setRepository(filepath);\n this._uploader = new ServletFileUpload(fileFactory);\n\n } catch (Exception ex) {\n System.err.println(\"Error init new file environment. \" + ex.getMessage());\n }\n }", "private void initializeTargetDirectory()\n {\n if ( isFtpEnabled() )\n initializeRemoteTargetDirectory();\n else\n initializeLocalTargetDirectory(); \n }", "@Override\n public void init() throws ServletException {\n super.init();\n setConversationStore(ConversationStore.getInstance());\n setMessageStore(MessageStore.getInstance());\n setUserStore(UserStore.getInstance());\n setActivityStore(ActivityStore.getInstance());\n }", "private void setUpDirectories() {\r\n\t\tFile creation = new File(\"Creations\");\r\n\t\tFile audio = new File(\"Audio\");\r\n\t\tFile quiz = new File(\"Quiz\");\r\n\t\tFile temp = new File(\"Temp\");\r\n\r\n\t\tif (!creation.isDirectory()) {\r\n\t\t\tcreation.mkdir();\r\n\t\t}\r\n\t\tif (!audio.isDirectory()) {\r\n\t\t\taudio.mkdir();\r\n\t\t}\r\n\t\tif (!quiz.isDirectory()) {\r\n\t\t\tquiz.mkdir();\r\n\t\t}\r\n\t\tif (!temp.isDirectory()) {\r\n\t\t\ttemp.mkdir();\r\n\t\t}\r\n\r\n\t}", "public HWDiskStore(oshi.hardware.HWDiskStore diskStore) {\n this.diskStore = new oshi.hardware.HWDiskStore(diskStore);\n }", "public Store() {\n }", "public DiskArtifactStore(File root) {\n this.root = root;\n }", "public void setDir(File dir)\n {\n this.dir = dir;\n }", "private void setWorkDiretory() {\n\t\tthis.workDiretory = System.getProperty(\"user.dir\");\n\t}", "public FileManager(String directory) throws InitFailedException\n {\n fileLocation = new File(directory);\n\n // check if the directory actually exits\n if (fileLocation.isDirectory())\n {\n System.out.println(\"Providing files from directory: \"\n + fileLocation.getAbsolutePath());\n }\n else\n {\n System.out.println(\"Cannot find directory: \"\n + fileLocation.getAbsolutePath());\n throw new InitFailedException();\n }\n }", "@Before\n public void initTest() {\n tmpDir=new File(\"/tmp/luc/test\");\n //Setup System properties\n System.getProperties().remove(JNILoader.customPathKEY); //remove any \"old\" stuff\n System.setProperty(JNILoader.customPathKEY,tmpDir.getAbsolutePath());\n }", "private void createStore() {\n\n try {\n\n MailboxProtocolEnum curMbPrtcl = this.loginData.getMailboxProtocol();\n\n // Get a Properties and Session object\n Properties props = JavamailUtils.getProperties();\n\n // Trustmanager needed?\n if(curMbPrtcl.isUseOfSsl()) {\n\n MailSSLSocketFactory socketFactory = new MailSSLSocketFactory();\n socketFactory.setTrustManagers(new TrustManager[]\n { this.trustManager });\n\n props.put((\"mail.\" + curMbPrtcl.getProtocolId() + \".ssl.socketFactory\"),\n socketFactory);\n }\n\n Session session = Session.getInstance(props, null);\n session.setDebug(false);\n\n this.store = session.getStore(curMbPrtcl.getProtocolId());\n }\n catch(NoSuchProviderException e) {\n\n throw(new RuntimeException((\"Unknown Protocol: \" +\n this.loginData.getMailboxProtocol()), e));\n }\n catch(GeneralSecurityException gse) {\n\n throw(new RuntimeException((\"Security-problem: \" + gse.getMessage()),\n gse));\n }\n }", "public void setLocalStore(String localStore) {\n this.localStore = localStore;\n }", "public JStore()\n {\n //put code in here\n }", "public FilePlugin()\n {\n super();\n \n //create the data directory if it doesn't exist\n File dataDir = new File(FilenameUtils.dataDir);\n if(!dataDir.exists()) FilePersistenceUtils.makeDirs(dataDir);\n }", "public void setTemplateStore(TemplateStore store) {\n \t\tfTemplateStore= store;\n \t}", "@PostConstruct\n\tpublic void loadProperties() {\n\t\tproperties.put(PropertyKey.TRANSLATION_FILE_STORE, \"C:\\\\development\\\\projects\\\\mega-translator\\\\store\");\n\t}", "@PostConstruct\n public void init() {\n if(rootFolder==null) {\n String errorMessage = \"MediaLibrary could not be initialized: rootFolder is missing.\";\n LOG.error(errorMessage);\n throw new BeanCreationException(errorMessage);\n }\n if(!Files.isDirectory(rootFolder)) {\n String errorMessage = String.format(\"MediaLibrary could not be initialied: '%s' is not a directory.\", rootFolder);\n LOG.error(errorMessage);\n throw new BeanCreationException(errorMessage);\n }\n LOG.info(String.format(\"MediaLibrary initialied for folder '%s'.\", rootFolder));\n }", "public boolean setupFileSystem() {\n\t\tboolean success = false;\n\t\tthis.root = Paths.get(\"\").toAbsolutePath();\n\t\tthis.showNamedMessage(\"Client root path set to: \" + this.root.toString());\n\t\t\n\t\tthis.fileStorage = root.resolve(fileStorageDirName);\n\t\tthis.showNamedMessage(\"File storage set to: \" + this.fileStorage.toString());\n\n\t\ttry {\n\t\t\tFiles.createDirectory(fileStorage);\n\t\t\tthis.showNamedMessage(\"File storage directory did not exist:\"\n\t\t\t\t\t+ \" created \" + fileStorageDirName + \" in client root\"); \n\t\t} catch (java.nio.file.FileAlreadyExistsException eExist) {\n\t\t\tthis.showNamedMessage(\"File storage directory already exist:\"\n\t\t\t\t\t+ \" not doing anything with \" + fileStorageDirName + \" in client root\");\n\t\t} catch (IOException e) {\n\t\t\tthis.showNamedError(\"Failed to create file storage:\"\n\t\t\t\t\t+ e.getLocalizedMessage());\n\t\t}\n\n\t\tsuccess = true;\n\t\treturn success;\n\t}", "private void initKeystore(Properties props) throws KeyStoreInitException {\n\t\tkeystorePassword = props.getProperty(\"keystorePassword\");\n\t\tkeystoreLocation = props.getProperty(\"keystoreLocation\");\n\t\tsecretKeyAlias = props.getProperty(\"secretKeyAlias\");\n\n\t\ttry {\n\t\t\tks = loadKeyStore();\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t\tthrow new KeyStoreInitException(e.getMessage());\n\t\t} catch (KeyStoreException e) {\n\t\t\te.printStackTrace();\n\t\t\tthrow new KeyStoreInitException(e.getMessage());\n\t\t} catch (NoSuchAlgorithmException e) {\n\t\t\te.printStackTrace();\n\t\t\tthrow new KeyStoreInitException(e.getMessage());\n\t\t} catch (CertificateException e) {\n\t\t\te.printStackTrace();\n\t\t\tthrow new KeyStoreInitException(e.getMessage());\n\t\t}\n\t}", "public DirectoryFileLocator() {\r\n this(System.getProperty(\"user.dir\"));\r\n }", "private final void directory() {\n\t\tif (!this.plugin.getDataFolder().isDirectory()) {\n\t\t\tif (!this.plugin.getDataFolder().mkdirs()) {\n\t\t\t\tMain.SEVERE(\"Failed to create directory\");\n\t\t\t} else {\n\t\t\t\tMain.INFO(\"Created directory sucessfully!\");\n\t\t\t}\n\t\t}\n\t}", "public static void init()\n\t{\n\t\tusername2accesses.clear();\n\t\t//--- adds info.json in ./Home/Administrator for the system admin ---//\n\t\tfinal String adminAccessPath = Hierarchies.getSectionDir() + \"/\" + Hierarchies.getInfoFileName() + \".\" + Directories.getFileExt();\n\t\tfinal File adminAccessFile = new File(adminAccessPath);\n\t\tif (!adminAccessFile.exists())\n\t\t{\n\t\t\tfinal Access[] accesses = new Access[1];\n\t\t\taccesses[0] = new Access(\"admin\", Role.ADMINISTRATOR, null);\n\t\t\tfinal HierarchyItem hierarchyItem = new HierarchyItem(null, null, null, accesses);\n\t\t\tfinal String hierarchyItemAsJson = new Gson().toJson(hierarchyItem);\n\t\t\tFileIO.writeToFile(adminAccessPath, hierarchyItemAsJson);\n\t\t}\n\t\t//--- reads all JSON files recursively in ./Home/Administrator ---//\n\t\t//--- contents of JSON files will be processed to be cached in hash map username2accesses ---//\n\t\tfinal File file = new File(Hierarchies.getSectionDir());\n\t\tfinal Collection<File> jsonFiles = FileUtils.listFiles(file, new String[]{Directories.getFileExt()}, true);\n\t\tfor (File infoFile : jsonFiles) manage(infoFile, Op.STORE);\n\t}", "public Storage(String s){\n this.path=s;\n }", "public PersistentDataStore() {\n datastore = DatastoreServiceFactory.getDatastoreService();\n }", "public void setApplicationDir( String path ) {\r\n SharedPreferences preferences = PreferenceManager.getDefaultSharedPreferences(context);\r\n Editor editor = preferences.edit();\r\n editor.putString(LibraryConstants.PREFS_KEY_BASEFOLDER, path);\r\n editor.commit();\r\n resetManager();\r\n }", "public void setDir(File dir) {\n _sourceDir = dir;\n }", "public void initPath() {\r\n\t\tpath = new Path();\r\n\t}", "public SaveStore(String filename) {\r\n this.filename = filename;\r\n }", "private void initialize() throws IOException {\n // All of this node's files are kept in this directory.\n File dir = new File(localDir);\n if (!dir.exists()) {\n if (!dir.mkdirs()) {\n throw new IOException(\"Unable to create directory: \" +\n dir.toString());\n }\n }\n\n Collection<File> data = FileUtils.listFiles(dir,\n FileFilterUtils.trueFileFilter(),\n FileFilterUtils.trueFileFilter());\n String[] files = new String[data.size()];\n Iterator<File> it = data.iterator();\n for (int i = 0; it.hasNext(); i++) {\n files[i] = it.next().getPath().substring(dir.getPath().length() + 1);\n }\n\n StartupMessage msg = new StartupMessage(InetAddress.getLocalHost()\n .getHostName(), port, id, files);\n msg.send(nameServer, namePort);\n }", "public void setDir( final File dir )\n {\n m_dir = dir;\n }", "public void setSaveDirectory(String dir) {\r\n\t\tEmailServiceEJB.saveDirectory = dir;\r\n\t}", "public void setStorageLocation( String name ) throws IOException {\n\t \tlog.config( \"update Storage Location to: \"+name );\n\t\tPersistentData data = null;\n\t\ttry {\n\t\t\tdata = io.readState();\n\t\t} catch( ClassNotFoundException ex ) {\n\t\t\tlog.log( Level.SEVERE, ex.toString(), ex );\n\t\t\tdata = new PersistentData();\n\t\t}\n\t\tio.setFile( name );\n\t\tio.writeState(data);\n\t}", "public Storage(String filePath) {\n file = new File(filePath);\n try {\n file.getParentFile().mkdir();\n file.createNewFile();\n } catch (IOException e) {\n System.err.println(\"Unable to create file\");\n }\n }", "private void init()\n\t{\n\t\tif (_invData == null)\n\t\t\t_invData = new InvestigateStore.MappedStores();\n\t}", "public static void init() {\r\n if (MAIN_FOLDER.isDirectory()) {\r\n throw new GitletException(\"A Gitlet version-control system already \"\r\n + \"exists in the current directory.\");\r\n } else {\r\n MAIN_FOLDER.mkdirs();\r\n COMMIT_FOLDER.mkdirs();\r\n ADD_FOLDER.mkdirs();\r\n BLOB_FOLDER.mkdirs();\r\n Story story = new Story();\r\n story.saveStory();\r\n }\r\n }", "void store() {\n UserPreferences.setLogFileCount(Integer.parseInt(logFileCount.getText()));\n if (!agencyLogoPathField.getText().isEmpty()) {\n File file = new File(agencyLogoPathField.getText());\n if (file.exists()) {\n ModuleSettings.setConfigSetting(ReportBranding.MODULE_NAME, ReportBranding.AGENCY_LOGO_PATH_PROP, agencyLogoPathField.getText());\n }\n } else {\n ModuleSettings.setConfigSetting(ReportBranding.MODULE_NAME, ReportBranding.AGENCY_LOGO_PATH_PROP, \"\");\n }\n UserPreferences.setMaxSolrVMSize((int)solrMaxHeapSpinner.getValue());\n if (memField.isEnabled()) { //if the field could of been changed we need to try and save it\n try {\n writeEtcConfFile();\n } catch (IOException ex) {\n logger.log(Level.WARNING, \"Unable to save config file to \" + PlatformUtil.getUserDirectory() + \"\\\\\" + ETC_FOLDER_NAME, ex);\n }\n }\n }", "private void setupDefaultAsPerProperties()\n {\n /// Do the minimum of what App.init() would do to allow to run.\n Gui.mainFrame = new MainFrame();\n App.p = new Properties();\n App.loadConfig();\n System.out.println(App.getConfigString());\n Gui.progressBar = Gui.mainFrame.getProgressBar(); //must be set or get Nullptr\n\n // configure the embedded DB in .jDiskMark\n System.setProperty(\"derby.system.home\", App.APP_CACHE_DIR);\n\n // code from startBenchmark\n //4. create data dir reference\n App.dataDir = new File(App.locationDir.getAbsolutePath()+File.separator+App.DATADIRNAME);\n\n //5. remove existing test data if exist\n if (App.dataDir.exists()) {\n if (App.dataDir.delete()) {\n App.msg(\"removed existing data dir\");\n } else {\n App.msg(\"unable to remove existing data dir\");\n }\n }\n else\n {\n App.dataDir.mkdirs(); // create data dir if not already present\n }\n }", "private void setupDirectoryChooser(DirectoryChooser directoryChooser) \n {\n directoryChooser.setTitle(\"Select Directory to save Report\");\n\n // Set Initial Directory\n directoryChooser.setInitialDirectory(new File(System.getProperty(\"user.home\")));\n }", "public UserManager(final File directory) throws IOException {\n\n File userFile = FileUtils.getFile(directory, \"users\");\n this.userStore = new UserFile(userFile);\n\n File communityFile = FileUtils.getFile(directory, \"communities\");\n this.communityStore = new CommunityFile(communityFile);\n\n }", "public Directory() {\n files = new ArrayList<VipeFile>();\n sectors = new int[600];\n }", "public Storage(String filePath, String fileDirectory, Ui ui) {\r\n this.filePath = filePath;\r\n this.fileDirectory = fileDirectory;\r\n this.ui = ui;\r\n }", "public void init() {\n\n\t\tString rootdir = null;\n\t\ttry {\n\t\t\trootdir = ServletActionContext.getServletContext().getRealPath(\"/\");\n\t\t} catch (Exception ex) {\n\n\t\t}\n\n\t\tif (rootdir == null) {\n\t\t\trootdir = \"/Users/huangic/Documents/jetty-6.1.22/webapps/TransWeb\";\n\t\t}\n\n\t\tlogger.debug(rootdir);\n\t\tString classesdir = rootdir + \"/WEB-INF/classes/\";\n\t\tthis.xmlBatchRule = ReadXML(classesdir\n\t\t\t\t+ \"applicationContext-BatchRule.xml\");\n\t\tthis.xmlDB = ReadXML(classesdir + \"applicationContext-DB.xml\");\n\t\tthis.xmlSystem = ReadXML(classesdir + \"applicationContext-system.xml\");\n\n\t}", "@PostConstruct\n\tpublic void init() {\n\t\tif (!Files.isDirectory(Paths.get(configFilePath))) {\n\t\t\ttry {\n\t\t\t\tFiles.createDirectory(Paths.get(configFilePath));\n\t\t\t} catch (IOException e) {\n\t\t\t\tthrow new RuntimeException(\n\t\t\t\t\t\t\"can't create the folder for the configuration\", e);\n\t\t\t}\n\t\t}\n\t\t// schedule the watch service in repeating loop to look for modification\n\t\t// at the jambel configuration files\n\t\tconfigFilesWatchServiceExecutor.scheduleAtFixedRate(\n\t\t\t\tnew ConfigPathWatchService(configFilePath), 0L, 1L,\n\t\t\t\tTimeUnit.MILLISECONDS);\n\t}" ]
[ "0.70955616", "0.70461756", "0.69087607", "0.68074816", "0.6806186", "0.6716839", "0.6515835", "0.6414436", "0.63418597", "0.6286174", "0.62853706", "0.60974944", "0.6061208", "0.59073025", "0.590705", "0.5892949", "0.5875399", "0.5866709", "0.5858626", "0.5842463", "0.58319104", "0.58184874", "0.5804472", "0.577724", "0.57601523", "0.5750568", "0.57491374", "0.5742142", "0.5737818", "0.57125294", "0.57047415", "0.57007504", "0.56972283", "0.5683198", "0.5675608", "0.5668327", "0.5661594", "0.564425", "0.56397676", "0.56314814", "0.56249344", "0.5615397", "0.5612062", "0.5596973", "0.5596393", "0.5593165", "0.55684865", "0.5555379", "0.55534834", "0.55523497", "0.5534098", "0.552354", "0.5520394", "0.5507137", "0.55054665", "0.5504066", "0.5493196", "0.548245", "0.5478104", "0.5476866", "0.54735637", "0.54659367", "0.5462747", "0.54607713", "0.545788", "0.54534125", "0.5441863", "0.5435242", "0.5428892", "0.54228336", "0.5418568", "0.5411172", "0.5396068", "0.5394353", "0.53936285", "0.5392808", "0.53829575", "0.5382726", "0.53799087", "0.5377868", "0.5376631", "0.5375045", "0.5372546", "0.5370236", "0.5361061", "0.5353362", "0.5346998", "0.5346829", "0.5334838", "0.5334239", "0.53320855", "0.532803", "0.53238696", "0.53238654", "0.5319915", "0.531701", "0.5315223", "0.53104544", "0.530643", "0.52981967" ]
0.61431444
11
Initializes the configuration files and ensures that they are existing
private void initFiles() { try { File file = getConfigFile(); if (!file.exists()) { XmlFile.write(file, new SystemSettings()); } } catch (Exception ex) { logger.error("Failed to initialize settings file", ex); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@PostConstruct\n\tpublic void init() {\n\t\tif (!Files.isDirectory(Paths.get(configFilePath))) {\n\t\t\ttry {\n\t\t\t\tFiles.createDirectory(Paths.get(configFilePath));\n\t\t\t} catch (IOException e) {\n\t\t\t\tthrow new RuntimeException(\n\t\t\t\t\t\t\"can't create the folder for the configuration\", e);\n\t\t\t}\n\t\t}\n\t\t// schedule the watch service in repeating loop to look for modification\n\t\t// at the jambel configuration files\n\t\tconfigFilesWatchServiceExecutor.scheduleAtFixedRate(\n\t\t\t\tnew ConfigPathWatchService(configFilePath), 0L, 1L,\n\t\t\t\tTimeUnit.MILLISECONDS);\n\t}", "public void initialize() {\n if (!BungeeBan.getInstance().getDataFolder().exists()) {\n BungeeBan.getInstance().getDataFolder().mkdirs();\n }\n File file = this.getConfigurationFile();\n if (!file.exists()) {\n try {\n file.createNewFile();\n if (this.defaultConfig != null) {\n try (InputStream is = BungeeBan.getInstance().getResourceAsStream(this.defaultConfig);\n OutputStream os = new FileOutputStream(file)) {\n ByteStreams.copy(is, os);\n }\n }\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n this.reload();\n }", "private void init() throws IOException {\n if (Files.exists(getBaseConfigPath()) && !Files.isDirectory(getBaseConfigPath())) {\n throw new IOException(\"Base config path exists and is not a directory \" + getBaseConfigPath());\n }\n\n if (!Files.exists(getBaseConfigPath())) {\n Files.createDirectories(getBaseConfigPath());\n }\n\n\n if (Files.exists(nodeIdPath) && !Files.isRegularFile(nodeIdPath)) {\n throw new IOException(\"NodeId file is not a regular directory!\");\n }\n\n if (Files.exists(clusterNamePath) && !Files.isRegularFile(clusterNamePath)) {\n throw new IOException(\"Cluster name is not a regular directory!\");\n }\n\n if (!Files.isWritable(getBaseConfigPath())) {\n throw new IOException(\"Can't write to the base configuration path!\");\n }\n }", "private void init() {\r\n this.configMapping = ChannelConfigHolder.getInstance().getConfigs();\r\n if (!isValid(this.configMapping)) {\r\n SystemExitHelper.exit(\"Cannot load the configuations from the configuration file please check the channelConfig.xml\");\r\n }\r\n }", "private static synchronized void init() {\n if (CONFIG_VALUES != null) {\n return;\n }\n\n CONFIG_VALUES = new Properties();\n processLocalConfig();\n processIncludedConfig();\n }", "public static synchronized void initializeLogger() {\n\t\t\n\t try {\n\t\t String workingDir = System.getProperty(\"user.dir\");\n\t\t String fileName = workingDir + File.separator + \"config\" + File.separator + \"logging.properties\";\n\t\t \n\t\t FileInputStream fileInputStream = new FileInputStream(fileName);\n\t\t LogManager.getLogManager().readConfiguration(fileInputStream);\n\t\t \n\t } catch (IOException ex) {\n\t\t System.err.println(\"Failed to load logging.properlies, please check the file and the path:\" + ex.getMessage()); \n\t ex.printStackTrace();\n\t System.exit(0);\n\t }\n\t}", "private void configInit() {\r\n\t\tconfig = pluginInstance.getConfiguration();\r\n\t\tif (!new File(pluginInstance.getDataFolder().getPath() + File.separator + \"config.yml\")\r\n\t\t\t\t.exists()) {\r\n\t\t\tconfig.setProperty(\"reset-deathloc\", true);\r\n\t\t\tconfig.setProperty(\"use-iConomy\", true);\r\n\t\t\tconfig.setProperty(\"creation-price\", 10.0D);\r\n\t\t\tconfig.setProperty(\"deathtp-price\", 50.0D);\r\n\t\t\tconfig.setProperty(\"allow-tp\", true);\r\n\t\t\tconfig.setProperty(\"maxTombStone\", 0);\r\n\t\t\tconfig.setProperty(\"TombKeyword\", \"[Tomb]\");\r\n\t\t\tconfig.setProperty(\"use-tombAsSpawnPoint\", true);\r\n\t\t\tconfig.setProperty(\"cooldownTp\", 5.0D);\r\n\t\t\tconfig.setProperty(\"reset-respawn\", false);\r\n\t\t\tconfig.setProperty(\"maxDeaths\", 0);\r\n\t\t\tconfig.save();\r\n\t\t\tworkerLog.info(\"Config created\");\r\n\t\t}\r\n\t\tconfig.load();\r\n\t}", "public static void initialize() {\n // check to see if the name of an alternate configuration\n // file has been specified. This can be done, for example,\n // java -Dfilesys.conf=myfile.txt program-name parameter ...\n String propertyFileName = System.getProperty(\"filesys.conf\");\n if (propertyFileName == null)\n propertyFileName = \"filesys.conf\";\n Properties properties = new Properties();\n try {\n FileInputStream in = new FileInputStream(propertyFileName);\n properties.load(in);\n in.close();\n } catch (FileNotFoundException e) {\n System.err.println(PROGRAM_NAME + \": error opening properties file\");\n System.exit(EXIT_FAILURE);\n } catch (IOException e) {\n System.err.println(PROGRAM_NAME + \": error reading properties file\");\n System.exit(EXIT_FAILURE);\n }\n\n // get the root file system properties\n String rootFileSystemFilename =\n properties.getProperty(\"filesystem.root.filename\", \"filesys.dat\");\n String rootFileSystemMode =\n properties.getProperty(\"filesystem.root.mode\", \"rw\");\n\n // get the current process properties\n short uid = 1;\n try {\n uid = Short.parseShort(properties.getProperty(\"process.uid\", \"1\"));\n } catch (NumberFormatException e) {\n System.err.println(PROGRAM_NAME +\n \": invalid number for property process.uid in configuration file\");\n System.exit(EXIT_FAILURE);\n }\n\n short gid = 1;\n try {\n gid = Short.parseShort(properties.getProperty(\"process.gid\", \"1\"));\n } catch (NumberFormatException e) {\n System.err.println(PROGRAM_NAME +\n \": invalid number for property process.gid in configuration file\");\n System.exit(EXIT_FAILURE);\n }\n\n short umask = 0002;\n try {\n umask = Short.parseShort(\n properties.getProperty(\"process.umask\", \"002\"), 8);\n } catch (NumberFormatException e) {\n System.err.println(PROGRAM_NAME +\n \": invalid number for property process.umask in configuration file\");\n System.exit(EXIT_FAILURE);\n }\n\n String dir = \"/root\";\n dir = properties.getProperty(\"process.dir\", \"/root\");\n\n try {\n MAX_OPEN_FILES = Integer.parseInt(properties.getProperty(\n \"kernel.max_open_files\", \"20\"));\n } catch (NumberFormatException e) {\n System.err.println(PROGRAM_NAME +\n \": invalid number for property kernel.max_open_files in configuration file\");\n System.exit(EXIT_FAILURE);\n }\n\n try {\n ProcessContext.MAX_OPEN_FILES = Integer.parseInt(\n properties.getProperty(\"process.max_open_files\", \"10\"));\n } catch (NumberFormatException e) {\n System.err.println(PROGRAM_NAME +\n \": invalid number for property process.max_open_files in configuration file\");\n System.exit(EXIT_FAILURE);\n }\n\n // create open file array\n openFiles = new FileDescriptor[MAX_OPEN_FILES];\n\n // create the first process\n process = new ProcessContext(uid, gid, dir, umask);\n processCount++;\n\n // open the root file system\n try {\n openFileSystems[ROOT_FILE_SYSTEM] = new FileSystem(\n rootFileSystemFilename, rootFileSystemMode);\n } catch (IOException e) {\n System.err.println(PROGRAM_NAME + \": unable to open root file system\");\n System.exit(EXIT_FAILURE);\n }\n\n }", "private void initPath() {\n this.IniFile = new IniFile();\n String configPath = this.getApplicationContext().getFilesDir()\n .getParentFile().getAbsolutePath();\n if (configPath.endsWith(\"/\") == false) {\n configPath = configPath + \"/\";\n }\n this.appIniFile = configPath + constants.USER_CONFIG_FILE_NAME;\n }", "public void init() throws ConfigurationException {\n String iosCertificatePath = (new PropertiesConfiguration(\"push.properties\")).getString(PUSH_DIR);\n File appDirFile = new File(iosCertificatePath);\n if(!appDirFile.exists()){\n appDirFile.mkdir();\n }\n }", "private void initConfiguration() {\n\t\tseedList = new ArrayList<String>();\n\t\t// TODO: add other initialization here...\n\t}", "public synchronized static void initConfig() {\n SeLionLogger.getLogger().entering();\n Map<ConfigProperty, String> initialValues = new HashMap<>();\n\n initConfig(initialValues);\n\n SeLionLogger.getLogger().exiting();\n }", "public static void initLoad() throws Exception {\n\n String configPath = System.getProperty(\"config.dir\") + File.separatorChar + \"config.cfg\";\n System.out.println(System.getProperty(\"config.dir\"));\n \n Utils.LoadConfig(configPath); \n /*\n \n // log init load \n String dataPath = System.getProperty(\"logsDir\");\n if(!dataPath.endsWith(String.valueOf(File.separatorChar))){\n dataPath = dataPath + File.separatorChar;\n }\n String logDir = dataPath + \"logs\" + File.separatorChar;\n System.out.println(\"logdir:\" + logDir);\n System.setProperty(\"log.dir\", logDir);\n System.setProperty(\"log.info.file\", \"info_sync.log\");\n System.setProperty(\"log.debug.file\", \"error_sync.log\");\n PropertyConfigurator.configure(System.getProperty(\"config.dir\") + File.separatorChar + \"log4j.properties\");\n */\n }", "public void loadConfigs() {\n\t configYML = new ConfigYML();\n\t configYML.setup();\n }", "private void init() {\n\t\tif ( PropertiesConfigurationFilename == null ) {\n\t\t\tlogger.info(\"config.properties is default\");\n\t\t\tconfigProp = createDefaultProperties();\n\t\t} else {\n\t\t\ttry {\n\t\t\t\tlogger.info(\"config.properties is \"+ PropertiesConfigurationFilename.getAbsolutePath());\n\t\t\t\tconfigProp = new PropertiesConfiguration();\n\t\t\t\tconfigProp.load(PropertiesConfigurationFilename);\n\t\t\t} catch (ConfigurationException e) {\n\t\t\t\tlogger.error(\"Unable to open config file: \" + PropertiesConfigurationFilename.getAbsolutePath(), e);\n\t\t\t\tlogger.info(\"config.properties is default\");\n\t\t\t\tconfigProp = createDefaultProperties();\n\t\t\t}\n\t\t}\n\n\n\t\t// Load the locale information\n\t\tString locale = configProp.getString(\"locale\");\n\n\t\tconfigProp.setProperty(\"zmMsg\", ResourceBundle.getBundle(\"ZmMsg\", new Locale(locale)));\n\n\t\tconfigProp.setProperty(\"zhMsg\", ResourceBundle.getBundle(\"ZhMsg\", new Locale(locale)));\n\n\t\tconfigProp.setProperty(\"ajxMsg\", ResourceBundle.getBundle(\"AjxMsg\", new Locale(locale)));\n\n\t\tconfigProp.setProperty(\"i18Msg\", ResourceBundle.getBundle(\"I18nMsg\", new Locale(locale)));\n\n\t\tconfigProp.setProperty(\"zsMsg\", ResourceBundle.getBundle(\"ZsMsg\", new Locale(locale)));\n\n\t}", "private void createConfig() {\n try {\n if (!getDataFolder().exists()) {\n getDataFolder().mkdirs();\n }\n File file = new File(getDataFolder(), \"config.yml\");\n if (!file.exists()) {\n getLogger().info(\"config.yml not found :( Creating one with default values...\");\n saveDefaultConfig();\n } else {\n getLogger().info(\"config.yml found :) Loading...\");\n }\n } catch (Exception e) {\n e.printStackTrace();\n\n }\n\n }", "protected void checkConfiguration() {\n \tsuper.checkConfiguration();\n \t\n if (this.customizations == null) {\n this.customizations = new ArrayList<String>();\n }\n if (this.options == null) {\n this.options = new HashMap<String, String>();\n }\n if (this.sourceDirectories == null) {\n \tthis.sourceDirectories = new ArrayList<String>();\n \tthis.sourceDirectories.add(DEFAULT_SOURCE_DIRECTORY);\n }\n }", "@BeforeSuite(alwaysRun=true)\r\n\tpublic void initSetUp() throws FileNotFoundException, IOException {\r\n\t\tinitialize();\r\n\t}", "private void chargeConfiguration() {\n\t\tgetConfig().options().copyDefaults(true);\n\t\tFile config = new File(getDataFolder(), \"config.yml\");\n\t\tFile lang = new File(getDataFolder(), \"lang.properties\");\n\t\ttry {\n\t\t\tif (!config.exists()) {\n\t\t\t\tsaveDefaultConfig();\n\t\t\t}\n\t\t\tif (!lang.exists()) {\n\t\t\t\tsaveResource(\"lang.properties\", false);\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\tthis.error(\"Can not load the configuration\", e);\n\t\t}\n\t}", "public static void LoadIntoConfigFiles()\n {\n \tProperties prop = new Properties();\n ///*\n \ttry {\n \t\t//set the properties value\n \n prop.setProperty(\"comp_name\", \"Teledom International Ltd\");\n prop.setProperty(\"com_city\", \"Lagos\");\n \t\tprop.setProperty(\"State\", \"Lagos\");\n \t\tprop.setProperty(\"logo_con\", \"logo.png\");\n \t\tprop.setProperty(\"front_frame\", \"front.png\");\n prop.setProperty(\"back_frame\", \"back.png\");\n \n \n \n \n \t\t//save properties to project root folder\n \t\tprop.store(new FileOutputStream(setupFileName), null);\n \n \t} catch (IOException ex) {\n \t\tex.printStackTrace();\n }\n // */\n \n \n \n }", "private void initConfig() {\n Path walletPath;\n Wallet wallet;\n\n // load a CCP\n Path networkConfigPath; \n \n try {\n \t\n \tif (!isLoadFile) {\n // Load a file system based wallet for managing identities.\n walletPath = Paths.get(\"wallet\");\n wallet = Wallet.createFileSystemWallet(walletPath);\n\n // load a CCP\n networkConfigPath = Paths.get(\"\", \"..\", \"basic-network\", configFile);\n \n builder = Gateway.createBuilder();\n \n \tbuilder.identity(wallet, userId).networkConfig(networkConfigPath).discovery(false);\n \t\n \tisLoadFile = true;\n \t}\n } catch (Exception e) {\n \te.printStackTrace();\n \tthrow new RuntimeException(e);\n }\n\t}", "private final void config() {\n\t\tfinal File configFile = new File(\"plugins\" + File.separator\n\t\t\t\t+ \"GuestUnlock\" + File.separator + \"config.yml\");\n\t\tif (!configFile.exists()) {\n\t\t\tthis.plugin.saveDefaultConfig();\n\t\t\tMain.INFO(\"Created default configuration-file\");\n\t\t}\n\t}", "private void initalConfig() {\n \t\tconfig = new Configuration(new File(getDataFolder(),\"BeardStat.yml\"));\n \t\tconfig.load();\n \t\tconfig.setProperty(\"stats.database.type\", \"mysql\");\n \t\tconfig.setProperty(\"stats.database.host\", \"localhost\");\n \t\tconfig.setProperty(\"stats.database.username\", \"Beardstats\");\n \t\tconfig.setProperty(\"stats.database.password\", \"changeme\");\n \t\tconfig.setProperty(\"stats.database.database\", \"stats\");\n \n \t\tconfig.save();\n \t}", "@Test\n public final void testConfigurationParser() {\n URL resourceUrl = this.getClass().getResource(configPath);\n File folder = new File(resourceUrl.getFile());\n for (File configFile : folder.listFiles()) {\n try {\n System.setProperty(\"loadbalancer.conf.file\", configFile.getAbsolutePath());\n LoadBalancerConfiguration.getInstance();\n } finally {\n LoadBalancerConfiguration.clear();\n }\n }\n }", "public static void load() {\n try {\n File confFile = SessionService.getConfFileByPath(Const.FILE_CONFIGURATION);\n UtilSystem.recoverFileIfRequired(confFile);\n // Conf file doesn't exist at first launch\n if (confFile.exists()) {\n // Now read the conf file\n InputStream str = new FileInputStream(confFile);\n try {\n properties.load(str);\n } finally {\n str.close();\n }\n }\n } catch (Exception e) {\n Log.error(e);\n Messages.showErrorMessage(114);\n }\n }", "public void initialize() {\n final ConfigurationManager config = ConfigurationManager.getInstance();\n boolean overrideLog = System.getProperty(\"azureus.overridelog\") != null;\n\n for (int i = 0; i < ignoredComponents.length; i++) {\n ignoredComponents[i] = new ArrayList();\n }\n\n if (!overrideLog) {\n config.addListener(new COConfigurationListener() {\n public void configurationSaved() {\n checkLoggingConfig();\n }\n });\n }\n\n checkLoggingConfig();\n config.addParameterListener(CFG_ENABLELOGTOFILE, new ParameterListener() {\n public void parameterChanged(String parameterName) {\n FileLogging.this.reloadLogToFileParam();\n }\n });\n }", "public void loadConfiguration(){\n\t\t\n\t\tString jarLoc = this.getJarLocation();\n\t\tTicklerVars.jarPath = jarLoc;\n\t\tTicklerVars.configPath=TicklerVars.jarPath+TicklerConst.configFileName;\n\t\t\n\t\t//Read configs from conf file\n\t\tif (new File(TicklerVars.configPath).exists()){\n\t\t\ttry {\n\t\t\t\tString line;\n\t\t\t\tBufferedReader reader = new BufferedReader(new FileReader(TicklerVars.configPath));\n\t\t\t\twhile ((line =reader.readLine())!= null) {\n\t\t\t\t\tif (line.contains(\"Tickler_local_directory\")){\n\t\t\t\t\t\tString loc = line.substring(line.indexOf(\"=\")+1, line.length());\n\t\t\t\t\t\tTicklerVars.ticklerDir = this.correctJarLoc(loc);\n\t\t\t\t\t}\n\t\t\t\t\telse if (line.contains(\"Tickler_sdcard_directory\")){\n\t\t\t\t\t\tString loc = line.substring(line.indexOf(\"=\")+1, line.length()-1);\n\t\t\t\t\t\tTicklerVars.sdCardPath = this.correctJarLoc(loc);\n\t\t\t\t\t}\n\t\t\t\t\telse if (line.contains(\"Frida_server_path\")){\n\t\t\t\t\t\tString loc = line.substring(line.indexOf(\"=\")+1, line.length());\n\t\t\t\t\t\tTicklerVars.fridaServerLoc = loc;\n\t\t\t\t\t}\n\t\t\t\t\n\t\t\t\t}\n\t\t\t\treader.close();\n\t\t\t}\n\t\t\tcatch (Exception e)\n\t\t\t{\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t\t//Config path does not exist\n\t\t\n\t\telse\n\t\t{\n\t\t\tSystem.out.println(\"WARNING...... Configuration file does not exist!!!!\\nThe following default configurations are set:\\n\");\n\t\t\tTicklerVars.ticklerDir = TicklerVars.jarPath+TicklerConst.defaultTicklerDirName;\n\t\t\tSystem.out.println(\"Tickler Workspace directory on host: \"+TicklerVars.ticklerDir);\n\t\t\tSystem.out.println(\"Tickler temporary directory on device: \"+TicklerConst.sdCardPathDefault);\n\t\t}\n\t\t\n\t\tString x = TicklerVars.ticklerDir;\n\t\tif (TicklerVars.ticklerDir == null || TicklerVars.ticklerDir.matches(\"\\\\s*/\") ){\n\t\t\tTicklerVars.ticklerDir = TicklerVars.jarPath+TicklerConst.defaultTicklerDirName;\n//\t\t\tOutBut.printWarning(\"Configuration File \"+TicklerVars.configPath+ \" doesn't specify Tickler_local_directory. Workspace is set at \"+ TicklerVars.ticklerDir);\n\t\t\tOutBut.printStep(\"Tickler Workspace directory on host: \"+TicklerVars.ticklerDir);\n\t\t}\n\t\t\n\t\tif (TicklerVars.sdCardPath == null || TicklerVars.sdCardPath.matches(\"\\\\s*/\")) {\n\t\t\tTicklerVars.sdCardPath = TicklerConst.sdCardPathDefault;\t\n//\t\t\tOutBut.printWarning(\"Configuration File \"+TicklerVars.configPath+ \" doesn't specify Tickler's temp directory on the device. It is set to \"+ TicklerVars.sdCardPath);\n\t\t\tOutBut.printStep(\"Tickler temporary directory on device: \"+TicklerConst.sdCardPathDefault);\n\t\t}\n\t\t\t\n\t}", "public static void initialize()\n\t{\n\t\t/* Start to listen for file changes */\n\t\ttry\n\t\t{\n\t\t\t// We have to load the internal one initially to figure out where the external data directory is...\n\t\t\tURL resource = PropertyWatcher.class.getClassLoader().getResource(PROPERTIES_FILE);\n\t\t\tif (resource != null)\n\t\t\t{\n\t\t\t\tconfig = new File(resource.toURI());\n\t\t\t\tloadProperties(false);\n\n\t\t\t\t// Then check if there's another version in the external data directory\n\t\t\t\tString path = get(ServerProperty.CONFIG_PATH);\n\t\t\t\tif (!StringUtils.isEmpty(path))\n\t\t\t\t{\n\t\t\t\t\tFile potential = new File(path);\n\t\t\t\t\tif (potential.exists() && potential.isFile())\n\t\t\t\t\t{\n\t\t\t\t\t\t// Use it\n\t\t\t\t\t\tLogger.getLogger(\"\").log(Level.INFO, \"Using external config.properties: \" + potential.getAbsolutePath());\n\t\t\t\t\t\tconfig = potential;\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t// Finally, load it properly. This is either the original file or the external file.\n\t\t\t\tloadProperties(true);\n\n\t\t\t\t// Then watch whichever file exists for changes\n\t\t\t\tFileAlterationObserver observer = new FileAlterationObserver(config.getParentFile());\n\t\t\t\tmonitor = new FileAlterationMonitor(1000L);\n\t\t\t\tobserver.addListener(new FileAlterationListenerAdaptor()\n\t\t\t\t{\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void onFileChange(File file)\n\t\t\t\t\t{\n\t\t\t\t\t\tif (file.equals(config))\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tloadProperties(true);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t\tmonitor.addObserver(observer);\n\t\t\t\tmonitor.start();\n\t\t\t}\n\t\t}\n\t\tcatch (Exception e)\n\t\t{\n\t\t\te.printStackTrace();\n\t\t\tthrow new RuntimeException(e);\n\t\t}\n\t}", "private void setupFiles(){\n\t\t// Copies the default configuration files to the workspace \n\t\ttry{\n\t\t\tBundle bundle = Platform.getBundle(Activator.PLUGIN_ID);\n\t\t\tIPath destBasePath = Platform.getStateLocation(bundle);\n\t\t\tpropertiesFile = destBasePath.append(PreferencesConstants.PROP_BUNDLE_STATE_PATH).toFile();\n\t\t\tif(!propertiesFile.exists()){\n\n\t\t\t\tURI sourceBaseURI = bundle.getEntry(PreferencesConstants.DEFAULT_CONFIG_BUNDLE_PATH).toURI();\n\t\t\t\t//TODO: fix the item below?\n\t\t\t\tEnumeration<URL> entries = bundle.findEntries(PreferencesConstants.DEFAULT_CONFIG_BUNDLE_PATH, null, true);\n\t\t\t\tfor(; entries != null && entries.hasMoreElements();){\n\t\t\t\t\tURL url = entries.nextElement();\n\t\t\t\t\tURI uri = url.toURI();\n\t\t\t\t\tURI relativeURI = sourceBaseURI.relativize(uri);\n\t\t\t\t\tIPath destPath = destBasePath.append(relativeURI.toString());\n\n\t\t\t\t\tif(destPath.hasTrailingSeparator()){\n\t\t\t\t\t\t// it's a folder\n\t\t\t\t\t\tdestPath.toFile().mkdirs();\n\t\t\t\t\t}\n\t\t\t\t\telse{\n\t\t\t\t\t\t// it's a file\n\t\t\t\t\t\tURL contentURL = FileLocator.resolve(url);\n\t\t\t\t\t\tSystemUtils.blt(contentURL.openStream(), new FileOutputStream(destPath.toFile()));\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\t//now save the destination paths to the System properties\n\t\t\t//save the report paths\n\t\t\tString reportTemplatePath = destBasePath.append(PreferencesConstants.DEFAULT_REPORT_PATH\n\t\t\t\t\t+ PreferencesConstants.DEFAULT_REPORT_TEMPLATE_URL).toPortableString();\n\t\t\tSystem.setProperty(PreferencesConstants.DEFAULT_PROP_REPORT_TEMPLATE, \n\t\t\t\t\treportTemplatePath);\n\t\t\tSystem.out.println(\"report template file: \" + reportTemplatePath);\t\t\n\t\t\t\n\t\t\tString reportPath = destBasePath.append(PreferencesConstants.DEFAULT_REPORT_PATH\n\t\t\t\t\t+ PreferencesConstants.DEFAULT_REPORT_URL).toPortableString();\n\t\t\tSystem.setProperty(PreferencesConstants.DEFAULT_PROP_REPORT, \n\t\t\t\t\treportPath);\t\t\t\n\t\t\tSystem.out.println(\"report file: \" + reportPath);\t\t\t\n\t\t\t\n\t\t\t//save the rule paths\n\t\t\tString ruleSessionPath = destBasePath.append(PreferencesConstants.DEFAULT_RULE_PATH\n\t\t\t\t\t+ PreferencesConstants.DEFAULT_RULE_SESSION_URL).toPortableString();\n\t\t\tSystem.setProperty(PreferencesConstants.DEFAULT_PROP_RULE_SESSION, \n\t\t\t\t\truleSessionPath);\t\t\t\n\t\t\tSystem.out.println(\"rule session file: \" + ruleSessionPath);\t\t\t\t\t\n\t\t\t\n\t\t\tString ruleSessionOutPath = destBasePath.append(PreferencesConstants.DEFAULT_RULE_PATH\n\t\t\t\t\t+ PreferencesConstants.DEFAULT_RULE_SESSION_OUT_URL).toPortableString();\n\t\t\tSystem.setProperty(PreferencesConstants.DEFAULT_PROP_RULE_SESSION_OUT, \n\t\t\t\t\truleSessionOutPath);\t\t\t\n\t\t\tSystem.out.println(\"rule session out file: \" + ruleSessionOutPath);\t\t\t\t\t\n\t\t\t\n\t\t}\n\t\tcatch(Exception e){\n\t\t\te.printStackTrace();\n\t\t}\n\n\t\t\n\t\t\n\t\t/*\n\t\tString pluginName = Activator.PLUGIN_ID;\n\t\tBundle bundle = Platform.getBundle(pluginName);\n\n\t\tString propFileStr = getFixedPath(bundle, PreferencesConstants.PROP_BASE_URL + PreferencesConstants.PROP_URL);\n\t\tFile sourcePropFile = new File(propFileStr);\n\n\t\t//propertiesFile = new File(fixedPath);\n\t\tIWorkspace workspace = ResourcesPlugin.getWorkspace();\n\t\tIWorkspaceRoot root = workspace.getRoot();\n\t\tIPath location = root.getLocation();\n\t\t//location.toString()\n\t\t//String path = location.toString() + location.SEPARATOR + \".metadata\" \n\t\t//\t+ location.SEPARATOR + PreferencesConstants.PROP_BASE_URL;\n\t\tString path = location.toString() + location.SEPARATOR + PreferencesConstants.PROP_BASE_URL;\n\t\t//URL entry = Platform.getInstallLocation().getURL();\n\t\t//String path = entry.toString() + location.SEPARATOR + PreferencesConstants.PROP_BASE_URL;\n\n\t\tFile usersResourceDir = new File(path);\n\t\tpropertiesFile = new File(path + PreferencesConstants.PROP_URL);\n\t\tSystem.out.println(\"properties file \" + propertiesFile.getAbsolutePath());\n\t\tFile reportDir;\n\t\tFile ruleDir;\n\t\tif(!usersResourceDir.exists()){\n\t\t\ttry{\n\t\t\t\tSystemUtils.createDirectory(usersResourceDir);\n\t\t\t}\n\t\t\tcatch(IOException e){\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\n\t\t\t//copy the properties file\n\n\t\t\ttry{\n\t\t\t\tSystemUtils.copyFile(sourcePropFile, propertiesFile);\n\t\t\t}\n\t\t\tcatch(IOException e1){\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te1.printStackTrace();\n\t\t\t}\n\n\t\t\t//copy report directory\n\t\t\tString fixedReportPath = getFixedPath(bundle, PreferencesConstants.PROP_BASE_URL + PreferencesConstants.DEFAULT_REPORT_PATH);\n\t\t\treportDir = new File(fixedReportPath);\n\t\t\ttry{\n\t\t\t\tSystemUtils.copyDirectory(reportDir, usersResourceDir);\n\t\t\t}\n\t\t\tcatch(IOException e){\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\n\t\t\t//copy rule directory\n\t\t\tString fixedRulePath = getFixedPath(bundle, PreferencesConstants.PROP_BASE_URL + PreferencesConstants.DEFAULT_RULE_PATH);\n\t\t\truleDir = new File(fixedRulePath);\n\t\t\ttry{\n\t\t\t\tSystemUtils.copyDirectory(ruleDir, usersResourceDir);\n\t\t\t}\n\t\t\tcatch(IOException e){\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\n\t\t\tSystem.out.println(\"success\");\n\t\t}\n\t\tSystem.setProperty(PreferencesConstants.DEFAULT_PROP_REPORT_TEMPLATE, usersResourceDir.toString() + usersResourceDir.separator + PreferencesConstants.DEFAULT_REPORT_PATH.substring(1) + usersResourceDir.separator + PreferencesConstants.DEFAULT_REPORT_TEMPLATE_URL);\n\t\tSystem.out.println(\"report template file: \" + System.getProperty(PreferencesConstants.DEFAULT_PROP_REPORT_TEMPLATE));\n\t\tSystem.setProperty(PreferencesConstants.DEFAULT_PROP_REPORT, usersResourceDir.toString() + usersResourceDir.separator + PreferencesConstants.DEFAULT_REPORT_PATH.substring(1) + usersResourceDir.separator + PreferencesConstants.DEFAULT_REPORT_URL.substring(1));\n\t\tSystem.out.println(\"report file: \" + System.getProperty(PreferencesConstants.DEFAULT_PROP_REPORT));\n\t\tSystem.setProperty(PreferencesConstants.DEFAULT_PROP_RULE_SESSION, usersResourceDir.toString() + usersResourceDir.separator + PreferencesConstants.DEFAULT_RULE_PATH.substring(1) + usersResourceDir.separator + PreferencesConstants.DEFAULT_RULE_SESSION_URL.substring(1));\n\t\tSystem.out.println(\"rule session file: \" + System.getProperty(PreferencesConstants.DEFAULT_PROP_RULE_SESSION));\n\n\t\tSystem.setProperty(PreferencesConstants.DEFAULT_PROP_RULE_SESSION_OUT, usersResourceDir.toString() + usersResourceDir.separator + PreferencesConstants.DEFAULT_RULE_PATH.substring(1) + usersResourceDir.separator + PreferencesConstants.DEFAULT_RULE_SESSION_OUT_URL.substring(1));\n\t\tSystem.out.println(\"rule session file: \" + System.getProperty(PreferencesConstants.DEFAULT_PROP_RULE_SESSION_OUT));\n\t\t*/\n\t}", "private void loadLocalConfig()\n {\n try\n {\n // Load the system config file.\n URL fUrl = Config.class.getClassLoader().getResource( PROP_FILE );\n config.setDelimiterParsingDisabled( true );\n if ( fUrl == null )\n {\n String error = \"static init: Error, null cfg file: \" + PROP_FILE;\n LOG.warn( error );\n }\n else\n {\n LOG.info( \"static init: found from: {} path: {}\", PROP_FILE, fUrl.getPath() );\n config.load( fUrl );\n LOG.info( \"static init: loading from: {}\", PROP_FILE );\n }\n\n URL fUserUrl = Config.class.getClassLoader().getResource( USER_PROP_FILE );\n if ( fUserUrl != null )\n {\n LOG.info( \"static init: found user properties from: {} path: {}\", USER_PROP_FILE, fUserUrl.getPath() );\n config.load( fUserUrl );\n }\n }\n catch ( org.apache.commons.configuration.ConfigurationException ex )\n {\n String error = \"static init: Error loading from cfg file: [\" + PROP_FILE\n + \"] ConfigurationException=\" + ex;\n LOG.error( error );\n throw new CfgRuntimeException( GlobalErrIds.FT_CONFIG_BOOTSTRAP_FAILED, error, ex );\n }\n }", "private static void initDirectories() {\n String storeName = System.getProperty(USER_DIR)\n + File.separator\n + QVCSConstants.QVCS_META_DATA_DIRECTORY\n + File.separator\n + QVCSConstants.QVCS_FILEID_STORE_NAME\n + \".dat\";\n File storeFile = new File(storeName);\n if (storeFile.exists()) {\n storeFile.delete();\n }\n deleteAuthenticationStore();\n initAuthenticationStore();\n\n deleteRoleProjectViewStore();\n initRoleProjectViewStore();\n\n initProjectProperties();\n }", "public synchronized static void initConfig() {\n\t\tMap<CatPawConfigProperty, String> initialValues = new HashMap<CatPawConfigProperty, String>();\n\t\tinitConfig(initialValues);\n\t}", "public void init(){\n\t\tif(prop==null){\r\n\t\t\tprop=new Properties();\r\n\t\t\t\r\n\t\t\ttry {\r\n\t\t\t\tFileInputStream fs = new FileInputStream(System.getProperty(\"user.dir\")+\"//src//test//resources//projectconfig.properties\");\r\n\t\t\t\tprop.load(fs);\r\n\t\t\t\t\r\n\t\t\t} catch (Exception e) {\r\n\t\t\t\t\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t\t}\r\n\t}", "private void ensureInitialized() {\n if (mIncludes == null) {\n // Initialize\n if (!readSettings()) {\n // Couldn't read settings: probably the first time this code is running\n // so there is no known data about includes.\n\n // Yes, these should be multimaps! If we start using Guava replace\n // these with multimaps.\n mIncludes = new HashMap<String, List<String>>();\n mIncludedBy = new HashMap<String, List<String>>();\n\n scanProject();\n saveSettings();\n }\n }\n }", "void loadPropertiesFile()\n\t{\n\t\tlogger.info(\"Fetching the properties files\");\n\t\t\n\t\tconfigProp=new Properties(); \n\t\ttry{\tconfigProp.load(loadFile(\"Config.properties\"));\t\t} \n\t\tcatch (IOException e){\tAssert.assertTrue(\"Cannot initialise the Config properties file, Check if the file is corrupted\", false);\t}\t\t\t\n\t}", "public static void initialize() {\n \tinitialize(new Configuration().configure());\n }", "protected void initialise() {\r\n loadDefaultConfig();\r\n loadCustomConfig();\r\n loadSystemConfig();\r\n if (LOG.isDebugEnabled()) {\r\n LOG.debug(\"--- Scope properties ---\");\r\n for (Iterator i = properties.keySet().iterator(); i.hasNext(); ) {\r\n String key = (String) i.next();\r\n Object value = properties.get(key);\r\n LOG.debug(key + \" = \" + value);\r\n }\r\n LOG.debug(\"------------------------\");\r\n }\r\n }", "private void init() {\r\n\t\t// check system property\r\n\t\tif (System.getProperty(TACOS_HOME) != null) {\r\n\t\t\tFile customHome = new File(System.getProperty(TACOS_HOME));\r\n\t\t\tif (initHome(customHome)) {\r\n\t\t\t\thomeDir = customHome;\r\n\t\t\t\tlogger.info(\"Using custom home directory ('\" + homeDir + \"')\");\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\t// custom home directory not available (or failed to initialize)\r\n\t\tFile defaultHome = new File(System.getProperty(DEFAULT_HOME), \".tacos\");\r\n\t\tif (initHome(defaultHome)) {\r\n\t\t\thomeDir = defaultHome;\r\n\t\t\tlogger.info(\"Using default home directory ('\" + homeDir + \"')\");\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\t// fallback if everything goes wrong\r\n\t\tlogger.warn(\"Using temporary directory to store files\");\r\n\t\thomeDir = new File(System.getProperty(\"java.io.tmpdir\"), \".tacos\");\r\n\t\tinitHome(homeDir);\r\n\t}", "private static void initialize(String configFile)\n\t{\n\t\t\n\t}", "private static void initLogger() {\n if (initialized) {\n return;\n }\n\n initialized = true;\n\n System.out.println(\"\");\n System.out.println(\"=> Begin System Logging Configuration\");\n URL fileUrl = null;\n String filePath = null;\n\n try {\n final Region region = EnvironmentConfiguration.getRegion();\n filePath = \"log4j-\" + region.getCode() + \".xml\";\n System.out.println(\"=> searching for log configuration file : \" + filePath);\n fileUrl = LogFactory.class.getResource(\"/\" + filePath);\n DOMConfigurator.configure(fileUrl);\n System.out.println(\"=> found log configuration file : \" + fileUrl);\n System.out.println(\"=> System Logging has been initialized\");\n }\n catch (final NoClassDefFoundError ncdf) {\n System.out.println(\"=> Logging Configuration Failed\");\n System.err.println(LogFactory.class.getName()\n + \"::loadProps() - Unable to find needed classes. Logging disabled. \" + ncdf);\n }\n catch (final Exception e) {\n System.out.println(\"=> Logging Configuration Failed\");\n System.err.println(\n LogFactory.class.getName() + \"::loadProps() - Unable to initialize logger from file=\"\n + filePath + \". Logging disabled.\");\n }\n System.out.println(\"=> End System Logging Configuration\");\n System.out.println(\"\");\n }", "public void init() {\n // the config string contains just the asset store directory path\n //set baseDir?\n this.initialized = true;\n }", "private void init() {\n\n File folder = new File(MAP_PATH);\n File[] listOfFiles = folder.listFiles();\n\n for (int i = 0; i < Objects.requireNonNull(listOfFiles).length; i++) {\n this.mapFiles.add(new File(MAP_PATH + listOfFiles[i].getName()));\n }\n }", "@BeforeSuite\n public void initiateData() throws FileNotFoundException, IOException {\n jsonTestData = new JsonClass();\n userDirectory = System.getProperty(\"user.dir\");\n String log4jConfigFile = userDirectory + File.separator + \"src\" + File.separator + \"test\" + File.separator + \"resources\" + File.separator\n + \"log4j.properties\";\n ConfigurationSource source = new ConfigurationSource(new FileInputStream(log4jConfigFile));\n Configurator.initialize(null, source);\n logger = Logger.getLogger(getClass());\n }", "public static void loadGameConfiguration() {\n File configFile = new File(FileUtils.getRootFile(), Constant.CONFIG_FILE_NAME);\n manageGameConfigFile(configFile);\n }", "public void initialize() throws IOException {\n\t\ttry{\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// Try-Catch to spot/handle potential BadConfigFormatExceptions\n\t\t\tloadSetupConfig();\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// Methods required to populate the board\n\t\t\tloadLayoutConfig();\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// Methods required to populate the board\n\t\t} catch(BadConfigFormatException e) { \t\t\t\t\t\t\t\t\t\t\t\t// Custom exception for formatting errors\t\t\n\t\t\tSystem.out.println(e);\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// Print the message generated by the exception\n\t\t}\n\t}", "private SettingsManager initSettings() {\n // Copy the demo/config.yml instead of using it directly so it doesn't get overridden\n configFile = copyFileFromJar(\"/demo/config.yml\");\n return SettingsManagerBuilder.withYamlFile(configFile).configurationData(TitleConfig.class).create();\n }", "@BeforeClass\n\t\tpublic static void setUp() {\n\t\t\tboard = Board.getInstance();\n\t\t\t// set the file names to use my config files\n\t\t\tboard.setConfigFiles(\"ourConfigFiles/GameBoard.csv\", \"ourConfigFiles/Rooms.txt\");\t\t\n\t\t\t// Initialize will load BOTH config files \n\t\t\tboard.setCardFiles(\"ourConfigFiles/Players.txt\", \"ourConfigFiles/Weapons.txt\");\t\t\n\t\t\t// Initialize will load BOTH config files \n\t\t\tboard.initialize();\n\t\t}", "private void GetConfig()\n {\n boolean useClassPath = false;\n if(configFile_ == null)\n {\n useClassPath = true;\n configFile_ = \"data.config.lvg\";\n }\n // read in configuration file\n if(conf_ == null)\n {\n conf_ = new Configuration(configFile_, useClassPath);\n }\n }", "public void initLoadingFileEnviroment() {\n // file init\n try {\n DiskFileItemFactory fileFactory = new DiskFileItemFactory();\n File filepath = new File(DATA_PATH);\n fileFactory.setRepository(filepath);\n this._uploader = new ServletFileUpload(fileFactory);\n\n } catch (Exception ex) {\n System.err.println(\"Error init new file environment. \" + ex.getMessage());\n }\n }", "static void loadConfiguration() throws Exception {\n cleanConfiguration();\n\n ConfigManager cm = ConfigManager.getInstance();\n cm.add(\"test_conf/stress/logging.xml\");\n cm.add(\"test_conf/stress/dbconnectionfactory.xml\");\n cm.add(\"test_conf/stress/simplecache.xml\");\n cm.add(\"test_conf/stress/profiletypes.xml\");\n cm.add(\"test_conf/stress/daofactory.xml\");\n cm.add(\"test_conf/stress/dao.xml\");\n }", "public ConfigsUtils() {\r\n mConfig = new Properties();\r\n try {\r\n mConfig.load(new FileInputStream(CONFIG_FILE_PATH));\r\n } catch (IOException e) {\r\n e.printStackTrace();\r\n }\r\n }", "@PostConstruct\n private void init() throws MalformedURLException {\n workingDirectoryPath = Paths.get(workDirectory).toAbsolutePath();\n if (Files.exists(workingDirectoryPath)) {\n if (!Files.isDirectory(workingDirectoryPath)) {\n throw new FhFormException(workingDirectoryPath + \" is not a directory\");\n }\n } else {\n try {\n Files.createDirectories(workingDirectoryPath);\n } catch (IOException e) {\n throw new FhFormException(\"Cannot create \" + workingDirectoryPath, e);\n }\n }\n\n // create classloader\n URL url = workingDirectoryPath.toUri().toURL();\n\n workingDirectoryClassloader = FhCL.classLoader;\n addURLToClassLoader(url, workingDirectoryClassloader);\n }", "public void loadConfig() {\n\t}", "void initSharedConfiguration(boolean loadSharedConfigFromDir) throws IOException {\n status.set(SharedConfigurationStatus.STARTED);\n Region<String, Configuration> configRegion = getConfigurationRegion();\n lockSharedConfiguration();\n try {\n removeInvalidXmlConfigurations(configRegion);\n if (loadSharedConfigFromDir) {\n logger.info(\"Reading cluster configuration from '{}' directory\",\n InternalConfigurationPersistenceService.CLUSTER_CONFIG_ARTIFACTS_DIR_NAME);\n loadSharedConfigurationFromDir(configDirPath.toFile());\n } else {\n persistSecuritySettings(configRegion);\n // for those groups that have jar files, need to download the jars from other locators\n // if it doesn't exist yet\n for (Entry<String, Configuration> stringConfigurationEntry : configRegion.entrySet()) {\n Configuration config = stringConfigurationEntry.getValue();\n for (String jar : config.getJarNames()) {\n if (!getPathToJarOnThisLocator(stringConfigurationEntry.getKey(), jar).toFile()\n .exists()) {\n downloadJarFromOtherLocators(stringConfigurationEntry.getKey(), jar);\n }\n }\n }\n }\n } finally {\n unlockSharedConfiguration();\n }\n\n status.set(SharedConfigurationStatus.RUNNING);\n }", "private void configureLogging() throws FileNotFoundException, IOException {\r\n\t\t// Set configuration file for log4j2\r\n\t\tConfigurationSource source = new ConfigurationSource(new FileInputStream(CONFIG_LOG_LOCATION));\r\n\t\tConfigurator.initialize(null, source);\r\n\t\tlog = LogManager.getLogger(SBIWebServer.class);\r\n\t}", "public void initConfigurations() {\r\n for (int configId = 0; configId < savedConfigurations.length; configId++) {\r\n if (configId == InterfaceConfiguration.HD_TEXTURES.getId()) {\r\n continue;\r\n }\r\n int value = savedConfigurations[configId];\r\n if (value != 0) {\r\n set(configId, value, false);\r\n }\r\n }\r\n }", "public void init()\n {\n try\n {\n userPasswordsProperties = new Properties();\n userPasswordsProperties.load(new FileInputStream(userPasswordsPropertiesFileName));\n log.info(\"Successfully initialized. UsersPasswords property file is: \" + userPasswordsPropertiesFileName);\n }\n catch (Exception e)\n {\n throw new IllegalArgumentException(\"UserNamesPropertyFile name: \" + userPasswordsPropertiesFileName + \" not valid. Error: \" + e);\n }\n \n }", "public static void init()\n\t{\n\t\tusername2accesses.clear();\n\t\t//--- adds info.json in ./Home/Administrator for the system admin ---//\n\t\tfinal String adminAccessPath = Hierarchies.getSectionDir() + \"/\" + Hierarchies.getInfoFileName() + \".\" + Directories.getFileExt();\n\t\tfinal File adminAccessFile = new File(adminAccessPath);\n\t\tif (!adminAccessFile.exists())\n\t\t{\n\t\t\tfinal Access[] accesses = new Access[1];\n\t\t\taccesses[0] = new Access(\"admin\", Role.ADMINISTRATOR, null);\n\t\t\tfinal HierarchyItem hierarchyItem = new HierarchyItem(null, null, null, accesses);\n\t\t\tfinal String hierarchyItemAsJson = new Gson().toJson(hierarchyItem);\n\t\t\tFileIO.writeToFile(adminAccessPath, hierarchyItemAsJson);\n\t\t}\n\t\t//--- reads all JSON files recursively in ./Home/Administrator ---//\n\t\t//--- contents of JSON files will be processed to be cached in hash map username2accesses ---//\n\t\tfinal File file = new File(Hierarchies.getSectionDir());\n\t\tfinal Collection<File> jsonFiles = FileUtils.listFiles(file, new String[]{Directories.getFileExt()}, true);\n\t\tfor (File infoFile : jsonFiles) manage(infoFile, Op.STORE);\n\t}", "private void setConfiguration() throws IOException{\n\t\tString confPath = \"mapreduce.conf\";\n\t\tFileInputStream fis = new FileInputStream(confPath);\n\t\tthis.load(fis);\n\t\tfis.close();\n\t}", "public static void setupFiles(FileManagerUtil fm) {\n fileManagerUtil = fm;\n Files.CONFIG.load(fm);\n Files.PERMISSIONS.load(fm);\n Files.DATA.load(fm);\n Files.DEBUG.load(fm);\n Files.MESSAGES.load(fm);\n }", "private Config()\n {\n // Load from properties file:\n loadLocalConfig();\n // load the system property overrides:\n getExternalConfig();\n }", "@BeforeClass\r\n\tpublic static void setUp() throws FileNotFoundException, IOException {\r\n\t\tfinal String resourcePath = \"/tests/resources/test_config.properties\";\r\n\t\tfinal File res = new File(new File(\"\").getAbsolutePath() + resourcePath);\r\n\r\n\t\tif (res.exists()) {\r\n\t\t\tproperties = new Properties();\r\n\t\t\tproperties.load(new FileInputStream(res));\r\n\t\t} else {\r\n\t\t\tthrow new FileNotFoundException(\"File not found: \" + resourcePath);\r\n\t\t}\r\n\t}", "private void initContext() {\n contextId = System.getProperty(CONFIG_KEY_CERES_CONTEXT, DEFAULT_CERES_CONTEXT);\n\n // Initialize application specific configuration keys\n homeDirKey = String.format(\"%s.%s\", contextId, CONFIG_KEY_HOME);\n debugKey = String.format(\"%s.%s\", contextId, CONFIG_KEY_DEBUG);\n configFileKey = String.format(\"%s.%s\", contextId, CONFIG_KEY_CONFIG_FILE_NAME);\n modulesDirKey = String.format(\"%s.%s\", contextId, CONFIG_KEY_MODULES);\n libDirsKey = String.format(\"%s.%s\", contextId, CONFIG_KEY_LIB_DIRS);\n mainClassKey = String.format(\"%s.%s\", contextId, CONFIG_KEY_MAIN_CLASS);\n classpathKey = String.format(\"%s.%s\", contextId, CONFIG_KEY_CLASSPATH);\n applicationIdKey = String.format(\"%s.%s\", contextId, CONFIG_KEY_APP);\n logLevelKey = String.format(\"%s.%s\", contextId, CONFIG_KEY_LOG_LEVEL);\n consoleLogKey = String.format(\"%s.%s\", contextId, CONFIG_KEY_CONSOLE_LOG);\n\n // Initialize default file and directory paths\n char sep = File.separatorChar;\n defaultRelConfigFilePath = String.format(\"%s/%s\", DEFAULT_CONFIG_DIR_NAME, configFileKey).replace('/', sep);\n defaultHomeConfigFilePath = String.format(\"${%s}/%s\", homeDirKey, defaultRelConfigFilePath).replace('/', sep);\n defaultHomeModulesDirPath = String.format(\"${%s}/%s\", homeDirKey, DEFAULT_MODULES_DIR_NAME).replace('/', sep);\n defaultHomeLibDirPath = String.format(\"${%s}/%s\", homeDirKey, DEFAULT_LIB_DIR_NAME).replace('/', sep);\n }", "public void initialConfig() {\n }", "public void initialize() throws ResourceInitializationException {\n\n String oPath = (String) getUimaContext().getConfigParameterValue(\"outputFile\");\n if (oPath == null) {\n throw new ResourceInitializationException(\n ResourceInitializationException.CONFIG_SETTING_ABSENT, new Object[] { \"outputFile\" });\n }\n outFile = new File(oPath.trim());\n \n try {\n if(outFile.exists()){\n outFile.delete();\n }\n outFile.createNewFile();\n fileWriter = new FileWriter(outFile,true);\n \n } catch (IOException e) {\n throw new ResourceInitializationException(e);\n }\n }", "@PostConstruct\n\tpublic void init() throws IOException {\n\t\tfsService.parseFileAndBootstrapDb();\n\t}", "protected void initConfiguration() {\r\n\t\tthis.updateDynamicWelcomeText(\"Initializing configuration...\");\r\n\r\n\t\t// set default locale to English just for debug\r\n\t\t// standard dialogs are set in the system's default language\r\n\t\tLocale.setDefault(Locale.ENGLISH);\r\n\r\n\t\t// assign the look and feel to the current swing UI manager\r\n\t\ttry {\r\n\t\t\t// for all messages initially set the default look and feel from the\r\n\t\t\t// system\r\n\t\t\tUIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());\r\n\r\n\t\t\t// initialize the configuration manager\r\n\t\t\ttry {\r\n\t\t\t\tthis.configManager = ConfigManager.getCurrentInstance();\r\n\r\n\t\t\t\tthis.configManager.validateAndSetConfiguration();\r\n\r\n\t\t\t\t// get the file path of the temporary directory\r\n\t\t\t\tFile userTempDir = ConfigManager.getCurrentInstance()\r\n\t\t\t\t\t\t.getTempPath();\r\n\r\n\t\t\t\t// Delete all temporary files/dirs in user temp directory\r\n\t\t\t\t// therefore, use the public method from the deletion task,\r\n\t\t\t\t// without executing a new thread\r\n\t\t\t\tnew DeleteFilesTask().deleteTemporaryUserData(userTempDir);\r\n\r\n\t\t\t} catch (Exception e) {\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t\tSystem.out.println(\"IQM Error: An error occurred: \" + e);\r\n\t\t\t\tDialogUtil.getInstance().showErrorMessage(\r\n\t\t\t\t\t\tI18N.getMessage(\"application.exception.config.invalid\",\r\n\t\t\t\t\t\t\t\tSystem.getProperty(\"user.home\")\r\n\t\t\t\t\t\t\t\t\t\t+ IQMConstants.FILE_SEPARATOR + \"IQM\"\r\n\t\t\t\t\t\t\t\t\t\t+ IQMConstants.FILE_SEPARATOR + \"logs\"\r\n\t\t\t\t\t\t\t\t\t\t+ IQMConstants.FILE_SEPARATOR\r\n\t\t\t\t\t\t\t\t\t\t+ \"iqm.log\"), e, true);\r\n\t\t\t\t// exiting\r\n\t\t\t\tSystem.exit(-1);\r\n\t\t\t}\r\n\r\n\t\t\t// get the system's look and feel, if default or none is specified\r\n\t\t\t// in config file\r\n\t\t\tString laf = configManager.getIQMConfig().getApplication().getGui()\r\n\t\t\t\t\t.getLookAndFeel();\r\n\r\n\t\t\tif (OperatingSystem.isUnix() && !laf.toLowerCase().equals(\"system\")) {\r\n\t\t\t\tUIManager\r\n\t\t\t\t\t\t.setLookAndFeel(\"javax.swing.plaf.metal.MetalLookAndFeel\");\r\n\t\t\t} else {\r\n\t\t\t\tif (laf != null\r\n\t\t\t\t\t\t&& (laf.toLowerCase().equals(\"default\") || laf\r\n\t\t\t\t\t\t\t\t.toLowerCase().equals(\"system\"))) {\r\n\t\t\t\t\tUIManager.setLookAndFeel(UIManager\r\n\t\t\t\t\t\t\t.getSystemLookAndFeelClassName());\r\n\t\t\t\t} else if (laf != null\r\n\t\t\t\t\t\t&& (laf.toLowerCase().contains(\"nimbus\"))) {\r\n\t\t\t\t\tUIManager\r\n\t\t\t\t\t\t\t.setLookAndFeel(\"com.sun.java.swing.plaf.nimbus.NimbusLookAndFeel\");\r\n\t\t\t\t} else if (laf == null) {\r\n\t\t\t\t\tUIManager.setLookAndFeel(UIManager\r\n\t\t\t\t\t\t\t.getCrossPlatformLookAndFeelClassName());\r\n\t\t\t\t} else {\r\n\t\t\t\t\tUIManager.setLookAndFeel(laf);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tthis.updateDynamicWelcomeText(\"Done.\");\r\n\t\t} catch (ClassNotFoundException e) {\r\n\t\t\t// log the error message\r\n\t\t\tDialogUtil.getInstance().showErrorMessage(null, e, true);\r\n\t\t\tSystem.out.println(\"IQM Error: An error occurred: \" + e);\r\n\t\t\te.printStackTrace();\r\n\t\t\tSystem.exit(-1);\r\n\t\t} catch (InstantiationException e) {\r\n\t\t\t// log the error message\r\n\t\t\tDialogUtil.getInstance().showErrorMessage(null, e, true);\r\n\t\t\tSystem.out.println(\"IQM Error: An error occurred: \" + e);\r\n\t\t\te.printStackTrace();\r\n\t\t\tSystem.exit(-1);\r\n\t\t} catch (IllegalAccessException e) {\r\n\t\t\t// log the error message\r\n\t\t\tDialogUtil.getInstance().showErrorMessage(null, e, true);\r\n\t\t\tSystem.out.println(\"IQM Error: An error occurred: \" + e);\r\n\t\t\te.printStackTrace();\r\n\t\t\tSystem.exit(-1);\r\n\t\t} catch (UnsupportedLookAndFeelException e) {\r\n\t\t\t// log the error message\r\n\t\t\tDialogUtil.getInstance().showErrorMessage(null, e, true);\r\n\t\t\tSystem.out.println(\"IQM Error: An error occurred: \" + e);\r\n\t\t\te.printStackTrace();\r\n\t\t\tSystem.exit(-1);\r\n\t\t}\r\n\t}", "private void initialize(String configLocation) throws IOException {\n\t\tInputStream input = null;\n\t\tProperties props = null;\n\t\ttry {\n\t\t\tinput = SystemListener.class.getResourceAsStream(configLocation);\n\t\t\tprops = new Properties();\n\t\t\tprops.load(input);\t\t\t\n\t\t} finally {\n\t\t\tif (input != null) {\n\t\t\t\tinput.close();\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(\"System Configration initialize Details:\");\n\t\t\n\t\tfor (Entry<Object, Object> entry : props.entrySet()) {\n\t\t String key=(String)entry.getKey();\n\t\t String value=(String)entry.getValue();\n\t\t System.out.println(\"|------ key[\"+key+\"];value[\"+value+\"]\");\n\t\t\tSystem.setProperty(key , value);\n\t\t}\n\t\tSystem.out.println(\"-------finish\");\n\t}", "public void loadConfig(){\n this.saveDefaultConfig();\n //this.saveConfig();\n\n\n }", "@Override\n public void init() throws Exception {\n config = new Config();\n }", "public static void init() {\n if(!initialized){\r\n // Initialize Properties & InputStream variables\r\n Properties prop = new Properties();\r\n InputStream input = null;\r\n\r\n try { // Read the file\r\n String filename = \"config.properties\";\r\n input = MariaDB.class.getClassLoader().getResourceAsStream(filename);\r\n \r\n if(input == null){\r\n System.out.println(\"Unable to find: \" + filename);\r\n return;\r\n }\r\n \r\n prop.load(input);\r\n setAddress(prop.getProperty(\"mysqlAddress\"));\r\n setPort(prop.getProperty(\"mysqlPort\"));\r\n setDatabase(prop.getProperty(\"dbName\"));\r\n setUsername(prop.getProperty(\"dbUser\"));\r\n setPassword(prop.getProperty(\"dbPass\"));\r\n setInitialized(true);\r\n } // end of try\r\n catch(IOException ex) {\r\n ex.printStackTrace();\r\n } // end of catch\r\n finally { // Close the InputStream\r\n if(input != null) {\r\n try {\r\n input.close();\r\n }\r\n catch(IOException ex) {\r\n ex.printStackTrace();\r\n }\r\n }\r\n } // end of finally\r\n } \r\n }", "public static void setUpConfiguration(@NotNull String[] args) {\n if (args.length != 2) throw new MissingResourceException(\"Missing configuration values\", \"\", \"\");\n Configuration.BUCKET_NAME = args[0];\n Configuration.S3_BUCKET_REGION = args[1];\n\n AWSFileUploader awsFileUploader = new AWSFileUploader();\n Configuration.PREVIOUS_BUILDS = awsFileUploader.getReports();\n\n if (Configuration.AWS_ACCESS_KEY_ID.isEmpty()) {\n throw new MissingResourceException(\"The AWS access key id is missing\", \"\", \"\");\n } else if (Configuration.AWS_SECRET_KEY.isEmpty()) {\n throw new MissingResourceException(\"The AWS secret key is missing\", \"\", \"\");\n } else if (Configuration.GITHUB_TOKEN.isEmpty()) {\n throw new MissingResourceException(\"The Github token is missing\", \"\", \"\");\n } else if (Configuration.M3_HOME.isEmpty()) {\n throw new MissingResourceException(\"The M3 Home path is missing\", \"\", \"\");\n } else if (Configuration.BUCKET_NAME.isEmpty()) {\n throw new MissingResourceException(\"The AWS bucket name is missing\", \"\", \"\");\n } else if (Configuration.S3_BUCKET_REGION.isEmpty()) {\n throw new MissingResourceException(\"The AWS region is missing\", \"\", \"\");\n }\n }", "private void initConfigVar() {\n\t\tConfigUtils configUtils = new ConfigUtils();\n\t\tmenuColor = configUtils.readConfig(\"MENU_COLOR\");\n\t\taboutTitle = configUtils.readConfig(\"ABOUT_TITLE\");\n\t\taboutHeader = configUtils.readConfig(\"ABOUT_HEADER\");\n\t\taboutDetails = configUtils.readConfig(\"ABOUT_DETAILS\");\n\t\tgsTitle = configUtils.readConfig(\"GS_TITLE\");\n\t\tgsHeader = configUtils.readConfig(\"GS_HEADER\");\n\t\tgsDetailsFiles = configUtils.readConfig(\"GS_DETAILS_FILES\");\n\t\tgsDetailsCases = configUtils.readConfig(\"GS_DETAILS_CASES\");\n\t}", "public synchronized static void initConfig(Map<ConfigProperty, String> initialValues) {\n SeLionLogger.getLogger().entering(initialValues);\n\n // only do this if the global config is not already initialized.\n if (xmlConfig == null) {\n xmlConfig = new XMLConfiguration();\n // don't auto throw, let each config value decide\n xmlConfig.setThrowExceptionOnMissing(false);\n // because we can config on the fly, don't auto-save\n xmlConfig.setAutoSave(false);\n\n // Set defaults\n loadInitialValues();\n }\n\n /*\n * otherwise, update the global config\n */\n\n // Load in our supplied values (if defined)\n loadValuesFromUser(initialValues);\n\n // Load in environment & system variables (if defined)\n loadValuesFromEnvironment();\n\n // Init Selenium configuration\n boolean runLocally = xmlConfig.getBoolean(ConfigProperty.SELENIUM_RUN_LOCALLY.getName());\n if (runLocally) {\n xmlConfig.setProperty(ConfigProperty.SELENIUM_HOST.getName(), \"localhost\");\n }\n\n SeLionLogger.getLogger().exiting();\n }", "public void init() {\n\t\tcfg = new Configuration(Configuration.VERSION_2_3_25);\r\n\r\n\t\t// Specify the source where the template files come from.\r\n\t\tcfg.setServletContextForTemplateLoading(getServletContext(), templateDir);\r\n\r\n\t\t// Sets how errors will appear.\r\n\t\t// During web page *development* TemplateExceptionHandler.HTML_DEBUG_HANDLER is better.\r\n\t\t// This handler outputs the stack trace information to the client, formatting it so \r\n\t\t// that it will be usually well readable in the browser, and then re-throws the exception.\r\n\t\t//\t\tcfg.setTemplateExceptionHandler(TemplateExceptionHandler.RETHROW_HANDLER);\r\n\t\tcfg.setTemplateExceptionHandler(TemplateExceptionHandler.HTML_DEBUG_HANDLER);\r\n\r\n\t\t// Don't log exceptions inside FreeMarker that it will thrown at you anyway:\r\n\t\t// Specifies if TemplateException-s thrown by template processing are logged by FreeMarker or not. \r\n\t\t//\t\tcfg.setLogTemplateExceptions(false);\r\n\t}", "@BeforeClass\r\n\tpublic static void setUp() {\n\t\tboard = Board.getInstance();\r\n\t\t// set the file names to use my config files\r\n\t\tboard.setConfigFiles(\"Board_Layout.csv\", \"ClueRooms.txt\", \"players_test.txt\", \"cards.txt\");\t\t\r\n\t\t// Initialize will load BOTH config files \r\n\t\tboard.initialize();\r\n\t}", "public static void processConfig() {\r\n\t\tLOG.info(\"Loading Properties from {} \", propertiesPath);\r\n\t\tLOG.info(\"Opening configuration file ({})\", propertiesPath);\r\n\t\ttry {\r\n\t\t\treadPropertiesFile();\r\n\r\n\t\t} catch (Exception e) {\r\n\t\t\tLOG.error(\r\n\t\t\t\t\t\"Monitoring system encountered an error while processing config file, Exiting\",\r\n\t\t\t\t\te);\r\n\t\t}\r\n\t}", "public void setup() {\n\t\tif (!new File(plugin.getDataFolder() + path).exists())\r\n\t\t\tnew File(plugin.getDataFolder() + path).mkdir();\r\n\r\n\t\tif (!new File(plugin.getDataFolder() + path, name + \".yml\").exists())\r\n\t\t\ttry {\r\n\t\t\t\tnew File(plugin.getDataFolder() + path, name + \".yml\").createNewFile();\r\n\t\t\t} catch (IOException e) {\r\n\t\t\t\tplugin.getLogger().log(Level.SEVERE, \"Could not generate \" + name + \".yml\");\r\n\t\t\t}\r\n\t}", "@Override\n public void init() throws ShiroException {\n Ini ini = this.ini;\n if (ini != null) {\n apply(ini);\n }\n\n if (this.objects.isEmpty() && this.iniConfig != null) {\n ini = new Ini();\n ini.load(this.iniConfig);\n apply(ini);\n }\n\n if (this.objects.isEmpty() && this.iniResourePath != null) {\n ini = new Ini();\n ini.loadFromPath(this.iniResourePath);\n apply(ini);\n }\n\n if (this.objects.isEmpty()) {\n if (ResourceUtils.resourceExists(\"classpath:shiro.ini\")) {\n ini = new Ini();\n ini.loadFromPath(\"classpath:shiro.ini\");\n apply(ini);\n }\n }\n\n if (this.objects.isEmpty()) {\n String msg = \"Configuration error. All heuristics for acquiring Shiro INI config \" +\n \"have been exhausted. Ensure you configure one of the following properties: \" +\n \"1) ini 2) iniConfig 3) iniResourcePath and the Ini sections are not empty.\";\n throw new ConfigurationException(msg);\n }\n\n LifecycleUtils.init(this.objects.values());\n }", "@Override\n\tpublic synchronized void initialize() {\n\t\tFile[] files = mRootDirectory.listFiles();\n\t\tif (files == null) {\n\t\t\treturn;\n\t\t}\n\t\tfor (File file : files) {\n\t\t\tFileInputStream fis = null;\n\t\t\ttry {\n\t\t\t\tfis = new FileInputStream(file);\n\t\t\t\tCacheHeader entry = CacheHeader.readHeader(fis);\n\t\t\t\tentry.size = file.length();\n\t\t\t\tputEntry(entry.key, entry);\n\t\t\t} catch (IOException e) {\n\t\t\t\tif (file != null) {\n\t\t\t\t\tfile.delete();\n\t\t\t\t}\n\t\t\t} finally {\n\t\t\t\ttry {\n\t\t\t\t\tif (fis != null) {\n\t\t\t\t\t\tfis.close();\n\t\t\t\t\t}\n\t\t\t\t} catch (IOException ignored) {\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "public static void loadFromFile() {\n\t\tloadFromFile(Main.getConfigFile(), Main.instance.getServer());\n\t}", "@Test\n public void testLoadConfiguration() throws ConfigurationException\n {\n factory.setFile(TEST_FILE);\n checkConfiguration();\n }", "public void setup() {\r\n\t\ttry {\r\n\t\t\trecentFiles = new RecentFilesHandler();\r\n\t\t} catch (Exception e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\tsetupRecentFiles();\r\n\t}", "private void initWorkSpace() {\n\t\ttry {\n\t\t\tString baseUrl = workspacePath + File.separator + this.RUNTIME_WORKSPACE_DIR;\n\t\t\t// create runtime base\n\t\t\tthis.runtimeBasePath = Paths.get(baseUrl);\n\t\t\tif (!Files.exists(runtimeBasePath)) { // init workspace directories\n\t\t\t\tFiles.createDirectories(runtimeBasePath);\n\t\t\t}\n\t\t\t// create log folder\n\t\t\tthis.wcpLogPath = Paths.get(baseUrl + File.separator + RUNTIME_WORKSPACE_LOG);\n\t\t\tif (!Files.exists(wcpLogPath)) {\n\t\t\t\tFiles.createDirectory(wcpLogPath);\n\t\t\t}\n\t\t\t// create output folder\n\t\t\tthis.wcpOutputPath = Paths.get(baseUrl + File.separator + RUNTIME_WORKSPACE_OUTPUT);\n\t\t\tif (!Files.exists(wcpOutputPath)) {\n\t\t\t\tFiles.createDirectory(wcpOutputPath);\n\t\t\t}\n\t\t\tlog.info(Logging.format(\"Workspace directories are initialized.\"));\n\t\t} catch (IOException e) {\n\t\t\tlog.error(Logging.format(\"Error when initializing configuration: {}\", e.getMessage()));\n\t\t}\n\t}", "public static void loadConfig() throws Exception {\n unloadConfig();\n ConfigManager cm = ConfigManager.getInstance();\n cm.add(new File(\"test_files/stresstest/\" + CONFIG_FILE).getAbsolutePath());\n }", "@Override\n public void init()\n throws InitializationException\n {\n // Create a default configuration.\n String[] def = new String[]\n {\n DEFAULT_RUN_DATA,\n DEFAULT_PARAMETER_PARSER,\n DEFAULT_COOKIE_PARSER\n };\n configurations.put(DEFAULT_CONFIG, def.clone());\n\n // Check other configurations.\n Configuration conf = getConfiguration();\n if (conf != null)\n {\n String key,value;\n String[] config;\n String[] plist = new String[]\n {\n RUN_DATA_KEY,\n PARAMETER_PARSER_KEY,\n COOKIE_PARSER_KEY\n };\n for (Iterator<String> i = conf.getKeys(); i.hasNext();)\n {\n key = i.next();\n value = conf.getString(key);\n int j = 0;\n for (String plistKey : plist)\n {\n if (key.endsWith(plistKey) && key.length() > plistKey.length() + 1)\n {\n key = key.substring(0, key.length() - plistKey.length() - 1);\n config = (String[]) configurations.get(key);\n if (config == null)\n {\n config = def.clone();\n configurations.put(key, config);\n }\n config[j] = value;\n break;\n }\n j++;\n }\n }\n }\n\n\t\tpool = (PoolService)TurbineServices.getInstance().getService(PoolService.ROLE);\n\n if (pool == null)\n {\n throw new InitializationException(\"RunData Service requires\"\n + \" configured Pool Service!\");\n }\n\n parserService = (ParserService)TurbineServices.getInstance().getService(ParserService.ROLE);\n\n if (parserService == null)\n {\n throw new InitializationException(\"RunData Service requires\"\n + \" configured Parser Service!\");\n }\n\n setInit(true);\n }", "public static void Init() throws Exception\r\n\t{\r\n\t\tDocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance();\r\n\t\tDocumentBuilder db = dbf.newDocumentBuilder();\r\n\t\tDocument dom = db.parse(\"bin\\\\configurations\\\\Configurations.xml\");\r\n\t\tRoot = new Configurations(dom.getFirstChild());\r\n\t}", "private Config()\n {\n try\n {\n // Load settings from file\n load();\n }\n catch(IOException e)\n {\n e.printStackTrace();\n }\n }", "public void setup() {\n\t\tif(!plugin.getDataFolder().exists()) {\n\t\t\tplugin.getDataFolder().mkdir();\n\t\t}\n\n\t\t// Create main file\n\t\tString FileLocation = plugin.getDataFolder().toString() + File.separator + \"Storage\" + \".yml\";\n\t\tFile tmp = new File(FileLocation);\n\t\tstoragefile = tmp;\n\t\t// Check if file exists\n\t\tif (!storagefile.exists()) {\n\t\t\ttry {\n\t\t\t\tstoragefile.createNewFile();\n\t\t\t}catch(IOException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t\tBukkit.getServer().getConsoleSender().sendMessage(net.md_5.bungee.api.ChatColor.RED + \"Storage file unable to be created!\");\n\t\t\t}\n\t\t}\n\t\tstoragecfg = YamlConfiguration.loadConfiguration(storagefile);\n\t\tcreateStorageValues();\n\t}", "private void configureLogging() throws FileNotFoundException, IOException {\n\t\tConfigurationSource source = new ConfigurationSource(new FileInputStream(CONFIG_LOG_LOCATION));\r\n\t\tConfigurator.initialize(null, source);\r\n\t\tlog = LogManager.getLogger(SekaiClient.class);\r\n\t}", "public void init() {\n File file = new File(FILE);\n if (!file.exists()) {\n File file2 = new File(file.getParent());\n if (!file2.exists()) {\n file2.mkdirs();\n }\n }\n if (this.accessFile == null) {\n try {\n this.accessFile = new RandomAccessFile(FILE, \"rw\");\n } catch (FileNotFoundException unused) {\n }\n }\n }", "protected void initVars() {\n prefFile = \"./server.ini\";\n mimeFile = \"./mime.ini\";\n }", "public void init() {\n this.properties = loadProperties(\"/project3.properties\");\n }", "public static void initialize() throws IOException {\n log.info(\"Initialization started.\");\n // Set log4j configs\n PropertyConfigurator.configure(Paths.get(\".\", Constants.LOG4J_PROPERTIES).toString());\n // Read client configurations\n configs = PropertyReader.loadProperties(Paths.get(\".\", Constants.CONFIGURATION_PROPERTIES).toString());\n\n // Set trust-store configurations to the JVM\n log.info(\"Setting trust store configurations to JVM.\");\n if (configs.getProperty(Constants.TRUST_STORE_PASSWORD) != null && configs.getProperty(Constants.TRUST_STORE_TYPE) != null\n && configs.getProperty(Constants.TRUST_STORE) != null) {\n System.setProperty(\"javax.net.ssl.trustStore\", Paths.get(\".\", configs.getProperty(Constants.TRUST_STORE)).toString());\n System.setProperty(\"javax.net.ssl.trustStorePassword\", configs.getProperty(Constants.TRUST_STORE_PASSWORD));\n System.setProperty(\"javax.net.ssl.trustStoreType\", configs.getProperty(Constants.TRUST_STORE_TYPE));\n } else {\n log.error(\"Trust store configurations missing in the configurations.properties file. Aborting process.\");\n System.exit(1);\n }\n log.info(\"Initialization finished.\");\n }", "private static void initialization() {\n File installationDir = new File(Constants.INSTALL_DIRECTORY, \"docli\");\n if(installationDir.exists()) {\n // user file exists\n } else {\n String s = String.format(\"Installing files at %s\", Constants.INSTALL_DIRECTORY);\n display.display(s);\n installationDir.mkdir();\n try {\n File f = new File(installationDir, \"docli_database.db\");\n f.createNewFile();\n }catch (IOException e) {\n System.out.println(e.getMessage());\n }\n manager.executeDMLStatementSync(Constants.CREATE_TABLE_ITEM);\n }\n }", "public void init()\r\n {\n readFile(inputFile);\r\n writeInfoFile();\r\n }", "public void init() {\n \t\tif (initLock.start()) {\n \t\t\ttry {\n \t\t\t\tthis._init(this.config);\n \t\t\t} finally {\n \t\t\t\tinitLock.end();\n \t\t\t}\n \t\t}\n \t}", "void init (Map<String, String> conf) throws ConfigException;", "private static void loadConfig()\n\t{\n\t\ttry\n\t\t{\n\t\t\tfinal Properties props = ManagerServer.loadProperties(ManagerServer.class, \"/resources/conf.properties\");\n\t\t\tasteriskIP = props.getProperty(\"asteriskIP\");\n\t\t\tloginName = props.getProperty(\"userName\");\n\t\t\tloginPwd = props.getProperty(\"password\");\n\t\t\toutboundproxy = props.getProperty(\"outBoundProxy\");\n\t\t\tasteriskPort = Integer.parseInt(props.getProperty(\"asteriskPort\"));\n\t\t}\n\t\tcatch (IOException ex)\n\t\t{\n\t\t\tLOG.error(\"IO Exception while reading the configuration file.\", ex);\n\t\t}\n\t}", "private AppConfigLoader() {\r\n\r\n\t\tProperties appConfigPropertySet = new Properties();\r\n\t\tProperties envConfigPropertySet = new Properties();\r\n\r\n\t\ttry {\r\n\r\n\t\t\t// read properties file\r\n\t\t\tInputStream appConfigPropertyStream = AppConfigLoader.class\r\n\t\t\t\t\t.getResourceAsStream(\"/config/baseAppConfig.properties\");\r\n\t\t\tappConfigPropertySet.load(appConfigPropertyStream);\r\n\r\n\t\t\tInputStream envConfigPropertyStream = null;\r\n\r\n\t\t\t// check if current environment is defined (QA, Integration or Staging)\r\n\t\t\tif (System.getProperty(\"environment\") != null) {\r\n\t\t\t\tenvConfigPropertyStream = AppConfigLoader.class\r\n\t\t\t\t\t\t.getResourceAsStream(\"/config/\" + System.getProperty(\"environment\") + \"/appConfig.properties\");\r\n\t\t\t\tSystem.out.println(\"********'ENVIRONMENT Details taken from Runtime'********\");\r\n\t\t\t\tSystem.out.println(\"********'\" + System.getProperty(\"environment\") + \" ENVIRONMENT'********\");\r\n\t\t\t\tenvironment = System.getProperty(\"environment\");\r\n\t\t\t} else {\r\n\t\t\t\tenvConfigPropertyStream = AppConfigLoader.class.getResourceAsStream(\r\n\t\t\t\t\t\t\"/config/\" + appConfigPropertySet.getProperty(\"CurrentEnvironment\") + \"/appConfig.properties\");\r\n\t\t\t\tSystem.out.println(\"********'ENVIRONMENT Details taken from Baseapp config property file'********\");\r\n\t\t\t\tSystem.out.println(\r\n\t\t\t\t\t\t\"********'\" + appConfigPropertySet.getProperty(\"CurrentEnvironment\") + \" ENVIRONMENT'********\");\r\n\t\t\t\tenvironment = appConfigPropertySet.getProperty(\"CurrentEnvironment\");\r\n\t\t\t}\r\n\r\n\t\t\tenvConfigPropertySet.load(envConfigPropertyStream);\r\n\r\n\t\t\tthis.sampleURL = envConfigPropertySet.getProperty(\"SampleUrl\");\r\n\t\t\tthis.sampleAPIURL = envConfigPropertySet.getProperty(\"SampleAPIUrl\");\r\n\r\n\t\t\tthis.sampleDbConnectionString = envConfigPropertySet.getProperty(\"SampleConnectionString\");\r\n\r\n\t\t\tenvConfigPropertyStream.close();\r\n\t\t\tappConfigPropertyStream.close();\r\n\r\n\t\t} catch (IOException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}" ]
[ "0.7607269", "0.7505853", "0.7345551", "0.7073444", "0.70046175", "0.6975178", "0.6867736", "0.68555343", "0.68514854", "0.6746622", "0.67182076", "0.6647934", "0.66364413", "0.6633969", "0.65669644", "0.65635026", "0.65372324", "0.6526922", "0.6510001", "0.64966935", "0.6468843", "0.64556146", "0.64421", "0.6427473", "0.63849765", "0.63823056", "0.6368196", "0.6362372", "0.63613313", "0.6350598", "0.6348988", "0.6325108", "0.63217205", "0.6307784", "0.6303926", "0.6294244", "0.6288094", "0.6285267", "0.6283948", "0.62813514", "0.6277595", "0.6270394", "0.6234925", "0.62275356", "0.6211602", "0.6208982", "0.61991435", "0.6197552", "0.619604", "0.6185673", "0.6185153", "0.61683667", "0.61595017", "0.61433446", "0.6133239", "0.61259747", "0.61189526", "0.61182183", "0.6115879", "0.6115015", "0.6112378", "0.6111493", "0.61069196", "0.6088175", "0.6085665", "0.60761344", "0.60729825", "0.60580325", "0.60538167", "0.6047498", "0.603932", "0.60341614", "0.6024019", "0.6017887", "0.6012459", "0.6008802", "0.6001763", "0.5998148", "0.5986884", "0.5986459", "0.5980761", "0.5980385", "0.5970663", "0.5960899", "0.5954837", "0.59547013", "0.5950532", "0.594963", "0.59478676", "0.59219277", "0.59205896", "0.5906469", "0.5904535", "0.5903924", "0.5895158", "0.5894945", "0.58921933", "0.58921635", "0.5879512", "0.58738005" ]
0.80221933
0
Tries to initialize the given home directory
private boolean initHome(File file) { try { FileUtils.forceMkdir(file); return true; } catch (Exception ex) { logger.error("Failed to initialize home directory '" + file + "'", ex); return false; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void init() {\r\n\t\t// check system property\r\n\t\tif (System.getProperty(TACOS_HOME) != null) {\r\n\t\t\tFile customHome = new File(System.getProperty(TACOS_HOME));\r\n\t\t\tif (initHome(customHome)) {\r\n\t\t\t\thomeDir = customHome;\r\n\t\t\t\tlogger.info(\"Using custom home directory ('\" + homeDir + \"')\");\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\t// custom home directory not available (or failed to initialize)\r\n\t\tFile defaultHome = new File(System.getProperty(DEFAULT_HOME), \".tacos\");\r\n\t\tif (initHome(defaultHome)) {\r\n\t\t\thomeDir = defaultHome;\r\n\t\t\tlogger.info(\"Using default home directory ('\" + homeDir + \"')\");\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\t// fallback if everything goes wrong\r\n\t\tlogger.warn(\"Using temporary directory to store files\");\r\n\t\thomeDir = new File(System.getProperty(\"java.io.tmpdir\"), \".tacos\");\r\n\t\tinitHome(homeDir);\r\n\t}", "HomeDir getHome(BaseUser u);", "private static void initGameFolder() {\n\t\tString defaultFolder = System.getProperty(\"user.home\") + STENDHAL_FOLDER;\n\t\t/*\n\t\t * Add any previously unrecognized unix like systems here. These will\n\t\t * try to use ~/.config/stendhal if the user does not have saved data\n\t\t * in ~/stendhal.\n\t\t *\n\t\t * OS X is counted in here too, but should it?\n\t\t *\n\t\t * List taken from:\n\t\t * \thttp://mindprod.com/jgloss/properties.html#OSNAME\n\t\t */\n\t\tString unixLikes = \"AIX|Digital Unix|FreeBSD|HP UX|Irix|Linux|Mac OS X|Solaris\";\n\t\tString system = System.getProperty(\"os.name\");\n\t\tif (system.matches(unixLikes)) {\n\t\t\t// Check first if the user has important data in the default folder.\n\t\t\tFile f = new File(defaultFolder + \"user.dat\");\n\t\t\tif (!f.exists()) {\n\t\t\t\tgameFolder = System.getProperty(\"user.home\") + separator\n\t\t\t\t+ \".config\" + separator + STENDHAL_FOLDER;\n\t\t\t\treturn;\n\t\t\t}\n\t\t}\n\t\t// Everyone else should use the default top level directory in $HOME\n\t\tgameFolder = defaultFolder;\n\t}", "private File getHomeDirectory() {\n String brunelDir = System.getProperty(\"brunel.home\");\n File home = brunelDir != null ? new File(brunelDir) :\n new File(System.getProperty(\"user.home\"), \"brunel\");\n return ensureWritable(home);\n }", "public File getHomeDir() {\n\t\tFile f = new File(System.getProperty(\"user.home\"),MuViChatConstants.muviHomeDir);\t\t\n if (!f.isDirectory()) {\n\t f.mkdir();\t \n\t }\n return f;\n\t}", "public static String getHomeDirectory() {\n\t\treturn System.getProperty(\"user.home\");\n\t}", "public File getHomeDir() {\n return physicalHomeDir;\n }", "public static String home() {\n\n String treefsHome = stringValue(\"treefs.home\");\n if(isNullOrEmpty(treefsHome)) {\n // default home location\n treefsHome = System.getProperty(\"user.dir\");\n }\n\n return treefsHome;\n }", "@Override\n public Home defaultHome() {\n Home h = null;\n for (String ver : VER_CURRENT) {\n for (String path : WKIP) {\n if (Utilities.isWindows() && path.contains(\"AppData\")) { //NOI18N\n // issue #251710 - Gluon SceneBuilder by default installs to C:\\Users\\<username>\\AppData\\Local\\SceneBuilder\n final String appDataPath = System.getenv(\"AppData\"); //NOI18N\n if (appDataPath != null) {\n final FileObject appDataFo = FileUtil.toFileObject(new File(appDataPath)).getParent();\n h = loadHome(path.replace(VER_DELIMITER, ver).replace(APPDATA_DELIMITER, appDataFo.getPath()));\n }\n } else {\n h = loadHome(path.replace(VER_DELIMITER, ver), ver);\n }\n if (h != null) {\n return h;\n }\n }\n }\n return h;\n }", "public File getHome() {\r\n\t\treturn homeDir;\r\n\t}", "private static String\n\tgetDefaultPrefsDir()\n\t{\n\t\tString homeDir\t= System.getProperty( \"user.home\" );\n\t\tif ( homeDir == null )\n\t\t{\n\t\t\thomeDir\t= \".\";\n\t\t}\n\t\t\n\t\treturn( homeDir );\n\t}", "protected File getDefaultHomeDir()\n throws AntException\n {\n if( null != m_userDir )\n {\n try \n {\n checkDirectory( m_userDir, null );\n return m_userDir;\n }\n catch( final AntException ae ) {}\n }\n\n final String os = System.getProperty( \"os.name\" );\n final File candidate = \n (new File( getSystemLocationFor( os ) )).getAbsoluteFile();\n checkDirectory( candidate, \"ant-home\" );\n return candidate;\n }", "private static Home getHomeForPath(String path, String launcherPath, String propertiesPath, String defaultVersion) throws PathDoesNotExist {\n Parameters.notNull(\"path\", path); //NOI18N\n Parameters.notNull(\"launcherPath\", launcherPath); //NOI18N\n Parameters.notNull(\"propertiesPath\", propertiesPath); //NOI18N\n String homePath = path;\n if(path.startsWith(\"~\")) { // NOI18N\n String userHome = System.getProperty(\"user.home\"); // NOI18N\n homePath = userHome + path.substring(1);\n }\n File installDir = new File(homePath);\n if (installDir != null && installDir.exists() && installDir.isDirectory()) {\n FileObject installDirFO = FileUtil.toFileObject(installDir);\n\n File launcher = new File(homePath + File.separator + launcherPath);\n if(launcher != null && launcher.exists() && launcher.isFile()) {\n \n FileObject propertiesFO = installDirFO.getFileObject(propertiesPath); // NOI18N\n if (propertiesFO != null && propertiesFO.isValid() && propertiesFO.isData()) {\n try {\n Properties props = new Properties();\n FileReader reader = new FileReader(FileUtil.toFile(propertiesFO));\n try {\n props.load(reader);\n } finally {\n reader.close();\n }\n String version = props.getProperty(\"version\"); //NOI18N\n if (version == null) {\n version = props.getProperty(\"app.version\"); //NOI18N\n }\n return new Home(homePath, launcherPath, propertiesPath, version == null ? defaultVersion : version);\n } catch (IOException e) {\n }\n } else if (Utilities.isMac() && path.equals(NbBundle.getMessage(SBHomeFactory.class, \"MAC_GLUON_HOME\"))) { //NOI18N\n // Gluon SceneBuilder 8.0.0 does not have scenebuilder.properties file\n return new Home(homePath, launcherPath, propertiesPath, defaultVersion);\n }\n }\n } else {\n throw new PathDoesNotExist();\n }\n return null;\n }", "@Override\r\n\tpublic String getUserHome() throws FileSystemUtilException\r\n\t{\r\n\t\tlogger.debug(\"Begin: \"+getClass().getName()+\":test()\");\t\r\n\t\ttry\r\n\t\t{\r\n\t\t\tconnect(); \r\n\t\t\tString command = \"pwd\";\t\t\t\r\n\t\t\tint signal = executeSimpleCommand(command);\r\n\t\r\n\t\t\tif(signal != 0)\r\n\t\t\t{\t\t\t \r\n\t\t\t\tthrow new FileSystemUtilException(\"ET0030\");\r\n\t\t\t}\r\n\t\t\tdisconnect();\t\t\r\n\t\t\tString[] dirName = getFileNamesArray(output);\r\n\t\t\tlogger.debug(\"UserHome is : \"+dirName[0]);\r\n\t\t\tlogger.debug(\"End: \"+getClass().getName()+\":test()\");\r\n\t\t\treturn dirName[0];\r\n\t\t}\r\n\t\t\r\n\t\tcatch(FileSystemUtilException ee)\r\n\t\t{\r\n\t\t disconnect();\t\r\n\t\t\tthrow new FileSystemUtilException(ee.getErrorCode(),ee.getException());\r\n\t\t}\r\n\t}", "private String getInitialDirectory() {\n String lastSavedPath = controller.getLastSavePath();\n\n if (lastSavedPath == null) {\n return System.getProperty(Constants.JAVA_USER_HOME);\n }\n\n File lastSavedFile = new File(lastSavedPath);\n\n return lastSavedFile.getAbsoluteFile().getParent();\n }", "public static String getUserHome() {\n return System.getProperty(\"user.home\");\n }", "private void initDirectoryService(File workDir) {\n if (!workDir.exists()) {\n boolean dirsCreated = workDir.mkdirs();\n if (!dirsCreated) {\n logger.debug(\"Not all directories could be created. \" + workDir.getAbsolutePath());\n }\n }\n /*\n WhydahConfig fCconfig = new WhydahConfig();\n if (fCconfig.getProptype().equals(\"FCDEV\")) {\n dc = \"WHYDAH\";\n } else if (fCconfig.getProptype().equals(\"DEV\")) {\n dc = \"WHYDAH\";\n } else {\n dc = \"WHYDAH\";\n }\n */\n init(workDir.getPath());\n\n // And start the identity\n // service.startup();\n }", "public File getInstHomeDir() {\n \treturn this.getHomeDir(\"octHome\");\n }", "protected File getFlexHomeDirectory()\n\t{\n\t\tif (!m_initializedFlexHomeDirectory)\n\t\t{\n\t\t\tm_initializedFlexHomeDirectory = true;\n\t\t\tm_flexHomeDirectory = new File(\".\"); // default in case the following logic fails //$NON-NLS-1$\n\t\t\tString flexHome = System.getProperty(\"application.home\"); //$NON-NLS-1$\n\t\t\tif (flexHome != null && flexHome.length() > 0)\n\t\t\t{\n\t\t\t\ttry\n\t\t\t\t{\n\t\t\t\t\tm_flexHomeDirectory = new File(flexHome).getCanonicalFile();\n\t\t\t\t}\n\t\t\t\tcatch (IOException e)\n\t\t\t\t{\n\t\t\t\t\t// ignore\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\treturn m_flexHomeDirectory;\n\t}", "private void setWorkDiretory() {\n\t\tthis.workDiretory = System.getProperty(\"user.dir\");\n\t}", "private void setPwdByOS() {\n\t\t\n\t\tString home = System.getProperty(\"user.home\");\n\t\t\n\t\tif (OSUtils.isWindows()) {\n\t\t\tpwd = home + \"\\\\client\\\\\";\n\t\t\t\n\t\t} else if (OSUtils.isMac() || OSUtils.isUnix()) {\n\t\t\tpwd = home + \"/client/\";\n\t\t\t\n\t\t}\n\t\t\n\t\tboolean exists = FileUtils.createDirectory(pwd);\n\t\tif (!exists) {\n\t\t\tSystem.err.println(\"Failed to create PWD: \" + pwd);\n\t\t}\n\t\n\t}", "public static void setHome(String home) {\n FindBugs.home = home;\n }", "public void init(){\n\t\ttry{\n\t\t\tFile file=new File(\"c:/EasyShare/setting/dir.es\");\n\t\t\tif(!file.exists()){\n\t\t\t\tfile.getParentFile().mkdirs();\n\t\t\t\tfile.createNewFile();\n\n\t\t\t\t\n\t\t\t\t}\n\t\t\t}catch (Exception e) {\n\t\t\t}\n\t}", "private void setCarbonHome() {\n Path carbonHome = Paths.get(\"\");\n carbonHome = Paths.get(carbonHome.toString(), \"src\", \"test\");\n System.setProperty(CARBON_HOME, carbonHome.toString());\n logger.info(\"Carbon Home Absolute path set to: \" + carbonHome.toAbsolutePath());\n\n }", "public static String testHome()\n {\n if (testHome == null)\n {\n //See if we set it as a property using TestLauncher\n testHome = System.getProperty (\"jacorb.test.home\");\n\n //Try to find it from the run directory\n if (testHome == null)\n {\n URL url = TestUtils.class.getResource(\"/.\");\n\n String result = url.toString();\n if (result.matches(\"file:/.*?\"))\n {\n result = result.substring (5, result.length() - 9);\n }\n String relativePath=\"/classes/\";\n if (!pathExists(result, relativePath))\n {\n throw new RuntimeException (\"cannot find test home\");\n }\n testHome = osDependentPath(result);\n }\n }\n return testHome;\n }", "private static String getRioHomeDirectory() {\n String rioHome = RioHome.get();\n if(!rioHome.endsWith(File.separator))\n rioHome = rioHome+File.separator;\n return rioHome;\n }", "public DirectoryFileLocator() {\r\n this(System.getProperty(\"user.dir\"));\r\n }", "public Path getInstallationHome() {\n return home;\n }", "private boolean verifyAsinstalldir(File home) throws ClassNotFoundException{\n if (home!= null && home.isDirectory()) {\n if ( new File(home, \"config\").isDirectory() ) {\n return true;\n } \n }\n throw new ClassNotFoundException(\"ClassCouldNotBeFound\");\n }", "public void setHome(Location home) {\n this.home = home;\n }", "private void initFileSystem() {\n\tchkSD();\n\t appDirectory = new File(\"/sdcard/Subway/\");\n\n\t\tif(appDirectory.mkdirs()){\n\t\t\t//BRAND NEW PERSON PROJECT FIRST TIME THEY HAVE THE PHONE\n\t\t\tLog.e(\"SY\", \"First time with app!\");\n\t\t\tchangeUser();\n\t\t\n\t\t}\n\t\telse{\n\t\t\tappDirectory.mkdirs();\n\t\t\tLog.e(\"MYTT\", \"Used the App before\");\n\t\t\t\n\t\t\talreadyThereProjects = new ArrayList<String>();\n\n\t\t\t// Note that Arrays.asList returns a horrible fixed length list, Make\n\t\t\t// sure to cast to ArrayList\n\n\t\t\t\talreadyThereProjects = new ArrayList<String>(Arrays.asList(appDirectory.list()));\n\t\t\t\tif(alreadyThereProjects.size()>0)\n\t\t\t\t{\n\t\t\t\tuserID=Integer.parseInt( alreadyThereProjects.get(0).substring(5));\n\t\t\t\tmakeUser();\n\t\t\t\tloadUpAllPics();\n\t\t\t\tLog.e(\"SY\", \"THERE WAS ALREADY ONE:\"+alreadyThereProjects.get(0).substring(5));\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\tchangeUser();\n\t\t\t\t}\n\t\t\t\n\t\t}\n\n\n\t\t\t\n}", "private void initPath() {\n this.IniFile = new IniFile();\n String configPath = this.getApplicationContext().getFilesDir()\n .getParentFile().getAbsolutePath();\n if (configPath.endsWith(\"/\") == false) {\n configPath = configPath + \"/\";\n }\n this.appIniFile = configPath + constants.USER_CONFIG_FILE_NAME;\n }", "private String getHome()\n {\n return this.bufferHome.getAbsolutePath() + \"/\";\n }", "public void setPlatformHome(final File platformHome)\n {\n this.platformHome = platformHome;\n }", "@Override\n public Home loadHome(String customPath) {\n return loadHome(customPath, DEFAULT_VERSION);\n }", "private String getArcGISHomeDir() throws IOException {\n String arcgisHome = null;\n /* Not found in env, check system property */\n if (System.getProperty(ARCGISHOME_ENV) != null) {\n arcgisHome = System.getProperty(ARCGISHOME_ENV);\n }\n if(arcgisHome == null) {\n /* To make env lookup case insensitive */\n Map<String, String> envs = System.getenv();\n for (String envName : envs.keySet()) {\n if (envName.equalsIgnoreCase(ARCGISHOME_ENV)) {\n arcgisHome = envs.get(envName);\n }\n }\n }\n if(arcgisHome != null && !arcgisHome.endsWith(File.separator)) {\n arcgisHome += File.separator;\n }\n return arcgisHome;\n }", "private void initDirectoryService(File workDir) throws Exception {\n // Initialize the LDAP service\n service = new DefaultDirectoryService();\n service.setInstanceId(currentTest.getDisplayName());\n service.setInstanceLayout(new InstanceLayout(workDir));\n CacheService cacheService = new CacheService();\n cacheService.initialize(service.getInstanceLayout(), \"test\");\n service.setCacheService(cacheService);\n\n factory = new JdbmPartitionFactory();\n\n // first load the schema\n initSchema();\n\n // then the system partition\n // this is a MANDATORY partition\n initSystemPartition();\n\n // Disable the ChangeLog system\n service.getChangeLog().setEnabled(false);\n service.setDenormalizeOpAttrsEnabled(true);\n\n // Now we can create as many partitions as we need\n // Create some new partitions named 'foo', 'bar' and 'apache'.\n\n Partition partition;\n if (ldapSchema == null) {\n partition = addPartition(\"jenkins\", \"dc=jenkins,dc=io\");\n } else {\n partition = addPartition(ldapSchema.id(), ldapSchema.dn());\n }\n\n // Index some attributes on the jenkins partition\n addIndex(partition, \"objectClass\", \"ou\", \"uid\");\n\n // And start the service\n service.startup();\n\n try {\n CoreSession coreSession = service.getAdminSession();\n ModifyRequest modifyRequest = new ModifyRequestImpl();\n modifyRequest.setName(new Dn(\"uid=admin\", \"ou=system\"));\n modifyRequest.replace(\"userPassword\", configuration == null ? \"password\" : configuration.adminPassword());\n coreSession.modify(modifyRequest);\n } catch (LdapException lnnfe) {\n throw new AssertionError(\"Could not update admin password\");\n }\n\n if (ldapSchema != null) {\n String resourceName = ldapSchema.ldif() + \".ldif\";\n String schemaSource = resourceName.startsWith(\"/\")\n ? resourceName\n : currentTest.getTestClass().getName().replace('.', '/') + \"/\" + resourceName;\n try (InputStream stream = currentTest.getTestClass().getResourceAsStream(resourceName)) {\n LOGGER.log(Level.INFO, \"Importing schema from {0}\", schemaSource);\n loadSchema(partition, stream);\n }\n }\n\n // We are all done !\n }", "private void initializeLocation() throws CoreException {\n \t\tif (location.toFile().exists()) {\n \t\t\tif (!location.toFile().isDirectory()) {\n \t\t\t\tString message = NLS.bind(CommonMessages.meta_notDir, location);\n \t\t\t\tthrow new CoreException(new Status(IStatus.ERROR, IRuntimeConstants.PI_RUNTIME, IRuntimeConstants.FAILED_WRITE_METADATA, message, null));\n \t\t\t}\n \t\t}\n \t\t//try infer the device if there isn't one (windows)\n \t\tif (location.getDevice() == null)\n \t\t\tlocation = new Path(location.toFile().getAbsolutePath());\n \t\tcreateLocation();\n \t\tinitialized = true;\n \t}", "private void initializeTargetDirectory()\n {\n if ( isFtpEnabled() )\n initializeRemoteTargetDirectory();\n else\n initializeLocalTargetDirectory(); \n }", "private static void initialization() {\n File installationDir = new File(Constants.INSTALL_DIRECTORY, \"docli\");\n if(installationDir.exists()) {\n // user file exists\n } else {\n String s = String.format(\"Installing files at %s\", Constants.INSTALL_DIRECTORY);\n display.display(s);\n installationDir.mkdir();\n try {\n File f = new File(installationDir, \"docli_database.db\");\n f.createNewFile();\n }catch (IOException e) {\n System.out.println(e.getMessage());\n }\n manager.executeDMLStatementSync(Constants.CREATE_TABLE_ITEM);\n }\n }", "private void initLocalDirectory() throws IOException {\n\t\tSystem.out.println(\"initLocalDirectory() of thread number: \"\n\t\t\t\t+ Thread.currentThread().getId());\n\t\tBruteForceTask btask = (BruteForceTask) mTask;\n\t\tState targetState = SgUtils.get_last_state(btask.getPath());\n\t\tString toBruteId = (targetState == null ? \"\"\n\t\t\t\t+ Thread.currentThread().getId() : targetState.getId());\n\t\tSystem.out.println(\"to Brute id \" + toBruteId);\n\t\tSystem.out.println(toBruteId);\n\t\tmSgdEnvironnement.init(toBruteId);\n\n\t}", "public static void init(File envHome) throws DatabaseException {\n try {\n //noinspection ResultOfMethodCallIgnored\n envHome.mkdirs();\n } catch (Exception e) {\n e.printStackTrace();\n }\n\n /* Open a transactional Berkeley DB engine environment. */\n EnvironmentConfig envConfig = new EnvironmentConfig();\n envConfig.setAllowCreate(true);\n// envConfig.setTransactional(true);\n env = new Environment(envHome, envConfig);\n\n /* Open a transactional entity store. */\n StoreConfig storeConfig = new StoreConfig();\n storeConfig.setAllowCreate(true);\n// storeConfig.setTransactional(true);\n store = new EntityStore(env, \"CrawlerStore\", storeConfig);\n\n /* Initialize the data access object. */\n userAccessor = new UserAccessor(store);\n documentAccessor = new DocumentAccessor(store);\n }", "public static String setupJMeterHome() {\n if (JMeterUtils.getJMeterProperties() == null) {\n String file = \"jmeter.properties\";\n File f = new File(file);\n if (!f.canRead()) {\n System.out.println(\"Can't find \" + file + \" - trying bin/ and ../bin\");\n if (!new File(\"bin/\" + file).canRead()) {\n // When running tests inside IntelliJ\n filePrefix = \"../bin/\"; // JMeterUtils assumes Unix-style separators\n } else {\n filePrefix = \"bin/\"; // JMeterUtils assumes Unix-style separators\n }\n file = filePrefix + file;\n } else {\n filePrefix = \"\";\n }\n // Used to be done in initializeProperties\n String home=new File(System.getProperty(\"user.dir\"),filePrefix).getParent();\n System.out.println(\"Setting JMeterHome: \"+home);\n JMeterUtils.setJMeterHome(home);\n }\n return filePrefix;\n }", "public static void initialize() {\n // check to see if the name of an alternate configuration\n // file has been specified. This can be done, for example,\n // java -Dfilesys.conf=myfile.txt program-name parameter ...\n String propertyFileName = System.getProperty(\"filesys.conf\");\n if (propertyFileName == null)\n propertyFileName = \"filesys.conf\";\n Properties properties = new Properties();\n try {\n FileInputStream in = new FileInputStream(propertyFileName);\n properties.load(in);\n in.close();\n } catch (FileNotFoundException e) {\n System.err.println(PROGRAM_NAME + \": error opening properties file\");\n System.exit(EXIT_FAILURE);\n } catch (IOException e) {\n System.err.println(PROGRAM_NAME + \": error reading properties file\");\n System.exit(EXIT_FAILURE);\n }\n\n // get the root file system properties\n String rootFileSystemFilename =\n properties.getProperty(\"filesystem.root.filename\", \"filesys.dat\");\n String rootFileSystemMode =\n properties.getProperty(\"filesystem.root.mode\", \"rw\");\n\n // get the current process properties\n short uid = 1;\n try {\n uid = Short.parseShort(properties.getProperty(\"process.uid\", \"1\"));\n } catch (NumberFormatException e) {\n System.err.println(PROGRAM_NAME +\n \": invalid number for property process.uid in configuration file\");\n System.exit(EXIT_FAILURE);\n }\n\n short gid = 1;\n try {\n gid = Short.parseShort(properties.getProperty(\"process.gid\", \"1\"));\n } catch (NumberFormatException e) {\n System.err.println(PROGRAM_NAME +\n \": invalid number for property process.gid in configuration file\");\n System.exit(EXIT_FAILURE);\n }\n\n short umask = 0002;\n try {\n umask = Short.parseShort(\n properties.getProperty(\"process.umask\", \"002\"), 8);\n } catch (NumberFormatException e) {\n System.err.println(PROGRAM_NAME +\n \": invalid number for property process.umask in configuration file\");\n System.exit(EXIT_FAILURE);\n }\n\n String dir = \"/root\";\n dir = properties.getProperty(\"process.dir\", \"/root\");\n\n try {\n MAX_OPEN_FILES = Integer.parseInt(properties.getProperty(\n \"kernel.max_open_files\", \"20\"));\n } catch (NumberFormatException e) {\n System.err.println(PROGRAM_NAME +\n \": invalid number for property kernel.max_open_files in configuration file\");\n System.exit(EXIT_FAILURE);\n }\n\n try {\n ProcessContext.MAX_OPEN_FILES = Integer.parseInt(\n properties.getProperty(\"process.max_open_files\", \"10\"));\n } catch (NumberFormatException e) {\n System.err.println(PROGRAM_NAME +\n \": invalid number for property process.max_open_files in configuration file\");\n System.exit(EXIT_FAILURE);\n }\n\n // create open file array\n openFiles = new FileDescriptor[MAX_OPEN_FILES];\n\n // create the first process\n process = new ProcessContext(uid, gid, dir, umask);\n processCount++;\n\n // open the root file system\n try {\n openFileSystems[ROOT_FILE_SYSTEM] = new FileSystem(\n rootFileSystemFilename, rootFileSystemMode);\n } catch (IOException e) {\n System.err.println(PROGRAM_NAME + \": unable to open root file system\");\n System.exit(EXIT_FAILURE);\n }\n\n }", "private void initWorkSpace() {\n\t\ttry {\n\t\t\tString baseUrl = workspacePath + File.separator + this.RUNTIME_WORKSPACE_DIR;\n\t\t\t// create runtime base\n\t\t\tthis.runtimeBasePath = Paths.get(baseUrl);\n\t\t\tif (!Files.exists(runtimeBasePath)) { // init workspace directories\n\t\t\t\tFiles.createDirectories(runtimeBasePath);\n\t\t\t}\n\t\t\t// create log folder\n\t\t\tthis.wcpLogPath = Paths.get(baseUrl + File.separator + RUNTIME_WORKSPACE_LOG);\n\t\t\tif (!Files.exists(wcpLogPath)) {\n\t\t\t\tFiles.createDirectory(wcpLogPath);\n\t\t\t}\n\t\t\t// create output folder\n\t\t\tthis.wcpOutputPath = Paths.get(baseUrl + File.separator + RUNTIME_WORKSPACE_OUTPUT);\n\t\t\tif (!Files.exists(wcpOutputPath)) {\n\t\t\t\tFiles.createDirectory(wcpOutputPath);\n\t\t\t}\n\t\t\tlog.info(Logging.format(\"Workspace directories are initialized.\"));\n\t\t} catch (IOException e) {\n\t\t\tlog.error(Logging.format(\"Error when initializing configuration: {}\", e.getMessage()));\n\t\t}\n\t}", "private void setupDirectoryChooser(DirectoryChooser directoryChooser) \n {\n directoryChooser.setTitle(\"Select Directory to save Report\");\n\n // Set Initial Directory\n directoryChooser.setInitialDirectory(new File(System.getProperty(\"user.home\")));\n }", "Preferences systemRoot();", "public DirectoryManager(String directory,String _username){\n username = _username;\n root = new File(directory);\n if(!root.exists()) //create root directory if it doesn't exists\n root.mkdir();\n PWD = new File(root,username); //set home directory(root/username) as PWD\n if (!PWD.exists()) { //create PWD directory if it doesn't exists\n PWD.mkdir();\n }\n pattern = Pattern.compile(root + osPathSeprator + username + osPathSeprator + \"(.*)\");\n }", "public void init(Profile p) {\n\t\tString s = p.getParameter(PersistentDeliveryService.PERSISTENT_DELIVERY_BASEDIR, null);\n\t\tif(s == null) {\n\t\t\ts = \".\" + File.separator + \"PersistentDeliveryStore\";\n\t\t}\n\n\t\tbaseDir = new File(s);\n\t\tif(!baseDir.exists()) {\n\t\t\tbaseDir.mkdir();\n\t\t}\n\t}", "public UserGroupInformation initKeytabLoginLocally(File keytab, String principal) throws IOException {\n logger.info(\"Initializing Keytab Login locally ...\");\n\n UserGroupInformation ugi = UserGroupInformation.loginUserFromKeytabAndReturnUGI(principal, keytab.getPath());\n\n logger.info(\"Initial UGI is configured to login from keytab? \" + ugi.isFromKeytab());\n\n return ugi;\n\n }", "private String checkUserLibDir() {\n\t\t// user .libPaths() to list all paths known when R is run from the \n\t\t// command line\n \tif (!runRCmd(\"R -e \\\".libPaths()\\\" -s\")) {\n \t\tlogger.error(\"Could not detect user lib path.\");\n \t} else {\n \t\t// split on '\"'. This gives irrelevant strings, but those will\n \t\t// not match a user.home anyway\n \t\tString[] parts = status.split(\"\\\\\\\"\");\n \t\tString userHome = System.getProperty(\"user.home\");\n \t\tlogger.debug(\"user.home: \" + userHome);\n \t\tfor (int i=0; i<parts.length; i++) {\n \t\t\tString part = parts[i];\n \t\t\t// The replacement for front-slashes for windows systems.\n \t\t\tif (part != null && part.startsWith(userHome) || part.replace(\"/\", \"\\\\\").startsWith(userHome)) {\n \t\t\t\t// OK, we found the first lib path in $HOME\n \t\t\t\treturn part;\n \t\t\t}\n \t\t}\n \t}\n\t\treturn null;\n }", "protected void setUp() \r\n {\n System.out.println(\"Setting up User Test !\");\r\n \t//lProps = new Properties();\t\r\n //lProps.put(Context.INITIAL_CONTEXT_FACTORY,lContextFactory);\r\n //lProps.put(Context.PROVIDER_URL,lURL);\r\n //lProps.put(Context.URL_PKG_PREFIXES,lPrefixes);\r\n try\r\n {\r\n lProps.list(System.out);\r\n lIC = new InitialContext(lProps);\r\n //sLog.debug(\"Created Initial Context\");\r\n System.out.println(\"Created Initial Context-looking for UserHome\");\r\n Object homeObj = lIC.lookup(lJndiName);\r\n System.out.println(\"got Object!\");\r\n lHome = (UserHome) PortableRemoteObject.narrow(homeObj,UserHome.class); \r\n \r\n //lSessionHome = (PJVTProducerSessionHome) lIC.lookup(lJndiName);\r\n \r\n System.out.println(\"User Home:\"+lHome.toString());\r\n \r\n }\r\n catch(Throwable t)\r\n {\r\n t.printStackTrace();\r\n }\r\n\t}", "private EntryStorageHome home()\r\n {\r\n if( home == null )\r\n {\r\n\t\ttry\r\n\t\t{\r\n home = (EntryStorageHome) \r\n get_storage_home().get_catalog().find_storage_home( PSS_HOME );\r\n\t\t}\r\n\t\tcatch( Throwable e )\r\n\t\t{\r\n\t\t String error = \"Could not resolve the EntryStorageHome\";\r\n\t\t throw new RuntimeException( error, e );\r\n\t\t}\r\n }\r\n return home;\r\n }", "public String getProgramHomeDirName() {\n return pathsProvider.getProgramDirName();\n }", "public static String getCLOUDTEST_HOME() {\n\n if (CommonUtils.isNullOrEmpty(CLOUDTEST_HOME)) {\n\n try {\n CLOUDTEST_HOME = new CLOUDTEST_HOME$PathProviderImpl()\n .getCLOUDTEST_HOME();\n } catch (Exception e) {\n \tif (!homePathWarningLogged) {\n \t\tlogger.warn(e.getMessage());\n \t\t\t\thomePathWarningLogged = true;\n \t\t\t}\n \n return null;\n }\n\n }\n return CLOUDTEST_HOME;\n }", "public File getHome() {\n return home;\n }", "public IStatus prepareRuntimeDirectory(IPath baseDir);", "private void checkJavaHome()\n\t{\n\t\tString javaHome = System.getProperty(\"java.home\");\n \tif(!javaHome.matches(\".*jdk.*\"))\n \t{\n \t\tFile jHome = new File(javaHome);\n \t\tString[] possibleFolders = jHome.getParentFile().list();\n \t\tString match = \".*jdk\" + System.getProperty(\"java.version\");\n \t\tfor( String possibleFolder : possibleFolders)\n \t\t{\n \t\t\tif(possibleFolder.matches(match))\n \t\t\t{\n \t\t\t\tSystem.setProperty(\"java.home\", jHome.getParent() + \"\\\\\" + possibleFolder);\n \t\t\t\tbreak;\n \t\t\t}\n \t\t}\n \t\tif(!javaHome.matches(\".*jdk.*\"))\n \t\t{\n \t\t\tfor( String possibleFolder : possibleFolders)\n \t\t{\n \t\t\tif(possibleFolder.matches(\".*jdk.*\"))\n \t\t\t{\n \t\t\t\tSystem.setProperty(\"java.home\", jHome.getParent() + \"\\\\\" + possibleFolder);\n \t\t\t\tbreak;\n \t\t\t}\n \t\t} \t\t\t\n \t\t}\n \t}\n\t}", "static public void createClusterProfileDir() {\n if (new File(getClusterProfileDir()).exists() == true) {\n return;\n }\n\n String dir = IJ.getDirectory(\"home\") + File.separator + \".MosaicToolSuite\";\n try {\n ShellCommand.exeCmd(\"mkdir \" + dir);\n }\n catch (final IOException e) {\n e.printStackTrace();\n }\n catch (final InterruptedException e) {\n e.printStackTrace();\n }\n\n dir += File.separator + \"clusterProfile\";\n\n try {\n ShellCommand.exeCmd(\"mkdir \" + dir);\n }\n catch (final IOException e) {\n e.printStackTrace();\n }\n catch (final InterruptedException e) {\n e.printStackTrace();\n }\n }", "public static final String getHome() { return home; }", "public static void initialize(Configuration conf) throws IOException {\n ImmutableSet.Builder<String> superUsersBuilder = ImmutableSet.builder();\n ImmutableSet.Builder<String> superGroupsBuilder = ImmutableSet.builder();\n systemUser = User.getCurrent();\n\n if (systemUser == null) {\n throw new IllegalStateException(\"Unable to obtain the current user, \"\n + \"authorization checks for internal operations will not work correctly!\");\n }\n\n String currentUser = systemUser.getShortName();\n LOG.trace(\"Current user name is {}\", currentUser);\n superUsersBuilder.add(currentUser);\n\n String[] superUserList = conf.getStrings(SUPERUSER_CONF_KEY, new String[0]);\n for (String name : superUserList) {\n if (AuthUtil.isGroupPrincipal(name)) {\n // Let's keep the '@' for distinguishing from user.\n superGroupsBuilder.add(name);\n } else {\n superUsersBuilder.add(name);\n }\n }\n superUsers = superUsersBuilder.build();\n superGroups = superGroupsBuilder.build();\n }", "protected void init(MyDriveManager mydrive, String username, String name, String password, String mask) {\n Pattern pattern = Pattern.compile(\"[A-Za-z0-9]+\");\n Matcher matcher = pattern.matcher(username);\n \n if (!matcher.matches())\n throw new InvalidUsernameException(username, \"it contains characters not accepted\");\n if (username.length() < 3)\n throw new InvalidUsernameException(username, \"it must have at least 3 characters\");\n if (password.length() < 7)\n throw new PasswordLengthException(password, \"it must have at least 8 characters\");\n \n setUsername(username);\n setName(name);\n setPassword(password);\n setMask(mask);\n \n setMyDriveManager(mydrive);\n Directory home = new Directory(mydrive, this, mydrive.getHomeDirectory(), username);\n setHomeDirectory(home);\n }", "private Path initFolder(String folder) throws IOException {\n return Files.createDirectory(Paths.get(uploadFolder + \"/\" + folder));\n }", "private void makeDirectory() {\n String userHome = System.getProperty(\"user.home\");\n wnwData = new File(userHome + \"/.wnwdata\");\n wnwData.mkdirs();\n\n makeCampaignChallengesFile();\n makeCustomChallengesFile();\n makeProgressFile();\n makeSettingsFile();\n }", "@Override\r\n\tpublic String getRootDir() {\t\t\r\n\t\treturn Global.USERROOTDIR;\r\n\t}", "public String getNabtoHomeDirectory() {\n return nabtoHomeDirectory.getAbsolutePath();\n }", "protected Object getHome()\r\n/* 75: */ throws NamingException\r\n/* 76: */ {\r\n/* 77:159 */ if ((!this.cacheHome) || ((this.lookupHomeOnStartup) && (!isHomeRefreshable()))) {\r\n/* 78:160 */ return this.cachedHome != null ? this.cachedHome : lookup();\r\n/* 79: */ }\r\n/* 80:163 */ synchronized (this.homeMonitor)\r\n/* 81: */ {\r\n/* 82:164 */ if (this.cachedHome == null)\r\n/* 83: */ {\r\n/* 84:165 */ this.cachedHome = lookup();\r\n/* 85:166 */ this.createMethod = getCreateMethod(this.cachedHome);\r\n/* 86: */ }\r\n/* 87:168 */ return this.cachedHome;\r\n/* 88: */ }\r\n/* 89: */ }", "@PostConstruct\n private void init() throws MalformedURLException {\n workingDirectoryPath = Paths.get(workDirectory).toAbsolutePath();\n if (Files.exists(workingDirectoryPath)) {\n if (!Files.isDirectory(workingDirectoryPath)) {\n throw new FhFormException(workingDirectoryPath + \" is not a directory\");\n }\n } else {\n try {\n Files.createDirectories(workingDirectoryPath);\n } catch (IOException e) {\n throw new FhFormException(\"Cannot create \" + workingDirectoryPath, e);\n }\n }\n\n // create classloader\n URL url = workingDirectoryPath.toUri().toURL();\n\n workingDirectoryClassloader = FhCL.classLoader;\n addURLToClassLoader(url, workingDirectoryClassloader);\n }", "private Launcher(String[] args) {\n\n\t\t// parse commandline parameters\n\t\tString name = ManagementFactory.getRuntimeMXBean().getName();\n\t\tString home = System.getProperty(Jyro.JYRO_HOME, \".\");\n\t\tfor (String arg : args) {\n\n\t\t\thome = arg;\n\t\t}\n\t\tthis.home = new File(home);\n\t\tthis.name = name;\n\t\tlogger.info(Jyro.JYRO_HOME + \"=\" + this.home);\n\t\treturn;\n\t}", "static void setupDefaultEnvironment() throws IOException {\n String rioHomeDirectory = getRioHomeDirectory();\n File logDir = new File(rioHomeDirectory+\"logs\");\n checkAccess(logDir, false);\n }", "private static void findPath()\r\n {\r\n String temp_path = System.getProperty(\"user.dir\");\r\n char last = temp_path.charAt(temp_path.length() - 1);\r\n if(last == 'g')\r\n {\r\n path = \".\";\r\n }\r\n else\r\n {\r\n path = \"./bag\";\r\n }\r\n \r\n }", "public static void setRootDir() {\n for(int i = 0; i < rootDir.length; i++){\n Character temp = (char) (65 + i);\n Search.rootDir[i] = temp.toString() + \":\\\\\\\\\";\n }\n }", "public void setHomeworkfilepath(String homeworkfilepath) {\n this.homeworkfilepath = homeworkfilepath;\n }", "public synchronized static void setCurrentDirectory(File newDirectory) {\n if (newDirectory == null) // this can actually happen\n currentDirectory = canon(System.getProperty(\"user.home\"));\n else\n currentDirectory = canon(newDirectory.getAbsolutePath());\n }", "private void initialize() throws IOException {\n // All of this node's files are kept in this directory.\n File dir = new File(localDir);\n if (!dir.exists()) {\n if (!dir.mkdirs()) {\n throw new IOException(\"Unable to create directory: \" +\n dir.toString());\n }\n }\n\n Collection<File> data = FileUtils.listFiles(dir,\n FileFilterUtils.trueFileFilter(),\n FileFilterUtils.trueFileFilter());\n String[] files = new String[data.size()];\n Iterator<File> it = data.iterator();\n for (int i = 0; it.hasNext(); i++) {\n files[i] = it.next().getPath().substring(dir.getPath().length() + 1);\n }\n\n StartupMessage msg = new StartupMessage(InetAddress.getLocalHost()\n .getHostName(), port, id, files);\n msg.send(nameServer, namePort);\n }", "public static String getUserFolder() {\n\n String sPath;\n String sConfDir;\n\n \n // default is to use system's home folder setting\n sPath = System.getProperty(\"user.home\") + File.separator + \"sextante\"; \n \n // check if SEXTANTE.confDir has been set\n sConfDir = System.getProperty(\"SEXTANTE.confDir\"); \t\n if ( sConfDir != null ) {\n \t sConfDir = sConfDir.trim();\n \t \tif ( sConfDir.length() > 0 ) {\n \t \t\t// check if we have to append a separator char\n \t \t\tif ( sConfDir.endsWith(File.separator) ) {\n \t \t\t\tsPath = sConfDir;\n \t \t\t} else {\n \t \t\t\tsPath = sConfDir + File.separator;\n\t\t\t\t}\n\t\t\t}\n }\n\n final File sextanteFolder = new File(sPath);\n if (!sextanteFolder.exists()) {\n \t sextanteFolder.mkdir();\n }\n return sPath;\n\n }", "void setOssHomepage(String ossHomepage);", "static void initContacts(){\n String directory = \"contacts\";\n String filename = \"contacts.txt\";\n Path contactsDirectory= Paths.get(directory);\n Path contactsFile = Paths.get(directory, filename);\n try {\n if (Files.notExists(contactsDirectory)) {\n Files.createDirectories((contactsDirectory));\n System.out.println(\"Created directory\");\n }\n if (!Files.exists(contactsFile)) {\n Files.createFile(contactsFile);\n System.out.println(\"Created file\");\n }\n } catch(IOException ioe){\n ioe.printStackTrace();\n }\n }", "public void setLookupHomeOnStartup(boolean lookupHomeOnStartup)\r\n/* 24: */ {\r\n/* 25: 72 */ this.lookupHomeOnStartup = lookupHomeOnStartup;\r\n/* 26: */ }", "public void gettingDesktopPath() {\n FileSystemView filesys = FileSystemView.getFileSystemView();\n File[] roots = filesys.getRoots();\n homePath = filesys.getHomeDirectory().toString();\n System.out.println(homePath);\n //checking if file existing on that location\n pathTo = homePath + \"\\\\SpisakReversa.xlsx\";\n }", "private static void initDirectories() {\n String storeName = System.getProperty(USER_DIR)\n + File.separator\n + QVCSConstants.QVCS_META_DATA_DIRECTORY\n + File.separator\n + QVCSConstants.QVCS_FILEID_STORE_NAME\n + \".dat\";\n File storeFile = new File(storeName);\n if (storeFile.exists()) {\n storeFile.delete();\n }\n deleteAuthenticationStore();\n initAuthenticationStore();\n\n deleteRoleProjectViewStore();\n initRoleProjectViewStore();\n\n initProjectProperties();\n }", "public void openHomePage() {\n\t\tlogger.info(\"Opening Home Page\");\n\t\tdriver.get(ReadPropertyFile.getConfigPropertyVal(\"homePageURL\"));\n\t\t\n\t}", "private String searchForInitFileName() {\n String homeDirectoryInitFileName =\n System.getProperty(\"user.home\") + File.separatorChar + DEFAULT_INIT_FILE_NAME;\n String currentDirectoryInitFileName =\n System.getProperty(\"user.dir\") + File.separatorChar + DEFAULT_INIT_FILE_NAME;\n String systemPropertyInitFileName = System.getProperty(INIT_FILE_PROPERTY);\n\n String[] initFileNames =\n {systemPropertyInitFileName, currentDirectoryInitFileName, homeDirectoryInitFileName};\n\n for (String initFileName : initFileNames) {\n if (IOUtils.isExistingPathname(initFileName)) {\n return initFileName;\n }\n }\n\n return null;\n }", "public void initialize() {\n\n getStartUp();\n }", "public void setApplicationDir( String path ) {\r\n SharedPreferences preferences = PreferenceManager.getDefaultSharedPreferences(context);\r\n Editor editor = preferences.edit();\r\n editor.putString(LibraryConstants.PREFS_KEY_BASEFOLDER, path);\r\n editor.commit();\r\n resetManager();\r\n }", "public static HomeFactory getDefault() {\n if (Utilities.isWindows()) {\n return getDefaultWindows();\n } else if (Utilities.isMac()) {\n return getDefaultMac();\n } else {\n return getDefaultUx();\n }\n }", "public static void init()\n\t{\n\t\tusername2accesses.clear();\n\t\t//--- adds info.json in ./Home/Administrator for the system admin ---//\n\t\tfinal String adminAccessPath = Hierarchies.getSectionDir() + \"/\" + Hierarchies.getInfoFileName() + \".\" + Directories.getFileExt();\n\t\tfinal File adminAccessFile = new File(adminAccessPath);\n\t\tif (!adminAccessFile.exists())\n\t\t{\n\t\t\tfinal Access[] accesses = new Access[1];\n\t\t\taccesses[0] = new Access(\"admin\", Role.ADMINISTRATOR, null);\n\t\t\tfinal HierarchyItem hierarchyItem = new HierarchyItem(null, null, null, accesses);\n\t\t\tfinal String hierarchyItemAsJson = new Gson().toJson(hierarchyItem);\n\t\t\tFileIO.writeToFile(adminAccessPath, hierarchyItemAsJson);\n\t\t}\n\t\t//--- reads all JSON files recursively in ./Home/Administrator ---//\n\t\t//--- contents of JSON files will be processed to be cached in hash map username2accesses ---//\n\t\tfinal File file = new File(Hierarchies.getSectionDir());\n\t\tfinal Collection<File> jsonFiles = FileUtils.listFiles(file, new String[]{Directories.getFileExt()}, true);\n\t\tfor (File infoFile : jsonFiles) manage(infoFile, Op.STORE);\n\t}", "String home();", "public File start(){\n\t\t\n\t\tJFileChooser fileChooser = new JFileChooser();\n\t\tfileChooser.setCurrentDirectory(new File(System.getProperty(\"user.home\")));\n\t\tint result = fileChooser.showOpenDialog(null);\n\t\tFile selectedFile = null;\n\t\tif (result == JFileChooser.APPROVE_OPTION) {\n\t\t\tselectedFile = fileChooser.getSelectedFile();\n\t\t}\n\t\treturn selectedFile;\n\t\t\n\t}", "private void initializeFileSystem(final IndexedDiskCacheAttributes cattr)\r\n {\r\n this.rafDir = cattr.getDiskPath();\r\n log.info(\"{0}: Cache file root directory: {1}\", logCacheName, rafDir);\r\n }", "public static String getHome() {\n return home;\n }", "Preferences userRoot();", "protected File getAsinstalldir() throws ClassNotFoundException {\n\t\tif (asinstalldir == null) {\n\t\t\tString home = getProject().getProperty(\"asinstall.dir\");\n\t\t\tif (home != null) {\n asinstalldir = new File(home);\n\t\t\t}\n else {\n home = getProject().getProperty(\"sunone.home\");\n if (home != null)\n {\n final String msg = lsm.getString(\"DeprecatedProperty\", new Object[] {\"sunone.home\", \"asinstall.dir\"});\n log(msg, Project.MSG_WARN);\n asinstalldir = new File(home);\n }\n \n }\n\t\t}\n if (asinstalldir!=null) verifyAsinstalldir(asinstalldir);\n\t\treturn asinstalldir;\n\t}", "private static File setYdfDirectory()\r\n/* 27: */ throws IOException\r\n/* 28: */ {\r\n/* 29: 32 */ log.finest(\"OSHandler.setYdfDirectory\");\r\n/* 30: 33 */ ydfDirectory = new File(USER_HOME + \"/\" + \".yourdigitalfile\");\r\n/* 31: 34 */ ydfDirectory.mkdir();\r\n/* 32: 35 */ return ydfDirectory;\r\n/* 33: */ }", "private void initGitRepository() throws IOException, GitAPIException {\n \t\tif (gitDir == null) {\n \t\t\tSystem.err.println(\"Warning: no output directory \"\n \t\t\t\t+ \"given for git repository; simulating result\");\n \t\t\treturn;\n \t\t}\n \n \t\tif (!gitDir.exists()) {\n \t\t\tfinal boolean success = gitDir.mkdirs();\n \t\t\tif (!success) {\n \t\t\t\tthrow new IOException(\"Could not create Git output directory: \" +\n \t\t\t\t\tgitDir);\n \t\t\t}\n \t\t}\n \n \t\tfinal InitCommand init = Git.init();\n \t\tinit.setDirectory(gitDir);\n \t\tinit.call();\n \n \t\tgit = Git.open(gitDir);\n \n \t\tauthor = new PersonIdent(git.getRepository());\n \n \t\tasciiImageFile = new File(gitDir, ASCII_IMAGE_FILE);\n \t\tcalendarDataFile = new File(gitDir, CALENDAR_DATA_FILE);\n \t}", "public static void init() {\r\n if (MAIN_FOLDER.isDirectory()) {\r\n throw new GitletException(\"A Gitlet version-control system already \"\r\n + \"exists in the current directory.\");\r\n } else {\r\n MAIN_FOLDER.mkdirs();\r\n COMMIT_FOLDER.mkdirs();\r\n ADD_FOLDER.mkdirs();\r\n BLOB_FOLDER.mkdirs();\r\n Story story = new Story();\r\n story.saveStory();\r\n }\r\n }", "public void setHome(int home) {\n m_home = home;\n }", "void doHome()\n\t{\n\t\ttry\n\t\t{\n\t\t\tLocation l = getCurrentLocation();\n\t\t\tSourceFile file = l.getFile();\n\t\t\tint module = file.getId();\n\t\t\tint line = l.getLine();\n\n\t\t\t// now set it\n setListingPosition(module, line);\n\t\t}\n\t\tcatch(NullPointerException npe)\n\t\t{\n\t\t\terr(getLocalizationManager().getLocalizedTextString(\"currentLocationUnknown\")); //$NON-NLS-1$\n\t\t}\n\t}", "public synchronized static String getCurrentDirectory() {\n if (currentDirectory == null)\n currentDirectory = canon(System.getProperty(\"user.home\"));\n return currentDirectory;\n }", "public int mkdirs(String callingPkg, String path) throws RemoteException;" ]
[ "0.75515926", "0.7062096", "0.67676324", "0.64132154", "0.6408895", "0.6372536", "0.6357346", "0.62110144", "0.62032515", "0.6191156", "0.61525196", "0.61250865", "0.6079664", "0.5996414", "0.59393907", "0.58027077", "0.57982045", "0.5798147", "0.5795441", "0.5750526", "0.57380146", "0.56818575", "0.5680249", "0.56253946", "0.5600009", "0.55901486", "0.5530428", "0.55270797", "0.5517798", "0.5506943", "0.5483635", "0.5478834", "0.54773086", "0.5461539", "0.54359025", "0.54168546", "0.5354392", "0.53516495", "0.5351486", "0.53420955", "0.5310124", "0.5304634", "0.5287381", "0.52863127", "0.52811134", "0.5249165", "0.52450013", "0.52385783", "0.5229432", "0.5225642", "0.5218092", "0.5212693", "0.52065897", "0.51919997", "0.51762676", "0.5148432", "0.5143679", "0.5137886", "0.51304483", "0.51206946", "0.510938", "0.51051235", "0.509723", "0.5096641", "0.50614417", "0.50584066", "0.5054092", "0.5053401", "0.504108", "0.50403136", "0.5035503", "0.5028588", "0.5024604", "0.49991316", "0.49845418", "0.4976136", "0.49486133", "0.49339566", "0.49289015", "0.492562", "0.49176916", "0.49150187", "0.4902063", "0.48653555", "0.48536012", "0.48532635", "0.48450217", "0.48420548", "0.484124", "0.4834793", "0.48261246", "0.48133513", "0.4796938", "0.47929767", "0.47868642", "0.4777546", "0.4772021", "0.47676194", "0.47656083", "0.4764419" ]
0.7000045
2
This is the entry point method.
public void onModuleLoad() { InitComponents(); RootPanel.get("cbdt_app").add(apanel); apanel.add(stroke, buttonPanel.getAbsoluteLeft() + 22, buttonPanel.getAbsoluteTop() + 147 + 15); apanel.add(fill, buttonPanel.getAbsoluteLeft() + 7, buttonPanel.getAbsoluteTop() + 147); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private Main() {\n\n super();\n }", "public static void main() {\n \n }", "public Main() {\n \n \n }", "public void run() {\n // The run method should be overridden by the subordinate class. Please\n // see the example applications provided for more details.\n }", "public Main() {\r\n\t\tsuper();\r\n\t\tinitialize();\r\n\r\n\t}", "private void start() {\n\n\t}", "private Main ()\n {\n super ();\n }", "public static void main(String args[]) throws Exception\n {\n \n \n \n }", "public static void main(String[] args) throws Exception {\n\t\t\t\t\t\t\n\t\t\t\t\n\t\t\t}", "@Override\n protected void startUp() {\n }", "public MainEntryPoint() {\r\n\r\n }", "public static void main(String[] args) {\n \n \n \n \n }", "public Main() {\n\t\tsuper();\n\t}", "public static void main(String[] args) {\n // TODO code application logic here\n // some testing? or actually we can't run it standalone??\n }", "protected void start() {\n }", "public static void main(String[] args) {\n \n \n }", "public static void main(String[] args) {\n \n \n }", "public static void main(String[] args) {\n \n }", "public static void main(String[] args) {\n \n }", "public static void main(String[] args) {\n \n }", "public static void main(String[] args) {\n \n }", "public static void main(String[] args) {\n \n }", "public static void main(String[] args) {\n \n }", "@Override\n public void start() {\n\n }", "@Override\n public void start() {\n\n }", "@Override\n public void start() {\n\n }", "@Override\n\t\t\tpublic void run() {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void run() {\n\t\t\t\t\n\t\t\t}", "public void run() {\n\n }", "@Override public void run(ApplicationArguments args) {\n }", "@Override\n public void startup() {\n }", "@Override\n protected void appStart() {\n }", "@Override\n\tpublic void start() {\n\t\t\n\t}", "@Override\n\tpublic void start() {\n\t\t\n\t}", "@Override\n\tpublic void start() {\n\t\t\n\t}", "@Override\n\tpublic void start() {\n\t\t\n\t}", "@Override\n\tpublic void start() {\n\n\t}", "@Override\n\t\t\tpublic void run() {\n\n\t\t\t}", "@Override\n public void start() {\n }", "public static void main(String[]args) {\n\t\n\t\t\n\n}", "@Override\n public void run(ApplicationArguments args) {\n }", "@Override\r\n\tpublic void start() {\n\t\t\r\n\t}", "public static void main(){\n\t}", "@Override\n\t public void run(ApplicationArguments args) throws Exception {\n\n\t }", "public main() {\n initComponents();\n \n }", "@Override\n\tpublic void entry() {\n\n\t}", "public static void main(String[] args) {\n\r\n Starter starter = new Starter();\r\n starter.start();\r\n\r\n\r\n }", "public void start() {\n\n\t}", "public static void main()\n\t{\n\t}", "public static void main(String []args){\n\n }", "public static void main(String[] args) {\r\n// Use for unit testing\r\n }", "private Main() {\n }", "public void startup(){}", "public Main() {\r\n\t}", "public void start() {\n\t\t\n\t}", "public void start() {\n\t\t\n\t}", "public static void main(String[] args) {\n \n \n \n\t}", "public static void main(String[] args) {\n\t \t\n\t \t\n\t }", "public static void main() {\n }", "public static void main(String[] args) {\n staticFiles.location(\"/public\");\n //This will listen to GET requests to /model and return a clean new model\n get(\"/model\", (req, res) -> newModel());\n //This will listen to POST requests and expects to receive a game model, as well as location to fire to\n post(\"/fire/:row/:col\", (req, res) -> fireAt(req));\n //This will listen to POST requests and expects to receive a game model, as well as location to place the ship\n post(\"/placeShip/:id/:row/:col/:orientation\", (req, res) -> placeShip(req));\n }", "@Override\n public void start() { }", "public void run() {\n\t\tport(8080);\n\n\t\t// Main Page, welcome\n\t\tget(\"/\", (request, response) -> \"Welcome!\");\n\n\t\t// Date\n\t\tget(\"/date\", (request, response) -> {\n\t\t\tDate d = new Date(\"frida.org\", Calendar.getInstance().get(Calendar.YEAR),\n\t\t\t\t\tCalendar.getInstance().get(Calendar.MONTH), Calendar.getInstance().get(Calendar.DAY_OF_MONTH));\n\t\t\treturn om.writeValueAsString(d);\n\t\t});\n\n\t\t// Time\n\t\tget(\"/time\", (request, response) -> {\n\t\t\tTime t = new Time(\"frida.org\", Calendar.getInstance().get(Calendar.HOUR),\n\t\t\t\t\tCalendar.getInstance().get(Calendar.MINUTE), Calendar.getInstance().get(Calendar.SECOND));\n\t\t\treturn om.writeValueAsString(t);\n\t\t});\n\t}", "public void run() {\n }", "@Override\r\n public void start() {\r\n }", "public void start()\n {\n }", "public void run() {\n\t\t\t\t\n\t\t\t}", "@Override\n public void start() {\n }", "@Override\n public void start() {\n }", "@Override\n public void start() {\n }", "@Override\n public void start() {\n }", "@Override\n public void start() {\n }", "@Override\n public void start() {\n }", "@Override\n public void start() {\n }", "@Override\r\n\tpublic void run(String... args) throws Exception {\n\t\t\r\n\t}", "public static void main(String []args){\n }", "public static void main(String []args){\n }", "public static void main (String []args){\n }", "@Override\r\n\t\tprotected void run() {\n\t\t\t\r\n\t\t}", "public static void main(String[] args) {\n staticFiles.location(\"/public\");\n\n //This will listen to GET requests to /model and return a clean new model\n get(\"/model/:Version\", (req, res) -> newModel( req ));\n\n //This will listen to POST requests and expects to receive a game model, as well as location to fire to\n post(\"/fire/:Version/:row/:col/:hard\", (req, res) -> fireAt( req ));\n //This will handle the scan feature\n post(\"/scan/:Version/:row/:col/:hard\", (req, res) -> scan( req ));\n\n //This will listen to POST requests and expects to receive a game model, as well as location to place the ship\n post(\"/placeShip/:Version/:id/:row/:col/:orientation/:hard\", (req, res) -> placeShip( req ));\n }", "@Override public void start() {\n }", "@Override\n\tpublic void start() {\n\t}", "@Override\n\tpublic void start() {\n\t}", "public static void main(String[] args) {\n \n\n }", "@Override\n public void start() {}", "void startup();", "void startup();", "@Override\n public void run() {\n startup();\n }", "private Main() {}", "public static void run() {\n }", "@Override\r\n\tpublic void launch() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void launch() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void launch() {\n\t\t\r\n\t}", "public static void main(String[] args)\r\t{", "protected void index()\r\n\t{\n\t}", "public void run() {\n\t\t\r\n\t}", "public void run() {\n\t\t\r\n\t}", "private stendhal() {\n\t}", "@Override\n\tpublic void run(String... args) throws Exception {\n\t\t\n\t}", "@Override\n\tpublic void run(String... args) throws Exception {\n\t\t\n\t}", "@Override\n\tpublic void run(String... args) throws Exception {\n\t\t\n\t}", "Main ()\n\t{\n\t\tview = new View ();\t\t\n\t\tmodel = new Model(view);\n\t\tcontroller = new Controller(model, view);\n\t}" ]
[ "0.6960738", "0.69552404", "0.66707826", "0.66208535", "0.6555327", "0.64776266", "0.64771515", "0.64659804", "0.64316505", "0.64081883", "0.6335417", "0.63307303", "0.63175744", "0.6270908", "0.6238488", "0.6237389", "0.6237389", "0.6235709", "0.6235709", "0.6235709", "0.6235709", "0.6235709", "0.6235709", "0.6235162", "0.6235162", "0.6235162", "0.62305546", "0.62305546", "0.62300134", "0.62238896", "0.62235516", "0.62223476", "0.6215727", "0.6215727", "0.6215727", "0.6215727", "0.62011397", "0.62006915", "0.6199479", "0.6189238", "0.6189025", "0.61833894", "0.61821145", "0.6173178", "0.61637986", "0.6163775", "0.6155601", "0.61548257", "0.6154415", "0.614913", "0.6144427", "0.6138581", "0.61100346", "0.6108789", "0.6108068", "0.6108068", "0.60964036", "0.6093366", "0.6090984", "0.6084713", "0.6077541", "0.60754824", "0.6068671", "0.60639447", "0.6058585", "0.60573876", "0.6056404", "0.6056404", "0.6056404", "0.6056404", "0.6056404", "0.6056404", "0.6056404", "0.6049267", "0.6047899", "0.6047899", "0.6047002", "0.6039554", "0.60381866", "0.60350984", "0.6034692", "0.6034692", "0.6031681", "0.6029989", "0.602855", "0.602855", "0.60262364", "0.60225827", "0.6021755", "0.6012416", "0.6012416", "0.6012416", "0.60089284", "0.6007561", "0.6004948", "0.6004948", "0.5995004", "0.5990427", "0.5990427", "0.5990427", "0.5988969" ]
0.0
-1
Method that initializes all the variables and creates the html required for the color picker and so on.
private void InitComponents() { apanel = new AbsolutePanel(); FocusPanel focus = new FocusPanel(); DockPanel panel = new DockPanel(); lastPosition[0] = 0; lastPosition[1] = 0; isMovable = false; isTransformable = false; transformPoints = new VirtualGroup(); transformPointers = new GraphicObject[9]; currRotation = 0.0; this.currentFontFamily = new ListBox(); this.currentFontFamily.setMultipleSelect(false); this.currentFontFamily.insertItem("Arial", 0); this.currentFontFamily.insertItem("Courier", 1); this.currentFontFamily.insertItem("Times New Roman", 2); this.currentFontFamily.insertItem("Verdana", 3); this.currentFontFamily.insertItem("Georgia", 4); this.currentFontFamily.setSelectedIndex(0); this.currentFontFamily.addChangeListener(this); this.currentFontSize = new ListBox(); this.currentFontSize.setMultipleSelect(false); this.currentFontSize.insertItem("8", 0); this.currentFontSize.insertItem("10", 1); this.currentFontSize.insertItem("12", 2); this.currentFontSize.insertItem("14", 3); this.currentFontSize.insertItem("16", 4); this.currentFontSize.insertItem("18", 5); this.currentFontSize.insertItem("20", 6); this.currentFontSize.insertItem("24", 7); this.currentFontSize.insertItem("28", 8); this.currentFontSize.insertItem("36", 9); this.currentFontSize.insertItem("48", 10); this.currentFontSize.insertItem("72", 11); this.currentFontSize.setSelectedIndex(2); this.currentFontSize.addChangeListener(this); this.currentFontStyle = new ListBox(); this.currentFontStyle.setMultipleSelect(false); this.currentFontStyle.insertItem("normal", 0); this.currentFontStyle.insertItem("italic", 1); this.currentFontStyle.setSelectedIndex(0); this.currentFontStyle.addChangeListener(this); this.currentFontWeight = new ListBox(); this.currentFontWeight.setMultipleSelect(false); this.currentFontWeight.insertItem("normal",0); this.currentFontWeight.insertItem("bold", 1); this.currentFontWeight.setSelectedIndex(0); this.currentFontWeight.addChangeListener(this); this.updateFont(); canvas = new GraphicCanvas(); canvas.setStyleName("drawboard"); canvas.setPixelSize(width, height); canvas.addGraphicObjectListener(this); saver = new SVGFormatter("1.1", "http://www.w3.org/2000/svg", "demo", width, height); buttonPanel = new VerticalPanel(); buttonPanel.setSpacing(0); Grid gridShape = new Grid(4, 2); gridShape.setCellSpacing(2); gridShape.setCellPadding(2); Grid gridTransform = new Grid(3, 2); gridTransform.setCellPadding(2); gridTransform.setCellSpacing(2); fill = new HTML(" "); DOM.setStyleAttribute(fill.getElement(), "backgroundColor", this.currentFillColor.toHex()); DOM.setStyleAttribute(fill.getElement(), "border", "solid"); DOM.setStyleAttribute(fill.getElement(), "borderWidth", "thin"); DOM.setStyleAttribute(fill.getElement(), "borderColor", "#000000"); fill.setSize("30px", "30px"); fill.addClickListener(this); stroke = new HTML(" "); DOM.setStyleAttribute(stroke.getElement(), "backgroundColor", this.currentStrokeColor.toHex()); DOM.setStyleAttribute(stroke.getElement(), "border", "solid"); DOM.setStyleAttribute(stroke.getElement(), "borderWidth", "thin"); DOM.setStyleAttribute(stroke.getElement(), "borderColor", "#000000"); stroke.setSize("30px","30px"); stroke.addClickListener(this); HTML fake = new HTML("&nbsp;&nbsp;&nbsp;"); DOM.setStyleAttribute(fake.getElement(), "backgroundColor", "#FFFFFF"); fake.setSize("30px", "30px"); HTML fake2 = new HTML("&nbsp;&nbsp;&nbsp;"); DOM.setStyleAttribute(fake2.getElement(), "backgroundColor", "#FFFFFF"); fake2.setSize("30px", "30px"); buttonPanel.add(gridShape); buttonPanel.add(fake); buttonPanel.add(fake2); this.strokeButton = new Image("gfx/color.gif"); this.strokeButton.setTitle("Choose the stroke"); this.strokeButton.setSize("34px", "34px"); this.strokeButton.addClickListener(this); buttonPanel.add(this.strokeButton); buttonPanel.setCellHorizontalAlignment(this.strokeButton, VerticalPanel.ALIGN_CENTER); buttonPanel.add(gridTransform); fillOpacity = new Slider(Slider.HORIZONTAL, 0, 255, 255, true); fillOpacity.addChangeListener(this); strokeOpacity = new Slider(Slider.HORIZONTAL, 0, 255, 255, true); strokeOpacity.addChangeListener(this); currentStrokeSize = new Slider(Slider.HORIZONTAL, 0, 50, 1, true); currentStrokeSize.addChangeListener(this); /** This adds the buttons to the two grids */ selectButton = addToGrid(gridShape, 0, 0, "Select object", "gfx/select.gif"); pencilButton = addToGrid(gridShape, 0, 1, "Draw with Pencil", "gfx/pencil.gif"); lineButton = addToGrid(gridShape, 1, 0, "Draw a Line", "gfx/line.gif"); rectButton = addToGrid(gridShape, 1, 1, "Draw a Rect", "gfx/rect.gif"); circleButton = addToGrid(gridShape, 2, 0, "Draw a Circle", "gfx/circle.gif"); ellipseButton = addToGrid(gridShape, 2, 1, "Draw a Ellipse", "gfx/ellipse.gif"); polylineButton = addToGrid(gridShape, 3, 0, "Draw a Path", "gfx/polyline.gif"); textButton = addToGrid(gridShape, 3, 1, "Write Text", "gfx/text.gif"); deleteButton = addToGrid(gridTransform, 0, 0, "Delete object","gfx/delete.gif"); saveButton = addToGrid(gridTransform, 0, 1, "Save SVG to page","gfx/save.gif"); backButton = addToGrid(gridTransform, 1, 0, "Send object Back","gfx/back.gif"); frontButton = addToGrid(gridTransform, 1, 1, "Send object Front","gfx/front.gif"); apanel.add(focus); focus.add(panel); panel.add(this.canvas, DockPanel.CENTER); panel.add(this.buttonPanel, DockPanel.WEST); panel.add(this.currentFontFamily, DockPanel.SOUTH); panel.add(this.currentFontSize, DockPanel.SOUTH); panel.add(this.currentFontStyle, DockPanel.SOUTH); panel.add(this.currentFontWeight, DockPanel.SOUTH); this.apanel.setSize("100%", "100%"); focus.addKeyboardListener(this); focus.setSize("100%", "100%"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void initComponents() {\n // Create the RGB and the HSB radio buttons.\n createRgbHsbButtons();\n\n \n \n ColorData initial = new ColorData(new RGB(255, 255, 255), 255);\n\n // Create the upper color wheel for the display.\n upperColorWheel = new ColorWheelComp(shell, this, upperWheelTitle);\n // upperColorWheel.setColor(colorArray.get(0));\n upperColorWheel.setColor(initial);\n\n // Create the color bar object that is displayed\n // in the middle of the dialog.\n colorBar = new ColorBarViewer(shell, this, sliderText, cmapParams);\n\n // Create the lower color wheel for the display.\n lowerColorWheel = new ColorWheelComp(shell, this, lowerWheelTitle);\n // lowerColorWheel.setColor(colorArray.get(colorArray.size() - 1));\n lowerColorWheel.setColor(initial);\n\n // Create the bottom control buttons.\n createBottomButtons();\n }", "public ColorPanel() {\r\n setLayout(null);\r\n\r\n chooser = new ColorChooserComboBox[8];\r\n chooserLabel = new JLabel[8];\r\n String[][] text = new String[][] {\r\n {\"Hintergrund\", \"Background\"},\r\n {\"Kante I\", \"Edge I\"},\r\n {\"Kante II\", \"Edge II\"},\r\n {\"Gewicht\", \"Weight\"},\r\n {\"Kantenspitze\", \"Edge Arrow\"},\r\n {\"Rand der Knoten\", \"Node Borders\"},\r\n {\"Knoten\", \"Node Background\"},\r\n {\"Knoten Kennzeichnung\", \"Node Tag\"}};\r\n\r\n for (int i = 0; i < 8; i++) {\r\n createChooser(i, text[i], 10 + 30 * i);\r\n }\r\n\r\n add(createResetButton());\r\n add(createApplyButton());\r\n add(createReturnButton());\r\n\r\n setColorSelection();\r\n this.changeLanguageSettings(mainclass.getLanguageSettings());\r\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}", "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 postInit() {\n // start with compact form\n detailledToggleButtonActionPerformed(null);\n\n colorMappingComboBox.setRenderer(ColorMappingListCellRenderer.getListCellRenderer());\n\n // Fill colorMapping combobox\n for (ColorMapping cm : ColorMapping.values()) {\n if (cm != ColorMapping.OBSERVATION_DATE) { // not implemented\n colorMappingComboBox.addItem(cm);\n }\n }\n\n xAxisEditor = new AxisEditor(this);\n xAxisPanel.add(xAxisEditor);\n\n if (ENABLE_EXPRESSION_EDITOR) {\n expressionEditor = new ExpressionEditor(this);\n expressionEditor.setVisible(false);\n\n this.jPanelOtherEditors.add(expressionEditor, BorderLayout.CENTER);\n } else {\n jToggleButtonExprEditor.setVisible(false);\n }\n\n // Adjust fonts:\n final Font fixedFont = new Font(Font.MONOSPACED, Font.PLAIN, SwingUtils.adjustUISize(12));\n this.jToggleButtonAuto.setFont(fixedFont);\n this.jToggleButtonDefault.setFont(fixedFont);\n this.jToggleButtonFixed.setFont(fixedFont);\n }", "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 initialize() {\n // Create a panel with the labels for the colorbar.\n JPanel labelPanel = new JPanel();\n labelPanel.setLayout(new BoxLayout(labelPanel, BoxLayout.LINE_AXIS));\n labelPanel.add(minLabel);\n labelPanel.add(Box.createHorizontalGlue());\n labelPanel.add(medLabel);\n labelPanel.add(Box.createHorizontalGlue());\n labelPanel.add(maxLabel);\n\n // Add the color panel\n gradientPanel = new LinearGradientTools.ColorGradientPanel();\n\n // Add the panel indicating the error value color.\n errorPanel = new JPanel();\n //errorPanel.setBackground(heatMapModel.getColorScheme().getErrorReadoutColor());\n\n // Create a label for the panel indicating the missing value color.\n errorLabel = new JLabel(\" Err \");\n errorLabel.setHorizontalAlignment(JLabel.CENTER);\n\n // Add the panel indicating the missing value color.\n JPanel emptyPanel = new JPanel();\n emptyPanel.setBackground(ColorScheme.EMPTY_READOUT);\n\n // Create a label for the panel indicating the missing value color.\n emptyLabel = new JLabel(\" Empty \");\n emptyLabel.setHorizontalAlignment(JLabel.CENTER);\n\n // Set the font of the labels\n setLabelFont(labelFontSize);\n\n // Add the component to the main panel\n setLayout(new GridBagLayout());\n GridBagConstraints constraints = new GridBagConstraints();\n constraints.gridx = 0;\n constraints.gridy = 0;\n constraints.weightx = 1;\n constraints.weighty = 0.9;\n constraints.fill = GridBagConstraints.BOTH;\n add(gradientPanel, constraints);\n constraints.gridy = 1;\n constraints.weighty = 0.1;\n add(labelPanel, constraints);\n\n constraints.gridx = 1;\n constraints.weightx = -1;\n add(errorLabel, constraints);\n constraints.gridy = 0;\n constraints.weighty = 0.9;\n add(errorPanel, constraints);\n\n constraints.gridx = 2;\n add(emptyPanel, constraints);\n constraints.gridy = 1;\n constraints.weighty = 0.1;\n add(emptyLabel, constraints);\n }", "public GUI() {\n initComponents();\n this.jComboBox1.setEnabled(false);\n this.jButton2.setEnabled(false);\n this.jButton3.setEnabled(false);\n this.jTextArea1.setEnabled(false);\n getContentPane().setBackground(java.awt.Color.getHSBColor((float) 0.62, (float) 0.55, (float) 0.55));\n }", "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}", "ColorSelectionDialog() {\n initComponents();\n }", "private static void createAndShowGUI() {\n //Make sure we have nice window decorations.\n JFrame.setDefaultLookAndFeelDecorated(true);\n\n //Create and set up the window.\n JFrame frame = new JFrame(\"MRALD Color Chooser\");\n\n //Create and set up the content pane.\n JComponent newContentPane = new MraldColorChooser(coloringItems);\n newContentPane.setOpaque(true); //content panes must be opaque\n frame.setContentPane(newContentPane);\n\n //Display the window.\n frame.pack();\n frame.setVisible(true);\n }", "private void initialize(){\n\t\timgurURL = new JTextField(\"\", 20);\n\t\tJLabel label = new JLabel(\"Imgur URL\");\n\t\tdownload = new JButton(\"Download\");\n\t\tsavePath = new JButton(\"Set Download Path\");\n\t\t//Done creating components\n\t\t\n\t\t//Set component attributes\n\t\tsetLayout(new FlowLayout());\n\t\tsetSize(575, 65);\n\t\tsetResizable(false);\n\t\tadd(label);\n\t\tadd(imgurURL);\n\t\tadd(download);\n\t\tadd(savePath);\n\t\t//Done setting component attributes\n\t\t\n\t\tsetDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\tJFrame.setDefaultLookAndFeelDecorated(true);\n\t\tsetVisible(true);\n\t}", "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 initComponentsCustom() {\n SGuiUtils.setWindowBounds(this, 480, 300);\n\n moIntYear.setIntegerSettings(SGuiUtils.getLabelName(jlYear.getText()), SGuiConsts.GUI_TYPE_INT_CAL_YEAR, true);\n moDateDate.setDateSettings(miClient, SGuiUtils.getLabelName(jlDate.getText()), true);\n moTextCode.setTextSettings(SGuiUtils.getLabelName(jlCode.getText()), 10);\n moTextName.setTextSettings(SGuiUtils.getLabelName(jlName.getText()), 50);\n\n moFields.addField(moIntYear);\n moFields.addField(moDateDate);\n moFields.addField(moTextCode);\n moFields.addField(moTextName);\n\n moFields.setFormButton(jbSave);\n }", "private void initialize() {\r\n this.setSize(new Dimension(800,600));\r\n this.setContentPane(getJPanel());\r\n\r\n List<String> title = new ArrayList<String>();\r\n title.add(\"Select\");\r\n title.add(\"Field Id\");\r\n title.add(\"Field Name\");\r\n title.add(\"Field Type\");\r\n title.add(\"Image\");\r\n\r\n List<JComponent> componentList = new ArrayList<JComponent>();\r\n componentList.add(checkInit);\r\n componentList.add(fieldIdInit);\r\n componentList.add(filedNameInit);\r\n componentList.add(fieldTypeInit);\r\n componentList.add(imageButton);\r\n\r\n String []arrColumn = {\"SELECT\", \"FIELD_ID\", \"FIELD_NAME\", \"FIELD_TYPE\", \"FIELD_VALUE\"};\r\n String []arrTitle = {\"SELECT\", \"FIELD_ID\", \"FIELD_NAME\", \"FIELD_TYPE\", \"FIELD_VALUE\"};\r\n // init grid\r\n grid = new GridUtils(pageSheet, title, componentList, arrColumn, preButton, afterButton, 5, arrTitle);\r\n // set title\r\n grid.setPageInfo(pageInfoLbl);\r\n \r\n searchDetailList();\r\n \r\n initComboBox();\r\n \r\n setTitle(\"Page Select page\");\r\n\t}", "private void setup() {\n // Set the shell layout to a Grid layout.\n shell.setLayout(new GridLayout(1, false));\n \n // Read lockedColorMaps.tbl to get the list of locked color maps\n lockedCmaps = ColorMapUtil.readLockedColorMapFile();\n \n availColorMaps = new ArrayList<String>();\n availColorMapCats = ColorMapUtil.getColorMapCategories();\n \n if( seldCmapCat == null ) {\n \tseldCmapCat = availColorMapCats[0];\n }\n \n// for( String cat : availColorMapCats ) {\n for( String cmap : ColorMapUtil.listColorMaps(seldCmapCat) ) {\n \tif( seldCmapName == null ) {\n \t\tseldCmapName = cmap;\n \t\tif( !initColorMap() ) {\n \t\tseldCmapName = null;\n \t\t\tcontinue; // don't add to the list\n \t\t}\n \t}\n \tavailColorMaps.add(cmap);\n }\n// }\n \t\n createSliderData();\n\n // Initialize the components.\n initComponents(); \n \n // Pack the components.\n shell.pack();\n }", "private void setUpDialoguebox() {\n\t\tinput = new CTS_GUI_Dialoguebox();\n\t\tinput.setTitle(\"Settings\");\n\t\tBorderPane pane = new BorderPane();\n\t\tLocalTime t = LocalTime.now();\n\t\tLocalDate d = LocalDate.now();\n\t\tuicontrols = new VBox(10);\n\t\tHBox box0 = new HBox(5);\n\t\tbox0.getChildren().addAll(new Label(\"Latitude: \"),new TextField(\"0\"));\n\t\tHBox box1 = new HBox(5);\n\t\tbox1.getChildren().addAll(new Label(\"Longitude: \"),new TextField(\"0\"));\n\t\tHBox box2 = new HBox(5);\n\t\tbox2.getChildren().addAll(new Label(\"Date: \"),new TextField(d.toString()));\n\t\tTextField time = new TextField(t.getHour() + \":\" + t.getMinute() + \":\" + (int) floor(t.getSecond()));\n\t\tHBox box3 = new HBox(5);\n\t\tbox3.getChildren().addAll(new Label(\"Time: \"),time);\n\t\t// Check boxes\n\t\tHBox box5 = new HBox(5);\n\t\tCheckBox c1 = new CheckBox(\"Plot Stars\");\n\t\tc1.setSelected(true);\n\t\tCheckBox c2 = new CheckBox(\"Plot DSOs\");\n\t\tc2.setSelected(true);\n\t\tCheckBox c3 = new CheckBox(\"Plot Constellations\");\n\t\tc3.setSelected(true);\n\t\tCheckBox c4 = new CheckBox(\"Plot Planets\");\n\t\tc4.setSelected(true);\n\t\tbox5.getChildren().addAll(c1,c2,c3,c4);\n\t\t// Color Picker\n\t\t// 0 = Star color, 1 = Low mag star, 2 = Very low mag star.\n\t\t// 3 = DSO, 4 = Sky background, 5 = Circle around sky background\n\t\t// 6 = Overall background, 7 = Lat/long txt color, 8 = Constellation line color.\n\t\tHBox box6 = new HBox(5);\n\t\tTextField colorSet = new TextField(\"255,255,255,1\");\n\t\tButton setcolorbutton = new Button(\"Submit Color\");\n\t\tbox6.getChildren().addAll(new Label(\"Color to Set: \"),colorSet,setcolorbutton,new Label(\"[PREVIEW COLOR]\"));\n\t\tsetcolorbutton.setOnAction((event) -> { colorPickerHander(); });\n MenuBar mainmenu = new MenuBar();\n Menu colorpickermenu = new Menu(\"Set Custom Colors\");\n String[] colorstrs = {\"Star Color\",\"Low Magnituide Star Color\",\"Very Low Magnituide Star Color\", \"Deep Space Object Color\",\"Sky Background Color\",\n \t\t\"Circle Around Sky Background Color\",\"Overall Background Color\", \"Latitude/Longitude Text Color\",\"Constellation Line Color\"};\n for(int x = 0; x < colorstrs.length; x++) {\n \tMenuItem opt = new MenuItem(colorstrs[x]);\n \tint id = x;\n \topt.setOnAction((event) -> { colorSetterId = id; });\n \tcolorpickermenu.getItems().add(opt);\n }\n \n ComboBox<String> consts = new ComboBox<>();\n HashMap<String, String> cdbs = controller.getModelConstellationDBs();\n\n for (String name : cdbs.keySet()) {\n consts.getItems().add(name);\n }\n HBox box7 = new HBox(5);\n box7.getChildren().addAll(new Label(\"Select Constellation Set\"), consts);\n \n consts.getSelectionModel().select(\"Western\");\n mainmenu.getMenus().addAll(colorpickermenu);\n\t\tHBox box4 = new HBox(5);\n\t\tButton but = new Button(\"Cancel\");\n\t\tbut.setPadding(new Insets(5));\n\t\tButton but2 = new Button(\"Submit\");\n\t\tbut2.setPadding(new Insets(5));\n\t\tbox4.getChildren().addAll(but,but2);\n\t\tuicontrols.getChildren().addAll(box0,box1,box2,box3,box5,box6,box7,box4);\n\t\tbut.setOnAction((event) -> { input.close(); });\n\t\tbut2.setOnAction((event) -> {\n\t\t\tuserSelectedConstellationFileName = cdbs.get(consts.getValue());\n\t\t\tlong i = validateInput();\n\t\t\tif (i == 0) {\n\t\t\t\tchartTheStars();\n\t\t\t\tinput.close();\n\t\t\t} else {\n\t\t\t\tGUIerrorout = new Alert(AlertType.ERROR, getGUIErrorMsg(i));\n\t\t\t\tGUIerrorout.showAndWait();\n\t\t\t}\n });\n\t\tpane.setTop(mainmenu);\n\t\tpane.setCenter(uicontrols);\n\t\tpane.setPadding(new Insets(10));\n\t\tScene scene = new Scene(pane, 520, 310);\n\t\tinput.setScene(scene);\n\t}", "@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 jLabel5 = new javax.swing.JLabel();\n paletteCombo = new javax.swing.JComboBox();\n addressField = new javax.swing.JTextField();\n jLabel6 = new javax.swing.JLabel();\n colorsPanel = new javax.swing.JPanel();\n colorPanel1 = new javax.swing.JPanel();\n colorPanel2 = new javax.swing.JPanel();\n colorPanel3 = new javax.swing.JPanel();\n colorPanel4 = new javax.swing.JPanel();\n colorPanel5 = new javax.swing.JPanel();\n colorPanel6 = new javax.swing.JPanel();\n colorPanel7 = new javax.swing.JPanel();\n colorPanel8 = new javax.swing.JPanel();\n colorPanel9 = new javax.swing.JPanel();\n colorPanel10 = new javax.swing.JPanel();\n colorPanel11 = new javax.swing.JPanel();\n colorPanel12 = new javax.swing.JPanel();\n colorPanel13 = new javax.swing.JPanel();\n colorPanel14 = new javax.swing.JPanel();\n colorPanel15 = new javax.swing.JPanel();\n colorPanel16 = new javax.swing.JPanel();\n colorChooser = new javax.swing.JColorChooser();\n jPanel2 = new javax.swing.JPanel();\n jLabel2 = new javax.swing.JLabel();\n rgbField = new javax.swing.JTextField();\n jLabel4 = new javax.swing.JLabel();\n gensField = new javax.swing.JTextField();\n scrollPane = new javax.swing.JScrollPane(imagePanel);\n jMenuBar1 = new javax.swing.JMenuBar();\n jMenu1 = new javax.swing.JMenu();\n openRomMenu = new javax.swing.JMenuItem();\n jMenuItem4 = new javax.swing.JMenuItem();\n jMenuItem5 = new javax.swing.JMenuItem();\n jSeparator4 = new javax.swing.JPopupMenu.Separator();\n openGuideMenu = new javax.swing.JMenuItem();\n jSeparator1 = new javax.swing.JPopupMenu.Separator();\n exitMenu = new javax.swing.JMenuItem();\n jMenu2 = new javax.swing.JMenu();\n copyPalMenu = new javax.swing.JMenuItem();\n copyColorMenu = new javax.swing.JMenuItem();\n pasteColorMenu = new javax.swing.JMenuItem();\n jSeparator3 = new javax.swing.JPopupMenu.Separator();\n jMenuItem1 = new javax.swing.JMenuItem();\n findMenu = new javax.swing.JMenuItem();\n jMenu3 = new javax.swing.JMenu();\n jMenuItem2 = new javax.swing.JMenuItem();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.DO_NOTHING_ON_CLOSE);\n setTitle(\"Palettes of Rage\");\n setCursor(new java.awt.Cursor(java.awt.Cursor.DEFAULT_CURSOR));\n setLocationByPlatform(true);\n setName(\"guiFrame\");\n addMouseWheelListener(new java.awt.event.MouseWheelListener() {\n public void mouseWheelMoved(java.awt.event.MouseWheelEvent evt) {\n formMouseWheelMoved(evt);\n }\n });\n addWindowListener(new java.awt.event.WindowAdapter() {\n public void windowClosing(java.awt.event.WindowEvent evt) {\n formWindowClosing(evt);\n }\n });\n\n jLabel5.setFont(new java.awt.Font(\"Tahoma\", 0, 14)); // NOI18N\n jLabel5.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT);\n jLabel5.setText(\"Palette:\");\n\n paletteCombo.setFont(new java.awt.Font(\"Tahoma\", 0, 14)); // NOI18N\n paletteCombo.setMaximumRowCount(16);\n paletteCombo.setModel(new javax.swing.DefaultComboBoxModel(new String[] { \"Custom\" }));\n paletteCombo.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n paletteComboActionPerformed(evt);\n }\n });\n paletteCombo.addKeyListener(new java.awt.event.KeyAdapter() {\n public void keyPressed(java.awt.event.KeyEvent evt) {\n paletteComboKeyPressed(evt);\n }\n });\n\n addressField.setFont(new java.awt.Font(\"Courier New\", 0, 14)); // NOI18N\n addressField.setHorizontalAlignment(javax.swing.JTextField.RIGHT);\n addressField.setText(\"200\");\n\n jLabel6.setFont(new java.awt.Font(\"Tahoma\", 0, 14)); // NOI18N\n jLabel6.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT);\n jLabel6.setText(\"Address:\");\n\n colorsPanel.setPreferredSize(new java.awt.Dimension(256, 64));\n\n colorPanel1.setBackground(new java.awt.Color(255, 255, 255));\n colorPanel1.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0), 3));\n colorPanel1.setCursor(new java.awt.Cursor(java.awt.Cursor.DEFAULT_CURSOR));\n colorPanel1.setPreferredSize(new java.awt.Dimension(32, 32));\n colorPanel1.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mousePressed(java.awt.event.MouseEvent evt) {\n colorPanel1MousePressed(evt);\n }\n });\n\n javax.swing.GroupLayout colorPanel1Layout = new javax.swing.GroupLayout(colorPanel1);\n colorPanel1.setLayout(colorPanel1Layout);\n colorPanel1Layout.setHorizontalGroup(\n colorPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 26, Short.MAX_VALUE)\n );\n colorPanel1Layout.setVerticalGroup(\n colorPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 26, Short.MAX_VALUE)\n );\n\n colorPanel2.setBackground(new java.awt.Color(255, 255, 255));\n colorPanel2.setCursor(new java.awt.Cursor(java.awt.Cursor.DEFAULT_CURSOR));\n colorPanel2.setMinimumSize(new java.awt.Dimension(16, 16));\n colorPanel2.setPreferredSize(new java.awt.Dimension(32, 32));\n colorPanel2.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mousePressed(java.awt.event.MouseEvent evt) {\n colorPanel2MousePressed(evt);\n }\n });\n\n javax.swing.GroupLayout colorPanel2Layout = new javax.swing.GroupLayout(colorPanel2);\n colorPanel2.setLayout(colorPanel2Layout);\n colorPanel2Layout.setHorizontalGroup(\n colorPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 32, Short.MAX_VALUE)\n );\n colorPanel2Layout.setVerticalGroup(\n colorPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 32, Short.MAX_VALUE)\n );\n\n colorPanel3.setBackground(new java.awt.Color(255, 255, 255));\n colorPanel3.setCursor(new java.awt.Cursor(java.awt.Cursor.DEFAULT_CURSOR));\n colorPanel3.setMinimumSize(new java.awt.Dimension(16, 16));\n colorPanel3.setPreferredSize(new java.awt.Dimension(32, 32));\n colorPanel3.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mousePressed(java.awt.event.MouseEvent evt) {\n colorPanel3MousePressed(evt);\n }\n });\n\n javax.swing.GroupLayout colorPanel3Layout = new javax.swing.GroupLayout(colorPanel3);\n colorPanel3.setLayout(colorPanel3Layout);\n colorPanel3Layout.setHorizontalGroup(\n colorPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 32, Short.MAX_VALUE)\n );\n colorPanel3Layout.setVerticalGroup(\n colorPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 32, Short.MAX_VALUE)\n );\n\n colorPanel4.setBackground(new java.awt.Color(255, 255, 255));\n colorPanel4.setCursor(new java.awt.Cursor(java.awt.Cursor.DEFAULT_CURSOR));\n colorPanel4.setMinimumSize(new java.awt.Dimension(16, 16));\n colorPanel4.setPreferredSize(new java.awt.Dimension(32, 32));\n colorPanel4.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mousePressed(java.awt.event.MouseEvent evt) {\n colorPanel4MousePressed(evt);\n }\n });\n\n javax.swing.GroupLayout colorPanel4Layout = new javax.swing.GroupLayout(colorPanel4);\n colorPanel4.setLayout(colorPanel4Layout);\n colorPanel4Layout.setHorizontalGroup(\n colorPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 32, Short.MAX_VALUE)\n );\n colorPanel4Layout.setVerticalGroup(\n colorPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 32, Short.MAX_VALUE)\n );\n\n colorPanel5.setBackground(new java.awt.Color(255, 255, 255));\n colorPanel5.setCursor(new java.awt.Cursor(java.awt.Cursor.DEFAULT_CURSOR));\n colorPanel5.setMinimumSize(new java.awt.Dimension(16, 16));\n colorPanel5.setPreferredSize(new java.awt.Dimension(32, 32));\n colorPanel5.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mousePressed(java.awt.event.MouseEvent evt) {\n colorPanel5MousePressed(evt);\n }\n });\n\n javax.swing.GroupLayout colorPanel5Layout = new javax.swing.GroupLayout(colorPanel5);\n colorPanel5.setLayout(colorPanel5Layout);\n colorPanel5Layout.setHorizontalGroup(\n colorPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 32, Short.MAX_VALUE)\n );\n colorPanel5Layout.setVerticalGroup(\n colorPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 32, Short.MAX_VALUE)\n );\n\n colorPanel6.setBackground(new java.awt.Color(255, 255, 255));\n colorPanel6.setCursor(new java.awt.Cursor(java.awt.Cursor.DEFAULT_CURSOR));\n colorPanel6.setMinimumSize(new java.awt.Dimension(16, 16));\n colorPanel6.setPreferredSize(new java.awt.Dimension(32, 32));\n colorPanel6.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mousePressed(java.awt.event.MouseEvent evt) {\n colorPanel6MousePressed(evt);\n }\n });\n\n javax.swing.GroupLayout colorPanel6Layout = new javax.swing.GroupLayout(colorPanel6);\n colorPanel6.setLayout(colorPanel6Layout);\n colorPanel6Layout.setHorizontalGroup(\n colorPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 32, Short.MAX_VALUE)\n );\n colorPanel6Layout.setVerticalGroup(\n colorPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 32, Short.MAX_VALUE)\n );\n\n colorPanel7.setBackground(new java.awt.Color(255, 255, 255));\n colorPanel7.setCursor(new java.awt.Cursor(java.awt.Cursor.DEFAULT_CURSOR));\n colorPanel7.setMinimumSize(new java.awt.Dimension(16, 16));\n colorPanel7.setPreferredSize(new java.awt.Dimension(32, 32));\n colorPanel7.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mousePressed(java.awt.event.MouseEvent evt) {\n colorPanel7MousePressed(evt);\n }\n });\n\n javax.swing.GroupLayout colorPanel7Layout = new javax.swing.GroupLayout(colorPanel7);\n colorPanel7.setLayout(colorPanel7Layout);\n colorPanel7Layout.setHorizontalGroup(\n colorPanel7Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 32, Short.MAX_VALUE)\n );\n colorPanel7Layout.setVerticalGroup(\n colorPanel7Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 32, Short.MAX_VALUE)\n );\n\n colorPanel8.setBackground(new java.awt.Color(255, 255, 255));\n colorPanel8.setCursor(new java.awt.Cursor(java.awt.Cursor.DEFAULT_CURSOR));\n colorPanel8.setMinimumSize(new java.awt.Dimension(16, 16));\n colorPanel8.setPreferredSize(new java.awt.Dimension(32, 32));\n colorPanel8.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mousePressed(java.awt.event.MouseEvent evt) {\n colorPanel8MousePressed(evt);\n }\n });\n\n javax.swing.GroupLayout colorPanel8Layout = new javax.swing.GroupLayout(colorPanel8);\n colorPanel8.setLayout(colorPanel8Layout);\n colorPanel8Layout.setHorizontalGroup(\n colorPanel8Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 32, Short.MAX_VALUE)\n );\n colorPanel8Layout.setVerticalGroup(\n colorPanel8Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 32, Short.MAX_VALUE)\n );\n\n colorPanel9.setBackground(new java.awt.Color(255, 255, 255));\n colorPanel9.setCursor(new java.awt.Cursor(java.awt.Cursor.DEFAULT_CURSOR));\n colorPanel9.setMinimumSize(new java.awt.Dimension(16, 16));\n colorPanel9.setPreferredSize(new java.awt.Dimension(32, 32));\n colorPanel9.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mousePressed(java.awt.event.MouseEvent evt) {\n colorPanel9MousePressed(evt);\n }\n });\n\n javax.swing.GroupLayout colorPanel9Layout = new javax.swing.GroupLayout(colorPanel9);\n colorPanel9.setLayout(colorPanel9Layout);\n colorPanel9Layout.setHorizontalGroup(\n colorPanel9Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 32, Short.MAX_VALUE)\n );\n colorPanel9Layout.setVerticalGroup(\n colorPanel9Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 32, Short.MAX_VALUE)\n );\n\n colorPanel10.setBackground(new java.awt.Color(255, 255, 255));\n colorPanel10.setCursor(new java.awt.Cursor(java.awt.Cursor.DEFAULT_CURSOR));\n colorPanel10.setMinimumSize(new java.awt.Dimension(16, 16));\n colorPanel10.setPreferredSize(new java.awt.Dimension(32, 32));\n colorPanel10.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mousePressed(java.awt.event.MouseEvent evt) {\n colorPanel10MousePressed(evt);\n }\n });\n\n javax.swing.GroupLayout colorPanel10Layout = new javax.swing.GroupLayout(colorPanel10);\n colorPanel10.setLayout(colorPanel10Layout);\n colorPanel10Layout.setHorizontalGroup(\n colorPanel10Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 32, Short.MAX_VALUE)\n );\n colorPanel10Layout.setVerticalGroup(\n colorPanel10Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 32, Short.MAX_VALUE)\n );\n\n colorPanel11.setBackground(new java.awt.Color(255, 255, 255));\n colorPanel11.setCursor(new java.awt.Cursor(java.awt.Cursor.DEFAULT_CURSOR));\n colorPanel11.setMinimumSize(new java.awt.Dimension(16, 16));\n colorPanel11.setPreferredSize(new java.awt.Dimension(32, 32));\n colorPanel11.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mousePressed(java.awt.event.MouseEvent evt) {\n colorPanel11MousePressed(evt);\n }\n });\n\n javax.swing.GroupLayout colorPanel11Layout = new javax.swing.GroupLayout(colorPanel11);\n colorPanel11.setLayout(colorPanel11Layout);\n colorPanel11Layout.setHorizontalGroup(\n colorPanel11Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 32, Short.MAX_VALUE)\n );\n colorPanel11Layout.setVerticalGroup(\n colorPanel11Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 32, Short.MAX_VALUE)\n );\n\n colorPanel12.setBackground(new java.awt.Color(255, 255, 255));\n colorPanel12.setCursor(new java.awt.Cursor(java.awt.Cursor.DEFAULT_CURSOR));\n colorPanel12.setMinimumSize(new java.awt.Dimension(16, 16));\n colorPanel12.setPreferredSize(new java.awt.Dimension(32, 32));\n colorPanel12.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mousePressed(java.awt.event.MouseEvent evt) {\n colorPanel12MousePressed(evt);\n }\n });\n\n javax.swing.GroupLayout colorPanel12Layout = new javax.swing.GroupLayout(colorPanel12);\n colorPanel12.setLayout(colorPanel12Layout);\n colorPanel12Layout.setHorizontalGroup(\n colorPanel12Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 32, Short.MAX_VALUE)\n );\n colorPanel12Layout.setVerticalGroup(\n colorPanel12Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 32, Short.MAX_VALUE)\n );\n\n colorPanel13.setBackground(new java.awt.Color(255, 255, 255));\n colorPanel13.setCursor(new java.awt.Cursor(java.awt.Cursor.DEFAULT_CURSOR));\n colorPanel13.setMinimumSize(new java.awt.Dimension(16, 16));\n colorPanel13.setPreferredSize(new java.awt.Dimension(32, 32));\n colorPanel13.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mousePressed(java.awt.event.MouseEvent evt) {\n colorPanel13MousePressed(evt);\n }\n });\n\n javax.swing.GroupLayout colorPanel13Layout = new javax.swing.GroupLayout(colorPanel13);\n colorPanel13.setLayout(colorPanel13Layout);\n colorPanel13Layout.setHorizontalGroup(\n colorPanel13Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 32, Short.MAX_VALUE)\n );\n colorPanel13Layout.setVerticalGroup(\n colorPanel13Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 32, Short.MAX_VALUE)\n );\n\n colorPanel14.setBackground(new java.awt.Color(255, 255, 255));\n colorPanel14.setCursor(new java.awt.Cursor(java.awt.Cursor.DEFAULT_CURSOR));\n colorPanel14.setMinimumSize(new java.awt.Dimension(16, 16));\n colorPanel14.setPreferredSize(new java.awt.Dimension(32, 32));\n colorPanel14.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mousePressed(java.awt.event.MouseEvent evt) {\n colorPanel14MousePressed(evt);\n }\n });\n\n javax.swing.GroupLayout colorPanel14Layout = new javax.swing.GroupLayout(colorPanel14);\n colorPanel14.setLayout(colorPanel14Layout);\n colorPanel14Layout.setHorizontalGroup(\n colorPanel14Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 32, Short.MAX_VALUE)\n );\n colorPanel14Layout.setVerticalGroup(\n colorPanel14Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 32, Short.MAX_VALUE)\n );\n\n colorPanel15.setBackground(new java.awt.Color(255, 255, 255));\n colorPanel15.setCursor(new java.awt.Cursor(java.awt.Cursor.DEFAULT_CURSOR));\n colorPanel15.setMinimumSize(new java.awt.Dimension(16, 16));\n colorPanel15.setPreferredSize(new java.awt.Dimension(32, 32));\n colorPanel15.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mousePressed(java.awt.event.MouseEvent evt) {\n colorPanel15MousePressed(evt);\n }\n });\n\n javax.swing.GroupLayout colorPanel15Layout = new javax.swing.GroupLayout(colorPanel15);\n colorPanel15.setLayout(colorPanel15Layout);\n colorPanel15Layout.setHorizontalGroup(\n colorPanel15Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 32, Short.MAX_VALUE)\n );\n colorPanel15Layout.setVerticalGroup(\n colorPanel15Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 32, Short.MAX_VALUE)\n );\n\n colorPanel16.setBackground(new java.awt.Color(255, 255, 255));\n colorPanel16.setCursor(new java.awt.Cursor(java.awt.Cursor.DEFAULT_CURSOR));\n colorPanel16.setMinimumSize(new java.awt.Dimension(16, 16));\n colorPanel16.setPreferredSize(new java.awt.Dimension(32, 32));\n colorPanel16.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mousePressed(java.awt.event.MouseEvent evt) {\n colorPanel16MousePressed(evt);\n }\n });\n\n javax.swing.GroupLayout colorPanel16Layout = new javax.swing.GroupLayout(colorPanel16);\n colorPanel16.setLayout(colorPanel16Layout);\n colorPanel16Layout.setHorizontalGroup(\n colorPanel16Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 32, Short.MAX_VALUE)\n );\n colorPanel16Layout.setVerticalGroup(\n colorPanel16Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 32, Short.MAX_VALUE)\n );\n\n javax.swing.GroupLayout colorsPanelLayout = new javax.swing.GroupLayout(colorsPanel);\n colorsPanel.setLayout(colorsPanelLayout);\n colorsPanelLayout.setHorizontalGroup(\n colorsPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(colorsPanelLayout.createSequentialGroup()\n .addGroup(colorsPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(colorsPanelLayout.createSequentialGroup()\n .addComponent(colorPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(colorPanel2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(colorPanel3, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(colorPanel4, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(colorPanel5, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(colorPanel6, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(colorPanel7, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(colorPanel8, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(colorsPanelLayout.createSequentialGroup()\n .addComponent(colorPanel9, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(colorPanel10, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(colorPanel11, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(colorPanel12, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(colorPanel13, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(colorPanel14, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(colorPanel15, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(colorPanel16, 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 colorsPanelLayout.setVerticalGroup(\n colorsPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(colorsPanelLayout.createSequentialGroup()\n .addGroup(colorsPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(colorPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(colorPanel2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(colorPanel3, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(colorPanel4, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(colorPanel5, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(colorPanel6, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(colorPanel7, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(colorPanel8, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(colorsPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(colorPanel9, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(colorPanel10, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(colorPanel11, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(colorPanel12, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(colorPanel13, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(colorPanel14, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(colorPanel15, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(colorPanel16, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))\n );\n\n colorChooser.setMinimumSize(new java.awt.Dimension(429, 32));\n colorChooser.setPreferredSize(new java.awt.Dimension(429, 32));\n\n jLabel2.setFont(new java.awt.Font(\"Tahoma\", 0, 14)); // NOI18N\n jLabel2.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT);\n jLabel2.setText(\"RGB:\");\n\n rgbField.setFont(new java.awt.Font(\"Courier New\", 0, 14)); // NOI18N\n rgbField.setText(\"255 255 255\");\n\n jLabel4.setFont(new java.awt.Font(\"Tahoma\", 0, 14)); // NOI18N\n jLabel4.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT);\n jLabel4.setText(\"Genesis:\");\n\n gensField.setFont(new java.awt.Font(\"Courier New\", 0, 14)); // NOI18N\n gensField.setText(\"0fff\");\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.TRAILING)\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addComponent(jLabel4)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(gensField, javax.swing.GroupLayout.PREFERRED_SIZE, 60, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 48, Short.MAX_VALUE)\n .addComponent(jLabel2)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(rgbField, javax.swing.GroupLayout.PREFERRED_SIZE, 102, javax.swing.GroupLayout.PREFERRED_SIZE))\n );\n jPanel2Layout.setVerticalGroup(\n jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel4)\n .addComponent(gensField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel2)\n .addComponent(rgbField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\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 .addComponent(colorChooser, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel1Layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(jLabel5, javax.swing.GroupLayout.PREFERRED_SIZE, 52, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(paletteCombo, javax.swing.GroupLayout.PREFERRED_SIZE, 142, 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 .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(addressField, javax.swing.GroupLayout.PREFERRED_SIZE, 62, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(97, 97, 97))\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGap(33, 33, 33)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(jPanel2, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(colorsPanel, javax.swing.GroupLayout.DEFAULT_SIZE, 299, Short.MAX_VALUE))\n .addContainerGap())\n );\n jPanel1Layout.setVerticalGroup(\n jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel5)\n .addComponent(paletteCombo, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel6)\n .addComponent(addressField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(colorsPanel, javax.swing.GroupLayout.PREFERRED_SIZE, 70, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\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(colorChooser, javax.swing.GroupLayout.DEFAULT_SIZE, 371, Short.MAX_VALUE))\n );\n\n jMenu1.setText(\"File\");\n\n openRomMenu.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_R, java.awt.event.InputEvent.CTRL_MASK));\n openRomMenu.setText(\"Open Rom\");\n openRomMenu.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n openRomMenuActionPerformed(evt);\n }\n });\n jMenu1.add(openRomMenu);\n\n jMenuItem4.setText(\"Close Rom\");\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 jMenuItem5.setText(\"Save\");\n jMenuItem5.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jMenuItem5ActionPerformed(evt);\n }\n });\n jMenu1.add(jMenuItem5);\n jMenu1.add(jSeparator4);\n\n openGuideMenu.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_G, java.awt.event.InputEvent.CTRL_MASK));\n openGuideMenu.setText(\"Open Guide\");\n openGuideMenu.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n openGuideMenuActionPerformed(evt);\n }\n });\n jMenu1.add(openGuideMenu);\n jMenu1.add(jSeparator1);\n\n exitMenu.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_F4, java.awt.event.InputEvent.ALT_MASK));\n exitMenu.setText(\"Exit\");\n exitMenu.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n exitMenuActionPerformed(evt);\n }\n });\n jMenu1.add(exitMenu);\n\n jMenuBar1.add(jMenu1);\n\n jMenu2.setText(\"Edit\");\n\n copyPalMenu.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_C, java.awt.event.InputEvent.SHIFT_MASK | java.awt.event.InputEvent.CTRL_MASK));\n copyPalMenu.setText(\"Copy Palette\");\n copyPalMenu.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n copyPalMenuActionPerformed(evt);\n }\n });\n jMenu2.add(copyPalMenu);\n\n copyColorMenu.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_C, java.awt.event.InputEvent.CTRL_MASK));\n copyColorMenu.setText(\"Copy Color\");\n copyColorMenu.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n copyColorMenuActionPerformed(evt);\n }\n });\n jMenu2.add(copyColorMenu);\n\n pasteColorMenu.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_V, java.awt.event.InputEvent.CTRL_MASK));\n pasteColorMenu.setText(\"Paste\");\n pasteColorMenu.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n pasteColorMenuActionPerformed(evt);\n }\n });\n jMenu2.add(pasteColorMenu);\n jMenu2.add(jSeparator3);\n\n jMenuItem1.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_T, java.awt.event.InputEvent.CTRL_MASK));\n jMenuItem1.setText(\"Reset Zoom\");\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 findMenu.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_F3, 0));\n findMenu.setText(\"Find Palette\");\n findMenu.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n findMenuActionPerformed(evt);\n }\n });\n jMenu2.add(findMenu);\n\n jMenuBar1.add(jMenu2);\n\n jMenu3.setText(\"Help\");\n\n jMenuItem2.setText(\"About\");\n jMenuItem2.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jMenuItem2ActionPerformed(evt);\n }\n });\n jMenu3.add(jMenuItem2);\n\n jMenuBar1.add(jMenu3);\n\n setJMenuBar(jMenuBar1);\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, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(scrollPane, javax.swing.GroupLayout.DEFAULT_SIZE, 415, Short.MAX_VALUE)\n .addContainerGap())\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 .addComponent(scrollPane)\n );\n\n pack();\n }", "void createDialogComponents(Color color) {\r\n GridBagConstraints constr = new GridBagConstraints();\r\n constr.gridwidth = 1;\r\n constr.gridheight = 4;\r\n constr.insets = new Insets(0, 0, 0, 10);\r\n constr.fill = GridBagConstraints.NONE;\r\n constr.anchor = GridBagConstraints.CENTER;\r\n\r\n constr.gridx = 0;\r\n constr.gridy = 0;\r\n\r\n // Create color wheel canvas\r\n colorCanvas = new ColorCanvas(50, color);\r\n add(colorCanvas, constr);\r\n\r\n // Create input boxes to enter values\r\n Font font = new Font(\"DialogInput\", Font.PLAIN, 10);\r\n redInput = new TextField(3);\r\n redInput.addFocusListener(this);\r\n redInput.setFont(font);\r\n greenInput = new TextField(3);\r\n greenInput.addFocusListener(this);\r\n greenInput.setFont(font);\r\n blueInput = new TextField(3);\r\n blueInput.addFocusListener(this);\r\n blueInput.setFont(font);\r\n\r\n // Add the input boxes and labels to the component\r\n Label label;\r\n constr.gridheight = 1;\r\n constr.fill = GridBagConstraints.HORIZONTAL;\r\n constr.anchor = GridBagConstraints.SOUTH;\r\n constr.insets = new Insets(0, 0, 0, 0);\r\n constr.gridx = 1;\r\n constr.gridy = 0;\r\n label = new Label(\"Red:\", Label.RIGHT);\r\n add(label, constr);\r\n constr.gridy = 1;\r\n constr.anchor = GridBagConstraints.CENTER;\r\n label = new Label(\"Green:\", Label.RIGHT);\r\n add(label, constr);\r\n constr.gridy = 2;\r\n constr.anchor = GridBagConstraints.NORTH;\r\n label = new Label(\"Blue:\", Label.RIGHT);\r\n add(label, constr);\r\n\r\n constr.gridheight = 1;\r\n constr.fill = GridBagConstraints.NONE;\r\n constr.anchor = GridBagConstraints.SOUTHWEST;\r\n constr.insets = new Insets(0, 0, 0, 10);\r\n constr.gridx = 2;\r\n constr.gridy = 0;\r\n add(redInput, constr);\r\n constr.gridy = 1;\r\n constr.anchor = GridBagConstraints.WEST;\r\n add(greenInput, constr);\r\n constr.gridy = 2;\r\n constr.anchor = GridBagConstraints.NORTHWEST;\r\n add(blueInput, constr);\r\n\r\n // Add color swatches\r\n Panel panel = new Panel();\r\n panel.setLayout(new GridLayout(1, 2, 4, 4));\r\n oldSwatch = new ColorSwatch(false);\r\n oldSwatch.setForeground(color);\r\n panel.add(oldSwatch);\r\n newSwatch = new ColorSwatch(false);\r\n newSwatch.setForeground(color);\r\n panel.add(newSwatch);\r\n\r\n constr.fill = GridBagConstraints.HORIZONTAL;\r\n constr.anchor = GridBagConstraints.CENTER;\r\n constr.gridx = 1;\r\n constr.gridy = 3;\r\n constr.gridwidth = 2;\r\n add(panel, constr);\r\n\r\n // Add buttons\r\n panel = new Panel();\r\n panel.setLayout(new GridLayout(1, 2, 10, 2));\r\n Font buttonFont = new Font(\"SansSerif\", Font.BOLD, 12);\r\n okButton = new Button(\"Ok\");\r\n okButton.setFont(buttonFont);\r\n okButton.addActionListener(this);\r\n cancelButton = new Button(\"Cancel\");\r\n cancelButton.addActionListener(this);\r\n cancelButton.setFont(buttonFont);\r\n panel.add(okButton);\r\n panel.add(cancelButton);\r\n\r\n constr.fill = GridBagConstraints.NONE;\r\n constr.anchor = GridBagConstraints.CENTER;\r\n constr.gridx = 0;\r\n constr.gridy = 4;\r\n constr.gridwidth = 3;\r\n add(panel, constr);\r\n }", "private void initializeSetColorButton() {\n\n setColorTextLabel = new JLabel(\"Set New Color\");\n setColorTextLabel.setBounds(250, 250,150, 25);\n setColorTextLabel.setFont(new Font(\"Arial\", Font.PLAIN, 20));\n this.add(setColorTextLabel);\n\n greenButton = new JButton();\n greenButton.setBackground(java.awt.Color.green);\n greenButton.setBounds(400, 250, 60, 25);\n this.add(greenButton);\n\n redButton = new JButton();\n redButton.setBackground(java.awt.Color.red);\n redButton.setBounds(460, 250, 60, 25);\n this.add(redButton);\n\n yellowButton = new JButton();\n yellowButton.setBackground(java.awt.Color.yellow);\n yellowButton.setBounds(520, 250, 60, 25);\n this.add(yellowButton);\n\n blueButton = new JButton();\n blueButton.setBackground(java.awt.Color.blue);\n blueButton.setBounds(580, 250, 60, 25);\n this.add(blueButton);\n\n setColorTextLabel.setVisible(false);\n greenButton.setVisible(false);\n blueButton.setVisible(false);\n redButton.setVisible(false);\n yellowButton.setVisible(false);\n }", "public ColorPickerMainFrame()\n {\n initComponents();\n \n getContentPane().add(panel);\n setSize(640, 640);\n }", "private void initUI() {\r\n\t\t//Äußeres Panel\r\n\t\tContainer pane = getContentPane();\r\n\t\tGroupLayout gl = new GroupLayout(pane);\r\n\t\tpane.setLayout(gl);\r\n\t\t//Abstende von den Containern und dem äußeren Rand\r\n\t\tgl.setAutoCreateContainerGaps(true);\r\n\t\tgl.setAutoCreateGaps(true);\r\n\t\t//TextFeld für die Ausgabe\r\n\t\tJTextField output = view.getTextField();\r\n\t\t//Die jeweiligen Panels für die jeweiigen Buttons\r\n\t\tJPanel brackets = view.getBracketPanel();\r\n\t\tJPanel remove = view.getTop2Panel();\r\n\t\tJPanel numbers = view.getNumbersPanel();\r\n\t\tJPanel last = view.getBottomPanel();\r\n\t\t//Anordnung der jeweiligen Panels durch den Layout Manager\r\n\t\tgl.setHorizontalGroup(gl.createParallelGroup().addComponent(output).addComponent(brackets).addComponent(remove).addComponent(numbers).addComponent(last));\r\n\t\tgl.setVerticalGroup(gl.createSequentialGroup().addComponent(output).addComponent(brackets).addComponent(remove).addComponent(numbers).addComponent(last));\r\n\t\tpack();\r\n\t\tsetTitle(\"Basic - Taschenrechner\");\r\n\t\tsetDefaultCloseOperation(EXIT_ON_CLOSE);\r\n\t\tsetResizable(false);\r\n\t}", "private void initUI() {\n\t\tfileInputPanel.setLayout(new GridBagLayout());\n\n\t\tGridBagConstraints gridBagConstraints = new GridBagConstraints();\n\t\tgridBagConstraints.insets = new Insets(10, 5, 10, 5);\n\t\tgridBagConstraints.anchor = GridBagConstraints.NORTH;\n\t\tgridBagConstraints.gridwidth = 2;\n\n\t\tJLabel title = new JLabel(\"Welcome to ANNie\");\n\t\ttitle.setFont(new Font(\"Serif\", Font.BOLD, 36));\n\n\t\tfileInputPanel.add(title, gridBagConstraints);\n\n\t\tgridBagConstraints.gridwidth = 1;\n\t\tgridBagConstraints.insets = new Insets(10, 5, 10, 5);\n\n\t\tfileInputPanel.setBorder(BorderFactory.createLineBorder(Color.black));\n\n\t\tcreateFileDropdownArea(gridBagConstraints);\n\t\tcreateLabelSelectArea(gridBagConstraints);\n\t\tcreateButtons(gridBagConstraints);\n\t}", "private void initComponents()\n {\n //LAYOUT\n initLayoutComponents();\n \n //TRANSITION COMPONENTS\n initTransitionComponents();\n \n //SEARCH PANE COMPONENTS\n initSearchComponents();\n \n //RESULTS PANE COMPONENTS\n initResultComponents();\n \n // CRAWLER CONTROLS\n initCrawlerControlsComponents();\n \n // KEYWORD BAR\n initKeywordBarComponents();\n \n //WORKER CONTROLS\n initWorkerComponents();\n \n //URL COMPONENTS\n initURLMenuComponents();\n\n //BASE LAYOUT COMPONENTS\n initBaseLayout();\n }", "private void initComponents() {\n\n jButtonGroupTools = new javax.swing.ButtonGroup();\n jButtonGroupFill = new javax.swing.ButtonGroup();\n jSeparator2 = new javax.swing.JSeparator();\n jToolBarTools = new javax.swing.JToolBar();\n jButtonNew = new javax.swing.JButton();\n jButtonOpen = new javax.swing.JButton();\n jButtonSave = new javax.swing.JButton();\n jButtonDuplicate = new javax.swing.JButton();\n jSeparator3 = new javax.swing.JToolBar.Separator();\n jToggleButtonPoint = new javax.swing.JToggleButton();\n jToggleButtonLine = new javax.swing.JToggleButton();\n jToggleButtonRectangle = new javax.swing.JToggleButton();\n jToggleButtonRoundRectangle = new javax.swing.JToggleButton();\n jToggleButtonArc = new javax.swing.JButton();\n jToggleButtonCurve = new javax.swing.JToggleButton();\n jToggleButtonPolyline = new javax.swing.JToggleButton();\n jToggleButtonPolygon = new javax.swing.JToggleButton();\n jToggleButtonEllipse = new javax.swing.JToggleButton();\n jToggleButtonMove = new javax.swing.JToggleButton();\n jToggleButtonText = new javax.swing.JToggleButton();\n jSeparator10 = new javax.swing.JToolBar.Separator();\n jButtonFont = new javax.swing.JButton();\n jSeparator4 = new javax.swing.JToolBar.Separator();\n jButtonColorChooserFront = new UI.ColorChooserButton(Color.BLACK);\n jButtonColorChooserBack = new UI.ColorChooserButton(Color.WHITE);\n jSeparator5 = new javax.swing.JToolBar.Separator();\n jPanelStroke = new UI.StrokeChooserComboBox();\n jSpinnerStroke = new javax.swing.JSpinner();\n jSeparator8 = new javax.swing.JToolBar.Separator();\n jToggleButtonNoFill = new javax.swing.JToggleButton();\n jToggleButtonSolidFill = new javax.swing.JToggleButton();\n jToggleButtonHorizontalFill = new javax.swing.JToggleButton();\n jToggleButtonVerticalFill = new javax.swing.JToggleButton();\n jToggleButtonRadialFill = new javax.swing.JToggleButton();\n jToggleButtonDiagonal1Fill = new javax.swing.JToggleButton();\n jToggleButtonDiagonal2Fill = new javax.swing.JToggleButton();\n jSeparator9 = new javax.swing.JToolBar.Separator();\n jToggleButtonAntialiasing = new javax.swing.JToggleButton();\n jSliderAlpha = new javax.swing.JSlider();\n jSeparator6 = new javax.swing.JToolBar.Separator();\n jToggleButtonRecord = new javax.swing.JToggleButton();\n jLabelRecordTime = new javax.swing.JLabel();\n jSeparator7 = new javax.swing.JToolBar.Separator();\n jButtonWebCam = new javax.swing.JButton();\n jButtonSnapShot = new javax.swing.JButton();\n jPanelCenter = new javax.swing.JPanel();\n jSplitPane1 = new javax.swing.JSplitPane();\n desktop = new javax.swing.JDesktopPane();\n jPanel1 = new javax.swing.JPanel();\n jScrollPane2 = new javax.swing.JScrollPane();\n jListShapes = new javax.swing.JList<String>();\n jPanel2 = new javax.swing.JPanel();\n jButtonMoveUp = new javax.swing.JButton();\n jButtonMoveDown = new javax.swing.JButton();\n jToolBarImage = new javax.swing.JToolBar();\n jPanelImageBrightness = new javax.swing.JPanel();\n jSliderBrightness = new javax.swing.JSlider();\n jPanelImageFilter = new javax.swing.JPanel();\n jComboBoxFilter = new javax.swing.JComboBox<String>();\n jPanelImageContrast = new javax.swing.JPanel();\n jButtonConstrast = new javax.swing.JButton();\n jButtonConstrastBright = new javax.swing.JButton();\n jButtonContrastDark = new javax.swing.JButton();\n jPanelImageOperations = new javax.swing.JPanel();\n jButtonSinus = new javax.swing.JButton();\n jButtonSepia = new javax.swing.JButton();\n jButtonSobel = new javax.swing.JButton();\n jButtonTinted = new javax.swing.JButton();\n jButtonNegative = new javax.swing.JButton();\n jButtonGrayScale = new javax.swing.JButton();\n jButtonRandomBlack = new javax.swing.JButton();\n jPanelImageBinary = new javax.swing.JPanel();\n jButtonBinaryAdd = new javax.swing.JButton();\n jButtonBinarySubstract = new javax.swing.JButton();\n jButtonBinaryProduct = new javax.swing.JButton();\n jSliderBinaryOperations = new javax.swing.JSlider();\n jPanelUmbralization = new javax.swing.JPanel();\n jSliderUmbralization = new javax.swing.JSlider();\n jPanelStatusBar = new javax.swing.JPanel();\n jToolBarImageRotation = new javax.swing.JToolBar();\n jPanelImageRotate = new javax.swing.JPanel();\n jSliderRotate = new javax.swing.JSlider();\n jButtonRotate90 = new javax.swing.JButton();\n jButton180 = new javax.swing.JButton();\n jButtonRotate270 = new javax.swing.JButton();\n jPanelZoom = new javax.swing.JPanel();\n jButtonZoomMinus = new javax.swing.JButton();\n jButtonZoomPlus = new javax.swing.JButton();\n jStatusBarTool = new javax.swing.JLabel();\n jPanelCursorAndColor = new javax.swing.JPanel();\n jStatusBarCursor = new javax.swing.JLabel();\n jStatusBarColor = new javax.swing.JLabel();\n jMenuBar = new javax.swing.JMenuBar();\n jMenuFile = new javax.swing.JMenu();\n jMenuItemNew = new javax.swing.JMenuItem();\n jMenuOpen = new javax.swing.JMenuItem();\n jMenuSave = new javax.swing.JMenuItem();\n jSeparator1 = new javax.swing.JPopupMenu.Separator();\n jMenuItemExit = new javax.swing.JMenuItem();\n jMenuEdit = new javax.swing.JMenu();\n jMenuItemCut = new javax.swing.JMenuItem();\n jMenuItemCopy = new javax.swing.JMenuItem();\n jMenuItemPaste = new javax.swing.JMenuItem();\n jMenuView = new javax.swing.JMenu();\n jCheckBoxMenuItemToolBar = new javax.swing.JCheckBoxMenuItem();\n jCheckBoxMenuItemToolBarImageOperations = new javax.swing.JCheckBoxMenuItem();\n jCheckBoxMenuItemToolBarImageRotation = new javax.swing.JCheckBoxMenuItem();\n jCheckBoxMenuItemStatusBar = new javax.swing.JCheckBoxMenuItem();\n jMenuImage = new javax.swing.JMenu();\n jMenuItemChangeSize = new javax.swing.JMenuItem();\n jMenuItemDuplicateImage = new javax.swing.JMenuItem();\n jMenuItemHistogram = new javax.swing.JMenuItem();\n jMenuHelp = new javax.swing.JMenu();\n jMenuItemHelpAbout = new javax.swing.JMenuItem();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n setMinimumSize(new java.awt.Dimension(600, 500));\n\n jToolBarTools.setRollover(true);\n\n jButtonNew.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/sm/images/icon_new.png\"))); // NOI18N\n jButtonNew.setToolTipText(\"Nueva imagen\");\n jButtonNew.setFocusable(false);\n jButtonNew.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);\n jButtonNew.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);\n jButtonNew.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButtonNewActionPerformed(evt);\n }\n });\n jToolBarTools.add(jButtonNew);\n\n jButtonOpen.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/sm/images/icon_open.png\"))); // NOI18N\n jButtonOpen.setToolTipText(\"Abrir\");\n jButtonOpen.setFocusable(false);\n jButtonOpen.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);\n jButtonOpen.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);\n jButtonOpen.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButtonOpenActionPerformed(evt);\n }\n });\n jToolBarTools.add(jButtonOpen);\n\n jButtonSave.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/sm/images/icon_save.png\"))); // NOI18N\n jButtonSave.setToolTipText(\"Guardar\");\n jButtonSave.setFocusable(false);\n jButtonSave.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);\n jButtonSave.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);\n jButtonSave.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButtonSaveActionPerformed(evt);\n }\n });\n jToolBarTools.add(jButtonSave);\n\n jButtonDuplicate.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/sm/images/icon_duplicate.png\"))); // NOI18N\n jButtonDuplicate.setToolTipText(\"Duplicar\");\n jButtonDuplicate.setFocusable(false);\n jButtonDuplicate.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);\n jButtonDuplicate.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);\n jButtonDuplicate.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButtonDuplicateActionPerformed(evt);\n }\n });\n jToolBarTools.add(jButtonDuplicate);\n jToolBarTools.add(jSeparator3);\n\n jButtonGroupTools.add(jToggleButtonPoint);\n jToggleButtonPoint.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/sm/images/icon_pencil.png\"))); // NOI18N\n jToggleButtonPoint.setSelected(true);\n jToggleButtonPoint.setToolTipText(\"Punto\");\n jToggleButtonPoint.setFocusable(false);\n jToggleButtonPoint.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);\n jToggleButtonPoint.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);\n jToggleButtonPoint.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jToggleButtonPointActionPerformed(evt);\n }\n });\n jToolBarTools.add(jToggleButtonPoint);\n\n jButtonGroupTools.add(jToggleButtonLine);\n jToggleButtonLine.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/sm/images/icon_line.png\"))); // NOI18N\n jToggleButtonLine.setToolTipText(\"Linea\");\n jToggleButtonLine.setFocusable(false);\n jToggleButtonLine.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);\n jToggleButtonLine.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);\n jToggleButtonLine.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jToggleButtonLineActionPerformed(evt);\n }\n });\n jToolBarTools.add(jToggleButtonLine);\n\n jButtonGroupTools.add(jToggleButtonRectangle);\n jToggleButtonRectangle.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/sm/images/icon_rectangle.png\"))); // NOI18N\n jToggleButtonRectangle.setToolTipText(\"Rectangulo\");\n jToggleButtonRectangle.setFocusable(false);\n jToggleButtonRectangle.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);\n jToggleButtonRectangle.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);\n jToggleButtonRectangle.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jToggleButtonRectangleActionPerformed(evt);\n }\n });\n jToolBarTools.add(jToggleButtonRectangle);\n\n jButtonGroupTools.add(jToggleButtonRoundRectangle);\n jToggleButtonRoundRectangle.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/sm/images/icon_roundrectangle.png\"))); // NOI18N\n jToggleButtonRoundRectangle.setToolTipText(\"Rectangulo redondeado\");\n jToggleButtonRoundRectangle.setFocusable(false);\n jToggleButtonRoundRectangle.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);\n jToggleButtonRoundRectangle.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);\n jToggleButtonRoundRectangle.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jToggleButtonRoundRectangleActionPerformed(evt);\n }\n });\n jToolBarTools.add(jToggleButtonRoundRectangle);\n\n jToggleButtonArc.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/sm/images/icon_arc.png\"))); // NOI18N\n jToggleButtonArc.setToolTipText(\"Arco\");\n jButtonGroupTools.add(jToggleButtonArc);\n jToggleButtonArc.setFocusable(false);\n jToggleButtonArc.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);\n jToggleButtonArc.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);\n jToggleButtonArc.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jToggleButtonArcActionPerformed(evt);\n }\n });\n jToolBarTools.add(jToggleButtonArc);\n\n jButtonGroupTools.add(jToggleButtonCurve);\n jToggleButtonCurve.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/sm/images/icon_curve.png\"))); // NOI18N\n jToggleButtonCurve.setToolTipText(\"Curva\");\n jToggleButtonCurve.setFocusable(false);\n jToggleButtonCurve.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);\n jToggleButtonCurve.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);\n jToggleButtonCurve.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jToggleButtonCurveActionPerformed(evt);\n }\n });\n jToolBarTools.add(jToggleButtonCurve);\n\n jButtonGroupTools.add(jToggleButtonPolyline);\n jToggleButtonPolyline.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/sm/images/icon_polygon.png\"))); // NOI18N\n jToggleButtonPolyline.setToolTipText(\"Polilínea\");\n jToggleButtonPolyline.setFocusable(false);\n jToggleButtonPolyline.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);\n jToggleButtonPolyline.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);\n jToggleButtonPolyline.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jToggleButtonPolylineActionPerformed(evt);\n }\n });\n jToolBarTools.add(jToggleButtonPolyline);\n\n jButtonGroupTools.add(jToggleButtonPolygon);\n jToggleButtonPolygon.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/sm/images/icon_polygon.png\"))); // NOI18N\n jToggleButtonPolygon.setToolTipText(\"Poligono\");\n jToggleButtonPolygon.setFocusable(false);\n jToggleButtonPolygon.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);\n jToggleButtonPolygon.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);\n jToggleButtonPolygon.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jToggleButtonPolygonActionPerformed(evt);\n }\n });\n jToolBarTools.add(jToggleButtonPolygon);\n\n jButtonGroupTools.add(jToggleButtonEllipse);\n jToggleButtonEllipse.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/sm/images/icon_ellipse.png\"))); // NOI18N\n jToggleButtonEllipse.setToolTipText(\"Elipse\");\n jToggleButtonEllipse.setFocusable(false);\n jToggleButtonEllipse.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);\n jToggleButtonEllipse.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);\n jToggleButtonEllipse.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jToggleButtonEllipseActionPerformed(evt);\n }\n });\n jToolBarTools.add(jToggleButtonEllipse);\n\n jButtonGroupTools.add(jToggleButtonMove);\n jToggleButtonMove.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/sm/images/icon_move.png\"))); // NOI18N\n jToggleButtonMove.setToolTipText(\"Mover\");\n jToggleButtonMove.setFocusable(false);\n jToggleButtonMove.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);\n jToggleButtonMove.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);\n jToggleButtonMove.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jToggleButtonMoveActionPerformed(evt);\n }\n });\n jToolBarTools.add(jToggleButtonMove);\n\n jButtonGroupTools.add(jToggleButtonText);\n jToggleButtonText.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/sm/images/icon_text.png\"))); // NOI18N\n jToggleButtonText.setToolTipText(\"Texto\");\n jToggleButtonText.setFocusable(false);\n jToggleButtonText.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);\n jToggleButtonText.setPreferredSize(new java.awt.Dimension(24, 24));\n jToggleButtonText.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);\n jToggleButtonText.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jToggleButtonTextActionPerformed(evt);\n }\n });\n jToolBarTools.add(jToggleButtonText);\n jToolBarTools.add(jSeparator10);\n\n jButtonFont.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/sm/images/icon_font.png\"))); // NOI18N\n jButtonFont.setToolTipText(\"Fuente\");\n jButtonFont.setFocusable(false);\n jButtonFont.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);\n jButtonFont.setPreferredSize(new java.awt.Dimension(24, 24));\n jButtonFont.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);\n jButtonFont.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButtonFontActionPerformed(evt);\n }\n });\n jToolBarTools.add(jButtonFont);\n jToolBarTools.add(jSeparator4);\n\n jButtonColorChooserFront.setToolTipText(\"Color de borde\");\n jButtonColorChooserFront.setBorder(javax.swing.BorderFactory.createBevelBorder(javax.swing.border.BevelBorder.RAISED));\n jButtonColorChooserFront.setBorderPainted(false);\n jButtonColorChooserFront.setFocusable(false);\n jButtonColorChooserFront.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);\n jButtonColorChooserFront.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);\n jToolBarTools.add(jButtonColorChooserFront);\n\n jButtonColorChooserBack.setForeground(new java.awt.Color(255, 255, 255));\n jButtonColorChooserBack.setToolTipText(\"Color de fondo\");\n jButtonColorChooserBack.setBorder(javax.swing.BorderFactory.createBevelBorder(javax.swing.border.BevelBorder.RAISED));\n jButtonColorChooserBack.setBorderPainted(false);\n jButtonColorChooserBack.setFocusable(false);\n jButtonColorChooserBack.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);\n jButtonColorChooserBack.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);\n jToolBarTools.add(jButtonColorChooserBack);\n jToolBarTools.add(jSeparator5);\n jToolBarTools.add(jPanelStroke);\n\n jSpinnerStroke.setModel(new javax.swing.SpinnerNumberModel(1, 1, 20, 1));\n jSpinnerStroke.setToolTipText(\"Grosor de linea\");\n jSpinnerStroke.setEditor(new javax.swing.JSpinner.NumberEditor(jSpinnerStroke, \"\"));\n jSpinnerStroke.setFocusable(false);\n jSpinnerStroke.setValue(1);\n jSpinnerStroke.addChangeListener(new javax.swing.event.ChangeListener() {\n public void stateChanged(javax.swing.event.ChangeEvent evt) {\n jSpinnerStrokeStateChanged(evt);\n }\n });\n jToolBarTools.add(jSpinnerStroke);\n jToolBarTools.add(jSeparator8);\n\n jButtonGroupFill.add(jToggleButtonNoFill);\n jToggleButtonNoFill.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/sm/images/icon_fillno.png\"))); // NOI18N\n jToggleButtonNoFill.setSelected(true);\n jToggleButtonNoFill.setToolTipText(\"Sin relleno\");\n jToggleButtonNoFill.setFocusable(false);\n jToggleButtonNoFill.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);\n jToggleButtonNoFill.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);\n jToggleButtonNoFill.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jToggleButtonNoFillActionPerformed(evt);\n }\n });\n jToolBarTools.add(jToggleButtonNoFill);\n\n jButtonGroupFill.add(jToggleButtonSolidFill);\n jToggleButtonSolidFill.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/sm/images/icon_fill.png\"))); // NOI18N\n jToggleButtonSolidFill.setToolTipText(\"Relleno sólido\");\n jToggleButtonSolidFill.setFocusable(false);\n jToggleButtonSolidFill.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);\n jToggleButtonSolidFill.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);\n jToggleButtonSolidFill.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jToggleButtonSolidFillActionPerformed(evt);\n }\n });\n jToolBarTools.add(jToggleButtonSolidFill);\n\n jButtonGroupFill.add(jToggleButtonHorizontalFill);\n jToggleButtonHorizontalFill.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/sm/images/icon_fill_horizontal.png\"))); // NOI18N\n jToggleButtonHorizontalFill.setToolTipText(\"Degradado horizontal\");\n jToggleButtonHorizontalFill.setFocusable(false);\n jToggleButtonHorizontalFill.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);\n jToggleButtonHorizontalFill.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);\n jToggleButtonHorizontalFill.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jToggleButtonHorizontalFillActionPerformed(evt);\n }\n });\n jToolBarTools.add(jToggleButtonHorizontalFill);\n\n jButtonGroupFill.add(jToggleButtonVerticalFill);\n jToggleButtonVerticalFill.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/sm/images/icon_fill_vertical.png\"))); // NOI18N\n jToggleButtonVerticalFill.setToolTipText(\"Degradado horizontal\");\n jToggleButtonVerticalFill.setFocusable(false);\n jToggleButtonVerticalFill.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);\n jToggleButtonVerticalFill.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);\n jToggleButtonVerticalFill.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jToggleButtonVerticalFillActionPerformed(evt);\n }\n });\n jToolBarTools.add(jToggleButtonVerticalFill);\n\n jButtonGroupFill.add(jToggleButtonRadialFill);\n jToggleButtonRadialFill.setText(\"R\");\n jToggleButtonRadialFill.setToolTipText(\"Degradado Radial\");\n jToggleButtonRadialFill.setFocusable(false);\n jToggleButtonRadialFill.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);\n jToggleButtonRadialFill.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);\n jToggleButtonRadialFill.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jToggleButtonRadialFillActionPerformed(evt);\n }\n });\n jToolBarTools.add(jToggleButtonRadialFill);\n\n jButtonGroupFill.add(jToggleButtonDiagonal1Fill);\n jToggleButtonDiagonal1Fill.setText(\"D1\");\n jToggleButtonDiagonal1Fill.setFocusable(false);\n jToggleButtonDiagonal1Fill.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);\n jToggleButtonDiagonal1Fill.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);\n jToggleButtonDiagonal1Fill.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jToggleButtonDiagonal1FillActionPerformed(evt);\n }\n });\n jToolBarTools.add(jToggleButtonDiagonal1Fill);\n\n jButtonGroupFill.add(jToggleButtonDiagonal2Fill);\n jToggleButtonDiagonal2Fill.setText(\"D2\");\n jToggleButtonDiagonal2Fill.setFocusable(false);\n jToggleButtonDiagonal2Fill.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);\n jToggleButtonDiagonal2Fill.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);\n jToggleButtonDiagonal2Fill.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jToggleButtonDiagonal2FillActionPerformed(evt);\n }\n });\n jToolBarTools.add(jToggleButtonDiagonal2Fill);\n jToolBarTools.add(jSeparator9);\n\n jToggleButtonAntialiasing.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/sm/images/icon_antialiasing.png\"))); // NOI18N\n jToggleButtonAntialiasing.setToolTipText(\"Suavizado\");\n jToggleButtonAntialiasing.setFocusable(false);\n jToggleButtonAntialiasing.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);\n jToggleButtonAntialiasing.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);\n jToggleButtonAntialiasing.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jToggleButtonAntialiasingActionPerformed(evt);\n }\n });\n jToolBarTools.add(jToggleButtonAntialiasing);\n\n jSliderAlpha.setPaintTicks(true);\n jSliderAlpha.setToolTipText(\"Transparencia\");\n jSliderAlpha.setValue(100);\n jSliderAlpha.addChangeListener(new javax.swing.event.ChangeListener() {\n public void stateChanged(javax.swing.event.ChangeEvent evt) {\n jSliderAlphaStateChanged(evt);\n }\n });\n jToolBarTools.add(jSliderAlpha);\n jToolBarTools.add(jSeparator6);\n\n jToggleButtonRecord.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/sm/images/icon_record.png\"))); // NOI18N\n jToggleButtonRecord.setToolTipText(\"Grabar\");\n jToggleButtonRecord.setFocusable(false);\n jToggleButtonRecord.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);\n jToggleButtonRecord.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);\n jToggleButtonRecord.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jToggleButtonRecordActionPerformed(evt);\n }\n });\n jToolBarTools.add(jToggleButtonRecord);\n\n jLabelRecordTime.setText(\"00:00\");\n jToolBarTools.add(jLabelRecordTime);\n jToolBarTools.add(jSeparator7);\n\n jButtonWebCam.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/sm/images/icon_webcam.png\"))); // NOI18N\n jButtonWebCam.setToolTipText(\"Abrir webcam\");\n jButtonWebCam.setFocusable(false);\n jButtonWebCam.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);\n jButtonWebCam.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);\n jButtonWebCam.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButtonWebCamActionPerformed(evt);\n }\n });\n jToolBarTools.add(jButtonWebCam);\n\n jButtonSnapShot.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/sm/images/icon_snapshot.png\"))); // NOI18N\n jButtonSnapShot.setToolTipText(\"Tomar captura\");\n jButtonSnapShot.setFocusable(false);\n jButtonSnapShot.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);\n jButtonSnapShot.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);\n jButtonSnapShot.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButtonSnapShotActionPerformed(evt);\n }\n });\n jToolBarTools.add(jButtonSnapShot);\n\n getContentPane().add(jToolBarTools, java.awt.BorderLayout.PAGE_START);\n\n jPanelCenter.setLayout(new java.awt.BorderLayout());\n\n desktop.addMouseMotionListener(new java.awt.event.MouseMotionAdapter() {\n public void mouseMoved(java.awt.event.MouseEvent evt) {\n desktopMouseMoved(evt);\n }\n });\n desktop.addVetoableChangeListener(new java.beans.VetoableChangeListener() {\n public void vetoableChange(java.beans.PropertyChangeEvent evt)throws java.beans.PropertyVetoException {\n desktopVetoableChange(evt);\n }\n });\n\n javax.swing.GroupLayout desktopLayout = new javax.swing.GroupLayout(desktop);\n desktop.setLayout(desktopLayout);\n desktopLayout.setHorizontalGroup(\n desktopLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 0, Short.MAX_VALUE)\n );\n desktopLayout.setVerticalGroup(\n desktopLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 0, Short.MAX_VALUE)\n );\n\n jSplitPane1.setLeftComponent(desktop);\n\n jPanel1.setLayout(new java.awt.BorderLayout());\n\n jListShapes.setSelectionMode(javax.swing.ListSelectionModel.SINGLE_SELECTION);\n jListShapes.setEnabled(false);\n jListShapes.addListSelectionListener(new javax.swing.event.ListSelectionListener() {\n public void valueChanged(javax.swing.event.ListSelectionEvent evt) {\n jListShapesValueChanged(evt);\n }\n });\n jScrollPane2.setViewportView(jListShapes);\n\n jPanel1.add(jScrollPane2, java.awt.BorderLayout.CENTER);\n\n jPanel2.setLayout(new java.awt.GridLayout(1, 0));\n\n jButtonMoveUp.setText(\"Hacia delante\");\n jButtonMoveUp.setToolTipText(\"Mover Arriba\");\n jButtonMoveUp.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButtonMoveUpActionPerformed(evt);\n }\n });\n jPanel2.add(jButtonMoveUp);\n\n jButtonMoveDown.setText(\"Hacia el fondo\");\n jButtonMoveDown.setToolTipText(\"Mover Abajo\");\n jButtonMoveDown.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButtonMoveDownActionPerformed(evt);\n }\n });\n jPanel2.add(jButtonMoveDown);\n\n jPanel1.add(jPanel2, java.awt.BorderLayout.PAGE_START);\n\n jSplitPane1.setRightComponent(jPanel1);\n\n jPanelCenter.add(jSplitPane1, java.awt.BorderLayout.CENTER);\n\n jToolBarImage.setRollover(true);\n jToolBarImage.setMinimumSize(new java.awt.Dimension(544, 90));\n jToolBarImage.setPreferredSize(new java.awt.Dimension(722, 80));\n\n jPanelImageBrightness.setBorder(javax.swing.BorderFactory.createTitledBorder(\"Brillo\"));\n jPanelImageBrightness.setDoubleBuffered(false);\n jPanelImageBrightness.setEnabled(false);\n jPanelImageBrightness.setLayout(new java.awt.GridLayout(1, 0));\n\n jSliderBrightness.setMaximum(255);\n jSliderBrightness.setMinimum(-255);\n jSliderBrightness.setValue(0);\n jSliderBrightness.setPreferredSize(new java.awt.Dimension(70, 29));\n jSliderBrightness.addChangeListener(new javax.swing.event.ChangeListener() {\n public void stateChanged(javax.swing.event.ChangeEvent evt) {\n jSliderBrightnessStateChanged(evt);\n }\n });\n jSliderBrightness.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n jSliderBrightnessFocusGained(evt);\n }\n public void focusLost(java.awt.event.FocusEvent evt) {\n jSliderBrightnessFocusLost(evt);\n }\n });\n jPanelImageBrightness.add(jSliderBrightness);\n\n jToolBarImage.add(jPanelImageBrightness);\n\n jPanelImageFilter.setBorder(javax.swing.BorderFactory.createTitledBorder(\"Filtro\"));\n jPanelImageFilter.setDoubleBuffered(false);\n jPanelImageFilter.setEnabled(false);\n jPanelImageFilter.setMinimumSize(new java.awt.Dimension(108, 70));\n jPanelImageFilter.setLayout(new java.awt.GridLayout(1, 0));\n\n jComboBoxFilter.setModel(new javax.swing.DefaultComboBoxModel(new String[] { \"--seleccione filtro--\", \"Emborronamiento media\", \"Emborronamiento binomial\", \"Enfoque\", \"Relieve\", \"Detector de fronteras laplaciano\" }));\n jComboBoxFilter.addItemListener(new java.awt.event.ItemListener() {\n public void itemStateChanged(java.awt.event.ItemEvent evt) {\n jComboBoxFilterItemStateChanged(evt);\n }\n });\n jComboBoxFilter.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n jComboBoxFilterFocusGained(evt);\n }\n });\n jComboBoxFilter.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jComboBoxFilterActionPerformed(evt);\n }\n });\n jPanelImageFilter.add(jComboBoxFilter);\n\n jToolBarImage.add(jPanelImageFilter);\n\n jPanelImageContrast.setBorder(javax.swing.BorderFactory.createTitledBorder(\"Constraste\"));\n jPanelImageContrast.setDoubleBuffered(false);\n jPanelImageContrast.setEnabled(false);\n jPanelImageContrast.setMinimumSize(new java.awt.Dimension(96, 70));\n jPanelImageContrast.setLayout(new java.awt.GridLayout(1, 3));\n\n jButtonConstrast.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/sm/images/icon_contrast.png\"))); // NOI18N\n jButtonConstrast.setToolTipText(\"Constraste\");\n jButtonConstrast.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButtonConstrastActionPerformed(evt);\n }\n });\n jPanelImageContrast.add(jButtonConstrast);\n\n jButtonConstrastBright.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/sm/images/icon_bright.png\"))); // NOI18N\n jButtonConstrastBright.setToolTipText(\"Brillante\");\n jButtonConstrastBright.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButtonConstrastBrightActionPerformed(evt);\n }\n });\n jPanelImageContrast.add(jButtonConstrastBright);\n\n jButtonContrastDark.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/sm/images/icon_dark.png\"))); // NOI18N\n jButtonContrastDark.setToolTipText(\"Oscuro\");\n jButtonContrastDark.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButtonContrastDarkActionPerformed(evt);\n }\n });\n jPanelImageContrast.add(jButtonContrastDark);\n\n jToolBarImage.add(jPanelImageContrast);\n\n jPanelImageOperations.setBorder(javax.swing.BorderFactory.createTitledBorder(\"Operaciones\"));\n jPanelImageOperations.setDoubleBuffered(false);\n jPanelImageOperations.setEnabled(false);\n jPanelImageOperations.setPreferredSize(new java.awt.Dimension(158, 64));\n jPanelImageOperations.setLayout(new java.awt.GridLayout(1, 3));\n\n jButtonSinus.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/sm/images/icon_sinusoidal.png\"))); // NOI18N\n jButtonSinus.setToolTipText(\"Seno\");\n jButtonSinus.setAlignmentX(10.0F);\n jButtonSinus.setAlignmentY(0.0F);\n jButtonSinus.setBorderPainted(false);\n jButtonSinus.setPreferredSize(new java.awt.Dimension(24, 24));\n jButtonSinus.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButtonSinusActionPerformed(evt);\n }\n });\n jPanelImageOperations.add(jButtonSinus);\n\n jButtonSepia.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/sm/images/icon_sepia_1.png\"))); // NOI18N\n jButtonSepia.setToolTipText(\"Sepia\");\n jButtonSepia.setAlignmentY(0.0F);\n jButtonSepia.setBorderPainted(false);\n jButtonSepia.setPreferredSize(new java.awt.Dimension(24, 24));\n jButtonSepia.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButtonSepiaActionPerformed(evt);\n }\n });\n jPanelImageOperations.add(jButtonSepia);\n\n jButtonSobel.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/sm/images/icon_gradient.png\"))); // NOI18N\n jButtonSobel.setToolTipText(\"Gradiente Sobel\");\n jButtonSobel.setAlignmentY(0.0F);\n jButtonSobel.setBorderPainted(false);\n jButtonSobel.setPreferredSize(new java.awt.Dimension(24, 24));\n jButtonSobel.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButtonSobelActionPerformed(evt);\n }\n });\n jPanelImageOperations.add(jButtonSobel);\n\n jButtonTinted.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/sm/images/icon_tinted.png\"))); // NOI18N\n jButtonTinted.setToolTipText(\"Tintado\");\n jButtonTinted.setAlignmentY(0.0F);\n jButtonTinted.setBorderPainted(false);\n jButtonTinted.setPreferredSize(new java.awt.Dimension(24, 24));\n jButtonTinted.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButtonTintedActionPerformed(evt);\n }\n });\n jPanelImageOperations.add(jButtonTinted);\n\n jButtonNegative.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/sm/images/icon_negative.png\"))); // NOI18N\n jButtonNegative.setToolTipText(\"Negativo\");\n jButtonNegative.setAlignmentY(0.0F);\n jButtonNegative.setBorderPainted(false);\n jButtonNegative.setPreferredSize(new java.awt.Dimension(24, 24));\n jButtonNegative.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButtonNegativeActionPerformed(evt);\n }\n });\n jPanelImageOperations.add(jButtonNegative);\n\n jButtonGrayScale.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/sm/images/icon_gray.png\"))); // NOI18N\n jButtonGrayScale.setToolTipText(\"Escala de grises\");\n jButtonGrayScale.setAlignmentY(0.0F);\n jButtonGrayScale.setBorderPainted(false);\n jButtonGrayScale.setPreferredSize(new java.awt.Dimension(24, 24));\n jButtonGrayScale.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButtonGrayScaleActionPerformed(evt);\n }\n });\n jPanelImageOperations.add(jButtonGrayScale);\n\n jButtonRandomBlack.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/sm/images/icon_sepia.png\"))); // NOI18N\n jButtonRandomBlack.setToolTipText(\"Propia\");\n jButtonRandomBlack.setAlignmentY(0.0F);\n jButtonRandomBlack.setBorderPainted(false);\n jButtonRandomBlack.setPreferredSize(new java.awt.Dimension(24, 24));\n jButtonRandomBlack.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButtonRandomBlackActionPerformed(evt);\n }\n });\n jPanelImageOperations.add(jButtonRandomBlack);\n\n jToolBarImage.add(jPanelImageOperations);\n\n jPanelImageBinary.setBorder(javax.swing.BorderFactory.createTitledBorder(\"Binarias\"));\n jPanelImageBinary.setDoubleBuffered(false);\n jPanelImageBinary.setEnabled(false);\n java.awt.GridBagLayout jPanelImageBinaryLayout = new java.awt.GridBagLayout();\n jPanelImageBinaryLayout.columnWidths = new int[] {10, 10, 10};\n jPanelImageBinaryLayout.rowHeights = new int[] {1};\n jPanelImageBinary.setLayout(jPanelImageBinaryLayout);\n\n jButtonBinaryAdd.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/sm/images/icon_add.png\"))); // NOI18N\n jButtonBinaryAdd.setToolTipText(\"suma binaria\");\n jButtonBinaryAdd.setMaximumSize(new java.awt.Dimension(20, 28));\n jButtonBinaryAdd.setMinimumSize(new java.awt.Dimension(24, 24));\n jButtonBinaryAdd.setPreferredSize(new java.awt.Dimension(24, 24));\n jButtonBinaryAdd.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButtonBinaryAddActionPerformed(evt);\n }\n });\n jPanelImageBinary.add(jButtonBinaryAdd, new java.awt.GridBagConstraints());\n\n jButtonBinarySubstract.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/sm/images/icon_substract.png\"))); // NOI18N\n jButtonBinarySubstract.setToolTipText(\"resta binaria\");\n jButtonBinarySubstract.setPreferredSize(new java.awt.Dimension(24, 24));\n jButtonBinarySubstract.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButtonBinarySubstractActionPerformed(evt);\n }\n });\n jPanelImageBinary.add(jButtonBinarySubstract, new java.awt.GridBagConstraints());\n\n jButtonBinaryProduct.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/sm/images/icon_product.png\"))); // NOI18N\n jButtonBinaryProduct.setToolTipText(\"multiplicacion binaria\");\n jButtonBinaryProduct.setMargin(new java.awt.Insets(0, 0, 0, 0));\n jButtonBinaryProduct.setMaximumSize(new java.awt.Dimension(20, 28));\n jButtonBinaryProduct.setMinimumSize(new java.awt.Dimension(24, 24));\n jButtonBinaryProduct.setPreferredSize(new java.awt.Dimension(24, 24));\n jButtonBinaryProduct.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButtonBinaryProductActionPerformed(evt);\n }\n });\n jPanelImageBinary.add(jButtonBinaryProduct, new java.awt.GridBagConstraints());\n\n jSliderBinaryOperations.setPreferredSize(new java.awt.Dimension(150, 29));\n jSliderBinaryOperations.addChangeListener(new javax.swing.event.ChangeListener() {\n public void stateChanged(javax.swing.event.ChangeEvent evt) {\n jSliderBinaryOperationsStateChanged(evt);\n }\n });\n jSliderBinaryOperations.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n jSliderBinaryOperationsFocusGained(evt);\n }\n });\n jSliderBinaryOperations.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseExited(java.awt.event.MouseEvent evt) {\n jSliderBinaryOperationsMouseExited(evt);\n }\n });\n jPanelImageBinary.add(jSliderBinaryOperations, new java.awt.GridBagConstraints());\n\n jToolBarImage.add(jPanelImageBinary);\n\n jPanelUmbralization.setBorder(javax.swing.BorderFactory.createTitledBorder(\"Umbralizacion\"));\n jPanelUmbralization.setDoubleBuffered(false);\n jPanelUmbralization.setEnabled(false);\n jPanelUmbralization.setLayout(new java.awt.GridLayout(1, 0));\n\n jSliderUmbralization.addChangeListener(new javax.swing.event.ChangeListener() {\n public void stateChanged(javax.swing.event.ChangeEvent evt) {\n jSliderUmbralizationStateChanged(evt);\n }\n });\n jSliderUmbralization.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n jSliderUmbralizationFocusGained(evt);\n }\n public void focusLost(java.awt.event.FocusEvent evt) {\n jSliderUmbralizationFocusLost(evt);\n }\n });\n jPanelUmbralization.add(jSliderUmbralization);\n\n jToolBarImage.add(jPanelUmbralization);\n\n jPanelCenter.add(jToolBarImage, java.awt.BorderLayout.PAGE_END);\n\n getContentPane().add(jPanelCenter, java.awt.BorderLayout.CENTER);\n\n jPanelStatusBar.setLayout(new java.awt.BorderLayout());\n\n jToolBarImageRotation.setRollover(true);\n\n jPanelImageRotate.setBorder(javax.swing.BorderFactory.createTitledBorder(\"Rotación\"));\n jPanelImageRotate.setPreferredSize(new java.awt.Dimension(300, 62));\n jPanelImageRotate.setLayout(new java.awt.GridLayout(1, 4));\n\n jSliderRotate.setMaximum(360);\n jSliderRotate.setMinorTickSpacing(90);\n jSliderRotate.setPaintTicks(true);\n jSliderRotate.setValue(0);\n jSliderRotate.addChangeListener(new javax.swing.event.ChangeListener() {\n public void stateChanged(javax.swing.event.ChangeEvent evt) {\n jSliderRotateStateChanged(evt);\n }\n });\n jSliderRotate.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n jSliderRotateFocusGained(evt);\n }\n });\n jPanelImageRotate.add(jSliderRotate);\n\n jButtonRotate90.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/sm/images/icon_rotate_90.png\"))); // NOI18N\n jButtonRotate90.setToolTipText(\"90 Grados\");\n jButtonRotate90.setFocusable(false);\n jButtonRotate90.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);\n jButtonRotate90.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);\n jButtonRotate90.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButtonRotate90ActionPerformed(evt);\n }\n });\n jPanelImageRotate.add(jButtonRotate90);\n\n jButton180.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/sm/images/icon_rotate_180.png\"))); // NOI18N\n jButton180.setToolTipText(\"180 Grados\");\n jButton180.setFocusable(false);\n jButton180.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);\n jButton180.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);\n jButton180.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton180ActionPerformed(evt);\n }\n });\n jPanelImageRotate.add(jButton180);\n\n jButtonRotate270.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/sm/images/icon_rotate_270.png\"))); // NOI18N\n jButtonRotate270.setToolTipText(\"270 Grados\");\n jButtonRotate270.setFocusable(false);\n jButtonRotate270.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);\n jButtonRotate270.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);\n jButtonRotate270.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButtonRotate270ActionPerformed(evt);\n }\n });\n jPanelImageRotate.add(jButtonRotate270);\n\n jToolBarImageRotation.add(jPanelImageRotate);\n\n jPanelZoom.setBorder(javax.swing.BorderFactory.createTitledBorder(\"Escala\"));\n jPanelZoom.setLayout(new java.awt.GridLayout(1, 0));\n\n jButtonZoomMinus.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/sm/images/icon_zoom_minus.png\"))); // NOI18N\n jButtonZoomMinus.setToolTipText(\"Reducir\");\n jButtonZoomMinus.setFocusable(false);\n jButtonZoomMinus.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);\n jButtonZoomMinus.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);\n jButtonZoomMinus.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButtonZoomMinusActionPerformed(evt);\n }\n });\n jPanelZoom.add(jButtonZoomMinus);\n\n jButtonZoomPlus.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/sm/images/icon_zoom_plus.png\"))); // NOI18N\n jButtonZoomPlus.setToolTipText(\"Ampliar\");\n jButtonZoomPlus.setFocusable(false);\n jButtonZoomPlus.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);\n jButtonZoomPlus.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);\n jButtonZoomPlus.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButtonZoomPlusActionPerformed(evt);\n }\n });\n jPanelZoom.add(jButtonZoomPlus);\n\n jToolBarImageRotation.add(jPanelZoom);\n\n jPanelStatusBar.add(jToolBarImageRotation, java.awt.BorderLayout.NORTH);\n\n jStatusBarTool.setText(\"Barra Estado\");\n jStatusBarTool.setBorder(javax.swing.BorderFactory.createEtchedBorder());\n jPanelStatusBar.add(jStatusBarTool, java.awt.BorderLayout.WEST);\n\n jPanelCursorAndColor.setLayout(new java.awt.BorderLayout());\n\n jStatusBarCursor.setText(\"(x,y)\");\n jStatusBarCursor.setBorder(javax.swing.BorderFactory.createEtchedBorder());\n jPanelCursorAndColor.add(jStatusBarCursor, java.awt.BorderLayout.WEST);\n\n jStatusBarColor.setText(\"RGB\");\n jStatusBarColor.setOpaque(true);\n jPanelCursorAndColor.add(jStatusBarColor, java.awt.BorderLayout.EAST);\n\n jPanelStatusBar.add(jPanelCursorAndColor, java.awt.BorderLayout.EAST);\n\n getContentPane().add(jPanelStatusBar, java.awt.BorderLayout.SOUTH);\n\n jMenuFile.setText(\"Archivo\");\n\n jMenuItemNew.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_N, java.awt.event.InputEvent.META_MASK));\n jMenuItemNew.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/sm/images/icon_new.png\"))); // NOI18N\n jMenuItemNew.setText(\"Nuevo\");\n jMenuItemNew.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jMenuItemNewActionPerformed(evt);\n }\n });\n jMenuFile.add(jMenuItemNew);\n\n jMenuOpen.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/sm/images/icon_open.png\"))); // NOI18N\n jMenuOpen.setText(\"Abrir\");\n jMenuOpen.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jMenuOpenActionPerformed(evt);\n }\n });\n jMenuFile.add(jMenuOpen);\n\n jMenuSave.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_S, java.awt.event.InputEvent.META_MASK));\n jMenuSave.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/sm/images/icon_save.png\"))); // NOI18N\n jMenuSave.setText(\"Guardar\");\n jMenuSave.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jMenuSaveActionPerformed(evt);\n }\n });\n jMenuFile.add(jMenuSave);\n jMenuFile.add(jSeparator1);\n\n jMenuItemExit.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/sm/images/icon_exit.png\"))); // NOI18N\n jMenuItemExit.setText(\"Salir\");\n jMenuItemExit.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jMenuItemExitActionPerformed(evt);\n }\n });\n jMenuFile.add(jMenuItemExit);\n\n jMenuBar.add(jMenuFile);\n\n jMenuEdit.setText(\"Editar\");\n\n jMenuItemCut.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_X, java.awt.event.InputEvent.META_MASK));\n jMenuItemCut.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/sm/images/icon_cut.png\"))); // NOI18N\n jMenuItemCut.setText(\"Cortar\");\n jMenuItemCut.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jMenuItemCutActionPerformed(evt);\n }\n });\n jMenuEdit.add(jMenuItemCut);\n\n jMenuItemCopy.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_C, java.awt.event.InputEvent.META_MASK));\n jMenuItemCopy.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/sm/images/icon_copy.png\"))); // NOI18N\n jMenuItemCopy.setText(\"Copiar\");\n jMenuItemCopy.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jMenuItemCopyActionPerformed(evt);\n }\n });\n jMenuEdit.add(jMenuItemCopy);\n\n jMenuItemPaste.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_V, java.awt.event.InputEvent.META_MASK));\n jMenuItemPaste.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/sm/images/icon_paste.png\"))); // NOI18N\n jMenuItemPaste.setText(\"Pegar\");\n jMenuItemPaste.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jMenuItemPasteActionPerformed(evt);\n }\n });\n jMenuEdit.add(jMenuItemPaste);\n\n jMenuBar.add(jMenuEdit);\n\n jMenuView.setText(\"Ver\");\n\n jCheckBoxMenuItemToolBar.setSelected(true);\n jCheckBoxMenuItemToolBar.setText(\"Barra de herramientas\");\n jCheckBoxMenuItemToolBar.setToolTipText(\"\");\n jCheckBoxMenuItemToolBar.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jCheckBoxMenuItemToolBarActionPerformed(evt);\n }\n });\n jMenuView.add(jCheckBoxMenuItemToolBar);\n\n jCheckBoxMenuItemToolBarImageOperations.setSelected(true);\n jCheckBoxMenuItemToolBarImageOperations.setText(\"Barra de imagen\");\n jCheckBoxMenuItemToolBarImageOperations.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jCheckBoxMenuItemToolBarImageOperationsActionPerformed(evt);\n }\n });\n jMenuView.add(jCheckBoxMenuItemToolBarImageOperations);\n\n jCheckBoxMenuItemToolBarImageRotation.setSelected(true);\n jCheckBoxMenuItemToolBarImageRotation.setText(\"Barra de rotacion y escalado\");\n jCheckBoxMenuItemToolBarImageRotation.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jCheckBoxMenuItemToolBarImageRotationActionPerformed(evt);\n }\n });\n jMenuView.add(jCheckBoxMenuItemToolBarImageRotation);\n\n jCheckBoxMenuItemStatusBar.setSelected(true);\n jCheckBoxMenuItemStatusBar.setText(\"Barra de estado\");\n jCheckBoxMenuItemStatusBar.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jCheckBoxMenuItemStatusBarActionPerformed(evt);\n }\n });\n jMenuView.add(jCheckBoxMenuItemStatusBar);\n\n jMenuBar.add(jMenuView);\n\n jMenuImage.setText(\"Imagen\");\n\n jMenuItemChangeSize.setText(\"Cambiar tamaño\");\n jMenuItemChangeSize.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jMenuItemChangeSizeActionPerformed(evt);\n }\n });\n jMenuImage.add(jMenuItemChangeSize);\n\n jMenuItemDuplicateImage.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/sm/images/icon_duplicate.png\"))); // NOI18N\n jMenuItemDuplicateImage.setText(\"Duplicar imagen\");\n jMenuItemDuplicateImage.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jMenuItemDuplicateImageActionPerformed(evt);\n }\n });\n jMenuImage.add(jMenuItemDuplicateImage);\n\n jMenuItemHistogram.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/sm/images/icon_histogram.png\"))); // NOI18N\n jMenuItemHistogram.setText(\"Histograma\");\n jMenuItemHistogram.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jMenuItemHistogramActionPerformed(evt);\n }\n });\n jMenuImage.add(jMenuItemHistogram);\n\n jMenuBar.add(jMenuImage);\n\n jMenuHelp.setText(\"Ayuda\");\n\n jMenuItemHelpAbout.setText(\"Acerca de...\");\n jMenuItemHelpAbout.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jMenuItemHelpAboutActionPerformed(evt);\n }\n });\n jMenuHelp.add(jMenuItemHelpAbout);\n\n jMenuBar.add(jMenuHelp);\n\n setJMenuBar(jMenuBar);\n\n pack();\n }", "public void init()\n {\n buildUI(getContentPane());\n }", "private void setUpGUI() {\n \n removePrecursorPeakCombo.setRenderer(new com.compomics.util.gui.renderers.AlignedListCellRenderer(SwingConstants.CENTER));\n enzymeTypeCmb.setRenderer(new com.compomics.util.gui.renderers.AlignedListCellRenderer(SwingConstants.CENTER));\n useFlankingCmb.setRenderer(new com.compomics.util.gui.renderers.AlignedListCellRenderer(SwingConstants.CENTER));\n removePrecursorPeakCombo.setRenderer(new com.compomics.util.gui.renderers.AlignedListCellRenderer(SwingConstants.CENTER));\n monoPrecursorCmb.setRenderer(new com.compomics.util.gui.renderers.AlignedListCellRenderer(SwingConstants.CENTER));\n peptideListCmb.setRenderer(new com.compomics.util.gui.renderers.AlignedListCellRenderer(SwingConstants.CENTER));\n decoyFormatCombo.setRenderer(new com.compomics.util.gui.renderers.AlignedListCellRenderer(SwingConstants.CENTER));\n keepTerminalAaCombo.setRenderer(new com.compomics.util.gui.renderers.AlignedListCellRenderer(SwingConstants.CENTER));\n removeMethionineCmb.setRenderer(new com.compomics.util.gui.renderers.AlignedListCellRenderer(SwingConstants.CENTER));\n exactPvalueCombo.setRenderer(new com.compomics.util.gui.renderers.AlignedListCellRenderer(SwingConstants.CENTER));\n spScoreCombo.setRenderer(new com.compomics.util.gui.renderers.AlignedListCellRenderer(SwingConstants.CENTER));\n chargesCombo.setRenderer(new com.compomics.util.gui.renderers.AlignedListCellRenderer(SwingConstants.CENTER));\n useNeutralLossCmb.setRenderer(new com.compomics.util.gui.renderers.AlignedListCellRenderer(SwingConstants.CENTER));\n outputFormatCombo.setRenderer(new com.compomics.util.gui.renderers.AlignedListCellRenderer(SwingConstants.CENTER));\n removeTempFoldersCmb.setRenderer(new com.compomics.util.gui.renderers.AlignedListCellRenderer(SwingConstants.CENTER));\n \n minPepLengthTxt.setEditable(editable);\n minPepLengthTxt.setEnabled(editable);\n maxPepLengthTxt.setEditable(editable);\n maxPepLengthTxt.setEnabled(editable);\n minPrecursorMassTxt.setEditable(editable);\n minPrecursorMassTxt.setEnabled(editable);\n maxPrecursorMassTxt.setEditable(editable);\n maxPrecursorMassTxt.setEnabled(editable);\n monoPrecursorCmb.setEnabled(editable);\n removeMethionineCmb.setEnabled(editable);\n //minPtmsPerPeptideTxt.setEditable(editable);\n //minPtmsPerPeptideTxt.setEnabled(editable);\n maxPtmsPerPeptideTxt.setEditable(editable);\n maxPtmsPerPeptideTxt.setEnabled(editable);\n maxVariablePtmsPerTypeTxt.setEditable(editable);\n maxVariablePtmsPerTypeTxt.setEnabled(editable);\n enzymeTypeCmb.setEnabled(editable);\n peptideListCmb.setEnabled(editable);\n decoyFormatCombo.setEnabled(editable);\n keepTerminalAaCombo.setEnabled(editable);\n decoySeedTxt.setEditable(editable);\n decoySeedTxt.setEnabled(editable);\n removeTempFoldersCmb.setEnabled(editable);\n exactPvalueCombo.setEnabled(editable);\n spScoreCombo.setEnabled(editable);\n minSpectrumMzTxt.setEditable(editable);\n minSpectrumMzTxt.setEnabled(editable);\n maxSpectrumMzTxt.setEditable(editable);\n maxSpectrumMzTxt.setEnabled(editable);\n minPeaksTxt.setEditable(editable);\n minPeaksTxt.setEnabled(editable);\n chargesCombo.setEnabled(editable);\n removePrecursorPeakCombo.setEnabled(editable);\n removePrecursorPeakToleranceTxt.setEditable(editable);\n removePrecursorPeakToleranceTxt.setEnabled(editable);\n useFlankingCmb.setEnabled(editable);\n useNeutralLossCmb.setEnabled(editable);\n mzBinWidthTxt.setEditable(editable);\n mzBinWidthTxt.setEnabled(editable);\n mzBinOffsetTxt.setEditable(editable);\n mzBinOffsetTxt.setEnabled(editable);\n numberMatchesTxt.setEditable(editable);\n numberMatchesTxt.setEnabled(editable);\n outputFormatCombo.setEnabled(editable);\n \n }", "private void createWidgets() {\n\t\tgrid = new GridPane();\n\t\ttxtNickname = new TextField();\n\t\ttxtPort = new TextField();\n\t\ttxtAdress = new TextField();\n\n\t\tlblNick = new Label(\"Nickname\");\n\t\tlblNickTaken = new Label();\n\t\tlblPort = new Label(\"Port\");\n\t\tlblAdress = new Label(\"Adress\");\n\t\tlblCardDesign = new Label(\"Carddesign\");\n\n\t\tbtnLogin = new Button(\"\");\n\t\timageStart = new Image(BTNSTARTWOOD, 85, 35, true, true);\n\t\timvStart = new ImageView();\n\n\t\tcardDesignOptions = FXCollections.observableArrayList(\n\t\t\t\t\"original design\", \"pirate design\", \"graveyard design\");\n\t\tcomboBoxCardDesign = new ComboBox<String>(cardDesignOptions);\n\n\t\tcomboBoxCardDesign\n\t\t\t\t.setCellFactory(new Callback<ListView<String>, ListCell<String>>() {\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic ListCell<String> call(ListView<String> list) {\n\t\t\t\t\t\treturn new ExtCell();\n\t\t\t\t\t}\n\n\t\t\t\t});\n\t}", "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 GraphicUI() {\n initComponents();\n jPanelAddr.setVisible(false);\n jButtonDBToAddr.setVisible(false);\n jFrameMap.setVisible(false);\n\n selectedFormat = 0;\n quickSearch = false;\n \ttextFieldDefaults = setFieldDefaults();\n \ttextFieldCurrents = setFieldDefaults();;\n\n }", "private void initComponentsCustom() {\n SGuiUtils.setWindowBounds(this, 480, 300);\n\n moTextUnitSymbol.setTextSettings(jlUnitSymbol.getText(), 15, 1);\n moTextUnitName.setTextSettings(jlName.getText(), 150, 1);\n moTextShortName.setTextSettings(SGuiUtils.getLabelName(jlAnalysisShortName.getText()), 10, 1);\n moTextName.setTextSettings(SGuiUtils.getLabelName(jlName.getText()), 100, 1);\n moKeyAnalysisType.setKeySettings(miClient, SGuiUtils.getLabelName(jlAnalysisType), true);\n\n moFields.addField(moTextUnitSymbol);\n moFields.addField(moTextUnitName);\n \n moFields.addField(moTextShortName);\n moFields.addField(moTextName);\n \n moFields.addField(moKeyAnalysisType);\n\n moFields.setFormButton(jbSave);\n }", "private void colorPickerHander() {\n\t\tboolean validvalues = true;\n\t\tHBox n0000 = (HBox) uicontrols.getChildren().get(5);\n\t\tTextField t0000 = (TextField) n0000.getChildren().get(1);\n\t\tLabel l0000 = (Label) n0000.getChildren().get(3);\n\t\tString txt = t0000.getText();\n\t\tString[] nums = txt.split(\",\");\n\t\tif (nums.length != 4) {\n\t\t\tvalidvalues = false;\n\t\t\tGUIerrorout = new Alert(AlertType.ERROR, \"Invalid Color Format!\\nFormat: <0-255>,<0-255>,<0-255>,<0-1> \\n (red),(green),(blue),(alpha)\");\n\t\t\tGUIerrorout.showAndWait();\n\t\t}\n\t\tif (validvalues) {\n\t\t\tint[] colorvalues = new int[3];\n\t\t\tdouble alphavalue = 1.0;\n\t\t\ttry {\n\t\t\t\tfor(int x = 0; x < 3; x++) {\n\t\t\t\t\tcolorvalues[x] = Integer.parseInt(nums[x]);\n\t\t\t\t}\n\t\t\t\talphavalue = Double.parseDouble(nums[3]);\n\t\t\t} catch(Exception e) {\n\t\t\t\tvalidvalues = false;\n\t\t\t\tGUIerrorout = new Alert(AlertType.ERROR, \"Invalid Color Format!\\nFormat: <0-255>,<0-255>,<0-255>,<0-1> \\n (red),(green),(blue),(alpha)\");\n\t\t\t\tGUIerrorout.showAndWait();\n\t\t\t}\n\t\t\tif (alphavalue <= 1.0 && alphavalue >= 0.0 && colorvalues[0] >= 0 && colorvalues[0] < 256 && colorvalues[1] >= 0 && colorvalues[1] < 256 && colorvalues[2] >= 0 && colorvalues[2] < 256){\n\t\t\t\tif (validvalues) {\n\t\t\t\t\tl0000.setTextFill(Color.rgb(colorvalues[0],colorvalues[1],colorvalues[2],alphavalue));\n\t\t\t\t\tusercolors[colorSetterId] = Color.rgb(colorvalues[0],colorvalues[1],colorvalues[2],alphavalue);\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tGUIerrorout = new Alert(AlertType.ERROR, \"Invalid Color Format!\\nFormat: <0-255>,<0-255>,<0-255>,<0-1> \\n (red),(green),(blue),(alpha)\");\n\t\t\t\tGUIerrorout.showAndWait();\n\t\t\t}\n\t\t}\n\t}", "public void init() {\n\t\t\n\t\tmarkerCircle.setFilled(true);\n\t\t\n\t\tstartButton = new JButton(\"Start\"); \n\t\tadd(startButton, EAST);\n\t\t\n\t\tstopButton = new JButton(\"Stop\");\n\t\tadd(stopButton, EAST);\n\t\t\n\t\tflipDirection = new JButton(\"Change rotation\");\n\t\tadd(flipDirection, EAST);\n\t\t\n\t\tdoneWithFigure = new JButton(\"Next Figure\");\n\t\tadd(doneWithFigure, SOUTH);\n\t\t\n\t\tremoveLast = new JButton(\"Remove Figure\");\n\t\tadd(removeLast, SOUTH);\n\t\t\n\t\tclear = new JButton(\"Clear\");\n\t\tadd(clear, SOUTH);\n\t\t\n\t\tadd(new JLabel(\"Speed\"), EAST);\n\t\tspeedSlider = new JSlider(MIN_BREAK, MAX_BREAK, TIME_FACTOR);\n\t\tspeedSlider.addChangeListener(this);\n\t\tadd(speedSlider, EAST);\n\t\t\n\t\tadd(new JLabel(\"Red\"), EAST);\n\t\tredSlider = new JSlider(MIN_RGB, MAX_RGB, MIN_RGB);\n\t\tredSlider.addChangeListener(this);\n\t\tadd(redSlider, EAST);\n\t\t\n\t\tadd(new JLabel(\"Green\"), EAST);\n\t\tgreenSlider = new JSlider(MIN_RGB, MAX_RGB, MIN_RGB);\n\t\tgreenSlider.addChangeListener(this);\n\t\tadd(greenSlider, EAST);\n\t\t\n\t\tadd(new JLabel(\"Blue\"), EAST);\n\t\tblueSlider = new JSlider(MIN_RGB, MAX_RGB, MIN_RGB);\n\t\tblueSlider.addChangeListener(this);\n\t\tadd(blueSlider, EAST);\n\t\t\n\t\tJLabel spacer = new JLabel(\"\");\n\t\tadd(spacer, EAST);\n\t\t\n\t\tcolorBox = new GRect(0,0,COLOR_BOX_SIZE,COLOR_BOX_SIZE);\n\t\tcolorBox.setFilled(true);\n\t\tadd(colorBox);\n\t\t\n\t\tcenter = new JButton(\"Center Figure\");\n\t\tadd(center, EAST);\n\t\t\n\t\tliftPen = new JButton(\"Toggle Pen\");\n\t\tadd(liftPen, EAST);\n\t\t\n\t\tmakeItCool = new JButton(\"Make it Cool\");\n\t\tadd(makeItCool, SOUTH);\n\t\t\n\t\t\n\t\taddMouseListeners();\n\t\taddActionListeners();\n\t}", "private void init() {\r\n\t\tthis.setBackground(Color.decode(\"#c5dfed\"));\r\n\r\n\t\tthis.initPanelButtons();\r\n\r\n\t\tUtilityClass.addBorder(this, 20, 20, 20, 20);\r\n\t\t\r\n\t\tthis.title.setFont(ConstantView.FONT_TITLE_CRUD);\r\n\t\tthis.title.setHorizontalAlignment(JLabel.CENTER);\r\n\t\tthis.add(title, BorderLayout.NORTH);\r\n\t\t\r\n\t\tthis.add(panelButtons, BorderLayout.SOUTH);\r\n\t\tthis.jPanelFormClient.setOpaque(false);\r\n\t\tthis.add(jPanelFormClient, BorderLayout.CENTER);\r\n\t}", "public AppColorido() {\n initComponents();\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 }", "@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 txtRed = new colorchooser.JColorNumberFieldRed();\n jLabel2 = new javax.swing.JLabel();\n txtGreen = new colorchooser.JColorNumberFieldGreen();\n jLabel3 = new javax.swing.JLabel();\n txtBlue = new colorchooser.JColorNumberFieldBlue();\n\n setLayout(new java.awt.GridLayout(3, 2, 5, 5));\n\n jLabel1.setText(\"Red\");\n add(jLabel1);\n\n txtRed.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n txtRedActionPerformed(evt);\n }\n });\n add(txtRed);\n\n jLabel2.setText(\"Green\");\n add(jLabel2);\n\n txtGreen.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n txtGreenActionPerformed(evt);\n }\n });\n add(txtGreen);\n\n jLabel3.setText(\"Blue\");\n add(jLabel3);\n\n txtBlue.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n txtBlueActionPerformed(evt);\n }\n });\n add(txtBlue);\n }", "public void initGui() {\n setOpaque(true);\n // Setter utgangsfargen til ruten\n if (this.farge.equals(\"hvit\")) setBackground(GUISettings.Hvit());\n if (this.farge.equals(\"sort\")) setBackground(GUISettings.Sort());\n if (this.farge.equals(\"roed\")) setBackground(GUISettings.Roed());\n if (this.farge.equals(\"blaa\")) setBackground(GUISettings.Blaa());\n }", "public void init()\n {\n setBackground(Color.YELLOW);\n setForeground(Color.RED);\n }", "private void init() {\n\t\tthis.setDefaultCloseOperation(JDialog.DISPOSE_ON_CLOSE);\n\t\tthis.setSize(350, 300);\n\t\tthis.setResizable(false);\n\t\tlbl1.setFont(new Font(\"微软雅黑\",Font.PLAIN,14));\n\t\tlbl2.setFont(new Font(\"微软雅黑\",Font.PLAIN,14));\n\t\tlbl3.setFont(new Font(\"微软雅黑\",Font.PLAIN,14));\n\t\tlbl4.setFont(new Font(\"微软雅黑\",Font.PLAIN,14));\n\t\tlbl5.setFont(new Font(\"微软雅黑\",Font.PLAIN,14));\n\t\tlbl6.setFont(new Font(\"微软雅黑\",Font.PLAIN,14));\n\t\tlbl7.setFont(new Font(\"微软雅黑\",Font.PLAIN,14));\n\t\tbtncanel.setFont(new Font(\"微软雅黑\",Font.PLAIN,14));\n\t\tbtnsave.setFont(new Font(\"微软雅黑\",Font.PLAIN,14));\n\t\t\n\t\tpnlInfo.setBounds(10,5,320,220);\n//\t\tpnlInfo.setBackground(Color.cyan);\n//\t\tpnlMain.setBackground(Color.green);\n//\t\tbtnsave.setBackground(Color.pink);\n//\t\tbtncanel.setBackground(Color.yellow);\n\t\tbtnsave.setBounds(120, 230, 70, 25);\n\t\tbtncanel.setBounds(210, 230, 70, 25);\n\t\t\n\t\tbtncanel.addActionListener(new AddRederTypeFrame_btncanel_ActionListener(this));\n\t\tbtnsave.addActionListener(new AddRederTypeFrame_btnsave_ActionListener(this));\n\t\t\n//\t\tpnlInfo.setBorder(BorderFactory.createMatteBorder(1, 5, 1, 1, Color.cyan));\n\t\t\n\t\tpnlInfo.add(lbl1);\n\t\tpnlInfo.add(txtname);\n\t\tpnlInfo.add(lbl2);\n\t\tpnlInfo.add(txtcount);\n\t\tpnlInfo.add(lbl3);\n\t\tpnlInfo.add(txtdate);\n\t\tpnlInfo.add(lbl4);\n\t\tpnlInfo.add(txtmtp);\n\t\tpnlInfo.add(lbl5);\n\t\tpnlInfo.add(txtstcharge);\n\t\tpnlInfo.add(lbl6);\n\t\tpnlInfo.add(txtoutcharge);\n\t\tpnlInfo.add(lbl7);\n\t\tpnlInfo.add(txtqty);\n\t\t\n\t\tpnlMain.add(pnlInfo);\n\t\tpnlMain.add(btnsave);\n\t\tpnlMain.add(btncanel);\n\t\tthis.add(pnlMain);\n\t\tthis.setTitle(\"新增用户\");\n\t\tGlobal.setCenterByWindow(this);\n\t\tthis.setVisible(true);\n\t}", "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}", "private void setupUI() {\n rbMale = findViewById(R.id.rb_male);\n rbFemale = findViewById(R.id.rb_female);\n spnStatus = findViewById(R.id.spn_status_create);\n rgGender = findViewById(R.id.rd_gender_register);\n btnCreateUser = findViewById(R.id.btn_create_user);\n edtLastName = findViewById(R.id.edt_last_name_create);\n edtEnterPin = findViewById(R.id.edt_enter_pin_create);\n edtFirstName = findViewById(R.id.edt_first_name_create);\n spnBloodGroup = findViewById(R.id.spn_blood_group_create);\n edtConfirmPin = findViewById(R.id.edt_confirm_pin_create);\n edtDateOfBirth = findViewById(R.id.edt_date_of_birth_create);\n edtMobileNumber = findViewById(R.id.edt_mobile_number_create);\n }", "private void initComponents() {\n\t\t\n\t}", "private void initComponents() {\n\t\t\n\t}", "private void initializeColorPanels() {\n\t\tupperColorPanel = new JPanel();\n\t\tlowerColorPanel = new JPanel();\n\t\t\n\t\tupperColorPanel.setSize(300, 60);\n\t\tlowerColorPanel.setSize(300, 60);\n\t\t\n\t\tupperColorPanel.setLocation(200, 100);\n\t\tlowerColorPanel.setLocation(200, 160);\n\t\t\n\t\tupperColorPanel.setLayout(new GridLayout(2,5));\n\t\tlowerColorPanel.setLayout(new GridLayout(2,5));\n\t\t\n\t\tfor (int i = 0; i < Q.colors.length; i++) {\n\t\t\tJTextField color = new JTextField();\n\t\t\tcolor.setName(COLOR_TEXT_FIELD_TITLES[i]);\n\t\t\tcolor.setText(\"P\" + (i + 1));\n\t\t\tcolor.setBackground(Q.colors[i]);\n\t\t\tcolor.setEnabled(false);\n\t\t\t\n\t\t\tJTextField red = new JTextField(\"\" + Q.colors[i].getRed());\n\t\t\tred.setName(RED_TEXT_FIELD_TITLES[i]);\n\t\t\tJTextField green = new JTextField(\"\" + Q.colors[i].getGreen());\n\t\t\tgreen.setName(GREEN_TEXT_FIELD_TITLES[i]);\n\t\t\tJTextField blue = new JTextField(\"\" + Q.colors[i].getBlue());\n\t\t\tblue.setName(BLUE_TEXT_FIELD_TITLES[i]);\n\t\t\t\n\t\t\t\n\t\t\tred.addActionListener(this);\n\t\t\tgreen.addActionListener(this);\n\t\t\tblue.addActionListener(this);\n\t\t\t\n\t\t\tJComboBox box = new JComboBox(playerTypeNames);\n\t\t\tbox.setName(COMBO_BOX_TITLES[i]);\n\t\t\tbox.setSelectedIndex(Q.playerTypes[i]);\n\t\t\tbox.addItemListener(this);\n\t\t\t\n\t\t\treds.add(red);\n\t\t\tgreens.add(green);\n\t\t\tblues.add(blue);\n\t\t\tshowColor.add(color);\n\t\t\tboxes.add(box);\n\t\t\t\n\t\t\tJPanel playerPanel = new JPanel();\n\t\t\tplayerPanel.setLayout(new GridLayout(1,2));\n\t\t\tJPanel rgbPanel = new JPanel();\n\t\t\trgbPanel.setLayout(new GridLayout(1,3));\n\t\t\t\n\t\t\tif (i < 2) {\n\t\t\t\tplayerPanel.add(color);\n\t\t\t\tplayerPanel.add(box);\n\t\t\t\trgbPanel.add(red);\n\t\t\t\trgbPanel.add(green);\n\t\t\t\trgbPanel.add(blue);\n\t\t\t\tupperColorPanel.add(playerPanel);\n\t\t\t\tupperColorPanel.add(rgbPanel);\n\t\t\t}\n\t\t\telse {\n\t\t\t\tplayerPanel.add(color);\n\t\t\t\tplayerPanel.add(box);\n\t\t\t\trgbPanel.add(red);\n\t\t\t\trgbPanel.add(green);\n\t\t\t\trgbPanel.add(blue);\n\t\t\t\tlowerColorPanel.add(playerPanel);\n\t\t\t\tlowerColorPanel.add(rgbPanel);\n\t\t\t\n\t\t\t}\n\t\t\t\n\t\t}\n\t\t\n\t\tadd(upperColorPanel);\n\t\tif (Q.players == 4) {\n\t\t\tadd(lowerColorPanel);\n\t\t}\n\t\n\t}", "public GUI() {\n\t\t// sets up file choosers\n\t\tsetFileChoosers();\n\t\t// initialises JFrame\n\t\tsetContent();\n\t\t// sets default window attributes\n\t\tthis.setDefaultAttributes();\n\t\t// instantiates controller object\n\t\tsetController();\n\t\t// sets toolbar to go over frame\n\t\tJPopupMenu.setDefaultLightWeightPopupEnabled(false);\n\t\tToolTipManager.sharedInstance().setLightWeightPopupEnabled(false);\n\t\t// sets antialiasing\n\t\t((Graphics2D) this.getGraphics()).setRenderingHint(RenderingHints.KEY_TEXT_ANTIALIASING,\n\t\t\t\tRenderingHints.VALUE_TEXT_ANTIALIAS_ON);\n\t}", "private void initUI() {\n }", "private void initComponents() {\n \n \tnumRobotLabel = new javax.swing.JLabel();\n jLabel7 = new javax.swing.JLabel();\n jLabel1 = new javax.swing.JLabel();\n xPosField = new javax.swing.JTextField();\n jLabel2 = new javax.swing.JLabel();\n yPosField = new javax.swing.JTextField();\n jLabel3 = new javax.swing.JLabel();\n numBeepersField = new javax.swing.JTextField();\n robotColorLabel = new javax.swing.JLabel();\n colorSelectButton = new javax.swing.JButton();\n jLabel4 = new javax.swing.JLabel();\n facingComboBox = new javax.swing.JComboBox();\n jLabel5 = new javax.swing.JLabel();\n classComboBox = new javax.swing.JComboBox();\n jLabel6 = new javax.swing.JLabel();\n newRobot = new javax.swing.JButton();\n colorLabel = new javax.swing.JLabel();\n\n setLayout(new java.awt.GridLayout(10, 2));\n\n numRobotLabel.setText(\"Options for Robot #\");\n add(numRobotLabel);\n\n add(jLabel7);\n\n jLabel1.setText(\"x position:\");\n add(jLabel1);\n\n xPosField.setColumns(5);\n xPosField.setText(\"1\");\n add(xPosField);\n\n jLabel2.setText(\"y position:\");\n add(jLabel2);\n\n yPosField.setColumns(5);\n yPosField.setText(\"1\");\n add(yPosField);\n\n jLabel3.setText(\"number of beepers:\");\n add(jLabel3);\n\n numBeepersField.setColumns(5);\n numBeepersField.setText(\"0\");\n add(numBeepersField);\n\n robotColorLabel.setText(\"Robot color:\");\n add(robotColorLabel);\n\n colorSelectButton.setBackground(java.awt.Color.white);\n colorSelectButton.setText(\"Select a color\");\n colorSelectButton.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n colorSelectButtonActionPerformed(evt);\n }\n });\n\n add(colorSelectButton);\n\n jLabel4.setText(\"Facing (N, S, E, or W):\");\n add(jLabel4);\n\n facingComboBox.setBackground(java.awt.Color.white);\n facingComboBox.setModel(new javax.swing.DefaultComboBoxModel(new String[] { \"North\", \"South\", \"East\", \"West\" }));\n add(facingComboBox);\n\n jLabel5.setText(\"Robot Classfile:\");\n add(jLabel5);\n\n classComboBox.setBackground(java.awt.Color.white);\n classComboBox.setModel(getComboBoxModel());\n classComboBox.setActionCommand(\"\");\n classComboBox.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n classComboBoxActionPerformed(evt);\n }\n });\n\n add(classComboBox);\n\n jLabel6.setText(\"New Robot from Template (requires restart):\");\n add(jLabel6);\n\n newRobot.setBackground(java.awt.Color.white);\n newRobot.setText(\"New Robot\");\n newRobot.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n newRobotActionPerformed(evt);\n }\n });\n\n add(newRobot);\n\n add(colorLabel);\n\n }", "private void setupGUI()\n\t{\n\t\t//initializes labelNumberOfASCII and adds to frame \n\t\tlabelNumberOfASCII = new JLabel();\n\t\tlabelNumberOfASCII.setLocation(12, 8);\n\t\tlabelNumberOfASCII.setSize(191,26);\n\t\tlabelNumberOfASCII.setText(\"Number of ASCII characters used\");\n\t\tgetContentPane().add(labelNumberOfASCII);\n\t\t\n\t\t//initialized comboCharSet and adds to frame\n\t\tString comboCharSet_tmp[]={\"Small\", \"Medium\", \"Large\"};\n\t\tcomboCharSet = new JComboBox<String>(comboCharSet_tmp);\n\t\tcomboCharSet.setLocation(294, 12);\n\t\tcomboCharSet.setSize(96, 25);\n\t\tcomboCharSet.setEditable(true);\n\t\tcomboCharSet.addActionListener(this);\n\t\tgetContentPane().add(comboCharSet);\n\n\t\t//initializes labelNumberofPixels and adds to frame\n\t\tlabelNumberOfPixels = new JLabel();\n\t\tlabelNumberOfPixels.setLocation(12,28);\n\t\tlabelNumberOfPixels.setSize(240,51);\n\t\tlabelNumberOfPixels.setText(\"Number of pixels per ASCII character: \");\n\t\tgetContentPane().add(labelNumberOfPixels);\n\t\t\n\t\t//initializes comboNumberOfPixels and adds to frame\n\t\tString comboNumberOfPixels_tmp[]={\"1\",\"3\",\"5\",\"7\",\"10\"};\n\t\tcomboNumberOfPixels = new JComboBox<String>(comboNumberOfPixels_tmp);\n\t\tcomboNumberOfPixels.setLocation(294,40);\n\t\tcomboNumberOfPixels.setSize(96,25);\n\t\tcomboNumberOfPixels.setEditable(true);\n\t\tcomboNumberOfPixels.addActionListener(this);\n\t\tgetContentPane().add(comboNumberOfPixels);\n\n\t\t//initializes outputPathLabel and adds to frame\n\t\toutputPathLabel = new JLabel();\n\t\toutputPathLabel.setLocation(12, 55);\n\t\toutputPathLabel.setText(\"Output folder:\");\n\t\toutputPathLabel.setSize(218, 51);\n\t\toutputPathLabel.setVisible(true);\n\t\tgetContentPane().add(outputPathLabel);\n\n\t\t//initializes outputPathTextField and adds to frame\n\t\toutputPathTextField = new JTextField();\n\t\tString initPath;\n\t\t//sets default output to default directory, created in Main.java. looks according to operating system.\n\t\tif (OSUtils.isUnixOrLinux())\n\t\t\tinitPath = System.getProperty(\"user.home\") + \"/.picture-to-ascii/output\";\n\t\telse if (OSUtils.isWindows())\n\t\t\tinitPath = System.getProperty(\"user.home\") + \"\\\\My Documents\\\\picture-to-ascii\\\\output\";\n\t\telse\n\t\t\tinitPath = \"(output path)\";\n\t\t//if the directory failed to create for reasons other than incompatible OS, we want (output path).\n\t\tif (!new File(initPath).isDirectory())\n\t\t\tinitPath = \"(output path)\";\n\n\t\toutputPathTextField.setLocation(150, 70);\n\t\toutputPathTextField.setSize(240,25);\n\t\toutputPathTextField.setText(initPath);\n\t\tgetContentPane().add(outputPathTextField);\n\n\t\tfontSizeTextField = new JTextField();\n\t\tfontSizeTextField.setLocation(150, 100);\n\t\tfontSizeTextField.setSize(240,25);\n\t\tfontSizeTextField.setText(\"5\");\n\t\tgetContentPane().add(fontSizeTextField);\n\n\t\tfontSizeLabel = new JLabel();\n\t\tfontSizeLabel.setText(\"Font size:\");\n\t\tfontSizeLabel.setSize(125, 51);\n\t\tfontSizeLabel.setLocation(12, 85);\n\t\tfontSizeLabel.setVisible(true);\n\t\tgetContentPane().add(fontSizeLabel);\n\t}", "private void initializeViewAndControls() {\r\n txtEmail.setText(\"Email - \"+ AppConstants.ADMIN_EMAIL);\r\n txtCustomerCarePhone.setText(\"Customer Care - \"+ AppConstants.CUSTOMER_CARE_NUMBER);\r\n txtTollFreePhone.setText(\"Toll Free - \"+ AppConstants.TOLL_FREE_NUMBER);\r\n }", "private void initComponents() {\n LOOGER.info(\"Get init components\");\n this.loadButton = new JButton(\"Load\");\n this.fillButton = new JButton(\"Fill\");\n this.deleteButton = new JButton(\"Delete\");\n this.setLayout(new FlowLayout());\n LOOGER.info(\"components exit\");\n }", "public void initUI() {\n\t\tFlowLayout flow = new FlowLayout();\r\n\t\tthis.setTitle(\"来一波\");\r\n\t\tthis.setSize(960, 720);\r\n\t\tthis.setLayout(flow);\r\n\t\tthis.setLocationRelativeTo(null);\r\n\t\tthis.setDefaultCloseOperation(3);\r\n\t\t\r\n\t\t\r\n\t\tJPanel panel = new JPanel();\r\n\t\tthis.add(panel);\r\n\t\tthis.setBackground(Color.BLACK);\r\n\t\t\r\n\t\tslider1.setName(\"改变大小\");\r\n\t\tslider1.setMinorTickSpacing(20);\r\n\t\tslider1.setPaintTicks(true);\r\n\t\tslider1.setPaintLabels(true);\r\n\t\tthis.add(slider1);\r\n\t\t\r\n\t\tJButton button1 = new JButton(\"导入图片\");\r\n\t\tbutton1.setPreferredSize(new Dimension(100,30));\r\n\t\tthis.add(button1);\r\n\t\t\r\n\t\tJButton button2 = new JButton(\"热感应\");\r\n\t\tbutton2.setPreferredSize(new Dimension(100,30));\r\n\t\tthis.add(button2);\r\n\t\t\r\n\t\tJButton button3 = new JButton(\"模糊化\");\r\n\t\tbutton3.setPreferredSize(new Dimension(100,30));\r\n\t\tthis.add(button3);\r\n\t\t\r\n\t\tJButton button4 = new JButton(\"流行拼接\");\r\n\t\tbutton4.setPreferredSize(new Dimension(100,30));\r\n\t\tthis.add(button4);\r\n\t\t\r\n\t\tJButton button5 = new JButton(\"万花筒\");\r\n\t\tbutton5.setPreferredSize(new Dimension(100,30));\r\n\t\tthis.add(button5);\r\n\t\t\r\n\t\tslider2.setName(\"调整参数\");\r\n\t\tslider2.setMinorTickSpacing(20);\r\n\t\tslider2.setPaintTicks(true);\r\n\t\tslider2.setPaintLabels(true);\r\n\t\tthis.add(slider2);\r\n\t\t\r\n\t\tthis.setVisible(true);\r\n\t\t\r\n\t\tGraphics g = this.getGraphics();//传画笔的操作一定要在设置界面可见后进行\r\n\t\t\r\n\t\tDrawListener ml = new DrawListener(g,this);\r\n\t\tbutton1.addActionListener(ml);\r\n\t\tbutton2.addActionListener(ml);\r\n\t\tbutton3.addActionListener(ml);\r\n\t\tbutton4.addActionListener(ml);\r\n\t\tbutton5.addActionListener(ml);\r\n\t\tslider1.addChangeListener(ml);\r\n\t\tslider2.addChangeListener(ml);\r\n\t\t\r\n\t}", "private void init() {\n setText(\"Case Name\");\n createFieldsComp();\n GuiUtil.addSeparator(shell, SWT.HORIZONTAL);\n createBottomActionButtons();\n }", "private void init() {\n\t\tthis.setOpaque(false);\n\t\tthis.setLayout(null);\n\t\tthis.setBackground(P.INSTANCE.getBackground());\n\n\t\tJLabel registerFirstNameLabel = new JLabel(\"First name\\r\\n\");\n\t\tregisterFirstNameLabel.setBounds(447, 172, 110, 14);\n\t\tregisterFirstNameLabel.setFont(P.INSTANCE.getLabelFont());\n\t\tthis.add(registerFirstNameLabel);\n\n\t\tregisterFirstNameField = new JTextField();\n\t\tregisterFirstNameField.setBounds(447, 197, 110, 20);\n\t\tthis.add(registerFirstNameField);\n\t\tregisterFirstNameField.setColumns(10);\n\n\t\tJLabel registerLastNameLabel = new JLabel(\"Last name\\r\\n\");\n\t\tregisterLastNameLabel.setBounds(447, 228, 110, 14);\n\t\tregisterLastNameLabel.setFont(P.INSTANCE.getLabelFont());\n\t\tthis.add(registerLastNameLabel);\n\n\t\tregisterLastNameField = new JTextField();\n\t\tregisterLastNameField.setBounds(447, 253, 110, 20);\n\t\tthis.add(registerLastNameField);\n\t\tregisterLastNameField.setColumns(10);\n\n\t\tJLabel registerUserNameLabel = new JLabel(\"User name\\r\\n\");\n\t\tregisterUserNameLabel.setBounds(447, 284, 110, 14);\n\t\tregisterUserNameLabel.setFont(P.INSTANCE.getLabelFont());\n\t\tthis.add(registerUserNameLabel);\n\n\t\tregisterUserNameField = new JTextField();\n\t\tregisterUserNameField.setBounds(447, 309, 110, 20);\n\t\tthis.add(registerUserNameField);\n\t\tregisterUserNameField.setColumns(10);\n\n\t\tJLabel registerPasswordLabel = new JLabel(\"Password\");\n\t\tregisterPasswordLabel.setBounds(447, 340, 110, 14);\n\t\tregisterPasswordLabel.setFont(P.INSTANCE.getLabelFont());\n\t\tthis.add(registerPasswordLabel);\n\n\t\tregisterPassword = new JPasswordField();\n\t\tregisterPassword.setBounds(447, 365, 110, 20);\n\t\tthis.add(registerPassword);\n\n\t\tJLabel registerPasswordAgainLabel = new JLabel(\"Password again\");\n\t\tregisterPasswordAgainLabel.setBounds(447, 396, 110, 20);\n\t\tregisterPasswordAgainLabel.setFont(P.INSTANCE.getLabelFont());\n\t\tthis.add(registerPasswordAgainLabel);\n\n\t\tregisterPasswordAgainField = new JPasswordField();\n\t\tregisterPasswordAgainField.setBounds(447, 427, 110, 20);\n\t\tthis.add(registerPasswordAgainField);\n\n\t\tregisterRegisterButton = new JButton(\"Register\");\n\t\tregisterRegisterButton.setFont(P.INSTANCE.getLabelFont());\n\t\tregisterRegisterButton.setBounds(frameWidth - buttonWidth - margin, \n\t\t\t\tframeHeight - buttonHeight - 2*margin, buttonWidth, buttonHeight);\n\t\tregisterRegisterButton.addActionListener(this);\n\t\tthis.add(registerRegisterButton);\n\n\t\tregisterBackButton = new JButton(\"Back\");\n\t\tregisterBackButton.setFont(P.INSTANCE.getLabelFont());\n\t\tregisterBackButton.setBounds(margin, frameHeight - buttonHeight \n\t\t\t\t- 2*margin, buttonWidth, buttonHeight);\n\t\tregisterBackButton.addActionListener(this);\n\t\tthis.add(registerBackButton);\n\t\t\n\t\terrorLabel = new JLabel();\n\t\terrorLabel.setBounds(447, 152, 300, 14);\n\t\terrorLabel.setFont(new Font(\"Tahoma\", Font.PLAIN, 12));\n\t\terrorLabel.setForeground(Color.red);\n\t\tthis.add(errorLabel);\n\t}", "private void initUI() {\n\t\t\n\t\ttry {\n\t\t\t\n\t\t\trenderer = new LWJGLRenderer();\n\t\t\tgui = new GUI(stateWidget, renderer);\n\t\t\tthemeManager = ThemeManager.createThemeManager(StateWidget.class.getResource(\"gameui.xml\"), renderer);\n\t\t\tgui.applyTheme(themeManager);\n\t\t\t\n\t\t} catch (LWJGLException e) {\n\t\t\te.printStackTrace();\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "protected void init() {\r\n\t\tsetBackground(Color.black);\r\n\t\tsetForeground(Color.white);\r\n\t\taddMouseListener(this);\r\n\t\taddMouseMotionListener(this);\r\n\t\tcreateSelection();\r\n\t\tsel.addListener(this);\r\n\t\tcreateSection();\r\n\t\tsection.addListener(this);\r\n\t\tsetOpaque(true);\r\n\t\tremoveAll();\r\n\t}", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n jDialog1 = new javax.swing.JDialog();\n jColorChooser1 = new javax.swing.JColorChooser();\n jPanel1 = new javax.swing.JPanel();\n jPanel4 = new javax.swing.JPanel();\n jLabel1 = new javax.swing.JLabel();\n jLabel2 = new javax.swing.JLabel();\n jPanel5 = new javax.swing.JPanel();\n jLabel3 = new javax.swing.JLabel();\n jPanel6 = new javax.swing.JPanel();\n jLabel5 = new javax.swing.JLabel();\n jPanel7 = new javax.swing.JPanel();\n jLabel6 = new javax.swing.JLabel();\n jPanel8 = new javax.swing.JPanel();\n jLabel7 = new javax.swing.JLabel();\n jPanel3 = new javax.swing.JPanel();\n jLabel4 = new javax.swing.JLabel();\n jLabel8 = new javax.swing.JLabel();\n jLabel9 = new javax.swing.JLabel();\n lbl_tgl = new javax.swing.JLabel();\n jLabel11 = new javax.swing.JLabel();\n lbluser = new javax.swing.JLabel();\n jPanel19 = new javax.swing.JPanel();\n jPanel18 = new javax.swing.JPanel();\n jLabel29 = new javax.swing.JLabel();\n jLabel26 = new javax.swing.JLabel();\n jPanel11 = new javax.swing.JPanel();\n jPanel10 = new javax.swing.JPanel();\n jLabel13 = new javax.swing.JLabel();\n jLabel14 = new javax.swing.JLabel();\n jPanel12 = new javax.swing.JPanel();\n jLabel15 = new javax.swing.JLabel();\n jLabel16 = new javax.swing.JLabel();\n jPanel13 = new javax.swing.JPanel();\n jLabel17 = new javax.swing.JLabel();\n jLabel18 = new javax.swing.JLabel();\n jPanel15 = new javax.swing.JPanel();\n jLabel21 = new javax.swing.JLabel();\n jLabel22 = new javax.swing.JLabel();\n jPanel16 = new javax.swing.JPanel();\n jLabel23 = new javax.swing.JLabel();\n jLabel24 = new javax.swing.JLabel();\n jPanel2 = new javax.swing.JPanel();\n jPanel14 = new javax.swing.JPanel();\n jLabel19 = new javax.swing.JLabel();\n jLabel20 = new javax.swing.JLabel();\n jPanel17 = new javax.swing.JPanel();\n jLabel27 = new javax.swing.JLabel();\n jLabel28 = new javax.swing.JLabel();\n lbl_jam = new javax.swing.JLabel();\n\n javax.swing.GroupLayout jDialog1Layout = new javax.swing.GroupLayout(jDialog1.getContentPane());\n jDialog1.getContentPane().setLayout(jDialog1Layout);\n jDialog1Layout.setHorizontalGroup(\n jDialog1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 400, Short.MAX_VALUE)\n .addGroup(jDialog1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jDialog1Layout.createSequentialGroup()\n .addGap(0, 0, Short.MAX_VALUE)\n .addComponent(jColorChooser1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(0, 0, Short.MAX_VALUE)))\n );\n jDialog1Layout.setVerticalGroup(\n jDialog1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 300, Short.MAX_VALUE)\n .addGroup(jDialog1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jDialog1Layout.createSequentialGroup()\n .addGap(0, 0, Short.MAX_VALUE)\n .addComponent(jColorChooser1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(0, 0, Short.MAX_VALUE)))\n );\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n getContentPane().setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());\n\n jPanel1.setBackground(new java.awt.Color(255, 255, 0));\n jPanel1.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseEntered(java.awt.event.MouseEvent evt) {\n jPanel1MouseEntered(evt);\n }\n });\n\n jPanel4.setBackground(new java.awt.Color(255, 255, 0));\n jPanel4.setBorder(javax.swing.BorderFactory.createEtchedBorder());\n jPanel4.setForeground(new java.awt.Color(255, 255, 255));\n jPanel4.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseEntered(java.awt.event.MouseEvent evt) {\n jPanel4MouseEntered(evt);\n }\n public void mouseExited(java.awt.event.MouseEvent evt) {\n jPanel4MouseExited(evt);\n }\n });\n\n jLabel1.setFont(new java.awt.Font(\"Times New Roman\", 1, 18)); // NOI18N\n jLabel1.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/IconMenu/icons8-home-24.png\"))); // NOI18N\n jLabel1.setText(\"Beranda\");\n\n jLabel2.setFont(new java.awt.Font(\"Times New Roman\", 1, 18)); // NOI18N\n jLabel2.setText(\"Beranda\");\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 .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jLabel2, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n .addContainerGap())\n );\n jPanel4Layout.setVerticalGroup(\n jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel4Layout.createSequentialGroup()\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jLabel1, javax.swing.GroupLayout.PREFERRED_SIZE, 27, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jLabel2)\n .addGap(7, 7, 7))\n );\n\n jPanel5.setBackground(new java.awt.Color(255, 255, 0));\n jPanel5.setBorder(javax.swing.BorderFactory.createEtchedBorder());\n jPanel5.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseEntered(java.awt.event.MouseEvent evt) {\n jPanel5MouseEntered(evt);\n }\n public void mouseExited(java.awt.event.MouseEvent evt) {\n jPanel5MouseExited(evt);\n }\n public void mousePressed(java.awt.event.MouseEvent evt) {\n jPanel5MousePressed(evt);\n }\n });\n\n jLabel3.setFont(new java.awt.Font(\"Times New Roman\", 1, 18)); // NOI18N\n jLabel3.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/IconMenu/icons8-user-24.png\"))); // NOI18N\n jLabel3.setText(\"User\");\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 .addComponent(jLabel3, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addContainerGap())\n );\n jPanel5Layout.setVerticalGroup(\n jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel3, javax.swing.GroupLayout.DEFAULT_SIZE, 29, Short.MAX_VALUE)\n );\n\n jPanel6.setBackground(new java.awt.Color(255, 255, 0));\n jPanel6.setBorder(javax.swing.BorderFactory.createEtchedBorder());\n jPanel6.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseEntered(java.awt.event.MouseEvent evt) {\n jPanel6MouseEntered(evt);\n }\n public void mouseExited(java.awt.event.MouseEvent evt) {\n jPanel6MouseExited(evt);\n }\n });\n\n jLabel5.setFont(new java.awt.Font(\"Times New Roman\", 1, 18)); // NOI18N\n jLabel5.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/IconMenu/icons8-ticket-24.png\"))); // NOI18N\n jLabel5.setText(\"Data Tiket\");\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 .addComponent(jLabel5, javax.swing.GroupLayout.PREFERRED_SIZE, 147, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(0, 0, Short.MAX_VALUE))\n );\n jPanel6Layout.setVerticalGroup(\n jPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel6Layout.createSequentialGroup()\n .addComponent(jLabel5)\n .addGap(0, 6, Short.MAX_VALUE))\n );\n\n jPanel7.setBackground(new java.awt.Color(255, 255, 0));\n jPanel7.setBorder(javax.swing.BorderFactory.createEtchedBorder());\n jPanel7.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseEntered(java.awt.event.MouseEvent evt) {\n jPanel7MouseEntered(evt);\n }\n public void mouseExited(java.awt.event.MouseEvent evt) {\n jPanel7MouseExited(evt);\n }\n });\n\n jLabel6.setFont(new java.awt.Font(\"Times New Roman\", 1, 18)); // NOI18N\n jLabel6.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/IconMenu/icons8-money-24.png\"))); // NOI18N\n jLabel6.setText(\"Transaksi\");\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 .addGroup(jPanel7Layout.createSequentialGroup()\n .addComponent(jLabel6, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addContainerGap())\n );\n jPanel7Layout.setVerticalGroup(\n jPanel7Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel6, javax.swing.GroupLayout.DEFAULT_SIZE, 29, Short.MAX_VALUE)\n );\n\n jPanel8.setBackground(new java.awt.Color(255, 255, 0));\n jPanel8.setBorder(javax.swing.BorderFactory.createEtchedBorder());\n jPanel8.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseEntered(java.awt.event.MouseEvent evt) {\n jPanel8MouseEntered(evt);\n }\n public void mouseExited(java.awt.event.MouseEvent evt) {\n jPanel8MouseExited(evt);\n }\n });\n\n jLabel7.setFont(new java.awt.Font(\"Times New Roman\", 1, 18)); // NOI18N\n jLabel7.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/IconMenu/icons8-business-report-24.png\"))); // NOI18N\n jLabel7.setText(\"Laporan Tiket\");\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 .addComponent(jLabel7)\n .addGap(0, 0, Short.MAX_VALUE))\n );\n jPanel8Layout.setVerticalGroup(\n jPanel8Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel8Layout.createSequentialGroup()\n .addComponent(jLabel7)\n .addGap(0, 11, Short.MAX_VALUE))\n );\n\n jPanel3.setBackground(new java.awt.Color(255, 255, 0));\n jPanel3.setBorder(javax.swing.BorderFactory.createEtchedBorder());\n\n jLabel4.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/IconMenu/icons8-user-24.png\"))); // NOI18N\n\n jLabel8.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/IconMenu/icons8-calendar-24.png\"))); // NOI18N\n\n jLabel9.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/IconMenu/icons8-clock-24.png\"))); // NOI18N\n\n lbl_tgl.setFont(new java.awt.Font(\"Times New Roman\", 1, 14)); // NOI18N\n lbl_tgl.setForeground(new java.awt.Color(255, 0, 0));\n lbl_tgl.setText(\"Tanggal\");\n\n jLabel11.setFont(new java.awt.Font(\"Times New Roman\", 1, 14)); // NOI18N\n jLabel11.setForeground(new java.awt.Color(255, 0, 0));\n jLabel11.setText(\"Jam\");\n\n lbluser.setFont(new java.awt.Font(\"Times New Roman\", 1, 14)); // NOI18N\n lbluser.setForeground(new java.awt.Color(255, 0, 0));\n lbluser.setText(\"Sebagai\");\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(19, 19, 19)\n .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel4)\n .addGroup(jPanel3Layout.createSequentialGroup()\n .addComponent(jLabel8)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(lbl_tgl))\n .addGroup(jPanel3Layout.createSequentialGroup()\n .addComponent(jLabel9)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(jLabel11))\n .addGroup(jPanel3Layout.createSequentialGroup()\n .addGap(34, 34, 34)\n .addComponent(lbluser)))\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n );\n jPanel3Layout.setVerticalGroup(\n jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel3Layout.createSequentialGroup()\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(jLabel4, javax.swing.GroupLayout.PREFERRED_SIZE, 19, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(lbluser))\n .addGap(11, 11, 11)\n .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(lbl_tgl, javax.swing.GroupLayout.PREFERRED_SIZE, 17, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel8))\n .addGap(13, 13, 13)\n .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(jLabel9)\n .addComponent(jLabel11)))\n );\n\n jPanel19.setBackground(new java.awt.Color(255, 255, 0));\n\n jPanel18.setBackground(new java.awt.Color(255, 0, 0));\n jPanel18.setBorder(javax.swing.BorderFactory.createEtchedBorder());\n jPanel18.setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());\n\n jLabel29.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/IconMenu/icons8-menu-24.png\"))); // NOI18N\n jLabel29.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseEntered(java.awt.event.MouseEvent evt) {\n jLabel29MouseEntered(evt);\n }\n public void mouseExited(java.awt.event.MouseEvent evt) {\n jLabel29MouseExited(evt);\n }\n public void mousePressed(java.awt.event.MouseEvent evt) {\n jLabel29MousePressed(evt);\n }\n });\n jPanel18.add(jLabel29, new org.netbeans.lib.awtextra.AbsoluteConstraints(10, 0, 50, 50));\n\n jLabel26.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/IconMenu/icons8-menu-24.png\"))); // NOI18N\n jLabel26.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseEntered(java.awt.event.MouseEvent evt) {\n jLabel26MouseEntered(evt);\n }\n public void mouseExited(java.awt.event.MouseEvent evt) {\n jLabel26MouseExited(evt);\n }\n public void mousePressed(java.awt.event.MouseEvent evt) {\n jLabel26MousePressed(evt);\n }\n });\n jPanel18.add(jLabel26, new org.netbeans.lib.awtextra.AbsoluteConstraints(10, 10, 36, 35));\n\n jPanel11.setBackground(new java.awt.Color(255, 255, 0));\n jPanel11.setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());\n\n jPanel10.setBackground(new java.awt.Color(255, 255, 0));\n jPanel10.setBorder(javax.swing.BorderFactory.createEtchedBorder());\n jPanel10.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseEntered(java.awt.event.MouseEvent evt) {\n jPanel10MouseEntered(evt);\n }\n public void mouseExited(java.awt.event.MouseEvent evt) {\n jPanel10MouseExited(evt);\n }\n public void mousePressed(java.awt.event.MouseEvent evt) {\n jPanel10MousePressed(evt);\n }\n });\n\n jLabel13.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/IconMenu/icons8-photo-editor-24.png\"))); // NOI18N\n\n jLabel14.setFont(new java.awt.Font(\"Times New Roman\", 1, 14)); // NOI18N\n jLabel14.setText(\"Background\");\n jLabel14.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseEntered(java.awt.event.MouseEvent evt) {\n jLabel14MouseEntered(evt);\n }\n });\n\n javax.swing.GroupLayout jPanel10Layout = new javax.swing.GroupLayout(jPanel10);\n jPanel10.setLayout(jPanel10Layout);\n jPanel10Layout.setHorizontalGroup(\n jPanel10Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel10Layout.createSequentialGroup()\n .addComponent(jLabel13)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jLabel14)\n .addGap(0, 62, Short.MAX_VALUE))\n );\n jPanel10Layout.setVerticalGroup(\n jPanel10Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel13, javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(jLabel14, javax.swing.GroupLayout.Alignment.TRAILING)\n );\n\n jPanel11.add(jPanel10, new org.netbeans.lib.awtextra.AbsoluteConstraints(0, 0, 170, -1));\n\n jPanel12.setBackground(new java.awt.Color(255, 255, 0));\n jPanel12.setBorder(javax.swing.BorderFactory.createEtchedBorder());\n jPanel12.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseEntered(java.awt.event.MouseEvent evt) {\n jPanel12MouseEntered(evt);\n }\n public void mouseExited(java.awt.event.MouseEvent evt) {\n jPanel12MouseExited(evt);\n }\n });\n\n jLabel15.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/IconMenu/icons8-about-24.png\"))); // NOI18N\n\n jLabel16.setFont(new java.awt.Font(\"Times New Roman\", 1, 14)); // NOI18N\n jLabel16.setText(\"About\");\n\n javax.swing.GroupLayout jPanel12Layout = new javax.swing.GroupLayout(jPanel12);\n jPanel12.setLayout(jPanel12Layout);\n jPanel12Layout.setHorizontalGroup(\n jPanel12Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel12Layout.createSequentialGroup()\n .addComponent(jLabel15)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jLabel16)\n .addGap(0, 99, Short.MAX_VALUE))\n );\n jPanel12Layout.setVerticalGroup(\n jPanel12Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel15, javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(jLabel16, javax.swing.GroupLayout.Alignment.TRAILING)\n );\n\n jPanel11.add(jPanel12, new org.netbeans.lib.awtextra.AbsoluteConstraints(0, 30, 170, -1));\n\n jPanel13.setBackground(new java.awt.Color(255, 255, 0));\n jPanel13.setBorder(javax.swing.BorderFactory.createEtchedBorder());\n jPanel13.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseEntered(java.awt.event.MouseEvent evt) {\n jPanel13MouseEntered(evt);\n }\n public void mouseExited(java.awt.event.MouseEvent evt) {\n jPanel13MouseExited(evt);\n }\n public void mousePressed(java.awt.event.MouseEvent evt) {\n jPanel13MousePressed(evt);\n }\n });\n\n jLabel17.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/IconMenu/icons8-logout-rounded-down-24.png\"))); // NOI18N\n\n jLabel18.setFont(new java.awt.Font(\"Times New Roman\", 1, 14)); // NOI18N\n jLabel18.setText(\"Logout\");\n\n javax.swing.GroupLayout jPanel13Layout = new javax.swing.GroupLayout(jPanel13);\n jPanel13.setLayout(jPanel13Layout);\n jPanel13Layout.setHorizontalGroup(\n jPanel13Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel13Layout.createSequentialGroup()\n .addComponent(jLabel17)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jLabel18)\n .addGap(0, 93, Short.MAX_VALUE))\n );\n jPanel13Layout.setVerticalGroup(\n jPanel13Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel17, javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(jLabel18, javax.swing.GroupLayout.Alignment.TRAILING)\n );\n\n jPanel11.add(jPanel13, new org.netbeans.lib.awtextra.AbsoluteConstraints(0, 60, 170, -1));\n\n jPanel15.setBackground(new java.awt.Color(255, 255, 0));\n jPanel15.setBorder(javax.swing.BorderFactory.createEtchedBorder());\n jPanel15.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseEntered(java.awt.event.MouseEvent evt) {\n jPanel15MouseEntered(evt);\n }\n public void mouseExited(java.awt.event.MouseEvent evt) {\n jPanel15MouseExited(evt);\n }\n });\n\n jLabel21.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/IconMenu/icons8-business-report-24.png\"))); // NOI18N\n\n jLabel22.setFont(new java.awt.Font(\"Times New Roman\", 1, 14)); // NOI18N\n jLabel22.setText(\"Backup and Restore\");\n\n javax.swing.GroupLayout jPanel15Layout = new javax.swing.GroupLayout(jPanel15);\n jPanel15.setLayout(jPanel15Layout);\n jPanel15Layout.setHorizontalGroup(\n jPanel15Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel15Layout.createSequentialGroup()\n .addComponent(jLabel21)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jLabel22)\n .addGap(0, 12, Short.MAX_VALUE))\n );\n jPanel15Layout.setVerticalGroup(\n jPanel15Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel21, javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(jLabel22, javax.swing.GroupLayout.Alignment.TRAILING)\n );\n\n jPanel11.add(jPanel15, new org.netbeans.lib.awtextra.AbsoluteConstraints(0, 90, 170, -1));\n\n jPanel16.setBackground(new java.awt.Color(255, 255, 0));\n jPanel16.setBorder(javax.swing.BorderFactory.createEtchedBorder());\n jPanel16.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseEntered(java.awt.event.MouseEvent evt) {\n jPanel16MouseEntered(evt);\n }\n public void mouseExited(java.awt.event.MouseEvent evt) {\n jPanel16MouseExited(evt);\n }\n public void mousePressed(java.awt.event.MouseEvent evt) {\n jPanel16MousePressed(evt);\n }\n });\n\n jLabel23.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/IconMenu/icons8-exit-24.png\"))); // NOI18N\n\n jLabel24.setFont(new java.awt.Font(\"Times New Roman\", 1, 14)); // NOI18N\n jLabel24.setText(\"Keluar\");\n\n javax.swing.GroupLayout jPanel16Layout = new javax.swing.GroupLayout(jPanel16);\n jPanel16.setLayout(jPanel16Layout);\n jPanel16Layout.setHorizontalGroup(\n jPanel16Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel16Layout.createSequentialGroup()\n .addComponent(jLabel23)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jLabel24)\n .addGap(0, 94, Short.MAX_VALUE))\n );\n jPanel16Layout.setVerticalGroup(\n jPanel16Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel23, javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(jLabel24, javax.swing.GroupLayout.Alignment.TRAILING)\n );\n\n jPanel11.add(jPanel16, new org.netbeans.lib.awtextra.AbsoluteConstraints(0, 120, 170, -1));\n\n javax.swing.GroupLayout jPanel19Layout = new javax.swing.GroupLayout(jPanel19);\n jPanel19.setLayout(jPanel19Layout);\n jPanel19Layout.setHorizontalGroup(\n jPanel19Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel19Layout.createSequentialGroup()\n .addGroup(jPanel19Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jPanel11, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jPanel18, javax.swing.GroupLayout.PREFERRED_SIZE, 60, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(0, 0, Short.MAX_VALUE))\n );\n jPanel19Layout.setVerticalGroup(\n jPanel19Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel19Layout.createSequentialGroup()\n .addComponent(jPanel18, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 32, Short.MAX_VALUE)\n .addComponent(jPanel11, javax.swing.GroupLayout.PREFERRED_SIZE, 161, javax.swing.GroupLayout.PREFERRED_SIZE))\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 .addComponent(jPanel4, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jPanel5, 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 .addComponent(jPanel7, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jPanel8, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jPanel3, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addComponent(jPanel19, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, 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 .addComponent(jPanel19, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 9, Short.MAX_VALUE)\n .addComponent(jPanel4, javax.swing.GroupLayout.PREFERRED_SIZE, 45, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jPanel5, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jPanel6, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jPanel7, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jPanel8, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(64, 64, 64)\n .addComponent(jPanel3, javax.swing.GroupLayout.PREFERRED_SIZE, 105, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addContainerGap())\n );\n\n getContentPane().add(jPanel1, new org.netbeans.lib.awtextra.AbsoluteConstraints(0, 0, -1, 640));\n\n jPanel2.setBackground(new java.awt.Color(255, 0, 0));\n\n jPanel14.setBackground(new java.awt.Color(255, 0, 0));\n jPanel14.setBorder(javax.swing.BorderFactory.createEtchedBorder());\n\n jLabel19.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/IconMenu/icons8-photo-editor-24.png\"))); // NOI18N\n\n jLabel20.setFont(new java.awt.Font(\"Times New Roman\", 1, 14)); // NOI18N\n jLabel20.setText(\"Background\");\n\n javax.swing.GroupLayout jPanel14Layout = new javax.swing.GroupLayout(jPanel14);\n jPanel14.setLayout(jPanel14Layout);\n jPanel14Layout.setHorizontalGroup(\n jPanel14Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel14Layout.createSequentialGroup()\n .addComponent(jLabel19)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jLabel20)\n .addGap(0, 0, Short.MAX_VALUE))\n );\n jPanel14Layout.setVerticalGroup(\n jPanel14Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel19, javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(jLabel20, javax.swing.GroupLayout.Alignment.TRAILING)\n );\n\n jPanel17.setBackground(new java.awt.Color(255, 255, 0));\n\n jLabel27.setFont(new java.awt.Font(\"Times New Roman\", 1, 36)); // NOI18N\n jLabel27.setText(\"DFD TICKET\");\n\n javax.swing.GroupLayout jPanel17Layout = new javax.swing.GroupLayout(jPanel17);\n jPanel17.setLayout(jPanel17Layout);\n jPanel17Layout.setHorizontalGroup(\n jPanel17Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel17Layout.createSequentialGroup()\n .addContainerGap(167, Short.MAX_VALUE)\n .addComponent(jLabel27)\n .addGap(171, 171, 171))\n );\n jPanel17Layout.setVerticalGroup(\n jPanel17Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel17Layout.createSequentialGroup()\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jLabel27)\n .addGap(33, 33, 33))\n );\n\n jLabel28.setBackground(new java.awt.Color(255, 255, 255));\n jLabel28.setFont(new java.awt.Font(\"Times New Roman\", 1, 36)); // NOI18N\n jLabel28.setForeground(new java.awt.Color(255, 255, 255));\n jLabel28.setText(\"Jam\");\n\n lbl_jam.setFont(new java.awt.Font(\"Times New Roman\", 1, 24)); // NOI18N\n lbl_jam.setForeground(new java.awt.Color(255, 255, 255));\n lbl_jam.setText(\"Jam\");\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(461, 461, 461)\n .addComponent(jPanel14, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addGap(108, 108, 108))\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel2Layout.createSequentialGroup()\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel2Layout.createSequentialGroup()\n .addComponent(lbl_jam)\n .addGap(124, 124, 124))\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel2Layout.createSequentialGroup()\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(jPanel17, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel28))\n .addGap(89, 89, 89))))\n );\n jPanel2Layout.setVerticalGroup(\n jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(jPanel17, javax.swing.GroupLayout.PREFERRED_SIZE, 61, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(18, 18, 18)\n .addComponent(lbl_jam)\n .addGap(66, 66, 66)\n .addComponent(jLabel28)\n .addGap(151, 151, 151)\n .addComponent(jPanel14, 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(jPanel2, new org.netbeans.lib.awtextra.AbsoluteConstraints(160, 0, 610, 140));\n\n pack();\n }", "private void initComponents(){\n\t\n\t\tthis.setLayout(null);\n\t\t\n\t\tscreensize = Toolkit.getDefaultToolkit().getScreenSize();\n\t\t\n\t\tlogo = new JLabel(getLogoIcon(), JLabel.CENTER); // 500x50\n\t\t\n\t\toptionList = new JComboBox();\n\t\t\n\t\tcreate = new JButton(\"Create\");\n\t\tclose = new JButton(\"Close\");\n\t\t\n\t\tcreate.addActionListener(new ActionListener(){\n\t\t\tpublic void actionPerformed(ActionEvent evt) {\n\t\t\t\tcreateActionPerformed(evt);\n\t\t\t}\n\t\t});\n\t\t\n\t\tclose.addActionListener(new ActionListener(){\n\t\t\tpublic void actionPerformed(ActionEvent evt) {\n\t\t\t\tcloseActionPerformed(evt);\n\t\t\t}\n\t\t});\n\t\t\n\t}", "private void createComponents()\n\t{\n\t\t// Create search results' table header\n\t\tm_ResultHeader = new PrinterLabel(1,MenuWindow.FRAME_WIDTH , MenuWindow.FRAME_HEIGHT,\n\t\t\t\t\"PRINTER\",\"VENDOR\",\"TENSION (ksi)\",\"COMPRESSION (ksi)\",\"IMPACT (lb-ft)\",\"MATERIALS\",\"TOLERANCE (in)\",\"FINISH (\\u00B5in)\", false);\n\t\tm_ResultHeader.setBackground(Color.lightGray);\n\t\t// Add tool tips for long header categories before adding to GUI\n\t\tm_ResultHeader.getMaterials().setToolTipText(\"Range of Materials\");\n\t\tm_PrinterList = ToolBox.generatePrinterList();\n\t}", "protected void setupUI() {\n textView = (TextView) findViewById(R.id.textView);\n viewGradeButton = (Button) findViewById(R.id.viewAllBillsButton);\n viewDash = (Button) findViewById(R.id.viewDash);\n\n //Listen if the buttons is clicked\n viewGradeButton.setOnClickListener(onClickViewGradeButton);\n viewDash.setOnClickListener(onClickViewDash);\n\n }", "public intrebarea() {\n initComponents();\n }", "protected void setupUI() {\r\n this.setLayout(new GridLayout((this.needDefaultValue) ? 3 : 2, 2));\r\n\r\n this.nameLabel = new JLabel(this.nameLabelText);\r\n this.add(this.nameLabel);\r\n this.add(this.nameTextField);\r\n\r\n this.typeLabel = new JLabel(this.typeLabelText);\r\n this.add(this.typeLabel);\r\n this.add(this.typeDropDown);\r\n\r\n if (this.needDefaultValue) {\r\n this.defValLabel = new JLabel(this.defValLabelText);\r\n this.add(this.defValLabel);\r\n this.add(this.defValueTextField);\r\n }\r\n }", "private void initComponents() {\r\n\t\temulator = new Chip8();\r\n\t\tpanel = new DisplayPanel(emulator);\r\n\t\tregisterPanel = new EmulatorInfoPanel(emulator);\r\n\t\t\r\n\t\tcontroller = new Controller(this, emulator, panel, registerPanel);\r\n\t}", "private void initialize() {\n\n\t\tjavax.swing.UIManager.put(\"OptionPane.font\", new Font(VERDANA, Font.PLAIN, 16));\n\t\tjavax.swing.UIManager.put(\"OptionPane.messageFont\", new Font(VERDANA, Font.PLAIN, 16));\n\t\tjavax.swing.UIManager.put(\"OptionPane.buttonFont\", new Font(VERDANA, Font.PLAIN, 16));\n\n\t\tframe = new JFrame();\n\t\tframe.setBounds(100, 100, 980, 720);\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\tframe.getContentPane().setLayout(null);\n\t\t// set icon image for frame\n\t\tURL iconURL = getClass().getResource(\"/Manipulator.png\");\n\t\tImageIcon img = new ImageIcon(iconURL);\n\t\tframe.setIconImage(img.getImage());\n\n\t\tJCheckBox chckbxNewCheckBox = new JCheckBox(\"Generate Test Case\");\n\t\tchckbxNewCheckBox.setSelected(true);\n\t\tchckbxNewCheckBox.setBounds(30, 7, 150, 23);\n\t\tframe.getContentPane().add(chckbxNewCheckBox);\n\n\t\tJButton btnOk = new JButton(\"OK\");\n\t\tbtnOk.addActionListener(e -> {\n\n\t\t\t// String TestSpecTemplateName = txtTestspectemplatexls.getText();\n\t\t\t// String TestDataTemplateName = txtTestdatatemplatexls.getText();\n\t\t\t// String TestInputDataFileName = txtTestgeneratorxlsx.getText();\n\n\t\t\tframe.dispose();\n\t\t\tnew SoapOrRestWindow();\n\t\t\tSoapOrRestWindow.main(null);\n\t\t});\n\t\tbtnOk.setBounds(356, 230, 86, 23);\n\t\tframe.getContentPane().add(btnOk);\n\n\t\tJButton btnNewButton = new JButton(\"Test Case Properties\");\n\t\tbtnNewButton.setBounds(30, 37, 159, 23);\n\t\tframe.getContentPane().add(btnNewButton);\n\n\t\tJButton btnNewButton_1 = new JButton(\"Script Properties\");\n\t\tbtnNewButton_1.setBounds(214, 37, 159, 23);\n\t\tframe.getContentPane().add(btnNewButton_1);\n\n\t\tJLabel lblTestspec = new JLabel(\"TestSpecTemplateName :\");\n\t\tlblTestspec.setBounds(30, 71, 150, 14);\n\t\tframe.getContentPane().add(lblTestspec);\n\n\t\ttxtTestspectemplatexls = new JTextField();\n\t\ttxtTestspectemplatexls.setText(\"TestSpecTemplate.xls\");\n\t\ttxtTestspectemplatexls.setBounds(214, 68, 229, 20);\n\t\tframe.getContentPane().add(txtTestspectemplatexls);\n\t\ttxtTestspectemplatexls.setColumns(10);\n\n\t\tJLabel lblTestdatatemplatename = new JLabel(\"TestDataTemplateName :\");\n\t\tlblTestdatatemplatename.setBounds(30, 96, 150, 14);\n\t\tframe.getContentPane().add(lblTestdatatemplatename);\n\n\t\ttxtTestdatatemplatexls = new JTextField();\n\t\ttxtTestdatatemplatexls.setText(\"TestDataTemplate.xls\");\n\t\ttxtTestdatatemplatexls.setColumns(10);\n\t\ttxtTestdatatemplatexls.setBounds(214, 93, 229, 20);\n\t\tframe.getContentPane().add(txtTestdatatemplatexls);\n\n\t\tJLabel lblTestinputdatafilename = new JLabel(\"TestInputDataFileName :\");\n\t\tlblTestinputdatafilename.setBounds(30, 121, 150, 14);\n\t\tframe.getContentPane().add(lblTestinputdatafilename);\n\n\t\ttxtTestgeneratorxlsx = new JTextField();\n\t\ttxtTestgeneratorxlsx.setText(\"TestGenerator.xlsx\");\n\t\ttxtTestgeneratorxlsx.setColumns(10);\n\t\ttxtTestgeneratorxlsx.setBounds(214, 118, 229, 20);\n\t\tframe.getContentPane().add(txtTestgeneratorxlsx);\n\n\t\tJLabel lblPathtotestspectemplateexcel = new JLabel(\"PathToTestSpecTemplateExcel :\");\n\t\tlblPathtotestspectemplateexcel.setBounds(30, 152, 190, 14);\n\t\tframe.getContentPane().add(lblPathtotestspectemplateexcel);\n\n\t\tJLabel lblPathtotestdatatemplateexcel = new JLabel(\"PathToTestDataTemplateExcel :\");\n\t\tlblPathtotestdatatemplateexcel.setBounds(30, 177, 190, 14);\n\t\tframe.getContentPane().add(lblPathtotestdatatemplateexcel);\n\n\t\tJLabel lblPathtotestgeneratorexcel = new JLabel(\"PathToTestGeneratorExcel :\");\n\t\tlblPathtotestgeneratorexcel.setBounds(30, 202, 190, 14);\n\t\tframe.getContentPane().add(lblPathtotestgeneratorexcel);\n\n\t\ttextField_3 = new JTextField();\n\t\ttextField_3.setBounds(224, 149, 218, 20);\n\t\tframe.getContentPane().add(textField_3);\n\t\ttextField_3.setColumns(10);\n\n\t\ttextField_4 = new JTextField();\n\t\ttextField_4.setColumns(10);\n\t\ttextField_4.setBounds(224, 174, 218, 20);\n\t\tframe.getContentPane().add(textField_4);\n\n\t\ttextField_5 = new JTextField();\n\t\ttextField_5.setColumns(10);\n\t\ttextField_5.setBounds(224, 199, 218, 20);\n\t\tframe.getContentPane().add(textField_5);\n\n\t\tJButton btnCancel = new JButton(\"Reset\");\n\t\tbtnCancel.addActionListener(e -> frame.dispose());\n\t\tbtnCancel.setBounds(224, 230, 89, 23);\n\t\tframe.getContentPane().add(btnCancel);\n\t\tframe.setResizable(false);\n\t}", "private void initialize() {\n\t\tjLabel3 = new JLabel();\n\t\tjLabel = new JLabel();\n\t\tthis.setLayout(null);\n\t\tthis.setBounds(new java.awt.Rectangle(0, 0, 486, 377));\n\t\tjLabel.setText(PluginServices.getText(this,\n\t\t\t\t\"Areas_de_influencia._Introduccion_de_datos\") + \":\");\n\t\tjLabel.setBounds(5, 20, 343, 21);\n\t\tjLabel3.setText(PluginServices.getText(this, \"Cobertura_de_entrada\")\n\t\t\t\t+ \":\");\n\t\tjLabel3.setBounds(6, 63, 190, 21);\n\t\tthis.add(jLabel, null);\n\t\tthis.add(jLabel3, null);\n\t\tthis.add(getLayersComboBox(), null);\n\t\tthis.add(getSelectedOnlyCheckBox(), null);\n\t\tthis.add(getMethodSelectionPanel(), null);\n\t\tthis.add(getResultSelectionPanel(), null);\n\t\tthis.add(getExtendedOptionsPanel(), null);\n\t\tconfButtonGroup();\n\t\tlayersComboBox.setSelectedIndex(0);\n\t\tinitSelectedItemsJCheckBox();\n\t\tdistanceBufferRadioButton.setSelected(true);\n\t\tlayerFieldsComboBox.setEnabled(false);\n\t\tverifyTypeBufferComboEnabled();\n\t}", "void createComponent() {\n\t\t//Initialize all components\n\t\tsetLayout(new BorderLayout());\n\t\ttextEditor = new JTextArea();\n\t\terrorTextArea = new JTextArea();\n\t\topenButton = new JButton(\"Open\");\n\t\tsaveButton = new JButton(\"Save\");\n\t\tfindButton = new JButton(\"Find\");\n\t\treplaceButton = new JButton(\"Replace\");\n\t\tcompileButton = new JButton(\"Compile\");\n\t\trunButton = new JButton(\"Run\");\n\t\tfindField = new JTextField();\n\t\treplaceField = new JTextField();\n\t\tfontSizeItems = new Integer[17];\n\t\tfontStyle = new JComboBox<>(fontStyleItems);\n\t\tfinder = new ArrayList<>();\n\t\t\n\t\t//Assigns values to components\n\t\ttextEditor.setTabSize(2);\n\t\tint index = 0;\n\t\tfor(int i=8;i<=40;i+=2) {\n\t\t\tfontSizeItems[index] = i;\n\t\t\tindex++;\n\t\t}\n\t\tfontSize = new JComboBox<>(fontSizeItems);\n\t\tfontSize.setSelectedIndex(2);\n\t\terrorTextArea.setText(\"Error outputs here...\");\n\t\terrorTextArea.setEditable(false);\n\t\terrorTextArea.setFont(new Font(null, 0, 17));\n\t\terrorTextArea.setLineWrap(true);\n\t\terrorTextArea.setWrapStyleWord(true);\n\t\t\n\t\topenButton.setPreferredSize(optionSize);\n\t\tsaveButton.setPreferredSize(optionSize);\n\t\tfindButton.setPreferredSize(optionSize);\n\t\treplaceButton.setPreferredSize(optionSize);\n\t\t\n\t\thighlighter = textEditor.getHighlighter();\n\t\t\n\t\t//Add all components to panels\n\t\tJScrollPane scrollPane = new JScrollPane(textEditor);\n\t\tJPanel navigationPanel = new JPanel(new BorderLayout());\n\t\tJPanel optionsPanel = new JPanel(new GridLayout(2,5,5,5));\n\t\tJPanel executePanel = new JPanel(new GridLayout(2,1));\n\t\tJPanel errorPanel = new JPanel(new BorderLayout());\n\t\t\n\t\toptionsPanel.add(openButton);\n\t\toptionsPanel.add(fontSize);\n\t\toptionsPanel.add(findField);\n\t\toptionsPanel.add(findButton);\n\t\t\n\t\toptionsPanel.add(saveButton);\n\t\toptionsPanel.add(fontStyle);\n\t\toptionsPanel.add(replaceField);\n\t\toptionsPanel.add(replaceButton);\n\t\t\n\t\texecutePanel.add(compileButton);\n\t\texecutePanel.add(runButton);\n\t\t\n\t\terrorPanel.add(errorTextArea);\n\t\t\n\t\tnavigationPanel.add(optionsPanel,BorderLayout.CENTER);\n\t\tnavigationPanel.add(errorPanel, BorderLayout.SOUTH);\n\t\t\n\t\t//Add panels to the main frame\n\t\tthis.add(scrollPane,BorderLayout.CENTER);\n\t\tthis.add(navigationPanel, BorderLayout.SOUTH);\n\t\tthis.add(executePanel, BorderLayout.EAST);\n\t}", "private static void createAndShowGUI() {\n\t\t//Create and set up the window.\n\t\tJFrame frame = new JFrame(\"Color test\");\n\t\tframe.setPreferredSize(new Dimension(700, 700));\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\n\t\t//Create and set up the content pane.\n\t\tJComponent newContentPane = new ColorTest();\n\t\tnewContentPane.setOpaque(true); //content panes must be opaque\n\t\tframe.setContentPane(newContentPane);\n\n\t\t//Display the window.\n\t\tframe.pack();\n\t\tframe.setVisible(true);\n\t}", "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 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 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 void $$$setupUI$$$() {\n\t\tpanel_overview = new JPanel();\n\t\tpanel_overview.setLayout(new BorderLayout(0, 0));\n\t\twebView = new WebbrowserPanel();\n\t\tpanel_overview.add(webView, BorderLayout.CENTER);\n\t}", "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}", "private void setupGUI() {\n\t\tcollapsingToolbarLayout = (CollapsingToolbarLayout) findViewById(R.id.collapsingToolbarLayout);\n\t\tlogo = (SmartImageView) findViewById(R.id.logoo);\n\t\tnomePosto = (TextView) findViewById(R.id.nomeposto);\n\t\tdescrizione = (TextView) findViewById(R.id.descrizioneposto);\n\t\twebsite = (TextView) findViewById(R.id.websiteposto);\n\t\tnumtelefono = (TextView) findViewById(R.id.telefonoposto);\n\t\tcitta = (TextView) findViewById(R.id.cittaposto);\n\t\tbtnMappa = (FloatingActionButton) findViewById(R.id.fabbuttonmappa);\n\t\tgallery = (LinearLayout) findViewById(R.id.gallery);\n\t\tgalleryContainer = (CardView) findViewById(R.id.cv1);\n\t\t// rvofferte = (RecyclerView) findViewById(R.id.rvofferte);\n\t\t// LinearLayoutManager llm = new\n\t\t// LinearLayoutManager(DetPlaActivity.this);\n\t\t// rvofferte.setLayoutManager(llm);\n\t\t// rvofferte.setSaveEnabled(false);\n\t}", "private void setupUI(){\n this.setupTimerSchedule(controller, 0, 500);\n this.setupFocusable(); \n this.setupSensSlider();\n this.setupInitEnable();\n this.setupDebugger();\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 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 }", "private void initialize() {\n\t\tframe = new JFrame();\n\t\tframe.getContentPane().setBackground(new Color(51, 102, 0));\n\t\tframe.getContentPane().setForeground(Color.BLACK);\n\t\tframe.setBounds(100, 100, 922, 661);\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\tframe.getContentPane().setLayout(null);\n\t\t\n\t\t\n\t\tJLabel lblCredits = new JLabel(\"\");\n\t\tlblCredits.setForeground(new Color(255, 255, 255));\n\t\tlblCredits.setFont(new Font(\"Chalkduster\", Font.PLAIN, 15));\n\t\tlblCredits.setBounds(300, 108, 79, 27);\n\t\tframe.getContentPane().add(lblCredits);\n\t\t\n\t\tJPanel panel = new JPanel();\n\t\t\n\t\tpanel.setForeground(new Color(255, 0, 102));\n\t\tpanel.setBackground(new Color(51, 51, 51));\n\t\tpanel.setBorder(new TitledBorder(null, \"\", TitledBorder.LEADING, TitledBorder.TOP, null, null));\n\t\tpanel.setBounds(36, 151, 855, 459);\n\t\tframe.getContentPane().add(panel);\n\t\tpanel.setLayout(null);\n\t\t\n\t\t\n\t\tJScrollPane scrollPane = new JScrollPane();\n\t\tscrollPane.setBounds(16, 18, 821, 424);\n\t\tpanel.add(scrollPane);\n\t\t\n\t\tJTextArea textArea = new JTextArea();\n\t\ttextArea.setFont(new Font(\"Chalkboard SE\", Font.PLAIN, 15));\n\t\ttextArea.setForeground(new Color(255, 255, 255));\n\t\tscrollPane.setViewportView(textArea);\n\t\ttextArea.setBackground(new Color(0, 51, 51));\n\t\t\n\t\t\n\t\ttextField_URL = new JTextField();\n\t\ttextField_URL.setBackground(new Color(255, 255, 255));\n\t\ttextField_URL.setBounds(87, 71, 292, 26);\n\t\tframe.getContentPane().add(textField_URL);\n\t\ttextField_URL.setColumns(10);\n\t\t\n\t\tJLabel lblUrl = new JLabel(\"URL\");\n\t\tlblUrl.setForeground(new Color(255, 255, 255));\n\t\tlblUrl.setFont(new Font(\"Chalkduster\", Font.BOLD, 15));\n\t\tlblUrl.setBounds(51, 76, 38, 16);\n\t\tframe.getContentPane().add(lblUrl);\n\t\t\n\t\ttextField_SEARCH = new JTextField();\n\t\ttextField_SEARCH.setBackground(new Color(255, 255, 255));\n\t\ttextField_SEARCH.setBounds(584, 71, 217, 26);\n\t\tframe.getContentPane().add(textField_SEARCH);\n\t\ttextField_SEARCH.setColumns(10);\n\t\t\n\t\tJLabel lblSearch = new JLabel(\"Search\");\n\t\tlblSearch.setForeground(new Color(255, 255, 255));\n\t\tlblSearch.setFont(new Font(\"Chalkduster\", Font.PLAIN, 16));\n\t\tlblSearch.setBounds(521, 75, 61, 16);\n\t\tframe.getContentPane().add(lblSearch);\n\t\t\n\t\tJButton btnAz = new JButton(\"A-Z\");\n\t\tbtnAz.setFont(new Font(\"Chalkduster\", Font.PLAIN, 15));\n\t\tbtnAz.setForeground(new Color(0, 0, 0));\n\t\tbtnAz.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\tswitch (textField_URL.getText())\n\t\t\t\t{\n\t\t\t\t\n\t\t\t\tcase \"http://catalog.ccbcmd.edu/preview_program.php?catoid=28&poid=13923\":\n\t\t\t\t\tCCBCWebScrapper scrapper = new CCBCWebScrapper();\n\t\t\t\t\tString result = scrapper.CCBCScrapAndSortAtoZ(textField_URL.getText());\n\t\t\t\t\ttextArea.setText(result);\n\t\t\t\t\tbreak;\n\t\t\t\t\n\t\t\t\t\t\n\t\t\t\tcase \"http://www.imdb.com/chart/top\":\n\t\t\t\t\tIMDBWebScrapper test = new IMDBWebScrapper();\n\t\t\t\t\tresult = test.IMDBScrapAndPrint(textField_URL.getText());\n\t\t\t\t\ttextArea.setText(result);\n\t\t\t\t\tbreak;\n\t\t\t\t\n\t\t\t\tdefault:\n\t\t\t\t\tJOptionPane.showMessageDialog(null, \"You've entered an invalid URL, please try again.\");\n\t\t\t\t\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\tbtnAz.setBounds(97, 109, 94, 26);\n\t\tframe.getContentPane().add(btnAz);\n\t\t\n\t\tJLabel lblSorting = new JLabel(\"Sorting\");\n\t\tlblSorting.setForeground(new Color(255, 255, 255));\n\t\tlblSorting.setFont(new Font(\"Chalkduster\", Font.PLAIN, 15));\n\t\tlblSorting.setBounds(36, 108, 61, 30);\n\t\tframe.getContentPane().add(lblSorting);\n\t\t\n\t\tJButton btnZa = new JButton(\"Z-A\"); \n\t\tbtnZa.setFont(new Font(\"Chalkduster\", Font.PLAIN, 15));\n\t\tbtnZa.setForeground(new Color(0, 0, 0));\n\t\tbtnZa.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\tswitch (textField_URL.getText())\n\t\t\t\t{\n\t\t\t\t\n\t\t\t\tcase \"http://catalog.ccbcmd.edu/preview_program.php?catoid=28&poid=13923\":\n\t\t\t\t\tCCBCWebScrapper scrapper = new CCBCWebScrapper();\n\t\t\t\t\tString result = scrapper.CCBCScrapAndSortZtoA(textField_URL.getText());\n\t\t\t\t\ttextArea.setText(result);\n\t\t\t\t\tbreak;\n\t\t\t\t\n\t\t\t\t\t\n\t\t\t\tcase \"http://www.imdb.com/chart/top\":\n\t\t\t\t\tIMDBWebScrapper test = new IMDBWebScrapper();\n\t\t\t\t\tresult = test.IMDBSortRankLastToFirst(textField_URL.getText());\n\t\t\t\t\ttextArea.setText(result);\n\t\t\t\t\tbreak;\n\t\t\t\t\n\t\t\t\tdefault:\n\t\t\t\t\tJOptionPane.showMessageDialog(null, \"You've entered an invalid URL, please try again.\");\n\t\t\t\t\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t});\n\t\tbtnZa.setBounds(185, 108, 94, 26);\n\t\tframe.getContentPane().add(btnZa);\n\t\t\n\t\t\n\t\tJButton btnSubmit = new JButton(\"Submit\"); // Submit button\n\t\tbtnSubmit.setBackground(new Color(153, 153, 153));\n\t\tbtnSubmit.setForeground(new Color(0, 0, 0));\n\t\tbtnSubmit.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t\n\t\t\t\tswitch (textField_URL.getText())\n\t\t\t\t{\n\t\t\t\t\n\t\t\t\tcase \"http://catalog.ccbcmd.edu/preview_program.php?catoid=28&poid=13923\":\n\t\t\t\t\tCCBCWebScrapper scrapper = new CCBCWebScrapper();\n\t\t\t\t\tString result = scrapper.CCBCScrapAndPrint(textField_URL.getText());\n\t\t\t\t\ttextArea.setText(result);\n\t\t\t\t\tlblCredits.setText(\"Credits\");\n\t\t\t\t\tbtnAz.setText(\"A-Z\");\n\t\t\t\t\tbtnZa.setText(\"Z-A\");\n\t\t\t\t\tbreak;\n\t\t\t\t\n\t\t\t\t\t\n\t\t\t\tcase \"http://www.imdb.com/chart/top\":\n\t\t\t\t\tIMDBWebScrapper test = new IMDBWebScrapper();\n\t\t\t\t\tresult = test.IMDBScrapAndPrint(textField_URL.getText());\n\t\t\t\t\ttextArea.setText(result);\n\t\t\t\t\tlblCredits.setText(\"Ratings\");\n\t\t\t\t\tbtnAz.setText(\"1-250\");\n\t\t\t\t\tbtnZa.setText(\"250-1\");\n\t\t\t\t\tbreak;\n\t\t\t\t\n\t\t\t\t\t\n\t\t\t\tdefault:\n\t\t\t\t\tJOptionPane.showMessageDialog(null, \"You've entered an invalid URL, please try again.\");\n\t\t\t\t\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t});\n\t\tbtnSubmit.setFont(new Font(\"Chalkduster\", Font.PLAIN, 15));\n\t\tbtnSubmit.setBounds(375, 71, 94, 29);\n\t\tframe.getContentPane().add(btnSubmit);\n\t\t\n\t\tJButton btnSearch = new JButton(\"Search\");\n\t\tbtnSearch.setForeground(new Color(0, 0, 0));\n\t\tbtnSearch.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t\n\t\t\t\t\n\t\t\t\tswitch (textField_URL.getText())\n\t\t\t\t{\n\t\t\t\t\n\t\t\t\tcase \"http://catalog.ccbcmd.edu/preview_program.php?catoid=28&poid=13923\":\n\t\t\t\t\tCCBCWebScrapper scrapper = new CCBCWebScrapper();\n\t\t\t\t\tString result = scrapper.CCBCScrapAndSearch(textField_URL.getText(), textField_SEARCH.getText());\n\t\t\t\t\ttextArea.setText(result);\n\t\t\t\t\tbreak;\n\t\t\t\t\n\t\t\t\t\t\n\t\t\t\tcase \"http://www.imdb.com/chart/top\":\n\t\t\t\t\tIMDBWebScrapper test = new IMDBWebScrapper();\n\t\t\t\t\tresult = test.IMDBScrapAndSearch(textField_URL.getText(), textField_SEARCH.getText());\n\t\t\t\t\ttextArea.setText(result);\n\t\t\t\t\tbreak;\n\t\t\t\t\n\t\t\t\tdefault:\n\t\t\t\t\tJOptionPane.showMessageDialog(null, \"You've entered an invalid URL, please try again.\");\n\t\t\t\t\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\tbtnSearch.setFont(new Font(\"Chalkduster\", Font.PLAIN, 15));\n\t\tbtnSearch.setBounds(800, 71, 91, 29);\n\t\tframe.getContentPane().add(btnSearch);\n\t\t\n\t\tJButton btnExport = new JButton(\"Export\");\n\t\tbtnExport.setForeground(new Color(0, 0, 0));\n\t\tbtnExport.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t\n\t\t\t\tJOptionPane.showMessageDialog(null, \"Coming Soon!\");\n\t\t\t\t\n\t\t\t\t/// add code for export method button in this part\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t}\n\t\t});\n\t\tbtnExport.setBackground(new Color(216, 191, 216));\n\t\tbtnExport.setFont(new Font(\"Chalkduster\", Font.PLAIN, 15));\n\t\tbtnExport.setBounds(800, 108, 91, 29);\n\t\tframe.getContentPane().add(btnExport);\n\t\t\n\t\tJLabel lblWebScrappingTool = new JLabel(\"Web Scrapping Tool for Cool People\");\n\t\tlblWebScrappingTool.setForeground(new Color(255, 255, 255));\n\t\tlblWebScrappingTool.setFont(new Font(\"Chalkduster\", Font.BOLD, 30));\n\t\tlblWebScrappingTool.setBounds(126, 6, 648, 53);\n\t\tframe.getContentPane().add(lblWebScrappingTool);\n\t\t\n\t\t\n\t\t\n\t\tJButton btnLowhigh = new JButton(\"Low-High\");\n\t\tbtnLowhigh.setFont(new Font(\"Chalkduster\", Font.PLAIN, 15));\n\t\tbtnLowhigh.setForeground(new Color(0, 0, 0));\n\t\tbtnLowhigh.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\tswitch (textField_URL.getText())\n\t\t\t\t{\n\t\t\t\t\n\t\t\t\tcase \"http://catalog.ccbcmd.edu/preview_program.php?catoid=28&poid=13923\":\n\t\t\t\t\tCCBCWebScrapper scrapper = new CCBCWebScrapper();\n\t\t\t\t\tString result = scrapper.CCBCScrapAndSortCreditsLowToHigh(textField_URL.getText());\n\t\t\t\t\ttextArea.setText(result);\n\t\t\t\t\tbreak;\n\t\t\t\t\n\t\t\t\t\t\n\t\t\t\tcase \"http://www.imdb.com/chart/top\":\n\t\t\t\t\tIMDBWebScrapper test = new IMDBWebScrapper();\n\t\t\t\t\tresult = test.IMDBSortRatesLowToHigh(textField_URL.getText());\n\t\t\t\t\ttextArea.setText(result);\n\t\t\t\t\tbreak;\n\t\t\t\t\n\t\t\t\tdefault:\n\t\t\t\t\tJOptionPane.showMessageDialog(null, \"You've entered an invalid URL, please try again.\");\n\t\t\t\t\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t});\n\t\tbtnLowhigh.setBounds(371, 110, 109, 25);\n\t\tframe.getContentPane().add(btnLowhigh);\n\t\t\n\t\tJButton btnHighlow = new JButton(\"High-Low\");\n\t\tbtnHighlow.setFont(new Font(\"Chalkduster\", Font.PLAIN, 15));\n\t\tbtnHighlow.setForeground(new Color(0, 0, 0));\n\t\tbtnHighlow.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\tswitch (textField_URL.getText())\n\t\t\t\t{\n\t\t\t\t\n\t\t\t\tcase \"http://catalog.ccbcmd.edu/preview_program.php?catoid=28&poid=13923\":\n\t\t\t\t\tCCBCWebScrapper scrapper = new CCBCWebScrapper();\n\t\t\t\t\tString result = scrapper.CCBCScrapAndSortCreditsHighToLow(textField_URL.getText());\n\t\t\t\t\ttextArea.setText(result);\n\t\t\t\t\tbreak;\n\t\t\t\t\n\t\t\t\t\t\n\t\t\t\tcase \"http://www.imdb.com/chart/top\":\n\t\t\t\t\tIMDBWebScrapper test = new IMDBWebScrapper();\n\t\t\t\t\tresult = test.IMDBSortRatesHighToLow(textField_URL.getText());\n\t\t\t\t\ttextArea.setText(result);\n\t\t\t\t\tbreak;\n\t\t\t\t\n\t\t\t\tdefault:\n\t\t\t\t\tJOptionPane.showMessageDialog(null, \"You've entered an invalid URL, please try again.\");\n\t\t\t\t\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t});\n\t\tbtnHighlow.setBounds(473, 108, 109, 29);\n\t\tframe.getContentPane().add(btnHighlow);\n\t\t\n\t\t\n\t\t\n\t\ttextField_SAVE_AS = new JTextField();\n\t\ttextField_SAVE_AS.setBackground(new Color(255, 255, 255));\n\t\ttextField_SAVE_AS.setBounds(671, 109, 130, 26);\n\t\tframe.getContentPane().add(textField_SAVE_AS);\n\t\ttextField_SAVE_AS.setColumns(10);\n\t\t\n\t\tJLabel lblSaveAs = new JLabel(\"Save As\");\n\t\tlblSaveAs.setForeground(new Color(255, 255, 255));\n\t\tlblSaveAs.setFont(new Font(\"Chalkduster\", Font.PLAIN, 15));\n\t\tlblSaveAs.setBounds(608, 108, 61, 27);\n\t\tframe.getContentPane().add(lblSaveAs);\n\t\t\n\t\tJLabel lblNewLabel = new JLabel(\"Created by Rachada Chairangsaris (Bay), Toby Odebo, Matt Kline\");\n\t\tlblNewLabel.setFont(new Font(\"Chalkduster\", Font.PLAIN, 13));\n\t\tlblNewLabel.setForeground(new Color(255, 255, 255));\n\t\tlblNewLabel.setBounds(234, 615, 492, 16);\n\t\tframe.getContentPane().add(lblNewLabel);\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t}", "public FinalFrame()\n {\n \tsuper (\"Multi Brush\"); \n \tdrawingPanel = new DrawingPanel (buttons,colors); // A new DrawingPanel object with two parameters.\n \tJMenuBar menuBar = createMenuBar ();\n \tsetJMenuBar (menuBar); \n // Panel layout arrangement code segments.\n \tpanel.setLayout (new BorderLayout ());\n \tpanel.add (drawingPanel,BorderLayout.CENTER);\n \tpanel.add (buttons,BorderLayout.NORTH);\n \tpanel.add (colors,BorderLayout.SOUTH); \n \tgetContentPane().add(panel);\n \taddWindowListener (new WindowCloser());\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 }", "private void buildNamedColors(JPanel panel, ResourceBundle messageBundle) {\n dragDropColorList = new DragDropColorList(swingController, preferences);\r\n\r\n // create current list of colours\r\n JScrollPane scrollPane = new JScrollPane(dragDropColorList);\r\n addGB(panel, scrollPane, 0, 0, 5, 1);\r\n\r\n dragDropColorList.addListSelectionListener(this);\r\n\r\n // build out the CRUD GUI.\r\n addNamedColorButton = new JButton(\r\n messageBundle.getString(\"viewer.dialog.viewerPreferences.section.annotations.named.add.label\"));\r\n addNamedColorButton.addActionListener(this);\r\n addNamedColorButton.setEnabled(true);\r\n\r\n removeNamedColorButton = new JButton(\r\n messageBundle.getString(\"viewer.dialog.viewerPreferences.section.annotations.named.remove.label\"));\r\n removeNamedColorButton.addActionListener(this);\r\n removeNamedColorButton.setEnabled(false);\r\n\r\n updateNamedColorButton = new JButton(\r\n messageBundle.getString(\"viewer.dialog.viewerPreferences.section.annotations.named.edit.label\"));\r\n updateNamedColorButton.addActionListener(this);\r\n updateNamedColorButton.setEnabled(false);\r\n\r\n colorButton = new ColorChooserButton(Color.DARK_GRAY);\r\n colorButton.setEnabled(true);\r\n colorLabelTextField = new JTextField(\"\");\r\n colorLabelTextField.setEnabled(true);\r\n\r\n // add, edit remove controls.\r\n constraints.insets = new Insets(5, 5, 5, 1);\r\n constraints.fill = GridBagConstraints.NONE;\r\n constraints.weightx = 0.01;\r\n constraints.weighty = 1.0;\r\n addGB(panel, colorButton, 0, 1, 1, 1);\r\n\r\n constraints.fill = GridBagConstraints.NONE;\r\n constraints.insets = new Insets(5, 1, 5, 1);\r\n constraints.weightx = 1.0;\r\n constraints.fill = GridBagConstraints.BOTH;\r\n addGB(panel, colorLabelTextField, 1, 1, 1, 1);\r\n\r\n constraints.weightx = 0.01;\r\n constraints.fill = GridBagConstraints.NONE;\r\n addGB(panel, addNamedColorButton, 2, 1, 1, 1);\r\n addGB(panel, updateNamedColorButton, 3, 1, 1, 1);\r\n\r\n constraints.insets = new Insets(5, 0, 5, 5);\r\n addGB(panel, removeNamedColorButton, 4, 1, 1, 1);\r\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 }", "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 initializeUi() {\n scanner = findViewById(R.id.surfaceView);\n cameraPreview = findViewById(R.id.surfaceView);\n bt_cross = findViewById(R.id.bt_cross);\n cargando = cargando();\n }", "public GUI() {\n \n initComponents();\n custIDError.setVisible(false);\n custNameError.setVisible(false);\n custLoginError.setVisible(false);\n custPasswordError.setVisible(false);\n prodIDError.setVisible(false);\n prodNameError.setVisible(false);\n prodDescriptionError.setVisible(false);\n prodCostError.setVisible(false);\n \n }", "private void colorScheme (Composite parent) {\r\n\t\tbgLabel = ControlFactory.createLabel(parent, CDTFoldingConstants.SELECT_BG);\r\n\t\tbgColorSelector = new ColorSelector(parent);\r\n\r\n\t\tfgLabel = ControlFactory.createLabel(parent, CDTFoldingConstants.SELECT_FG);\r\n\t\tfgColorSelector = new ColorSelector(parent);\r\n\r\n\t\tbgColorSelector.setColorValue(CDTUtilities.restoreRGB(store\r\n\t\t\t\t.getString(CDTFoldingConstants.COLOR_PICKED_BG)));\r\n\t\tfgColorSelector.setColorValue(CDTUtilities.restoreRGB(store\r\n\t\t\t\t.getString(CDTFoldingConstants.COLOR_PICKED_FG)));\r\n\r\n\t\tbgColorSelector.addListener(event -> {\r\n\t\t\tRGB currentRGB = bgColorSelector.getColorValue();\r\n\r\n\t\t\tStringBuilder sb = new StringBuilder();\r\n\t\t\tsb.append(Integer.toString(currentRGB.red) + \" \");\r\n\t\t\tsb.append(Integer.toString(currentRGB.green) + \" \");\r\n\t\t\tsb.append(Integer.toString(currentRGB.blue));\r\n\r\n\t\t\tstore.setValue(CDTFoldingConstants.COLOR_PICKED_BG, sb.toString());\r\n\t\t});\r\n\r\n\t\tfgColorSelector.addListener(event -> {\r\n\t\t\tRGB currentRGB = fgColorSelector.getColorValue();\r\n\r\n\t\t\tStringBuilder sb = new StringBuilder();\r\n\t\t\tsb.append(Integer.toString(currentRGB.red) + \" \");\r\n\t\t\tsb.append(Integer.toString(currentRGB.green) + \" \");\r\n\t\t\tsb.append(Integer.toString(currentRGB.blue));\r\n\r\n\t\t\tstore.setValue(CDTFoldingConstants.COLOR_PICKED_FG, sb.toString());\r\n\t\t});\r\n\r\n\t\tturnOnOffColors();\r\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 }", "public RummyUI(){\n \n //Call method initComponents\n initComponents();\n \n }", "private void initUI() {\n tvQuote = (TextView) findViewById(R.id.tvQuote);\n tvBeginButton = (TextView) findViewById(R.id.tvBeginButton);\n\n tvBeginButton.setOnClickListener(this);\n\n loadBackground();\n }", "private void initialize() {\n\t\tframe = new JFrame();\n\t\tframe.setTitle(\"\\u67E5\\u8BE2\\u6570\\u636E\");\n\t\tframe.setBounds(100, 100, 800, 520);\n\n\t\tint windowWidth = frame.getWidth(); //获得窗口宽\n\t\tint windowHeight = frame.getHeight(); //获得窗口高\n\t\tToolkit kit = Toolkit.getDefaultToolkit(); //定义工具包\n\t\tDimension screenSize = kit.getScreenSize(); //获取屏幕的尺寸\n\t\tint screenWidth = screenSize.width; //获取屏幕的宽\n\t\tint screenHeight = screenSize.height; //获取屏幕的高\n\t\tframe.setLocation(screenWidth/2-windowWidth/2, screenHeight/2-windowHeight/2);\n\t\t\n\t\tJLabel label = new JLabel(\"\\u4F60\\u60F3\\u67E5\\u8BE2\\uFF1A\");\n\t\tlabel.setBounds(38, 26, 152, 47);\n\t\tlabel.setFont(new Font(\"宋体\", Font.PLAIN, 22));\n\t\t\n\t\tJComboBox<String> comboBox = new JComboBox<String>();\n\t\tcomboBox.setBounds(288, 40, 59, 24);\n\t\tcomboBox.addItem(\"学号\");\n\t\tcomboBox.addItem(\"姓名\");\n\t\tcomboBox.addItem(\"年龄\");\n\t\tcomboBox.addItem(\"性别\");\n\t\tcomboBox.addItem(\"院系\");\n\t\tframe.getContentPane().setLayout(null);\n\t\tframe.getContentPane().add(label);\n\t\tframe.getContentPane().add(comboBox);\n\t\t\n\t\t\n\t\tJButton button = new JButton(\"\\u786E\\u5B9A\");\n\t\tbutton.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tJOptionPane.showMessageDialog(frame, \"查询成功!\");\n\t\t\t}\n\t\t});\n\t\tbutton.setBounds(522, 39, 82, 27);\n\t\tframe.getContentPane().add(button);\n\t\t\n\t\tJButton button_1 = new JButton(\"\\u91CD\\u7F6E\");\n\t\tbutton_1.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\ttextField_1.setText(\"\");\n\t\t\t}\n\t\t});\n\t\t\n\t\tbutton_1.setBounds(634, 39, 82, 27);\n\t\tframe.getContentPane().add(button_1);\n\t\t\n\t\ttextField_1 = new JTextField();\n\t\ttextField_1.setBounds(147, 40, 140, 24);\n\t\tframe.getContentPane().add(textField_1);\n\t\ttextField_1.setColumns(10);\n\t\t\n\t\tJScrollPane scrollPane = new JScrollPane();\n\t\tscrollPane.setBounds(0, 83, 782, 390);\n\t\tframe.getContentPane().add(scrollPane);\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\tbutton.addActionListener(new ActionListener()\n\t\t{\n\t\t\tpublic void actionPerformed(ActionEvent e)\n\t\t\t{\n\t\t\t\tString content = textField_1.getText();\n\t\t\t\tString[] dataTitle =Select.getHead();\n\t\t\t\tif(comboBox.getSelectedIndex() == 0)\n\t\t\t\t{\n\t\t\t\t//\tSystem.out.println(content);\n\t\t\t\t\tString[][] data=Select.getnumber(content);\n\t\t\t\t\ttable = new JTable(data,dataTitle);\n\t\t\t\t\ttable.setFont(new Font(\"宋体\", Font.PLAIN, 18));\n\t\t\t\t\ttable.setRowHeight(25);\n\t\t\t\t\tscrollPane.setViewportView(table);\n\t\t\t\t\ttable.setEnabled(false);\n\t\t\t\t}\n\t\t\t\telse if(comboBox.getSelectedIndex() == 1)\n\t\t\t\t{\n\t\t\t\t//\tSystem.out.println(content);\n\t\t\t\t\tString[][] data=Select.getname(content);\n\t\t\t\t\ttable = new JTable(data,dataTitle);\n\t\t\t\t\ttable.setFont(new Font(\"宋体\", Font.PLAIN, 18));\n\t\t\t\t\ttable.setRowHeight(25);\n\t\t\t\t\tscrollPane.setViewportView(table);\n\t\t\t\t\ttable.setEnabled(false);\n\t\t\t\t}\n\t\t\t\telse if(comboBox.getSelectedIndex() == 2)\n\t\t\t\t{\n\t\t\t\t//\tSystem.out.println(content);\n\t\t\t\t\tString[][] data=Select.getage(content);\n\t\t\t\t\ttable = new JTable(data,dataTitle);\n\t\t\t\t\ttable.setFont(new Font(\"宋体\", Font.PLAIN, 18));\n\t\t\t\t\ttable.setRowHeight(25);\n\t\t\t\t\tscrollPane.setViewportView(table);\n\t\t\t\t\ttable.setEnabled(false);\n\t\t\t\t}\n\t\t\t\telse if(comboBox.getSelectedIndex() == 3)\n\t\t\t\t{\n\t\t\t\t//\tSystem.out.println(content);\n\t\t\t\t\tString[][] data=Select.getsex(content);\n\t\t\t\t\ttable = new JTable(data,dataTitle);\n\t\t\t\t\ttable.setFont(new Font(\"宋体\", Font.PLAIN, 18));\n\t\t\t\t\ttable.setRowHeight(25);\n\t\t\t\t\tscrollPane.setViewportView(table);\n\t\t\t\t\ttable.setEnabled(false);\n\t\t\t\t}\n\t\t\t\telse if(comboBox.getSelectedIndex() == 4)\n\t\t\t\t{\n\t\t\t\t//\tSystem.out.println(content);\n\t\t\t\t\tString[][] data=Select.getdepartments(content);\n\t\t\t\t\ttable = new JTable(data,dataTitle);\n\t\t\t\t\ttable.setFont(new Font(\"宋体\", Font.PLAIN, 18));\n\t\t\t\t\ttable.setRowHeight(25);\n\t\t\t\t\tscrollPane.setViewportView(table);\n\t\t\t\t\ttable.setEnabled(false);\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\n\t}", "private void settings() {\n mainTitle = makeLabel(\"Settings\", true);\n add(mainTitle);\n add(content);\n add(diffSlider);\n add(colourChooser);\n add(mainB);//button to main menu\n diffSlider.requestFocus();\n }", "public UI() {\n initComponents();\n }", "private void initGui() {\n initSeekBar();\n initDateFormatSpinner();\n GuiHelper.defineButtonOnClickListener(view, R.id.settings_buttonSave, this);\n\n }", "public Main() {\n //\n if (DEMO_MODE == false) {\n companySettings();\n }\n //\n initComponents();\n //\n if (DEMO_MODE) {\n prefil_demo_values();\n }\n //\n if (SHOW_AT_START) { // [2020-06-09]\n prefil_show_at_start_values();\n }\n //\n this.controller = new Controller(this, PROPS_MAIN);\n //\n initOther();\n buildComboList();\n buildObligatoryComboList();\n addJComboListeners();\n setFontJBoxesTitleBorders();\n //\n if (DEMO_MODE || (SHOW_AT_START && start_up_parameters_not_empty())) {\n demoAutoStart();\n }\n //\n if (COMPANY_NAME.equals(CONSTANTS.COMPANY_NAME_CEAT)) {\n //This because \"TEST NAME\" is not obligatory for CEAT and therefore i remove the \"*\" from \"TEST NAME*\"\n TitledBorder b = (TitledBorder) jPanel5.getBorder();\n Font f = b.getTitleFont();\n TitledBorder b_ = (TitledBorder) jPanel1.getBorder();\n b_.setTitleFont(f);\n b_.setTitle(\"TEST NAME\");\n //\n jComboBoxTestName.setEnabled(false);\n jComboBoxBatch.setEnabled(false);\n //\n jButton8.setVisible(false);\n jButton9.setVisible(false);\n //\n jButton_Prev_test_name.setEnabled(false);\n jButton_Next_test_name.setEnabled(false);\n //\n Font currentFont = jComboBoxOrder.getFont();\n Font newFont = currentFont.deriveFont(currentFont.getSize() * 0.75F);\n jComboBoxOrder.setFont(newFont);\n //\n }\n //\n hideTemporaryUntilFixed();\n //\n }", "private void createUIComponents() {\n valueTextField = new JTextField();\n FixedService f = new FixedService();\n valueTextField.setText(\"£ \" + f.getPrice(\"Fixed\"));\n valueTextField.setBorder(new EmptyBorder(0, 0, 0, 0));\n }", "private void createContents()\n\t{\n\t\tframe = new JFrame();\n\t\tframe.setResizable(false);\n\t\tframe.getContentPane().setLayout(null);\n\t\tframe.setBounds(435, 20, 387, 585);\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\n\t\t// final JLabel inputPortLabel =\n\t\t// DefaultComponentFactory.getInstance().createTitle(\"INPUT PORT...\");\n\t\t// inputPortLabel.setBounds(0, 0, 370, 39);\n\t\t// inputPortLabel.setHorizontalAlignment(SwingConstants.CENTER);\n\t\t// inputPortLabel.setFont(new Font(\"Myriad\", Font.BOLD, 12));\n\t\t// frame.getContentPane().add(inputPortLabel);\n\n\t\tInputPorttextField_1 = new JTextField();\n\t\tInputPorttextField_1.setBounds(338, 44, 32, 28);\n\t\tframe.getContentPane().add(InputPorttextField_1);\n\t\tInputPorttextField_1.setVisible(false);\n\n\t\tTypetextField = new JTextField();\n\t\tTypetextField.setBounds(335, 440, 40, 28);\n\t\tframe.getContentPane().add(TypetextField);\n\t\tTypetextField.setVisible(false);\n\n\t\tcreateInputPortComboBox();\n\n\t\tsensorNameLabel = DefaultComponentFactory.getInstance().createLabel(\n\t\t\t\t\"SENSOR NAME\");\n\t\tsensorNameLabel.setBounds(40, 91, 90, 16);\n\t\tframe.getContentPane().add(sensorNameLabel);\n\n\t\tSensorNametextField = new JTextField();\n\t\tSensorNametextField.setBounds(136, 85, 111, 28);\n\t\tSensorNametextField.addKeyListener(new RFIDNameListener(this));\n\t\tframe.getContentPane().add(SensorNametextField);\n\t\t\n\t\t\n\t\tcomponents.add(SensorNametextField);\n\n\t\tJLabel reactionLabel = DefaultComponentFactory.getInstance().createLabel(\n\t\t\t\"REACTION\");\n\t\treactionLabel.setBounds(40, 55, 90, 16);\n\t\tframe.getContentPane().add(reactionLabel);\n\t\t\n\t\treactionSlider = new JSlider();\n\t\treactionSlider.setMinimum(0);\n\t\treactionSlider.setMaximum(1000);\n\t\treactionSlider.setValue(10);\n\t\treactionSlider.setBounds(100, 55, 150, 16);\n\t\treactionSlider.setVisible(true);\n\t\treactionSlider.addChangeListener(new ReactionListener(this));\n\t\tframe.getContentPane().add(reactionSlider);\n\n\t\tradioCheckBox = new JCheckBox();\n\t\tradioCheckBox.setHorizontalTextPosition(SwingConstants.LEFT);\n\t\tradioCheckBox.setHorizontalAlignment(SwingConstants.LEADING);\n\t\tradioCheckBox.setSelected(true);\n\t\tradioCheckBox.setText(\"RATIOMETRIC\");\n\t\tradioCheckBox.setBounds(251, 55, 123, 16);\n\t\tradioCheckBox.addChangeListener(new RadiometricListener(this));\n\t\tframe.getContentPane().add(radioCheckBox);\n\n\t\tactiveCheckBox = new JCheckBox();\n\t\tactiveCheckBox.setHorizontalTextPosition(SwingConstants.LEFT);\n\t\tactiveCheckBox.setHorizontalAlignment(SwingConstants.LEADING);\n\t\tactiveCheckBox.setSelected(true);\n\t\tactiveCheckBox.setText(\"ACTIVE\");\n\t\tactiveCheckBox.setBounds(251, 75, 123, 16);\n\t\tactiveCheckBox.addChangeListener(new ActiveListener(this));\n\t\tframe.getContentPane().add(activeCheckBox);\n\n\t\tinvertCheckBox = new JCheckBox();\n\t\tinvertCheckBox.setHorizontalTextPosition(SwingConstants.LEFT);\n\t\tinvertCheckBox.setHorizontalAlignment(SwingConstants.LEADING);\n\t\tinvertCheckBox.setSelected(false);\n\t\tinvertCheckBox.setText(\"INVERT\");\n\t\tinvertCheckBox.setBounds(251, 95, 123, 16);\n\t\tinvertCheckBox.addChangeListener(new InvertListener(this));\n\t\tframe.getContentPane().add(invertCheckBox);\n\t\t\n\t\tcomponents.add(invertCheckBox);\n\n\t\treleaseCheckBox = new JCheckBox();\n\t\treleaseCheckBox.setToolTipText(\"\");\n\t\treleaseCheckBox.setSelected(true);\n\t\treleaseCheckBox.setHorizontalTextPosition(SwingConstants.LEFT);\n\t\treleaseCheckBox.setText(\"RELEASE\");\n\t\treleaseCheckBox.setBounds(251, 155, 123, 23);\n\t\treleaseCheckBox.addChangeListener(new ReleaseListener(this));\n\t\tframe.getContentPane().add(releaseCheckBox);\n\t\t\n\t\tcomponents.add(releaseCheckBox);\n\n\t\tinoutValueLabel = new JLabel();\n\t\tinoutValueLabel.setText(\"INPUT VALUE\");\n\t\tinoutValueLabel.setBounds(150, 123, 90, 16);\n\t\tinoutValueLabel.setVisible(false);\n\t\tframe.getContentPane().add(inoutValueLabel);\n\t\t//\t\t\n\t\tframe.getContentPane().add(inputLevel);\n\t\t\n\t\tcomponents.add(inputLevel);\n\t\t//\n\t\t// slider_textField = new JTextField();\n\t\t// slider_textField.setText(\"120\");\n\t\t// //slider_textField.setEditable(false);\n\t\t// slider_textField.setBounds(135, 115, 46, 28);\n\t\t// frame.getContentPane().add(slider_textField);\n\t\t// final JSlider slider = new JSlider();\n\t\t// slider.addChangeListener(new ChangeListener() {\n\t\t// public void stateChanged(final ChangeEvent e) {\n\t\t//\t\t\t\t\n\t\t// int value = slider.getValue();\n\t\t// String str = Integer.toString(value);\n\t\t// slider_textField.setText(str);\n\t\t// }\n\t\t// });\n\t\t// slider.setPaintTrack(true);\n\t\t// slider.setMinorTickSpacing(1);\n\t\t// slider.setMajorTickSpacing(1);\n\t\t// slider.setToolTipText(\"\");\n\t\t// slider.setComponentPopupMenu(null);\n\t\t// slider.setDoubleBuffered(false);\n\t\t// slider.setValue(120);\n\t\t// slider.setPaintTicks(false);\n\t\t// slider.setPaintLabels(false);\n\t\t// slider.setMaximum(1000);\n\t\t// slider.setBounds(175, 115, 155, 29);\n\t\t// frame.getContentPane().add(slider);\n\t\t//\n\t\t//\t\t\n\t\t//\n\t\t// final JButton testButton = new JButton();\n\t\t//\t\t\n\t\t// testButton.setText(\"Test\");\n\t\t// testButton.setBounds(225, 150, 120, 29);\n\t\t// frame.getContentPane().add(testButton);\n\n\t\tfinal JPanel panel = createPanel1();\n\t\tfinal JPanel panel_1 = createPanel2();\n\n\t\ttriggerCheckBox = new JCheckBox();\n\n\t\ttriggerCheckBox.setSelected(true);\n\t\ttriggerCheckBox.setHorizontalTextPosition(SwingConstants.LEFT);\n\t\ttriggerCheckBox.setText(\"TRIGGER\");\n\t\ttriggerCheckBox.setBounds(35, 155, 129, 23);\n\t\tframe.getContentPane().add(triggerCheckBox);\n\n\t\ttriggerCheckBox.addChangeListener(new ChangeListener()\n\t\t{\n\t\t\tpublic void stateChanged(final ChangeEvent e)\n\t\t\t{\n\t\t\t\tif (triggerCheckBox.isSelected())\n\t\t\t\t{\n\t\t\t\t\tpanel.setEnabled(true);\n\t\t\t\t\tpanel_1.setEnabled(false);\n\t\t\t\t\tpanel.setVisible(true);\n\t\t\t\t\tpanel_1.setVisible(false);\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tpanel.setEnabled(false);\n\t\t\t\t\tpanel_1.setEnabled(true);\n\t\t\t\t\tpanel.setVisible(false);\n\t\t\t\t\tpanel_1.setVisible(true);\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\t\n\t\tcomponents.add(triggerCheckBox);\n\n\t\t// //to get all the value here....\n\t\t// testButton.addMouseListener(new MouseAdapter() {\n\t\t// public void mouseClicked(final MouseEvent e) {\n\t\t// //...\n\t\t// int inputPort = Integer.valueOf(InputPorttextField_1.getText());\n\t\t// String sensorName = SensorNametextField.getText();\n\t\t// boolean isActive = activeCheckBox.isSelected();\n\t\t// int inputValue = Integer.valueOf(slider_textField.getText());\n\t\t//\t\t\t\t\n\t\t// if (triggerCheckBox.isSelected()) {\n\t\t// //getting the values of the first panel\n\t\t// boolean suspend = suspendCheckBox.isSelected();\n\t\t// int timems = Integer.valueOf(TimePanel1textField_2.getText());\n\t\t// int sensRange =\n\t\t// Integer.valueOf(maxSensPanel1textField.getText())-Integer.valueOf(minSensPanel1textField.getText());\n\t\t// int channel = Integer.valueOf(comboBox.getSelectedItem().toString());\n\t\t// String key = KeyPanel1textField_3.getText();\n\t\t//\t\t\t\t\t\n\t\t// }\n\t\t// else {\n\t\t// //getting the values of the 2nd panel\n\t\t// int module =\n\t\t// Integer.valueOf(comboBox_1.getSelectedItem().toString());\n\t\t// boolean active = activeCheckBox_1.isSelected();\n\t\t// boolean latency = latencyCheckBox.isSelected();\n\t\t// int timems = Integer.valueOf(TimePanel2textField_4.getText());\n\t\t// int sensRange =\n\t\t// Integer.valueOf(maxSensPanel2textField.getText())-Integer.valueOf(minSensPanel2textField.getText());\n\t\t// String type = TypetextField.getText();\n\t\t// int channel =\n\t\t// Integer.valueOf(comboBox_2.getSelectedItem().toString());\n\t\t// String key = KeyPanel2textField.getText();\n\t\t//\t\t\t\t\n\t\t// }\n\t\t// }\n\t\t// });\n\n\t}", "public void initViews() {\n et_overrideTeamNum = findViewById(R.id.et_overrideTeamNum);\n\n rb_red = findViewById(R.id.red);\n rb_blue = findViewById(R.id.blue);\n }", "protected void createSettingsComponents() {\r\n periodTimeComponent = new JSpinner( new SpinnerNumberModel( DEFAULT_PERIOD_TIME, MIN_PERIOD_TIME, MAX_PERIOD_TIME, 1 ) );\r\n maxNumberOfPlayersComponent = new JSpinner( new SpinnerNumberModel( DEFAULT_MAX_NUMBER_OF_PLAYERS, MIN_MAX_NUMBER_OF_PLAYERS, MAX_MAX_NUMBER_OF_PLAYERS, 1 ) );\r\n mapWidthComponent = new JComboBox( MAP_WIDTH_NAMES );\r\n mapHeightComponent = new JSpinner( new SpinnerNumberModel( DEFAULT_MAP_HEIGHT, MIN_MAP_HEIGHT, MAX_MAP_HEIGHT, 1 ) );\r\n welcomeMessageComponent = new JTextArea( 10, 20 );\r\n gameTypeComponent = new JComboBox( GAME_TYPE_NAMES );\r\n isKillLimitComponent = new JCheckBox( \"Kill limit:\" );\r\n killLimitComponent = new JSpinner( new SpinnerNumberModel( DEFAULT_KILL_LIMIT, MIN_KILL_LIMIT, MAX_KILL_LIMIT, 1 ) );\r\n isTimeLimitComponent = new JCheckBox( \"Time limit:\" );\r\n timeLimitComponent = new JSpinner( new SpinnerNumberModel( DEFAULT_TIME_LIMIT, MIN_TIME_LIMIT, MAX_TIME_LIMIT, 1 ) );\r\n passwordComponent = new JTextField( 10 );\r\n amountOfWallRubblesComponent = new JSpinner( new SpinnerNumberModel( DEFAULT_AMOUNT_OF_WALL_RUBBLES, MIN_AMOUNT_OF_WALL_RUBBLES, MAX_AMOUNT_OF_WALL_RUBBLES, 1 ) );\r\n amountOfBloodComponent = new JSpinner( new SpinnerNumberModel( DEFAULT_AMOUNT_OF_BLOOD, MIN_AMOUNT_OF_BLOOD, MAX_AMOUNT_OF_BLOOD, 1 ) );\r\n amountOfWallComponent = new JSpinner( new SpinnerNumberModel( DEFAULT_AMOUNT_OF_WALL, MIN_AMOUNT_OF_WALL, MAX_AMOUNT_OF_WALL, 1 ) );\r\n amountOfStoneComponent = new JSpinner( new SpinnerNumberModel( DEFAULT_AMOUNT_OF_STONE, MIN_AMOUNT_OF_STONE, MAX_AMOUNT_OF_STONE, 1 ) );\r\n amountOfWaterComponent = new JSpinner( new SpinnerNumberModel( DEFAULT_AMOUNT_OF_WATER, MIN_AMOUNT_OF_WATER, MAX_AMOUNT_OF_WATER, 1 ) );\r\n }", "private void addComponents()\n\t{\n\t\theaderPanel = new JPanel();\n\t\tfooterPanel = new JPanel();\n\t\tfunctionPanel = new JPanel();\n\t\ttextPanel = new JPanel();\n\t\t\t\t\t\t\n\t\teToPower = new JButton(\"\\u212F\\u207F\");\n\t\ttwoPower = new JButton(\"2\\u207F\");\n\t\tln = new JButton(\"ln\");\n\t\txCube = new JButton(\"x\\u00B3\");\n\t\txSquare = new JButton(\"x\\u00B2\");\n\t\tdel = new JButton(\"\\u2190\");\n\t\tcubeRoot = new JButton(\"\\u221B\");\n\t\tC = new JButton(\"c\");\n\t\tnegate = new JButton(\"\\u00B1\");\n\t\tsquareRoot = new JButton(\"\\u221A\");\n\t\tnine = new JButton(\"9\");\n\t\teight = new JButton(\"8\");\n\t\tseven = new JButton(\"7\");\n\t\tsix = new JButton(\"6\");\n\t\tfive = new JButton(\"5\");\n\t\tfour = new JButton(\"4\");\n\t\tthree = new JButton(\"3\");\n\t\ttwo = new JButton(\"2\");\n\t\tone = new JButton(\"1\");\n\t\tzero = new JButton(\"0\");\n\t\tdivide = new JButton(\"/\");\n\t\tmultiply = new JButton(\"*\");\n\t\tpercent = new JButton(\"%\");\n\t\treciprocal = new JButton(\"1/x\");\n\t\tsubtract = new JButton(\"-\");\n\t\tadd = new JButton(\"+\");\n\t\tdecimalPoint = new JButton(\".\");\n\t\tequals = new JButton(\"=\");\n\t\tPI = new JButton(\"\\u03C0\");\n\t\te = new JButton(\"\\u212F\");\n\t\t\n\t\tdefaultButtonBackground = C.getBackground ( );\n\t\tdefaultButtonForeground = C.getForeground ( );\n\t\t\n\t\tbuttonFont = new Font(\"SansSerif\", Font.PLAIN, BUTTONFONTSIZE);\n\t\tentryFont = new Font(\"SansSerif\", Font.PLAIN, ENTRYFONTSIZE);\n\t\titalicButtonFont = new Font (\"SanSerif\", Font.ITALIC, BUTTONFONTSIZE);\n\t\tentry = new JTextField(\"0\", 1);\n\t\t\t\t\n\t\tadd.setFont(buttonFont);\n\t\tsubtract.setFont(buttonFont);\n\t\tequals.setFont(buttonFont);\n\t\tdecimalPoint.setFont(buttonFont);\n\t\tmultiply.setFont(buttonFont);\n\t\tdivide.setFont(buttonFont);\n\t\tnegate.setFont(buttonFont);\n\t\tpercent.setFont(buttonFont);\n\t\tdel.setFont(buttonFont);\n\t\tsquareRoot.setFont(buttonFont);\n\t\teToPower.setFont(buttonFont);\n\t\ttwoPower.setFont(buttonFont);\n\t\tln.setFont(buttonFont);\n\t\txCube.setFont(buttonFont);\n\t\txSquare.setFont(buttonFont);\n\t\tC.setFont(buttonFont);\n\t\tcubeRoot.setFont(buttonFont);\n\t\treciprocal.setFont(buttonFont);\n\t\tnine.setFont(buttonFont);\n\t\teight.setFont(buttonFont);\n\t\tseven.setFont(buttonFont);\n\t\tsix.setFont(buttonFont);\n\t\tfive.setFont(buttonFont);\n\t\tfour.setFont(buttonFont);\n\t\tthree.setFont(buttonFont);\n\t\ttwo.setFont(buttonFont);\n\t\tone.setFont(buttonFont);\n\t\tzero.setFont(buttonFont);\n\t\tPI.setFont(buttonFont);\n\t\te.setFont(italicButtonFont);\n\t\t\n\t\t\n\t\tentry.setFont(entryFont);\n\t\tentry.setHorizontalAlignment (JTextField.RIGHT);\n\t\tentry.grabFocus ( );\n\t\tentry.setHighlighter(null);\n\t\tentry.selectAll ( );\n\t\t\n\t\tincognito = false;\n\t}", "public void init()\n \t{\n \t\tTechEditWizardData data = wizard.getTechEditData();\n \t\tlength.setText(Double.toString(data.getGateLength()));\n\t\twidth.setText(Double.toString(data.getGateWidth()));\n \t\tcontactSpacing.setText(Double.toString(data.getGateContactSpacing()));\n \t\tspacing.setText(Double.toString(data.getGateSpacing()));\n \t}", "public CreateGUI() throws IOException{\r\n\t\tthis.setFocusable(false);\r\n\t\tthis.setTitle(\"Dance Dance Revolution - 201B Edition\");\r\n\t\tthis.setSize(800, 600);\t\t \t\r\n\t\tthis.setLocation(100, 100); \t\r\n\t\tthis.setVisible(true);\r\n\t\tthis.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n\t\tthis.setResizable(false);\r\n\t\tcp = getContentPane();\r\n\t\tcp.setBackground(Color.black);\r\n\t\tarrowlistener = new ArrowListener();\r\n\t\tscore = new Score();\r\n\t\tcombo = new ComboImage();\r\n\t}", "public void InitUI() {\n this.mSetData = new CanDataInfo.CAN_Msg();\n this.mDoorInfo = new CanDataInfo.CAN_DoorInfo();\n setBackgroundResource(R.drawable.can_vw_carinfo_bg);\n this.mDoorIcons = new CustomImgView[6];\n if (MainSet.GetScreenType() == 5) {\n InitUI_1280x480();\n } else {\n InitUI_1024x600();\n }\n this.mOilItem.setText(TXZResourceManager.STYLE_DEFAULT);\n this.mTempItem.setText(TXZResourceManager.STYLE_DEFAULT);\n this.mElctricItem.setText(TXZResourceManager.STYLE_DEFAULT);\n this.mTrunkUpItem.setText(TXZResourceManager.STYLE_DEFAULT);\n this.mParkingItem.setText(TXZResourceManager.STYLE_DEFAULT);\n this.mXhlcItem.setText(TXZResourceManager.STYLE_DEFAULT);\n this.mRPMItem.setText(TXZResourceManager.STYLE_DEFAULT);\n this.mSpeedItem.setText(TXZResourceManager.STYLE_DEFAULT);\n this.mDistanceItem.setText(TXZResourceManager.STYLE_DEFAULT);\n this.mLqywdItemTxt.setText(TXZResourceManager.STYLE_DEFAULT);\n }" ]
[ "0.72141093", "0.6989192", "0.6791711", "0.6656925", "0.6540011", "0.6411128", "0.63722664", "0.6352401", "0.6331949", "0.6318892", "0.630347", "0.63009334", "0.6295451", "0.62911224", "0.6262705", "0.6231302", "0.62261665", "0.62213427", "0.6220638", "0.62003374", "0.61984825", "0.6192632", "0.61924446", "0.617835", "0.6170739", "0.6158227", "0.6146735", "0.61372364", "0.61351985", "0.6132067", "0.61293405", "0.610916", "0.6102717", "0.60847074", "0.60795677", "0.6067385", "0.60592955", "0.60571563", "0.6051686", "0.60468197", "0.6041414", "0.6031578", "0.60221964", "0.60221964", "0.60140306", "0.60086584", "0.600354", "0.59988326", "0.5996905", "0.59941334", "0.59896666", "0.59759694", "0.5965856", "0.5965101", "0.59649384", "0.59647214", "0.5961275", "0.59577477", "0.5956204", "0.5953427", "0.5949805", "0.5941862", "0.5933038", "0.5925515", "0.5924732", "0.59186155", "0.59139687", "0.59134454", "0.5911764", "0.5909134", "0.59085995", "0.5907647", "0.58985823", "0.58740455", "0.5873102", "0.5872651", "0.58661157", "0.58589506", "0.5855954", "0.5855541", "0.58555156", "0.58535385", "0.58532727", "0.5848458", "0.58479965", "0.5837655", "0.5837039", "0.58360106", "0.58338124", "0.58328253", "0.58284277", "0.5824002", "0.5819971", "0.58185214", "0.58181596", "0.5811329", "0.58079207", "0.5807795", "0.5806744", "0.58016723", "0.58012027" ]
0.0
-1
This method handles the mouse double click event on any graphic object and in the graphic canvas
public void mouseDblClicked(GraphicObject graphicObject, Event event) { /** if it's a polyline, then we close it's path and therefore finish it */ if(action.isPolyline() && (curr_obj != null)) { ((Path)this.curr_obj).closePath(); curr_obj = null; aux_obj = null; /** if the user double clicked on a text object, a textbox or the text itself, this method spawns a Textarea above the text in the canvas so that the user can edit the text that was created., */ } else if(action.isSelect() && (graphicObject != null) && (graphicObject.getType() == 7 || graphicObject.getType() == 8) ) { this.curr_obj = graphicObject; /** TextArea initialization */ this.editor = new TextArea(); this.editor.setWidth((int)(graphicObject.getBounds().getWidth()+20)+"px"); this.editor.setHeight((int)(graphicObject.getBounds().getHeight()+20)+"px"); if(graphicObject.getType() == 7) { this.editor.setText( ((Text)graphicObject).getText() ); } else { this.editor.setText( ((TextBox)graphicObject).text.getText() ); } /** We add a keyboard listener to handle the Esc key. In the event of a Esc key, the TextArea should disapear and the text object should be updated. */ this.editor.addKeyboardListener(new KeyboardListenerAdapter() { public void onKeyDown(Widget sender, char keyCode, int modifiers) { if (keyCode == (char) KEY_ESCAPE) { editor.cancelKey(); aux_obj = null; aux_obj = new Text(editor.getText()); if(curr_obj.getType() == 7) { ((Text)aux_obj).setFont( ((Text)curr_obj).getFont()); addTextObject(aux_obj, (int)curr_obj.getX(), (int)curr_obj.getY()); canvas.remove(((Text)curr_obj).bounder); } else { ((Text)aux_obj).setFont( ((TextBox)curr_obj).text.getFont()); addTextObject(aux_obj, (int)((TextBox)curr_obj).text.getX(), (int)((TextBox)curr_obj).text.getY()); canvas.remove(((TextBox)curr_obj).text); } canvas.remove(curr_obj); curr_obj = null; curr_obj = new TextBox(aux_obj.getBounds(), (Text)aux_obj); addTextBox(curr_obj, (int)aux_obj.getBounds().getX(), (int)aux_obj.getBounds().getY()); ((Text)aux_obj).bounder = (TextBox)curr_obj; Color textColor = new Color(aux_obj.getFillColor().getRed(), aux_obj.getFillColor().getGreen(), aux_obj.getFillColor().getBlue(), 0); curr_obj.setFillColor(textColor); curr_obj.setStroke(textColor, 1); aux_obj = null; curr_obj = null; apanel.remove(editor); editor = null; } } }); this.apanel.add(editor, (int)this.curr_obj.getX() + this.canvas.getAbsoluteLeft() - Window.getScrollLeft() - 2, (int)this.curr_obj.getY() + this.canvas.getAbsoluteTop() - Window.getScrollTop() - 2); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n \tpublic void mouseDoubleClicked(MouseEvent me) {\n \t}", "public abstract void mouseDoubleClicked(MouseDoubleClickedEvent event);", "@Override\n\t\t\tpublic void mouseDoubleClick(MouseEvent arg0) {\n\t\t\t\t\n\t\t\t}", "public void mouseDoubleClick(MouseEvent arg0) {\n \n \t\t\t\t\t}", "@Override\r\n\t\t\tpublic void mouseDoubleClick(MouseEvent arg0) {\n\r\n\t\t\t}", "@Override\n\tpublic void mouseDoubleClick(MouseEvent arg0) {\n\n\t}", "@Override\n public void mouseDoubleClick(MouseEvent me) {\n }", "@Override\n\t\t\tpublic void mouseDoubleClick(MouseEvent e) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void mouseDoubleClick(MouseEvent e) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void mouseDoubleClick(MouseEvent e) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void mouseDoubleClick(MouseEvent e) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void mouseDoubleClick(MouseEvent e) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void mouseDoubleClick(MouseEvent e) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void mouseDoubleClick(MouseEvent e) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void mouseDoubleClick(MouseEvent e) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void mouseDoubleClick(MouseEvent e) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void mouseDoubleClick(MouseEvent e) {\n\t\t\t\t\n\t\t\t}", "@Override\r\n\t\t\tpublic void mouseDoubleClick(MouseEvent e) {\n\t\t\t\t\r\n\t\t\t}", "public void doubleClick(MouseEvent evt)\n {\n final MouseEvent event = evt;\n for (SelectableGraphElement element : elements) {\n element.doubleClick(event);\n } \n }", "@Override\n \t\tprotected void onMouseDoubleClick(MouseEvent e) {\n \t\t}", "protected boolean dealWithMouseDoubleClicked(IFigure figure,\n int button,\n int x,\n int y,\n int state)\n {\n setUpMouseState(MOUSE_DOUBLE_CLICKED);\n return true;\n }", "public void mouseDoubleClick(org.eclipse.swt.events.MouseEvent arg0) {\n\n }", "@Override\n public void mouseClicked(MouseEvent e) {\n if (e.getClickCount() == 2) {\n getDoubleClick();\n }\n }", "public void mouseClicked(MouseEvent e) {\n int modifiers = e.getModifiers();\n int clickCount = e.getClickCount();\n Point point = e.getPoint();\n \n if (super.toolHandler == null) {\n return;\n } else if (!super.toolHandler.supportsTool(ToolBox.TOOL_POINTER)) { // _POINTER because double click should be supported by all that supports the pointer tool.\n return;\n }\n \n if ((modifiers & MouseEvent.BUTTON1_MASK) != 0) {\n if (clickCount == 2) {\n super.toolHandler.doubleClick(point);\n }\n }\n }", "void mouseClicked(double x, double y, MouseEvent e );", "@Override\n public void mouseReleased(MouseEvent e) {\n\n // 2D mode\n if (getChart().getView().is2D()) {\n View view = getChart().getView();\n applyMouse2DSelection(view);\n }\n }", "void onMouseClicked(MouseEventContext mouseEvent);", "protected void userDrawing(MouseEvent e){\n\t}", "@DISPID(-2147412103)\n @PropGet\n java.lang.Object ondblclick();", "public void mouseClicked(MouseEvent mEvent) \n {\n /* don't do anything while game running */\n if(GAME_RUNNING)\n return;\n\n /* only respond to button 1 */\n if(mEvent.getButton() != MouseEvent.BUTTON1)\n return;\n\n /* TODO: remove debug msg */\n\t\t//System.out.println(\"Mouse clicked on the \"+ mEvent.getComponent().getClass().getName() +\" @ \"+ mEvent.getX() + \", \" + mEvent.getY());\n\n if(mEvent.getComponent() instanceof GameCanvas)\n {\n Widget clickedWidget = timWorld.grabWidget(mEvent.getX(), mEvent.getY());\n switch(SELECT_MODE)\n {\n //=================\n case NONE:\n //if over a non-locked widget, make it new selection\n if(clickedWidget != null && clickedWidget.isLocked() == false)\n {\n selectedWidget = clickedWidget;\n SELECT_MODE = SelectMode.SELECTED;\n canvas.repaint();\n }\n break;\n //=================\n case SELECTED:\n if(clickedWidget == null || clickedWidget.isLocked() == true)\n {\n /* clicked on no widget, or on a locked widget \n -> deselect current widget */\n selectedWidget = null;\n SELECT_MODE = SelectMode.NONE;\n canvas.repaint();\n }\n else if(clickedWidget == selectedWidget)\n {\n /* clicked on currently selected widget\n -> pick it up and start dragging */\n \n // store click offset\n clickOffsetX = selectedWidget.getPosition().getX() - mEvent.getX();\n clickOffsetY = selectedWidget.getPosition().getY() - mEvent.getY();\n \n // start dragging mode, changing to move cursor\n SELECT_MODE = SelectMode.DRAGGING;\n DRAG_TYPE = DragType.CLICK;\n\n canvas.setCursor(Cursor.getPredefinedCursor(Cursor.MOVE_CURSOR));\n canvas.repaint();\n }\n else\n {\n /* clicked on an unlocked widget other than currently selected widget\n -> make this widget the new selection */\n selectedWidget = clickedWidget;\n canvas.repaint();\n }\n break;\n //=================\n case DRAGGING:\n //attempt to move widget, stop dragging if successful, keep widget selected\n if(timWorld.moveWidget(selectedWidget, mEvent.getX() + clickOffsetX, mEvent.getY() + clickOffsetY))\n {\n /* successfully moved to new loc, stop dragging but keep selected */\n SELECT_MODE = SelectMode.SELECTED;\n \n /* repaint canvas and play sound */\n canvas.repaint();\n \t\t\t if (pf.getPlayerSetting().getSound() == PlayerSetting.Setting.ON)\n \t\t\t {\n \t\t\t\t\tap.playGoodSound();\n \t\t\t }\n\n //TODO: remove debug msg\n // System.out.println(\"mouseReleased successfully moved \" + selectedWidget.getName() + \" to \" + (mEvent.getX() + clickOffsetX) + \", \" + (mEvent.getY() + clickOffsetY) + \", widget.getPosition returns \" + selectedWidget.getPosition());\n }\n else\n {\n /* new position no good, stop dragging */\n SELECT_MODE = SelectMode.SELECTED;\n \n /* repaint canvas and play sound */\n canvas.repaint();\n \t\t\t if (pf.getPlayerSetting().getSound() == PlayerSetting.Setting.ON)\n \t\t\t {\n \t\t\t\t\tap.playBadSound();\n \t\t\t }\n\n //TODO: remove debug msg\n \t //System.out.println(\"New position \" + (mEvent.getX() + clickOffsetX) + \", \" + (mEvent.getY() + clickOffsetY) + \" not valid for \" + selectedWidget.getName() + \", leaving it where it was\" + \".\");\n }\n \n //restore default cursor\n canvas.setCursor(Cursor.getDefaultCursor());\n break;\n //=================\n case ADDING:\n \t // try to move it\n \t \t if ( mEvent.getX()+clickOffsetX >= 0 && mEvent.getX()+clickOffsetX <= 780 && mEvent.getY() >= -434 &&\n \t \t timWorld.moveWidget(selectedWidget, mEvent.getX()+clickOffsetX, mEvent.getY()+clickOffsetY) )\n \t \t {\n \t // successfully moved to new position\n \t\t\t if (pf.getPlayerSetting().getSound() == PlayerSetting.Setting.ON)\n \t\t\t {\n \t\t\t\t ap.playGoodSound();\n \t\t\t }\n \n /* TODO: remove debug msg */\n \t \t\t //System.out.println(\"mouseReleased successfully moved \" + selectedWidget.getName() + \" to \" + (mEvent.getX() + clickOffsetX) + \", \" + (mEvent.getY() + clickOffsetY) + \", widget.getPosition returns \" + selectedWidget.getPosition());\n \t \n // decrement this in widget scroller\n \t ws.decreaseWidget(addedWidget);\n\n // change to selection mode\n SELECT_MODE = SelectMode.SELECTED;\n \t \t }\n \t \t else\n \t \t {\n \t // move to new pos unsuccessful\n \t\tif (pf.getPlayerSetting().getSound() == PlayerSetting.Setting.ON)\n \t\t{\n \t\t\tap.playBadSound();\n \t\t\t }\n /* TODO: remove debug msg */\n \t\t //System.out.println(\"New position \" + (mEvent.getX() + clickOffsetX) + \", \" + (mEvent.getY() + clickOffsetY) + \" not valid for \" + selectedWidget.getName() + \", returning it to widget scroller.\");\n\n SELECT_MODE = SelectMode.NONE;\n selectedWidget = null;\n \t \t }\n break;\n }\n }\n else if(mEvent.getComponent() instanceof WidgetScroller)\n {\n /* Click on widget scroller */\n switch(SELECT_MODE)\n {\n case NONE:\n case SELECTED:\n String clickedWidget = ws.getWidgetAt(pressX, pressY);\n if(clickedWidget != null)\n {\n /* clicked on an actual widget in scroller, create an instance of it and commence dragging */\n \n // TODO: check for nulls\n addedWidget = clickedWidget;\n selectedWidget = WidgetFactory.createWidget(clickedWidget);\n SELECT_MODE = SelectMode.ADDING;\n DRAG_TYPE = DragType.CLICK;\n \n /* set widget to 0,0 so its boundary will be drawn properly while dragging */\n selectedWidget.setPositionX(0.0f);\n selectedWidget.setPositionY(0.0f);\n \n clickOffsetX = 0;\n clickOffsetY = 0;\n\n canvas.setCursor(Cursor.getPredefinedCursor(Cursor.MOVE_CURSOR));\n \n /* TODO: remove debug msg */\n //System.out.println(\"Picked up \" + clickedWidget + \" from widgetscroller\");\n }\n break;\n case DRAGGING:\n /* click on widget scroller while dragging */\n //remove widget from world\n /* TODO: remove debug msg */\n //System.out.println(\"Returned \" + selectedWidget.getName() + \" to the widget scroller. (classname: \" + selectedWidget.getClass().getName() + \")\");\n\n String widgetType = selectedWidget.getClass().getName();\n ws.addWidget(widgetType.substring(widgetType.lastIndexOf(\".\")+1,widgetType.length()), 1);\n \n timWorld.removeWidget(selectedWidget);\n SELECT_MODE = SelectMode.NONE;\n selectedWidget = null;\n\n break;\n \n case ADDING:\n /* click on widget scroller while adding */\n /* just deselect widget and go back to no selection */\n SELECT_MODE = SelectMode.NONE;\n selectedWidget = null;\n break;\n }\n }\n canvas.setCursor(Cursor.getDefaultCursor());\n canvas.repaint();\n }", "@Override\r\n\tpublic void mouseClicked(MouseEvent e) {\r\n\t\tLOG.fine(\"Clicked\");\r\n\t\tif (shapeManipulator != null) {\r\n\t\t\tshapeManipulator.mouseClicked(e);\r\n\t\t}\r\n\t}", "public void mouseClicked(GraphicObject graphicObject, Event event) {\n\t\tint x, y;\n\n /** if there's no graphic Object selected, we unSelect any other that was previously selected */\n if(action.isSelect() && (graphicObject == null)) {\n\t\t\tif(curr_obj!= null) {\n this.unSelect();\n this.restoreStyle();\n }\n\t\t\t\n\t\t} else {\n\t\t\tx = DOM.eventGetClientX(event) - canvas.getAbsoluteLeft() + Window.getScrollLeft();\n\t\t\ty = DOM.eventGetClientY(event) - canvas.getAbsoluteTop() + Window.getScrollTop(); \n\t\t\t\n\t\t\t\n\t\t\tif(action.isPolyline() && curr_obj == null) {\n /* If there is no Polyline object created, starts to draw a Polyline */\n curr_obj = new Path();\n ((Path)curr_obj).moveTo(x, y);\n\n addGraphicObject( curr_obj, 0, 0);\n this.currentPath = ((Path)this.curr_obj).commands;\n\t\t\t}\n\t\t}\n\t\t\n\t}", "protected boolean dealWithMouseDoubleClick(org.eclipse.swt.events.MouseEvent e)\n {\n setUpMouseState(MOUSE_DOUBLE_CLICKED);\n return true;\n }", "void onDoubleTapEvent();", "@Override\n\tpublic boolean doDoubleClick(int x, int y) {\n\t\tint i = getSelectedThumb();\n\t\tif (i != -1) {\n\t\t\tshowColorPicker();\n\t\t\t// showJColorChooser();\n\t\t\tSwingUtilities.invokeLater(new SelectThumbRunnable(i));\n\t\t\treturn true;\n\t\t} else {\n\t\t\treturn false;\n\t\t}\n\t}", "public void mouseClicked( MouseEvent event ){}", "@Override\n public void mouseClicked(MouseEvent arg0) {\n \n }", "@Override\n\t\t\tpublic void mouseClicked(MouseEvent arg0) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void mouseClicked(MouseEvent arg0) {\n\t\t\t\t\n\t\t\t}", "public void mouseDoubleClick(MouseEvent e) {\n\t\t\t\tMOCmsgHist();\n\t\t\t}", "@Override\n\t\t\t\t\tpublic void mouseDown(MouseEvent arg0) {\n\n\t\t\t\t\t}", "@Override\n\t\t\t\t\tpublic void mouseDown(MouseEvent arg0) {\n\n\t\t\t\t\t}", "public void mouseClicked(MouseEvent e) {\n if (e.getSource() instanceof MapBean) {\n // if double (or more) mouse clicked\n if (e.getClickCount() >= 2) {\n // end of distance path\n mousePressed = false;\n // add the last point to the line segments\n segments.addElement(rPoint2);\n if (!repaintToClean) {\n // erase all line segments\n eraseLines();\n // erase the last circle\n eraseCircle();\n } else {\n ((MapBean) e.getSource()).repaint();\n }\n // cleanup\n cleanUp();\n }\n }\n }", "void mouseClicked(MouseEvent mouseEvent);", "public void mouseClicked(MouseEvent event){}", "public void mouseClicked(MouseEvent e) { \r\n }", "@Override\r\n\tpublic void onDoubleTap() {\n\t\t\r\n\t}", "@Override\n\t\t\t\t\t\tpublic void mouseDown(MouseEvent arg0) {\n\n\t\t\t\t\t\t}", "@Override\n\t\t\t\t\t\tpublic void mouseDown(MouseEvent arg0) {\n\n\t\t\t\t\t\t}", "@Override\n\t\t\t\t\t\tpublic void mouseDown(MouseEvent arg0) {\n\n\t\t\t\t\t\t}", "@Override\n\t\t\t\t\t\tpublic void mouseDown(MouseEvent arg0) {\n\n\t\t\t\t\t\t}", "@Override\n\t\t\t\t\t\tpublic void mouseDown(MouseEvent arg0) {\n\n\t\t\t\t\t\t}", "@Override\n\t\t\t\t\t\tpublic void mouseDown(MouseEvent arg0) {\n\n\t\t\t\t\t\t}", "@Override\n\t\t\t\t\t\tpublic void mouseDown(MouseEvent arg0) {\n\n\t\t\t\t\t\t}", "public abstract void mouseClicked(MouseEvent e);", "@Override\n public void mouseClicked(MouseEvent e) {\n if (e.getButton() == MouseEvent.BUTTON3) {\n if (currentDrawing == null) {\n return;\n }\n currentDrawing = null;\n canvas.repaint();\n }\n\n// start drawing\n if (currentDrawing == null) {\n currentDrawing = new Line(e.getPoint(), e.getPoint(), outlineColorProvider.getCurrentColor());\n canvas.repaint();\n return;\n }\n\n// finish drawing\n currentDrawing.setEnd(e.getPoint());\n drawingModel.add(currentDrawing);\n currentDrawing = null;\n }", "public void mouseClicked(MouseEvent e) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\tpublic void mouseClicked(MouseEvent arg0) {\n\t\t\t\n\t\t}", "@Override\n\t\tpublic void mouseClicked(MouseEvent arg0) {\n\t\t\t\n\t\t}", "@Override\r\n\t\t\tpublic void mouseClicked(MouseEvent arg0) {\n\t\t\t\t\r\n\t\t\t}", "public void mouseClicked(int ex, int ey, int button) {\r\n\t}", "public void mouseClicked(MouseEvent arg0) {\n\n\t\t\t}", "@Override\r\n public void mouseClicked(MouseEvent cMouseEvent) \r\n {\n \r\n if ( m_jKvtTartList != null && cMouseEvent.getClickCount() == 2 ) \r\n {\r\n//nIdx = m_jKvtTartList.locationToIndex( cMouseEvent.getPoint()) ;\r\n//System.out.println(\"Double clicked on Item \" + nIdx);\r\n\r\n m_jFileValasztDlg.KivKvtbaValt() ;\r\n }\r\n }", "@Override\n\t\t\tpublic void mouseClicked(MouseEvent arg0) {\n\n\t\t\t}", "@Override\n\t\t\tpublic void mouseClicked(MouseEvent arg0) {\n\n\t\t\t}", "@Override\n\t\t\tpublic void mouseClicked(MouseEvent arg0) {\n\n\t\t\t}", "@Override\n\t\t\tpublic void mouseClicked(MouseEvent arg0) {\n\n\t\t\t}", "@Override\n\t\t\tpublic void mouseClicked(MouseEvent arg0) {\n\n\t\t\t}", "@Override\n\t\t\tpublic void mouseClicked(MouseEvent arg0) {\n\n\t\t\t}", "@Override\n\t\t\tpublic void mouseClicked(MouseEvent arg0) {\n\n\t\t\t}", "public void mouseClicked(int mouseX, int mouseY, int mouse) {}", "void onRightClick(double mouseX, double mouseY);", "public void mouseClicked(MouseEvent e) {}", "public void mouseClicked(MouseEvent e) {}", "public void mouseClicked(MouseEvent e) {}", "public void mouseClicked(MouseEvent e) {}", "public void mouseClicked(MouseEvent e) {\n\t\t\t\n\t\t}", "public void mouseClicked(MouseEvent e) {\n\t\t\t\n\t\t}", "@Override\r\n\t\t\t\tpublic void mouseClicked(MouseEvent arg0) {\n\t\t\t\t\t\r\n\t\t\t\t}", "@Override\r\n\t\t\t\tpublic void mouseClicked(MouseEvent arg0) {\n\t\t\t\t\t\r\n\t\t\t\t}", "@Override\r\n\t\t\t\tpublic void mouseClicked(MouseEvent arg0) {\n\t\t\t\t\t\r\n\t\t\t\t}", "public void mouseClicked(MouseEvent arg0) {\n\t\t\n\t}", "public void mouseClicked(MouseEvent arg0) {\n\t\t\n\t}", "public void onMouseDoubleClick(final TMouseEvent mouse) {\n // Default: do nothing, pass to children instead\n for (int i = children.size() - 1 ; i >= 0 ; i--) {\n TWidget widget = children.get(i);\n if (widget.mouseWouldHit(mouse)) {\n // Dispatch to this child, also activate it\n activate(widget);\n\n // Set x and y relative to the child's coordinates\n mouse.setX(mouse.getAbsoluteX() - widget.getAbsoluteX());\n mouse.setY(mouse.getAbsoluteY() - widget.getAbsoluteY());\n widget.handleEvent(mouse);\n return;\n }\n }\n }", "public void mouseClicked(MouseEvent arg0) {\n }", "@Override\n\tpublic void mouseClicked(MouseEvent arg0) {\n\t\tif(secondClick == false) {\n\t\t\tx1 = arg0.getX();\n\t\t\ty1 = arg0.getY();\n\t\t\tsecondClick = true;\n\t\t}else {\n\t\t\tx2 = arg0.getX();\n\t\t\ty2 = arg0.getY();\n\t\t\tsecondClick = false;\n\t\t\tboundaryList.add(new Boundary(x1, y1, x2, y2));\n\t\t\trepaint();\n\t\t}\n\t}", "@Override\r\n\t\t\t\t\tpublic void mouseClicked(MouseEvent arg0) {\n\t\t\t\t\t\t\r\n\t\t\t\t\t}", "@Override\r\n\tpublic void mouseClicked(MouseEvent arg0) {\n\r\n\t}", "@Override\r\n\tpublic void mouseClicked(MouseEvent arg0) {\n\r\n\t}", "@Override\r\n public void mouseClicked(MouseEvent e) {\n\r\n }", "@Override\n\t\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t\t\t\n\t\t\t}" ]
[ "0.77614444", "0.7745689", "0.7461063", "0.7426414", "0.739129", "0.73276025", "0.72682244", "0.7263206", "0.7263206", "0.7263206", "0.7263206", "0.7263206", "0.7263206", "0.7263206", "0.7263206", "0.7263206", "0.7263206", "0.72233146", "0.72098905", "0.7191666", "0.7154846", "0.7142795", "0.694225", "0.68212783", "0.67485833", "0.6708585", "0.65733606", "0.6570681", "0.6536682", "0.6531987", "0.6486728", "0.6484546", "0.6483252", "0.64762694", "0.6475357", "0.6435053", "0.64146197", "0.6413946", "0.6413946", "0.64135605", "0.63904065", "0.63904065", "0.63883966", "0.6384593", "0.636299", "0.6361198", "0.63610476", "0.6342765", "0.6342765", "0.6342765", "0.6342765", "0.6342765", "0.6342765", "0.6342765", "0.63404983", "0.63397676", "0.6339281", "0.63379204", "0.63379204", "0.63323236", "0.63287747", "0.63286716", "0.63273126", "0.6324321", "0.6324321", "0.6324321", "0.6324321", "0.6324321", "0.6324321", "0.6324321", "0.63242686", "0.6322944", "0.63210696", "0.63210696", "0.63210696", "0.63210696", "0.6312992", "0.6312992", "0.63060117", "0.63060117", "0.63060117", "0.6304779", "0.6304779", "0.629629", "0.6292243", "0.62886184", "0.62846386", "0.62833107", "0.62833107", "0.6282718", "0.62756205", "0.62756205", "0.62756205", "0.62756205", "0.62756205", "0.62756205", "0.62756205", "0.62756205", "0.62756205", "0.62756205" ]
0.7710225
2
This method handles the mouse click event on any graphic object and in the graphic canvas
public void mouseClicked(GraphicObject graphicObject, Event event) { int x, y; /** if there's no graphic Object selected, we unSelect any other that was previously selected */ if(action.isSelect() && (graphicObject == null)) { if(curr_obj!= null) { this.unSelect(); this.restoreStyle(); } } else { x = DOM.eventGetClientX(event) - canvas.getAbsoluteLeft() + Window.getScrollLeft(); y = DOM.eventGetClientY(event) - canvas.getAbsoluteTop() + Window.getScrollTop(); if(action.isPolyline() && curr_obj == null) { /* If there is no Polyline object created, starts to draw a Polyline */ curr_obj = new Path(); ((Path)curr_obj).moveTo(x, y); addGraphicObject( curr_obj, 0, 0); this.currentPath = ((Path)this.curr_obj).commands; } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void mousePressed(GraphicObject graphicObject, Event event) {\n\t\tint x, y;\n\t\t\n\t\tx = DOM.eventGetClientX(event) - canvas.getAbsoluteLeft() + Window.getScrollLeft();\n\t\ty = DOM.eventGetClientY(event) - canvas.getAbsoluteTop() + Window.getScrollTop(); \n\t\t\n\t\tif(!action.isSelect() && !action.isPolyline() && !action.isTextBox() && !action.isPencil()) {\n\n switch(action.getAction()) {\n\n\t\t\t\n\t\t\t\tcase Action.LINE:\n\t\t\t\t\t/* Starts to draw a line */\n\t\t\t\t\tcurr_obj = new Line(0, 0, 1, 1);\n\t\t\t\t\tbreak;\n\t\t\t\tcase Action.RECTANGLE:\n\t\t\t\t\t/* Starts to draw a rectangle */\n\t\t\t\t\tcurr_obj = new Rect(1, 1);\n\t\t\t\t\tbreak;\n\t\t\t\t\n\t\t\t\tcase Action.CIRCLE:\n\t\t\t\t\t/* Starts to draw a circle */\n\t\t\t\t\tcurr_obj = new Circle(1);\n\t\t\t\t\tbreak;\n\t\t\t\t\n\t\t\t\tcase Action.ELLIPSE:\n\t\t\t\t\t/* Starts to draw a Ellipse */\n\t\t\t\t\tcurr_obj = new Ellipse(1, 1);\n\t\t\t\t\tbreak;\n\n }\n\t\t\t\n\t\t\tlastPosition[0] = x;\n\t\t\tlastPosition[1] = y;\n\t\t\t\n\t\t\tobjPosition[0] = x;\n\t\t\tobjPosition[1] = y;\n\t\t\t\n\t\t\taddGraphicObject( curr_obj, x, y);\n\t\t\t\n\t\t/* Selects a object */\n\t\t} else if(action.isSelect() && (graphicObject != null)) {\n /** If there was another object previously selected, unselect it. */\n if(curr_obj != null && graphicObject != curr_obj && graphicObject.getGroup() != transformPoints) {\n unSelect();\n }\n\n /** If we didn't click on any Transform Point, then we select the object. */\n if((graphicObject.getGroup() != transformPoints)) {\n\n if(curr_obj == null) {\n Rectangle bnds = graphicObject.getBounds();\n if(bnds != null) {\n /** This may seem strange but for some object types, mainly Paths and Ellipses, Tatami's method getBounds() will return null until the object is translated. */\n graphicObject.translate(1, 1);\n graphicObject.translate(-1, -1);\n if(bnds.getHeight() == 0 && bnds.getWidth() == 0) {\n bnds = graphicObject.getBounds();\n }\n\n this.backupStyle();\n\n fillOpacity.setValue(graphicObject.uGetFillColor().getAlpha());\n strokeOpacity.setValue(graphicObject.getStrokeColor().getAlpha());\n\n currentFillColor = graphicObject.uGetFillColor();\n DOM.setStyleAttribute(fill.getElement(), \"backgroundColor\",currentFillColor.toCss(false));\n currentFillColor.setAlpha(graphicObject.uGetFillColor().getAlpha());\n\n currentStrokeColor = graphicObject.getStrokeColor();\n DOM.setStyleAttribute(stroke.getElement(), \"backgroundColor\",currentStrokeColor.toCss(false));\n this.currentStrokeSize.setValue(graphicObject.getStrokeWidth());\n //chooseStrokeSize(graphicObject.getStrokeWidth()-1, graphicObject.getStrokeWidth());\n createTransformPoints(bnds, graphicObject);\n }\n\n curr_obj = graphicObject;\n }\n lastPosition[0] = x;\n lastPosition[1] = y;\n objPosition[0] = x;\n objPosition[1] = y;\n isMovable = true;\n\n /** if the user clicked on a transform point, this settles the variables for the object tranformation. */\n } else {\n lastPosition[0] = x;\n lastPosition[1] = y;\n isTransformable = true;\n aux_obj = curr_obj;\n\t\t\t\tcurr_obj = graphicObject;\n currRotation = 0.0;\n if(curr_obj == transformPointers[Action.ROTATE]) {\n canvas.remove(transformPoints);\n transformPoints.clear();\n }\n }\n\n /** Starts to draw a TextBox.\n * To add usability, a Text object is allways composed by a Text object and a TextBox. The TextBox is simillar to a Rectangle but it's alpha values are set to 0(it's transparent) and has the size of the text's bounds.\n * This allows the user to select a Text object more easily because now he has a rectangle with the size of the Text's boundaries to click on. The TextBox contains a link to the Text (and also the Text to the TextBox) so when a user click on it, we know which Text Object is selected and perform the given actions on it as well.\n * Note: This weren't supported by Tatami, i had to implement it.\n * */\n } else if(this.action.isTextBox()) {\n\n this.curr_obj = new com.objetdirect.tatami.client.gfx.TextBox(1.0, 1.0, null);\n this.lastPosition[0] = x;\n\t\t\tthis.lastPosition[1] = y;\n\n\t\t\tthis.objPosition[0] = x;\n\t\t\tthis.objPosition[1] = y;\n\n\t\t\tthis.addTextBox( this.curr_obj, x, y);\n } else if(this.action.isPencil()) {\n /* Starts to draw with the pencil */\n curr_obj = new Path();\n ((Path)curr_obj).moveTo(x, y);\n Color fill = new Color(this.currentFillColor.getRed(), this.currentFillColor.getGreen(), this.currentFillColor.getBlue(), 0);\n\n objPosition[0] = x;\n\t\t\tobjPosition[1] = y;\n\n curr_obj.setFillColor(fill);\n curr_obj.setStroke(currentStrokeColor, currentStrokeSize.getValue());\n canvas.add(curr_obj, 0, 0);\n /* Otherwise it adds a new point in the Polyline */\n } else if(this.action.isPolyline() && curr_obj != null) {\n this.lastPosition[0] = x;\n this.lastPosition[1] = y;\n }\n\t}", "void onMouseClicked(MouseEventContext mouseEvent);", "@Override\r\n\tpublic void mouseClicked(MouseEvent e) {\r\n\t\tLOG.fine(\"Clicked\");\r\n\t\tif (shapeManipulator != null) {\r\n\t\t\tshapeManipulator.mouseClicked(e);\r\n\t\t}\r\n\t}", "@Override\n\t\t\tpublic void mouseClicked(MouseEvent arg0) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void mouseClicked(MouseEvent arg0) {\n\t\t\t\t\n\t\t\t}", "public void mouseClicked( MouseEvent event ){}", "@Override\n\t\t\tpublic void mouseClicked(MouseEvent arg0) {\n\n\t\t\t}", "@Override\n\t\t\tpublic void mouseClicked(MouseEvent arg0) {\n\n\t\t\t}", "@Override\n\t\t\tpublic void mouseClicked(MouseEvent arg0) {\n\n\t\t\t}", "@Override\n\t\t\tpublic void mouseClicked(MouseEvent arg0) {\n\n\t\t\t}", "@Override\n\t\t\tpublic void mouseClicked(MouseEvent arg0) {\n\n\t\t\t}", "@Override\n\t\t\tpublic void mouseClicked(MouseEvent arg0) {\n\n\t\t\t}", "@Override\n\t\t\tpublic void mouseClicked(MouseEvent arg0) {\n\n\t\t\t}", "@Override\r\n\t\t\tpublic void mouseClicked(MouseEvent arg0) {\n\t\t\t\t\r\n\t\t\t}", "public void mouseClicked(MouseEvent event){}", "public void mouseClicked(MouseEvent arg0) {\n\n\t\t\t}", "void mouseClicked(MouseEvent mouseEvent);", "@Override\r\n\t\t\t\tpublic void mouseClicked(MouseEvent arg0) {\n\t\t\t\t\t\r\n\t\t\t\t}", "@Override\r\n\t\t\t\tpublic void mouseClicked(MouseEvent arg0) {\n\t\t\t\t\t\r\n\t\t\t\t}", "@Override\r\n\t\t\t\tpublic void mouseClicked(MouseEvent arg0) {\n\t\t\t\t\t\r\n\t\t\t\t}", "@Override\r\n\t\t\t\t\tpublic void mouseClicked(MouseEvent arg0) {\n\t\t\t\t\t\t\r\n\t\t\t\t\t}", "void mouseClicked(double x, double y, MouseEvent e );", "@Override\n public void mouseClicked(MouseEvent arg0) {\n \n }", "public void mouseClicked(MouseEvent e) { \r\n }", "@Override\n\t\tpublic void mouseClicked(MouseEvent arg0) {\n\t\t\t\n\t\t}", "@Override\n\t\tpublic void mouseClicked(MouseEvent arg0) {\n\t\t\t\n\t\t}", "public void mouseClicked(MouseEvent e) {\n\t\t\t\t\n\t\t\t}", "public void mouseClicked(MouseEvent e) {}", "public void mouseClicked(MouseEvent e) {}", "public void mouseClicked(MouseEvent e) {}", "public void mouseClicked(MouseEvent e) {}", "public abstract void mouseClicked(MouseEvent e);", "public void mouseClicked(int mouseX, int mouseY, int mouse) {}", "public void mouseClicked(MouseEvent arg0) {\n\t\t\n\t}", "public void mouseClicked(MouseEvent arg0) {\n\t\t\n\t}", "public void mouseClicked(MouseEvent e) {\n \t\t\r\n \t}", "public void mouseClicked(MouseEvent e) {\n\t\t\t\n\t\t}", "public void mouseClicked(MouseEvent e) {\n\t\t\t\n\t\t}", "public void mouseClicked(MouseEvent arg0) {\n }", "@Override\r\n\tpublic void mouseClicked(MouseEvent arg0) {\n\t\t\r\n\t}", "@Override\r\n\tpublic void mouseClicked(MouseEvent arg0) {\n\t\t\r\n\t}", "@Override\r\n\tpublic void mouseClicked(MouseEvent arg0) {\n\t\t\r\n\t}", "@Override\r\n\tpublic void mouseClicked(MouseEvent arg0) {\n\t\t\r\n\t}", "@Override\r\n\tpublic void mouseClicked(MouseEvent arg0) {\n\t\t\r\n\t}", "@Override\r\n\tpublic void mouseClicked(MouseEvent arg0) {\n\t\t\r\n\t}", "@Override\r\n\tpublic void mouseClicked(MouseEvent arg0) {\n\t\t\r\n\t}", "@Override\r\n\tpublic void mouseClicked(MouseEvent arg0) {\n\t\t\r\n\t}", "@Override\r\n\tpublic void mouseClicked(MouseEvent arg0) {\n\t\t\r\n\t}", "public void mouseClicked(MouseEvent evt) {\n }", "public void mouseClicked(MouseEvent evt) {\r\n }", "@Override\r\n\tpublic void mouseClicked(MouseEvent arg0) {\n\t}", "public void mouseClicked(MouseEvent e) {\n\n }", "@Override\r\n\tpublic void mouseClicked(MouseEvent arg0) {\n\r\n\t}", "@Override\r\n\tpublic void mouseClicked(MouseEvent arg0) {\n\r\n\t}", "public void mouseClicked(MouseEvent e) {\n\n }", "@Override\r\n\t\tpublic void mouseClicked(MouseEvent arg0) {\n\t\t\t\r\n\t\t\t\r\n\t\t}", "public void mouseClicked(MouseEvent event) { \n\t\t\n\t}", "public void mouseClicked(MouseEvent e) \t{\n\t\t\t\t\r\n\t\t\t}", "@Override\n\tpublic void mouseClicked(MouseEvent arg0) {\n\n\t}", "@Override\n\tpublic void mouseClicked(MouseEvent arg0) {\n\n\t}", "@Override\n\tpublic void mouseClicked(MouseEvent arg0) {\n\n\t}", "@Override\n\tpublic void mouseClicked(MouseEvent arg0) {\n\n\t}", "@Override\n\tpublic void mouseClicked(MouseEvent arg0) {\n\n\t}", "@Override\n\tpublic void mouseClicked(MouseEvent arg0) {\n\n\t}", "public void mouseClicked(MouseEvent e) {\n\t\t\t\t\t\n\t\t\t\t}", "@Override\n\tpublic void mouseClicked(MouseEvent arg0) {\n\t\t\n\t}", "@Override\n\tpublic void mouseClicked(MouseEvent arg0) {\n\t\t\n\t}", "@Override\n\tpublic void mouseClicked(MouseEvent arg0) {\n\t\t\n\t}", "@Override\n\tpublic void mouseClicked(MouseEvent arg0) {\n\t\t\n\t}", "@Override\n\tpublic void mouseClicked(MouseEvent arg0) {\n\t\t\n\t}", "@Override\n\tpublic void mouseClicked(MouseEvent arg0) {\n\t\t\n\t}", "@Override\n\tpublic void mouseClicked(MouseEvent arg0) {\n\t\t\n\t}", "@Override\n\tpublic void mouseClicked(MouseEvent arg0) {\n\t\t\n\t}", "@Override\n\tpublic void mouseClicked(MouseEvent arg0) {\n\t\t\n\t}", "@Override\n\tpublic void mouseClicked(MouseEvent arg0) {\n\t\t\n\t}", "@Override\n\tpublic void mouseClicked(MouseEvent arg0) {\n\t\t\n\t}", "@Override\n\tpublic void mouseClicked(MouseEvent arg0) {\n\t\t\n\t}", "public void mouseClicked(MouseEvent e) {\n\t\t\t\t\t\t\n\t\t\t\t\t}", "public void mouseClicked(MouseEvent e) {\n\t\t\t\t\t\t\n\t\t\t\t\t}", "public void mouseClicked(MouseEvent e) {\n\t\t\t\t\t\t\n\t\t\t\t\t}", "@Override\n\tpublic void mouseClicked(MouseEvent arg0) {\n\t}", "@Override\n\tpublic void mouseClicked(MouseEvent arg0) {\n\t}", "@Override\n\t\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t\t\t\n\t\t\t}", "@Override\r\n public void mouseClicked(MouseEvent e) {}", "@Override\r\n\t\tpublic void mouseClicked(MouseEvent arg0) {\n\r\n\t\t}", "public void mouseClicked(MouseEvent e) {\r\n\t}", "@Override\n\t\t\t\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t\t\t\t}", "public void mouseClicked(MouseEvent e) {\n\t\t\r\n\t}", "@Override\r\n public void mouseClicked(MouseEvent e) {\n }", "public abstract void mouseClicked(MouseClickedEvent event);" ]
[ "0.74732804", "0.74497664", "0.74071074", "0.73835874", "0.73835874", "0.737898", "0.7335429", "0.7335429", "0.7335429", "0.7335429", "0.7335429", "0.7335429", "0.7335429", "0.73289645", "0.73280174", "0.7325036", "0.73165625", "0.73108345", "0.73108345", "0.73108345", "0.73059195", "0.7298224", "0.7296692", "0.72813463", "0.7279582", "0.7279582", "0.726931", "0.7259983", "0.7259983", "0.7259983", "0.7259983", "0.72585565", "0.7248212", "0.72481304", "0.72481304", "0.7246225", "0.72456896", "0.72456896", "0.72444814", "0.7231475", "0.7231475", "0.7231475", "0.7231475", "0.7231475", "0.7231475", "0.7231475", "0.7231475", "0.7231475", "0.7230881", "0.72218174", "0.72157913", "0.7212074", "0.7208918", "0.7208918", "0.7207102", "0.7205729", "0.7204689", "0.7204671", "0.719614", "0.719614", "0.719614", "0.719614", "0.719614", "0.719614", "0.71818054", "0.71754485", "0.71754485", "0.71754485", "0.71754485", "0.71754485", "0.71754485", "0.71754485", "0.71754485", "0.71754485", "0.71754485", "0.71754485", "0.71754485", "0.7174069", "0.7174069", "0.7174069", "0.7154148", "0.7154148", "0.71534866", "0.71534866", "0.71534866", "0.71534866", "0.71534866", "0.71534866", "0.71534866", "0.71534866", "0.71534866", "0.71534866", "0.71534866", "0.7150318", "0.7145137", "0.7142533", "0.7139006", "0.7137281", "0.7135369", "0.7134458" ]
0.75608927
0
This method handles the mouse mouve event on any graphic object and in the graphic canvas. Mainly, this class is used to animate the object's creation so that the user can have an idea of the final object before it really creates it.
public void mouseMoved(GraphicObject graphicObject, Event event) { int x, y; x = DOM.eventGetClientX(event) - canvas.getAbsoluteLeft() + Window.getScrollLeft(); y = DOM.eventGetClientY(event) - canvas.getAbsoluteTop() + Window.getScrollTop(); if(action.isSelect()) { /** If the user clicked on the object, it then performs a translation */ if((isMovable) && (curr_obj != null)) { curr_obj.uTranslate(x - lastPosition[0], y - lastPosition[1]); transformPoints.uTranslate(x - lastPosition[0], y - lastPosition[1]); lastPosition[0] = x; lastPosition[1] = y; /** If the user has clicked on a Transformation Point, it performs the given transformation */ } else if(isTransformable) { transformObject(x, y); } /* Drawing with pencil. This adds a new point to the path */ } else if(action.isPencil() && (curr_obj != null)) { ((Path)curr_obj).lineTo(x, y); /* Drawing a line. This updates the line end point */ } else if(action.isLine() && (curr_obj != null)) { canvas.remove(curr_obj); curr_obj = new Line(0, 0, x - objPosition[0], y - objPosition[1]); addGraphicObject( curr_obj, objPosition[0], objPosition[1]); /* Drawing a rectangle. This updates the rectangle's size and position*/ } else if(action.isRectangle() && (curr_obj != null)) { canvas.remove(curr_obj); /* Lower right corner */ if(x > objPosition[0] && y > objPosition[1]) { curr_obj = new Rect(x - objPosition[0], y - objPosition[1]); addGraphicObject( curr_obj, objPosition[0], objPosition[1]); /* Upper right corner*/ } else if(x > objPosition[0] && y < objPosition[1]) { curr_obj = new Rect(x - objPosition[0], objPosition[1] - y); addGraphicObject( curr_obj, objPosition[0], y); /* Lower left corner*/ } else if(x < objPosition[0] && y > objPosition[1]) { curr_obj = new Rect(objPosition[0] - x, y - objPosition[1]); addGraphicObject( curr_obj, x, objPosition[1]); /* Upper left corner*/ } else if(x < objPosition[0] && y < objPosition[1]) { curr_obj = new Rect(objPosition[0] - x, objPosition[1] - y); addGraphicObject( curr_obj, x, y); } /* Drawing a circle. This updates the circle's diameter */ } else if(action.isCircle() && (curr_obj != null)) { int abs_x = Math.abs(x - objPosition[0]); int abs_y = Math.abs(y - objPosition[1]); canvas.remove(curr_obj); if(abs_x > abs_y) { curr_obj = new Circle(abs_x); } else { curr_obj = new Circle(abs_y); } addGraphicObject( curr_obj, objPosition[0], objPosition[1] ); /* Drawing a ellipse. This updates both ellipse's diameters */ } else if(action.isEllipse() && (curr_obj != null)) { canvas.remove(curr_obj); /* Lower right corner */ if(x > objPosition[0]+1 && y > objPosition[1]+1) { curr_obj = new Ellipse((x - objPosition[0])/2, (y - objPosition[1])/2); addGraphicObject( curr_obj, objPosition[0] + ((x - objPosition[0])/2), objPosition[1] + ((y - objPosition[1])/2)); /* Upper right corner*/ } else if(x > objPosition[0]+1 && y+1 < objPosition[1]) { curr_obj = new Ellipse((x - objPosition[0])/2, (objPosition[1] - y)/2 ); addGraphicObject( curr_obj, objPosition[0] + ((x - objPosition[0])/2), objPosition[1] - ((objPosition[1] - y)/2)); /* Lower left corner*/ } else if(x+1 < objPosition[0] && y > objPosition[1]+1) { curr_obj = new Ellipse((objPosition[0] - x)/2, (y - objPosition[1])/2); addGraphicObject( curr_obj, objPosition[0] - ((objPosition[0] - x)/2), objPosition[1] + ((y - objPosition[1])/2)); /* Upper left corner*/ } else if(x+1 < objPosition[0] && y+1 < objPosition[1]) { curr_obj = new Ellipse((objPosition[0] - x)/2, (objPosition[1] - y)/2); addGraphicObject( curr_obj, objPosition[0] - ((objPosition[0] - x)/2), objPosition[1] - ((objPosition[1] - y)/2)); } /** Drawing a TextBox. This updates the TextBox's size and position. */ } else if(action.isTextBox() && (curr_obj != null)) { canvas.remove(curr_obj); /* Lower right corner */ if(x > objPosition[0] && y > objPosition[1]) { curr_obj = new com.objetdirect.tatami.client.gfx.TextBox(x - objPosition[0], y - objPosition[1], null); addTextBox( curr_obj, objPosition[0], objPosition[1]); /* Upper right corner*/ } else if(x > objPosition[0] && y < objPosition[1]) { curr_obj = new com.objetdirect.tatami.client.gfx.TextBox(x - objPosition[0], objPosition[1] - y, null); addTextBox( curr_obj, objPosition[0], y); /* Lower left corner*/ } else if(x < objPosition[0] && y > objPosition[1]) { curr_obj = new com.objetdirect.tatami.client.gfx.TextBox(objPosition[0] - x, y - objPosition[1], null); addTextBox( curr_obj, x, objPosition[1]); /* Upper left corner*/ } else if(x < objPosition[0] && y < objPosition[1]) { curr_obj = new com.objetdirect.tatami.client.gfx.TextBox(objPosition[0] - x, objPosition[1] - y, null); addTextBox( curr_obj, x, y); } /** Drawing a polyline, this updates the current point's position */ } else if(this.action.isPolyline() && (this.curr_obj != null)) { if(DOM.eventGetButton(event) == Event.BUTTON_LEFT) { this.canvas.remove(this.curr_obj); this.curr_obj = new Path(this.currentPath); ((Path)this.curr_obj).smoothCurveTo( x, y, lastPosition[0], lastPosition[1]); this.addGraphicObject(this.curr_obj, 0, 0); } else { this.canvas.remove(this.curr_obj); this.curr_obj = new Path(this.currentPath); ((Path)this.curr_obj).lineTo(x, y); this.addGraphicObject(this.curr_obj, 0, 0); } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void mousePressed(GraphicObject graphicObject, Event event) {\n\t\tint x, y;\n\t\t\n\t\tx = DOM.eventGetClientX(event) - canvas.getAbsoluteLeft() + Window.getScrollLeft();\n\t\ty = DOM.eventGetClientY(event) - canvas.getAbsoluteTop() + Window.getScrollTop(); \n\t\t\n\t\tif(!action.isSelect() && !action.isPolyline() && !action.isTextBox() && !action.isPencil()) {\n\n switch(action.getAction()) {\n\n\t\t\t\n\t\t\t\tcase Action.LINE:\n\t\t\t\t\t/* Starts to draw a line */\n\t\t\t\t\tcurr_obj = new Line(0, 0, 1, 1);\n\t\t\t\t\tbreak;\n\t\t\t\tcase Action.RECTANGLE:\n\t\t\t\t\t/* Starts to draw a rectangle */\n\t\t\t\t\tcurr_obj = new Rect(1, 1);\n\t\t\t\t\tbreak;\n\t\t\t\t\n\t\t\t\tcase Action.CIRCLE:\n\t\t\t\t\t/* Starts to draw a circle */\n\t\t\t\t\tcurr_obj = new Circle(1);\n\t\t\t\t\tbreak;\n\t\t\t\t\n\t\t\t\tcase Action.ELLIPSE:\n\t\t\t\t\t/* Starts to draw a Ellipse */\n\t\t\t\t\tcurr_obj = new Ellipse(1, 1);\n\t\t\t\t\tbreak;\n\n }\n\t\t\t\n\t\t\tlastPosition[0] = x;\n\t\t\tlastPosition[1] = y;\n\t\t\t\n\t\t\tobjPosition[0] = x;\n\t\t\tobjPosition[1] = y;\n\t\t\t\n\t\t\taddGraphicObject( curr_obj, x, y);\n\t\t\t\n\t\t/* Selects a object */\n\t\t} else if(action.isSelect() && (graphicObject != null)) {\n /** If there was another object previously selected, unselect it. */\n if(curr_obj != null && graphicObject != curr_obj && graphicObject.getGroup() != transformPoints) {\n unSelect();\n }\n\n /** If we didn't click on any Transform Point, then we select the object. */\n if((graphicObject.getGroup() != transformPoints)) {\n\n if(curr_obj == null) {\n Rectangle bnds = graphicObject.getBounds();\n if(bnds != null) {\n /** This may seem strange but for some object types, mainly Paths and Ellipses, Tatami's method getBounds() will return null until the object is translated. */\n graphicObject.translate(1, 1);\n graphicObject.translate(-1, -1);\n if(bnds.getHeight() == 0 && bnds.getWidth() == 0) {\n bnds = graphicObject.getBounds();\n }\n\n this.backupStyle();\n\n fillOpacity.setValue(graphicObject.uGetFillColor().getAlpha());\n strokeOpacity.setValue(graphicObject.getStrokeColor().getAlpha());\n\n currentFillColor = graphicObject.uGetFillColor();\n DOM.setStyleAttribute(fill.getElement(), \"backgroundColor\",currentFillColor.toCss(false));\n currentFillColor.setAlpha(graphicObject.uGetFillColor().getAlpha());\n\n currentStrokeColor = graphicObject.getStrokeColor();\n DOM.setStyleAttribute(stroke.getElement(), \"backgroundColor\",currentStrokeColor.toCss(false));\n this.currentStrokeSize.setValue(graphicObject.getStrokeWidth());\n //chooseStrokeSize(graphicObject.getStrokeWidth()-1, graphicObject.getStrokeWidth());\n createTransformPoints(bnds, graphicObject);\n }\n\n curr_obj = graphicObject;\n }\n lastPosition[0] = x;\n lastPosition[1] = y;\n objPosition[0] = x;\n objPosition[1] = y;\n isMovable = true;\n\n /** if the user clicked on a transform point, this settles the variables for the object tranformation. */\n } else {\n lastPosition[0] = x;\n lastPosition[1] = y;\n isTransformable = true;\n aux_obj = curr_obj;\n\t\t\t\tcurr_obj = graphicObject;\n currRotation = 0.0;\n if(curr_obj == transformPointers[Action.ROTATE]) {\n canvas.remove(transformPoints);\n transformPoints.clear();\n }\n }\n\n /** Starts to draw a TextBox.\n * To add usability, a Text object is allways composed by a Text object and a TextBox. The TextBox is simillar to a Rectangle but it's alpha values are set to 0(it's transparent) and has the size of the text's bounds.\n * This allows the user to select a Text object more easily because now he has a rectangle with the size of the Text's boundaries to click on. The TextBox contains a link to the Text (and also the Text to the TextBox) so when a user click on it, we know which Text Object is selected and perform the given actions on it as well.\n * Note: This weren't supported by Tatami, i had to implement it.\n * */\n } else if(this.action.isTextBox()) {\n\n this.curr_obj = new com.objetdirect.tatami.client.gfx.TextBox(1.0, 1.0, null);\n this.lastPosition[0] = x;\n\t\t\tthis.lastPosition[1] = y;\n\n\t\t\tthis.objPosition[0] = x;\n\t\t\tthis.objPosition[1] = y;\n\n\t\t\tthis.addTextBox( this.curr_obj, x, y);\n } else if(this.action.isPencil()) {\n /* Starts to draw with the pencil */\n curr_obj = new Path();\n ((Path)curr_obj).moveTo(x, y);\n Color fill = new Color(this.currentFillColor.getRed(), this.currentFillColor.getGreen(), this.currentFillColor.getBlue(), 0);\n\n objPosition[0] = x;\n\t\t\tobjPosition[1] = y;\n\n curr_obj.setFillColor(fill);\n curr_obj.setStroke(currentStrokeColor, currentStrokeSize.getValue());\n canvas.add(curr_obj, 0, 0);\n /* Otherwise it adds a new point in the Polyline */\n } else if(this.action.isPolyline() && curr_obj != null) {\n this.lastPosition[0] = x;\n this.lastPosition[1] = y;\n }\n\t}", "public void mouseReleased(GraphicObject graphicObject, Event event) {\n int x, y;\n\n\t\tx = DOM.eventGetClientX(event) - canvas.getAbsoluteLeft() + Window.getScrollLeft();\n\t\ty = DOM.eventGetClientY(event) - canvas.getAbsoluteTop() + Window.getScrollTop();\n\n /** If we were draing with the pencil, then we need to finish it */\n\t\tif((curr_obj!= null) && action.isPencil()) {\n curr_obj = null;\n\n /** If we were with a object selected, we need to update the variables to finish the transformation or translation, given the case. */\n } else if((curr_obj != null) && action.isSelect()) {\n if(isTransformable) {\n\n /** This is needed because to increase performance during object rotation, the transform points aren't displayed. This is needed because this class is performing the Transform Points rotation and not Tatami(it doesn't works..). */\n if(curr_obj == transformPointers[Action.ROTATE]) {\n Rectangle bnds = aux_obj.getBounds();\n canvas.remove(transformPoints);\n transformPoints.clear();\n createTransformPoints(bnds, aux_obj);\n }\n\n curr_obj = aux_obj;\n isTransformable = false;\n } else {\n isMovable = false;\n }\n /** If we were creating a TextBox, then we create a TextArea to allow the user to write and handle the Esc key functionality. */\n } else if(curr_obj != null && action.isTextBox()) {\n this.action.setAction(Action.TEXT);\n\n this.editor = new TextArea();\n this.editor.setWidth((int)(this.curr_obj.getBounds().getWidth()+2)+\"px\");\n this.editor.setHeight((int)(this.curr_obj.getBounds().getHeight()+2)+\"px\");\n this.editor.setFocus(true);\n this.editor.setEnabled(true);\n this.editor.addKeyboardListener(new KeyboardListenerAdapter() {\n public void onKeyDown(Widget sender, char keyCode, int modifiers) {\n if (keyCode == (char) KEY_ESCAPE) {\n int size = Integer.parseInt(currentFontSize.getItemText(currentFontSize.getSelectedIndex()));\n int x = (int)aux_obj.getX(), y = (int)aux_obj.getY();\n editor.cancelKey();\n\n curr_obj = new Text(editor.getText());\n ((Text)curr_obj).setFont(currFont);\n addTextObject(curr_obj, x + (int)((1.0/4.0)*size), y+ (size) + (int)((1.0/4.0)*size));\n\n canvas.remove(aux_obj);\n aux_obj = new TextBox(curr_obj.getBounds(), (Text)curr_obj);\n addTextBox(aux_obj, (int)curr_obj.getBounds().getX(), (int)curr_obj.getBounds().getY());\n ((Text)curr_obj).bounder = (TextBox)aux_obj;\n\n Color textColor = new Color(curr_obj.getFillColor().getRed(), curr_obj.getFillColor().getGreen(), curr_obj.getFillColor().getBlue(), 0);\n aux_obj.setFillColor(textColor);\n aux_obj.setStroke(textColor, 1);\n\n aux_obj = null;\n curr_obj = null;\n apanel.remove(editor);\n editor = null;\n action.setAction(Action.TEXTBOX);\n }\n }\n });\n\n this.apanel.add(editor, (int)this.curr_obj.getX() + this.canvas.getAbsoluteLeft() - Window.getScrollLeft() - 2, (int)this.curr_obj.getY() + this.canvas.getAbsoluteTop() - Window.getScrollTop() - 2);\n this.aux_obj = this.curr_obj;\n this.curr_obj = null;\n \n } else if(curr_obj != null && this.action.isPolyline()) {\n this.canvas.remove(curr_obj);\n this.curr_obj = new Path(this.currentPath);\n if(x != this.lastPosition[0] && y != this.lastPosition[1]) {\n ((Path)this.curr_obj).smoothCurveTo( x, y, lastPosition[0], lastPosition[1]);\n } else {\n ((Path)this.curr_obj).lineTo( x, y);\n }\n this.addGraphicObject(this.curr_obj, 0, 0);\n this.currentPath = ((Path)this.curr_obj).commands;\n\n } else if(curr_obj != null) {\n curr_obj = null;\n\t\t}\n\t}", "public void create() {\n \n EventHandler filter2 = \n new EventHandler<MouseEvent>() {\n @Override\n public void handle(MouseEvent event) {\n /*sim.updateCanvasMouseCoordinates(event.getX(), event.getY());\n sim.screenMouseX = event.getScreenX();\n sim.screenMouseY = event.getScreenY();\n sim.sceneMouseX = event.getSceneX();\n sim.sceneMouseY = event.getSceneY();*/\n //System.out.println(\"H: \" + spCanvasContainer.getHvalue() + \" Y:\" + spCanvasContainer.getVvalue());\n //System.out.println(\"Hm: \" + spCanvasContainer.getHmax() + \" Ym:\" + spCanvasContainer.getVmax());\n //System.out.println(\"Move: \" + canvasMouseX + \" Y:\" + canvasMouseY);\n }\n };\n this.addEventFilter(MouseEvent.ANY, filter2);\n\n this.setOnMouseClicked(new EventHandler<MouseEvent>() {\n @Override\n public void handle(MouseEvent event) {\n //onMouseClick(event.getX(), event.getY());\n if (event.getButton() == MouseButton.PRIMARY) {\n onLeftClick(event.getX(), event.getY());\n //scenario.leftClick(event.getX(), event.getY());\n //event.consume();\n }\n else if (event.getButton() == MouseButton.SECONDARY) {\n onRightClick(event.getX(), event.getY());\n //scenario.rightClick(event.getX(), event.getY());\n }\n }\n });\n\n this.setOnMousePressed(new EventHandler<MouseEvent>() {\n @Override\n public void handle(MouseEvent event) {\n if (event.getButton() == MouseButton.PRIMARY) {\n onLeftPressed(event.getX(), event.getY());\n }\n else if (event.getButton() == MouseButton.SECONDARY) {\n onRightPressed(event.getX(), event.getY());\n }\n }\n });\n\n this.setOnMouseDragged(new EventHandler<MouseEvent>() {\n @Override\n public void handle(MouseEvent event) {\n if (event.getButton() == MouseButton.PRIMARY) {\n onLeftDragged(event.getX(), event.getY());\n }\n else if (event.getButton() == MouseButton.SECONDARY) {\n onRightDragged(event.getX(), event.getY());\n }\n }\n });\n\n this.setOnMouseReleased(new EventHandler<MouseEvent>() {\n @Override\n public void handle(MouseEvent event) {\n //draggingWell = null;\n //onMouseDragged(event.getX(), event.getY());\n /*if (event.isPrimaryButtonDown()) {\n // scenario.onMouseDrag(event.getX(), event.getY());\n event.consume();\n }\n else if (event.isSecondaryButtonDown()) {\n }*/\n }\n });\n\n this.setOnMouseMoved(new EventHandler<MouseEvent>() {\n @Override\n public void handle(MouseEvent event) {\n onMouseMove(event.getX(), event.getY());\n }\n });\n }", "@Override\n public void handlePaint()\n {\n for(GraphicObject obj : this.graphicObjects)\n {\n obj.draw();\n }\n \n }", "@Override\n public void handle(MouseEvent event) {\n if (event.getButton() == event.getButton().SECONDARY) {\n if (isHighlighted(event.getX(), event.getY())) {\n\n //context menu shows relative the main screen\n //so we need to get the x and y co-ordinates of the\n //primary stage and add them to our mouse co-ordinates\n contextMenu.show(objCanvas, event.getSceneX() + primaryStage.getX(),\n event.getSceneY() + primaryStage.getY());\n }\n// undo();\n return;\n }\n\n //prompt annotation name\n Map opt = getObjectInfo();\n String name = opt.get(\"name\") != null ? (String) opt.get(\"name\") : \"N/A\";\n String pose = opt.get(\"pose\") != null ? (String) opt.get(\"pose\") : \"N/A\";\n int truncated = opt.get(\"truncated\") != null ? (Integer) opt.get(\"truncated\") : 0;\n int difficult = opt.get(\"difficult\") != null ? (Integer) opt.get(\"difficult\") : 0;\n\n //update\n repaintCanvas();\n\n labelObject(name, pose, truncated, difficult);\n\n //clear size to make room for the next rectangle\n xwidth = 0;\n yheight = 0;\n\n drawRec = false;\n }", "public void mouseClicked(MouseEvent e) {\n\t\t\n\t\tShape newShape = (Shape)currentShape.clone(); //Creates new shape based on the shape constructed and cloned \n\t\tnewShape.setCenter(e.getX(), e.getY()); //sets the shape to center around the mouse clicked region \n\t\tDrawingCanvas drawingCanvas = (DrawingCanvas)e.getSource(); //creates a drawingCanvas after mouse(clicked)event occurs\n\t\tdrawingCanvas.addShape(newShape); //adds the related shape to drawingCanvas\n\t\t\n }", "protected void userDrawing(MouseEvent e){\n\t}", "public void mouseClicked(GraphicObject graphicObject, Event event) {\n\t\tint x, y;\n\n /** if there's no graphic Object selected, we unSelect any other that was previously selected */\n if(action.isSelect() && (graphicObject == null)) {\n\t\t\tif(curr_obj!= null) {\n this.unSelect();\n this.restoreStyle();\n }\n\t\t\t\n\t\t} else {\n\t\t\tx = DOM.eventGetClientX(event) - canvas.getAbsoluteLeft() + Window.getScrollLeft();\n\t\t\ty = DOM.eventGetClientY(event) - canvas.getAbsoluteTop() + Window.getScrollTop(); \n\t\t\t\n\t\t\t\n\t\t\tif(action.isPolyline() && curr_obj == null) {\n /* If there is no Polyline object created, starts to draw a Polyline */\n curr_obj = new Path();\n ((Path)curr_obj).moveTo(x, y);\n\n addGraphicObject( curr_obj, 0, 0);\n this.currentPath = ((Path)this.curr_obj).commands;\n\t\t\t}\n\t\t}\n\t\t\n\t}", "@Override\r\n\tpublic void onMouseMove(Widget who, int x, int y) {\n\r\n\t}", "public void handle(MouseEvent event)\n {\n\n System.out.println(event.getEventType().getName());\n if (event.getEventType() == MouseEvent.MOUSE_PRESSED) {\n xs = event.getX();\n ys = event.getY();\n }else if (event.getEventType() == MouseEvent.MOUSE_DRAGGED){\n if (currentShapeNode != null) {\n canvas.getChildren().remove(currentShapeNode);\n shapeList.remove(currentShapeNode);\n }\n switch (shapeInfo) {\n case 1 : {\n xe = event.getX();\n ye = event.getY();\n currentShapeNode = new Rectangle(xs, ys, xe-xs, ye-ys);\n currentShapeNode.setFill(selectedColor);\n break;\n }\n case 2 : {\n xe = event.getX();\n ye = event.getY();\n double radius = Math.sqrt(Math.pow(xe-xs, 2) + Math.pow(ye-ys, 2));\n currentShapeNode = new Circle(xs, ys, radius);\n currentShapeNode.setFill(selectedColor);\n break;\n }\n case 3 : {\n xe = event.getX();\n ye = event.getY();\n double angle = Math.atan2(-(ys-ye), xe-xs);\n double length = Math.toDegrees(angle);\n Arc arc = new Arc(xs, ys, xe, xe/2, 0, length);\n arc.setType(ArcType.ROUND);\n currentShapeNode = arc;\n currentShapeNode.setFill(selectedColor);\n\n break;\n }\n default: break;\n }\n shapeList.add(currentShapeNode);\n canvas.getChildren().add(currentShapeNode);\n }else if (event.getEventType() == MouseEvent.MOUSE_RELEASED) {\n currentShapeNode = null;\n }\n\n event.consume();\n }", "public void mousePressed(MouseEvent evt) {\n\n\t\t\tstartingX = evt.getX();\n\t\t\tstartingY = evt.getY();\n\t\t\tif (currentShapeName != null) {\n\t\t\t\tif (!isDrawing) {\n\n\t\t\t\t\tif (currentShapeName.equals(\"line\")) {\n\t\t\t\t\t\tcurrentShape = new Line(startingX, startingY);\n\t\t\t\t\t}\n\t\t\t\t\tif (currentShapeName.equals(\"oval\")) {\n\t\t\t\t\t\tcurrentShape = new Oval(startingX, startingY);\n\t\t\t\t\t}\n\t\t\t\t\tif (currentShapeName.equals(\"rect\")) {\n\t\t\t\t\t\tcurrentShape = new Rectangle(startingX, startingY);\n\t\t\t\t\t}\n\t\t\t\t\tif (currentShapeName.equals(\"image\")) {\n\t\t\t\t\t\tcurrentShape = new Image(startingX, startingY);\n\t\t\t\t\t}\n\t\t\t\t\tcurrentShape.setColor(colorChooser.getColor());\n\t\t\t\t} else {\n\t\t\t\t\tcurrentShape.lastForm(newX, newY);\n\n\t\t\t\t\ttry {\n\t\t\t\t\t\toutput.writeObject(new AddShapeCommand(currentShape));\n\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\n\t\t\tisDrawing = !isDrawing;\n\t\t\t}\n\t\t}", "public void mouseEntered (MouseEvent e) {}", "@Override\r\n\tpublic void mousePressed(MouseEvent e) {\r\n\t\tLOG.fine(\"Pressed...\");\r\n\t\tif (shapeManipulator != null) {\r\n\t\t\tshapeManipulator.mousePressed(e);\r\n\t\t}\r\n\t}", "@Override\n public void mousePressed(MouseEvent e) {\n\n prevMouse.x = x(e);\n prevMouse.y = y(e);\n\n // 3D mode\n if (getChart().getView().is3D()) {\n if (handleSlaveThread(e)) {\n return;\n }\n }\n\n // 2D mode\n else {\n\n Coord2d startMouse = prevMouse.clone();\n\n if (maintainInAxis)\n maintainInAxis(startMouse);\n\n\n\n // stop displaying mouse position on roll over\n mousePosition = new MousePosition();\n\n // start creating a selection\n mouseSelection.start2D = startMouse;\n mouseSelection.start3D = screenToModel(startMouse.x, startMouse.y);\n\n if (mouseSelection.start3D == null)\n System.err.println(\"Mouse.onMousePressed projection is null \");\n\n\n // screenToModel(bounds3d.getCorners())\n\n }\n }", "public void mouseEntered (MouseEvent me) { }", "@Override\n public void mouseMoved(MouseEvent arg0) {\n \n }", "@Override\r\n public void mouseEntered(MouseEvent e) {\n\r\n }", "@Override\n public void mouseEntered(MouseEvent arg0) {\n \n }", "@Override\n public void mouseMoved(MouseEvent e){\n \n }", "@Override\n public void mouseEntered(MouseEvent e) {\n }", "public void mouseEntered (MouseEvent m) { }", "@Override\r\n\t\t public void mouseEntered(MouseEvent arg0) {\n\t\t }", "@Override\n public void mouseAction( MouseEvent me )\n {\n \n }", "@Override\r\n public void mouseEntered(MouseEvent arg0)\r\n {\n\r\n }", "public void mousePressed(MouseEvent arg0) {\n\t\t\n\t\t//End creation of shape on right click\n\t\tif (arg0.getButton() == MouseEvent.BUTTON3)\n\t\t{\n\t\t\tthis.shapeBeingMade = false;\n\t\t\t\n\t\t\tShape lastShape = this.model.getLastShape();\n\t\t\tthis.setFeedbackPoint(lastShape, null);\n\t\t}\t\n\t\t\n\t\telse\n\t\t{\n\t\t\tif (!this.shapeBeingMade)\n\t\t\t{\n\t\t\t\tthis.model.addShape(this.createShape(arg0.getX(), arg0.getY()));\n\t\t\t\t\n\t\t\t\tthis.model.clearRedoList();\n\t\t\t\tthis.shapeBeingMade = true;\n\t\t\t}\n\t\t\t\n\t\t\telse\n\t\t\t{\n\t\t\t\tShape lastShape = this.model.getLastShape();\n\t\t\t\tthis.modifyShape(lastShape, arg0.getX(), arg0.getY());\n\t\t\t}\t\t\n\t\t}\n\t\t\n\t}", "@Override\n public void mousePressed(final MouseEvent theEvent) {\n myTool = PowerPaintMenus.getTool();\n if (!myHasShape) {\n myHasShape = true;\n myCurrentShape = myTool.start(theEvent.getX(), theEvent.getY());\n repaint();\n }\n }", "@Override\n public void mousePressed(MouseEvent me) {\n mouse_x = me.getX();\n mouse_y = me.getY();\n super.mousePressed(me);\n }", "@Override\r\n\tpublic void mouseReleased(MouseEvent e) {\r\n\t\tLOG.fine(\"Released...\");\r\n\t\tif (shapeManipulator != null) {\r\n\t\t\tshapeManipulator.mouseReleased(e);\r\n\t\t}\r\n\t}", "@Override\r\n\tpublic void mouseClicked(MouseEvent e) {\r\n\t\tLOG.fine(\"Clicked\");\r\n\t\tif (shapeManipulator != null) {\r\n\t\t\tshapeManipulator.mouseClicked(e);\r\n\t\t}\r\n\t}", "@Override\n public void mouseEntered(MouseEvent e){\n }", "public void mouseEntered(MouseEvent e)\n { }", "public void mouseDblClicked(GraphicObject graphicObject, Event event) {\n /** if it's a polyline, then we close it's path and therefore finish it */\n if(action.isPolyline() && (curr_obj != null)) {\n ((Path)this.curr_obj).closePath();\n curr_obj = null;\n\t\t\taux_obj = null;\n\n /** if the user double clicked on a text object, a textbox or the text itself, this method spawns a Textarea above the text in the canvas so that the user can edit the text that was created., */\n } else if(action.isSelect() && (graphicObject != null) && (graphicObject.getType() == 7 || graphicObject.getType() == 8) ) {\n this.curr_obj = graphicObject;\n\n /** TextArea initialization */\n this.editor = new TextArea();\n this.editor.setWidth((int)(graphicObject.getBounds().getWidth()+20)+\"px\");\n this.editor.setHeight((int)(graphicObject.getBounds().getHeight()+20)+\"px\");\n if(graphicObject.getType() == 7) {\n this.editor.setText( ((Text)graphicObject).getText() );\n } else {\n this.editor.setText( ((TextBox)graphicObject).text.getText() );\n }\n /** We add a keyboard listener to handle the Esc key. In the event of a Esc key, the TextArea should disapear and the text object should be updated. */\n this.editor.addKeyboardListener(new KeyboardListenerAdapter() {\n public void onKeyDown(Widget sender, char keyCode, int modifiers) {\n if (keyCode == (char) KEY_ESCAPE) {\n\n editor.cancelKey();\n\n aux_obj = null;\n aux_obj = new Text(editor.getText());\n if(curr_obj.getType() == 7) {\n ((Text)aux_obj).setFont( ((Text)curr_obj).getFont());\n addTextObject(aux_obj, (int)curr_obj.getX(), (int)curr_obj.getY());\n\n canvas.remove(((Text)curr_obj).bounder);\n } else {\n ((Text)aux_obj).setFont( ((TextBox)curr_obj).text.getFont());\n addTextObject(aux_obj, (int)((TextBox)curr_obj).text.getX(), (int)((TextBox)curr_obj).text.getY());\n canvas.remove(((TextBox)curr_obj).text);\n }\n canvas.remove(curr_obj);\n\n curr_obj = null;\n curr_obj = new TextBox(aux_obj.getBounds(), (Text)aux_obj);\n addTextBox(curr_obj, (int)aux_obj.getBounds().getX(), (int)aux_obj.getBounds().getY());\n ((Text)aux_obj).bounder = (TextBox)curr_obj;\n\n Color textColor = new Color(aux_obj.getFillColor().getRed(), aux_obj.getFillColor().getGreen(), aux_obj.getFillColor().getBlue(), 0);\n curr_obj.setFillColor(textColor);\n curr_obj.setStroke(textColor, 1);\n\n aux_obj = null;\n curr_obj = null;\n apanel.remove(editor);\n editor = null;\n }\n }\n });\n this.apanel.add(editor, (int)this.curr_obj.getX() + this.canvas.getAbsoluteLeft() - Window.getScrollLeft() - 2, (int)this.curr_obj.getY() + this.canvas.getAbsoluteTop() - Window.getScrollTop() - 2);\n }\n }", "@Override\n public void mouseEntered(MouseEvent arg0) {\n\n }", "@Override\r\n\tpublic void mouseMoved(MouseEvent e) {\r\n\t\tlastPointOnScreen = e.getPoint();\t\t\t\r\n\t\t\r\n\t\tif(screenWidth != 0)//control looking around for first person\r\n\t\t{\r\n\t\taSquare.setAngularVelocity(2*Math.pow((e.getX() - screenWidth/2)/(screenWidth/2.),3));\r\n\t\t}\r\n\t\t\r\n\t\tif(showDebug)//select closest point to cursor for global var\r\n\t\t{\r\n\t\t\tdouble minDistance = 100.0;\r\n\t\t\tclosestPointToCursor = null;\r\n\t\t\t\r\n\t\t\tArrayList<PolygonD> objectsInScene = new ArrayList<PolygonD>();\r\n\t\t\tobjectsInScene.addAll(objects);\r\n\t\t\tobjectsInScene.add(currentShape);\r\n\r\n\t\t\t//iterate over all of the verts in all of the objects in the scene\r\n\t\t\tfor(PolygonD obj : objectsInScene)\r\n\t\t\t\tfor(PointD p : obj.getVerts())\r\n\t\t\t\t{\r\n\t\t\t\t\tdouble distance = (double)(new Vector(\r\n\t\t\t\t\t\t\tp, \r\n\t\t\t\t\t\t\tnew PointD(\r\n\t\t\t\t\t\t\t\t\te.getPoint().x - worldCenter.getX(),\r\n\t\t\t\t\t\t\t\t\te.getPoint().y - worldCenter.getY()\r\n\t\t\t\t\t\t\t\t\t)\r\n\t\t\t\t\t\t\t)).getMag();\r\n\t\t\t\t\tif(distance < minDistance)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\t//set closest point to cursor\r\n\t\t\t\t\t\tminDistance = distance;\r\n\t\t\t\t\t\tclosestPointToCursor = p;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t}\r\n\t}", "@Override\r\n\t\tpublic void mouseReleased(MouseEvent e) {\n\t\t\tif (e.isShiftDown() && getCurrentShape()==\"Line\") {\r\n\t\t\t\tmyLine = new Line(startPoint, endPoint, outline);\r\n\t\t\t\tstartPoint = null;\r\n\t\t\t\tendPoint = null;\r\n\t\t\t\trepaint();\r\n\t\t\t}\r\n\t\t\tif (e.isShiftDown() && getCurrentShape()==\"Oval\") {\t\r\n\t\t\t\tmyOval = new Oval(startPoint, width, height, outline, fill);\r\n\t\t\t\tstartPoint = null;\r\n\t\t\t\tendPoint = null;\r\n\t\t\t\twidth = 0;\r\n\t\t\t\theight = 0;\r\n\t\t\t\trepaint();\r\n\t\t\t}\r\n\t\t\tif (e.isControlDown()) {\r\n\t\t\t\trepaint();\r\n\t\t\t\tShapes.remove(Shapes.get(Shapes.size() - 1));\r\n\t\t\t}\r\n\t\t}", "@Override\n public void mouseEntered(MouseEvent evt) {\n }", "@Override\n public void mouseMoved(MouseEvent e) {\n\n }", "@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}", "public void mouseEntered(MouseEvent arg0) {\n\n }", "@Override\n public void mouseEntered(MouseEvent e) {\n\n }", "@Override\n public void mouseEntered(MouseEvent e) {\n\n }", "@Override\n public void mouseEntered(MouseEvent e) {\n\n }", "@Override\n public void mouseEntered(MouseEvent e) {\n\n }", "@Override\n\tpublic void mouseEntered() {\n\t\t\n\t}", "@Override\r\n public void mouseEntered(MouseEvent e) {\n }", "@Override\r\n public void mouseMoved(MouseEvent e) {\r\n\r\n }", "@Override\r\n\tpublic void mouseEntered(MouseEvent arg0) {\n\r\n\t}", "@Override\r\n\tpublic void mouseEntered(MouseEvent arg0) {\n\r\n\t}", "@Override\r\n\tpublic void mouseEntered(MouseEvent arg0) {\n\r\n\t}", "@Override\r\n\tpublic void mouseEntered(MouseEvent arg0) {\n\r\n\t}", "@Override\r\n\tpublic void mouseEntered(MouseEvent arg0) {\n\r\n\t}", "@Override\r\n\t\t public void mouseReleased(MouseEvent arg0) {\n\t\t }", "@Override\n public void handle( MouseEvent e)\n {\n if( tradeBankGroup.isVisible() || domesticTradeGroup.isVisible())\n return;\n System.out.println(\"Attempt to build vertex at index \" + index);\n //Circle circle = (Circle) e.getSource();\n //circle.setFill(Color.RED);\n \n if(construct_type == Construction_type.SETTLEMENT){\n System.out.println(\"Helelelele\");\n if(mainController.buildSettlement(index)){\n System.out.println(\"Bindik bir alamete gidiyoruz kıyamete amaneeen\");\n Circle circle = (Circle) e.getSource();\n circle.setFill( mainController.getCurrentPlayerColor());\n refreshResources();\n refreshScores();\n }\n }\n else if(construct_type == Construction_type.CITY){\n if(mainController.upgradeCity(index)){\n Circle circle = (Circle) e.getSource();\n circle.setStroke(Color.GOLD);\n circle.setStrokeWidth(3.0);\n refreshResources();\n refreshScores();\n }\n }\n }", "public void mouseEntered(MouseEvent e) {}", "public void mouseEntered(MouseEvent e) {}", "public void mouseEntered(MouseEvent e) {}", "public void mouseEntered(MouseEvent e) {}", "public void mouseEntered(MouseEvent e) {}", "public void mouseEntered(MouseEvent e) {}", "public void mouseEntered(MouseEvent e) {}", "@Override\n public void mouseEntered(MouseEvent e) {}", "@Override\n public void mouseEntered(MouseEvent e) {\n }", "@Override\n public void mouseEntered(MouseEvent e)\n {\n }", "@Override\n public void mouseEntered(MouseEvent e)\n {\n }", "@Override\n public void update(Frame frame) {\n if (JoyButton.contains(frame.getButtonPressed(), JoyButton.BUTTON_TOUCH_SINGLE)) {\n SceneObject object = SceneObject.fromDrawable(getApp().getContext(), R.mipmap.ic_launcher);\n object.position(new Vector3f(random.nextFloat() * 5.0f - 2.5f, random.nextFloat() * 5.0f - 2.5f, random.nextFloat() * 5.0f - 2.5f));\n objects.add(object);\n addChildObject(object);\n }\n // If long tap detected, remove all spawned objects\n else if (JoyButton.contains(frame.getButtonPressed(), JoyButton.BUTTON_TOUCH_LONGPRESS)) {\n\n for (SceneObject object : objects) {\n removeChildObject(object);\n }\n objects.clear();\n }\n\n // Move spawned objects\n for (SceneObject object : objects) {\n object.position(object.position().sub(0, 0, 0.1f));\n }\n\n super.update(frame);\n }", "@Override\n public void mouseReleased(MouseEvent e) {\n }", "public void mouseMoved(MouseEvent e){}", "public void mousePressed()\n{\n if(!welcomeFading)\n {\n welcomeFading = true;\n cp5.show();\n }\n if(!cp5.isMouseOver()) // check if were pressing a button\n {\n flock.AddAnimal(10, mouseX, mouseY);\n }\n}", "@Override\r\n\t\t\tpublic void mouseMoved(MouseEvent arg0) {\n\t\t\t\t\r\n\t\t\t}", "@Override\r\n public void mouseMoved(MouseEvent e) {\n }", "public void mouseEntered( MouseEvent event ){}", "@Override\npublic void mouseEntered(MouseEvent e)\n{\n\t\n}", "@Override\r\n\t\t\tpublic void mouseEntered(MouseEvent arg0) {\n\r\n\t\t\t}", "@Override\n\t\t\t\tpublic void mouseEntered(MouseEvent e) {\n\t\t\t\t\t\n\t\t\t\t}", "@Override\n\t\t\t\tpublic void mouseEntered(MouseEvent e) {\n\t\t\t\t\t\n\t\t\t\t}", "@Override\n\t\t\t\tpublic void mouseEntered(MouseEvent e) {\n\t\t\t\t\t\n\t\t\t\t}", "@Override\n\t\t\t\tpublic void mouseEntered(MouseEvent e) {\n\t\t\t\t\t\n\t\t\t\t}", "@Override\n\t\t\tpublic void mouseEntered(MouseEvent e) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void mouseEntered(MouseEvent e) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void mouseEntered(MouseEvent e) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void mouseEntered(MouseEvent e) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void mouseEntered(MouseEvent e) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void mouseEntered(MouseEvent e) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void mouseEntered(MouseEvent e) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void mouseEntered(MouseEvent e) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void mouseEntered(MouseEvent e) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void mouseEntered(MouseEvent e) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void mouseEntered(MouseEvent e) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void mouseEntered(MouseEvent e) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void mouseEntered(MouseEvent e) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void mouseEntered(MouseEvent e) {\n\t\t\t\t\n\t\t\t}", "@Override\r\n public void mouseEntered(MouseEvent e) {\r\n }", "@Override\n public void mouseExited(MouseEvent e) {\n\n // Reset mouse position memory as mouse exit the canvas\n mousePosition = new MousePosition();\n\n // Update display\n if (getChart() != null) {\n getChart().getView().shoot();\n\n }\n }", "public void mouseEntered(MouseEvent arg0) {\n // TODO Auto-generated method stub\n\n }", "public void mouseClicked(MouseEvent e) {\n\t\t\tx = e.getX();//gets the x and y values of the location clicked\r\n\t\t\ty = e.getY();\r\n\t\t\tif((x > 150 && x < 200) && (y > 50 && y < 150))\r\n\t\t\t{\r\n\t\t\t\t Mario myGUI = new Mario();//if they click mario start mario and exits the program\r\n\t\t\t\t this.dispose();\r\n\t\t\t}\r\n\t\t\telse if((x > 300 && x < 350) && (y > 50 && y < 150))\r\n\t\t\t{\r\n\t\t\t\t Luigi myGUI = new Luigi();//if they click luigi start luigi and exits the program\r\n\t\t\t\t this.dispose();\r\n\t\t\t}\r\n\t\t}", "@Override\r\n\t\t\tpublic void mouseMoved(MouseEvent e) {\n\t\t\t\t\r\n\t\t\t}", "@Override\n \tpublic void onMouseMove(MouseMoveEvent event) {\n \t\t// Forward to manipulator\n \t\tICommandFactory commandFactory = SvgrealApp.getApp().getCommandFactorySelector().getActiveFactory();\n \t\tif (commandFactory instanceof MouseMoveProcessor) {\n \t\t\tif (((MouseMoveProcessor)commandFactory).processMouseMove(event)) {\n \t\t\t\treturn;\n \t\t\t}\n \t\t}\n \n \t\t// Highlighting\n \t\tif (highlightingMode) {\n \t\t\tSVGElementModel model = convert(event.getNativeEvent().getEventTarget().<SVGElement>cast());\n \t\t\thighlightModel(model);\n \t\t} \n \t}", "@Override\n public void mouseMoved(MouseEvent e) {\n }" ]
[ "0.7269895", "0.69265735", "0.66071165", "0.64431304", "0.6339542", "0.6336566", "0.6266672", "0.62386733", "0.61424685", "0.6141091", "0.61323255", "0.6082468", "0.6077098", "0.6069731", "0.60442036", "0.6042745", "0.6032642", "0.6023541", "0.6019498", "0.6000119", "0.59978145", "0.5990062", "0.5989986", "0.5986125", "0.5985187", "0.5984393", "0.5966709", "0.5966229", "0.5959532", "0.59552515", "0.5943644", "0.59391063", "0.5935739", "0.59306157", "0.5930563", "0.5925296", "0.5918536", "0.5911779", "0.5911779", "0.5911779", "0.5911401", "0.59096444", "0.59096444", "0.59096444", "0.59096444", "0.59093344", "0.59080225", "0.59063804", "0.5901631", "0.5901631", "0.5901631", "0.5901631", "0.5901631", "0.5892695", "0.5890606", "0.5890201", "0.5890201", "0.5890201", "0.5890201", "0.5890201", "0.5890201", "0.5890201", "0.5888783", "0.5887001", "0.58813834", "0.58813834", "0.5880535", "0.5875077", "0.587384", "0.5873366", "0.58686745", "0.58684397", "0.58672625", "0.58640486", "0.5863541", "0.5862315", "0.5862315", "0.5862315", "0.5862315", "0.58606344", "0.58606344", "0.58606344", "0.58606344", "0.58606344", "0.58606344", "0.58606344", "0.58606344", "0.58606344", "0.58606344", "0.58606344", "0.58606344", "0.58606344", "0.58606344", "0.58506316", "0.5850321", "0.5844698", "0.58401054", "0.5838711", "0.5837676", "0.58354443" ]
0.70367587
1
This method handles the mouse press event on any graphic object and in the graphic canvas. It's mainly used to start creating objects and also to select objects.
public void mousePressed(GraphicObject graphicObject, Event event) { int x, y; x = DOM.eventGetClientX(event) - canvas.getAbsoluteLeft() + Window.getScrollLeft(); y = DOM.eventGetClientY(event) - canvas.getAbsoluteTop() + Window.getScrollTop(); if(!action.isSelect() && !action.isPolyline() && !action.isTextBox() && !action.isPencil()) { switch(action.getAction()) { case Action.LINE: /* Starts to draw a line */ curr_obj = new Line(0, 0, 1, 1); break; case Action.RECTANGLE: /* Starts to draw a rectangle */ curr_obj = new Rect(1, 1); break; case Action.CIRCLE: /* Starts to draw a circle */ curr_obj = new Circle(1); break; case Action.ELLIPSE: /* Starts to draw a Ellipse */ curr_obj = new Ellipse(1, 1); break; } lastPosition[0] = x; lastPosition[1] = y; objPosition[0] = x; objPosition[1] = y; addGraphicObject( curr_obj, x, y); /* Selects a object */ } else if(action.isSelect() && (graphicObject != null)) { /** If there was another object previously selected, unselect it. */ if(curr_obj != null && graphicObject != curr_obj && graphicObject.getGroup() != transformPoints) { unSelect(); } /** If we didn't click on any Transform Point, then we select the object. */ if((graphicObject.getGroup() != transformPoints)) { if(curr_obj == null) { Rectangle bnds = graphicObject.getBounds(); if(bnds != null) { /** This may seem strange but for some object types, mainly Paths and Ellipses, Tatami's method getBounds() will return null until the object is translated. */ graphicObject.translate(1, 1); graphicObject.translate(-1, -1); if(bnds.getHeight() == 0 && bnds.getWidth() == 0) { bnds = graphicObject.getBounds(); } this.backupStyle(); fillOpacity.setValue(graphicObject.uGetFillColor().getAlpha()); strokeOpacity.setValue(graphicObject.getStrokeColor().getAlpha()); currentFillColor = graphicObject.uGetFillColor(); DOM.setStyleAttribute(fill.getElement(), "backgroundColor",currentFillColor.toCss(false)); currentFillColor.setAlpha(graphicObject.uGetFillColor().getAlpha()); currentStrokeColor = graphicObject.getStrokeColor(); DOM.setStyleAttribute(stroke.getElement(), "backgroundColor",currentStrokeColor.toCss(false)); this.currentStrokeSize.setValue(graphicObject.getStrokeWidth()); //chooseStrokeSize(graphicObject.getStrokeWidth()-1, graphicObject.getStrokeWidth()); createTransformPoints(bnds, graphicObject); } curr_obj = graphicObject; } lastPosition[0] = x; lastPosition[1] = y; objPosition[0] = x; objPosition[1] = y; isMovable = true; /** if the user clicked on a transform point, this settles the variables for the object tranformation. */ } else { lastPosition[0] = x; lastPosition[1] = y; isTransformable = true; aux_obj = curr_obj; curr_obj = graphicObject; currRotation = 0.0; if(curr_obj == transformPointers[Action.ROTATE]) { canvas.remove(transformPoints); transformPoints.clear(); } } /** Starts to draw a TextBox. * To add usability, a Text object is allways composed by a Text object and a TextBox. The TextBox is simillar to a Rectangle but it's alpha values are set to 0(it's transparent) and has the size of the text's bounds. * This allows the user to select a Text object more easily because now he has a rectangle with the size of the Text's boundaries to click on. The TextBox contains a link to the Text (and also the Text to the TextBox) so when a user click on it, we know which Text Object is selected and perform the given actions on it as well. * Note: This weren't supported by Tatami, i had to implement it. * */ } else if(this.action.isTextBox()) { this.curr_obj = new com.objetdirect.tatami.client.gfx.TextBox(1.0, 1.0, null); this.lastPosition[0] = x; this.lastPosition[1] = y; this.objPosition[0] = x; this.objPosition[1] = y; this.addTextBox( this.curr_obj, x, y); } else if(this.action.isPencil()) { /* Starts to draw with the pencil */ curr_obj = new Path(); ((Path)curr_obj).moveTo(x, y); Color fill = new Color(this.currentFillColor.getRed(), this.currentFillColor.getGreen(), this.currentFillColor.getBlue(), 0); objPosition[0] = x; objPosition[1] = y; curr_obj.setFillColor(fill); curr_obj.setStroke(currentStrokeColor, currentStrokeSize.getValue()); canvas.add(curr_obj, 0, 0); /* Otherwise it adds a new point in the Polyline */ } else if(this.action.isPolyline() && curr_obj != null) { this.lastPosition[0] = x; this.lastPosition[1] = y; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void mousePressed( MouseEvent e )\n {\n x = pressx = e.getX(); y = pressy = e.getY();\n \n Point p0 = new Point( x, y );\n Point p1 = new Point( pressx, pressy );\n \n if ( mode==0 ) { theShape = theLine = new Line( p0, p1 ); }\n else if ( mode==1 ) { theShape = theBox = new Box( p0, p1 ); }\n \n allTheShapes[ allTheShapesCount++ ] = theShape;\n \n theShape.color = theColorPicker.b.color;\n }", "public void mouseClicked(GraphicObject graphicObject, Event event) {\n\t\tint x, y;\n\n /** if there's no graphic Object selected, we unSelect any other that was previously selected */\n if(action.isSelect() && (graphicObject == null)) {\n\t\t\tif(curr_obj!= null) {\n this.unSelect();\n this.restoreStyle();\n }\n\t\t\t\n\t\t} else {\n\t\t\tx = DOM.eventGetClientX(event) - canvas.getAbsoluteLeft() + Window.getScrollLeft();\n\t\t\ty = DOM.eventGetClientY(event) - canvas.getAbsoluteTop() + Window.getScrollTop(); \n\t\t\t\n\t\t\t\n\t\t\tif(action.isPolyline() && curr_obj == null) {\n /* If there is no Polyline object created, starts to draw a Polyline */\n curr_obj = new Path();\n ((Path)curr_obj).moveTo(x, y);\n\n addGraphicObject( curr_obj, 0, 0);\n this.currentPath = ((Path)this.curr_obj).commands;\n\t\t\t}\n\t\t}\n\t\t\n\t}", "@Override\r\n\tpublic void mousePressed(MouseEvent e) {\r\n\t\tLOG.fine(\"Pressed...\");\r\n\t\tif (shapeManipulator != null) {\r\n\t\t\tshapeManipulator.mousePressed(e);\r\n\t\t}\r\n\t}", "@Override\n\t\t\t\tpublic void mousePressed(MouseEvent arg0) {\n\t\t\t\t}", "public void mousePressed() {\n\t\tif(detectCollision(this.p.mouseX,this.p.mouseY)) {\n\t\t\tthis.isPressed = true;\n\t\t\tclick();\n\t\t}\n\t}", "@Override\n\t\t\tpublic void mousePressed(MouseEvent arg0) {\n\n\t\t\t}", "@Override\r\n public void mousePressed(MouseEvent e) {\n }", "@Override\n\t\t\tpublic void mousePressed(MouseEvent arg0) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void mousePressed(MouseEvent arg0) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void mousePressed(MouseEvent arg0) {\n\t\t\t\t\n\t\t\t}", "public boolean mousePressed(MouseEvent mouse, Rectangle2D.Float environment,\n\t\t\tArrayList<Rectangle2D> rectangleList, ArrayList<String> rectangleIndexList,\n\t\t\tArrayList<Ellipse2D> circleList, ArrayList<String> circleIndexList) {\n\t\t\n\t\t// per mouse press, changes selected object & allows dragging capabilities\n\t\tif (objectIsPresent(mouse,environment,rectangleList,rectangleIndexList,circleList,circleIndexList)) {\n\t\t\tLiquidApplication.getGUI().getEditorPanel().setSelectedObjectPanel();\n\t\t\tpressedObject = true;\n\t\t\treturn true;}\n\t\treturn false;\n\t}", "@Override\n public void mousePressed(MouseEvent e)\n {\n }", "@Override\n public void mousePressed(MouseEvent e)\n {\n }", "@Override\r\n public void mousePressed(MouseEvent e) {\n }", "@Override\r\n\t\t\tpublic void mousePressed(MouseEvent arg0) {\n\t\t\t\t\r\n\t\t\t}", "@Override\r\n\t\t\tpublic void mousePressed(MouseEvent arg0) {\n\t\t\t\t\r\n\t\t\t}", "@Override\r\n\t\t\tpublic void mousePressed(MouseEvent arg0) {\n\t\t\t\t\r\n\t\t\t}", "@Override\r\n\t\t\tpublic void mousePressed(MouseEvent arg0) {\n\t\t\t\t\r\n\t\t\t}", "@Override\n\t\t\t\t\tpublic void mousePressed(MouseEvent arg0) {\n\n\t\t\t\t\t}", "@Override\n\t\t\tpublic void mousePressed(MouseEvent e) {\n\n\t\t\t}", "@Override\n\t\t\tpublic void mousePressed(MouseEvent e) {\n\n\t\t\t}", "@Override\n\t\t\tpublic void mousePressed(MouseEvent e) {\n\n\t\t\t}", "@Override\n\t\t\tpublic void mousePressed(MouseEvent e) {\n\n\t\t\t}", "@Override\n\t\t\tpublic void mousePressed(MouseEvent e) {\n\n\t\t\t}", "@Override\n\t\t\tpublic void mousePressed(MouseEvent e) {\n\n\t\t\t}", "@Override\n\t\t\tpublic void mousePressed(MouseEvent e) {\n\n\t\t\t}", "@Override\n\t\t\tpublic void mousePressed(MouseEvent e) {\n\n\t\t\t}", "@Override\n\t\t\tpublic void mousePressed(MouseEvent e) {\n\n\t\t\t}", "@Override\n\t\t\tpublic void mousePressed(MouseEvent e) {\n\n\t\t\t}", "@Override\r\n public void mousePressed(MouseEvent e) {\r\n\r\n }", "@Override\r\n public void mousePressed(MouseEvent e) {\r\n\r\n }", "@Override\n public void mousePressed(final MouseEvent theEvent) {\n myTool = PowerPaintMenus.getTool();\n if (!myHasShape) {\n myHasShape = true;\n myCurrentShape = myTool.start(theEvent.getX(), theEvent.getY());\n repaint();\n }\n }", "@Override\n public void mousePressed(MouseEvent e) {\n\n }", "@Override\n public void mousePressed(MouseEvent e) {\n }", "@Override\r\n\t\t\t\tpublic void mousePressed(MouseEvent arg0) {\n\t\t\t\t\t\r\n\t\t\t\t}", "@Override\r\n\t\t\tpublic void mousePressed(MouseEvent e) {\n\t\t\t}", "@Override\n public void mousePressed(MouseEvent evt) {\n }", "public void mousePressed(MouseEvent e) {\n\t\t\t\t\n\t\t\t}", "public void mousePressed(MouseEvent e) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\t\tpublic void mousePressed(MouseEvent e) {\n\t\t\t\t\t\n\t\t\t\t}", "@Override\n\t\t\t\tpublic void mousePressed(MouseEvent e) {\n\t\t\t\t\t\n\t\t\t\t}", "@Override\n\t\tpublic void mousePressed(MouseEvent arg0) {\n\t\t\t\n\t\t}", "@Override\n\t\tpublic void mousePressed(MouseEvent arg0) {\n\t\t\t\n\t\t}", "@Override\n\t\tpublic void mousePressed(MouseEvent arg0) {\n\t\t\t\n\t\t}", "@Override\n\t\tpublic void mousePressed(MouseEvent arg0) {\n\t\t\t\n\t\t}", "public void mousePressed(MouseEvent e) {\n }", "@Override\n\t\tpublic void mousePressed(MouseEvent arg0) {\n\n\t\t}", "@Override\n\t\t\tpublic void mousePressed(MouseEvent e) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void mousePressed(MouseEvent e) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void mousePressed(MouseEvent e) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void mousePressed(MouseEvent e) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void mousePressed(MouseEvent e) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void mousePressed(MouseEvent e) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void mousePressed(MouseEvent e) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void mousePressed(MouseEvent e) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void mousePressed(MouseEvent e) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void mousePressed(MouseEvent e) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void mousePressed(MouseEvent e) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void mousePressed(MouseEvent e) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void mousePressed(MouseEvent e) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void mousePressed(MouseEvent e) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void mousePressed(MouseEvent e) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void mousePressed(MouseEvent e) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void mousePressed(MouseEvent e) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void mousePressed(MouseEvent e) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void mousePressed(MouseEvent e) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void mousePressed(MouseEvent e) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void mousePressed(MouseEvent e) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void mousePressed(MouseEvent e) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void mousePressed(MouseEvent e) {\n\t\t\t\t\n\t\t\t}", "@Override\r\n\t\t\t\t\tpublic void mousePressed(MouseEvent e) {\n\t\t\t\t\t\t\r\n\t\t\t\t\t}", "@Override\r\n\t\t\t\t\tpublic void mousePressed(MouseEvent e) {\n\t\t\t\t\t\t\r\n\t\t\t\t\t}", "@Override\n\t\tpublic void mousePressed(MouseEvent e) {}", "public void mousePressed(MouseEvent arg0) {\n\t\t\t\n\t\t}", "@Override\n\tpublic void pointerPressed(int x, int y) {\n\t\tx = x - getAbsoluteX();\n\t\ty = y - getAbsoluteY();\n\t\t\n\t\tIIterator gameObjs = gwRef.getGameObjects().getIterator();\n\t\t\n\t\tboolean somethingSelected = false;\n\t\t//If PositionCommand has been pressed...\n\t\tif (posCmdActivated) {\n\n\t\t\twhile (gameObjs.hasNext()) {\n\t\t\t\tObject nextElement = gameObjs.getNext();\n\t\t\t\t\n\t\t\t\t//Find a selected object and change the location.\n\t\t\t\tif (nextElement instanceof ISelectable) {\n\t\t\t\t\t\n\t\t\t\t\tif (((ISelectable)nextElement).isSelected()) {\n\t\t\t\t\t\t((GameObject)nextElement).setLocationX(x);\n\t\t\t\t\t\t((GameObject)nextElement).setLocationY(y);\n\t\t\t\t\t\tsomethingSelected = true;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tposCmdActivated = false;\n\t\t}\n\t\t\n\t\tgameObjs = gwRef.getGameObjects().getIterator();\n\t\t//If nothing was selected and we pressed on an object, highlight it.\n\t\tif (!somethingSelected) {\n\t\t\twhile (gameObjs.hasNext()) {\n\t\t\t\tObject nextElement = gameObjs.getNext();\n\t\t\t\t\n\t\t\t\t//If the nextElement is selectable and is selected, setSelected to true. \n\t\t\t\t//Otherwise set all other objects to unselected.\n\t\t\t\tif (nextElement instanceof ISelectable) {\n\t\t\t\t\tISelectable sObj = (ISelectable)nextElement;\n\t\t\t\t\t\n\t\t\t\t\t//Points relative to MapView parent.\n\t\t\t\t\tPoint ptrPosRelPrnt = new Point(x, y);\n\t\t\t\t\tPoint cmpPosRelPrnt = new Point((int)(((GameObject)nextElement).getLocationX()), (int)(((GameObject)nextElement).getLocationY()));\n\t\t\t\t\t\n\t\t\t\t\tif (sObj.contains(ptrPosRelPrnt, cmpPosRelPrnt) && gRef.getIsPaused()) {\n\t\t\t\t\t\tunselectAll();\n\t\t\t\t\t\tsObj.setSelected(true);\n\t\t\t\t\t} else {\n\t\t\t\t\t\tsObj.setSelected(false);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t//Re-draw all the objects.\n\t\tthis.repaint();\n\t}", "@Override\r\n\tpublic void mousePressed(MouseEvent arg0) {\n\t\t\r\n\t}", "@Override\r\n\tpublic void mousePressed(MouseEvent arg0) {\n\t\t\r\n\t}", "@Override\r\n\tpublic void mousePressed(MouseEvent arg0) {\n\t\t\r\n\t}", "@Override\r\n\tpublic void mousePressed(MouseEvent arg0) {\n\t\t\r\n\t}", "@Override\r\n\tpublic void mousePressed(MouseEvent arg0) {\n\t\t\r\n\t}", "@Override\r\n\tpublic void mousePressed(MouseEvent arg0) {\n\t\t\r\n\t}", "@Override\r\n\tpublic void mousePressed(MouseEvent arg0) {\n\t\t\r\n\t}", "@Override\r\n\tpublic void mousePressed(MouseEvent arg0) {\n\t\t\r\n\t}", "@Override\r\n\tpublic void mousePressed(MouseEvent arg0) {\n\t\t\r\n\t}", "@Override\n public void mousePressed(MouseEvent e) {\n }", "public void mousePressed(MouseEvent arg0) {\n\n }", "public void mousePressed(MouseEvent arg0) {\n\n }", "@Override\r\n public void mousePressed(MouseEvent e) {\n }", "@Override\r\n public void mousePressed(MouseEvent e) {\n }", "@Override\n\t\t\t\t\tpublic void mousePressed(MouseEvent e) {\n\n\t\t\t\t\t}", "@Override\n\t\t\t\t\tpublic void mousePressed(MouseEvent e) {\n\t\t\t\t\t\t\n\t\t\t\t\t}", "@Override\r\n\tpublic void mousePressed(MouseEvent arg0) {\n\t}", "@Override\r\n\t\tpublic void mousePressed(MouseEvent arg0) {\n\t\t\t\r\n\t\t}", "@Override\r\n\t\tpublic void mousePressed(MouseEvent arg0) {\n\t\t\t\r\n\t\t}", "@Override\r\n\t\tpublic void mousePressed(MouseEvent arg0) {\n\t\t\t\r\n\t\t}", "@Override\r\n\t\tpublic void mousePressed(MouseEvent arg0) {\n\t\t\t\r\n\t\t}", "@Override\r\n\t\t\tpublic void mousePressed(MouseEvent e) {\n\t\t\t\t\r\n\t\t\t}", "@Override\r\n\t\t\tpublic void mousePressed(MouseEvent e) {\n\t\t\t\t\r\n\t\t\t}", "@Override\n public void mousePressed(MouseEvent arg0) {\n \n }", "@Override\r\n\t\t\t\tpublic void mousePressed(MouseEvent e) {\n\t\t\t\t\t\r\n\t\t\t\t}" ]
[ "0.6998825", "0.6986048", "0.6982065", "0.6818434", "0.6805678", "0.679771", "0.6791998", "0.6782852", "0.6782852", "0.6782852", "0.6776415", "0.67656404", "0.67656404", "0.6744512", "0.67384773", "0.67384773", "0.67384773", "0.67384773", "0.6736", "0.6732214", "0.6732214", "0.6732214", "0.6732214", "0.6732214", "0.6732214", "0.6732214", "0.6732214", "0.6732214", "0.6732214", "0.67294675", "0.67294675", "0.67269164", "0.6726741", "0.67266244", "0.6711499", "0.6711077", "0.6698435", "0.66829705", "0.66829705", "0.6675798", "0.6675798", "0.66757375", "0.66757375", "0.66757375", "0.66757375", "0.6673624", "0.6671238", "0.6670316", "0.6670316", "0.6670316", "0.6670316", "0.6670316", "0.6670316", "0.6670316", "0.6670316", "0.6670316", "0.6670316", "0.6670316", "0.6670316", "0.6670316", "0.6670316", "0.6670316", "0.6670316", "0.6670316", "0.6670316", "0.6670316", "0.6670316", "0.6670316", "0.6670316", "0.6670316", "0.6669381", "0.6669381", "0.66673106", "0.6663514", "0.6658909", "0.66524804", "0.66524804", "0.66524804", "0.66524804", "0.66524804", "0.66524804", "0.66524804", "0.66524804", "0.66524804", "0.6652263", "0.6648454", "0.6648454", "0.6647854", "0.6647854", "0.66450816", "0.6637777", "0.6637757", "0.66376257", "0.66376257", "0.66376257", "0.66376257", "0.66375935", "0.66375935", "0.6636323", "0.66295034" ]
0.7962695
0
This method handles the mouse release event on any graphic object and in the graphic canvas
public void mouseReleased(GraphicObject graphicObject, Event event) { int x, y; x = DOM.eventGetClientX(event) - canvas.getAbsoluteLeft() + Window.getScrollLeft(); y = DOM.eventGetClientY(event) - canvas.getAbsoluteTop() + Window.getScrollTop(); /** If we were draing with the pencil, then we need to finish it */ if((curr_obj!= null) && action.isPencil()) { curr_obj = null; /** If we were with a object selected, we need to update the variables to finish the transformation or translation, given the case. */ } else if((curr_obj != null) && action.isSelect()) { if(isTransformable) { /** This is needed because to increase performance during object rotation, the transform points aren't displayed. This is needed because this class is performing the Transform Points rotation and not Tatami(it doesn't works..). */ if(curr_obj == transformPointers[Action.ROTATE]) { Rectangle bnds = aux_obj.getBounds(); canvas.remove(transformPoints); transformPoints.clear(); createTransformPoints(bnds, aux_obj); } curr_obj = aux_obj; isTransformable = false; } else { isMovable = false; } /** If we were creating a TextBox, then we create a TextArea to allow the user to write and handle the Esc key functionality. */ } else if(curr_obj != null && action.isTextBox()) { this.action.setAction(Action.TEXT); this.editor = new TextArea(); this.editor.setWidth((int)(this.curr_obj.getBounds().getWidth()+2)+"px"); this.editor.setHeight((int)(this.curr_obj.getBounds().getHeight()+2)+"px"); this.editor.setFocus(true); this.editor.setEnabled(true); this.editor.addKeyboardListener(new KeyboardListenerAdapter() { public void onKeyDown(Widget sender, char keyCode, int modifiers) { if (keyCode == (char) KEY_ESCAPE) { int size = Integer.parseInt(currentFontSize.getItemText(currentFontSize.getSelectedIndex())); int x = (int)aux_obj.getX(), y = (int)aux_obj.getY(); editor.cancelKey(); curr_obj = new Text(editor.getText()); ((Text)curr_obj).setFont(currFont); addTextObject(curr_obj, x + (int)((1.0/4.0)*size), y+ (size) + (int)((1.0/4.0)*size)); canvas.remove(aux_obj); aux_obj = new TextBox(curr_obj.getBounds(), (Text)curr_obj); addTextBox(aux_obj, (int)curr_obj.getBounds().getX(), (int)curr_obj.getBounds().getY()); ((Text)curr_obj).bounder = (TextBox)aux_obj; Color textColor = new Color(curr_obj.getFillColor().getRed(), curr_obj.getFillColor().getGreen(), curr_obj.getFillColor().getBlue(), 0); aux_obj.setFillColor(textColor); aux_obj.setStroke(textColor, 1); aux_obj = null; curr_obj = null; apanel.remove(editor); editor = null; action.setAction(Action.TEXTBOX); } } }); this.apanel.add(editor, (int)this.curr_obj.getX() + this.canvas.getAbsoluteLeft() - Window.getScrollLeft() - 2, (int)this.curr_obj.getY() + this.canvas.getAbsoluteTop() - Window.getScrollTop() - 2); this.aux_obj = this.curr_obj; this.curr_obj = null; } else if(curr_obj != null && this.action.isPolyline()) { this.canvas.remove(curr_obj); this.curr_obj = new Path(this.currentPath); if(x != this.lastPosition[0] && y != this.lastPosition[1]) { ((Path)this.curr_obj).smoothCurveTo( x, y, lastPosition[0], lastPosition[1]); } else { ((Path)this.curr_obj).lineTo( x, y); } this.addGraphicObject(this.curr_obj, 0, 0); this.currentPath = ((Path)this.curr_obj).commands; } else if(curr_obj != null) { curr_obj = null; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void onRelease(MouseEvent e, GraphicsContext g) {\n\n }", "@Override\n public void onRelease(MouseEvent e, GraphicsContext g) {\n }", "public void mouseReleased( MouseEvent event ){}", "@Override\r\n\tpublic void mouseReleased(MouseEvent e) {\r\n\t\tLOG.fine(\"Released...\");\r\n\t\tif (shapeManipulator != null) {\r\n\t\t\tshapeManipulator.mouseReleased(e);\r\n\t\t}\r\n\t}", "@Override\n public void onMouseReleased(MouseEvent event, DrawingView dv) {\n }", "@Override\r\n\tpublic void mouseReleased(MouseEvent me) {\r\n\t\trelease(me.getX(), me.getY());\r\n\t}", "@Override\n\tpublic void mouseReleaseHandler(MouseEvent e) {\n\n\t}", "@Override\n public void mouseReleased(MouseEvent e)\n {\n }", "@Override\n public void mouseReleased(MouseEvent e)\n {\n }", "@Override\r\n public void mouseReleased(MouseEvent e) {\n }", "void mouseReleased(MouseEvent mouseEvent);", "public void mouseReleased(MouseEvent event) {}", "@Override\n public void mouseReleased(MouseEvent e) {\n }", "@Override\n public void mouseReleased(MouseEvent evt) {\n }", "@Override\n\t\t\tpublic void mouseReleased(MouseEvent arg0) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void mouseReleased(MouseEvent arg0) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void mouseReleased(MouseEvent arg0) {\n\t\t\t\t\n\t\t\t}", "@Override\r\n\t\t public void mouseReleased(MouseEvent arg0) {\n\t\t }", "@Override\n\t\t\tpublic void mouseReleased(MouseEvent arg0) {\n\t\t\t}", "void mouseReleased(double x, double y, MouseEvent e );", "@Override\r\n\t\t\tpublic void mouseReleased(MouseEvent arg0) {\n\t\t\t\t\r\n\t\t\t}", "@Override\r\n\t\t\tpublic void mouseReleased(MouseEvent arg0) {\n\t\t\t\t\r\n\t\t\t}", "@Override\r\n\t\t\tpublic void mouseReleased(MouseEvent arg0) {\n\t\t\t\t\r\n\t\t\t}", "@Override\r\n public void mouseReleased(MouseEvent arg0)\r\n {\n }", "public void mouseReleased(MouseEvent event) { \n\t\t\n\t}", "@Override\n\t\t\t\t\tpublic void mouseReleased(MouseEvent e) {\n\t\t\t\t\t}", "@Override\n\t\t\t\t\tpublic void mouseReleased(MouseEvent e) {\n\t\t\t\t\t}", "public void mouseReleased(MouseEvent e) {}", "public void mouseReleased(MouseEvent e) {}", "public void mouseReleased(MouseEvent e) {}", "@Override\r\n public void mouseReleased(MouseEvent e) {\n }", "@Override\r\n public void mouseReleased(MouseEvent e) {\n }", "@Override\r\n public void mouseReleased(MouseEvent e) {\n }", "@Override\n public void mouseReleased(MouseEvent e) {\n }", "@Override\n\t\t\t\t\tpublic void mouseReleased(MouseEvent arg0) {\n\n\t\t\t\t\t}", "@Override\r\n public void mouseReleased(MouseEvent e) {\r\n\r\n }", "@Override\r\n public void mouseReleased(MouseEvent e) {\r\n\r\n }", "@Override\n\t\t\t\tpublic void mouseReleased(MouseEvent arg0) {\n\n\t\t\t\t}", "@Override\n\tpublic void mouseReleased(MouseEvent event){}", "@Override\r\n\t\t\tpublic void mouseReleased(MouseEvent e) {\n\t\t\t}", "@Override\n\t\t\tpublic void mouseReleased(MouseEvent arg0) {\n\n\t\t\t}", "@Override\n\t\t\tpublic void mouseReleased(MouseEvent arg0) {\n\n\t\t\t}", "@Override\n\t\t\tpublic void mouseReleased(MouseEvent arg0) {\n\n\t\t\t}", "@Override\n\t\t\tpublic void mouseReleased(MouseEvent arg0) {\n\n\t\t\t}", "@Override\n\t\t\tpublic void mouseReleased(MouseEvent arg0) {\n\n\t\t\t}", "@Override\n\t\t\tpublic void mouseReleased(MouseEvent arg0) {\n\n\t\t\t}", "@Override\n\t\t\tpublic void mouseReleased(MouseEvent arg0) {\n\n\t\t\t}", "@Override\r\n\t\t\t\tpublic void mouseReleased(MouseEvent arg0) {\n\t\t\t\t\t\r\n\t\t\t\t}", "@Override\n public void mouseReleased(MouseEvent e) {\n }", "public abstract void mouseReleased(MouseReleasedEvent mr);", "@Override\n\t\t\t\tpublic void mouseReleased(MouseEvent e) {\n\n\t\t\t\t}", "@Override\r\n public void mouseReleased(MouseEvent e) {\n }", "@Override\r\n public void mouseReleased(MouseEvent e) {\n }", "@Override\r\n\t\t\t\t\tpublic void mouseReleased(MouseEvent e) {\n\t\t\t\t\t\t\r\n\t\t\t\t\t}", "@Override\r\n\t\t\t\t\tpublic void mouseReleased(MouseEvent e) {\n\t\t\t\t\t\t\r\n\t\t\t\t\t}", "@Override\n\tpublic void mouseReleased(MouseEvent event) {\n\t\t\n\t}", "@Override\n\t\t\t\tpublic void mouseReleased(MouseEvent e) {\n\t\t\t\t\t\n\t\t\t\t}", "@Override\n\t\t\t\tpublic void mouseReleased(MouseEvent e) {\n\t\t\t\t\t\n\t\t\t\t}", "@Override\n\t\t\tpublic void mouseReleased(MouseEvent e) {\n\n\t\t\t}", "@Override\n\t\t\tpublic void mouseReleased(MouseEvent e) {\n\n\t\t\t}", "@Override\n\t\t\tpublic void mouseReleased(MouseEvent e) {\n\n\t\t\t}", "@Override\n\t\t\tpublic void mouseReleased(MouseEvent e) {\n\n\t\t\t}", "@Override\n\t\t\tpublic void mouseReleased(MouseEvent e) {\n\n\t\t\t}", "@Override\n\t\t\tpublic void mouseReleased(MouseEvent e) {\n\n\t\t\t}", "@Override\n\t\t\tpublic void mouseReleased(MouseEvent e) {\n\n\t\t\t}", "@Override\n\t\t\tpublic void mouseReleased(MouseEvent e) {\n\n\t\t\t}", "@Override\n\t\t\tpublic void mouseReleased(MouseEvent e) {\n\n\t\t\t}", "@Override\n\t\t\tpublic void mouseReleased(MouseEvent e) {\n\n\t\t\t}", "@Override\n public void mouseReleased(MouseEvent e) {\n\n }", "@Override\r\n\t\t\t\tpublic void mouseReleased(MouseEvent e) {\n\t\t\t\t\t\r\n\t\t\t\t}", "@Override\r\n\t\t\t\tpublic void mouseReleased(MouseEvent e) {\n\t\t\t\t\t\r\n\t\t\t\t}", "@Override\r\n\t\t\t\tpublic void mouseReleased(MouseEvent e) {\n\t\t\t\t\t\r\n\t\t\t\t}", "@Override\r\n\t\t\t\tpublic void mouseReleased(MouseEvent e) {\n\t\t\t\t\t\r\n\t\t\t\t}", "@Override\r\n\t\t\t\tpublic void mouseReleased(MouseEvent e) {\n\t\t\t\t\t\r\n\t\t\t\t}", "public void mouseReleased(MouseEvent event) { }", "@Override\n\t\tpublic void mouseReleased(MouseEvent arg0) {\n\t\t\t\n\t\t}", "@Override\n\t\tpublic void mouseReleased(MouseEvent arg0) {\n\t\t\t\n\t\t}", "@Override\n\t\tpublic void mouseReleased(MouseEvent arg0) {\n\t\t\t\n\t\t}", "@Override\n\t\tpublic void mouseReleased(MouseEvent arg0) {\n\t\t\t\n\t\t}", "@Override\n\t\tpublic void mouseReleased(MouseEvent arg0) {\n\t\t\t\n\t\t}", "@Override\n\t\tpublic void mouseReleased(MouseEvent arg0) {\n\t\t\t\n\t\t}", "@Override\n\t\tpublic void mouseReleased(MouseEvent arg0) {\n\t\t\t\n\t\t}", "@Override\n\t\t\tpublic void mouseReleased(MouseEvent e) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void mouseReleased(MouseEvent e) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void mouseReleased(MouseEvent e) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void mouseReleased(MouseEvent e) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void mouseReleased(MouseEvent e) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void mouseReleased(MouseEvent e) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void mouseReleased(MouseEvent e) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void mouseReleased(MouseEvent e) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void mouseReleased(MouseEvent e) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void mouseReleased(MouseEvent e) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void mouseReleased(MouseEvent e) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void mouseReleased(MouseEvent e) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void mouseReleased(MouseEvent e) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void mouseReleased(MouseEvent e) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void mouseReleased(MouseEvent e) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void mouseReleased(MouseEvent e) {\n\t\t\t\t\n\t\t\t}", "@Override\r\n\tpublic void mouseReleased(MouseEvent arg0) {\n\t\t\r\n\t}", "@Override\r\n\tpublic void mouseReleased(MouseEvent arg0) {\n\t\t\r\n\t}" ]
[ "0.78479636", "0.78093266", "0.7538433", "0.75380737", "0.75071955", "0.7470827", "0.7446981", "0.74442136", "0.74442136", "0.7430498", "0.74169046", "0.74117553", "0.7407655", "0.7404157", "0.7379455", "0.7379455", "0.7379455", "0.7375536", "0.7374988", "0.73721987", "0.736995", "0.736995", "0.736995", "0.7366506", "0.73663694", "0.7362188", "0.7362188", "0.7356072", "0.7356072", "0.7356072", "0.73558927", "0.73558927", "0.73558927", "0.73491484", "0.73466533", "0.73463666", "0.73463666", "0.7345197", "0.7344535", "0.7340588", "0.7338261", "0.7338261", "0.7338261", "0.7338261", "0.7338261", "0.7338261", "0.7338261", "0.7333848", "0.7330074", "0.7322632", "0.7317779", "0.7317298", "0.7317298", "0.731589", "0.731589", "0.73139536", "0.73101354", "0.73101354", "0.73064315", "0.73064315", "0.73064315", "0.73064315", "0.73064315", "0.73064315", "0.73064315", "0.73064315", "0.73064315", "0.73064315", "0.7299019", "0.72968346", "0.72968346", "0.72968346", "0.72968346", "0.72968346", "0.7296666", "0.72954345", "0.72954345", "0.72954345", "0.72954345", "0.72954345", "0.72954345", "0.72954345", "0.7283787", "0.7283787", "0.7283787", "0.7283787", "0.7283787", "0.7283787", "0.7283787", "0.7283787", "0.7283787", "0.7283787", "0.7283787", "0.7283787", "0.7283787", "0.7283787", "0.7283787", "0.7283787", "0.7283679", "0.7283679" ]
0.7504341
5
Not used so far. It may be needed to increase usability on the application.
public void onKeyPress(Widget sender, char keyCode, int modifiers) { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private stendhal() {\n\t}", "@Override\n public void perish() {\n \n }", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "protected void onFirstUse() {}", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "public final void mo51373a() {\n }", "@Override\n protected void initialize() \n {\n \n }", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\n protected void init() {\n }", "@Override\n protected void initialize() {\n\n \n }", "@Override\n\tprotected void interr() {\n\t}", "private MetallicityUtils() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "protected MetadataUGWD() {/* intentionally empty block */}", "private Rekenhulp()\n\t{\n\t}", "protected boolean func_70814_o() { return true; }", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\n public void init() {\n\n }", "@Override\n public void init() {\n }", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tprotected void initialize() {\n\t}", "@Override\n\tprotected void initialize() {\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {}", "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "private ReportGenerationUtil() {\n\t\t\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 void init() {\n }", "protected void initialize() {}", "protected void initialize() {}", "private FlyWithWings(){\n\t\t\n\t}", "@Override\n public void init() {}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n protected void prot() {\n }", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tprotected void getExras() {\n\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 public void initialize() {}", "@Override\n public void initialize() {}", "@Override\n public void initialize() {}", "protected Doodler() {\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "protected void init() {\n // to override and use this method\n }", "@Override\n public void initialize() {\n \n }", "@Override\n protected void getExras() {\n }", "private RESTBackend()\n\t\t{\n\t\t\t\n\t\t}", "private void init() {\n\n\t}", "@Override\r\n\tprotected void processInit() {\n\r\n\t}", "@Override\n public void func_104112_b() {\n \n }", "private void m50366E() {\n }", "protected void mo6255a() {\n }", "@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}", "private void getStatus() {\n\t\t\n\t}", "@Override\r\n\tprotected void processInit() {\n\t\t\r\n\t}", "private NativeSupport() {\n\t}", "@Override\n public void initialize() { \n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\t\tpublic void init() {\n\t\t}", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\r\n\tpublic final void init() {\r\n\r\n\t}", "@Override\n public void initialize() {\n }", "@Override\n public void initialize() {\n }", "@Override\n public void initialize() {\n }", "@Override\n public void initialize() {\n }", "@Override\n public void initialize() {\n }", "@Override\n public void initialize() {\n }", "@Override\n public void initialize() {\n }", "@Override\n public void initialize() {\n }", "@Override\n public void initialize() {\n }", "@Override\n public void initialize() {\n }", "private Platform() {\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\tpublic void init() {\n\t\t\n\t}", "@Override\r\n\tprotected void initSelfData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initSelfData() {\n\t\t\r\n\t}", "public void smell() {\n\t\t\n\t}", "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n public void init() {\n\n }", "@SuppressWarnings(\"unused\")\n\tprivate void version() {\n\n\t}", "@Override\r\n\tprotected void prepare()\r\n\t{\r\n\r\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}", "@Override\r\n\tprotected void doF4() {\n\t\t\r\n\t}" ]
[ "0.6257771", "0.6256365", "0.6194495", "0.60840255", "0.6059037", "0.6059037", "0.6059037", "0.6059037", "0.6059037", "0.6059037", "0.5909242", "0.58730245", "0.5872218", "0.5865715", "0.58225703", "0.5807149", "0.57776845", "0.57593006", "0.57593006", "0.5758051", "0.5696042", "0.5695611", "0.5687573", "0.56794894", "0.56701094", "0.56658757", "0.5665038", "0.5659884", "0.5659884", "0.56435806", "0.56388175", "0.56387323", "0.56373", "0.56361264", "0.56361264", "0.56332225", "0.5627808", "0.5627808", "0.56247777", "0.5621681", "0.5609686", "0.5604911", "0.5604794", "0.56013733", "0.55969566", "0.55969566", "0.557358", "0.557358", "0.557358", "0.5562958", "0.55619764", "0.5560491", "0.5554158", "0.5550716", "0.55416745", "0.5539992", "0.5535929", "0.55184346", "0.55115855", "0.55115664", "0.55051047", "0.55026966", "0.55026966", "0.55026966", "0.55015504", "0.5501526", "0.5496586", "0.54949063", "0.54912174", "0.54829925", "0.54785204", "0.54731524", "0.54692256", "0.546222", "0.546222", "0.546222", "0.546222", "0.546222", "0.546222", "0.546222", "0.546222", "0.546222", "0.546222", "0.5460328", "0.54596007", "0.54596007", "0.54596007", "0.54596007", "0.54596007", "0.5455502", "0.5455502", "0.5453186", "0.5451261", "0.54495174", "0.54495174", "0.5425196", "0.54216015", "0.5410207", "0.5410207", "0.5410207", "0.54055464" ]
0.0
-1
Not used so far. It may be needed to increase usability on the application.
public void onKeyUp(Widget sender, char keyCode, int modifiers) { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private stendhal() {\n\t}", "@Override\n public void perish() {\n \n }", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "protected void onFirstUse() {}", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "public final void mo51373a() {\n }", "@Override\n protected void initialize() \n {\n \n }", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\n protected void init() {\n }", "@Override\n protected void initialize() {\n\n \n }", "@Override\n\tprotected void interr() {\n\t}", "private MetallicityUtils() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "protected MetadataUGWD() {/* intentionally empty block */}", "private Rekenhulp()\n\t{\n\t}", "protected boolean func_70814_o() { return true; }", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\n public void init() {\n\n }", "@Override\n public void init() {\n }", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tprotected void initialize() {\n\t}", "@Override\n\tprotected void initialize() {\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {}", "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "private ReportGenerationUtil() {\n\t\t\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 void init() {\n }", "protected void initialize() {}", "protected void initialize() {}", "private FlyWithWings(){\n\t\t\n\t}", "@Override\n public void init() {}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n protected void prot() {\n }", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tprotected void getExras() {\n\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 public void initialize() {}", "@Override\n public void initialize() {}", "@Override\n public void initialize() {}", "protected Doodler() {\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "protected void init() {\n // to override and use this method\n }", "@Override\n public void initialize() {\n \n }", "@Override\n protected void getExras() {\n }", "private RESTBackend()\n\t\t{\n\t\t\t\n\t\t}", "private void init() {\n\n\t}", "@Override\r\n\tprotected void processInit() {\n\r\n\t}", "@Override\n public void func_104112_b() {\n \n }", "private void m50366E() {\n }", "protected void mo6255a() {\n }", "@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}", "private void getStatus() {\n\t\t\n\t}", "@Override\r\n\tprotected void processInit() {\n\t\t\r\n\t}", "private NativeSupport() {\n\t}", "@Override\n public void initialize() { \n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\t\tpublic void init() {\n\t\t}", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\r\n\tpublic final void init() {\r\n\r\n\t}", "@Override\n public void initialize() {\n }", "@Override\n public void initialize() {\n }", "@Override\n public void initialize() {\n }", "@Override\n public void initialize() {\n }", "@Override\n public void initialize() {\n }", "@Override\n public void initialize() {\n }", "@Override\n public void initialize() {\n }", "@Override\n public void initialize() {\n }", "@Override\n public void initialize() {\n }", "@Override\n public void initialize() {\n }", "private Platform() {\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\tpublic void init() {\n\t\t\n\t}", "@Override\r\n\tprotected void initSelfData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initSelfData() {\n\t\t\r\n\t}", "public void smell() {\n\t\t\n\t}", "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n public void init() {\n\n }", "@SuppressWarnings(\"unused\")\n\tprivate void version() {\n\n\t}", "@Override\r\n\tprotected void prepare()\r\n\t{\r\n\r\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}", "@Override\r\n\tprotected void doF4() {\n\t\t\r\n\t}" ]
[ "0.6257771", "0.6256365", "0.6194495", "0.60840255", "0.6059037", "0.6059037", "0.6059037", "0.6059037", "0.6059037", "0.6059037", "0.5909242", "0.58730245", "0.5872218", "0.5865715", "0.58225703", "0.5807149", "0.57776845", "0.57593006", "0.57593006", "0.5758051", "0.5696042", "0.5695611", "0.5687573", "0.56794894", "0.56701094", "0.56658757", "0.5665038", "0.5659884", "0.5659884", "0.56435806", "0.56388175", "0.56387323", "0.56373", "0.56361264", "0.56361264", "0.56332225", "0.5627808", "0.5627808", "0.56247777", "0.5621681", "0.5609686", "0.5604911", "0.5604794", "0.56013733", "0.55969566", "0.55969566", "0.557358", "0.557358", "0.557358", "0.5562958", "0.55619764", "0.5560491", "0.5554158", "0.5550716", "0.55416745", "0.5539992", "0.5535929", "0.55184346", "0.55115855", "0.55115664", "0.55051047", "0.55026966", "0.55026966", "0.55026966", "0.55015504", "0.5501526", "0.5496586", "0.54949063", "0.54912174", "0.54829925", "0.54785204", "0.54731524", "0.54692256", "0.546222", "0.546222", "0.546222", "0.546222", "0.546222", "0.546222", "0.546222", "0.546222", "0.546222", "0.546222", "0.5460328", "0.54596007", "0.54596007", "0.54596007", "0.54596007", "0.54596007", "0.5455502", "0.5455502", "0.5453186", "0.5451261", "0.54495174", "0.54495174", "0.5425196", "0.54216015", "0.5410207", "0.5410207", "0.5410207", "0.54055464" ]
0.0
-1
This method handles all the button's click events from the gridShape and gridTransform buttons
public void onClick(Widget sender) { if(sender.equals(this.deleteButton)) { this.removeObject(); } else if(sender.equals(this.backButton)) { this.backObject(); } else if(sender.equals(this.frontButton)) { this.frontObject(); } else if(sender.equals(this.saveButton)) { this.saver.saveDocument(this.canvas); }else if(sender.equals(this.selectButton)) { this.action.setAction(Action.SELECT); } else if(sender.equals(this.pencilButton)) { this.unSelect(); this.action.setAction(Action.PENCIL); } else if(sender.equals(this.lineButton)) { this.unSelect(); this.action.setAction(Action.LINE); } else if(sender.equals(this.rectButton)) { this.unSelect(); this.action.setAction(Action.RECTANGLE); } else if(sender.equals(this.circleButton)) { this.unSelect(); this.action.setAction(Action.CIRCLE); } else if(sender.equals(this.ellipseButton)) { this.unSelect(); this.action.setAction(Action.ELLIPSE); } else if(sender.equals(this.polylineButton)) { this.unSelect(); this.action.setAction(Action.POLYLINE); } else if(sender.equals(this.textButton)) { this.unSelect(); this.action.setAction(Action.TEXTBOX); } else if(sender.equals(this.strokeButton)) { this.showPopUpStroke(); } else if(sender.equals(this.fill)) { this.showPopupColorFill(true); } else if(sender.equals(this.stroke)) { this.showPopupColorFill(false); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void handle(MouseEvent event) {\n Button sourceBt = (Button) event.getSource();\n int btColumn = minefieldGP.getColumnIndex(sourceBt);\n int btRow = minefieldGP.getRowIndex(sourceBt);\n MouseButton clickType = event.getButton();\n int clicks = event.getClickCount();\n if ((clicks == 1) && (clickType == MouseButton.PRIMARY)) {\n System.out.println(\"Primary was clicked at \" + btColumn + \",\" + btRow);\n // if it's an unexposed button\n int cellState = mainField.getCellState(btColumn,btRow);\n if (cellState == mainField.UNEXPOSED) {\n // call expose on the minefield\n int exposeResult = mainField.expose(btColumn,btRow);\n if (exposeResult == -1) {\n endGame(false);\n }\n if ((nonminesLabel.getText().equals(\"0\")) || (allCellsCorrect())) {\n endGame(true);\n }\n }\n }\n else if ((clicks == 2) && (clickType == MouseButton.PRIMARY)) {\n System.out.println(\"Primary was double clicked at \" + btColumn + \",\" + btRow);\n int cellState = mainField.getCellState(btColumn,btRow);\n // if the cell is already exposed\n if (cellState == mainField.EXPOSED) {\n boolean mineExposed = mainField.exposeNeighbors(btColumn,btRow);\n if (mineExposed) {\n endGame(false);\n }\n if ((nonminesLabel.getText().equals(\"0\")) || (allCellsCorrect())) {\n endGame(true);\n }\n }\n }\n else if (clickType == MouseButton.SECONDARY) {\n System.out.println(\"Secondary was clicked at \" + btColumn + \",\" + btRow);\n int toggleResult = mainField.toggleMarked(btColumn,btRow);\n if (toggleResult == mainField.MARKED) {\n sourceBt.setText(\"X\");\n sourceBt.setStyle(\"-fx-background-color: #FFFF00;\");\n }\n if (toggleResult == mainField.UNEXPOSED) {\n sourceBt.setText(\"\");\n sourceBt.setStyle(defaultBtStyle);\n }\n }\n refresh(width,height);\n if (nonminesLabel.getText().equals(\"0\")) {\n endGame(true);\n }\n }", "public void gridClick() {\n gridToggle = !gridToggle;\n draw();\n }", "@Override\n public void handle(ActionEvent event)\n {\n Object source = event.getSource();\n Button clickedBtn = (Button) source;\n\n //don't allow player to click a computer move\n if(clickedBtn.getText() == \"Y\")\n {\n //show prompt telling user illegal move\n moveBetter = new BetterMove();\n moveBetter.initModality(Modality.APPLICATION_MODAL);\n moveBetter.showAndWait();\n }\n //Allow player to only play non played buttons\n else if(clickedBtn.getText() == \"\" && clickedBtn.getText() != \"Y\")\n {\n //add image to button if user has selected an image\n if(AddDialog.getxImage() == true)\n {\n clickedBtn.setText(null);\n clickedBtn.setPadding(Insets.EMPTY);\n clickedBtn.setGraphic(new ImageView(AddDialog.getXImage()));\n clickedBtn.setId(\"xHasImage\");\n }\n\n //add default x if no image has been selected\n else\n {\n clickedBtn.setText(\"X\");\n }\n playComputer(usedRows, usedCols);\n }\n //get the location in grid where the button clicked is located\n currentX = myPane.getRowIndex(clickedBtn);\n currentY = myPane.getColumnIndex(clickedBtn);\n checkWin(usedRows, usedCols);\n }", "@Override\n public void onClick(View V){\n int r = 0; int c = 0;\n boolean broke = false;\n //finds the coordinates of the button that was clicked\n for(; r < 4; r++){\n for(c = 0; c < 4; c++){\n if(V.getId() == grid.getIDAt(r, c)) {\n broke = true;\n break;\n }\n }\n if(broke)\n break;\n }\n if(!broke)\n return;\n broke = false;\n int rBlank = 0;\n int cBlank = 0;\n //checks to see if the move is legal, and performs it if it is\n for(; rBlank < 4; rBlank++){\n for(cBlank = 0; cBlank < 4; cBlank++){\n if(grid.getButtonAt(rBlank, cBlank).getText() == \"\") {\n broke = true;\n if((r == rBlank && c == cBlank+1) || (r == rBlank && c == cBlank-1)\n || (r == rBlank+1 && c == cBlank) || (r == rBlank-1 && c == cBlank)){\n CharSequence tmp = grid.getButtonAt(r, c).getText();\n grid.getButtonAt(r, c).setText(grid.getButtonAt(rBlank, cBlank).getText());\n grid.getButtonAt(rBlank, cBlank).setText(tmp);\n }\n break;\n }\n }\n if(broke)\n break;\n }\n solved = grid.checkCorrect(correct);\n }", "@Override\n\tpublic void buttonClick(ClickEvent event) {\n\t\tif (event.getButton() == btnNext) {\n\t\t\t((ExpressZipWindow) getApplication().getMainWindow()).advanceToNext();\n\t\t\t// do event for Back being processed\n\t\t} else if (event.getButton() == btnBack) {\n\t\t\t((ExpressZipWindow) getApplication().getMainWindow()).regressToPrev();\n\t\t} else if (event.getButton() == btnRemoveShapeFile) {\n\t\t\tfor (SetupMapViewListener listener : listeners) {\n\t\t\t\tlistener.shapeFileRemovedEvent();\n\t\t\t}\n\t\t}\n\t}", "@Override\n\tpublic void mouseReleased() {\n\t\tbuttonReleased = -1;\n\n\t\t// If the click was on the grid, toggle the appropriate cell\n\t\tif (Utility_Functions.between(mouseX, GRID_LEFT_OFFSET, grid.rightOffset())\n\t\t\t\t&& Utility_Functions.between(mouseY, GRID_TOP_OFFSET, GRID_BOTTOM) && !(state == State.GAME_OVER)\n\t\t\t\t&& !(state == State.PAUSED)) {\n\t\t\tint xPos = (mouseX - GRID_LEFT_OFFSET) % (CARD_WIDTH + GRID_X_SPACER);\n\t\t\tint yPos = (mouseY - GRID_TOP_OFFSET) % (CARD_HEIGHT + GRID_Y_SPACER);\n\n\t\t\tif ((Utility_Functions.between(xPos, CARD_WIDTH + 1, CARD_WIDTH + GRID_X_SPACER)\n\t\t\t\t\t|| Utility_Functions.between(yPos, CARD_HEIGHT + 1, CARD_HEIGHT + GRID_Y_SPACER))) {\n\t\t\t} else {\n\t\t\t\tint col = (mouseX - GRID_LEFT_OFFSET) / (CARD_WIDTH + GRID_X_SPACER);\n\t\t\t\tint row = (mouseY - GRID_TOP_OFFSET) / (CARD_HEIGHT + GRID_Y_SPACER);\n\t\t\t\tif (row == clickedRow && col == clickedCol) {\n\t\t\t\t\tgrid.updateSelected(clickedCol, clickedRow);\n\t\t\t\t}\n\t\t\t}\n\t\t} else { // Figure out if a button was clicked and, if so, which one\n\t\t\tfor (int i = 0; i < NUM_BUTTONS; i++) {\n\t\t\t\tif (Utility_Functions.between(mouseX, BUTTON_LEFT_OFFSET + i * (BUTTON_WIDTH + 12),\n\t\t\t\t\t\tBUTTON_LEFT_OFFSET + i * (BUTTON_WIDTH + 12) + BUTTON_WIDTH)\n\t\t\t\t\t\t&& Utility_Functions.between(mouseY, BUTTON_TOP_OFFSET, BUTTON_TOP_OFFSET + BUTTON_HEIGHT)) {\n\t\t\t\t\tbuttonReleased = i;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (buttonSelected == buttonReleased && buttonReleased >= 0) {\n\t\t\t\tif (buttonReleased == 2) {\n\t\t\t\t\tnewGame();\n\t\t\t\t} else if (state != State.GAME_OVER) {\n\t\t\t\t\tswitch (buttonReleased) {\n\t\t\t\t\tcase 0:\n\t\t\t\t\t\tgrid.addColumn();\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 1:\n\t\t\t\t\t\tstate = State.FIND_SET;\n\t\t\t\t\t\thighlightCounter = 0;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase 3:\n\t\t\t\t\t\tTimer_Procedures.togglePauseResume(this);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tdefault:\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}", "@FXML\n private void handleButtonAction(MouseEvent event)\n {\n\n if(event.getTarget() == btn_bcconfig)\n {\n pane_bcconf.setVisible(false);\n pane_rtread.setVisible(false);\n gp_bc.setVisible(false);\n }\n else if (event.getTarget() == btn_bcread)\n {\n pane_bcconf.setVisible(true);\n pane_rtread.setVisible(false);\n if (cb_bcrt.isSelected() == true)\n {\n gp_bc.setVisible(true);\n }\n else\n {\n \t gp_bc.setVisible(false);\n }\n }\n else if (event.getTarget() == btn_rtread)\n {\n pane_bcconf.setVisible(false);\n pane_rtread.setVisible(true);\n }\n }", "public void actionPerformed(ActionEvent e) {\n if(e.getSource().getClass().getName().equals(\"GridButton\")){\n GridButton source = (GridButton)e.getSource();\n model.click(source.getRow(),source.getColumn());\n if (view.solutionShown()){\n model.setSolution();\n }\n }else if(e.getSource().getClass().getName().equals(\"javax.swing.JButton\")){\n JButton source = (JButton)e.getSource();\n if(source.getActionCommand().equals(\"Quit\")){\n System.exit(0);\n }else if(source.getActionCommand().equals(\"Reset\")){\n model.reset();\n model.setSolution();\n }else if(source.getActionCommand().equals(\"Random\")){\n model.randomize();\n model.setSolution();\n model.resetCount();\n }else if(source.getActionCommand().equals(\"Play again\")){\n model.reset();\n ((JFrame) SwingUtilities.getRoot(source)).dispose();\n }\n\n }\n view.update();\n }", "private void button1MouseClicked(MouseEvent e) {\n\t}", "public void buttonPressed(){\r\n\t\tsetBorder(new BevelBorder(10));\r\n\t}", "@Override\n\tprotected void on_button_pressed(String button_name) {\n\n\t}", "private void button1MouseClicked(MouseEvent e) {\n }", "private void button1MousePressed(MouseEvent e) {\n }", "public static Component [][] getGridButtons(GridBuilder gridBuilder, ImagesBuilder ib){\n\t\t\n\t\tshort [][] roadGrid = gridBuilder.getGrid();\n\t\t//Cursor cursor = new Cursor(Cursor.HAND_CURSOR);\n\t\tComponent [][] buttons = new Component [roadGrid.length] [roadGrid[0].length];\n\t\t//Border emptyBorder = BorderFactory.createEmptyBorder();\n\t\tJButton tempButton;\n\t\tfor(int i=0;i<roadGrid.length;i++){\n\t\t\t\n\t\t\tfor (int j=0;j<roadGrid[0].length;j++){\n\t\t\t\tif (roadGrid[i][j]!=0 && roadGrid[i][j]!=-100 && roadGrid[i][j]!=-200 && roadGrid[i][j]!=-300 && roadGrid[i][j]!=-400 && roadGrid[i][j]!=-500){\n\t\t\t\t\t\t\n\t\t\t\t\t\tif(roadGrid[i][j]==RoadConfig.INTERSECTION_MIXED_HORIZONTAL_BLOCK){\n\t\t\t\t\t\t\ttempButton = new JButton();//new GridButton(i,j,GraphicsConfig.BLOCK_SIDE_SIZE);\n\t\t\t\t\t\t\tImageIcon background = new ImageIcon( ImagesSelector.selectRoadImageSc(roadGrid[i][j], ib)); \n\t\t\t\t\t\t\ttempButton.setIcon(background);\n\t\t\t\t\t\t\ttempButton.setLayout(null);\n\t\t\t\t\t\t\ttempButton.setSize(GraphicsConfig.BLOCK_SIDE_SIZE*2, GraphicsConfig.BLOCK_SIDE_SIZE);\n\t\t\t\t\t\t\ttempButton.setPreferredSize(new Dimension(GraphicsConfig.BLOCK_SIDE_SIZE*2, GraphicsConfig.BLOCK_SIDE_SIZE));\n\t\t\t\t\t\t} else\n\t\t\t\t\t\tif(roadGrid[i][j]==RoadConfig.INTERSECTION_MIXED_VERTICAL_BLOCK){\n\t\t\t\t\t\t\ttempButton = new JButton();//new GridButton(i,j,GraphicsConfig.BLOCK_SIDE_SIZE);\n\t\t\t\t\t\t\tImageIcon background = new ImageIcon( ImagesSelector.selectRoadImageSc(roadGrid[i][j], ib)); \n\t\t\t\t\t\t\ttempButton.setIcon(background);\n\t\t\t\t\t\t\ttempButton.setLayout(null);\n\t\t\t\t\t\t\ttempButton.setSize(GraphicsConfig.BLOCK_SIDE_SIZE, GraphicsConfig.BLOCK_SIDE_SIZE*2);\n\t\t\t\t\t\t\ttempButton.setPreferredSize(new Dimension(GraphicsConfig.BLOCK_SIDE_SIZE, GraphicsConfig.BLOCK_SIDE_SIZE*2));\n\t\t\t\t\t\t} else\n\t\t\t\t\t\tif(roadGrid[i][j]>30){\n\t\t\t\t\t\t\ttempButton = new JButton();//new GridButton(i,j,GraphicsConfig.BLOCK_SIDE_SIZE);\n\t\t\t\t\t\t\tImageIcon background = new ImageIcon( ImagesSelector.selectRoadImageSc(roadGrid[i][j], ib)); \n\t\t\t\t\t\t\ttempButton.setIcon(background);\n\t\t\t\t\t\t\ttempButton.setLayout(null);\n\t\t\t\t\t\t\ttempButton.setSize(GraphicsConfig.BLOCK_SIDE_SIZE*3, GraphicsConfig.BLOCK_SIDE_SIZE*3);\n\t\t\t\t\t\t\ttempButton.setPreferredSize(new Dimension(GraphicsConfig.BLOCK_SIDE_SIZE*3, GraphicsConfig.BLOCK_SIDE_SIZE*3));\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse if(roadGrid[i][j]>10){\n\t\t\t\t\t\t\ttempButton = new JButton();//new GridButton(i,j,GraphicsConfig.BLOCK_SIDE_SIZE);\n\t\t\t\t\t\t\tImageIcon background = new ImageIcon( ImagesSelector.selectRoadImageSc(roadGrid[i][j], ib)); \n\t\t\t\t\t\t\ttempButton.setIcon(background);\n\t\t\t\t\t\t\ttempButton.setLayout(null);\n\t\t\t\t\t\t\ttempButton.setSize(GraphicsConfig.BLOCK_SIDE_SIZE*2, GraphicsConfig.BLOCK_SIDE_SIZE*2);\n\t\t\t\t\t\t\ttempButton.setPreferredSize(new Dimension(GraphicsConfig.BLOCK_SIDE_SIZE*2, GraphicsConfig.BLOCK_SIDE_SIZE*2));\n\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\ttempButton = new JButton();//new GridButton(i,j,GraphicsConfig.BLOCK_SIDE_SIZE);\n\t\t\t\t\t\t\tImageIcon background = new ImageIcon( ImagesSelector.selectRoadImageSc(roadGrid[i][j], ib)); \n\t\t\t\t\t\t\ttempButton.setIcon(background);\n\t\t\t\t\t\t\ttempButton.setLayout(null);\n\t\t\t\t\t\t\ttempButton.setSize(GraphicsConfig.BLOCK_SIDE_SIZE, GraphicsConfig.BLOCK_SIDE_SIZE);\n\t\t\t\t\t\t\ttempButton.setPreferredSize(new Dimension(GraphicsConfig.BLOCK_SIDE_SIZE, GraphicsConfig.BLOCK_SIDE_SIZE));\n\n\t\t\t\t\t\t}\n\t\t\t\t} \n\t\t\t\telse {\n\t\t\t\t\ttempButton = new JButton();//new GridButton(i,j,GraphicsConfig.BLOCK_SIDE_SIZE);\n\t\t\t\t\ttempButton.setPreferredSize(new Dimension(GraphicsConfig.BLOCK_SIDE_SIZE, GraphicsConfig.BLOCK_SIDE_SIZE));\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\ttempButton.setRolloverEnabled(true);\n\t\t\t\ttempButton.setBorder(BorderFactory.createLineBorder(Color.WHITE));\n\t\t\t\tbuttons[i][j] = tempButton;\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn buttons;\n\t}", "public ButtonGrid()\n {\n \t//Sets the dimensions for the ButtonGrid\n \tframe.setLayout(new GridLayout(10, 10));\n JMenuBar menuBar = new JMenuBar();\n frame.setJMenuBar(menuBar);\n \n \n \n //Adds a file and puzzle drop down to the menu bar\n JMenu fileMenu = new JMenu(\"File\");\n JMenu puzzleMenu = new JMenu(\"Puzzle\");\n menuBar.add(fileMenu);\n menuBar.add(puzzleMenu);\n \n //Creates menu items and adds actionlisteners to them\n JMenuItem openAction = new JMenuItem(\"Open\");\n JMenuItem exitAction = new JMenuItem(\"Exit\");\n JMenuItem solveAction = new JMenuItem(\"Solve\");\n JMenuItem newStartAction = new JMenuItem(\"New Start\");\n JMenuItem newFinishAction = new JMenuItem(\"New Finish\");\n openAction.addActionListener(new MenuActionListener(this));\n exitAction.addActionListener(new MenuActionListener(this));\n solveAction.addActionListener(new MenuActionListener(this));\n newStartAction.addActionListener(new MenuActionListener(this));\n newFinishAction.addActionListener(new MenuActionListener(this));\n \n //Adds menu items to the drop-down menus\n fileMenu.add(openAction);\n fileMenu.addSeparator();\n fileMenu.add(exitAction);\n puzzleMenu.add(solveAction);\n puzzleMenu.add(newStartAction);\n puzzleMenu.add(newFinishAction);\n \n //Creates the grid of buttons with the default size being 10 by 10\n grid = new JButton[10][10];\n for(int y = 0; y < 10; y++)\n {\n \tfor(int x = 0; x < 10; x++)\n {\n \t\tgrid[y][x] = new JButton(\"\"); \n frame.add(grid[y][x]);\n }\n } \n frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n frame.pack(); \n frame.setBounds(new Rectangle(330, 360));\n centerOnScreen();\n frame.setVisible(true); \n }", "@Override\n public void onClick(View view) {\n Toast.makeText(MainActivity.this,\"ButtonHandler onClick: \"+view,Toast.LENGTH_SHORT).show();\n\n //Determine the Button was clicked\n for (int row = 0; row < TicTacToe.SIDE; row++)\n for (int col = 0; col < TicTacToe.SIDE; col++)\n {\n if (view == buttons [row][col]){\n update(row,col);\n }\n }\n }", "public void actionPerformed(ActionEvent e) {\n String action = e.getActionCommand();\n \n System.out.println(action);\n if (action.equals(\"Grid\")) {\n JToggleButton button = (JToggleButton)e.getSource();\n showGrid = button.isSelected();\n frame.repaint();\n }\n }", "@Override\r\n public void mouseClicked(MouseEvent e) {\n System.out.println(e.getButton());\r\n\r\n // MouseEvent.BUTTON3 es el boton derecho\r\n }", "public void mousePressed(MouseEvent e) {\n mDown=true;\n int i=0;\n // Iterate through each button bounding box\n for(Rectangle r : buttonBounds) {\n // Check if the click point intersects with the rectangle's area\n if(r.contains(e.getPoint())) {\n // If it does, call the buttonCallback with the appropriate button display text\n buttonCallback(buttonNames.get(i));\n }\n i++;\n }\n }", "private void init_buttons(){\r\n /**\r\n * BOTON NUEVO\r\n */\r\n im_tool1.setOnMouseClicked((MouseEvent mouseEvent) -> {\r\n if(mouseEvent.getButton().equals(MouseButton.PRIMARY)){\r\n if(mouseEvent.getClickCount() > 0){\r\n botonInicio();\r\n botonNuevo();\r\n }\r\n }\r\n });\r\n /**\r\n * BOTON EDITAR\r\n */\r\n im_tool2.setOnMouseClicked((MouseEvent mouseEvent) -> {\r\n if(mouseEvent.getButton().equals(MouseButton.PRIMARY)){\r\n if(mouseEvent.getClickCount() > 0){\r\n botonEditar();\r\n }\r\n }\r\n });\r\n /**\r\n * BOTON GUARDAR\r\n */\r\n im_tool3.setOnMouseClicked((MouseEvent mouseEvent) -> {\r\n if(mouseEvent.getButton().equals(MouseButton.PRIMARY)){\r\n if(mouseEvent.getClickCount() > 0){\r\n botonGuardar();\r\n }\r\n }\r\n }); \r\n /**\r\n * BOTON ELIMINAR\r\n */\r\n im_tool4.setOnMouseClicked((MouseEvent mouseEvent) -> {\r\n if(mouseEvent.getButton().equals(MouseButton.PRIMARY)){\r\n if(mouseEvent.getClickCount() > 0){\r\n botonEliminar();\r\n }\r\n }\r\n });\r\n /**\r\n * BOTON IMPRIMIR\r\n */\r\n im_tool5.setOnMouseClicked((MouseEvent mouseEvent) -> {\r\n if(mouseEvent.getButton().equals(MouseButton.PRIMARY)){\r\n if(mouseEvent.getClickCount() > 0){ \r\n botonImprimir();\r\n }\r\n }\r\n });\r\n /**\r\n * BOTON REGRESAR\r\n */\r\n im_tool6.setOnMouseClicked((MouseEvent mouseEvent) -> {\r\n if(mouseEvent.getButton().equals(MouseButton.PRIMARY)){\r\n if(mouseEvent.getClickCount() > 0){\r\n botonInicio();\r\n }\r\n }\r\n });\r\n /**\r\n * BOTON POR ASIGNAR\r\n */\r\n im_tool7.setOnMouseClicked((MouseEvent mouseEvent) -> {\r\n if(mouseEvent.getButton().equals(MouseButton.PRIMARY)){\r\n if(mouseEvent.getClickCount() > 0){\r\n //\r\n }\r\n }\r\n });\r\n /**\r\n * BOTON NOTAS DE CREDITO\r\n */\r\n im_tool8.setOnMouseClicked((MouseEvent mouseEvent) -> {\r\n if(mouseEvent.getButton().equals(MouseButton.PRIMARY)){\r\n if(mouseEvent.getClickCount() > 0){\r\n //\r\n }\r\n }\r\n });\r\n /**\r\n * BOTON DEVOLUCION\r\n */\r\n im_tool9.setOnMouseClicked((MouseEvent mouseEvent) -> {\r\n if(mouseEvent.getButton().equals(MouseButton.PRIMARY)){\r\n if(mouseEvent.getClickCount() > 0){\r\n //\r\n }\r\n }\r\n });\r\n /**\r\n * BOTON BUSCAR\r\n */\r\n im_tool12.setOnMouseClicked((MouseEvent mouseEvent) -> {\r\n if(mouseEvent.getButton().equals(MouseButton.PRIMARY)){\r\n switch (mouseEvent.getClickCount()){\r\n case 1:\r\n botonInicio();\r\n botonBuscar();\r\n break;\r\n case 2:\r\n Datos.setIdButton(2003041);\r\n Gui.getInstance().showBusqueda(\"Busqueda\"); \r\n break;\r\n }\r\n }\r\n });\r\n /**\r\n * SELECCION EN LA TABLA\r\n */\r\n tb_guias.setOnMouseClicked((MouseEvent mouseEvent) -> {\r\n if(mouseEvent.getButton().equals(MouseButton.PRIMARY)){\r\n if(mouseEvent.getClickCount() > 0){\r\n if ((tb_guias.getItems() != null) && (!tb_guias.getItems().isEmpty()))\r\n selectedRowGuide();\r\n }\r\n }\r\n }); \r\n /**\r\n * metodo para mostrar buscar el nro de guia\r\n * param: ENTER O TAB\r\n */\r\n tf_nroguia.setOnKeyReleased((KeyEvent ke) -> {\r\n if (ke.getCode().equals(KeyCode.ENTER)){\r\n //Valida que el evento se haya generado en el campo de busqueda\r\n if(((Node)ke.getSource()).getId().equals(\"tf_nroguia\")){\r\n //Solicita los datos y envia la Respuesta a imprimirse en la Pantalla\r\n Datos.setLog_cguias(new log_CGuias()); \r\n boolean boo = Ln.getInstance().check_log_CGuias_rela_caja(tf_nroguia.getText()); \r\n numGuias = 0;\r\n if(boo){\r\n Datos.setRep_log_cguias(Ln.getInstance().find_log_CGuias(tf_nroguia.getText(), \"\", \"ncaja\", Integer.parseInt(rows)));\r\n loadTable(Datos.getRep_log_cguias()); \r\n }\r\n else{\r\n change_im_val(0, im_checkg); \r\n Gui.getInstance().showMessage(\"El Nro. de \" + ScreenName + \" NO existe!\", \"A\");\r\n tf_nroguia.requestFocus();\r\n }\r\n }\r\n }\r\n });\r\n /**\r\n * metodo para mostrar buscar el nro de guia\r\n * param: ENTER O TAB\r\n */\r\n tf_nrorguia.setOnKeyReleased((KeyEvent ke) -> {\r\n if (ke.getCode().equals(KeyCode.ENTER)){\r\n //Valida que el evento se haya generado en el campo de busqueda\r\n if(((Node)ke.getSource()).getId().equals(\"tf_nrorguia\")){\r\n //Solicita los datos y envia la Respuesta a imprimirse en la Pantalla\r\n boolean booa = true; \r\n if(booa){\r\n boolean booc = Ln.getInstance().check_log_CGuias_caja(tf_nrorguia.getText()); \r\n if(booc){\r\n change_im_val(0, im_checkg); \r\n Gui.getInstance().showMessage(\"El Nro. de Guia ya esta relacionado!\", \"A\");\r\n tf_nrorguia.requestFocus();\r\n }\r\n else{\r\n for (int i = 0; i < log_guide_guia.size(); i++) {\r\n if(tf_nrorguia.getText().equals(tb_guias.getItems().get(i).getGuias())){\r\n booa = false;\r\n Gui.getInstance().showMessage(\"El Nro. de Guia ya esta relacionado!\", \"A\");\r\n tf_nrorguia.requestFocus();\r\n break;\r\n }\r\n } \r\n if(booa){\r\n log_Guide_rel_inv guide_carga = new log_Guide_rel_inv();\r\n\r\n List<Fxp_Archguid_gfc> data = \r\n Ln.getList_log_Archguid_gfc(Ln.getInstance().find_Archguid_gfc(tf_nrorguia.getText()));\r\n\r\n if (data.get(0).getStat_guia().equals(\"X\")\r\n || data.get(0).getStat_guia().equals(\"C\")){\r\n guide_carga.setNumorden(String.valueOf((log_guide_guia.size() + 1)));\r\n guide_carga.setGuias(tf_nrorguia.getText());\r\n guide_carga.setNumfact(data.get(0).getNumfact());\r\n guide_carga.setNumclie(data.get(0).getNumclie());\r\n\r\n if (data.get(0).getStat_guia().equals(\"A\")){\r\n if (tipoOperacion == 1)\r\n guide_carga.setStat_guia(null);\r\n else\r\n guide_carga.setStat_guia(data.get(0).getStat_guia());\r\n }\r\n else{\r\n guide_carga.setStat_guia(null);\r\n }\r\n \r\n \r\n log_guide_guia.add(guide_carga);\r\n\r\n loadTableGuide_guias();\r\n change_im_val(200, im_checkg); \r\n\r\n numFactCarga = numFactCarga + data.get(0).getNumfact();\r\n numClieCarga = numClieCarga + data.get(0).getNumclie();\r\n\r\n tf_nrorguia.setText(\"\");\r\n }else{\r\n if (data.get(0).getStat_guia().equals(\"\")){\r\n Gui.getInstance().showMessage(\"El Nro. de Guia NO tiene relación de Guia de Carga!\", \"A\");\r\n }\r\n else{\r\n Gui.getInstance().showMessage(\"El Nro. de Guia ya esta relacionado!\", \"A\");\r\n }\r\n tf_nrorguia.requestFocus();\r\n }\r\n \r\n }\r\n }\r\n }\r\n else{\r\n change_im_val(0, im_checkg); \r\n Gui.getInstance().showMessage(\"El Nro. de Guia NO existe!\", \"A\");\r\n tf_nrorguia.requestFocus();\r\n }\r\n }\r\n }\r\n });\r\n }", "@Override\n\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t\t// find and set the coordinates of the current click\n\t\t\t_gridPanel.selected(e.getX(), e.getY());\n\t\t}", "@Override\n\tpublic void handleButton (Context context, int button) {\n\t\tif (bodyDrag) super.handleButton(context, button);\n\t\telse context.setHeight(renderer.getHeight(open.getValue()!=0));\n\t\tif (context.isClicked() && button==Interface.LBUTTON) {\n\t\t\tdragging=true;\n\t\t\tattachPoint=context.getInterface().getMouse();\n\t\t} else if (!context.getInterface().getButton(Interface.LBUTTON) && dragging) {\n\t\t\tPoint mouse=context.getInterface().getMouse();\n\t\t\tdragging=false;\n\t\t\tPoint p=getPosition(context.getInterface());\n\t\t\tp.translate(mouse.x-attachPoint.x,mouse.y-attachPoint.y);\n\t\t\tsetPosition(context.getInterface(),p);\n\t\t}\n\t\tif (!bodyDrag) super.handleButton(context, button);\n\t}", "@Override\n public void start(Stage primaryStage) throws Exception {\n buttons = new Button[size][size];\n logic = new FindPairLogic(size);\n\n var pane = new GridPane();\n pane.setAlignment(Pos.CENTER);\n var scene = new Scene(pane, WIDTH, HEIGHT);\n for (int i = 0; i < size; i++) {\n for (int j = 0; j < size; j++) {\n buttons[i][j] = new Button();\n buttons[i][j].setMaxWidth(Double.MAX_VALUE);\n buttons[i][j].setMaxHeight(Double.MAX_VALUE);\n buttons[i][j].setFocusTraversable(false);\n GridPane.setHgrow(buttons[i][j], Priority.ALWAYS);\n GridPane.setVgrow(buttons[i][j], Priority.ALWAYS);\n pane.add(buttons[i][j], i, j);\n int i1 = i;\n int j1 = j;\n buttons[i][j].setOnMouseClicked(event -> {\n if (isGameEnable.get()) {\n dealWithState(logic.getState(i1, j1));\n }\n });\n }\n }\n\n primaryStage.setScene(scene);\n primaryStage.show();\n }", "@Override\r\n\t\t\tpublic void buttonClick(com.vaadin.ui.Button.ClickEvent event) {\n\t\t\t\t\r\n\t\t\t\tbuscarPacks();\r\n\t\t\t}", "public void buildButtons() {\r\n\t\tImage temp1= display_img.getImage();\r\n\t\tImageIcon img=new ImageIcon(temp1.getScaledInstance(800, 800, Image.SCALE_SMOOTH));\r\n\t\timg1 = img.getImage();\r\n\t\tfor(int y=0;y<10;y++) {\r\n\t\t\tfor(int x=0; x<10; x++) {\r\n\t\t\t\tImage image = Toolkit.getDefaultToolkit().createImage(new FilteredImageSource(img1.getSource(), new CropImageFilter(x * 800 / 10, y * 800 / 10, 100, 100)));\r\n\t\t\t\tImageIcon icon = new ImageIcon(image);\r\n\t\t\t\tJButton temp = new JButton(icon);\r\n\t\t\t\ttemp.putClientProperty(\"position\", new Point(y,x));\r\n\t\t\t\tsolutions.add(new Point(y,x));\r\n\t\t\t\ttemp.putClientProperty(\"isLocked\", false);\r\n\t\t\t\ttemp.addMouseListener(new DragMouseAdapter());\r\n\t\t\t\tgrid[x][y]=temp;\r\n\r\n\t\t\t\tbuttons.add(temp);\r\n\t\t\t}\r\n\t\t}\r\n\t}", "@Override\n public void onClick(View v) {\n presenter.onGridClick(v);\n }", "@Override\n\tpublic void mouseClicked(MouseEvent e) {\n\t\tPositionVO tmp = getPosition(e.getPoint());\n\t\tbp.getGrid(tmp).lighten();\n//\t\tif(e.getClickCount() == 2 && !bp.getLock() && !bp.getGrid(tmp).getMovement()){//双击\n\t\tif(e.getClickCount() == 2 && !bp.getLock() ){//双击\n\t\t\tbms.useToolGrid(tmp);\n\t\t}\n\t\telse{\n\t\t\tif (count == 0) {\n\t\t\t\tpvo1 = tmp;\n\t\t\t\tfocusGrids[0] = bp.getGrid(tmp);\n\t\t\t\tcount++;\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tif (count == 1) {\n\t\t\t\tpvo2 = tmp;\n\t\t\t\tfocusGrids[1] = bp.getGrid(tmp);\n\t\t\t\t// if (pvo1.isValid(pvo2)) {\n\t\t\t\t// 调用model 以下直接调用panel里方法的 一些测试\n\t\t\t\t// bp.swapUnit(pvo1, pvo2);\n\t//\t\t\tif (!bp.getGrid(pvo1).getMovement()\n\t//\t\t\t\t\t&& !bp.getGrid(pvo2).getMovement())\n//\t\t\t\tif(bp.getStill())\n//\t\t\t\tif(!bp.getLock() && (!bp.getGrid(pvo1).getMovement()&& !bp.getGrid(pvo2).getMovement()))\n\t\t\t\tif(!bp.getLock())\n\t\t\t\t\tbms.trySwap(pvo1, pvo2);\n\t\t\t\tcount = 0;\n\t\t\t\tfocusGrids[0].normalize();\n\t\t\t\tfocusGrids[1].normalize();\n\t\t\t} else {\n\t\t\t\tpvo1 = pvo2;\n\t\t\t\t// }\n\t\t\t}\n\t\t}\n\t}", "@Override\n\tpublic void actionPerformed(ActionEvent e) {\n\n\t\tvv = new JPanel(new GridLayout(100, 100, 100, 100));\n\t\tfinal JButton[][] squares = new JButton[8][8];\n\t\tff = new JFrame(\"New Game\");\n\n\t\t// image for buttons\n\t\tImageIcon icon = new ImageIcon(\"White.png\");\n\t\tImageIcon icon2 = new ImageIcon(\"Black.png\");\n\t\t// creating instance of JButton\n\t\t// 2 for loop for row and column of jButtons\n\t\tfor (int i = 0; i < squares.length; i += 1) {\n\t\t\tfor (int j = 0; j < squares[i].length; j += 1) {\n\t\t\t\tActionEvent actionEvent = null;\n\t\t\t\tJButton b1 = new JButton();\n\t\t\t\tint i1 = i;\n\t\t\t\tint j1 = j;\n\t\t\t\tint i2 = i;\n\t\t\t\tint j2 = j;\n\n\t\t\t\tb1.setSize(100, 100);\n\n\t\t\t\tint x = i * 100;\n\t\t\t\tint y = j * 100;\n\t\t\t\t// set Locations of buttons for game\n\t\t\t\tb1.setLocation(x, y);\n\t\t\t\tsquares[i][j] = b1;\n\n\t\t\t\tint t = i + j;\n\t\t\t\t// place for white buttons,if i+j%2=0 its white\n\t\t\t\tif (t % 2 == 0) {\n\n\t\t\t\t\tsquares[i][j].setBackground(Color.white);\n\t\t\t\t\tvv.add(squares[i][j]);\n\t\t\t\t\t// place for black buttons,if i+j%2!=0 its black\n\t\t\t\t} else {\n\n\t\t\t\t\tsquares[i][j].setBackground(Color.black);\n\t\t\t\t\tvv.add(squares[i][j]);\n\t\t\t\t}\n\n\t\t\t\tif ((i >= 4 && j <= 3) || (i <= 3 && j >= 4)) {\n\t\t\t\t\t// set icon for buttons that we want use (black)\n\t\t\t\t} else if (i <= 3 && j <= 3 - i) {\n\n\t\t\t\t\tsquares[i][j].setIcon(icon2);\n\n\t\t\t\t\tsquares[i2][j2].addActionListener(new ActionListener() {\n\n\t\t\t\t\t\tJButton pieceToMoveButton = null;\n\t\t\t\t\t\t//actionPerformed for moving icon2 buttons\n\t\t\t\t\t\tpublic void actionPerformed(ActionEvent e) {\n\n\t\t\t\t\t\t\t((JButton) e.getSource()).setIcon(null);\n\n\t\t\t\t\t\t\tif (pieceToMoveButton == null) // if this button press is selecting the piece to move\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t// save the button used in piece selection for later use\n\t\t\t\t\t\t\t\tpieceToMoveButton = squares[i2][j2];\n\n\t\t\t\t\t\t\t} else // if this button press is selecting where to move\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t// move the image to the new button (the one just pressed)\n\n\t\t\t\t\t\t\t\tsquares[i2][j2].setIcon(icon2);\n\n\t\t\t\t\t\t\t\tpieceToMoveButton = null; // makes the next button press a piece selection\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t}\n\n\t\t\t\t\t});\n\t\t\t\t\tff.add(squares[i2][j2]);\n\n\t\t\t\t} else {\n\n\t\t\t\t}\n\n\t\t\t\t// set icon for buttons that we want use (white)\n\t\t\t\tif (i >= 4 && j >= 11 - i) {\n\n\t\t\t\t\tsquares[i][j].setIcon(icon);\n\n\t\t\t\t} else {\n\n\t\t\t\t}\n\t\t\t\t//actionPerformed for moving icon buttons\n\t\t\t\tif (i >= 4 && j >= 11 - i) {\n\n\t\t\t\t\tsquares[i1][j1].addActionListener(new ActionListener() {\n\n\t\t\t\t\t\tJButton pieceToMoveButton = null;\n\n\t\t\t\t\t\tpublic void actionPerformed(ActionEvent e) {\n\n\t\t\t\t\t\t\t((JButton) e.getSource()).setIcon(null);\n\n\t\t\t\t\t\t\tif (pieceToMoveButton == null) // if this button press is selecting the piece to move\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t// save the button used in piece selection for later use\n\t\t\t\t\t\t\t\tpieceToMoveButton = squares[i1][j1];\n\n\t\t\t\t\t\t\t\t// ((JButton)e.getSource()).setIcon(null);\n\t\t\t\t\t\t\t} else // if this button press is selecting where to move\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t// move the image to the new button (the one just pressed)\n\n\t\t\t\t\t\t\t\tsquares[i1][j1].setIcon(icon);\n\n\t\t\t\t\t\t\t\tpieceToMoveButton = null; // makes the next button press a piece selection\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t}\n\n\t\t\t\t\t});\n\t\t\t\t\tff.add(squares[i1][j1]);\n\t\t\t\t}\n\n\t\t\t}\n\n\t\t}\n\n\t\tff.setSize(900, 900);// 400 width and 500 height\n\t\tff.setLayout(null);// using no layout managers\n\t\tff.setVisible(true);// making the frame visible\n\t\tvv.setSize(900, 900);// 400 width and 500 height\n\t\tvv.setLayout(null);// using no layout managers\n\t\tvv.setVisible(true);// making the frame visible\n\t\tff.add(vv);\n\t\tff.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\n\t}", "@Override\n public void handle(ActionEvent e)\n {\n Button button = (Button) e.getSource();\n \n if(numCardsSelected == 4)\n {\n checkForMatches();\n turnCount++;\n numCardsSelected = 0;\n button.setStyle(null);\n\n \tfor(Node child: gridpane.getChildren())\n {\n \t\tif(child.getStyle() == \"-fx-background-color: MediumSeaGreen\")\n {\n \t\t\tif(matchedDeck.size() != 0)\n \t\t\t{\n\t \t\t\tfor(int i = 0; i < matchedDeck.size(); i++)\n\t \t\t\t{\n\t \t\t\t\tif(matchedDeck.get(i).getCardId() == Integer.parseInt(child.getId()))\n\t \t\t\t\t{\n\t \t\t\t\t\tchild.setStyle(\"-fx-background-color:#38ade3\");\n\t\t break;\n\t \t\t\t\t}\n\t \t\t\t\telse\n\t \t\t\t\t{\n\t \t\t\t\t\tchild.setStyle(null);\n\t \t\t\t\t}\n\t \t\t\t}\n \t\t\t}\n \t\t\telse\n \t\t\t{\n \t\t\t\tchild.setStyle(null);\n \t\t\t}\n }\t\n }\n \t\n \thistoryText.setText(historyText.getText() + \"Selection Order: \");\n \t\n \tfor(int i = 0; i < 4; i++)\n {\n \t\thistoryText.setText(historyText.getText() + getCard(playerDeck.get(i).getCardId()) + \" \");\n\n }\n \n \thistoryText.setText(historyText.getText() + \"\\tPURCHASED: \");\n\n for(int i = 0; i < 4; i++)\n {\n if(playerDeck.get(i).getCardPurchased() == true)\n {\n historyText.setText(historyText.getText() + getCard(playerDeck.get(i).getCardId()) + \" \");\n }\n }\n\n historyText.setText(historyText.getText() + \" REJECTED: \");\n for(int i = 0; i < 4; i++)\n {\n if(playerDeck.get(i).getCardPurchased() == false)\n {\n historyText.setText(historyText.getText() + getCard(playerDeck.get(i).getCardId()) + \" \");\n }\n }\n historyText.setText(historyText.getText() + \"\\n\");\n scrollpane.setVvalue(1.0);\n \n clearPlayerDeck();\n }\n else\n {\n \t\n \t// set sell button red\n \tbutton.setStyle(\"-fx-background-color:#f54040\");\n \thistoryText.setText(historyText.getText() + \"You must select 4 cards to attempt to sell! \\n\");\n }\n }", "@Override\n\t\t\tpublic void handle(ActionEvent arg0) {\n\t\t\t\tGameController.setToButtonPanel();\n\t\t\t}", "private ButtonJPanel(){\n GridLayout layout = new GridLayout(0, 1);//creates a grid layout with 1 column and unlimited rows, for the buttons\n setLayout(layout);//sets the JPanel layout\n layout.setVgap(5);//sets the vertical gap between the buttons\n setBackground(Color.WHITE);//sets the color of the panel to WHITE\n \n fillrecimg = new ImageIcon(\"src/fillrec.png\");//assigns a png image to the ImageIcon\n fillovalimg = new ImageIcon(\"src/filloval.png\");\n emptyrecimg = new ImageIcon(\"src/emptyrec.png\");\n emptyovalimg = new ImageIcon(\"src/emptyoval.png\");\n linedrawimg = new ImageIcon(\"src/linedraw.png\");\n \n clear = new JButton(\"Clear\");//initializes the buttons, either with text or an icon\n (fillrec = new JButton(fillrecimg)).setActionCommand(\"Filled Rectangle\");//icon buttons are assigned a string ActionCommand\n (filloval = new JButton(fillovalimg)).setActionCommand(\"Filled Oval\");\n (emptyrec = new JButton(emptyrecimg)).setActionCommand(\"Empty Rectangle\");\n (emptyoval = new JButton(emptyovalimg)).setActionCommand(\"Empty Oval\");\n (linedraw = new JButton(linedrawimg)).setActionCommand(\"Line Drawing\");\n opencolor = new JButton(\"Color Chooser\");\n \n JButton[] buttons = {clear, fillrec, filloval, emptyrec, emptyoval, linedraw, opencolor};//an array of all the buttons\n \n for(JButton button : buttons){//for each button...\n button.addActionListener(this);//add a listener\n add(button);//add the button to the panel\n button.setOpaque(true);//make the color visable\n button.setBackground(Color.BLACK);//set background to black\n button.setFont(new Font(Font.DIALOG, Font.PLAIN, 13));//sets the font, style, and size\n }\n }", "@Override\n public void onClick() {\n // TODO: Disabled adding shape on just click. It should be added inside the BPMNDiagram by default.\n // log(Level.FINE, \"Palette: Adding \" + description);\n // addShapeToCanvasEvent.fire(new AddShapeToCanvasEvent(definition, factory));\n }", "public static void buttonHandler(ActionEvent e){\t\n\t\t\n\t\tif(firstButtonPressed == false){\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t//\t\n\t\t\tfirstButton = (JButton)e.getSource();\n\t\t\tlocation = Integer.parseInt(firstButton.getName());\n\t\t\tfirstRow = location/boardBoundsRow;\n\t\t\tfirstColumn = location%boardBoundsColumn;\n\t\t\tfirstSelected = (JPanel)userInterface.boardButtons.getComponent(location);\n\t\t\toldColor = firstSelected.getBackground();\n\t\t\tif(board[firstRow][firstColumn].color.equals(turn) == false){\t\t\t\t\t\t\t\t\t//picked opponent piece\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tfirstButtonPressed = true;\n\t\t\tfirstSelected.setBackground(new Color(255,255,51));\n\t\t}\n\t\telse{\n\t\t\tsecondButton = (JButton)e.getSource();\n\t\t\tlocation = Integer.parseInt(secondButton.getName());\n\t\t\tsecondRow = location/boardBoundsRow;\n\t\t\tsecondColumn = location%boardBoundsColumn;\n\t\t\tfirstButtonPressed = false;\n\t\t\tfirstSelected.setBackground(oldColor);\n\t\t\tif(board[secondRow][secondColumn].color.equals(turn)){\t\t\t\t\t\t\t\t\t//own piece can't move there pick new move\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tpieces oldPiece = new pieces(firstRow,firstColumn,board[firstRow][firstColumn].name,board[firstRow][firstColumn].color);\n\t\t\tpieces newPiece = new pieces(secondRow,secondColumn,board[secondRow][secondColumn].name,board[secondRow][secondColumn].color);\n\t\t\tif(game.checkAndMovePiece(board, board[firstRow][firstColumn], board[secondRow][secondColumn])){\n\t\t\t\tpushUndoVectors(firstButton.getIcon(), secondButton.getIcon(),oldPiece, newPiece);\n\t\t\t\tsecondButton.setIcon(firstButton.getIcon());\n\t\t\t\tfirstButton.setIcon(null);\n\t\t\t\tif(turn.equals(\"white\")){\n\t\t\t\t\tking.whiteKingCheck = false;\n\t\t\t\t}\n\t\t\t\tif(turn.equals(\"black\")){\n\t\t\t\t\tking.blackKingCheck = false;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tswitchPlayers();\n\t\t\t\tString playerTurn = \"Player turn: \";\n\t\t\t\tuserInterface.turn.setText(playerTurn.concat(turn));\n\t\t\t\tif(king.whiteKingCheck==true || king.blackKingCheck == true){\n\t\t\t\t\tString checkMate = checkEndGame();\n\t\t\t\t\tuserInterface.check.setText(\"You are in check!\");\n\t\t\t\t\tcheckMateScenario(checkMate);\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\tuserInterface.check.setText(\"You are not in check\");\n\t\t\t\t}\n\t\t\t\tif(endGame.staleMate(board, turn)){\n\t\t\t\t\tJOptionPane.showMessageDialog(userInterface.frame, \"StaleMate!\");\n\t\t\t\t\tnewGame();\n\t\t\t\t}\n\t\t\t\n\t\t\t}\n\t\t\telse{\n\t\t\t\tJOptionPane.showMessageDialog(userInterface.frame, \"Invalid Move! Please try again\");\n\t\t\t}\n\t\t}\n\t\t\n\t}", "public void mouseClicked(int ex, int ey, int button) {\r\n\t}", "protected void mouseClicked(int par1, int par2, int par3)\n {\n if (this.buttonId >= 0)\n {\n \t// no setting minimap keybinds to mouse button. Can do so if wanted if I change ZanMinimap to not send every input to Keyboard for processing. Check if it's mouse first\n // this.options.setKeyBinding(this.buttonId, -100 + par3);\n // ((GuiButton)this.controlList.get(this.buttonId)).displayString = this.options.getOptionDisplayString(this.buttonId);\n this.buttonId = -1;\n // KeyBinding.resetKeyBindingArrayAndHash();\n }\n else\n {\n super.mouseClicked(par1, par2, par3);\n }\n }", "protected void handleClickEvent(int x, int y) {\n // empty on purpose\n }", "private void createGridSizeButton() {\n\t\tEventHandler<MouseEvent> eventHandler = new EventHandler<MouseEvent>() {\n\t @Override public void handle(MouseEvent e) {\n\t \tinputGridSize();}\n };\n \tcreateGenericButton(2, 1, myResources.getString(\"userinput\"), eventHandler);\n }", "@Override\n public void actionPerformed(ActionEvent e) {\n int row = 0, col = 0;\n gridLocationFinder:\n for (row = 0; row < 3; row++) {\n for (col = 0; col < 3; col++) {\n if (e.getSource() == gridButtons[row][col])\n break gridLocationFinder; // break out of outer loop using labelled break\n }\n }\n if (gameModel.setCell(row, col, gameModel.currentPlayer())) // legal\n {\n JButton buttonPressed = (JButton) e.getSource();\n buttonPressed.setText(gameModel.currentPlayer().toString());\n buttonPressed.setEnabled(false); // disable pressing again\n\n // check for gameOver...display game over in statusBar or whose turn it now is\n statusBar.setText(gameModel.currentPlayer().toString());\n }\n\n }", "@FXML public void handleToggleButtons() {\n\t\t\n\t\t// binarySplitButton\n\t\tif (binarySplitButton.isSelected()) {\n\t\t\tbinarySplitButton.setText(\"True\");\n\t\t} else {\n\t\t\tbinarySplitButton.setText(\"False\");\n\t\t}\n\t\t\n\t\t// collapseTreeButton\n\t\tif (collapseTreeButton.isSelected()) {\n\t\t\tcollapseTreeButton.setText(\"True\");\n\t\t} else {\n\t\t\tcollapseTreeButton.setText(\"False\");\n\t\t}\n\t\t\n\t\t// debugButton\n\t\tif (debugButton.isSelected()) {\n\t\t\tdebugButton.setText(\"True\");\n\t\t} else {\n\t\t\tdebugButton.setText(\"False\");\n\t\t}\n\t\t\n\t\t// doNotCheckCapabilitiesButton\n\t\tif (doNotCheckCapabilitiesButton.isSelected()) {\n\t\t\tdoNotCheckCapabilitiesButton.setText(\"True\");\n\t\t} else {\n\t\t\tdoNotCheckCapabilitiesButton.setText(\"False\");\n\t\t}\n\t\t\n\t\t// doNotMakeSplitPAVButton\n\t\tif (doNotMakeSplitPAVButton.isSelected()) {\n\t\t\tdoNotMakeSplitPAVButton.setText(\"True\");\n\t\t} else {\n\t\t\tdoNotMakeSplitPAVButton.setText(\"False\");\n\t\t}\n\t\t\n\t\t// reduceErrorPruningButton\n\t\tif (reduceErrorPruningButton.isSelected()) {\n\t\t\treduceErrorPruningButton.setText(\"True\");\n\t\t} else {\n\t\t\treduceErrorPruningButton.setText(\"False\");\n\t\t}\n\t\t\n\t\t// saveInstanceDataButton\n\t\tif (saveInstanceDataButton.isSelected()) {\n\t\t\tsaveInstanceDataButton.setText(\"True\");\n\t\t} else {\n\t\t\tsaveInstanceDataButton.setText(\"False\");\n\t\t}\n\t\t\n\t\t// subTreeRaisingButton\n\t\tif (subTreeRaisingButton.isSelected()) {\n\t\t\tsubTreeRaisingButton.setText(\"True\");\n\t\t} else {\n\t\t\tsubTreeRaisingButton.setText(\"False\");\n\t\t}\n\t\t\n\t\t// unprunedButton\n\t\tif (unprunedButton.isSelected()) {\n\t\t\tunprunedButton.setText(\"True\");\n\t\t} else {\n\t\t\tunprunedButton.setText(\"False\");\n\t\t}\n\t\t\n\t\t// useLaplaceButton\n\t\tif (useLaplaceButton.isSelected()) {\n\t\t\tuseLaplaceButton.setText(\"True\");\n\t\t} else {\n\t\t\tuseLaplaceButton.setText(\"False\");\n\t\t}\n\t\t\n\t\t// useMDLcorrectionButton\n\t\tif (useMDLcorrectionButton.isSelected()) {\n\t\t\tuseMDLcorrectionButton.setText(\"True\");\n\t\t} else {\n\t\t\tuseMDLcorrectionButton.setText(\"False\");\n\t\t}\n\t\t\n\t}", "private void setSingleEvent(GridLayout mainGrid) {\n for (int i = 0; i < mainGrid.getChildCount(); i++) {\n //You can see , all child item is CardView , so we just cast object to CardView\n CardView cardView = (CardView) mainGrid.getChildAt(i);\n final int finalI = i;\n cardView.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View view) {\n if (finalI == 0) {\n Intent intent = new Intent(MainActivity.this, SoundActivity.class);\n startActivity(intent);\n }\n else if (finalI == 1) {\n Intent intent = new Intent(MainActivity.this, LedActivity.class);\n startActivity(intent);\n }\n else if (finalI == 2) {\n Intent intent = new Intent(MainActivity.this, MagneticActivity.class);\n startActivity(intent);\n }\n else if (finalI == 3) {\n Intent intent = new Intent(MainActivity.this, LightActivity.class);\n startActivity(intent);\n }\n }\n });\n }\n }", "@Override\n public void mouseClicked(MouseEvent e) {\n System.out.println(\"MouseClicked\");\n //kwadrat.clicked();\n trojkat.clicked();\n //kolo.clicked();\n //square.clicked();\n }", "@Override\n public void onClick(View view) {\n if(buttonHandler != null)\n {\n //we send out to our button handler\n buttonHandler.handleEvolve(wid);\n }\n Toast.makeText(getContext(), \"Evolve please!\", Toast.LENGTH_SHORT).show();\n\n }", "private void boundButtons() {\r\n \tsingleplayer = (Button) findViewById(R.id.single);\r\n \tsingleplayer.setTypeface(tf);\r\n \tsingleplayer.setOnClickListener(new OnClickListener() {\r\n \t\t\r\n \t\t/** Start a drawing surface for one player*/\r\n\t\t\t@Override\r\n\t\t\tpublic void onClick(View v) {\r\n\t\t\t\tIntent intent = new Intent(Main.this, DrawingActivitySingle.class);\r\n\t\t\t\tstartActivity(intent);\r\n\t\t}});\r\n \t\r\n \tmultiplayer = (Button) findViewById(R.id.multi);\r\n \tmultiplayer.setTypeface(tf);\r\n \tmultiplayer.setOnClickListener(new OnClickListener() {\r\n \t\t\r\n \t\t/** Connect to other users to start a drawing surface*/\r\n\t\t\t@Override\r\n\t\t\tpublic void onClick(View v) {\r\n\t\t\t\tif (multiplayer.isEnabled()) {\r\n\t\t\t\t\tmultiplayer.setEnabled(false);\r\n\t\t\t\t\t\r\n\t\t\t\t\tinitMultiPlayer();\r\n\t\t\t\t}\r\n\t\t}});\r\n \t\r\n \toptions = (Button) findViewById(R.id.options);\r\n \toptions.setTypeface(tf);\r\n \toptions.setOnClickListener(new OnClickListener() {\r\n \t\t\r\n \t\t/** Start the options menu */\r\n\t\t\t@Override\r\n\t\t\tpublic void onClick(View v) {\r\n\t\t\t\tIntent intent = new Intent(Main.this, Options.class);\r\n\t\t\t\tstartActivity(intent);\r\n\t\t}});\r\n }", "@FXML\r\n\tvoid main_btn_clicked(MouseEvent event) {\r\n\r\n\t}", "public void actionPerformed(ActionEvent e) \n {\n JFrame dialogBox;\n \n // Use a nested for loop to loop through the buttons and find which\n // one was clicked.\n for (int row = 0; row < 15; row++) \n {\n for (int col = 0; col < 15; col++) \n {\n // If the button is valid, continue, otherwise, show an error.\n if (_self[row][col] == e.getSource() && \n _self[row][col].getBackground() == Color.WHITE)\n {\n dialogBox = new JFrame();\n \n // Display a coordinate message.\n JOptionPane.showMessageDialog(dialogBox, \n \"Coordinates: \" + row + \", \" + col, \n \"Button Coordinates\", JOptionPane.INFORMATION_MESSAGE);\n \n // Needs to know which player to use, we also need to change the color of the selected cell based off of response\n boolean result = _currentPlayer.takeATurn(row, col); //0 for miss 1 for hit? \n \n // KIRSTEN/NOAH HERE, Using currentPlayer, call function in Player that sets the status of color grid in the Grid class if takeATurn returns as a hit\n // Then Based on that color setbackground to Red if its a hit\n \n //works if current player is initialized \n _currentPlayer.setColorGrid(row, col, result ? Color.ORANGE : Color.WHITE);\n \n _buttonGrid[row][col].setBackground(result ? Color.ORANGE : Color.WHITE);\n \n // changeGridColor(row, col, result);\n // switchPlayer();\n }\n \n else if (_self[row][col] == e.getSource() && \n _self[row][col].getBackground() == Color.WHITE)\n {\n dialogBox = new JFrame();\n \n // Display an error message.\n JOptionPane.showMessageDialog(dialogBox, \n \"Button already chosen\", \"Invalid Button\", \n JOptionPane.ERROR_MESSAGE);\n }\n }\n }\n }", "private void setToggleEvent(GridLayout mainGrid) {\n for (int i = 0; i < mainGrid.getChildCount(); i++) {\n //You can see , all child item is CardView , so we just cast object to CardView\n final CardView cardView = (CardView) mainGrid.getChildAt(i);\n cardView.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View view) {\n if (cardView.getCardBackgroundColor().getDefaultColor() == -1) {\n //Change background color\n cardView.setCardBackgroundColor(Color.parseColor(\"#FF6F00\"));\n Toast.makeText(BuyChoose.this, \"State : True\", Toast.LENGTH_SHORT).show();\n\n } else {\n //Change background color\n cardView.setCardBackgroundColor(Color.parseColor(\"#FFFFFF\"));\n Toast.makeText(BuyChoose.this, \"State : False\", Toast.LENGTH_SHORT).show();\n }\n }\n });\n }\n }", "@Override\n public void handle( MouseEvent e)\n {\n if( tradeBankGroup.isVisible() || domesticTradeGroup.isVisible())\n return;\n System.out.println(\"Attempt to build vertex at index \" + index);\n //Circle circle = (Circle) e.getSource();\n //circle.setFill(Color.RED);\n \n if(construct_type == Construction_type.SETTLEMENT){\n System.out.println(\"Helelelele\");\n if(mainController.buildSettlement(index)){\n System.out.println(\"Bindik bir alamete gidiyoruz kıyamete amaneeen\");\n Circle circle = (Circle) e.getSource();\n circle.setFill( mainController.getCurrentPlayerColor());\n refreshResources();\n refreshScores();\n }\n }\n else if(construct_type == Construction_type.CITY){\n if(mainController.upgradeCity(index)){\n Circle circle = (Circle) e.getSource();\n circle.setStroke(Color.GOLD);\n circle.setStrokeWidth(3.0);\n refreshResources();\n refreshScores();\n }\n }\n }", "@FXML\n public void initialize() {\n for (int i = 0; i < 5; i++) {\n for (int j = 0; j < 5; j++) {\n bt[i][j] = new Button();\n bt[i][j].setAlignment(Pos.BOTTOM_CENTER);\n bt[i][j].setBackground(Background.EMPTY);\n bt[i][j].setMaxSize(65, 65);\n bt[i][j].setMinSize(65, 65);\n gridPane.add(bt[i][j], j, i);\n GridPane.setHalignment(bt[i][j], HPos.CENTER);\n GridPane.setValignment(bt[i][j], VPos.CENTER);\n }\n }\n submitAction.setDisable(true);\n jumpMove.setDisable(true);\n submitAction.setOnAction(event -> {\n try {\n System.out.println(\"Dettagli mossa: \");\n System.out.println(\"Coords target: \" + currentMove.getTargetX() + \", \" + currentMove.getTargetY());\n System.out.println(\"Pawn: \" + currentMove.getIdPawn());\n System.out.println(\"Action: \" + currentMove.getAction());\n disableButtons(true);\n handlerClient.sendAction(this.currentMove);\n submitAction.setDisable(true);\n lightPause();\n\n } catch (IOException e) {\n setFailed(\"Errore di rete\");\n System.exit(1);\n } finally {\n jumpMove.setDisable(true);\n disableButtons(true);\n }\n });\n jumpMove.setOnAction(ev -> {\n try {\n handlerClient.sendAction(new Mossa(currentMove.getAction(), -1, -1, -1));\n } catch (IOException e) {\n setFailed(\"Errore di rete\");\n System.exit(1);\n } finally {\n jumpMove.setDisable(true);\n effetto = false;\n disableButtons(true);\n lightPause();\n }\n });\n\n firstPl.setEffect(shadow);\n textArea.setEffect(shadow);\n movePawn.setEffect(shadow);\n buildPawn.setEffect(shadow);\n stopPawn.setEffect(shadow);\n submitAction.setEffect(shadow);\n jumpMove.setEffect(shadow);\n lightPause();\n\n }", "@Override\n public void mousePressed(MouseEvent e) {\n x_pressed = e.getX();\n y_pressed = e.getY();\n \n }", "public void actionPerformed(ActionEvent e) \n\t{\n\t\t/* the source of the event */\n\t\tGameButton button = (GameButton)e.getSource();\n\t\t\n\t\t/* row and column of the button that triggered the event */\n\t\tint row = button.getRow();\n\t\tint col = button.getColumn();\n\t\t\n\t\t/* same button clicked twice in a row */\n\t\tif (row == m_rowFocused && col == m_colFocused) {\n\t\t\treturn;\n\t\t}\n\t\t\n\t\t/* highlight the piece if it's owned by the player whose turn it is */\n\t\tif (isMyPiece(row, col)) {\n\t\t\tclearAllSquares();\n\t\t\thighlightSquare(row, col);\n\t\t} else {\n\t\t\t/* check if this is a second click */\n\t\t\tChessPiece piece = getPiece(m_rowFocused, m_colFocused);\n\t\t\tif (piece != null) {\n\t\t\t\t/* attempt our move if it's a second click */\n\t\t\t\tm_version.makeMove(piece, row, col);\n\t\t\t}\n\t\t\t\n\t\t\t/* clear our highlighting variables */\n\t\t\tclearSquare(m_rowFocused, m_colFocused);\n\t\t\tm_rowFocused = m_colFocused = -1;\n\t\t}\n\t}", "@Override\n public void onClick(View v) {\n Outerloop:\n for(int row = 0; row < TicTacToe.SIDE; row++) {\n for(int col = 0; col < TicTacToe.SIDE; col++){\n if (buttonGridView.isButtonThere(v, row, col)) {\n Update(row, col);\n break Outerloop;\n }\n }\n }\n\n }", "@FXML\r\n private void handleButtonAction(ActionEvent event) {\n }", "private void jButton4MouseClicked(java.awt.event.MouseEvent evt) {\n }", "private void jButton4MouseClicked(java.awt.event.MouseEvent evt) {\n }", "@Override\n\tpublic void processViewOrderButtonClick(ProcessViewOrderObjectEvent e) {\n\t\t\n\t}", "public void buttonClicked() {\n mSanitizorGame.buttonClicked();\n }", "private void setupButtons() {\n\t\tsetupCreateCourse();\n\t\tsetupRemoveCourse();\n\t\tsetupCreateOffering();\n\t\tsetupRemoveOffering();\n\t\tsetupAddPreReq();\n\t\tsetupRemovePreReq();\n\t\tsetupBack();\n\t}", "@Override\n public void handle(MouseEvent event) {\n if( tradeBankGroup.isVisible() || domesticTradeGroup.isVisible())\n return;\n settlement_selected_rectangle.setVisible(false);\n city_selected_rectangle.setVisible(false);\n road_selected_rectangle.setVisible(true);\n \n construct_type = Construction_type.ROAD;\n }", "private void refreshButtons() {\n flowPane.getChildren().clear();\n\n for(String testName : Files.listTests()) {\n TestJson info;\n try {\n info = TestParser.read(testName);\n } catch(FileNotFoundException e) {\n continue; /* Skip */\n }\n\n JFXButton button = new JFXButton(testName);\n button.pseudoClassStateChanged(PseudoClass.getPseudoClass(\"select-button\"), true);\n\n button.setOnAction(e -> buttonPressed(info));\n\n if(!filter(info, button))\n continue;\n\n // If this model asked to be put in a specific place, put it there\n if(!info.custom && info.order >= 0)\n flowPane.getChildren().add(Math.min(info.order, flowPane.getChildren().size()), button);\n else\n flowPane.getChildren().add(button);\n }\n }", "@Override\n public void handle(ActionEvent e)\n {\n Button button = (Button) e.getSource();\n \n \tRadioButton selectedButton = (RadioButton) rbGroup.getSelectedToggle();\n int matchedCards = 0;\n \n // only allow guessHandler to activate when player has selected 4 final cards\n if(numCardsSelected == 4 && selectedButton != null)\n {\n \t// reset highlighting on grade selection buttons\n buttonK2.setStyle(null);\n button35.setStyle(null);\n button68.setStyle(null);\n \n \t//disable all radio buttons\n pattern0.setDisable(true);\n pattern1.setDisable(true);\n pattern2.setDisable(true);\n pattern3.setDisable(true);\n pattern4.setDisable(true);\n pattern5.setDisable(true);\n pattern6.setDisable(true);\n pattern7.setDisable(true);\n pattern8.setDisable(true);\n pattern9.setDisable(true);\n pattern10.setDisable(true);\n pattern11.setDisable(true);\n pattern12.setDisable(true);\n pattern13.setDisable(true);\n pattern14.setDisable(true);\n pattern15.setDisable(true);\n pattern16.setDisable(true);\n pattern17.setDisable(true);\n pattern18.setDisable(true);\n pattern19.setDisable(true);\n pattern20.setDisable(true);\n pattern21.setDisable(true);\n pattern22.setDisable(true);\n pattern23.setDisable(true);\n \n // disable all cards\n for(Node child: gridpane.getChildren())\n {\n \tchild.setDisable(true);\n }\n \n // disable sell cards button\n sellCards.setDisable(true);\n \n // disable declare pattern button\n declarePattern.setDisable(true);\n \n // disable guess pattern button\n guessPattern.setDisable(true);\n \n \tbutton.setStyle(null);\n \t\n \tcheckForMatches();\n \t\n \t// system.out.println(\"Pattern Selected:\" + Integer.parseInt(selectedButton.getId()));\n solutionChoice = Integer.parseInt(selectedButton.getId());\n guessPattern();\n\n // determine if the four selected cards are in the matched deck\n for(int i = 0; i < playerDeck.size(); i++)\n {\n \tfor(int j = 0; j < matchedDeck.size(); j++)\n \t{\n \t\tif(playerDeck.get(i).getCardId() == matchedDeck.get(j).getCardId())\n \t\t{\n \t\t\tmatchedCards++;\n \t\t\tbreak;\n \t\t}\n \t}\n }\n \n if(Integer.parseInt(selectedButton.getId()) == pattern.ordinal() && matchedCards == 4)\n {\n // display winning message to player\n historyText.setText(historyText.getText() + \"\\n***** YOU FIGURED OUT THE PATTERN *****\\n\");\n historyText.setText(historyText.getText() + \"It took you \" + turnCount + \" turns to solve.\\n\");\n historyText.setText(historyText.getText() + \"Congrats on the win! To start a new game, select your grade level. \\n\");\n\n // play winning audio\n playAudio(1);\n }\n else if(Integer.parseInt(selectedButton.getId()) == pattern.ordinal())\n {\n \t// display losing message to player\n historyText.setText(historyText.getText() + \"\\n --- Sorry, you picked the correct pattern, \"\n \t\t+ \"but not all of the selected cards were purchased. --- \\n\");\n historyText.setText(historyText.getText() + \"You used \" + turnCount + \" turns.\\n\");\n historyText.setText(historyText.getText() + \"To start a new game, select your grade level. \\n\");\n\n // play losing audio\n playAudio(0);\n }\n else\n {\n // display losing message to player\n historyText.setText(historyText.getText() + \"\\n --- Sorry, the correct pattern was \" + convertEnum() + \". --- \\n\");\n historyText.setText(historyText.getText() + \"You used \" + turnCount + \" turns.\\n\");\n historyText.setText(historyText.getText() + \"To start a new game, select your grade level. \\n\");\n\n // play losing audio\n playAudio(0);\n }\n scrollpane.setVvalue(1.0);\n // de-select radio button\n selectedButton.setSelected(false);\n }\n else\n {\n \t// set sell button red\n \tbutton.setStyle(\"-fx-background-color:#f54040\");\n \thistoryText.setText(historyText.getText() + \"You must select 4 cards and have a pattern selected to guess the pattern! \\n\");\n } \n }", "private void onClickHandler(MouseEvent e) {\n Circle source = (Circle) e.getSource();\n int selectColumnIndex = GridPane.getColumnIndex(source);\n // Display the move of Player on the Grid, and registered that move to the Game logic\n checkCircle(selectColumnIndex);\n client.getHumanPlayer().play((byte) selectColumnIndex);\n // Check if player's move is a winning move. 1 mean player\n if (client.getHumanPlayer().getGame().playerHasWon((byte) 1)) {\n playerWinCounter++;\n playerCounter.setText((Integer.toString(playerWinCounter)));\n winDisplay.setText(\"YOU WON THE MATCH.\\nClick Reset to replay, , or Quit to Close the Game\\n\");\n // Disable the Grid so user Cannot continue after they won\n grid.setDisable(true);\n // Exit the method\n return;\n } // --------------------- \\\\\n // If the last move from Player is NOT a winning move, send the Player's move to server \n else {\n // Disable the Grid so user cannot make move while waiting for AI to respond\n grid.setDisable(true);\n try {\n serverPackage = client.sendAndReceive(client.getSocket(), client.getPackage(), 1, selectColumnIndex);\n } catch (IOException error) {\n System.out.println(\"There is an error while trying to send the Client move to server: \" + error + \"\\n\");\n }\n }\n\n // Get the move from the server\n int serverMove = client.checkPackage(serverPackage);\n // Display the move of AI on the Grid, and registered that move to the Game logic\n checkCircle(serverMove);\n client.getGame().getBoard().insertToken((byte) serverMove, (byte) 2);\n // Check if AI's move is a winning move. 2 mean AI\n if (client.getHumanPlayer().getGame().playerHasWon((byte) 2)) {\n AIwinCounter++;\n aiCounter.setText(Integer.toString(AIwinCounter));\n winDisplay.setText(\"COMPUTER WON THE MATCH.\\nClick Reset to replay, or Quit to Close the Game\");\n grid.setDisable(true);\n // Exit the method\n return;\n }\n\n // If 42 moves have been made, and noone win, then it's a draw\n if (client.getGame().isDraw()) {\n winDisplay.setText(\"IT IS A DRAW.\\nClick Reset to replay, or Quit to Close the Game\");\n grid.setDisable(true);\n // Exit the method\n return;\n }\n // Enable the Grid again so User can Play\n grid.setDisable(false);\n }", "public void mouseReleased(MouseEvent e)\r\n\t\t\t\t{\n\t\t\t\t\tint mouseX = e.getX();\r\n\t\t\t\t\tint mouseY = e.getY();\r\n\t\t\t\t\tPoint mousePoint = new Point(mouseX, mouseY);\r\n\r\n\t\t\t\t\tif(infoButtonRect.contains(mousePoint)) // click inside the \"I\" button\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tSystem.out.println(\"Clicked toolbar info button\");\r\n\r\n\t\t\t\t\t\t// check to see if the room owner information exists\r\n\t\t\t\t\t\tif(theGridView.getRoomInfo().get(\"OWNER\") != null)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tif(theGridView.getRoomInfo().get(\"OWNER\").equals(theGridView.getMyCharacter().getUsername()))\r\n\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\ttheGridView.toggleEditRoomDescriptionWindow(); // show/hide the Edit Room Description window\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\telse\r\n\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\ttheGridView.toggleRoomDescriptionWindow(); // show/hide the description\r\n\t\t\t\t\t\t\t}\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\ttheGridView.toggleRoomDescriptionWindow(); // show/hide the description\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse if(globeButtonRect.contains(mousePoint)) // click inside the globe button\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tSystem.out.println(\"Clicked toolbar globe button\");\r\n\t\t\t\t\t\ttheGridView.showMap(); // show the map\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse if(inventoryButtonRect.contains(mousePoint)) // click inside the inventory button\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tSystem.out.println(\"Clicked toolbar inventory button\");\r\n\t\t\t\t\t\ttheGridView.toggleInventoryWindow(); // show/hide the inventory window\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse if(messagesButtonRect.contains(mousePoint)) // click inside the messages button\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tSystem.out.println(\"Clicked toolbar messages button\");\r\n\r\n\t\t\t\t\t\t// hide the \"New Mail\" animation\r\n\t\t\t\t\t\tmessagesAnimationLabel.setVisible(false);\r\n\r\n\t\t\t\t\t\ttheGridView.toggleMessagesWindow(); // show/hide the messages window\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse if(shopButtonRect.contains(mousePoint)) // click inside the shop button\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tSystem.out.println(\"Clicked toolbar shop button\");\r\n\t\t\t\t\t\ttheGridView.toggleShopWindow(); // show/hide the shop window\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse if(questButtonRect.contains(mousePoint)) // click inside the quest button\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tSystem.out.println(\"Clicked toolbar quest button\");\r\n\t\t\t\t\t\tgamePirates.endGame();\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse if(emoticonsButtonRect.contains(mousePoint)) // click inside the emoticons button\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tSystem.out.println(\"Clicked toolbar emoticons button\");\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\tSystem.out.println(\"Clicked Toolbar (left): \" + mouseX + \"-\" + mouseY);\r\n\t\t\t\t\t}\r\n\t\t\t\t}", "@Override\r\n public void handleMouseUpEvent(Mouse.ButtonEvent buttonEvent) {\n }", "@Override\n public void mouseClicked(MouseEvent e) {\n //location where mouse was pressed\n Point mousePoint = e.getPoint();\n //conversion to location on frame\n Vec2 worldPoint = view.viewToWorld(mousePoint);\n float fx = e.getPoint().x;\n float fy = e.getPoint().y;\n float vx = worldPoint.x;\n float vy = worldPoint.y;\n //Completes checks for pressing of GUI components\n restartCheck(vx, vy);\n settingsCheck(vx, vy);\n zoomCheck(fx, fy);\n }", "@Override\n public void mouseDown(MouseEvent me) {\n if (me.button > 3) {\n return;\n }\n OldFXCanvas.this.sendMouseEventToFX(me, AbstractEvents.MOUSEEVENT_PRESSED);\n }", "private void jButton3MouseClicked(java.awt.event.MouseEvent evt) {\n }", "private void setSingleEvent(GridLayout mainGrid)\n {\n for(int i=0;i<mainGrid.getChildCount();i++)\n {\n CardView cardView = (CardView)mainGrid.getChildAt(i);\n final int finalI = i;\n cardView.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n //Toast.makeText(productListActivity.this,\"Clicked at index\"+finalI,Toast.LENGTH_SHORT).show();\n Intent intent = new Intent(productListActivity.this, productInformationActivity.class);\n productListActivity.this.startActivity(intent);\n }\n });\n }\n }", "void configureButtonListener();", "public void actionPerformed (ActionEvent e) {\n\t \t\t\tfor(int i=0; i<10; i++) {//add the buttons to the frame\n\t \t \tfor (int j=0; j<10; j++) {\n\t \t \t\ttile[i][j].addActionListener(new tileClicked());\n\t \t \t}\n\t \t }\n\t \t\t\tSystem.out.println(\"Move Mode Selected\");\n\t \t\t}", "@Override\r\n\tpublic void onButtonEvent(GlassUpEvent event, int contentId) {\r\n\t\t// TODO Auto-generated method stub\r\n\t\t\r\n\t}", "public void mouseClicked(MouseEvent e) {\n\t\t\tJLabel button = (JLabel)e.getSource();\n\t\t//BorderFactory.createLoweredBevelBorder());\n\t\t\t\n\t\t}", "@Override\n public void mousePressed(MouseEvent e) {\n x_pressed = e.getX();\n y_pressed = e.getY();\n \n }", "@Override\n public void mousePressed(MouseEvent e) {\n x_pressed = e.getX();\n y_pressed = e.getY();\n \n }", "@Override\n public void mousePressed(MouseEvent e) {\n x_pressed = e.getX();\n y_pressed = e.getY();\n \n }", "@Override\n\t\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t\t\t\n\t\t\t}", "public void initButtons() {\n for (int i = 0; i < 5; i++) {\n for (int j = 0; j < 5; j++) {\n bt[i][j].setOnMouseEntered(e -> {\n Button button;\n button = (Button) e.getSource();\n button.setStyle(\"-fx-border-color:yellow\");\n });\n bt[i][j].setOnMouseExited(e -> {\n Button button;\n button = (Button) e.getSource();\n button.setStyle(\"-fx-border-color:trasparent\");\n });\n\n }\n }\n }", "public void actionPerformed (ActionEvent e) {\n \t\t\tfor(int i=0; i<10; i++) {//add the buttons to the frame\n \t \tfor (int j=0; j<10; j++) {\n \t \t\ttile[i][j].addActionListener(new tileClicked());\n \t \t}\n \t }\n \t\t\tSystem.out.println(\"Move Mode Selected\");\n \t\t}", "public void mouseClicked(MouseEvent e) {\r\n if (e.getButton() == MouseEvent.BUTTON3) {\r\n rectangle = null;\r\n uncolorNodes(selectedIds);\r\n } else if (e.getButton() == MouseEvent.BUTTON1) {\r\n rectangle = new Rectangle(e.getPoint(), new Dimension(1, 1));\r\n colorSelectedNodes();\r\n }\r\n }", "@Override\n\tpublic void actionPerformed(ActionEvent e) {\n\t\tif(e.getSource().equals(ClientWindow.retButtons()[0])){\n\t\t\tperformButton(0);\n\t\t}\n\t\tif(e.getSource().equals(ClientWindow.retButtons()[1])){\n\t\t\tperformButton(1);\n\t\t}\n\t\tif(e.getSource().equals(ClientWindow.retButtons()[2])){\n\t\t\tperformButton(2);\n\t\t}\n\t\tif(e.getSource().equals(ClientWindow.retButtons()[3])){\n\t\t\tperformButton(3);\n\t\t}\n\t\tif(e.getSource().equals(ClientWindow.retButtons()[4])){\n\t\t\tperformButton(4);\n\t\t}\n\t\tif(e.getSource().equals(ClientWindow.retButtons()[5])){\n\t\t\tperformButton(5);\n\t\t}\n\t\tif(e.getSource().equals(ClientWindow.retButtons()[6])){\n\t\t\tperformButton(6);\n\t\t}\n\t\tif(e.getSource().equals(ClientWindow.retButtons()[7])){\n\t\t\tperformButton(7);\n\t\t}\n\t\tif(e.getSource().equals(ClientWindow.retButtons()[8])){\n\t\t\tperformButton(8);\n\t\t}\n\t}", "@Override\n public void handle(ActionEvent e)\n {\n Button button = (Button) e.getSource();\n //system.out.println(\"Button ID:\" + button.getId());\n\n boolean cardInMatchedDeck = false;\n \n if (gradeSelected == true)\n {\n // if the card selected by the player was already green, return it to null\n if(button.getStyle() == \"-fx-background-color: MediumSeaGreen\")\n {\n \t// determine if the clicked card exists in the matched deck so we can turn it back to blue if being de-selected\n \tfor(int i = 0; i < matchedDeck.size(); i++)\n \t{\n \t\t//tempCard = (Card) matchedDeck.get(i);\n \t\tif(Integer.parseInt(button.getId()) == matchedDeck.get(i).getCardId())\n \t\t{\n \t\t\tcardInMatchedDeck = true;\n \t\t\tbreak;\n \t\t}\n \t}\n \t\n \t// turn card back to blue as it has been previously purchased\n \tif(cardInMatchedDeck)\n \t{\n \t\tbutton.setStyle(\"-fx-background-color:#38ade3\");\n \t}\n \telse\n \t{\n \t\tbutton.setStyle(null);\n \t}\n \t\n playerDeck.remove(gameDeck.get(Integer.parseInt(button.getId())));\n showPlayerDeckInfo();\n numCardsSelected--;\n }\n else if (numCardsSelected < 4)\n {\n button.setStyle(\"-fx-background-color: MediumSeaGreen\");\n playerDeck.add(gameDeck.get(Integer.parseInt(button.getId())));\n showPlayerDeckInfo();\n numCardsSelected++;\n }\n }\n }", "@Override\n public void onBoomButtonClick(int index) {\n }", "private void buttonListener(int x, int y) {\t\n\t\tbuttons[x][y].addActionListener(event -> controller.onClick(x, y));\n\t}", "public boolean mouseClicked(gb gui, int mousex, int mousey, int button) {\n/* 233 */ if (button == 0)\n/* 234 */ return transferRect(gui, false); \n/* 235 */ if (button == 1) {\n/* 236 */ return transferRect(gui, true);\n/* */ }\n/* 238 */ return false;\n/* */ }", "private void designBtnActionPerformed(ActionEvent evt) {\n }", "public void ActionSmitteOversigt(ActionEvent actionEvent) { Main.setGridPane(0); }", "Button(int ID, Texture image) {\n\n this.ID = ID;\n objectTexture = image;\n\n //Player 1 buttons\n int buttonx = Gdx.graphics.getWidth() - (Gdx.graphics.getHeight() / 4);\n int button1y = 0;\n int button2y = Gdx.graphics.getHeight() / 4;\n int button3y = Gdx.graphics.getHeight() / 2;\n int button4y = (3 * Gdx.graphics.getHeight()) / 4;\n //Player 2 buttons\n int buttonx2 = 0;\n int button5y = (3 * Gdx.graphics.getHeight()) / 4;\n int button6y = Gdx.graphics.getHeight() / 2;\n int button7y = Gdx.graphics.getHeight() / 4;\n int button8y = 0;\n //StartGame Button\n int startGameX = (Gdx.graphics.getWidth()/2)-((Gdx.graphics.getWidth()/3)/2);\n int startGameY = (Gdx.graphics.getHeight()/3)-(Gdx.graphics.getWidth()/3/2/2);\n\n //check which button we are\n switch (ID) {\n case 1:\n currentPosition = new GridPoint2(buttonx, button1y);\n break;\n case 2:\n currentPosition = new GridPoint2(buttonx, button2y);\n break;\n case 3:\n currentPosition = new GridPoint2(buttonx, button3y);\n break;\n case 4:\n currentPosition = new GridPoint2(buttonx, button4y);\n break;\n case 5:\n currentPosition = new GridPoint2(buttonx2, button5y);\n break;\n case 6:\n currentPosition = new GridPoint2(buttonx2, button6y);\n break;\n case 7:\n currentPosition = new GridPoint2(buttonx2, button7y);\n break;\n case 8:\n currentPosition = new GridPoint2(buttonx2, button8y);\n break;\n case 9:\n currentPosition = new GridPoint2(startGameX, startGameY);\n break;\n }\n\n //Now set the area to be clicked. first two parameters are position, then size\n if (ID == 9)\n {\n clickArea = new Rectangle(startGameX, Gdx.graphics.getHeight()-startGameY-(Gdx.graphics.getWidth()/3/2),\n Gdx.graphics.getWidth()/3, (Gdx.graphics.getWidth()/3)/2);\n }\n else {\n clickArea = new Rectangle(currentPosition.x, currentPosition.y,\n Gdx.graphics.getHeight() / 4, Gdx.graphics.getHeight() / 4);\n }\n }", "public void createButtonGrid(JPanel pannel, JButton[][] grid, GridListener listener)\n {\n pannel.setLayout(new GridLayout(15, 15));\n // NEED TO ADD HEADERS, A-J, 1-10\n // Create the 2d array of buttons.\n for (int i = 0; i < grid.length; i++)\n {\n for (int j = 0; j < grid[i].length; j++)\n {\n grid[i][j] = new JButton();\n \n // KIRSTEN/NOAH HERE, Using currentPlayer, call function in Player that gets the status of color grid and returns either an int/Color based on what it is\n // Based on that color set background to Red or White\n\n //grid[i][j].setBackground(Color.WHITE);\n \n // If its our Grid call function that would return grey if a ship was there\n if(listener == null)\n {\n grid[i][j].setBackground(_currentPlayer.returnColorFromOwnGrid(i, j));\n }\n \n else\n {\n Color currentColor = _currentPlayer.returnColorFromGrid(i, j);\n grid[i][j].setBackground(currentColor); \n }\n \n grid[i][j].addActionListener(listener);\n pannel.add(grid[i][j]);\n }\n }\n }", "private void btnModificarMouseClicked(java.awt.event.MouseEvent evt) {\n }", "@Override\n\tpublic void pressed(PushButton button) {\n\t\tvm.getConfigurationPanel().getButton(index);\n\t\t\n\t}", "public void buttonClickHandler (ActionEvent evt) {\n\t\tButton clickedButton = (Button) evt.getTarget();\n\t\tString buttonLabel = clickedButton.getText();\n\t\t\n\t\tswitch(buttonLabel) {\n\t\t\tcase(\"Instructions\"): openInstructionsWindow(); break;\n\t\t\tcase(\"About\"): openAboutWindow(); break;\n\t\t\tcase(\"Quit\"): GameScreenController.quitWindow(); break;\n\t\t}\t\n\t}" ]
[ "0.67638177", "0.66435915", "0.6544238", "0.6523788", "0.63965297", "0.63494784", "0.6321969", "0.6181355", "0.6162226", "0.613592", "0.61337286", "0.61259407", "0.6109004", "0.61080974", "0.6104077", "0.6096456", "0.609522", "0.6082874", "0.60099095", "0.6008305", "0.6006256", "0.600052", "0.59735215", "0.596909", "0.5965135", "0.5955308", "0.59371835", "0.5929786", "0.59189504", "0.5914575", "0.5911018", "0.5910976", "0.5901659", "0.589111", "0.586729", "0.58640325", "0.58478814", "0.58473855", "0.58404285", "0.5838641", "0.5836893", "0.5832685", "0.58260506", "0.5813173", "0.5803892", "0.58007747", "0.57988524", "0.5789953", "0.57830274", "0.5780648", "0.5775141", "0.577483", "0.57654697", "0.57654697", "0.5749504", "0.5742269", "0.57421386", "0.57392365", "0.5733696", "0.5731277", "0.57286733", "0.5725131", "0.5724051", "0.57236093", "0.57235664", "0.5720858", "0.5716021", "0.5714231", "0.5705877", "0.57058394", "0.57042795", "0.5699834", "0.5699834", "0.5699834", "0.5689455", "0.5689455", "0.5689455", "0.5689455", "0.5689455", "0.5689455", "0.5689455", "0.5689455", "0.5689455", "0.5689455", "0.5689455", "0.56877387", "0.56867385", "0.56865966", "0.56865704", "0.5684776", "0.5677465", "0.5677024", "0.5667098", "0.5658643", "0.56568664", "0.56540185", "0.56516623", "0.5651028", "0.5650993", "0.5638524" ]
0.6087157
17
This method implements the onChange listener of the Opacity slider and the Text's ListBoxes
public void onChange(Widget sender) { /** if there was a change in opacity, we update the currentFillColor and the selected object if there's any. */ if (sender.equals(this.fillOpacity)) { int value = this.fillOpacity.getValue(); if (this.curr_obj != null) { final Color color = this.curr_obj.getFillColor(); Color newColor = new Color(color.getRed(), color.getGreen(), color.getBlue(), value); this.curr_obj.uSetFillColor(newColor); } else { this.currentFillColor.setAlpha(value); } }else if(sender.equals(this.strokeOpacity)) { int value = this.strokeOpacity.getValue(); if(this.curr_obj != null) { final Color color = this.curr_obj.getStrokeColor(); Color newColor = new Color(color.getRed(), color.getGreen(), color.getBlue(), value); this.curr_obj.uSetStroke(newColor, this.curr_obj.getStrokeWidth()); } else { this.currentStrokeColor.setAlpha(value); } /** If there was any change in the ListBoxes we update the current font. */ } else if(sender.equals(this.currentFontFamily) || sender.equals(this.currentFontSize) || sender.equals(this.currentFontStyle) || sender.equals(this.currentFontWeight)) { this.updateFont(); } else if(sender.equals(this.currentStrokeSize) && this.curr_obj != null) { this.curr_obj.uSetStroke(this.currentStrokeColor, this.currentStrokeSize.getValue()); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void stateChanged(ChangeEvent e) {\r\n Object source = e.getSource();\r\n\r\n if (source instanceof JSlider) {\r\n JSlider slider = (JSlider) source;\r\n if (text != null) {\r\n text.setText(\"<html><font color=#FFFFFF>Volume: \"+slider.getValue()+\"</font></html>\");\r\n text.setLocation(getWidth()/2-text.getWidth()/2, text.getY());\r\n revalidate();\r\n repaint();\r\n }\r\n }\r\n }", "private void sliderChanged(ChangeEvent e) {\n\t\tif (isTest()) { // TEST TEST TEST TEST !!!!!!!!!!!!!\n\t\t\treturn;\n\t\t}\n\t\n\t\tJSlider source = (JSlider) e.getSource();\n\t\tsliderValue = (int) source.getValue();\n\t\t// System.out.println(windowBase.getName() + \": sliderChanged: \" +\n\t\t// sliderValue);\n\t\tint size = index.data.getPictureSize();\n\t\tif (size == 0) {\n\t\t\tremoveAllPictureViews(); \n\t\t\treturn;\n\t\t}\n\t\t\n\t\t \n\t\tPM_Picture pic = null;\n\t\t\n\t\tif (client.getComponentCount() > 0) {\n\t\t\tObject o = client.getComponent(0);\n\t\t\tif (o instanceof PM_PictureView) {\n\t\t\t\tpic = ((PM_PictureView)o).getPicture();\n\t\t\t}\n\t\t}\n\t\t\n//\t\tSystem.out.println(\"..... sliderChanged\");\n\t\tpaintViewport(pic);\n\t\t// paintViewport(null);\n\t}", "protected void valueChanged() {\r\n \t\tint newValue = slider.getSelection();\r\n \t\tint oldValue = this.intValue;\r\n \t\tintValue = newValue;\r\n \t\tjava.beans.PropertyChangeEvent event = new java.beans.PropertyChangeEvent(\r\n \t\t\t\tthis, IPropertyEditor.VALUE, oldValue, newValue);\r\n \t\tvalueChangeListener.valueChange(event);\r\n \t}", "@Override\n public void valueChanged(final ListSelectionEvent e) {\n if (e.getValueIsAdjusting()) {\n return;\n }\n showObject();\n }", "public interface ChangeListener {\n\t\tpublic void onValueChange(FloatPicker fpw, float value);\n\t}", "@Override\n\tpublic void stateChanged(ChangeEvent e) {\n\t\tJSlider source = (JSlider) e.getSource();\n\t\tif(!source.getValueIsAdjusting()) {// getValueIsAdjusting 함수는 어떤 이벤트 인스턴스에서 연속적으로 이벤트가 일어 났을 때, \n\t\t\t//해당 이벤트 인스턴스들을 일종의 데이터 체인으로 보고 체인의 마지막 인스턴스 외에서 호출하는 경우 true를 반환하는 함수이다.\n\t\t\t\n\t\t\t\n\t\tint value = (int) slider.getValue();\n\t\timgBtn.setSize(value*10, value*10);// 슬라이더의 상태가 변경되면 호출됨\n\t\t}\n\t}", "public TransparencyDemo() {\r\n super();\r\n view3DButton.addItemListener(this);\r\n drawBehindButton.addItemListener(this);\r\n transparencySlider.addChangeListener(this);\r\n }", "@Override\n\tpublic void valueChanged(ListSelectionEvent e) {\n\t\t// TODO Auto-generated method stub\n\t\tString name = ((JList) e.getSource()).getName();\n\t\tif (name.equals(\"pred\")){\n\t\t\tint selected = displayPred.getSelectedIndex();\n\t\t\tif (selected == -1)\n\t\t\t\tselected = 0;\n\t\t\tString loc = predParticles.get(selected).getPath();\n\t\t\tvm.updateParticleGame(loc);\n\t\t\t\n\t\t}\n\t\telse{\n\t\t\tint selected = displayPrey.getSelectedIndex();\n\t\t\tString loc = preyParticles.get(selected).getPath();\n\t\t\tvm.updateParticleGame(loc);\n\t\t}\n\t}", "@Override\n public void valueChanged(ListSelectionEvent e) {\n if (!ageList.isSelectionEmpty())\n playButton.setEnabled(true);\n }", "public void stateChanged(ChangeEvent evt) {\n lowBox. setText(String. valueOf(lowSlider. getValue()));\n updateThreshold(lowSlider. getValue(), highSlider. getValue()); \n }", "public void stateChanged(ChangeEvent e) {\n\n\t\tJSlider src = (JSlider) e.getSource();\n\n\t\tif (src == gainFactorSlider) {\n\t\t\tif (!src.getValueIsAdjusting()) {\n\t\t\t\tint val = (int) src.getValue();\n\t\t\t\tgainFactor = val * 0.25;\n\n\t\t\t}\n\t\t} else if (src == biasFactorSlider) {\n\t\t\tif (!src.getValueIsAdjusting()) {\n\t\t\t\tbiasFactor = (int) src.getValue();\n\n\t\t\t}\n\t\t}\n\n\t}", "private void cListValueChanged(ListSelectionEvent e) {\n }", "public void setOpacity(float aValue)\n{\n if(getOpacity()==aValue) return; // If value already set, just return\n repaint(); // Register repaint\n Object oldValue = getOpacity(); // Cache old value, set new value and fire PropertyChange\n put(\"Opacity\", aValue==1? null : aValue);\n firePropertyChange(\"Opacity\", oldValue, aValue, -1);\n}", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n shadePanel1 = new my.boxshader.ShadePanel();\n jPanel1 = new javax.swing.JPanel();\n jSlider1 = new javax.swing.JSlider();\n jTextField1 = new javax.swing.JTextField();\n shadePanel3 = new my.boxshader.ShadePanel();\n\n org.jdesktop.layout.GroupLayout shadePanel1Layout = new org.jdesktop.layout.GroupLayout(shadePanel1);\n shadePanel1.setLayout(shadePanel1Layout);\n shadePanel1Layout.setHorizontalGroup(\n shadePanel1Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)\n .add(0, 100, Short.MAX_VALUE)\n );\n shadePanel1Layout.setVerticalGroup(\n shadePanel1Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)\n .add(0, 100, Short.MAX_VALUE)\n );\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n\n jPanel1.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 100, 0)));\n\n org.jdesktop.layout.GroupLayout jPanel1Layout = new org.jdesktop.layout.GroupLayout(jPanel1);\n jPanel1.setLayout(jPanel1Layout);\n jPanel1Layout.setHorizontalGroup(\n jPanel1Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)\n .add(0, 0, Short.MAX_VALUE)\n );\n jPanel1Layout.setVerticalGroup(\n jPanel1Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)\n .add(0, 43, Short.MAX_VALUE)\n );\n\n jSlider1.setMajorTickSpacing(25);\n jSlider1.setMinorTickSpacing(5);\n jSlider1.setPaintLabels(true);\n jSlider1.setPaintTicks(true);\n jSlider1.setValue(0);\n jSlider1.addChangeListener(new javax.swing.event.ChangeListener() {\n public void stateChanged(javax.swing.event.ChangeEvent evt) {\n jSlider1StateChanged(evt);\n }\n });\n\n jTextField1.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jTextField1ActionPerformed(evt);\n }\n });\n\n org.jdesktop.layout.GroupLayout shadePanel3Layout = new org.jdesktop.layout.GroupLayout(shadePanel3);\n shadePanel3.setLayout(shadePanel3Layout);\n shadePanel3Layout.setHorizontalGroup(\n shadePanel3Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)\n .add(0, 0, Short.MAX_VALUE)\n );\n shadePanel3Layout.setVerticalGroup(\n shadePanel3Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)\n .add(0, 124, Short.MAX_VALUE)\n );\n\n org.jdesktop.layout.GroupLayout layout = new org.jdesktop.layout.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)\n .add(org.jdesktop.layout.GroupLayout.TRAILING, layout.createSequentialGroup()\n .addContainerGap()\n .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.TRAILING)\n .add(shadePanel3, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .add(jPanel1, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .add(org.jdesktop.layout.GroupLayout.LEADING, layout.createSequentialGroup()\n .add(jTextField1, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 83, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)\n .add(25, 25, 25)\n .add(jSlider1, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 259, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)\n .add(0, 33, Short.MAX_VALUE)))\n .addContainerGap())\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)\n .add(layout.createSequentialGroup()\n .add(jPanel1, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)\n .add(18, 18, 18)\n .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)\n .add(jSlider1, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)\n .add(jTextField1, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(org.jdesktop.layout.LayoutStyle.UNRELATED)\n .add(shadePanel3, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .add(12, 12, 12))\n );\n\n pack();\n }", "private void initializeSlidersAndTextFields() {\n\t\tsliderPitch.valueProperty().addListener(new ChangeListener<Number>() {\n\t\t\t@Override\n\t\t\tpublic void changed(ObservableValue<? extends Number> observable, Number oldValue, Number newValue) {\n\t\t\t\tcontroller.audioManipulatorSetPitchFactor(newValue.doubleValue());\n\t\t\t\ttextFieldPitch.setText(decimalFormat.format(newValue.doubleValue()));\n\t\t\t}\n\t\t});\n\n\t\tsliderGain.valueProperty().addListener(new ChangeListener<Number>() {\n\t\t\t@Override\n\t\t\tpublic void changed(ObservableValue<? extends Number> observable, Number oldValue, Number newValue) {\n\t\t\t\tcontroller.audioManipulatorSetGain(newValue.doubleValue());\n\t\t\t\ttextFieldGain.setText(decimalFormat.format(newValue.doubleValue()));\n\t\t\t}\n\t\t});\n\n\t\tsliderEchoLength.valueProperty().addListener(new ChangeListener<Number>() {\n\t\t\t@Override\n\t\t\tpublic void changed(ObservableValue<? extends Number> observable, Number oldValue, Number newValue) {\n\t\t\t\tcontroller.audioManipulatorSetEchoLength(newValue.doubleValue());\n\t\t\t\ttextFieldEchoLength.setText(decimalFormat.format(newValue.doubleValue()));\n\t\t\t}\n\t\t});\n\n\t\tsliderDecay.valueProperty().addListener(new ChangeListener<Number>() {\n\t\t\t@Override\n\t\t\tpublic void changed(ObservableValue<? extends Number> observable, Number oldValue, Number newValue) {\n\t\t\t\tcontroller.audioManipulatorSetDecay(newValue.doubleValue());\n\t\t\t\ttextFieldDecay.setText(decimalFormat.format(newValue.doubleValue()));\n\t\t\t}\n\t\t});\n\n\t\tsliderFlangerLength.valueProperty().addListener(new ChangeListener<Number>() {\n\t\t\t@Override\n\t\t\tpublic void changed(ObservableValue<? extends Number> observable, Number oldValue, Number newValue) {\n\t\t\t\tcontroller.audioManipulatorSetFlangerLength(newValue.doubleValue());\n\t\t\t\ttextFieldFlangerLength.setText(decimalFormat.format(newValue.doubleValue()));\n\t\t\t}\n\t\t});\n\n\t\tsliderWetness.valueProperty().addListener(new ChangeListener<Number>() {\n\t\t\t@Override\n\t\t\tpublic void changed(ObservableValue<? extends Number> observable, Number oldValue, Number newValue) {\n\t\t\t\tcontroller.audioManipulatorSetWetness(newValue.doubleValue());\n\t\t\t\ttextFieldWetness.setText(decimalFormat.format(newValue.doubleValue()));\n\t\t\t}\n\t\t});\n\n\t\tsliderLfoFrequency.valueProperty().addListener(new ChangeListener<Number>() {\n\t\t\t@Override\n\t\t\tpublic void changed(ObservableValue<? extends Number> observable, Number oldValue, Number newValue) {\n\t\t\t\tcontroller.audioManipulatorSetLFO(newValue.doubleValue());\n\t\t\t\ttextFieldLfo.setText(decimalFormat.format(newValue.doubleValue()));\n\t\t\t}\n\t\t});\n\n\t\tsliderLowPass.valueProperty().addListener(new ChangeListener<Number>() {\n\t\t\t@Override\n\t\t\tpublic void changed(ObservableValue<? extends Number> observable, Number oldValue, Number newValue) {\n\t\t\t\tcontroller.audioManipulatorSetLowPass(newValue.floatValue());\n\t\t\t\ttextFieldLowPass.setText(decimalFormat.format(newValue.doubleValue()));\n\t\t\t}\n\t\t});\n\n\t\tsliderAudioFileDuration.valueProperty().addListener(new InvalidationListener() {\n\t\t\tpublic void invalidated(Observable arg0) {\n\t\t\t\tif (sliderAudioFileDuration.isPressed()) {\n\t\t\t\t\tcontroller.timerCancel();\n\n\t\t\t\t\tcontroller.audioManipulatorPlayFromDesiredSec(sliderAudioFileDuration.getValue());\n\n\t\t\t\t\taudioFileProcessedTimeString = secondsToMinutesAndSeconds(sliderAudioFileDuration.getValue());\n\t\t\t\t\ttextAudioFileDuration.setText(audioFileProcessedTimeString + \" / \" + audioFileDurationString);\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\n\t\t// On key methods for every text field\n\n\t\ttextFieldPitch.setOnKeyPressed(event -> {\n\t\t\tif (event.getCode() == KeyCode.ENTER) {\n\t\t\t\tgetTextFieldPitch();\n\t\t\t}\n\t\t});\n\n\t\ttextFieldGain.setOnKeyPressed(event -> {\n\t\t\tif (event.getCode() == KeyCode.ENTER) {\n\t\t\t\tgetTextFieldGain();\n\t\t\t}\n\t\t});\n\n\t\ttextFieldEchoLength.setOnKeyPressed(event -> {\n\t\t\tif (event.getCode() == KeyCode.ENTER) {\n\t\t\t\tgetTextFieldEchoLength();\n\t\t\t}\n\t\t});\n\n\t\ttextFieldDecay.setOnKeyPressed(event -> {\n\t\t\tif (event.getCode() == KeyCode.ENTER) {\n\t\t\t\tgetTextFieldDecay();\n\t\t\t}\n\t\t});\n\n\t\ttextFieldFlangerLength.setOnKeyPressed(event -> {\n\t\t\tif (event.getCode() == KeyCode.ENTER) {\n\t\t\t\tgetTextFieldFlangerLength();\n\t\t\t}\n\t\t});\n\n\t\ttextFieldWetness.setOnKeyPressed(event -> {\n\t\t\tif (event.getCode() == KeyCode.ENTER) {\n\t\t\t\tgetTextFieldWetness();\n\t\t\t}\n\t\t});\n\n\t\ttextFieldLfo.setOnKeyPressed(event -> {\n\t\t\tif (event.getCode() == KeyCode.ENTER) {\n\t\t\t\tgetTextFieldLfo();\n\t\t\t}\n\t\t});\n\n\t\ttextFieldLowPass.setOnKeyPressed(event -> {\n\t\t\tif (event.getCode() == KeyCode.ENTER) {\n\t\t\t\tgetTextFieldLowPass();\n\t\t\t}\n\t\t});\n\t}", "public void stateChanged(ChangeEvent evt) {\n if (evt.getSource() == bgColorSlider) {\n int bgVal = bgColorSlider.getValue();\n displayLabel.setBackground( new Color(bgVal,bgVal,bgVal) );\n // NOTE: The background color is a shade of gray,\n // determined by the setting on the slider.\n }\n else {\n float hue = fgColorSlider.getValue()/100.0f;\n displayLabel.setForeground( Color.getHSBColor(hue, 1.0f, 1.0f) );\n // Note: The foreground color ranges through all the colors\n // of the spectrum.\n }\n }", "public void stateChanged(ChangeEvent evt) {\n highBox. setText(String. valueOf(highSlider. getValue()));\n updateThreshold(lowSlider. getValue(), highSlider. getValue());\n }", "private void gListValueChanged(ListSelectionEvent e) {\n }", "@Override\n\t\t\tpublic void onChanged(javafx.collections.ListChangeListener.Change<? extends ItemBox> c) {\n\t\t\t\tupdateOverview();\n\t\t\t}", "public void stateChanged(ChangeEvent e) {\n\t\tJSlider source = (JSlider) e.getSource();\n\t\tif (!source.getValueIsAdjusting()) {\n\t\t\tdgopval = Math.pow(10, -source.getValue() / 10.0);\n\t\t\tpvalLabel.setText(\"X = \" + source.getValue() / 10.0\n\t\t\t\t\t+ \"; p-value threshold is \"\n\t\t\t\t\t+ DREMGui_KeyInputs.doubleToSz(dgopval));\n\t\t\taddGOLabels(rootptr);\n\t\t}\n\t}", "void onFadingViewVisibilityChanged(boolean visible);", "private void iSliderStateChanged(javax.swing.event.ChangeEvent evt) {//GEN-FIRST:event_iSliderStateChanged\n float tmp_value = ((float)this.iSlider.getValue())/10;\n this.paramILabel.setText(\"\" + tmp_value);\n }", "private void syncSliderInput()\n {\n pickerSlider.valueProperty().removeListener(this::onColourSliderChange);\n pickerSlider.setStyle(\"-fx-background-color: linear-gradient(to top, #000000, \" + colourToRgb(toolColour) + \", #FFFFFF);\");\n pickerSlider.setValue(0.0);\n pickerSlider.valueProperty().addListener(this::onColourSliderChange);\n }", "public void stateChanged(ChangeEvent e) {\n\n (model.getInterpol()).setBezierIterationen(((JSlider) e.getSource()).getValue());\n }", "@Override\n\tpublic void textValueChanged(TextEvent e) {\n\t\t\n\t}", "@Override\n\tpublic abstract void valueChanged(ListSelectionEvent arg0);", "private void initTextFields()\n\t{\n\t\talpha_min_textfield.setText(String.valueOf(rangeSliders.get(\"alpha\").getLowValue()));\n\t\talpha_max_textfield.setText(String.valueOf(rangeSliders.get(\"alpha\").getHighValue()));\n\t\teta_min_textfield.setText(String.valueOf(rangeSliders.get(\"eta\").getLowValue()));\n\t\teta_max_textfield.setText(String.valueOf(rangeSliders.get(\"eta\").getHighValue()));\n\t\tkappa_min_textfield.setText(String.valueOf(rangeSliders.get(\"kappa\").getLowValue()));\n\t\tkappa_max_textfield.setText(String.valueOf(rangeSliders.get(\"kappa\").getHighValue()));\n\t\t\n\t\ttry {\n\t\t\t// Add listener for focus changes.\n//\t\t\tnumberOfDatasets_textfield.focusedProperty().addListener(new ChangeListener<Boolean>() {\n//\t\t\t @Override\n//\t\t\t public void changed(ObservableValue<? extends Boolean> arg0, Boolean oldPropertyValue, Boolean newPropertyValue)\n//\t\t\t {\n//\t\t\t updateNumberOfDatasets(null);\n//\t\t\t }\n//\t\t\t});\n//\t\t\tnumberOfDivisions_textfield.focusedProperty().addListener(new ChangeListener<Boolean>() {\n//\t\t\t @Override\n//\t\t\t public void changed(ObservableValue<? extends Boolean> arg0, Boolean oldPropertyValue, Boolean newPropertyValue)\n//\t\t\t {\n//\t\t\t updateNumberOfDivisions(null);\n//\t\t\t }\n//\t\t\t});\n\t\t\t\n\t\t\t// Set initial values.\n\t\t\tnumberOfDatasetsToGenerate\t= Integer.parseInt(numberOfDatasets_textfield.getText());\n\t\t\tnumberOfDivisions\t\t\t= Integer.parseInt(numberOfDivisions_textfield.getText());\n\t\t\t\n\t\t\t// Disable number of divisions by default (since random sampling is enabled by default).\n\t\t\tnumberOfDivisions_textfield.setDisable(true);\n\t\t}\n\t\t\n\t\tcatch (NumberFormatException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "public void stateChanged(ChangeEvent event) {\n\t\t\t\t\t\t\t\t\tlabelFilons.setText(((JSlider)event.getSource()).getValue() + \" filons :\");\n\t\t\t\t\t\t\t\t}", "@Override\n public void valueChanged(ListSelectionEvent arg0) {\n\n }", "@Override\n\t\t\tpublic void stateChanged(ChangeEvent e) {\n\t\t\t\tint amount = betslider.getValue();\n\t\t\t\tbetAmount.setText(\"$\"+amount);\n\t\t\t}", "@Override\n public void stateChanged(ChangeEvent e) {\n if (Controls.getSelectedIndex() == 3) {\n Controls.setComponentAt(3, LineCC);\n Controls.setComponentAt(4, null);\n } else if (Controls.getSelectedIndex() == 4) {\n Controls.setComponentAt(3, null);\n Controls.setComponentAt(4, BackGCC);\n } else {\n Controls.setComponentAt(3, null);\n Controls.setComponentAt(4, null);\n }\n Zoom = ZoomSlider.getValue() / 10f;\n DrawGraphPassive();\n if ((int) EquationNum.getValue() != CurrentEQNum) {\n CurrentEQNum = (int) EquationNum.getValue();\n BackGCC.setColor(lineGraphs.get(CurrentEQNum - 1).getBackColor());\n LineCC.setColor(lineGraphs.get(CurrentEQNum - 1).getLineColour());\n Cards.show(EquationCardLayout, Integer.toString((int) EquationNum.getValue()));\n }\n }", "public void overlayChanged() {\r\n\t\toverlayItem.setSelection(overlay.isVisible());\r\n\t}", "@Override\n\t\t\tpublic void itemStateChanged(ItemEvent e) {\n\t\t\t\trepaint();\n\n\t\t\t\tif (e.getStateChange() == 1) {\n\t\t\t\t\traceChoosen = (String) e.getItem();\n\n\t\t\t\t\tif (raceChoosen.equals(\"Elf\")) {\n\t\t\t\t\t\tvitesseSlider.setMinimum(8);\n\t\t\t\t\t\tvitesseSlider.setMaximum(10);\n\t\t\t\t\t\tvitesseSlider.setValue(9);\n\t\t\t\t\t\tforceSlider.setMinimum(1);\n\t\t\t\t\t\tforceSlider.setMaximum(3);\n\t\t\t\t\t\tforceSlider.setValue(2);\n\t\t\t\t\t} else if (raceChoosen.equals(\"Ogre\")) {\n\t\t\t\t\t\tvitesseSlider.setMinimum(1);\n\t\t\t\t\t\tvitesseSlider.setMaximum(7);\n\t\t\t\t\t\tvitesseSlider.setValue(4);\n\t\t\t\t\t\tforceSlider.setMinimum(4);\n\t\t\t\t\t\tforceSlider.setMaximum(10);\n\t\t\t\t\t\tforceSlider.setValue(7);\n\t\t\t\t\t} else {\n\t\t\t\t\t\tvitesseSlider.setMinimum(4);\n\t\t\t\t\t\tvitesseSlider.setMaximum(10);\n\t\t\t\t\t\tvitesseSlider.setValue(7);\n\t\t\t\t\t\tforceSlider.setMinimum(1);\n\t\t\t\t\t\tforceSlider.setMaximum(7);\n\t\t\t\t\t\tforceSlider.setValue(4);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}", "public void valueChanged(ListSelectionEvent e)\n\t{\n\t\t//Only process the final event\n\t\tif(!e.getValueIsAdjusting())\n\t\t{\n\t\t\tpopupMenu.setVisible(false);\n\t\t\tint index=popupList.getSelectedIndex();\n\t\t\t//redraw the label\n\t\t\tsetIcon(index<0?renderer.unselectedIcon:renderer.listIcons[index]);\n\t\t\t//pass the event on\n\t\t\tActionEvent ae = new ActionEvent(this, ActionEvent.ACTION_PERFORMED, actionCommand);\n\t\t\tfor(int i = listeners.size() - 1; i >= 0; i--)\n\t\t\t{\n\t\t\t\tlisteners.get(i).actionPerformed(ae);\n\t\t\t}\n\t\t}\n\t}", "@Override\r\n\t\tpublic void valueChanged(ListSelectionEvent e) {\r\n\t\t\t\r\n\t\t}", "private void TextFieldEditableProperty(boolean booleanEditProperty,double opacity){\n txtCategoryNo.setEditable(booleanEditProperty);\n txtCategoryName.setEditable(booleanEditProperty);\n btnSave.setDisable(!booleanEditProperty);\n\n txtCategoryNo.setOpacity(opacity);\n txtCategoryName.setOpacity(opacity);\n\n }", "public void valueChanged(ListSelectionEvent arg0) {\n\t\t\r\n\t}", "@Override\n\t\tpublic void valueChanged(ListSelectionEvent e) {\n\t\t\tif (e.getValueIsAdjusting()) {\n\t\t\t\tJList list = (JList) e.getSource();\n\t\t\t\tint index = list.getSelectedIndex();\n\t\t\t\tSystem.out.println(\"selected: \" + list.getSelectedValue());\n\t\t\t\tint userSelect = list.getSelectedIndex();\n\t\t\t\tplayingDBThread = null;\n\t\t\t\taudioDBThread = null;\n\t\t\t\tload_DB_video(resultListRankedNames.get(userSelect));\n\t\t\t\tupdateSimilarFrame();\n\t\t\t\tslider.setValue(0);\n\t\t\t}\n\t\t}", "public void onSliderChanged() {\r\n\r\n // So we can get the date of where our slider is pointing\r\n int sliderValue = (int) dateSlider.getValue();\r\n System.out.println(sliderValue);\r\n\r\n // When the slider is moved, only the correct button will appear\r\n if(sliderValue == 0) {\r\n eventButton1.setVisible(true);\r\n eventButton2.setVisible(false);\r\n eventButton3.setVisible(false);\r\n eventButton4.setVisible(false);\r\n eventButton5.setVisible(false);\r\n } else if(sliderValue == 6) {\r\n eventButton1.setVisible(false);\r\n eventButton2.setVisible(true);\r\n eventButton3.setVisible(false);\r\n eventButton4.setVisible(false);\r\n eventButton5.setVisible(false);\r\n } else if(sliderValue == 12) {\r\n eventButton1.setVisible(false);\r\n eventButton2.setVisible(false);\r\n eventButton3.setVisible(true);\r\n eventButton4.setVisible(false);\r\n eventButton5.setVisible(false);\r\n } else if(sliderValue == 18) {\r\n eventButton1.setVisible(false);\r\n eventButton2.setVisible(false);\r\n eventButton3.setVisible(false);\r\n eventButton4.setVisible(true);\r\n eventButton5.setVisible(false);\r\n } else if(sliderValue == 25) {\r\n eventButton1.setVisible(false);\r\n eventButton2.setVisible(false);\r\n eventButton3.setVisible(false);\r\n eventButton4.setVisible(false);\r\n eventButton5.setVisible(true);\r\n }\r\n }", "private void pSliderStateChanged(javax.swing.event.ChangeEvent evt) {//GEN-FIRST:event_pSliderStateChanged\n float tmp_value = ((float)this.pSlider.getValue())/10;\n this.paramPLabel.setText(\"\" + tmp_value);\n }", "public void valueChanged(ListSelectionEvent e) {\n\t\t\n\t}", "@Override\n\tpublic void valueChanged(ListSelectionEvent arg0) {\n\t\t\n\t}", "@Override\n public void stateChanged(javax.swing.event.ChangeEvent e) {\n }", "public void valueChanged(ListSelectionEvent e)\n\t\t\t{\n\t\t\t}", "@Override\n\tprotected void setListener() {\n\t\tslider_text.setOnClickListener(this);\n\t}", "private void initHandlers() {\n setOnAction(new EventHandler<ActionEvent>() {\n\n @Override\n public void handle(ActionEvent arg0) {\n System.out.println(\"-5\");\n parseAndFormatInput();\n }\n });\n\n focusedProperty().addListener(new ChangeListener<Boolean>() {\n\n @Override\n public void changed(ObservableValue<? extends Boolean> observable, Boolean oldValue, Boolean newValue) {\n if (!newValue.booleanValue()) {\n System.out.println(\"1\");\n parseAndFormatInput();\n }\n }\n });\n\n // Set text in field if BigDecimal property is changed from outside.\n numberProperty().addListener(new ChangeListener<BigDecimal>() {\n\n @Override\n public void changed(ObservableValue<? extends BigDecimal> obserable, BigDecimal oldValue, BigDecimal newValue) {\n if (newValue.toBigInteger().signum() < 0) {\n newValue = new BigDecimal(1);\n }\n setText(nf.format(newValue));\n }\n });\n\n textProperty().addListener(new ChangeListener<String>() {\n @Override\n public void changed(ObservableValue<? extends String> observableValue, String s, String t1) {\n try {\n int newValue = Integer.parseInt(t1);\n if (newValue < NumberSpinner.MIN) newValue = NumberSpinner.MIN;\n if (newValue > NumberSpinner.MAX+1) newValue = NumberSpinner.MAX+1;\n setText(newValue+\"\");\n } catch (NumberFormatException e) {\n setText(s);\n }\n }\n });\n }", "@Override\n public void stateChanged(ChangeEvent _e) {\n if (_e.getSource() instanceof JSlider){\n mView.setFrequencyTxt(((JSlider) _e.getSource()).getValue());\n mComponent.getCMUpdateThread().setInterval(((JSlider) _e.getSource()).getValue());\n if (mComponent.isPlaying())\n \tmComponent.getSimulationPlayer().setInterval(((JSlider) _e.getSource()).getValue());\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 slider_slices = new javax.swing.JSlider();\n jLabel2 = new javax.swing.JLabel();\n slider_width = new javax.swing.JSlider();\n jLabel3 = new javax.swing.JLabel();\n slider_height = new javax.swing.JSlider();\n jLabel4 = new javax.swing.JLabel();\n slider_depth = new javax.swing.JSlider();\n check_showBounds = new javax.swing.JCheckBox();\n slider_opacity = new javax.swing.JSlider();\n jLabel5 = new javax.swing.JLabel();\n check_showLightbuffer = new javax.swing.JCheckBox();\n check_multisample = new javax.swing.JCheckBox();\n\n jLabel1.setText(\"Slices\");\n\n slider_slices.setMaximum(700);\n slider_slices.setMinimum(1);\n slider_slices.setValue(5);\n slider_slices.addChangeListener(new javax.swing.event.ChangeListener() {\n public void stateChanged(javax.swing.event.ChangeEvent evt) {\n slider_slicesStateChanged(evt);\n }\n });\n\n jLabel2.setText(\"Width\");\n\n slider_width.setMaximum(200);\n slider_width.setMinimum(20);\n slider_width.addChangeListener(new javax.swing.event.ChangeListener() {\n public void stateChanged(javax.swing.event.ChangeEvent evt) {\n slider_widthStateChanged(evt);\n }\n });\n\n jLabel3.setText(\"Height\");\n\n slider_height.setMaximum(200);\n slider_height.setMinimum(20);\n slider_height.addChangeListener(new javax.swing.event.ChangeListener() {\n public void stateChanged(javax.swing.event.ChangeEvent evt) {\n slider_heightStateChanged(evt);\n }\n });\n\n jLabel4.setText(\"Depth\");\n\n slider_depth.setMaximum(200);\n slider_depth.setMinimum(20);\n slider_depth.addChangeListener(new javax.swing.event.ChangeListener() {\n public void stateChanged(javax.swing.event.ChangeEvent evt) {\n slider_depthStateChanged(evt);\n }\n });\n\n check_showBounds.setSelected(true);\n check_showBounds.setText(\"Show Bounds\");\n check_showBounds.setToolTipText(\"Draw box around all volume data\");\n check_showBounds.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n check_showBoundsActionPerformed(evt);\n }\n });\n\n slider_opacity.setMajorTickSpacing(1);\n slider_opacity.setMaximum(700);\n slider_opacity.setValue(5);\n slider_opacity.addChangeListener(new javax.swing.event.ChangeListener() {\n public void stateChanged(javax.swing.event.ChangeEvent evt) {\n slider_opacityStateChanged(evt);\n }\n });\n\n jLabel5.setText(\"Opacity\");\n\n check_showLightbuffer.setSelected(true);\n check_showLightbuffer.setText(\"Show Lightbuffer\");\n check_showLightbuffer.setToolTipText(\"Display lighting calculations onscreen\");\n check_showLightbuffer.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n check_showLightbufferActionPerformed(evt);\n }\n });\n\n check_multisample.setText(\"Multisample\");\n check_multisample.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n check_multisampleActionPerformed(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 .addComponent(jLabel3)\n .addComponent(jLabel4)\n .addComponent(jLabel2))\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGap(8, 8, 8)\n .addComponent(slider_depth, javax.swing.GroupLayout.DEFAULT_SIZE, 324, Short.MAX_VALUE))\n .addGroup(layout.createSequentialGroup()\n .addGap(10, 10, 10)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(slider_width, javax.swing.GroupLayout.DEFAULT_SIZE, 322, Short.MAX_VALUE)\n .addComponent(slider_height, javax.swing.GroupLayout.DEFAULT_SIZE, 322, Short.MAX_VALUE)))))\n .addGroup(layout.createSequentialGroup()\n .addComponent(check_showBounds)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(check_showLightbuffer)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(check_multisample))\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel1)\n .addComponent(jLabel5))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(slider_opacity, javax.swing.GroupLayout.DEFAULT_SIZE, 322, Short.MAX_VALUE)\n .addComponent(slider_slices, javax.swing.GroupLayout.DEFAULT_SIZE, 322, Short.MAX_VALUE))))\n .addContainerGap())\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)\n .addComponent(jLabel2)\n .addComponent(slider_width, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel3)\n .addComponent(slider_height, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel4)\n .addComponent(slider_depth, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(check_showBounds)\n .addComponent(check_showLightbuffer)\n .addComponent(check_multisample))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel1)\n .addComponent(slider_slices, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel5)\n .addComponent(slider_opacity, 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 }", "private void ffSliderStateChanged(javax.swing.event.ChangeEvent evt) {//GEN-FIRST:event_ffSliderStateChanged\n float tmp_value = ((float)this.ffSlider.getValue())/10;\n this.paramffLabel.setText(\"\" + tmp_value);\n }", "public void addListeners(){\n\n //listener for artists ComboBox\n artists.getSelectionModel().selectedItemProperty().addListener(new ChangeListener<String>() {\n @Override\n public void changed(ObservableValue<? extends String> observableValue, String s, String t1) {\n if(t1 != null){\n search.setDisable(false);\n genres.getSelectionModel().clearSelection();\n year.getSelectionModel().clearSelection();\n }\n }\n });\n\n //listener for genres ComboBox\n genres.getSelectionModel().selectedItemProperty().addListener(new ChangeListener<String>() {\n @Override\n public void changed(ObservableValue<? extends String> observableValue, String s, String t1) {\n if(t1 != null){\n search.setDisable(false);\n artists.getSelectionModel().clearSelection();\n year.getSelectionModel().clearSelection();\n }\n }\n });\n\n //listener for year ComboBox\n year.getSelectionModel().selectedItemProperty().addListener(new ChangeListener<Integer>() {\n @Override\n public void changed(ObservableValue<? extends Integer> observableValue, Integer integer, Integer t1) {\n if(t1 != null){\n search.setDisable(false);\n artists.getSelectionModel().clearSelection();\n genres.getSelectionModel().clearSelection();\n }\n }\n });\n\n }", "public interface KnobValuesChangedListener {\r\n\t\tvoid onValuesChanged(boolean knobStartChanged, boolean knobEndChanged, int knobStart, int knobEnd);\r\n\t\tvoid onMoveValuePoint(int pX, int pY, int knobStartPX, int knobEndPX, boolean isMoving);\r\n void onSliderClicked();\r\n\t}", "@Override\n public void stateChanged(ChangeEvent e)\n {\n if (e.getSource()==delaySlider)\n {\n// System.out.println(delaySlider.getValue());\n rightPanel.setDelayMS(delaySlider.getValue());\n }\n }", "private void ssSliderStateChanged(javax.swing.event.ChangeEvent evt) {//GEN-FIRST:event_ssSliderStateChanged\n float tmp_value = ((float)this.ssSlider.getValue())/10;\n this.paramssLabel.setText(\"\" + tmp_value);\n }", "public void stateChanged(ChangeEvent e) {\n JSlider source = (JSlider)e.getSource();\n //volume\n if(parameter=='v'){\n System.out.println(\"Panel: \"+numSampler+\" volume: \"+source.getValue());\n }\n //volume\n else if(parameter=='p'){\n System.out.println(\"Panel: \"+numSampler+\" pitch: \"+source.getValue());\n }\n else if(parameter=='f'){\n System.out.println(\"Panel: \"+numSampler+\" filter cutoff: \"+source.getValue());\n }\n }", "@Override\n public void onSearchEditOpened() {\n binding.includeDashboard.viewSearchTint.setVisibility(View.VISIBLE);\n binding.includeDashboard.viewSearchTint\n .animate()\n .alpha(1.0f)\n .setDuration(300)\n .setListener(new SimpleAnimationListener())\n .start();\n\n }", "@Override\n\t\t\tpublic void valueChanged(ListSelectionEvent e) {\n\t\t\t\tif (e.getValueIsAdjusting()) {\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\tif(!filmJList.isSelectionEmpty()||filmJList.getMaxSelectionIndex()!=-1)\n\t\t\t\tsetDataPanel(dataJPanel,filmJList.getSelectedIndex());\n\t\t\t}", "private void addChangeListeners() {\r\n myTetrisPanel.addPropertyChangeListener(myInfoPanel);\r\n myTetrisMenuBar.addPropertyChangeListener(myInfoPanel);\r\n myTetrisMenuBar.addPropertyChangeListener(myKeyAdapter);\r\n myTetrisMenuBar.addPropertyChangeListener(myTetrisPanel);\r\n addPropertyChangeListener(myTetrisMenuBar);\r\n myInfoPanel.addPropertyChangeListener(myTetrisMenuBar);\r\n }", "public interface OnProgressChangeListener {\n void onProgressChange(float smoothProgress, float targetProgress);\n }", "@Override\n\t\t\tpublic void stateChanged(ChangeEvent e) {\n\t\t\t\tint perPersonTipPercentage=((JSlider) e.getSource()).getValue();\n\t\t\t\tfloat perPersonNewTip=(((float)perPersonTipPercentage)/100)*(Float.valueOf(TipCalcView.getInstance().totalTip.getText()).floatValue());\n\t\t\n\t\t\t\tDecimalFormat decimalFormat=new DecimalFormat(\"#.##\");\n\t\t\t\tTipTailorView.getInstance().labels[no].setText(String.valueOf(decimalFormat.format(perPersonNewTip)));\n\t\t\t\tTipCalcView.getInstance().perPersonTip.setText(\"Not Applicable\");\n\t\t\t\tTipCalcView.getInstance().perPersonTip.setEditable(false);\n\t\t\t\t\n\t\t\t\t\n\t\t\t}", "public void valueChanged( ListSelectionEvent event )\r\n {\r\n if( !event.getValueIsAdjusting() ) \r\n {\r\n ListSelectionModel model = m_list.getSelectionModel();\r\n synchronized( model )\r\n {\r\n Object old = m_selection;\r\n m_selection = (TransitModel) m_list.getSelectedValue();\r\n if( null != m_selection )\r\n {\r\n try\r\n {\r\n TransitPanel panel = \r\n new TransitPanel( m_parent, m_selection );\r\n m_splitPane.setRightComponent( panel );\r\n m_splitPane.setDividerLocation( 100 );\r\n }\r\n catch( Throwable e )\r\n {\r\n e.printStackTrace();\r\n }\r\n }\r\n }\r\n }\r\n }", "public void stateChanged(ChangeEvent evt){player.seek(slider.getValue());}", "@Override\n\t\t\tpublic void onStartTrackingTouch(VerticalSeekBar VerticalSeekBar)\n\t\t\t{\n\t\t\t\tmEditText.setAlpha(0.8f);\n\t\t\t\tmVerticalSeekBar.setAlpha(0.8f);\n\t\t\t}", "@Override\n\tpublic void stateChanged(ChangeEvent e) {\n\t\t// TODO Auto-generated method stub\n\t\tepochSelected = ((Number)epochSelector.getValue()).intValue();\n\t\tupdateParticles();\n\t\tthis.repaint();\n\t}", "@Override\n\t\t\tpublic void stateChanged(ChangeEvent e) {\n\t\t\t\ttexto.setFont(new Font((String) miCombo.getSelectedItem(), Font.PLAIN,miSlider.getValue()));\n\t\t\t}", "@Override\r\n public void valueChanged(ListSelectionEvent e) {\n selectionChanged();\r\n }", "@Override\r\n\tpublic void stateChanged(ChangeEvent e) {\n\t\tJSlider source = (JSlider)e.getSource();\r\n\t\tif (!source.getValueIsAdjusting()) {\r\n\t\t\tSystem.out.println(source.getValue());\r\n\t\t\tSliderState.setSliderValue(source.getValue());\r\n\t\t}\r\n\t}", "public void valueChanged(ListSelectionEvent e) {\n\t\t\t\tif(!e.getValueIsAdjusting()){\n\n\t\t\t\t\tlabel.setText(\"\");\n\n\t\t\t\t\t//get the product\n\t\t\t\t\tProduct product = catalog.getProduct(list.getSelectedValue()+\"\");\n\t\t\t\t\tlabelTypeInfo.setText(product.getType());\n\t\t\t\t\tlabelNameInfo.setText(product.getName());\n\t\t\t\t\tlabelCodeInfo.setText(product.getCode());\n\t\t\t\t\tlabelPriceInfo.setText(product.getPrice() + \"\");\n\n\n\t\t\t\t\t//judge product is coffee or tea milk, output the different value to the label.\n\t\t\t\t\tif (product.getType() == \"Coffee\") {\n\n\t\t\t\t\t\tlabelTempInfo.setText(((Coffee)product).getTemperature());\n\t\t\t\t\t\tlabelTempInfo.setBorder(new LineBorder(Color.BLACK, 1, true));\n\t\t\t\t\t\tlabelOriginInfo.setText(((Coffee)product).getOrigin());\n\t\t\t\t\t\tlabelOriginInfo.setBorder(new LineBorder(Color.BLACK, 1, true));\n\t\t\t\t\t\tlabelSweetInfo.setText(\"\");\n\t\t\t\t\t\tlabelSweetInfo.setBorder(new LineBorder(Color.LIGHT_GRAY, 1, true));\n\n\n\t\t\t\t\t}else if (product.getType() == \"TeaMilk\") {\n\n\t\t\t\t\t\tlabelSweetInfo.setText(((TeaMilk)product).isSweetness() + \"\");\n\t\t\t\t\t\tlabelSweetInfo.setBorder(new LineBorder(Color.BLACK, 1, true));\n\t\t\t\t\t\tlabelTempInfo.setText(\"\");\n\t\t\t\t\t\tlabelTempInfo.setBorder(new LineBorder(Color.LIGHT_GRAY, 1, true));\n\t\t\t\t\t\tlabelOriginInfo.setText(\"\");\n\t\t\t\t\t\tlabelOriginInfo.setBorder(new LineBorder(Color.LIGHT_GRAY, 1, true));\n\n\t\t\t\t\t}else {\n\t\t\t\t\t\tSystem.out.println(\"an Error\");\n\t\t\t\t\t}\n\n\t\t\t\t\t// set the image to the label to display the product appearance.\n\t\t\t\t\tImageIcon icon = new ImageIcon(\"src/image/\" + product.getName() + \".jpg\");\n\t\t\t\t\timageLabel.setIcon(icon);\n\t\t\t\t\timageLabel.setSize(200, 200);\n\t\t\t\t\tpanelImage.add(imageLabel);\t\n\t\t\t\t}\n\n\n\t\t\t}", "private void addChangeListeners() {\n\t\troom.textProperty().addListener((observable, oldValue, newValue) -> {\n\t\t\tif (!hotel.getText().isEmpty() && !quality.getText().isEmpty()) {\n\t\t\t\tcalculatePrice();\n\t\t\t}\n\t\t});\n\t\thotel.textProperty().addListener((observable, oldValue, newValue) -> {\n\t\t\tif (!hotel.getText().isEmpty() && !quality.getText().isEmpty()) {\n\t\t\t\tcalculatePrice();\n\t\t\t}\n\t\t});\n\t\tquality.textProperty().addListener((observable, oldValue, newValue) -> {\n\t\t\tif (!hotel.getText().isEmpty() && !quality.getText().isEmpty()) {\n\t\t\t\tcalculatePrice();\n\t\t\t}\n\t\t});\n\t}", "private void updateAndAlertListener() {\n\n\t\teditText.setText(getRoundedValue(value));\n\n\t\tif (changeListener != null) {\n\t\t\tchangeListener.onValueChange(this, value);\n\t\t}\n\t}", "private void onColourWheelInput(MouseEvent e)\n {\n int x = (int)e.getX(), y = (int)e.getY();\n try\n {\n setColour(pickerWheel.getImage().getPixelReader().getColor(x, y), true);\n syncSliderInput();\n syncHexInput();\n syncRgbInput();\n } catch (IndexOutOfBoundsException ex){}\n }", "public void stateChanged(ChangeEvent event){\n\t\t\t\t\t\t\tlabelLargeur.setText(2*((JSlider)event.getSource()).getValue()-1 + \" cases :\");\n\t\t\t\t\t\t}", "public void stateChanged(ChangeEvent event){\n\t\t\t\t\t\t\tlabelHauteur.setText(2*((JSlider)event.getSource()).getValue()-1 + \" cases :\");\n\t\t\t\t\t\t}", "@Override\n public void valueChanged(ListSelectionEvent e) {\n if (!strategyList.isSelectionEmpty())\n playButton.setEnabled(true);\n }", "@Override\n\t\tpublic void itemStateChanged(ItemEvent e) {\n\t\t\tif(InitComplete && e.getStateChange() == 1)\n\t\t\t{\n\t\t\t\tString AllName[] = e.getSource().toString().split(\",\");\n\t\t\t\t\n\t\t\t\tString Index = AllName[0].replace(\"javax.swing.JComboBox[Smooth\", \"\");\n\t\t\t\t\n\t\t\t\tComponent Point = null;\n\t\t\t\tfor(Component one:parameterPanel.getComponents())\n\t\t\t\t{\n\t\t\t\t\tif(one.getName() != null && one.getName().equals(\"Parameter\" + Index))\n\t\t\t\t\t{\n\t\t\t\t\t\tPoint = one;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif(Point != null)\n\t\t\t\t{\n\t\t\t\t\tJTextField PointText = (JTextField) Point;\n\t\t\t\t\tString MethodValue = smoothParameters.GetMethodOneValue(e.getItem().toString());\n\t\t\t\t\t\n\t\t\t\t\tPointText.setText(MethodValue);\n\t\t\t\t\tPointText.setToolTipText(smoothParameters.GetMethodComment(e.getItem().toString()));\n\t\t\t\t\tif (MethodValue.equals(\"0\"))\n\t\t\t\t\t{\n\t\t\t\t\t\tPointText.setEnabled(false);\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t{\n\t\t\t\t\t\tPointText.setEnabled(true);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}", "protected void installListeners() {\n spinner.addPropertyChangeListener(propertyChangeListener); }", "@Override\n public void valueChanged(ListSelectionEvent e) {\n if (e.getValueIsAdjusting()) {\n return;\n }\n\n // Eliminate the problem when the pointer is at -1\n if (listLesFilm.getSelectedIndex() == -1) {\n return;\n }\n\n // Initialize the value of the picture\n labelFilmImage.setText(null);\n labelFilmImage.setIcon(null);\n\n // Initialize the value of pane.\n textPaneMovieDetail.setText(null);\n\n System.out.println(listLesFilm.getSelectedIndex() + \" has been selected!\");\n\n // Instantiate the value to the selected film.\n LesFilmsInList lesFilmsInListSelected = listFilmInList.get(listLesFilm.getSelectedIndex());\n\n // Instantiate and get Film ID.\n int filmId = lesFilmsInListSelected.getFilmId();\n\n // We use the movie ID to get movie details.\n // See the api from website below:\n // https://developers.themoviedb.org/3/movies/get-movie-details\n Call<Movie.movie_detail> callMovieDetail = apiInterface.get_movie_by_id(filmId, utils.API_KEY);\n\n callMovieDetail.enqueue(new Callback<Movie.movie_detail>() {\n @Override\n public void onResponse(Call<Movie.movie_detail> call, Response<Movie.movie_detail> response) {\n\n // Get movie detail by using model Movie.movie_detail from the response which we get from\n // website.\n Movie.movie_detail movieDetail = response.body();\n\n // Instantiate a new attribute set for setting the title.\n SimpleAttributeSet attributeSetTitle = new SimpleAttributeSet();\n\n // Set title to Bold.\n StyleConstants.setBold(attributeSetTitle, true);\n\n // Set font size to 30.\n StyleConstants.setFontSize(attributeSetTitle, 30);\n\n // Instantiate a buffered image to stock Poster Image.\n BufferedImage bufferedImageIcon = null;\n\n try {\n\n // Set buffered image as Poster from URL.\n bufferedImageIcon = ImageIO.read(new URL(\"https://image.tmdb.org/t/p/w500\" + movieDetail.getPoster_path()));\n\n // Instantiate a icon interface to paint icons from image.\n ImageIcon imageIcon = new ImageIcon(bufferedImageIcon);\n labelFilmImage.setIcon(imageIcon);\n\n\n } catch (IOException ioException) {\n\n // If we cannot read image from website then return No Image.\n ioException.printStackTrace();\n labelFilmImage.setText(\"NO IMAGE \");\n } catch (NullPointerException nullPointerException) {\n\n // If we cannot get poster path which means this movie is added by ourselves, then\n // return This movie is added by myself.\n nullPointerException.printStackTrace();\n labelFilmImage.setText(\"This movie has been added by yourself\");\n }\n\n\n try {\n\n // Import movie detail into text pane.\n // Import formatted title into text pane.\n styledDocumentTextPane.insertString(styledDocumentTextPane.getLength(), movieDetail.getTitle(), attributeSetTitle);\n\n // Import released date into text pane.\n styledDocumentTextPane.insertString(styledDocumentTextPane.getLength(), \"\\nReleased date: \" + movieDetail.getRelease_date() + \"\\nGenre: \", null);\n\n // Import Genre(s) into text pane.\n for (int k = 0; k < movieDetail.getGenres().size(); k++) {\n styledDocumentTextPane.insertString(styledDocumentTextPane.getLength(), movieDetail.getGenres().get(k).getName() + \" \", null);\n }\n\n // Import abstract into text pane.\n styledDocumentTextPane.insertString(styledDocumentTextPane.getLength(), \"\\n\\nAbstract: \" + movieDetail.getOverview(), null);\n\n // Import movie run time into text pane.\n styledDocumentTextPane.insertString(styledDocumentTextPane.getLength(), \"\\n\\nRun time: \" + movieDetail.getRuntime() + \"min\", null);\n\n // Import movie score (*/10) into text pane\n styledDocumentTextPane.insertString(styledDocumentTextPane.getLength(), \"\\nMark: \" + movieDetail.getVote_average() + \"/10\", null);\n } catch (BadLocationException badLocationException) {\n\n // This exception is to report bad locations within a document model\n // (that is, attempts to reference a location that doesn't exist).\n badLocationException.printStackTrace();\n } catch (NullPointerException nullPointerException) {\n try {\n // If throwing null then means the movie is added by ourselves.\n styledDocumentTextPane.insertString(styledDocumentTextPane.getLength(), \"This movie has no detail\", null);\n } catch (BadLocationException badLocationException) {\n badLocationException.printStackTrace();\n }\n\n }\n }\n\n\n @Override\n public void onFailure(Call<Movie.movie_detail> call, Throwable throwable) {\n\n }\n });\n\n }", "public void valueChanged(ListSelectionEvent e) {\r\n\t\tif (e.getValueIsAdjusting() == false)\r\n\t\t\tsetSelectedObjects();\r\n\r\n\t\tgetTable().repaint();\r\n\t}", "@Override\r\n public void focusLost(FocusEvent event) {\r\n if (event.getSource() instanceof TextField) {\r\n int value;\r\n int red = currentColor.getRed();\r\n int green = currentColor.getGreen();\r\n int blue = currentColor.getBlue();\r\n try {\r\n value = Integer.parseInt(((TextField) event.getSource()).getText());\r\n } catch (Exception e) {\r\n value = -1;\r\n }\r\n if (event.getSource() == redInput) {\r\n if (value >= 0 && value < 256)\r\n red = value;\r\n else\r\n redInput.setText(String.valueOf(red));\r\n } else if (event.getSource() == greenInput) {\r\n if (value >= 0 && value < 256)\r\n green = value;\r\n else\r\n greenInput.setText(String.valueOf(green));\r\n } else if (event.getSource() == blueInput) {\r\n if (value >= 0 && value < 256)\r\n blue = value;\r\n else\r\n blueInput.setText(String.valueOf(blue));\r\n }\r\n currentColor = new Color(red, green, blue);\r\n newSwatch.setForeground(currentColor);\r\n colorCanvas.setColor(currentColor);\r\n }\r\n }", "@Override\n\tpublic void stateChanged(ChangeEvent e) {\n\t\tPicture unfiltered = copy(_original_pic);\n\n\t\tint blurFactor = _blur_slider.getValue();\n\t\tdouble brightenFactor = _brightness_slider.getValue();\n\t\tdouble saturateFactor = _saturation_slider.getValue();\n\n\t\tPicture blurredOutput = blur(unfiltered, blurFactor);\n\t\tPicture saturatedOutput = saturate(blurredOutput, saturateFactor);\n\t\tPicture brightenedOutput = brighten(saturatedOutput, brightenFactor);\n\t\tObservablePicture output = brightenedOutput.createObservable();\n\t\t_picture_view.setPicture(output);\n\t}", "private void addListeners() {\n\t\t\n\t\tresetButton.setOnAction(new EventHandler<ActionEvent>() {\n\t\t\t \n\t\t public void handle(ActionEvent e) {\n\t\t \n\t\t \treset();\n\t\t \t\n\t\t }\n\t\t \n\t\t});\n\t\t\n\t\ttoggleGroup.selectedToggleProperty().addListener(\n\t\t\t (ObservableValue<? extends Toggle> ov, Toggle old_toggle, \n\t\t\t Toggle new_toggle) -> {\n\t\t\t \t\n\t\t\t \tif(rbCourse.isSelected()) {\n\t\t \t\t\n\t\t \t\thbox3.getChildren().set(0, CourseSelectionBox.instance());\n\t\t \t\thbox3.setDisable(false);\n\t\t \t\t\n\t\t \t}else if(rbAuthor.isSelected()) {\n\t\t \t\t\n\t\t \t\thbox3.getChildren().set(0, AuthorSelectionBox.instance());\n\t\t \t\thbox3.setDisable(false);\n\t\t \t\t\n\t\t \t}else if(rbNone.isSelected()) {\n\t\t \t\t\n\t\t \t\thbox3.setDisable(true);\n\t\t \t\t\n\t\t \t}\n\t\t\t \t\n\t\t\t});\n\t\t\n\t\tapplyButton.setOnAction(new EventHandler<ActionEvent>() {\n\t\t\t \n\t\t public void handle(ActionEvent e) {\n\t\t \n\t\t \tfilter();\n\t\t \t\n\t\t }\n\t\t \n\t\t});\n\t\t\n\t\tsearchButton.setOnAction(new EventHandler<ActionEvent>() {\n\t\t\t \n\t\t public void handle(ActionEvent e) {\n\t\t \n\t\t \tResult.instance().search(quizIDField.getText());\n\t\t \t\n\t\t }\n\t\t \n\t\t});\n\t\t\n\t}", "private void control()\r\n\t\t{\n\t\tspinMin.addChangeListener(createMinListener());\r\n\t\tspinMax.addChangeListener(createMaxListener());\r\n\t\t}", "void addSliders() {\n\t\t\tfinal JTextField impact_r = new JTextField(\" \" + Constants.IMPACT_RADIUS + \" \");\n\t\t\timpact_r.setEditable(false);\n\t\t\t\n\t\t\tJSlider impactR = new JSlider(JSlider.HORIZONTAL, 1, 10, 2);\n\t\t\timpactR.setMinorTickSpacing(1);\n\t\t\t\n\t\t\timpactR.addChangeListener(new ChangeListener() {\n\t\t\t\tpublic void stateChanged(ChangeEvent e) {\n\t\t\t\t\tJSlider source = (JSlider)e.getSource();\n\t\t\t\t\tif (!source.getValueIsAdjusting()) {\n\t\t\t\t\t\tConstants.IMPACT_RADIUS = source.getValue() / 10.;\n\t\t\t\t\t\timpact_r.setText(\" \" + Constants.IMPACT_RADIUS + \" \");\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t});\n\t\t\t\n\t\t\tHashtable<Integer, JLabel> labelTable = new Hashtable<Integer, JLabel>();\n\t\t\tlabelTable.put(new Integer(1), new JLabel(\"0.1\"));\n\t\t\tlabelTable.put(new Integer(5), new JLabel(\"0.5\"));\n\t\t\tlabelTable.put(new Integer(10), new JLabel(\"1\"));\n\t\t\timpactR.setLabelTable(labelTable);\n\t\t\timpactR.setPaintTicks(true);\n\t\t\timpactR.setPaintLabels(true);\n\t\t\t\n\t\t\tContainer ir = new Container();\n\t\t\tir.setLayout(new FlowLayout());\n\t\t\tir.add(new JLabel(\"Impact Radius\"));\n\t\t\tir.add(impact_r);\n\t\t\t\n\t\t\tguiFrame.add(ir);\n\t\t\tguiFrame.add(impactR);\n\t\t}", "@Override // androidx.databinding.ViewDataBinding\n public boolean onFieldChange(int i, Object obj, int i2) {\n if (i != 0) {\n return false;\n }\n return onChangeSliderAction((SettingsSliderActionType) obj, i2);\n }", "@FXML\n\tpublic void onVolumeSliderChanged(MouseEvent e){\n\t\t//Grab the affected slider\n\t\tSlider sliderChanged = (Slider) e.getSource();\n\n\t\t//Grab old/new slider values\n\t\tdouble oldValue = synth.getVolume(),\n\t\t\t\tnewValue = sliderChanged.getValue();\n\n\t\t//Add the action if the values differ\n\t\tif(oldValue != newValue) {\n\t\t\ttry {\n\t\t\t\t//Add the action\n\t\t\t\tactionLog.AddAction(\n\t\t\t\t\t\toldValue,\n\t\t\t\t\t\tnewValue,\n\t\t\t\t\t\tsliderChanged,\n\t\t\t\t\t\tsliderChanged.getClass().getMethod(\"setValue\", double.class),\n\t\t\t\t\t\tthis.getClass().getMethod(\"changeVolume\", double.class));\n\t\t\t} catch (NoSuchMethodException | SecurityException e1) {\n\t\t\t\tSystem.out.println(\"An unexpected error has occured.\");\n\t\t\t\te1.printStackTrace();\n\t\t\t}\n\n\t\t\tchangeVolume(newValue);\n\t\t}\n\t}", "private void updateTxtBoxes() {\n int i = channelSelect.getSelectedIndex();\n \n if(i==-1) return; //sometimes channelSelect event is accidentally triggered\n //which calls updateTxtBoxes(),even when selected index is -1. \n //This line of code avoids index out of bounds error\n \n Channel c = channelList.get(i);\n \n ampBox.setText(\"\"+c.getAmp());\n durBox.setText(\"\"+c.getDur());\n freqBox.setText(\"\"+c.getFreq());\n owBox.setText(\"\"+c.getOnWave()); \n }", "public void setOnKnobValuesChangedListener (KnobValuesChangedListener l) {\r\n\t\tknobValuesChangedListener = l;\r\n\t}", "public void valueChanged(ListSelectionEvent e) {\n Object src = e.getSource();\n\n if(e.getValueIsAdjusting() && src == listaTarefasCadastradas) {\n //envio do indice da tarefa, o controle de tarefas e do seletor 1 - adicionar nova 2 editar;\n\t\t\tnew TelaDetalheTarefa().mostrarDadosTarefa(ct, listaTarefasCadastradas.getSelectedIndex(),2, p.getArrProjetos(ind));\n }\n }", "@Override\n\t\t\tpublic void stateChanged(final ChangeEvent evt) {\n\t\t\t\tfinal JSlider mySlider3 = (JSlider) evt.getSource();\n\t\t\t\t//if (source.getValueIsAdjusting()) {\n\t\t\t\tif (mySlider3.getValueIsAdjusting()) {\n\t\t\t\t\t// int freq = (int)source.getValue();\n\t\t\t\t\tfloat freq = (float) mySlider3.getValue();\n\t\t\t\t\tfreq = (freq / FREQ_MAX) * (freq / FREQ_MAX);\n\t\t\t\t\tfreq = freq * FREQ_MAX;\n\t\t\t\t\tfreq = freq + FREQ_MIN;\n\t\t\t\t\tdoPrintValue3(freq);\n\t\t\t\t\t// when the action occurs the doSendSlider method is invoked\n\t\t\t\t\t// with arguments for freq and node\n\t\t\t\t\tdoSendSlider(freq, 1002);\n\t\t\t\t}\n\t\t\t}", "public void valueChanged(ListSelectionEvent e) \n\t{\n\t\tif(!e.getValueIsAdjusting())\n\t\t{\n\t\t\t// gets values from your jList and added it to a list\n\t\t\tList values = spotView.getCountryJList().getSelectedValuesList();\n\t\t\tspotView.setSelectedCountry(values);\n\t\t\t\n\t\t\t//based on country selection, state needs to be updated\n\t\t\tspotView.UpdateStates(spotView.getSelectedCountry());\n\t\t}\n\n\t}", "public void setChangeListener();", "@Override\n\tprotected void setControlListeners() {\n\t\tcheckBox.selectedProperty().addListener(new ChangeListener<Boolean>() {\n\t\t\t@Override\n\t\t\tpublic void changed(\n\t\t\t\t\tObservableValue<? extends Boolean> observable,\n\t\t\t\t\tBoolean oldValue, Boolean newValue) {\n\t\t\t\tif (!settingsPane.isExperimentRunning()) {\n\t\t\t\t\tparameter.set(newValue);\n\t\t\t\t\tsettingsPane.revalidateParameters();\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t}", "private void setOnInput(final JFXSlider slider, final JFXTextField textField) {\n textField.textProperty().addListener(new ChangeListener<String>() {\n @Override\n public void changed(ObservableValue<? extends String> observable, String oldValue, String newValue) {\n try{\n if(!newValue.isEmpty()){\n if(newValue.substring(newValue.length() - 1).equals(\".\")){\n newValue = newValue + \"0\";\n }\n double input = Double.parseDouble(newValue);\n if(input > slider.getMax()){\n slider.setValue(slider.getMax());\n }else if (input < slider.getMin()){\n slider.setValue(slider.getMin());\n }else{\n slider.setValue(input);\n }\n }\n }catch (NumberFormatException nfe){\n textField.setText(oldValue);\n }\n }\n });\n }", "private void abilitySpinnerListener() {\n\t\tstrengthSpinner.addChangeListener(new ChangeListener() {\n\n\t\t\t@Override\n\t\t\tpublic void stateChanged(ChangeEvent e) {\n\t\t\t\tint holder = (Integer) strengthSpinner.getValue();\n\t\t\t\tint saveI = 0;\n\t\t\t\tfor (int i = 0; i < abilityScore.length; i++) {\n\t\t\t\t\tif (holder == abilityScore[i]) {\n\t\t\t\t\t\tstrengthPoints = abilityCost[i];\n\t\t\t\t\t\tsaveI = i - 1;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif (holder < 7) {\n\t\t\t\t\tstrengthSpinner.setValue(7);\n\t\t\t\t}\n\t\t\t\tif (holder > 18) {\n\t\t\t\t\tstrengthSpinner.setValue(18);\n\t\t\t\t}\n\t\t\t\ttotalPoints = strengthPoints + dexterityPoints + constitutionPoints + intelligencePoints + wisdomPoints\n\t\t\t\t\t\t+ charismaPoints;\n\t\t\t\tif (fantasyPoints - totalPoints < 0) {\n\t\t\t\t\tstrengthSpinner.setValue(holder - 1);\n\t\t\t\t\tstrengthPoints = abilityCost[saveI];\n\t\t\t\t}\n\t\t\t\ttotalPoints = strengthPoints + dexterityPoints + constitutionPoints + intelligencePoints + wisdomPoints\n\t\t\t\t\t\t+ charismaPoints;\n\t\t\t\tfantasyPointsLabel\n\t\t\t\t\t\t.setText(\"<html>\" + String.valueOf(fantasyPoints - totalPoints) + \"points<br>remaining</html>\");\n\t\t\t\tif (holder < abilityScoreBaseValue) {\t\n\t\t\t\t\tstrengthModifier = (holder - abilityScoreBaseValue - 1)/2;\n\t\t\t\t} else {\n\t\t\t\t\tstrengthModifier = (holder - abilityScoreBaseValue)/2;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tstrengthModifierLabel.setText(\"<html>Modifier:<br>\" + String.valueOf(strengthModifier) + \"</html>\");\n\t\t\t\t\n\t\t\t\treference.validate();\n\t\t\t\treference.repaint();\n\t\t\t}\n\t\t});\n\n\t\tdexteritySpinner.addChangeListener(new ChangeListener() {\n\n\t\t\t@Override\n\t\t\tpublic void stateChanged(ChangeEvent e) {\n\t\t\t\tint holder = (Integer) dexteritySpinner.getValue();\n\t\t\t\tint saveI = 0;\n\t\t\t\tfor (int i = 0; i < abilityScore.length; i++) {\n\t\t\t\t\tif (holder == abilityScore[i]) {\n\t\t\t\t\t\tdexterityPoints = abilityCost[i];\n\t\t\t\t\t\tsaveI = i - 1;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif (holder < 7) {\n\t\t\t\t\tdexteritySpinner.setValue(7);\n\t\t\t\t}\n\t\t\t\tif (holder > 18) {\n\t\t\t\t\tdexteritySpinner.setValue(18);\n\t\t\t\t}\n\t\t\t\ttotalPoints = strengthPoints + dexterityPoints + constitutionPoints + intelligencePoints + wisdomPoints\n\t\t\t\t\t\t+ charismaPoints;\n\t\t\t\tif (fantasyPoints - totalPoints < 0) {\n\t\t\t\t\tdexteritySpinner.setValue(holder - 1);\n\t\t\t\t\tdexterityPoints = abilityCost[saveI];\n\t\t\t\t}\n\t\t\t\ttotalPoints = strengthPoints + dexterityPoints + constitutionPoints + intelligencePoints + wisdomPoints\n\t\t\t\t\t\t+ charismaPoints;\n\t\t\t\tfantasyPointsLabel\n\t\t\t\t\t\t.setText(\"<html>\" + String.valueOf(fantasyPoints - totalPoints) + \"points<br>remaining</html>\");\n\t\t\t\t\n\t\t\t\tif (holder < abilityScoreBaseValue) {\t\t\t\n\t\t\t\t\tdexterityModifier = ((holder - abilityScoreBaseValue - 1)/2);\n\t\t\t\t} else {\n\t\t\t\t\tdexterityModifier = (holder - abilityScoreBaseValue)/2;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tdexterityModifierLabel.setText(\"<html>Modifier:<br>\" + String.valueOf(dexterityModifier) + \"</html>\");\n\t\t\t\t\n\t\t\t\treference.validate();\n\t\t\t\treference.repaint();\n\t\t\t}\n\t\t});\n\n\t\tconstitutionSpinner.addChangeListener(new ChangeListener() {\n\n\t\t\t@Override\n\t\t\tpublic void stateChanged(ChangeEvent e) {\n\t\t\t\tint holder = (Integer) constitutionSpinner.getValue();\n\t\t\t\tint saveI = 0;\n\t\t\t\tfor (int i = 0; i < abilityScore.length; i++) {\n\t\t\t\t\tif (holder == abilityScore[i]) {\n\t\t\t\t\t\tconstitutionPoints = abilityCost[i];\n\t\t\t\t\t\tsaveI = i - 1;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif (holder < 7) {\n\t\t\t\t\tconstitutionSpinner.setValue(7);\n\t\t\t\t}\n\t\t\t\tif (holder > 18) {\n\t\t\t\t\tconstitutionSpinner.setValue(18);\n\t\t\t\t}\n\t\t\t\ttotalPoints = strengthPoints + dexterityPoints + constitutionPoints + intelligencePoints + wisdomPoints\n\t\t\t\t\t\t+ charismaPoints;\n\t\t\t\tif (fantasyPoints - totalPoints < 0) {\n\t\t\t\t\tconstitutionSpinner.setValue(holder - 1);\n\t\t\t\t\tconstitutionPoints = abilityCost[saveI];\n\t\t\t\t}\n\t\t\t\ttotalPoints = strengthPoints + dexterityPoints + constitutionPoints + intelligencePoints + wisdomPoints\n\t\t\t\t\t\t+ charismaPoints;\n\t\t\t\tfantasyPointsLabel\n\t\t\t\t\t\t.setText(\"<html>\" + String.valueOf(fantasyPoints - totalPoints) + \"points<br>remaining</html>\");\n\t\t\t\t\n\t\t\t\tif (holder < abilityScoreBaseValue) {\n\t\t\t\t\tconstitutionModifier = ((holder - abilityScoreBaseValue - 1)/2);\n\t\t\t\t} else {\n\t\t\t\t\tconstitutionModifier = (holder - abilityScoreBaseValue)/2;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tconstitutionModifierLabel.setText(\"<html>Modifier:<br>\" + String.valueOf(constitutionModifier) + \"</html>\");\n\t\t\t\t\n\t\t\t\treference.validate();\n\t\t\t\treference.repaint();\n\t\t\t}\n\t\t});\n\n\t\tintelligenceSpinner.addChangeListener(new ChangeListener() {\n\n\t\t\t@Override\n\t\t\tpublic void stateChanged(ChangeEvent e) {\n\t\t\t\tint holder = (Integer) intelligenceSpinner.getValue();\n\t\t\t\tint saveI = 0;\n\t\t\t\tfor (int i = 0; i < abilityScore.length; i++) {\n\t\t\t\t\tif (holder == abilityScore[i]) {\n\t\t\t\t\t\tintelligencePoints = abilityCost[i];\n\t\t\t\t\t\tsaveI = i - 1;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif (holder < 7) {\n\t\t\t\t\tintelligenceSpinner.setValue(7);\n\t\t\t\t}\n\t\t\t\tif (holder > 18) {\n\t\t\t\t\tintelligenceSpinner.setValue(18);\n\t\t\t\t}\n\t\t\t\ttotalPoints = strengthPoints + dexterityPoints + constitutionPoints + intelligencePoints + wisdomPoints\n\t\t\t\t\t\t+ charismaPoints;\n\t\t\t\tif (fantasyPoints - totalPoints < 0) {\n\t\t\t\t\tintelligenceSpinner.setValue(holder - 1);\n\t\t\t\t\tintelligencePoints = abilityCost[saveI];\n\t\t\t\t}\n\t\t\t\ttotalPoints = strengthPoints + dexterityPoints + constitutionPoints + intelligencePoints + wisdomPoints\n\t\t\t\t\t\t+ charismaPoints;\n\t\t\t\tfantasyPointsLabel\n\t\t\t\t\t\t.setText(\"<html>\" + String.valueOf(fantasyPoints - totalPoints) + \"points<br>remaining</html>\");\n\t\t\t\t\n\t\t\t\tif (holder < abilityScoreBaseValue) {\n\t\t\t\t\tintelligenceModifier = ((holder - abilityScoreBaseValue - 1)/2);\n\t\t\t\t} else {\n\t\t\t\t\tintelligenceModifier = (holder - abilityScoreBaseValue)/2;\t\t\t\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tintelligenceModifierLabel.setText(\"<html>Modifier:<br>\" + String.valueOf(intelligenceModifier) + \"</html>\");\n\t\t\t\t\n\t\t\t\treference.validate();\n\t\t\t\treference.repaint();\n\t\t\t}\n\t\t});\n\n\t\twisdomSpinner.addChangeListener(new ChangeListener() {\n\n\t\t\t@Override\n\t\t\tpublic void stateChanged(ChangeEvent e) {\n\t\t\t\tint holder = (Integer) wisdomSpinner.getValue();\n\t\t\t\tint saveI = 0;\n\t\t\t\tfor (int i = 0; i < abilityScore.length; i++) {\n\t\t\t\t\tif (holder == abilityScore[i]) {\n\t\t\t\t\t\twisdomPoints = abilityCost[i];\n\t\t\t\t\t\tsaveI = i - 1;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif (holder < 7) {\n\t\t\t\t\twisdomSpinner.setValue(7);\n\t\t\t\t}\n\t\t\t\tif (holder > 18) {\n\t\t\t\t\twisdomSpinner.setValue(18);\n\t\t\t\t}\n\t\t\t\ttotalPoints = strengthPoints + dexterityPoints + constitutionPoints + intelligencePoints + wisdomPoints\n\t\t\t\t\t\t+ charismaPoints;\n\t\t\t\tif (fantasyPoints - totalPoints < 0) {\n\t\t\t\t\twisdomSpinner.setValue(holder - 1);\n\t\t\t\t\twisdomPoints = abilityCost[saveI];\n\t\t\t\t}\n\t\t\t\ttotalPoints = strengthPoints + dexterityPoints + constitutionPoints + intelligencePoints + wisdomPoints\n\t\t\t\t\t\t+ charismaPoints;\n\t\t\t\tfantasyPointsLabel\n\t\t\t\t\t\t.setText(\"<html>\" + String.valueOf(fantasyPoints - totalPoints) + \"points<br>remaining</html>\");\n\t\t\t\t\n\t\t\t\tif (holder < abilityScoreBaseValue) {\t\t\t\n\t\t\t\t\twisdomModifier = ((holder - abilityScoreBaseValue - 1)/2);\n\t\t\t\t} else {\n\t\t\t\t\twisdomModifier = (holder - abilityScoreBaseValue)/2;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\twisdomModifierLabel.setText(\"<html>Modifier:<br>\" + String.valueOf(wisdomModifier) + \"</html>\");\n\t\t\t\t\n\t\t\t\treference.validate();\n\t\t\t\treference.repaint();\n\n\t\t\t}\n\t\t});\n\n\t\tcharismaSpinner.addChangeListener(new ChangeListener() {\n\n\t\t\t@Override\n\t\t\tpublic void stateChanged(ChangeEvent e) {\n\t\t\t\tint holder = (Integer) charismaSpinner.getValue();\n\t\t\t\tint saveI = 0;\n\t\t\t\tfor (int i = 0; i < abilityScore.length; i++) {\n\t\t\t\t\tif (holder == abilityScore[i]) {\n\t\t\t\t\t\tcharismaPoints = abilityCost[i];\n\t\t\t\t\t\tsaveI = i - 1;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif (holder < 7) {\n\t\t\t\t\tcharismaSpinner.setValue(7);\n\t\t\t\t}\n\t\t\t\tif (holder > 18) {\n\t\t\t\t\tcharismaSpinner.setValue(18);\n\t\t\t\t}\n\t\t\t\ttotalPoints = strengthPoints + dexterityPoints + constitutionPoints + intelligencePoints + wisdomPoints\n\t\t\t\t\t\t+ charismaPoints;\n\t\t\t\tif (fantasyPoints - totalPoints < 0) {\n\t\t\t\t\tcharismaSpinner.setValue(holder - 1);\n\t\t\t\t\tcharismaPoints = abilityCost[saveI];\n\t\t\t\t}\n\t\t\t\ttotalPoints = strengthPoints + dexterityPoints + constitutionPoints + intelligencePoints + wisdomPoints\n\t\t\t\t\t\t+ charismaPoints;\n\t\t\t\tfantasyPointsLabel\n\t\t\t\t\t\t.setText(\"<html>\" + String.valueOf(fantasyPoints - totalPoints) + \"points<br>remaining</html>\");\n\t\t\t\t\n\t\t\t\tif (holder < abilityScoreBaseValue) {\n\t\t\t\t\tcharismaModifier = ((holder - abilityScoreBaseValue - 1)/2);\n\t\t\t\t} else {\n\t\t\t\t\tcharismaModifier = (holder - 10)/2;\t\t\t\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tcharismaModifierLabel.setText(\"<html>Modifier:<br>\" + String.valueOf(charismaModifier) + \"</html>\");\n\t\t\t\t\n\t\t\t\treference.validate();\n\t\t\t\treference.repaint();\n\t\t\t}\n\t\t});\n\n\t}", "private void changeColorWheels() {\n if (rgbRdo.getSelection() == true) {\n upperColorWheel.showRgbSliders(true);\n lowerColorWheel.showRgbSliders(true);\n } else {\n upperColorWheel.showRgbSliders(false);\n lowerColorWheel.showRgbSliders(false);\n }\n }", "private void initListeners() {\n this.setOnMousePressed((event -> {\n this.setPressedStyle();\n }));\n\n this.setOnMouseReleased((event -> {\n this.setReleasedStyle();\n }));\n\n this.setOnMouseEntered((event -> {\n this.setEffect(new DropShadow());\n }));\n\n this.setOnMouseExited((event -> {\n this.setEffect(null);\n }));\n }", "public void addListeners() {\n\t\tadd_terrain.addActionListener(new ActionListener() { \r\n\t\t\tpublic void actionPerformed(ActionEvent e) { \r\n\t\t\t\tif(add_terrain.isSelected()) {\r\n\t\t\t\t\t//unselect add_game_object\r\n\t\t\t\t\tEditGameObject.add_game_object.setSelected(false);\r\n\t\t\t\t\t//temp_terrain_object.render();\r\n\t\t\t\t\tWindow.render();\r\n\t\t\t\t}\r\n\t\t\t} \r\n\t\t} );\r\n\t\t\r\n\t\t//listener to change temp_terrain shape\r\n\t\tshape_cb.addItemListener(new ItemListener() {\r\n\t\t\t@Override\r\n\t\t\tpublic void itemStateChanged(ItemEvent event) {\r\n\t\t\t\tif(event.getStateChange() == ItemEvent.SELECTED) {\r\n\t\t\t\t\ttemp_terrain_object.setShape(shape_cb.getSelectedItem().toString());\r\n\t\t\t\t\tWindow.render();\r\n\t\t\t\t\t\r\n\t\t\t\t\tGravity.applyEnvironmentGravity(temp_terrain_object);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t });\r\n\t\t\r\n\t\t//listener to change temp_terrain material\r\n\t\tmaterial_cb.addItemListener(new ItemListener() {\r\n\t\t\t@Override\r\n\t\t\tpublic void itemStateChanged(ItemEvent event) {\r\n\t\t\t\tif(event.getStateChange() == ItemEvent.SELECTED) {\r\n\t\t\t\t\ttemp_terrain_object.setMaterial(material_cb.getSelectedItem().toString());\r\n\t\t\t\t\tWindow.render();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t });\r\n\t\t\r\n\t\t//listener to change temp_terrain colour\r\n\t\tcolour_cb.addItemListener(new ItemListener() {\r\n\t\t\t@Override\r\n\t\t\tpublic void itemStateChanged(ItemEvent event) {\r\n\t\t\t\tif(event.getStateChange() == ItemEvent.SELECTED) {\r\n\t\t\t\t\ttemp_terrain_object.setColour((String)colour_cb.getSelectedItem());\r\n\t\t\t\t\tWindow.render();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t });\r\n\t\t\r\n\t\t//listener to change scale of temp_terrain\r\n\t\tscale.addActionListener(new ActionListener() {\r\n\t\t\t@Override\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\r\n\t\t\t\ttemp_terrain_object.setScale(Float.parseFloat((scale.getText())));\r\n\t\t\t\tWindow.render();\r\n\t\t\t}\r\n\t\t});\r\n\t\t\r\n\t\t//listener to change x position of temp_terrain\r\n\t\tposition_x.addChangeListener(new ChangeListener() {\r\n\t\t\t@Override\r\n\t\t\tpublic void stateChanged(ChangeEvent e) {\r\n\t\t\t\tInteger x = (Integer) position_x.getValue();\r\n\t\t\t\ttemp_terrain_object.setX((float)x);\r\n\t\t\t\tWindow.render();\r\n\t\t\t}\r\n\t\t});\r\n\t\t\r\n\t\t//listener to change y position of temp_terrain\r\n\t\tposition_y.addChangeListener(new ChangeListener() {\r\n\t\t\t@Override\r\n\t\t\tpublic void stateChanged(ChangeEvent e) {\r\n\t\t\t\tInteger y = (Integer) position_y.getValue();\t\t\t\r\n\t\t\t\ttemp_terrain_object.setY((float)y);\r\n\t\t\t\tWindow.render();\r\n\t\t\t}\t\t\r\n\t\t});\r\n\t\t\r\n\t\t//listener to add temp_terrain to terrain list\r\n\t\tapply_terrain.addActionListener(new ActionListener() {\r\n\t\t\t@Override\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\r\n\t\t\t\t//add object to terrain list\r\n\t\t\t\tEnvironmentVariables.addToTerrain(new GameObject (temp_terrain_object));\r\n\t\t\t\t//reset to default \r\n\t\t\t\ttemp_terrain_object.reset();\r\n\t\t\t\ttemp_terrain_object.setLock(true);\r\n\t\t\t\tresetUI();\r\n\t\t\t\ttemp_terrain_object.setMaterial(material_cb.getSelectedItem().toString());\r\n\t\t\t\tWindow.render();\r\n\t\t\t}\r\n\t\t\t\r\n\t\t});\r\n\t\t\r\n\t\t//listener to reset temp_terrain \r\n\t\treset_terrain.addActionListener(new ActionListener() {\r\n\t\t\t@Override\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\r\n\t\t\t\ttemp_terrain_object.reset();\r\n\t\t\t\tresetUI();\r\n\t\t\t\ttemp_terrain_object.setMaterial(material_cb.getSelectedItem().toString());\r\n\t\t\t\tWindow.render();\r\n\t\t\t}\r\n\t\t});\r\n\t}", "public void stateChanged(ChangeEvent changeEvent) {\n Color newForegroundColor = colorChooser.getColor();\n label.setForeground(newForegroundColor);\n }", "@Override\n public void addPropertyChangeListener(PropertyChangeListener listener) {\n\n }", "@Override\n\tpublic void itemStateChanged(ItemEvent ie) {\n\t\tif (ie.getSource() == liColor) {\n\t\t\tString color = liColor.getSelectedItem();\n\t\t\tSystem.out.println(color);\n\t\t\tif (color == \"Red\") {\n\t\t\t\tpLeft.setBackground(Color.RED);\n\t\t\t\tsetBackground(Color.RED);\n\t\t\t\tpButton.setBackground(Color.RED);\n\t\t\t}\n\t\t\telse if (color == \"Green\") {\n\t\t\t\tpLeft.setBackground(Color.GREEN);\n\t\t\t\tsetBackground(Color.GREEN);\n\t\t\t\tpButton.setBackground(Color.GREEN);\n\t\t\t}\n\t\t\telse if (color == \"Gray\") {\n\t\t\t\tpLeft.setBackground(Color.gray);\n\t\t\t\tsetBackground(Color.gray);\n\t\t\t\tpButton.setBackground(Color.gray);\n\t\t\t}\n\t\t\telse if (color == \"Black\") {\n\t\t\t\tpLeft.setBackground(Color.black);\n\t\t\t\tsetBackground(Color.black);\n\t\t\t\tpButton.setBackground(Color.black);\n\t\t\t}\n\t\t\t\n\t\t}\n\t}", "private void colorPickerHander() {\n\t\tboolean validvalues = true;\n\t\tHBox n0000 = (HBox) uicontrols.getChildren().get(5);\n\t\tTextField t0000 = (TextField) n0000.getChildren().get(1);\n\t\tLabel l0000 = (Label) n0000.getChildren().get(3);\n\t\tString txt = t0000.getText();\n\t\tString[] nums = txt.split(\",\");\n\t\tif (nums.length != 4) {\n\t\t\tvalidvalues = false;\n\t\t\tGUIerrorout = new Alert(AlertType.ERROR, \"Invalid Color Format!\\nFormat: <0-255>,<0-255>,<0-255>,<0-1> \\n (red),(green),(blue),(alpha)\");\n\t\t\tGUIerrorout.showAndWait();\n\t\t}\n\t\tif (validvalues) {\n\t\t\tint[] colorvalues = new int[3];\n\t\t\tdouble alphavalue = 1.0;\n\t\t\ttry {\n\t\t\t\tfor(int x = 0; x < 3; x++) {\n\t\t\t\t\tcolorvalues[x] = Integer.parseInt(nums[x]);\n\t\t\t\t}\n\t\t\t\talphavalue = Double.parseDouble(nums[3]);\n\t\t\t} catch(Exception e) {\n\t\t\t\tvalidvalues = false;\n\t\t\t\tGUIerrorout = new Alert(AlertType.ERROR, \"Invalid Color Format!\\nFormat: <0-255>,<0-255>,<0-255>,<0-1> \\n (red),(green),(blue),(alpha)\");\n\t\t\t\tGUIerrorout.showAndWait();\n\t\t\t}\n\t\t\tif (alphavalue <= 1.0 && alphavalue >= 0.0 && colorvalues[0] >= 0 && colorvalues[0] < 256 && colorvalues[1] >= 0 && colorvalues[1] < 256 && colorvalues[2] >= 0 && colorvalues[2] < 256){\n\t\t\t\tif (validvalues) {\n\t\t\t\t\tl0000.setTextFill(Color.rgb(colorvalues[0],colorvalues[1],colorvalues[2],alphavalue));\n\t\t\t\t\tusercolors[colorSetterId] = Color.rgb(colorvalues[0],colorvalues[1],colorvalues[2],alphavalue);\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tGUIerrorout = new Alert(AlertType.ERROR, \"Invalid Color Format!\\nFormat: <0-255>,<0-255>,<0-255>,<0-1> \\n (red),(green),(blue),(alpha)\");\n\t\t\t\tGUIerrorout.showAndWait();\n\t\t\t}\n\t\t}\n\t}" ]
[ "0.6159254", "0.6087692", "0.6001775", "0.59751135", "0.5961454", "0.5888895", "0.58846974", "0.58836865", "0.5844212", "0.5826762", "0.5824922", "0.5819051", "0.5809965", "0.57813877", "0.57709473", "0.5761075", "0.57586205", "0.5739483", "0.57302505", "0.571656", "0.57125837", "0.5710221", "0.57065874", "0.5705682", "0.570505", "0.57012826", "0.5697795", "0.5697684", "0.56951165", "0.5693905", "0.56919295", "0.56732583", "0.56668437", "0.56635755", "0.566237", "0.5649799", "0.56460947", "0.5630661", "0.5627886", "0.56073517", "0.5587989", "0.55860287", "0.5583366", "0.5554593", "0.555234", "0.554225", "0.55094147", "0.549788", "0.5493538", "0.54874617", "0.54818094", "0.5463316", "0.54593307", "0.5458306", "0.54429334", "0.5438924", "0.54308087", "0.54275495", "0.5412748", "0.540713", "0.54056513", "0.53984976", "0.5396742", "0.5394819", "0.5385263", "0.53748184", "0.5373478", "0.53724205", "0.5371274", "0.53689635", "0.5366755", "0.5365173", "0.5358805", "0.53557247", "0.534898", "0.5348601", "0.5342814", "0.53405863", "0.53293395", "0.5329026", "0.53220147", "0.5320075", "0.5317225", "0.5315144", "0.52993184", "0.5294241", "0.5284828", "0.5281666", "0.527622", "0.5275683", "0.5264588", "0.52624553", "0.5260431", "0.52584183", "0.525479", "0.5254476", "0.5254084", "0.5252005", "0.5241405", "0.5220796" ]
0.6784419
0
This method creates a Popup to display the color chooser and the opacity slider
private void showPopupColorFill(final boolean isFill) { final PopupPanel popupColor = new PopupPanel(true); popupColor.addStyleName("color_Pop-up"); TabPanel tabPanel = new TabPanel(); VerticalPanel colPanel = new VerticalPanel(); colPanel.setSpacing(5); final ColorChooser colorChooser = new ColorChooser(); colPanel.add(colorChooser); tabPanel.add(colPanel, new Label("Color")); ChangeListener colorChange = new ChangeListener() { public void onChange(Widget sender) { String color = colorChooser.getColor(); Color colorSelected = Color.getColor(color); if (isFill) { currentFillColor = colorSelected; DOM.setStyleAttribute(fill.getElement(), "backgroundColor",color); currentFillColor.setAlpha(fillOpacity.getValue()); if (curr_obj != null) { curr_obj.uSetFillColor(currentFillColor); } } else { currentStrokeColor = colorSelected; DOM.setStyleAttribute(stroke.getElement(), "backgroundColor",color); currentStrokeColor.setAlpha(strokeOpacity.getValue()); /** Mudar para grupos **/ if (curr_obj != null) { curr_obj.uSetStroke(currentStrokeColor, currentStrokeSize.getValue()); } } } }; colorChooser.addChangeListener(colorChange); if(isFill) { tabPanel.add(this.fillOpacity, new Label("Opacity")); } else { tabPanel.add(this.strokeOpacity, new Label("Opacity")); } tabPanel.selectTab(0); popupColor.add(tabPanel); popupColor.setPopupPosition(this.fill.getAbsoluteLeft(), this.stroke.getAbsoluteTop()); popupColor.show(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public ColorBox() {\r\n this.popup = new ColorPopup();\r\n setValue(\"#ffffff\");\r\n\r\n popup.addMessageHandler(m_color_event);\r\n addFocusHandler(new FocusHandler() {\r\n\r\n @Override\r\n public void onFocus(FocusEvent event) {\r\n popup.setHex(getText());\r\n popup.setAutoHideEnabled(true);\r\n popup.setPopupPosition(getAbsoluteLeft() + 10, getAbsoluteTop() + 10);\r\n popup.showRelativeTo(ColorBox.this);\r\n }\r\n });\r\n addKeyDownHandler(new KeyDownHandler() {\r\n\r\n @Override\r\n public void onKeyDown(KeyDownEvent event) {\r\n String color = getValue();\r\n if (color.length() > 1) {\r\n MessageEvent ev = new MessageEvent(MessageEvent.COLOR, color);\r\n fireEvent(ev);\r\n }\r\n }\r\n });\r\n\r\n }", "@SuppressWarnings(\"unused\")\n\tprivate void showJColorChooser() {\n\t\tColor[] colors = getValues();\n\t\tint i = getSelectedThumb();\n\t\tif (i >= 0 && i < colors.length) {\n\t\t\tcolors[i] = JColorChooser.showDialog(this, \"Choose a Color\",\n\t\t\t\t\tcolors[i]);\n\t\t\tif (colors[i] != null)\n\t\t\t\tsetValues(getThumbPositions(), colors);\n\t\t}\n\t}", "ColorSelectionDialog() {\n initComponents();\n }", "public ColorChooserPanel(ActionListener l) {\n lastRow = -1;\n \n JButton okButton = new JButton( Messages.message(\"ok\") );\n JButton cancelButton = new JButton( Messages.message(\"cancel\") );\n \n setLayout(new HIGLayout(new int[] {220, 10, 220}, new int[] {350, 10, 0}));\n \n add(colorChooser, higConst.rcwh(1, 1, 3, 1));\n add(okButton, higConst.rc(3, 1));\n add(cancelButton, higConst.rc(3, 3));\n \n okButton.setActionCommand(OK);\n cancelButton.setActionCommand(CANCEL);\n \n okButton.addActionListener(l);\n cancelButton.addActionListener(l);\n \n setOpaque(true);\n setSize(getPreferredSize());\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n colorChooser = new javax.swing.JColorChooser();\n aceptarBoton = new javax.swing.JButton();\n cancelarBoton = new javax.swing.JButton();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);\n\n colorChooser.setInheritsPopupMenu(true);\n\n aceptarBoton.setText(\"Aceptar\");\n aceptarBoton.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n aceptarBotonActionPerformed(evt);\n }\n });\n\n cancelarBoton.setText(\"Cancelar\");\n cancelarBoton.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n cancelarBotonActionPerformed(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 .addContainerGap()\n .addComponent(colorChooser, javax.swing.GroupLayout.DEFAULT_SIZE, 732, Short.MAX_VALUE)\n .addContainerGap())\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(aceptarBoton)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(cancelarBoton)\n .addGap(11, 11, 11))\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(colorChooser, javax.swing.GroupLayout.DEFAULT_SIZE, 348, Short.MAX_VALUE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(aceptarBoton)\n .addComponent(cancelarBoton))\n .addContainerGap())\n );\n\n pack();\n }", "public SelectColorDialog(JFrame parent) {\n\t\tsuper(parent, ModalityType.APPLICATION_MODAL);\n\t\tint size = 190;\n\t\tsetUndecorated(true);\n\t\tsetLocationRelativeTo(null);\n\t\tsetLocation(100, 100);\n\t\tsetIconImage(new ImageIcon(new ImageIcon(ViewSettings.class.getResource(\"/images/uno_logo.png\")).getImage()\n\t\t\t\t.getScaledInstance(40, 40, Image.SCALE_SMOOTH)).getImage());\n\t\tsetSize(size, size);\n\t\tDimension resoltion = Toolkit.getDefaultToolkit().getScreenSize();\n\t\tsetLocation((int) (resoltion.getWidth() / 2 - size / 2), (int) (resoltion.getHeight() / 2 - size / 2));\n\t\tViewSettings.setupPanel(contentPanel);\n\n\t\tcontentPanel.addMouseMotionListener(new MouseMotionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void mouseDragged(MouseEvent e) {\n\t\t\t\tint x = e.getXOnScreen();\n\t\t\t\tint y = e.getYOnScreen();\n\t\t\t\tSelectColorDialog.this.setLocation(x - xx, y - xy);\n\t\t\t}\n\t\t});\n\t\tcontentPanel.addMouseListener(new MouseAdapter() {\n\t\t\t@Override\n\t\t\tpublic void mousePressed(MouseEvent e) {\n\t\t\t\txx = e.getX();\n\t\t\t\txy = e.getY();\n\t\t\t}\n\t\t});\n\t\tint gap = 4;\n\t\tint boxSize = ((size - (gap * 2)) / 2) - 2;\n\t\tJButton red = ViewSettings.createButton(gap, gap, boxSize, boxSize, new Color(245, 100, 98), \"\");\n\t\tred.addActionListener(new ActionListener() {\n\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tcolor = \"red\";\n\t\t\t\tdispose();\n\t\t\t}\n\t\t});\n\t\tcontentPanel.add(red);\n\n\t\tJButton blue = ViewSettings.createButton(size / 2, gap, boxSize, boxSize, new Color(0, 195, 229), \"\");\n\t\tblue.addActionListener(new ActionListener() {\n\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tcolor = \"blue\";\n\t\t\t\tdispose();\n\t\t\t}\n\t\t});\n\t\tcontentPanel.add(blue);\n\n\t\tJButton green = ViewSettings.createButton(gap, size / 2, boxSize, boxSize, new Color(47, 226, 155), \"\");\n\t\tgreen.addActionListener(new ActionListener() {\n\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tcolor = \"green\";\n\t\t\t\tdispose();\n\t\t\t}\n\t\t});\n\t\tcontentPanel.add(green);\n\n\t\tJButton yellow = ViewSettings.createButton(size / 2, size / 2, boxSize, boxSize, new Color(247, 227, 89), \"\");\n\t\tyellow.addActionListener(new ActionListener() {\n\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tcolor = \"yellow\";\n\t\t\t\tdispose();\n\t\t\t}\n\t\t});\n\t\tcontentPanel.add(yellow);\n\n\t\tgetContentPane().add(contentPanel);\n\t\tsetVisible(true);\n\t\tsetDefaultCloseOperation(JDialog.DISPOSE_ON_CLOSE);\n\t}", "public ColorPanel() {\r\n setLayout(null);\r\n\r\n chooser = new ColorChooserComboBox[8];\r\n chooserLabel = new JLabel[8];\r\n String[][] text = new String[][] {\r\n {\"Hintergrund\", \"Background\"},\r\n {\"Kante I\", \"Edge I\"},\r\n {\"Kante II\", \"Edge II\"},\r\n {\"Gewicht\", \"Weight\"},\r\n {\"Kantenspitze\", \"Edge Arrow\"},\r\n {\"Rand der Knoten\", \"Node Borders\"},\r\n {\"Knoten\", \"Node Background\"},\r\n {\"Knoten Kennzeichnung\", \"Node Tag\"}};\r\n\r\n for (int i = 0; i < 8; i++) {\r\n createChooser(i, text[i], 10 + 30 * i);\r\n }\r\n\r\n add(createResetButton());\r\n add(createApplyButton());\r\n add(createReturnButton());\r\n\r\n setColorSelection();\r\n this.changeLanguageSettings(mainclass.getLanguageSettings());\r\n }", "private static void createAndShowGUI() {\n //Make sure we have nice window decorations.\n JFrame.setDefaultLookAndFeelDecorated(true);\n\n //Create and set up the window.\n JFrame frame = new JFrame(\"MRALD Color Chooser\");\n\n //Create and set up the content pane.\n JComponent newContentPane = new MraldColorChooser(coloringItems);\n newContentPane.setOpaque(true); //content panes must be opaque\n frame.setContentPane(newContentPane);\n\n //Display the window.\n frame.pack();\n frame.setVisible(true);\n }", "private void createPopupMenu()\r\n\t{\r\n\t\tfinal Camera camera = SrvHal.getCamera();\r\n\t\tfinal PopupMenu menu = new PopupMenu();\r\n\t\tfinal MenuItem setColour = new MenuItem(\"Set colour to selected bin\");\r\n\r\n\t\tsetColour.addActionListener(new ActionListener()\r\n\t\t{\r\n\t\t\t@Override\r\n\t\t\tpublic void actionPerformed(ActionEvent e)\r\n\t\t\t{\r\n\t\t\t\tcamera.getDetector().updateColourBinFromCoords();\r\n\t\t\t\tcamera.getDetector().setSampleLock(false);\r\n\t\t\t}\r\n\t\t});\r\n\t\tmenu.add(setColour);\r\n\r\n\t\tfinal Component canvas = this;\r\n\t\tadd(menu);\r\n\t\taddMouseListener(new MouseAdapter()\r\n\t\t{\r\n\t\t\t@Override\r\n\t\t\tpublic void mouseClicked(MouseEvent e)\r\n\t\t\t{\r\n\t\t\t\t// show the context menu when right-click detected within image bounds\r\n\t\t\t\tif (e.getButton() == MouseEvent.BUTTON3)\r\n\t\t\t\t{\r\n\t\t\t\t\tint x = e.getX();\r\n\t\t\t\t\tint y = e.getY();\r\n\t\t\t\t\tRectangle bounds = getOffsetBounds();\r\n\t\t\t\t\tif (bounds.contains(x, y))\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tcamera.getDetector().setSampleLock(true);\r\n\t\t\t\t\t\tmenu.show(canvas, x, y);\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}", "@Override\n public void onClick(View v) {\n\n cp.show();\n /* On Click listener for the dialog, when the user select the color */\n Button okColor = (Button) cp.findViewById(R.id.okColorButton);\n okColor.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n\n /* You can get single channel (value 0-255) */\n int red = cp.getRed();\n int blue = cp.getBlue();\n int green = cp.getGreen();\n /*\n if (color < 0)\n color = -color;*/\n lights.lightscolors.get(index).rgbhex = \"#\" + String.format(\"%02x\", red) + String.format(\"%02x\", green) + String.format(\"%02x\", blue);\n lights.lightscolors.get(index).color = \"rgb(\" + red + \",\" + green + \",\" + blue + \")\";\n Log.v(\"ColorPicker ambiance\", lights.lightscolors.get(index).color);\n int rgb = Color.parseColor(lights.lightscolors.get(index).rgbhex);\n if (!lights.lightscolors.get(index).on)\n rgb = 0;\n GradientDrawable gd = (GradientDrawable) circles.get(index).getDrawable();\n gd.setColor(rgb);\n gd.setStroke(1, Color.WHITE);\n cp.dismiss();\n }\n });\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n jDialog1 = new javax.swing.JDialog();\n jColorChooser1 = new javax.swing.JColorChooser();\n BotonAceptarColor = new javax.swing.JButton();\n BotonCancelarColor = new javax.swing.JButton();\n jDialog2 = new javax.swing.JDialog();\n SliderAncho = new javax.swing.JSlider();\n BotonOKAncho = new javax.swing.JButton();\n BotonCancelarAncho = new javax.swing.JButton();\n BotonAplicarAncho = new javax.swing.JButton();\n jTextField1 = new javax.swing.JTextField();\n jDialog3 = new javax.swing.JDialog();\n jFileChooser1 = new javax.swing.JFileChooser();\n jPanel1 = new javax.swing.JPanel();\n BotonColor = new javax.swing.JButton();\n BolorLapiz = new javax.swing.JButton();\n BotonCuadrado = new javax.swing.JButton();\n BotonGrosor = new javax.swing.JButton();\n BotonLinea = new javax.swing.JButton();\n BotonNuevo = new javax.swing.JButton();\n BotonCirculo = new javax.swing.JButton();\n estado = new javax.swing.JComboBox();\n jSeparator1 = new javax.swing.JSeparator();\n BotonGoma = new javax.swing.JButton();\n BotonGuardar = new javax.swing.JButton();\n jSeparator2 = new javax.swing.JSeparator();\n jButton1 = new javax.swing.JButton();\n\n jDialog1.setResizable(false);\n jDialog1.setType(java.awt.Window.Type.UTILITY);\n\n BotonAceptarColor.setText(\"Aceptar\");\n BotonAceptarColor.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mousePressed(java.awt.event.MouseEvent evt) {\n BotonAceptarColorMousePressed(evt);\n }\n });\n\n BotonCancelarColor.setText(\"Cancelar\");\n BotonCancelarColor.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mousePressed(java.awt.event.MouseEvent evt) {\n BotonCancelarColorMousePressed(evt);\n }\n });\n\n javax.swing.GroupLayout jDialog1Layout = new javax.swing.GroupLayout(jDialog1.getContentPane());\n jDialog1.getContentPane().setLayout(jDialog1Layout);\n jDialog1Layout.setHorizontalGroup(\n jDialog1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jDialog1Layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(jDialog1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jColorChooser1, javax.swing.GroupLayout.PREFERRED_SIZE, 585, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGroup(jDialog1Layout.createSequentialGroup()\n .addGap(9, 9, 9)\n .addComponent(BotonAceptarColor)\n .addGap(18, 18, 18)\n .addComponent(BotonCancelarColor)))\n .addContainerGap(45, Short.MAX_VALUE))\n );\n jDialog1Layout.setVerticalGroup(\n jDialog1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jDialog1Layout.createSequentialGroup()\n .addComponent(jColorChooser1, javax.swing.GroupLayout.PREFERRED_SIZE, 421, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(jDialog1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(BotonCancelarColor)\n .addComponent(BotonAceptarColor)))\n );\n\n jDialog2.setTitle(\"tipo\");\n jDialog2.setMinimumSize(new java.awt.Dimension(510, 220));\n jDialog2.setResizable(false);\n\n SliderAncho.setMajorTickSpacing(5);\n SliderAncho.setMaximum(50);\n SliderAncho.setMinorTickSpacing(1);\n SliderAncho.setPaintLabels(true);\n SliderAncho.setPaintTicks(true);\n SliderAncho.setSnapToTicks(true);\n SliderAncho.setValue(5);\n\n BotonOKAncho.setText(\"ok\");\n BotonOKAncho.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mousePressed(java.awt.event.MouseEvent evt) {\n BotonOKAnchoMousePressed(evt);\n }\n });\n\n BotonCancelarAncho.setText(\"Cancelar\");\n BotonCancelarAncho.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mousePressed(java.awt.event.MouseEvent evt) {\n BotonCancelarAnchoMousePressed(evt);\n }\n });\n\n BotonAplicarAncho.setText(\"Aplicar\");\n BotonAplicarAncho.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mousePressed(java.awt.event.MouseEvent evt) {\n BotonAplicarAnchoMousePressed(evt);\n }\n });\n\n jTextField1.setHorizontalAlignment(javax.swing.JTextField.RIGHT);\n jTextField1.setName(\"\"); // NOI18N\n\n javax.swing.GroupLayout jDialog2Layout = new javax.swing.GroupLayout(jDialog2.getContentPane());\n jDialog2.getContentPane().setLayout(jDialog2Layout);\n jDialog2Layout.setHorizontalGroup(\n jDialog2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(SliderAncho, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, 510, Short.MAX_VALUE)\n .addGroup(jDialog2Layout.createSequentialGroup()\n .addGroup(jDialog2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jDialog2Layout.createSequentialGroup()\n .addGap(22, 22, 22)\n .addComponent(BotonAplicarAncho, javax.swing.GroupLayout.PREFERRED_SIZE, 72, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(BotonCancelarAncho))\n .addGroup(jDialog2Layout.createSequentialGroup()\n .addGap(23, 23, 23)\n .addComponent(jTextField1, javax.swing.GroupLayout.PREFERRED_SIZE, 57, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(BotonOKAncho)))\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n );\n jDialog2Layout.setVerticalGroup(\n jDialog2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jDialog2Layout.createSequentialGroup()\n .addGap(14, 14, 14)\n .addComponent(SliderAncho, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(jDialog2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(BotonOKAncho)\n .addComponent(jTextField1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(11, 11, 11)\n .addGroup(jDialog2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(BotonCancelarAncho)\n .addComponent(BotonAplicarAncho))\n .addContainerGap())\n );\n\n javax.swing.GroupLayout jDialog3Layout = new javax.swing.GroupLayout(jDialog3.getContentPane());\n jDialog3.getContentPane().setLayout(jDialog3Layout);\n jDialog3Layout.setHorizontalGroup(\n jDialog3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jDialog3Layout.createSequentialGroup()\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jFileChooser1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addContainerGap())\n );\n jDialog3Layout.setVerticalGroup(\n jDialog3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jDialog3Layout.createSequentialGroup()\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jFileChooser1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addContainerGap())\n );\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n setBackground(new java.awt.Color(204, 204, 255));\n setResizable(false);\n getContentPane().setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());\n\n jPanel1.setBackground(new java.awt.Color(255, 255, 255));\n jPanel1.setBorder(new javax.swing.border.MatteBorder(null));\n jPanel1.setPreferredSize(new java.awt.Dimension(778, 400));\n jPanel1.addMouseMotionListener(new java.awt.event.MouseMotionAdapter() {\n public void mouseDragged(java.awt.event.MouseEvent evt) {\n jPanel1MouseDragged(evt);\n }\n });\n jPanel1.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseEntered(java.awt.event.MouseEvent evt) {\n jPanel1MouseEntered(evt);\n }\n public void mouseExited(java.awt.event.MouseEvent evt) {\n jPanel1MouseExited(evt);\n }\n public void mousePressed(java.awt.event.MouseEvent evt) {\n jPanel1MousePressed(evt);\n }\n public void mouseReleased(java.awt.event.MouseEvent evt) {\n jPanel1MouseReleased(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 .addGap(0, 768, Short.MAX_VALUE)\n );\n jPanel1Layout.setVerticalGroup(\n jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 658, Short.MAX_VALUE)\n );\n\n getContentPane().add(jPanel1, new org.netbeans.lib.awtextra.AbsoluteConstraints(105, 3, 770, 660));\n\n BotonColor.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/rsz_1rsz_1423068917_color.png\"))); // NOI18N\n BotonColor.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mousePressed(java.awt.event.MouseEvent evt) {\n BotonColorMousePressed(evt);\n }\n });\n getContentPane().add(BotonColor, new org.netbeans.lib.awtextra.AbsoluteConstraints(55, 180, 40, 40));\n\n BolorLapiz.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/1423070099_editor_pencil_pen_edit_write-32.png\"))); // NOI18N\n BolorLapiz.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mousePressed(java.awt.event.MouseEvent evt) {\n BolorLapizMousePressed(evt);\n }\n });\n getContentPane().add(BolorLapiz, new org.netbeans.lib.awtextra.AbsoluteConstraints(5, 180, 40, 40));\n\n BotonCuadrado.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/1423068527_ic_crop_square_48px-32.png\"))); // NOI18N\n BotonCuadrado.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mousePressed(java.awt.event.MouseEvent evt) {\n BotonCuadradoMousePressed(evt);\n }\n });\n getContentPane().add(BotonCuadrado, new org.netbeans.lib.awtextra.AbsoluteConstraints(55, 80, 40, 40));\n\n BotonGrosor.setFont(new java.awt.Font(\"Trebuchet MS\", 1, 14)); // NOI18N\n BotonGrosor.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/1423069442_line_width.png\"))); // NOI18N\n BotonGrosor.setText(\"Grosor\");\n BotonGrosor.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);\n BotonGrosor.setMaximumSize(new java.awt.Dimension(97, 73));\n BotonGrosor.setMinimumSize(new java.awt.Dimension(97, 73));\n BotonGrosor.setPreferredSize(new java.awt.Dimension(97, 73));\n BotonGrosor.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);\n BotonGrosor.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mousePressed(java.awt.event.MouseEvent evt) {\n BotonGrosorMousePressed(evt);\n }\n });\n getContentPane().add(BotonGrosor, new org.netbeans.lib.awtextra.AbsoluteConstraints(5, 230, 90, 80));\n\n BotonLinea.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/1423069711_line.png\"))); // NOI18N\n BotonLinea.setMaximumSize(new java.awt.Dimension(65, 41));\n BotonLinea.setMinimumSize(new java.awt.Dimension(65, 41));\n BotonLinea.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mousePressed(java.awt.event.MouseEvent evt) {\n BotonLineaMousePressed(evt);\n }\n });\n getContentPane().add(BotonLinea, new org.netbeans.lib.awtextra.AbsoluteConstraints(5, 130, 40, 40));\n\n BotonNuevo.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/1423489881_new10-32.png\"))); // NOI18N\n BotonNuevo.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mousePressed(java.awt.event.MouseEvent evt) {\n BotonNuevoMousePressed(evt);\n }\n });\n getContentPane().add(BotonNuevo, new org.netbeans.lib.awtextra.AbsoluteConstraints(55, 370, 40, 40));\n\n BotonCirculo.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/1423068469_check-circle-outline-blank-24.png\"))); // NOI18N\n BotonCirculo.setMaximumSize(new java.awt.Dimension(65, 41));\n BotonCirculo.setMinimumSize(new java.awt.Dimension(65, 41));\n BotonCirculo.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mousePressed(java.awt.event.MouseEvent evt) {\n BotonCirculoMousePressed(evt);\n }\n });\n getContentPane().add(BotonCirculo, new org.netbeans.lib.awtextra.AbsoluteConstraints(5, 80, 40, 40));\n\n estado.setFont(new java.awt.Font(\"Trebuchet MS\", 1, 14)); // NOI18N\n estado.setModel(new javax.swing.DefaultComboBoxModel(new String[] { \"Liso\", \"Punteada\", \"Rayada\", \"Mixta\" }));\n getContentPane().add(estado, new org.netbeans.lib.awtextra.AbsoluteConstraints(5, 320, 90, 30));\n getContentPane().add(jSeparator1, new org.netbeans.lib.awtextra.AbsoluteConstraints(3, 360, 100, 10));\n\n BotonGoma.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/1423069882_eraser.png\"))); // NOI18N\n BotonGoma.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mousePressed(java.awt.event.MouseEvent evt) {\n BotonGomaMousePressed(evt);\n }\n });\n getContentPane().add(BotonGoma, new org.netbeans.lib.awtextra.AbsoluteConstraints(55, 130, 40, 40));\n\n BotonGuardar.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/1423489857_save.png\"))); // NOI18N\n BotonGuardar.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mousePressed(java.awt.event.MouseEvent evt) {\n BotonGuardarMousePressed(evt);\n }\n });\n getContentPane().add(BotonGuardar, new org.netbeans.lib.awtextra.AbsoluteConstraints(5, 370, 40, 40));\n getContentPane().add(jSeparator2, new org.netbeans.lib.awtextra.AbsoluteConstraints(0, 225, 100, 10));\n\n jButton1.setFont(new java.awt.Font(\"Trebuchet MS\", 1, 14)); // NOI18N\n jButton1.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/1423068527_ic_crop_square_48px-32.png\"))); // NOI18N\n jButton1.setText(\"Rellenar\");\n jButton1.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);\n jButton1.setVerticalAlignment(javax.swing.SwingConstants.TOP);\n jButton1.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);\n jButton1.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mousePressed(java.awt.event.MouseEvent evt) {\n jButton1MousePressed(evt);\n }\n });\n getContentPane().add(jButton1, new org.netbeans.lib.awtextra.AbsoluteConstraints(5, 10, 90, 65));\n\n pack();\n }", "public ColorPicker(Color color, Frame parent, boolean modal) {\r\n super(parent, \"Color chooser\", modal);\r\n\r\n setLayout(new GridBagLayout());\r\n createDialogComponents(color);\r\n\r\n setColor(color);\r\n colorCanvas.setColor(color);\r\n }", "private void initComponents() {\n // Create the RGB and the HSB radio buttons.\n createRgbHsbButtons();\n\n \n \n ColorData initial = new ColorData(new RGB(255, 255, 255), 255);\n\n // Create the upper color wheel for the display.\n upperColorWheel = new ColorWheelComp(shell, this, upperWheelTitle);\n // upperColorWheel.setColor(colorArray.get(0));\n upperColorWheel.setColor(initial);\n\n // Create the color bar object that is displayed\n // in the middle of the dialog.\n colorBar = new ColorBarViewer(shell, this, sliderText, cmapParams);\n\n // Create the lower color wheel for the display.\n lowerColorWheel = new ColorWheelComp(shell, this, lowerWheelTitle);\n // lowerColorWheel.setColor(colorArray.get(colorArray.size() - 1));\n lowerColorWheel.setColor(initial);\n\n // Create the bottom control buttons.\n createBottomButtons();\n }", "public void actionPerformed(ActionEvent e) {\r\n\t\t\t\tpopup.show(mainpanel , 660, 40);\r\n\t\t\t}", "public void createPopupWindow() {\r\n \t//\r\n }", "private void jBtnFarbwahlActionPerformed(ActionEvent evt) {\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\t\t\t\t\t\t\t\t// klassen-methode showDialog (..) von JColorCooser, aufruf über den Klassennamen, ohne erzeugte instanz der klasse..\n\t\tfarbe = JColorChooser.showDialog(null, \"Wähle neue zeichenfarbe\", Color.black);\t\t\t\t\t\t\t\t\t\t\t\t\t\t// .. mit parameter: eltern-komponente oder null, titel-text für dialogfenster, anfangsfarbe \n\t\tjColorPanel.setBackground(farbe);\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// vom zusätzlichen kleinen farbauswahl-panel wird die intergrundfarbe auf die aktuelle zeichenfarbe gesetzt + diese so im frame angezeigt\t\t\t\t\t\t\n\t}", "void createDialogComponents(Color color) {\r\n GridBagConstraints constr = new GridBagConstraints();\r\n constr.gridwidth = 1;\r\n constr.gridheight = 4;\r\n constr.insets = new Insets(0, 0, 0, 10);\r\n constr.fill = GridBagConstraints.NONE;\r\n constr.anchor = GridBagConstraints.CENTER;\r\n\r\n constr.gridx = 0;\r\n constr.gridy = 0;\r\n\r\n // Create color wheel canvas\r\n colorCanvas = new ColorCanvas(50, color);\r\n add(colorCanvas, constr);\r\n\r\n // Create input boxes to enter values\r\n Font font = new Font(\"DialogInput\", Font.PLAIN, 10);\r\n redInput = new TextField(3);\r\n redInput.addFocusListener(this);\r\n redInput.setFont(font);\r\n greenInput = new TextField(3);\r\n greenInput.addFocusListener(this);\r\n greenInput.setFont(font);\r\n blueInput = new TextField(3);\r\n blueInput.addFocusListener(this);\r\n blueInput.setFont(font);\r\n\r\n // Add the input boxes and labels to the component\r\n Label label;\r\n constr.gridheight = 1;\r\n constr.fill = GridBagConstraints.HORIZONTAL;\r\n constr.anchor = GridBagConstraints.SOUTH;\r\n constr.insets = new Insets(0, 0, 0, 0);\r\n constr.gridx = 1;\r\n constr.gridy = 0;\r\n label = new Label(\"Red:\", Label.RIGHT);\r\n add(label, constr);\r\n constr.gridy = 1;\r\n constr.anchor = GridBagConstraints.CENTER;\r\n label = new Label(\"Green:\", Label.RIGHT);\r\n add(label, constr);\r\n constr.gridy = 2;\r\n constr.anchor = GridBagConstraints.NORTH;\r\n label = new Label(\"Blue:\", Label.RIGHT);\r\n add(label, constr);\r\n\r\n constr.gridheight = 1;\r\n constr.fill = GridBagConstraints.NONE;\r\n constr.anchor = GridBagConstraints.SOUTHWEST;\r\n constr.insets = new Insets(0, 0, 0, 10);\r\n constr.gridx = 2;\r\n constr.gridy = 0;\r\n add(redInput, constr);\r\n constr.gridy = 1;\r\n constr.anchor = GridBagConstraints.WEST;\r\n add(greenInput, constr);\r\n constr.gridy = 2;\r\n constr.anchor = GridBagConstraints.NORTHWEST;\r\n add(blueInput, constr);\r\n\r\n // Add color swatches\r\n Panel panel = new Panel();\r\n panel.setLayout(new GridLayout(1, 2, 4, 4));\r\n oldSwatch = new ColorSwatch(false);\r\n oldSwatch.setForeground(color);\r\n panel.add(oldSwatch);\r\n newSwatch = new ColorSwatch(false);\r\n newSwatch.setForeground(color);\r\n panel.add(newSwatch);\r\n\r\n constr.fill = GridBagConstraints.HORIZONTAL;\r\n constr.anchor = GridBagConstraints.CENTER;\r\n constr.gridx = 1;\r\n constr.gridy = 3;\r\n constr.gridwidth = 2;\r\n add(panel, constr);\r\n\r\n // Add buttons\r\n panel = new Panel();\r\n panel.setLayout(new GridLayout(1, 2, 10, 2));\r\n Font buttonFont = new Font(\"SansSerif\", Font.BOLD, 12);\r\n okButton = new Button(\"Ok\");\r\n okButton.setFont(buttonFont);\r\n okButton.addActionListener(this);\r\n cancelButton = new Button(\"Cancel\");\r\n cancelButton.addActionListener(this);\r\n cancelButton.setFont(buttonFont);\r\n panel.add(okButton);\r\n panel.add(cancelButton);\r\n\r\n constr.fill = GridBagConstraints.NONE;\r\n constr.anchor = GridBagConstraints.CENTER;\r\n constr.gridx = 0;\r\n constr.gridy = 4;\r\n constr.gridwidth = 3;\r\n add(panel, constr);\r\n }", "public ColorPicker(Frame parent, boolean modal) {\r\n this(Color.white, parent, modal);\r\n }", "private void colorPickerHander() {\n\t\tboolean validvalues = true;\n\t\tHBox n0000 = (HBox) uicontrols.getChildren().get(5);\n\t\tTextField t0000 = (TextField) n0000.getChildren().get(1);\n\t\tLabel l0000 = (Label) n0000.getChildren().get(3);\n\t\tString txt = t0000.getText();\n\t\tString[] nums = txt.split(\",\");\n\t\tif (nums.length != 4) {\n\t\t\tvalidvalues = false;\n\t\t\tGUIerrorout = new Alert(AlertType.ERROR, \"Invalid Color Format!\\nFormat: <0-255>,<0-255>,<0-255>,<0-1> \\n (red),(green),(blue),(alpha)\");\n\t\t\tGUIerrorout.showAndWait();\n\t\t}\n\t\tif (validvalues) {\n\t\t\tint[] colorvalues = new int[3];\n\t\t\tdouble alphavalue = 1.0;\n\t\t\ttry {\n\t\t\t\tfor(int x = 0; x < 3; x++) {\n\t\t\t\t\tcolorvalues[x] = Integer.parseInt(nums[x]);\n\t\t\t\t}\n\t\t\t\talphavalue = Double.parseDouble(nums[3]);\n\t\t\t} catch(Exception e) {\n\t\t\t\tvalidvalues = false;\n\t\t\t\tGUIerrorout = new Alert(AlertType.ERROR, \"Invalid Color Format!\\nFormat: <0-255>,<0-255>,<0-255>,<0-1> \\n (red),(green),(blue),(alpha)\");\n\t\t\t\tGUIerrorout.showAndWait();\n\t\t\t}\n\t\t\tif (alphavalue <= 1.0 && alphavalue >= 0.0 && colorvalues[0] >= 0 && colorvalues[0] < 256 && colorvalues[1] >= 0 && colorvalues[1] < 256 && colorvalues[2] >= 0 && colorvalues[2] < 256){\n\t\t\t\tif (validvalues) {\n\t\t\t\t\tl0000.setTextFill(Color.rgb(colorvalues[0],colorvalues[1],colorvalues[2],alphavalue));\n\t\t\t\t\tusercolors[colorSetterId] = Color.rgb(colorvalues[0],colorvalues[1],colorvalues[2],alphavalue);\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tGUIerrorout = new Alert(AlertType.ERROR, \"Invalid Color Format!\\nFormat: <0-255>,<0-255>,<0-255>,<0-1> \\n (red),(green),(blue),(alpha)\");\n\t\t\t\tGUIerrorout.showAndWait();\n\t\t\t}\n\t\t}\n\t}", "private void constructPopup() {\n popupPanel = new JPanel();\n popupPanel.setLayout(new BoxLayout(popupPanel, BoxLayout.Y_AXIS));\n popupScrollPane = new JScrollPane(popupPanel);\n popupScrollPane.setMaximumSize(new Dimension(200, 300));\n\n shapeName = new JTextField(15);\n time = new JTextField(5);\n shapeTypes = new ArrayList<>();\n shapeTimes = new ArrayList<>();\n shapeNames = new ArrayList<>();\n\n x = new JTextField(5);\n y = new JTextField(5);\n width = new JTextField(5);\n height = new JTextField(5);\n r = new JTextField(3);\n g = new JTextField(3);\n b = new JTextField(3);\n\n }", "private void setUpDialoguebox() {\n\t\tinput = new CTS_GUI_Dialoguebox();\n\t\tinput.setTitle(\"Settings\");\n\t\tBorderPane pane = new BorderPane();\n\t\tLocalTime t = LocalTime.now();\n\t\tLocalDate d = LocalDate.now();\n\t\tuicontrols = new VBox(10);\n\t\tHBox box0 = new HBox(5);\n\t\tbox0.getChildren().addAll(new Label(\"Latitude: \"),new TextField(\"0\"));\n\t\tHBox box1 = new HBox(5);\n\t\tbox1.getChildren().addAll(new Label(\"Longitude: \"),new TextField(\"0\"));\n\t\tHBox box2 = new HBox(5);\n\t\tbox2.getChildren().addAll(new Label(\"Date: \"),new TextField(d.toString()));\n\t\tTextField time = new TextField(t.getHour() + \":\" + t.getMinute() + \":\" + (int) floor(t.getSecond()));\n\t\tHBox box3 = new HBox(5);\n\t\tbox3.getChildren().addAll(new Label(\"Time: \"),time);\n\t\t// Check boxes\n\t\tHBox box5 = new HBox(5);\n\t\tCheckBox c1 = new CheckBox(\"Plot Stars\");\n\t\tc1.setSelected(true);\n\t\tCheckBox c2 = new CheckBox(\"Plot DSOs\");\n\t\tc2.setSelected(true);\n\t\tCheckBox c3 = new CheckBox(\"Plot Constellations\");\n\t\tc3.setSelected(true);\n\t\tCheckBox c4 = new CheckBox(\"Plot Planets\");\n\t\tc4.setSelected(true);\n\t\tbox5.getChildren().addAll(c1,c2,c3,c4);\n\t\t// Color Picker\n\t\t// 0 = Star color, 1 = Low mag star, 2 = Very low mag star.\n\t\t// 3 = DSO, 4 = Sky background, 5 = Circle around sky background\n\t\t// 6 = Overall background, 7 = Lat/long txt color, 8 = Constellation line color.\n\t\tHBox box6 = new HBox(5);\n\t\tTextField colorSet = new TextField(\"255,255,255,1\");\n\t\tButton setcolorbutton = new Button(\"Submit Color\");\n\t\tbox6.getChildren().addAll(new Label(\"Color to Set: \"),colorSet,setcolorbutton,new Label(\"[PREVIEW COLOR]\"));\n\t\tsetcolorbutton.setOnAction((event) -> { colorPickerHander(); });\n MenuBar mainmenu = new MenuBar();\n Menu colorpickermenu = new Menu(\"Set Custom Colors\");\n String[] colorstrs = {\"Star Color\",\"Low Magnituide Star Color\",\"Very Low Magnituide Star Color\", \"Deep Space Object Color\",\"Sky Background Color\",\n \t\t\"Circle Around Sky Background Color\",\"Overall Background Color\", \"Latitude/Longitude Text Color\",\"Constellation Line Color\"};\n for(int x = 0; x < colorstrs.length; x++) {\n \tMenuItem opt = new MenuItem(colorstrs[x]);\n \tint id = x;\n \topt.setOnAction((event) -> { colorSetterId = id; });\n \tcolorpickermenu.getItems().add(opt);\n }\n \n ComboBox<String> consts = new ComboBox<>();\n HashMap<String, String> cdbs = controller.getModelConstellationDBs();\n\n for (String name : cdbs.keySet()) {\n consts.getItems().add(name);\n }\n HBox box7 = new HBox(5);\n box7.getChildren().addAll(new Label(\"Select Constellation Set\"), consts);\n \n consts.getSelectionModel().select(\"Western\");\n mainmenu.getMenus().addAll(colorpickermenu);\n\t\tHBox box4 = new HBox(5);\n\t\tButton but = new Button(\"Cancel\");\n\t\tbut.setPadding(new Insets(5));\n\t\tButton but2 = new Button(\"Submit\");\n\t\tbut2.setPadding(new Insets(5));\n\t\tbox4.getChildren().addAll(but,but2);\n\t\tuicontrols.getChildren().addAll(box0,box1,box2,box3,box5,box6,box7,box4);\n\t\tbut.setOnAction((event) -> { input.close(); });\n\t\tbut2.setOnAction((event) -> {\n\t\t\tuserSelectedConstellationFileName = cdbs.get(consts.getValue());\n\t\t\tlong i = validateInput();\n\t\t\tif (i == 0) {\n\t\t\t\tchartTheStars();\n\t\t\t\tinput.close();\n\t\t\t} else {\n\t\t\t\tGUIerrorout = new Alert(AlertType.ERROR, getGUIErrorMsg(i));\n\t\t\t\tGUIerrorout.showAndWait();\n\t\t\t}\n });\n\t\tpane.setTop(mainmenu);\n\t\tpane.setCenter(uicontrols);\n\t\tpane.setPadding(new Insets(10));\n\t\tScene scene = new Scene(pane, 520, 310);\n\t\tinput.setScene(scene);\n\t}", "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}", "public void createEditEmployeePopup() {\n createPopupResources();\n getCancelButton().setOnAction((event -> popupStage.close()));\n setupPopupLayout();\n mainBox.setPrefSize(PREFERRED_POPUP_WIDTH, PREFERRED_POPUP_HEIGHT);\n popupStage.setScene(scene);\n popupStage.initModality(Modality.APPLICATION_MODAL);\n popupStage.show();\n }", "@Test @IdeGuiTest\n public void testColorPickerAlpha() throws IOException {\n myProjectFrame = importSimpleApplication();\n ThemeEditorFixture themeEditor = ThemeEditorTestUtils.openThemeEditor(myProjectFrame);\n ThemeEditorTableFixture themeEditorTable = themeEditor.getPropertiesTable();\n\n TableCell cell = row(1).column(0);\n\n JTableCellFixture colorCell = themeEditorTable.cell(cell);\n ResourceComponentFixture resourceComponent = new ResourceComponentFixture(myRobot, (ResourceComponent)colorCell.editor());\n colorCell.startEditing();\n resourceComponent.getSwatchButton().click();\n\n ChooseResourceDialogFixture dialog = ChooseResourceDialogFixture.find(myRobot);\n ColorPickerFixture colorPicker = dialog.getColorPicker();\n Color color = new Color(200, 0, 0, 200);\n colorPicker.setFormat(\"ARGB\");\n colorPicker.setColorWithIntegers(color);\n JTextComponentFixture alphaLabel = colorPicker.getLabel(\"A:\");\n SlideFixture alphaSlide = colorPicker.getAlphaSlide();\n alphaLabel.requireVisible();\n alphaSlide.requireVisible();\n colorPicker.setFormat(\"RGB\");\n alphaLabel.requireNotVisible();\n alphaSlide.requireNotVisible();\n colorPicker.setFormat(\"HSB\");\n alphaLabel.requireNotVisible();\n alphaSlide.requireNotVisible();\n\n dialog.clickOK();\n colorCell.stopEditing();\n }", "protected Popup() {}", "@Override\n public void installUI ( @NotNull final JComponent c )\n {\n chooser = ( JColorChooser ) c;\n\n // Applying skin\n StyleManager.installSkin ( chooser );\n\n selectionModel = chooser.getSelectionModel ();\n\n chooser.setLayout ( new BorderLayout () );\n\n colorChooserPanel = new WebColorChooserPanel ( StyleId.colorchooserContent.at ( chooser ), false );\n colorChooserPanel.setColor ( selectionModel.getSelectedColor () );\n colorChooserPanel.addChangeListener ( new ChangeListener ()\n {\n @Override\n public void stateChanged ( final ChangeEvent e )\n {\n if ( !modifying )\n {\n modifying = true;\n selectionModel.setSelectedColor ( colorChooserPanel.getColor () );\n modifying = false;\n }\n }\n } );\n chooser.add ( colorChooserPanel, BorderLayout.CENTER );\n\n modelChangeListener = new ChangeListener ()\n {\n @Override\n public void stateChanged ( final ChangeEvent e )\n {\n if ( !modifying )\n {\n modifying = true;\n colorChooserPanel.setColor ( selectionModel.getSelectedColor () );\n modifying = false;\n }\n }\n };\n selectionModel.addChangeListener ( modelChangeListener );\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 jLabel5 = new javax.swing.JLabel();\n paletteCombo = new javax.swing.JComboBox();\n addressField = new javax.swing.JTextField();\n jLabel6 = new javax.swing.JLabel();\n colorsPanel = new javax.swing.JPanel();\n colorPanel1 = new javax.swing.JPanel();\n colorPanel2 = new javax.swing.JPanel();\n colorPanel3 = new javax.swing.JPanel();\n colorPanel4 = new javax.swing.JPanel();\n colorPanel5 = new javax.swing.JPanel();\n colorPanel6 = new javax.swing.JPanel();\n colorPanel7 = new javax.swing.JPanel();\n colorPanel8 = new javax.swing.JPanel();\n colorPanel9 = new javax.swing.JPanel();\n colorPanel10 = new javax.swing.JPanel();\n colorPanel11 = new javax.swing.JPanel();\n colorPanel12 = new javax.swing.JPanel();\n colorPanel13 = new javax.swing.JPanel();\n colorPanel14 = new javax.swing.JPanel();\n colorPanel15 = new javax.swing.JPanel();\n colorPanel16 = new javax.swing.JPanel();\n colorChooser = new javax.swing.JColorChooser();\n jPanel2 = new javax.swing.JPanel();\n jLabel2 = new javax.swing.JLabel();\n rgbField = new javax.swing.JTextField();\n jLabel4 = new javax.swing.JLabel();\n gensField = new javax.swing.JTextField();\n scrollPane = new javax.swing.JScrollPane(imagePanel);\n jMenuBar1 = new javax.swing.JMenuBar();\n jMenu1 = new javax.swing.JMenu();\n openRomMenu = new javax.swing.JMenuItem();\n jMenuItem4 = new javax.swing.JMenuItem();\n jMenuItem5 = new javax.swing.JMenuItem();\n jSeparator4 = new javax.swing.JPopupMenu.Separator();\n openGuideMenu = new javax.swing.JMenuItem();\n jSeparator1 = new javax.swing.JPopupMenu.Separator();\n exitMenu = new javax.swing.JMenuItem();\n jMenu2 = new javax.swing.JMenu();\n copyPalMenu = new javax.swing.JMenuItem();\n copyColorMenu = new javax.swing.JMenuItem();\n pasteColorMenu = new javax.swing.JMenuItem();\n jSeparator3 = new javax.swing.JPopupMenu.Separator();\n jMenuItem1 = new javax.swing.JMenuItem();\n findMenu = new javax.swing.JMenuItem();\n jMenu3 = new javax.swing.JMenu();\n jMenuItem2 = new javax.swing.JMenuItem();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.DO_NOTHING_ON_CLOSE);\n setTitle(\"Palettes of Rage\");\n setCursor(new java.awt.Cursor(java.awt.Cursor.DEFAULT_CURSOR));\n setLocationByPlatform(true);\n setName(\"guiFrame\");\n addMouseWheelListener(new java.awt.event.MouseWheelListener() {\n public void mouseWheelMoved(java.awt.event.MouseWheelEvent evt) {\n formMouseWheelMoved(evt);\n }\n });\n addWindowListener(new java.awt.event.WindowAdapter() {\n public void windowClosing(java.awt.event.WindowEvent evt) {\n formWindowClosing(evt);\n }\n });\n\n jLabel5.setFont(new java.awt.Font(\"Tahoma\", 0, 14)); // NOI18N\n jLabel5.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT);\n jLabel5.setText(\"Palette:\");\n\n paletteCombo.setFont(new java.awt.Font(\"Tahoma\", 0, 14)); // NOI18N\n paletteCombo.setMaximumRowCount(16);\n paletteCombo.setModel(new javax.swing.DefaultComboBoxModel(new String[] { \"Custom\" }));\n paletteCombo.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n paletteComboActionPerformed(evt);\n }\n });\n paletteCombo.addKeyListener(new java.awt.event.KeyAdapter() {\n public void keyPressed(java.awt.event.KeyEvent evt) {\n paletteComboKeyPressed(evt);\n }\n });\n\n addressField.setFont(new java.awt.Font(\"Courier New\", 0, 14)); // NOI18N\n addressField.setHorizontalAlignment(javax.swing.JTextField.RIGHT);\n addressField.setText(\"200\");\n\n jLabel6.setFont(new java.awt.Font(\"Tahoma\", 0, 14)); // NOI18N\n jLabel6.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT);\n jLabel6.setText(\"Address:\");\n\n colorsPanel.setPreferredSize(new java.awt.Dimension(256, 64));\n\n colorPanel1.setBackground(new java.awt.Color(255, 255, 255));\n colorPanel1.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0), 3));\n colorPanel1.setCursor(new java.awt.Cursor(java.awt.Cursor.DEFAULT_CURSOR));\n colorPanel1.setPreferredSize(new java.awt.Dimension(32, 32));\n colorPanel1.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mousePressed(java.awt.event.MouseEvent evt) {\n colorPanel1MousePressed(evt);\n }\n });\n\n javax.swing.GroupLayout colorPanel1Layout = new javax.swing.GroupLayout(colorPanel1);\n colorPanel1.setLayout(colorPanel1Layout);\n colorPanel1Layout.setHorizontalGroup(\n colorPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 26, Short.MAX_VALUE)\n );\n colorPanel1Layout.setVerticalGroup(\n colorPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 26, Short.MAX_VALUE)\n );\n\n colorPanel2.setBackground(new java.awt.Color(255, 255, 255));\n colorPanel2.setCursor(new java.awt.Cursor(java.awt.Cursor.DEFAULT_CURSOR));\n colorPanel2.setMinimumSize(new java.awt.Dimension(16, 16));\n colorPanel2.setPreferredSize(new java.awt.Dimension(32, 32));\n colorPanel2.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mousePressed(java.awt.event.MouseEvent evt) {\n colorPanel2MousePressed(evt);\n }\n });\n\n javax.swing.GroupLayout colorPanel2Layout = new javax.swing.GroupLayout(colorPanel2);\n colorPanel2.setLayout(colorPanel2Layout);\n colorPanel2Layout.setHorizontalGroup(\n colorPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 32, Short.MAX_VALUE)\n );\n colorPanel2Layout.setVerticalGroup(\n colorPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 32, Short.MAX_VALUE)\n );\n\n colorPanel3.setBackground(new java.awt.Color(255, 255, 255));\n colorPanel3.setCursor(new java.awt.Cursor(java.awt.Cursor.DEFAULT_CURSOR));\n colorPanel3.setMinimumSize(new java.awt.Dimension(16, 16));\n colorPanel3.setPreferredSize(new java.awt.Dimension(32, 32));\n colorPanel3.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mousePressed(java.awt.event.MouseEvent evt) {\n colorPanel3MousePressed(evt);\n }\n });\n\n javax.swing.GroupLayout colorPanel3Layout = new javax.swing.GroupLayout(colorPanel3);\n colorPanel3.setLayout(colorPanel3Layout);\n colorPanel3Layout.setHorizontalGroup(\n colorPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 32, Short.MAX_VALUE)\n );\n colorPanel3Layout.setVerticalGroup(\n colorPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 32, Short.MAX_VALUE)\n );\n\n colorPanel4.setBackground(new java.awt.Color(255, 255, 255));\n colorPanel4.setCursor(new java.awt.Cursor(java.awt.Cursor.DEFAULT_CURSOR));\n colorPanel4.setMinimumSize(new java.awt.Dimension(16, 16));\n colorPanel4.setPreferredSize(new java.awt.Dimension(32, 32));\n colorPanel4.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mousePressed(java.awt.event.MouseEvent evt) {\n colorPanel4MousePressed(evt);\n }\n });\n\n javax.swing.GroupLayout colorPanel4Layout = new javax.swing.GroupLayout(colorPanel4);\n colorPanel4.setLayout(colorPanel4Layout);\n colorPanel4Layout.setHorizontalGroup(\n colorPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 32, Short.MAX_VALUE)\n );\n colorPanel4Layout.setVerticalGroup(\n colorPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 32, Short.MAX_VALUE)\n );\n\n colorPanel5.setBackground(new java.awt.Color(255, 255, 255));\n colorPanel5.setCursor(new java.awt.Cursor(java.awt.Cursor.DEFAULT_CURSOR));\n colorPanel5.setMinimumSize(new java.awt.Dimension(16, 16));\n colorPanel5.setPreferredSize(new java.awt.Dimension(32, 32));\n colorPanel5.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mousePressed(java.awt.event.MouseEvent evt) {\n colorPanel5MousePressed(evt);\n }\n });\n\n javax.swing.GroupLayout colorPanel5Layout = new javax.swing.GroupLayout(colorPanel5);\n colorPanel5.setLayout(colorPanel5Layout);\n colorPanel5Layout.setHorizontalGroup(\n colorPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 32, Short.MAX_VALUE)\n );\n colorPanel5Layout.setVerticalGroup(\n colorPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 32, Short.MAX_VALUE)\n );\n\n colorPanel6.setBackground(new java.awt.Color(255, 255, 255));\n colorPanel6.setCursor(new java.awt.Cursor(java.awt.Cursor.DEFAULT_CURSOR));\n colorPanel6.setMinimumSize(new java.awt.Dimension(16, 16));\n colorPanel6.setPreferredSize(new java.awt.Dimension(32, 32));\n colorPanel6.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mousePressed(java.awt.event.MouseEvent evt) {\n colorPanel6MousePressed(evt);\n }\n });\n\n javax.swing.GroupLayout colorPanel6Layout = new javax.swing.GroupLayout(colorPanel6);\n colorPanel6.setLayout(colorPanel6Layout);\n colorPanel6Layout.setHorizontalGroup(\n colorPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 32, Short.MAX_VALUE)\n );\n colorPanel6Layout.setVerticalGroup(\n colorPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 32, Short.MAX_VALUE)\n );\n\n colorPanel7.setBackground(new java.awt.Color(255, 255, 255));\n colorPanel7.setCursor(new java.awt.Cursor(java.awt.Cursor.DEFAULT_CURSOR));\n colorPanel7.setMinimumSize(new java.awt.Dimension(16, 16));\n colorPanel7.setPreferredSize(new java.awt.Dimension(32, 32));\n colorPanel7.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mousePressed(java.awt.event.MouseEvent evt) {\n colorPanel7MousePressed(evt);\n }\n });\n\n javax.swing.GroupLayout colorPanel7Layout = new javax.swing.GroupLayout(colorPanel7);\n colorPanel7.setLayout(colorPanel7Layout);\n colorPanel7Layout.setHorizontalGroup(\n colorPanel7Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 32, Short.MAX_VALUE)\n );\n colorPanel7Layout.setVerticalGroup(\n colorPanel7Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 32, Short.MAX_VALUE)\n );\n\n colorPanel8.setBackground(new java.awt.Color(255, 255, 255));\n colorPanel8.setCursor(new java.awt.Cursor(java.awt.Cursor.DEFAULT_CURSOR));\n colorPanel8.setMinimumSize(new java.awt.Dimension(16, 16));\n colorPanel8.setPreferredSize(new java.awt.Dimension(32, 32));\n colorPanel8.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mousePressed(java.awt.event.MouseEvent evt) {\n colorPanel8MousePressed(evt);\n }\n });\n\n javax.swing.GroupLayout colorPanel8Layout = new javax.swing.GroupLayout(colorPanel8);\n colorPanel8.setLayout(colorPanel8Layout);\n colorPanel8Layout.setHorizontalGroup(\n colorPanel8Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 32, Short.MAX_VALUE)\n );\n colorPanel8Layout.setVerticalGroup(\n colorPanel8Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 32, Short.MAX_VALUE)\n );\n\n colorPanel9.setBackground(new java.awt.Color(255, 255, 255));\n colorPanel9.setCursor(new java.awt.Cursor(java.awt.Cursor.DEFAULT_CURSOR));\n colorPanel9.setMinimumSize(new java.awt.Dimension(16, 16));\n colorPanel9.setPreferredSize(new java.awt.Dimension(32, 32));\n colorPanel9.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mousePressed(java.awt.event.MouseEvent evt) {\n colorPanel9MousePressed(evt);\n }\n });\n\n javax.swing.GroupLayout colorPanel9Layout = new javax.swing.GroupLayout(colorPanel9);\n colorPanel9.setLayout(colorPanel9Layout);\n colorPanel9Layout.setHorizontalGroup(\n colorPanel9Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 32, Short.MAX_VALUE)\n );\n colorPanel9Layout.setVerticalGroup(\n colorPanel9Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 32, Short.MAX_VALUE)\n );\n\n colorPanel10.setBackground(new java.awt.Color(255, 255, 255));\n colorPanel10.setCursor(new java.awt.Cursor(java.awt.Cursor.DEFAULT_CURSOR));\n colorPanel10.setMinimumSize(new java.awt.Dimension(16, 16));\n colorPanel10.setPreferredSize(new java.awt.Dimension(32, 32));\n colorPanel10.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mousePressed(java.awt.event.MouseEvent evt) {\n colorPanel10MousePressed(evt);\n }\n });\n\n javax.swing.GroupLayout colorPanel10Layout = new javax.swing.GroupLayout(colorPanel10);\n colorPanel10.setLayout(colorPanel10Layout);\n colorPanel10Layout.setHorizontalGroup(\n colorPanel10Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 32, Short.MAX_VALUE)\n );\n colorPanel10Layout.setVerticalGroup(\n colorPanel10Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 32, Short.MAX_VALUE)\n );\n\n colorPanel11.setBackground(new java.awt.Color(255, 255, 255));\n colorPanel11.setCursor(new java.awt.Cursor(java.awt.Cursor.DEFAULT_CURSOR));\n colorPanel11.setMinimumSize(new java.awt.Dimension(16, 16));\n colorPanel11.setPreferredSize(new java.awt.Dimension(32, 32));\n colorPanel11.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mousePressed(java.awt.event.MouseEvent evt) {\n colorPanel11MousePressed(evt);\n }\n });\n\n javax.swing.GroupLayout colorPanel11Layout = new javax.swing.GroupLayout(colorPanel11);\n colorPanel11.setLayout(colorPanel11Layout);\n colorPanel11Layout.setHorizontalGroup(\n colorPanel11Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 32, Short.MAX_VALUE)\n );\n colorPanel11Layout.setVerticalGroup(\n colorPanel11Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 32, Short.MAX_VALUE)\n );\n\n colorPanel12.setBackground(new java.awt.Color(255, 255, 255));\n colorPanel12.setCursor(new java.awt.Cursor(java.awt.Cursor.DEFAULT_CURSOR));\n colorPanel12.setMinimumSize(new java.awt.Dimension(16, 16));\n colorPanel12.setPreferredSize(new java.awt.Dimension(32, 32));\n colorPanel12.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mousePressed(java.awt.event.MouseEvent evt) {\n colorPanel12MousePressed(evt);\n }\n });\n\n javax.swing.GroupLayout colorPanel12Layout = new javax.swing.GroupLayout(colorPanel12);\n colorPanel12.setLayout(colorPanel12Layout);\n colorPanel12Layout.setHorizontalGroup(\n colorPanel12Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 32, Short.MAX_VALUE)\n );\n colorPanel12Layout.setVerticalGroup(\n colorPanel12Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 32, Short.MAX_VALUE)\n );\n\n colorPanel13.setBackground(new java.awt.Color(255, 255, 255));\n colorPanel13.setCursor(new java.awt.Cursor(java.awt.Cursor.DEFAULT_CURSOR));\n colorPanel13.setMinimumSize(new java.awt.Dimension(16, 16));\n colorPanel13.setPreferredSize(new java.awt.Dimension(32, 32));\n colorPanel13.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mousePressed(java.awt.event.MouseEvent evt) {\n colorPanel13MousePressed(evt);\n }\n });\n\n javax.swing.GroupLayout colorPanel13Layout = new javax.swing.GroupLayout(colorPanel13);\n colorPanel13.setLayout(colorPanel13Layout);\n colorPanel13Layout.setHorizontalGroup(\n colorPanel13Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 32, Short.MAX_VALUE)\n );\n colorPanel13Layout.setVerticalGroup(\n colorPanel13Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 32, Short.MAX_VALUE)\n );\n\n colorPanel14.setBackground(new java.awt.Color(255, 255, 255));\n colorPanel14.setCursor(new java.awt.Cursor(java.awt.Cursor.DEFAULT_CURSOR));\n colorPanel14.setMinimumSize(new java.awt.Dimension(16, 16));\n colorPanel14.setPreferredSize(new java.awt.Dimension(32, 32));\n colorPanel14.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mousePressed(java.awt.event.MouseEvent evt) {\n colorPanel14MousePressed(evt);\n }\n });\n\n javax.swing.GroupLayout colorPanel14Layout = new javax.swing.GroupLayout(colorPanel14);\n colorPanel14.setLayout(colorPanel14Layout);\n colorPanel14Layout.setHorizontalGroup(\n colorPanel14Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 32, Short.MAX_VALUE)\n );\n colorPanel14Layout.setVerticalGroup(\n colorPanel14Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 32, Short.MAX_VALUE)\n );\n\n colorPanel15.setBackground(new java.awt.Color(255, 255, 255));\n colorPanel15.setCursor(new java.awt.Cursor(java.awt.Cursor.DEFAULT_CURSOR));\n colorPanel15.setMinimumSize(new java.awt.Dimension(16, 16));\n colorPanel15.setPreferredSize(new java.awt.Dimension(32, 32));\n colorPanel15.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mousePressed(java.awt.event.MouseEvent evt) {\n colorPanel15MousePressed(evt);\n }\n });\n\n javax.swing.GroupLayout colorPanel15Layout = new javax.swing.GroupLayout(colorPanel15);\n colorPanel15.setLayout(colorPanel15Layout);\n colorPanel15Layout.setHorizontalGroup(\n colorPanel15Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 32, Short.MAX_VALUE)\n );\n colorPanel15Layout.setVerticalGroup(\n colorPanel15Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 32, Short.MAX_VALUE)\n );\n\n colorPanel16.setBackground(new java.awt.Color(255, 255, 255));\n colorPanel16.setCursor(new java.awt.Cursor(java.awt.Cursor.DEFAULT_CURSOR));\n colorPanel16.setMinimumSize(new java.awt.Dimension(16, 16));\n colorPanel16.setPreferredSize(new java.awt.Dimension(32, 32));\n colorPanel16.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mousePressed(java.awt.event.MouseEvent evt) {\n colorPanel16MousePressed(evt);\n }\n });\n\n javax.swing.GroupLayout colorPanel16Layout = new javax.swing.GroupLayout(colorPanel16);\n colorPanel16.setLayout(colorPanel16Layout);\n colorPanel16Layout.setHorizontalGroup(\n colorPanel16Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 32, Short.MAX_VALUE)\n );\n colorPanel16Layout.setVerticalGroup(\n colorPanel16Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 32, Short.MAX_VALUE)\n );\n\n javax.swing.GroupLayout colorsPanelLayout = new javax.swing.GroupLayout(colorsPanel);\n colorsPanel.setLayout(colorsPanelLayout);\n colorsPanelLayout.setHorizontalGroup(\n colorsPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(colorsPanelLayout.createSequentialGroup()\n .addGroup(colorsPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(colorsPanelLayout.createSequentialGroup()\n .addComponent(colorPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(colorPanel2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(colorPanel3, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(colorPanel4, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(colorPanel5, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(colorPanel6, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(colorPanel7, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(colorPanel8, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(colorsPanelLayout.createSequentialGroup()\n .addComponent(colorPanel9, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(colorPanel10, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(colorPanel11, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(colorPanel12, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(colorPanel13, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(colorPanel14, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(colorPanel15, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(colorPanel16, 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 colorsPanelLayout.setVerticalGroup(\n colorsPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(colorsPanelLayout.createSequentialGroup()\n .addGroup(colorsPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(colorPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(colorPanel2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(colorPanel3, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(colorPanel4, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(colorPanel5, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(colorPanel6, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(colorPanel7, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(colorPanel8, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(colorsPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(colorPanel9, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(colorPanel10, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(colorPanel11, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(colorPanel12, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(colorPanel13, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(colorPanel14, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(colorPanel15, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(colorPanel16, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))\n );\n\n colorChooser.setMinimumSize(new java.awt.Dimension(429, 32));\n colorChooser.setPreferredSize(new java.awt.Dimension(429, 32));\n\n jLabel2.setFont(new java.awt.Font(\"Tahoma\", 0, 14)); // NOI18N\n jLabel2.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT);\n jLabel2.setText(\"RGB:\");\n\n rgbField.setFont(new java.awt.Font(\"Courier New\", 0, 14)); // NOI18N\n rgbField.setText(\"255 255 255\");\n\n jLabel4.setFont(new java.awt.Font(\"Tahoma\", 0, 14)); // NOI18N\n jLabel4.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT);\n jLabel4.setText(\"Genesis:\");\n\n gensField.setFont(new java.awt.Font(\"Courier New\", 0, 14)); // NOI18N\n gensField.setText(\"0fff\");\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.TRAILING)\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addComponent(jLabel4)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(gensField, javax.swing.GroupLayout.PREFERRED_SIZE, 60, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 48, Short.MAX_VALUE)\n .addComponent(jLabel2)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(rgbField, javax.swing.GroupLayout.PREFERRED_SIZE, 102, javax.swing.GroupLayout.PREFERRED_SIZE))\n );\n jPanel2Layout.setVerticalGroup(\n jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel4)\n .addComponent(gensField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel2)\n .addComponent(rgbField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\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 .addComponent(colorChooser, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel1Layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(jLabel5, javax.swing.GroupLayout.PREFERRED_SIZE, 52, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(paletteCombo, javax.swing.GroupLayout.PREFERRED_SIZE, 142, 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 .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(addressField, javax.swing.GroupLayout.PREFERRED_SIZE, 62, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(97, 97, 97))\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGap(33, 33, 33)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(jPanel2, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(colorsPanel, javax.swing.GroupLayout.DEFAULT_SIZE, 299, Short.MAX_VALUE))\n .addContainerGap())\n );\n jPanel1Layout.setVerticalGroup(\n jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel5)\n .addComponent(paletteCombo, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel6)\n .addComponent(addressField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(colorsPanel, javax.swing.GroupLayout.PREFERRED_SIZE, 70, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\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(colorChooser, javax.swing.GroupLayout.DEFAULT_SIZE, 371, Short.MAX_VALUE))\n );\n\n jMenu1.setText(\"File\");\n\n openRomMenu.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_R, java.awt.event.InputEvent.CTRL_MASK));\n openRomMenu.setText(\"Open Rom\");\n openRomMenu.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n openRomMenuActionPerformed(evt);\n }\n });\n jMenu1.add(openRomMenu);\n\n jMenuItem4.setText(\"Close Rom\");\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 jMenuItem5.setText(\"Save\");\n jMenuItem5.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jMenuItem5ActionPerformed(evt);\n }\n });\n jMenu1.add(jMenuItem5);\n jMenu1.add(jSeparator4);\n\n openGuideMenu.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_G, java.awt.event.InputEvent.CTRL_MASK));\n openGuideMenu.setText(\"Open Guide\");\n openGuideMenu.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n openGuideMenuActionPerformed(evt);\n }\n });\n jMenu1.add(openGuideMenu);\n jMenu1.add(jSeparator1);\n\n exitMenu.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_F4, java.awt.event.InputEvent.ALT_MASK));\n exitMenu.setText(\"Exit\");\n exitMenu.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n exitMenuActionPerformed(evt);\n }\n });\n jMenu1.add(exitMenu);\n\n jMenuBar1.add(jMenu1);\n\n jMenu2.setText(\"Edit\");\n\n copyPalMenu.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_C, java.awt.event.InputEvent.SHIFT_MASK | java.awt.event.InputEvent.CTRL_MASK));\n copyPalMenu.setText(\"Copy Palette\");\n copyPalMenu.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n copyPalMenuActionPerformed(evt);\n }\n });\n jMenu2.add(copyPalMenu);\n\n copyColorMenu.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_C, java.awt.event.InputEvent.CTRL_MASK));\n copyColorMenu.setText(\"Copy Color\");\n copyColorMenu.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n copyColorMenuActionPerformed(evt);\n }\n });\n jMenu2.add(copyColorMenu);\n\n pasteColorMenu.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_V, java.awt.event.InputEvent.CTRL_MASK));\n pasteColorMenu.setText(\"Paste\");\n pasteColorMenu.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n pasteColorMenuActionPerformed(evt);\n }\n });\n jMenu2.add(pasteColorMenu);\n jMenu2.add(jSeparator3);\n\n jMenuItem1.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_T, java.awt.event.InputEvent.CTRL_MASK));\n jMenuItem1.setText(\"Reset Zoom\");\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 findMenu.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_F3, 0));\n findMenu.setText(\"Find Palette\");\n findMenu.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n findMenuActionPerformed(evt);\n }\n });\n jMenu2.add(findMenu);\n\n jMenuBar1.add(jMenu2);\n\n jMenu3.setText(\"Help\");\n\n jMenuItem2.setText(\"About\");\n jMenuItem2.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jMenuItem2ActionPerformed(evt);\n }\n });\n jMenu3.add(jMenuItem2);\n\n jMenuBar1.add(jMenu3);\n\n setJMenuBar(jMenuBar1);\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, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(scrollPane, javax.swing.GroupLayout.DEFAULT_SIZE, 415, Short.MAX_VALUE)\n .addContainerGap())\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 .addComponent(scrollPane)\n );\n\n pack();\n }", "private void initEdgePopup() {\r\n edgeMenuItem = new MenuItem[4];\r\n edgeMenuItem[0] = new MenuItem(\"Select All\");\r\n edgeMenuItem[1] = new MenuItem(\"Create Split Point\");\r\n edgeMenuItem[2] = new MenuItem(\"Edit Label\");\r\n edgeMenuItem[3] = new MenuItem(\"Properties\");\r\n\r\n edgePopupMenu = new PopupMenu();\r\n\r\n edgePopupMenu.add(edgeMenuItem[0]);\r\n edgePopupMenu.addSeparator();\r\n edgePopupMenu.add(edgeMenuItem[1]);\r\n edgePopupMenu.add(edgeMenuItem[2]);\r\n edgePopupMenu.add(edgeMenuItem[3]);\r\n\r\n edgePopupMenu.addActionListener(this);\r\n\r\n this.add(edgePopupMenu);\r\n }", "private static void createAndShowGUI() {\n\t\t//Create and set up the window.\n\t\tJFrame frame = new JFrame(\"Color test\");\n\t\tframe.setPreferredSize(new Dimension(700, 700));\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\n\t\t//Create and set up the content pane.\n\t\tJComponent newContentPane = new ColorTest();\n\t\tnewContentPane.setOpaque(true); //content panes must be opaque\n\t\tframe.setContentPane(newContentPane);\n\n\t\t//Display the window.\n\t\tframe.pack();\n\t\tframe.setVisible(true);\n\t}", "private void buildColorSelector(JPanel panel) {\n colorChooserButton = new JLabel();\n colorChooserButton.setPreferredSize(new Dimension(16, 16));\n colorChooserButton.setVerticalAlignment(JLabel.CENTER);\n colorChooserButton.setBackground(Color.WHITE);\n colorChooserButton.setOpaque(true);\n colorChooserButton.setBorder(BorderFactory.createLineBorder(Color.black));\n colorChooserButton.addMouseListener(ApplicationFactory.INSTANCE\n .getNewColorChooserListener(this));\n panel.add(colorChooserButton, \"wrap\");\n }", "public ColorPopupMenu2(ModernWindow parent) {\r\n mParent = parent;\r\n\r\n setup();\r\n }", "public TransparencyDemo() {\r\n super();\r\n view3DButton.addItemListener(this);\r\n drawBehindButton.addItemListener(this);\r\n transparencySlider.addChangeListener(this);\r\n }", "public void widgetSelected(SelectionEvent arg0) {\n\t\t ColorDialog dlg = new ColorDialog(shell);\r\n\r\n\t\t // Set the selected color in the dialog from\r\n\t\t // user's selected color\r\n\t\t Color shpColor = viewer.getShpReader().getForeColor();\r\n\t\t dlg.setRGB(shpColor.getRGB());\r\n\r\n\t\t // Change the title bar text\r\n\t\t dlg.setText(Messages.getMessage(\"SHPLayersScreen_ColorDialog\"));\r\n\r\n\t\t // Open the dialog and retrieve the selected color\r\n\t\t RGB rgb = dlg.open();\r\n\t\t if (rgb != null && !rgb.equals(shpColor.getRGB())) {\r\n\t\t // Dispose the old color, create the\r\n\t\t // new one, and set into the label\r\n\t\t \tnewColor = new Color(shell.getDisplay(), rgb);\r\n\t\t\t\t\tlabelColor.setBackground(newColor);\r\n\t\t }\r\n\t\t\t}", "public void open() {\n popupWindow = new Window(getTypeCaption());\n popupWindow.addStyleName(\"e-export-form-window\");\n popupWindow.addStyleName(\"opaque\");\n VerticalLayout layout = (VerticalLayout) popupWindow.getContent();\n layout.setMargin(true);\n layout.setSpacing(true);\n layout.setSizeUndefined();\n popupWindow.setSizeUndefined();\n popupWindow.setModal(false);\n popupWindow.setClosable(true);\n\n popupWindow.addComponent(this);\n getMainApplication().getMainWindow().addWindow(popupWindow);\n\n onDisplay();\n }", "private void colorScheme (Composite parent) {\r\n\t\tbgLabel = ControlFactory.createLabel(parent, CDTFoldingConstants.SELECT_BG);\r\n\t\tbgColorSelector = new ColorSelector(parent);\r\n\r\n\t\tfgLabel = ControlFactory.createLabel(parent, CDTFoldingConstants.SELECT_FG);\r\n\t\tfgColorSelector = new ColorSelector(parent);\r\n\r\n\t\tbgColorSelector.setColorValue(CDTUtilities.restoreRGB(store\r\n\t\t\t\t.getString(CDTFoldingConstants.COLOR_PICKED_BG)));\r\n\t\tfgColorSelector.setColorValue(CDTUtilities.restoreRGB(store\r\n\t\t\t\t.getString(CDTFoldingConstants.COLOR_PICKED_FG)));\r\n\r\n\t\tbgColorSelector.addListener(event -> {\r\n\t\t\tRGB currentRGB = bgColorSelector.getColorValue();\r\n\r\n\t\t\tStringBuilder sb = new StringBuilder();\r\n\t\t\tsb.append(Integer.toString(currentRGB.red) + \" \");\r\n\t\t\tsb.append(Integer.toString(currentRGB.green) + \" \");\r\n\t\t\tsb.append(Integer.toString(currentRGB.blue));\r\n\r\n\t\t\tstore.setValue(CDTFoldingConstants.COLOR_PICKED_BG, sb.toString());\r\n\t\t});\r\n\r\n\t\tfgColorSelector.addListener(event -> {\r\n\t\t\tRGB currentRGB = fgColorSelector.getColorValue();\r\n\r\n\t\t\tStringBuilder sb = new StringBuilder();\r\n\t\t\tsb.append(Integer.toString(currentRGB.red) + \" \");\r\n\t\t\tsb.append(Integer.toString(currentRGB.green) + \" \");\r\n\t\t\tsb.append(Integer.toString(currentRGB.blue));\r\n\r\n\t\t\tstore.setValue(CDTFoldingConstants.COLOR_PICKED_FG, sb.toString());\r\n\t\t});\r\n\r\n\t\tturnOnOffColors();\r\n\t}", "@Override\n \t public void actionPerformed(ActionEvent e) \n \t {\n \t\t Color newColour = JColorChooser.showDialog(null, \"Choose a colour!\", Color.black);\n \t\t if(newColour == null)\n \t\t\t return;\n \t\t else\n \t\t\t client.setColor(newColour);\n \t }", "public void actionPerformed(ActionEvent event) {\n if (event.getActionCommand().equals(EDIT)) {\n if (!canvas.isAncestorOf(colorChooserPanel)) {\n colorChooser.setColor(currentColor);\n \n // Add the colorChooserPanel.\n canvas.addAsFrame(colorChooserPanel);\n colorChooserPanel.requestFocus();\n parent.setEnabled(false);\n // No repainting needed apparently.\n }\n }\n else if (event.getActionCommand().equals(OK)) {\n currentColor = colorChooser.getColor();\n \n if ((lastRow >= 0) && (lastRow < players.size())) {\n Player player = getPlayer(lastRow);\n player.setColor(currentColor);\n }\n \n // Remove the colorChooserPanel.\n canvas.remove(colorChooserPanel);\n parent.setEnabled(true);\n // No repainting needed apparently.\n \n fireEditingStopped();\n }\n else if (event.getActionCommand().equals(CANCEL)) {\n // Remove the colorChooserPanel.\n canvas.remove(colorChooserPanel);\n parent.setEnabled(true);\n // No repainting needed apparently.\n \n fireEditingCanceled();\n }\n else {\n logger.warning(\"Invalid action command\");\n }\n }", "@Override\n public void mouseClicked(final MouseEvent e)\n {\n ColorChooserFrame.COLOR_CHOOSER_FRAME.chooseColor(this.color.getRGB(), this);\n }", "public ExtensionPicker() {\n initComponents();\n chooser.setControlButtonsAreShown(false);\n setLocationRelativeTo(null);\n this.setVisible(true);\n }", "private void sFCButtonActionPerformed(java.awt.event.ActionEvent evt) {\n\t\tfinal SelectColor sASelectColor=new SelectColor(mAnnotation.getFillColor());\n\t\tsASelectColor.setOKListener( new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent evt) {\n\t\t\t\tColor clr = sASelectColor.getColor();\n\t\t\t\tpreview.setFillColor(clr);\n\t\t\t\tpreviewPanel.repaint();\n\t\t\t}\n\t\t});\n\t\n\t\tsASelectColor.setSize(435, 420);\n\t\tsASelectColor.setVisible(true);\n\t\t//1 -> FillColor\n\t}", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n jDialog1 = new javax.swing.JDialog();\n jColorChooser1 = new javax.swing.JColorChooser();\n jPanel1 = new javax.swing.JPanel();\n jPanel4 = new javax.swing.JPanel();\n jLabel1 = new javax.swing.JLabel();\n jLabel2 = new javax.swing.JLabel();\n jPanel5 = new javax.swing.JPanel();\n jLabel3 = new javax.swing.JLabel();\n jPanel6 = new javax.swing.JPanel();\n jLabel5 = new javax.swing.JLabel();\n jPanel7 = new javax.swing.JPanel();\n jLabel6 = new javax.swing.JLabel();\n jPanel8 = new javax.swing.JPanel();\n jLabel7 = new javax.swing.JLabel();\n jPanel3 = new javax.swing.JPanel();\n jLabel4 = new javax.swing.JLabel();\n jLabel8 = new javax.swing.JLabel();\n jLabel9 = new javax.swing.JLabel();\n lbl_tgl = new javax.swing.JLabel();\n jLabel11 = new javax.swing.JLabel();\n lbluser = new javax.swing.JLabel();\n jPanel19 = new javax.swing.JPanel();\n jPanel18 = new javax.swing.JPanel();\n jLabel29 = new javax.swing.JLabel();\n jLabel26 = new javax.swing.JLabel();\n jPanel11 = new javax.swing.JPanel();\n jPanel10 = new javax.swing.JPanel();\n jLabel13 = new javax.swing.JLabel();\n jLabel14 = new javax.swing.JLabel();\n jPanel12 = new javax.swing.JPanel();\n jLabel15 = new javax.swing.JLabel();\n jLabel16 = new javax.swing.JLabel();\n jPanel13 = new javax.swing.JPanel();\n jLabel17 = new javax.swing.JLabel();\n jLabel18 = new javax.swing.JLabel();\n jPanel15 = new javax.swing.JPanel();\n jLabel21 = new javax.swing.JLabel();\n jLabel22 = new javax.swing.JLabel();\n jPanel16 = new javax.swing.JPanel();\n jLabel23 = new javax.swing.JLabel();\n jLabel24 = new javax.swing.JLabel();\n jPanel2 = new javax.swing.JPanel();\n jPanel14 = new javax.swing.JPanel();\n jLabel19 = new javax.swing.JLabel();\n jLabel20 = new javax.swing.JLabel();\n jPanel17 = new javax.swing.JPanel();\n jLabel27 = new javax.swing.JLabel();\n jLabel28 = new javax.swing.JLabel();\n lbl_jam = new javax.swing.JLabel();\n\n javax.swing.GroupLayout jDialog1Layout = new javax.swing.GroupLayout(jDialog1.getContentPane());\n jDialog1.getContentPane().setLayout(jDialog1Layout);\n jDialog1Layout.setHorizontalGroup(\n jDialog1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 400, Short.MAX_VALUE)\n .addGroup(jDialog1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jDialog1Layout.createSequentialGroup()\n .addGap(0, 0, Short.MAX_VALUE)\n .addComponent(jColorChooser1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(0, 0, Short.MAX_VALUE)))\n );\n jDialog1Layout.setVerticalGroup(\n jDialog1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 300, Short.MAX_VALUE)\n .addGroup(jDialog1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jDialog1Layout.createSequentialGroup()\n .addGap(0, 0, Short.MAX_VALUE)\n .addComponent(jColorChooser1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(0, 0, Short.MAX_VALUE)))\n );\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n getContentPane().setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());\n\n jPanel1.setBackground(new java.awt.Color(255, 255, 0));\n jPanel1.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseEntered(java.awt.event.MouseEvent evt) {\n jPanel1MouseEntered(evt);\n }\n });\n\n jPanel4.setBackground(new java.awt.Color(255, 255, 0));\n jPanel4.setBorder(javax.swing.BorderFactory.createEtchedBorder());\n jPanel4.setForeground(new java.awt.Color(255, 255, 255));\n jPanel4.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseEntered(java.awt.event.MouseEvent evt) {\n jPanel4MouseEntered(evt);\n }\n public void mouseExited(java.awt.event.MouseEvent evt) {\n jPanel4MouseExited(evt);\n }\n });\n\n jLabel1.setFont(new java.awt.Font(\"Times New Roman\", 1, 18)); // NOI18N\n jLabel1.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/IconMenu/icons8-home-24.png\"))); // NOI18N\n jLabel1.setText(\"Beranda\");\n\n jLabel2.setFont(new java.awt.Font(\"Times New Roman\", 1, 18)); // NOI18N\n jLabel2.setText(\"Beranda\");\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 .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jLabel2, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n .addContainerGap())\n );\n jPanel4Layout.setVerticalGroup(\n jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel4Layout.createSequentialGroup()\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jLabel1, javax.swing.GroupLayout.PREFERRED_SIZE, 27, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jLabel2)\n .addGap(7, 7, 7))\n );\n\n jPanel5.setBackground(new java.awt.Color(255, 255, 0));\n jPanel5.setBorder(javax.swing.BorderFactory.createEtchedBorder());\n jPanel5.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseEntered(java.awt.event.MouseEvent evt) {\n jPanel5MouseEntered(evt);\n }\n public void mouseExited(java.awt.event.MouseEvent evt) {\n jPanel5MouseExited(evt);\n }\n public void mousePressed(java.awt.event.MouseEvent evt) {\n jPanel5MousePressed(evt);\n }\n });\n\n jLabel3.setFont(new java.awt.Font(\"Times New Roman\", 1, 18)); // NOI18N\n jLabel3.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/IconMenu/icons8-user-24.png\"))); // NOI18N\n jLabel3.setText(\"User\");\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 .addComponent(jLabel3, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addContainerGap())\n );\n jPanel5Layout.setVerticalGroup(\n jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel3, javax.swing.GroupLayout.DEFAULT_SIZE, 29, Short.MAX_VALUE)\n );\n\n jPanel6.setBackground(new java.awt.Color(255, 255, 0));\n jPanel6.setBorder(javax.swing.BorderFactory.createEtchedBorder());\n jPanel6.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseEntered(java.awt.event.MouseEvent evt) {\n jPanel6MouseEntered(evt);\n }\n public void mouseExited(java.awt.event.MouseEvent evt) {\n jPanel6MouseExited(evt);\n }\n });\n\n jLabel5.setFont(new java.awt.Font(\"Times New Roman\", 1, 18)); // NOI18N\n jLabel5.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/IconMenu/icons8-ticket-24.png\"))); // NOI18N\n jLabel5.setText(\"Data Tiket\");\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 .addComponent(jLabel5, javax.swing.GroupLayout.PREFERRED_SIZE, 147, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(0, 0, Short.MAX_VALUE))\n );\n jPanel6Layout.setVerticalGroup(\n jPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel6Layout.createSequentialGroup()\n .addComponent(jLabel5)\n .addGap(0, 6, Short.MAX_VALUE))\n );\n\n jPanel7.setBackground(new java.awt.Color(255, 255, 0));\n jPanel7.setBorder(javax.swing.BorderFactory.createEtchedBorder());\n jPanel7.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseEntered(java.awt.event.MouseEvent evt) {\n jPanel7MouseEntered(evt);\n }\n public void mouseExited(java.awt.event.MouseEvent evt) {\n jPanel7MouseExited(evt);\n }\n });\n\n jLabel6.setFont(new java.awt.Font(\"Times New Roman\", 1, 18)); // NOI18N\n jLabel6.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/IconMenu/icons8-money-24.png\"))); // NOI18N\n jLabel6.setText(\"Transaksi\");\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 .addGroup(jPanel7Layout.createSequentialGroup()\n .addComponent(jLabel6, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addContainerGap())\n );\n jPanel7Layout.setVerticalGroup(\n jPanel7Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel6, javax.swing.GroupLayout.DEFAULT_SIZE, 29, Short.MAX_VALUE)\n );\n\n jPanel8.setBackground(new java.awt.Color(255, 255, 0));\n jPanel8.setBorder(javax.swing.BorderFactory.createEtchedBorder());\n jPanel8.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseEntered(java.awt.event.MouseEvent evt) {\n jPanel8MouseEntered(evt);\n }\n public void mouseExited(java.awt.event.MouseEvent evt) {\n jPanel8MouseExited(evt);\n }\n });\n\n jLabel7.setFont(new java.awt.Font(\"Times New Roman\", 1, 18)); // NOI18N\n jLabel7.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/IconMenu/icons8-business-report-24.png\"))); // NOI18N\n jLabel7.setText(\"Laporan Tiket\");\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 .addComponent(jLabel7)\n .addGap(0, 0, Short.MAX_VALUE))\n );\n jPanel8Layout.setVerticalGroup(\n jPanel8Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel8Layout.createSequentialGroup()\n .addComponent(jLabel7)\n .addGap(0, 11, Short.MAX_VALUE))\n );\n\n jPanel3.setBackground(new java.awt.Color(255, 255, 0));\n jPanel3.setBorder(javax.swing.BorderFactory.createEtchedBorder());\n\n jLabel4.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/IconMenu/icons8-user-24.png\"))); // NOI18N\n\n jLabel8.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/IconMenu/icons8-calendar-24.png\"))); // NOI18N\n\n jLabel9.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/IconMenu/icons8-clock-24.png\"))); // NOI18N\n\n lbl_tgl.setFont(new java.awt.Font(\"Times New Roman\", 1, 14)); // NOI18N\n lbl_tgl.setForeground(new java.awt.Color(255, 0, 0));\n lbl_tgl.setText(\"Tanggal\");\n\n jLabel11.setFont(new java.awt.Font(\"Times New Roman\", 1, 14)); // NOI18N\n jLabel11.setForeground(new java.awt.Color(255, 0, 0));\n jLabel11.setText(\"Jam\");\n\n lbluser.setFont(new java.awt.Font(\"Times New Roman\", 1, 14)); // NOI18N\n lbluser.setForeground(new java.awt.Color(255, 0, 0));\n lbluser.setText(\"Sebagai\");\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(19, 19, 19)\n .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel4)\n .addGroup(jPanel3Layout.createSequentialGroup()\n .addComponent(jLabel8)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(lbl_tgl))\n .addGroup(jPanel3Layout.createSequentialGroup()\n .addComponent(jLabel9)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(jLabel11))\n .addGroup(jPanel3Layout.createSequentialGroup()\n .addGap(34, 34, 34)\n .addComponent(lbluser)))\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n );\n jPanel3Layout.setVerticalGroup(\n jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel3Layout.createSequentialGroup()\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(jLabel4, javax.swing.GroupLayout.PREFERRED_SIZE, 19, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(lbluser))\n .addGap(11, 11, 11)\n .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(lbl_tgl, javax.swing.GroupLayout.PREFERRED_SIZE, 17, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel8))\n .addGap(13, 13, 13)\n .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(jLabel9)\n .addComponent(jLabel11)))\n );\n\n jPanel19.setBackground(new java.awt.Color(255, 255, 0));\n\n jPanel18.setBackground(new java.awt.Color(255, 0, 0));\n jPanel18.setBorder(javax.swing.BorderFactory.createEtchedBorder());\n jPanel18.setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());\n\n jLabel29.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/IconMenu/icons8-menu-24.png\"))); // NOI18N\n jLabel29.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseEntered(java.awt.event.MouseEvent evt) {\n jLabel29MouseEntered(evt);\n }\n public void mouseExited(java.awt.event.MouseEvent evt) {\n jLabel29MouseExited(evt);\n }\n public void mousePressed(java.awt.event.MouseEvent evt) {\n jLabel29MousePressed(evt);\n }\n });\n jPanel18.add(jLabel29, new org.netbeans.lib.awtextra.AbsoluteConstraints(10, 0, 50, 50));\n\n jLabel26.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/IconMenu/icons8-menu-24.png\"))); // NOI18N\n jLabel26.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseEntered(java.awt.event.MouseEvent evt) {\n jLabel26MouseEntered(evt);\n }\n public void mouseExited(java.awt.event.MouseEvent evt) {\n jLabel26MouseExited(evt);\n }\n public void mousePressed(java.awt.event.MouseEvent evt) {\n jLabel26MousePressed(evt);\n }\n });\n jPanel18.add(jLabel26, new org.netbeans.lib.awtextra.AbsoluteConstraints(10, 10, 36, 35));\n\n jPanel11.setBackground(new java.awt.Color(255, 255, 0));\n jPanel11.setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());\n\n jPanel10.setBackground(new java.awt.Color(255, 255, 0));\n jPanel10.setBorder(javax.swing.BorderFactory.createEtchedBorder());\n jPanel10.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseEntered(java.awt.event.MouseEvent evt) {\n jPanel10MouseEntered(evt);\n }\n public void mouseExited(java.awt.event.MouseEvent evt) {\n jPanel10MouseExited(evt);\n }\n public void mousePressed(java.awt.event.MouseEvent evt) {\n jPanel10MousePressed(evt);\n }\n });\n\n jLabel13.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/IconMenu/icons8-photo-editor-24.png\"))); // NOI18N\n\n jLabel14.setFont(new java.awt.Font(\"Times New Roman\", 1, 14)); // NOI18N\n jLabel14.setText(\"Background\");\n jLabel14.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseEntered(java.awt.event.MouseEvent evt) {\n jLabel14MouseEntered(evt);\n }\n });\n\n javax.swing.GroupLayout jPanel10Layout = new javax.swing.GroupLayout(jPanel10);\n jPanel10.setLayout(jPanel10Layout);\n jPanel10Layout.setHorizontalGroup(\n jPanel10Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel10Layout.createSequentialGroup()\n .addComponent(jLabel13)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jLabel14)\n .addGap(0, 62, Short.MAX_VALUE))\n );\n jPanel10Layout.setVerticalGroup(\n jPanel10Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel13, javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(jLabel14, javax.swing.GroupLayout.Alignment.TRAILING)\n );\n\n jPanel11.add(jPanel10, new org.netbeans.lib.awtextra.AbsoluteConstraints(0, 0, 170, -1));\n\n jPanel12.setBackground(new java.awt.Color(255, 255, 0));\n jPanel12.setBorder(javax.swing.BorderFactory.createEtchedBorder());\n jPanel12.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseEntered(java.awt.event.MouseEvent evt) {\n jPanel12MouseEntered(evt);\n }\n public void mouseExited(java.awt.event.MouseEvent evt) {\n jPanel12MouseExited(evt);\n }\n });\n\n jLabel15.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/IconMenu/icons8-about-24.png\"))); // NOI18N\n\n jLabel16.setFont(new java.awt.Font(\"Times New Roman\", 1, 14)); // NOI18N\n jLabel16.setText(\"About\");\n\n javax.swing.GroupLayout jPanel12Layout = new javax.swing.GroupLayout(jPanel12);\n jPanel12.setLayout(jPanel12Layout);\n jPanel12Layout.setHorizontalGroup(\n jPanel12Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel12Layout.createSequentialGroup()\n .addComponent(jLabel15)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jLabel16)\n .addGap(0, 99, Short.MAX_VALUE))\n );\n jPanel12Layout.setVerticalGroup(\n jPanel12Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel15, javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(jLabel16, javax.swing.GroupLayout.Alignment.TRAILING)\n );\n\n jPanel11.add(jPanel12, new org.netbeans.lib.awtextra.AbsoluteConstraints(0, 30, 170, -1));\n\n jPanel13.setBackground(new java.awt.Color(255, 255, 0));\n jPanel13.setBorder(javax.swing.BorderFactory.createEtchedBorder());\n jPanel13.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseEntered(java.awt.event.MouseEvent evt) {\n jPanel13MouseEntered(evt);\n }\n public void mouseExited(java.awt.event.MouseEvent evt) {\n jPanel13MouseExited(evt);\n }\n public void mousePressed(java.awt.event.MouseEvent evt) {\n jPanel13MousePressed(evt);\n }\n });\n\n jLabel17.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/IconMenu/icons8-logout-rounded-down-24.png\"))); // NOI18N\n\n jLabel18.setFont(new java.awt.Font(\"Times New Roman\", 1, 14)); // NOI18N\n jLabel18.setText(\"Logout\");\n\n javax.swing.GroupLayout jPanel13Layout = new javax.swing.GroupLayout(jPanel13);\n jPanel13.setLayout(jPanel13Layout);\n jPanel13Layout.setHorizontalGroup(\n jPanel13Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel13Layout.createSequentialGroup()\n .addComponent(jLabel17)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jLabel18)\n .addGap(0, 93, Short.MAX_VALUE))\n );\n jPanel13Layout.setVerticalGroup(\n jPanel13Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel17, javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(jLabel18, javax.swing.GroupLayout.Alignment.TRAILING)\n );\n\n jPanel11.add(jPanel13, new org.netbeans.lib.awtextra.AbsoluteConstraints(0, 60, 170, -1));\n\n jPanel15.setBackground(new java.awt.Color(255, 255, 0));\n jPanel15.setBorder(javax.swing.BorderFactory.createEtchedBorder());\n jPanel15.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseEntered(java.awt.event.MouseEvent evt) {\n jPanel15MouseEntered(evt);\n }\n public void mouseExited(java.awt.event.MouseEvent evt) {\n jPanel15MouseExited(evt);\n }\n });\n\n jLabel21.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/IconMenu/icons8-business-report-24.png\"))); // NOI18N\n\n jLabel22.setFont(new java.awt.Font(\"Times New Roman\", 1, 14)); // NOI18N\n jLabel22.setText(\"Backup and Restore\");\n\n javax.swing.GroupLayout jPanel15Layout = new javax.swing.GroupLayout(jPanel15);\n jPanel15.setLayout(jPanel15Layout);\n jPanel15Layout.setHorizontalGroup(\n jPanel15Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel15Layout.createSequentialGroup()\n .addComponent(jLabel21)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jLabel22)\n .addGap(0, 12, Short.MAX_VALUE))\n );\n jPanel15Layout.setVerticalGroup(\n jPanel15Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel21, javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(jLabel22, javax.swing.GroupLayout.Alignment.TRAILING)\n );\n\n jPanel11.add(jPanel15, new org.netbeans.lib.awtextra.AbsoluteConstraints(0, 90, 170, -1));\n\n jPanel16.setBackground(new java.awt.Color(255, 255, 0));\n jPanel16.setBorder(javax.swing.BorderFactory.createEtchedBorder());\n jPanel16.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseEntered(java.awt.event.MouseEvent evt) {\n jPanel16MouseEntered(evt);\n }\n public void mouseExited(java.awt.event.MouseEvent evt) {\n jPanel16MouseExited(evt);\n }\n public void mousePressed(java.awt.event.MouseEvent evt) {\n jPanel16MousePressed(evt);\n }\n });\n\n jLabel23.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/IconMenu/icons8-exit-24.png\"))); // NOI18N\n\n jLabel24.setFont(new java.awt.Font(\"Times New Roman\", 1, 14)); // NOI18N\n jLabel24.setText(\"Keluar\");\n\n javax.swing.GroupLayout jPanel16Layout = new javax.swing.GroupLayout(jPanel16);\n jPanel16.setLayout(jPanel16Layout);\n jPanel16Layout.setHorizontalGroup(\n jPanel16Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel16Layout.createSequentialGroup()\n .addComponent(jLabel23)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jLabel24)\n .addGap(0, 94, Short.MAX_VALUE))\n );\n jPanel16Layout.setVerticalGroup(\n jPanel16Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel23, javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(jLabel24, javax.swing.GroupLayout.Alignment.TRAILING)\n );\n\n jPanel11.add(jPanel16, new org.netbeans.lib.awtextra.AbsoluteConstraints(0, 120, 170, -1));\n\n javax.swing.GroupLayout jPanel19Layout = new javax.swing.GroupLayout(jPanel19);\n jPanel19.setLayout(jPanel19Layout);\n jPanel19Layout.setHorizontalGroup(\n jPanel19Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel19Layout.createSequentialGroup()\n .addGroup(jPanel19Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jPanel11, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jPanel18, javax.swing.GroupLayout.PREFERRED_SIZE, 60, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(0, 0, Short.MAX_VALUE))\n );\n jPanel19Layout.setVerticalGroup(\n jPanel19Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel19Layout.createSequentialGroup()\n .addComponent(jPanel18, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 32, Short.MAX_VALUE)\n .addComponent(jPanel11, javax.swing.GroupLayout.PREFERRED_SIZE, 161, javax.swing.GroupLayout.PREFERRED_SIZE))\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 .addComponent(jPanel4, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jPanel5, 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 .addComponent(jPanel7, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jPanel8, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jPanel3, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addComponent(jPanel19, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, 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 .addComponent(jPanel19, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 9, Short.MAX_VALUE)\n .addComponent(jPanel4, javax.swing.GroupLayout.PREFERRED_SIZE, 45, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jPanel5, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jPanel6, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jPanel7, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jPanel8, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(64, 64, 64)\n .addComponent(jPanel3, javax.swing.GroupLayout.PREFERRED_SIZE, 105, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addContainerGap())\n );\n\n getContentPane().add(jPanel1, new org.netbeans.lib.awtextra.AbsoluteConstraints(0, 0, -1, 640));\n\n jPanel2.setBackground(new java.awt.Color(255, 0, 0));\n\n jPanel14.setBackground(new java.awt.Color(255, 0, 0));\n jPanel14.setBorder(javax.swing.BorderFactory.createEtchedBorder());\n\n jLabel19.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/IconMenu/icons8-photo-editor-24.png\"))); // NOI18N\n\n jLabel20.setFont(new java.awt.Font(\"Times New Roman\", 1, 14)); // NOI18N\n jLabel20.setText(\"Background\");\n\n javax.swing.GroupLayout jPanel14Layout = new javax.swing.GroupLayout(jPanel14);\n jPanel14.setLayout(jPanel14Layout);\n jPanel14Layout.setHorizontalGroup(\n jPanel14Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel14Layout.createSequentialGroup()\n .addComponent(jLabel19)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jLabel20)\n .addGap(0, 0, Short.MAX_VALUE))\n );\n jPanel14Layout.setVerticalGroup(\n jPanel14Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel19, javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(jLabel20, javax.swing.GroupLayout.Alignment.TRAILING)\n );\n\n jPanel17.setBackground(new java.awt.Color(255, 255, 0));\n\n jLabel27.setFont(new java.awt.Font(\"Times New Roman\", 1, 36)); // NOI18N\n jLabel27.setText(\"DFD TICKET\");\n\n javax.swing.GroupLayout jPanel17Layout = new javax.swing.GroupLayout(jPanel17);\n jPanel17.setLayout(jPanel17Layout);\n jPanel17Layout.setHorizontalGroup(\n jPanel17Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel17Layout.createSequentialGroup()\n .addContainerGap(167, Short.MAX_VALUE)\n .addComponent(jLabel27)\n .addGap(171, 171, 171))\n );\n jPanel17Layout.setVerticalGroup(\n jPanel17Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel17Layout.createSequentialGroup()\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jLabel27)\n .addGap(33, 33, 33))\n );\n\n jLabel28.setBackground(new java.awt.Color(255, 255, 255));\n jLabel28.setFont(new java.awt.Font(\"Times New Roman\", 1, 36)); // NOI18N\n jLabel28.setForeground(new java.awt.Color(255, 255, 255));\n jLabel28.setText(\"Jam\");\n\n lbl_jam.setFont(new java.awt.Font(\"Times New Roman\", 1, 24)); // NOI18N\n lbl_jam.setForeground(new java.awt.Color(255, 255, 255));\n lbl_jam.setText(\"Jam\");\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(461, 461, 461)\n .addComponent(jPanel14, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addGap(108, 108, 108))\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel2Layout.createSequentialGroup()\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel2Layout.createSequentialGroup()\n .addComponent(lbl_jam)\n .addGap(124, 124, 124))\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel2Layout.createSequentialGroup()\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(jPanel17, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel28))\n .addGap(89, 89, 89))))\n );\n jPanel2Layout.setVerticalGroup(\n jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(jPanel17, javax.swing.GroupLayout.PREFERRED_SIZE, 61, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(18, 18, 18)\n .addComponent(lbl_jam)\n .addGap(66, 66, 66)\n .addComponent(jLabel28)\n .addGap(151, 151, 151)\n .addComponent(jPanel14, 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(jPanel2, new org.netbeans.lib.awtextra.AbsoluteConstraints(160, 0, 610, 140));\n\n pack();\n }", "public void mouseClicked(MouseEvent e){\n if(e.getSource() == cmUI){\n ColorMixerModel.ColorItem tempC = selectedColor(e.getPoint());\n if(e.getClickCount() == 1){\n if(!cmModel.isCreating()) {\n // if there is no color creating and no color selected\n // single click to create random explore-purposed color\n if (tempC == null && (cmModel.getSelectedItem()== null || cmModel.getSelectedItem().isEmpty())) {\n cmModel.addColor(e.getPoint(), null, true);\n }\n // select color\n // if tempC == null, it will deselect all the color\n cmModel.setSelectedItem(tempC);\n // when selecting a color, set the color picker\n if(tempC != null) {\n cpModel.setMainColor(tempC.getColor());\n cpUI.repaint();\n }\n\n }\n\n }\n else if(e.getClickCount() == 2){\n // double click to add the color to palette\n if(tempC!=null){\n pModel.addColor(tempC.getColor());\n repaint(pModel.getSize()-1);\n }\n }\n cmModel.stopCreating();\n cmUI.repaint();\n }\n \n else if(e.getSource() == pUI){\n int idx = pUI.getIdx(e.getPoint());\n if (idx < pModel.getSize()) {\n if (cmModel.getSelectedItem() == null) {\n pModel.select(idx);\n }\n else {\n cmModel.changeColor(pModel.getColor(idx));\n }\n }\n }\n\n\n }", "private void createResultPopup() {\r\n resultDialog = new JDialog(parentFrame);\r\n resultDialog.setLayout(new BoxLayout(resultDialog.getContentPane(), BoxLayout.Y_AXIS));\r\n resultDialog.setAlwaysOnTop(true);\r\n Utilities.centerWindowTo(resultDialog, parentFrame);\r\n resultDialog.add(createResultLabel());\r\n resultDialog.add(createButtonDescription());\r\n resultDialog.add(createConfirmationButtons());\r\n resultDialog.pack();\r\n resultDialog.setVisible(true);\r\n }", "public ColorPickerMainFrame()\n {\n initComponents();\n \n getContentPane().add(panel);\n setSize(640, 640);\n }", "public void show()\n {\n setListSelection(comboBox.getSelectedIndex());\n Point location = getPopupLocation();\n show(comboBox\n //以下x、y坐标修正代码由Jack Jiang增加\n ,\n location.x + popupOffsetX //*~ popupOffsetX是自定属性,用于修改弹出窗的X坐标\n ,\n location.y + popupOffsetY //*~ popupOffsetY是自定属性,用于修改弹出窗的Y坐标\n );\n }", "public SliderAndButtonDemo() {\n \n setBorder(BorderFactory.createEmptyBorder(6,6,6,6));\n\n /* Create the display label, with properties to match the\n values of the sliders and the setting of the combo box. */\n\n displayLabel = new JLabel(\"Hello World!\", JLabel.CENTER);\n displayLabel.setOpaque(true);\n displayLabel.setBackground( new Color(100,100,100) );\n displayLabel.setForeground( Color.RED );\n displayLabel.setFont( new Font(\"Serif\", Font.BOLD, 30) );\n displayLabel.setBorder(BorderFactory.createEmptyBorder(0,8,0,8));\n\n /* Create the sliders, and set up the panel to listen for\n ChangeEvents that are generated by the sliders. */\n\n bgColorSlider = new JSlider(0,255,100);\n bgColorSlider.addChangeListener(this);\n\n fgColorSlider = new JSlider(0,100,0);\n fgColorSlider.addChangeListener(this);\n \n /* Create four buttons to control the font style, and set up the\n panel to listen for ActionEvents from the buttons. */\n \n JButton plainButton = new JButton(\"Plain Font\");\n plainButton.addActionListener(this);\n JButton italicButton = new JButton(\"Italic Font\");\n italicButton.addActionListener(this);\n JButton boldButton = new JButton(\"Bold Font\");\n boldButton.addActionListener(this);\n\n\n /* Set the layout for the panel, and add the four components. \n Use a GridLayout with 3 rows and 2 columns, and with\n 5 pixels between components. */\n\n setLayout(new GridLayout(3,2,5,5));\n add(displayLabel);\n add(plainButton);\n add(bgColorSlider);\n add(italicButton);\n add(fgColorSlider);\n add(boldButton);\n\n }", "void initializePopup() {\n\t\t\n\t\tsetDefaultCloseOperation(JDialog.DISPOSE_ON_CLOSE);\n\t\tsetBounds(100, 100, 450, 475);\n\t\tgetContentPane().setLayout(new BorderLayout());\n\t\tcontentPanel.setBorder(new EmptyBorder(5, 5, 5, 5));\n\t\tgetContentPane().add(contentPanel, BorderLayout.CENTER);\n\t\tcontentPanel.setLayout(null);\n\n\t\tJLabel lblThemeName = new JLabel(\"Theme Name\");\n\t\tlblThemeName.setHorizontalAlignment(SwingConstants.CENTER);\n\t\tlblThemeName.setBounds(6, 31, 87, 16);\n\t\tcontentPanel.add(lblThemeName);\n\n\t\tname = new JTextField();\n\t\tname.setBounds(134, 26, 294, 26);\n\t\tcontentPanel.add(name);\n\t\tname.setColumns(10);\n\n\t\tJLabel lblNewLabel = new JLabel(\"Words\");\n\t\tlblNewLabel.setHorizontalAlignment(SwingConstants.CENTER);\n\t\tlblNewLabel.setBounds(6, 76, 87, 16);\n\t\tcontentPanel.add(lblNewLabel);\n\n\t\tJLabel lblLetterOrder = new JLabel(\"Letter Order\");\n\t\tlblLetterOrder.setHorizontalAlignment(SwingConstants.CENTER);\n\t\tlblLetterOrder.setBounds(6, 235, 87, 16);\n\t\tcontentPanel.add(lblLetterOrder);\n\n\t\twords = new JTextPane();\n\t\twords.setBounds(134, 75, 294, 149);\n\t\tcontentPanel.add(words);\n\n\t\tletters = new JTextPane();\n\t\tletters.setBounds(134, 235, 294, 149);\n\t\tcontentPanel.add(letters);\n\t\t\n\t\tJLabel lblNewLabel_1 = new JLabel(\"\\\" signals unselected tile\");\n\t\tlblNewLabel_1.setFont(new Font(\"Lucida Grande\", Font.PLAIN, 13));\n\t\tlblNewLabel_1.setBounds(6, 392, 157, 16);\n\t\tcontentPanel.add(lblNewLabel_1);\n\t\t\n\t\tJLabel lblNewLabel_2 = new JLabel(\"Use % to signal for a random letter\");\n\t\tlblNewLabel_2.setBounds(202, 392, 242, 16);\n\t\tcontentPanel.add(lblNewLabel_2);\n\t\t\n\t\tJLabel lblRowsOf = new JLabel(\"6 rows of 6 letters\");\n\t\tlblRowsOf.setBounds(6, 340, 116, 16);\n\t\tcontentPanel.add(lblRowsOf);\n\t\t\n\t\tJLabel lblQQu = new JLabel(\"Q = Qu\");\n\t\tlblQQu.setBounds(6, 368, 61, 16);\n\t\tcontentPanel.add(lblQQu);\n\t\t{\n\t\t\tJPanel buttonPane = new JPanel();\n\t\t\tbuttonPane.setLayout(new FlowLayout(FlowLayout.RIGHT));\n\t\t\tgetContentPane().add(buttonPane, BorderLayout.SOUTH);\n\t\t\t{\n\t\t\t\tokButton = new JButton(\"OK\");\n\t\t\t\tokButton.setActionCommand(\"OK\");\n\t\t\t\tokButton.addActionListener(new AcceptThemeController(this));\n\t\t\t\tbuttonPane.add(okButton);\n\t\t\t\tgetRootPane().setDefaultButton(okButton);\n\t\t\t}\n\t\t\t{\n\t\t\t\tJButton cancelButton = new JButton(\"Cancel\");\n\t\t\t\tcancelButton.setActionCommand(\"Cancel\");\n\t\t\t\tcancelButton.addActionListener(new CloseThemeController(this, model));\n\t\t\t\tbuttonPane.add(cancelButton);\n\t\t\t}\n\t\t}\n\t}", "public ColorCellEditor(Canvas canvas, JPanel parent) {\n this.canvas = canvas;\n this.parent = parent;\n \n colorEditButton = new JButton();\n colorEditButton.setActionCommand(EDIT);\n colorEditButton.addActionListener(this);\n colorEditButton.setBorderPainted(false);\n \n colorChooser = new JColorChooser();\n \n colorChooserPanel = new ColorChooserPanel(this);\n colorChooserPanel.setLocation(canvas.getWidth() / 2 - colorChooserPanel.getWidth()\n / 2, canvas.getHeight() / 2 - colorChooserPanel.getHeight() / 2);\n }", "@Override\n\t\t\tpublic void mouseReleased(MouseEvent e) {\n\t\t\t\tif(e.isPopupTrigger())\n\t\t\t\t{\n\t\t\t\t\tpopup.show(e.getComponent(), e.getX(), e.getY());\n\t\t\t\t}\n\t\t\t}", "public void run() {\n JPanel tempPanel = new JPanel(new GridBagLayout());\n JLabel label = new JLabel(\"Live Rearranger parsing file...\");\n Border b = BorderFactory.createRaisedBevelBorder();\n tempPanel.setBorder(b);\n GridBagConstraints constraints = new GridBagConstraints();\n constraints.insets = new Insets(5, 5, 5, 5);\n tempPanel.add(label, constraints);\n Dimension d = outerPanel.getSize();\n Dimension c = tempPanel.getPreferredSize();\n int x = (d.width - c.width) / 2;\n int y = (d.height - c.height) / 2;\n if (x < 0) x = 0;\n if (y < 0) y = 0;\n popup = PopupFactory.getSharedInstance().getPopup(outerPanel, tempPanel, x, y);\n// popup.getContentPane().add(tempPanel);\n// popup.setLocation(x, y);\n LOG.debug(\"initial outerPanel size=\" + d + \", tempPanel preferred size=\" + c);\n LOG.debug(\"Constructing initial Popup at x,y=\" + x + \",\" + y);\n// popup.pack();\n// popup.setVisible(true);\n// popup.requestFocusInWindow();\n popup.show();\n Cursor cu = Cursor.getPredefinedCursor(Cursor.WAIT_CURSOR);\n oldCursor = outerPanel.getCursor();\n LOG.debug(\"setCursor (WAIT)\" + cu + \" on \" + outerPanel);\n outerPanel.setCursor(cu);\n }", "public InfoPopup() {\n initComponents();\n }", "public EdgeColorPanel() {\n initComponents();\n\n colorButton.addPropertyChangeListener(JColorButton.EVENT_COLOR, new PropertyChangeListener() {\n\n @Override\n public void propertyChange(PropertyChangeEvent evt) {\n Color newColor = (Color) evt.getNewValue();\n propertyEditor.setValue(new EdgeColor(newColor));\n }\n });\n\n originalRadio.addItemListener(this);\n mixedRadio.addItemListener(this);\n sourceRadio.addItemListener(this);\n targetRadio.addItemListener(this);\n customRadio.addItemListener(this);\n }", "void openDialog()\n {\n if(main.copyCmd.listEvCopy.size() >0){\n widgCopy.setBackColor(GralColor.getColor(\"rd\"), 0);\n } else {\n widgCopy.setBackColor(GralColor.getColor(\"wh\"), 0);\n }\n \n windStatus.setFocus(); //setWindowVisible(true);\n\n }", "public PaletteFloatableDialog(java.awt.Frame parent, final Controller controller, boolean modal) {\n super(parent, modal);\n //setUndecorated(true);\n initComponents();\n \n \n this.resizeUndecoratedDecorator = new ResizeUndecoratedDecorator(this);\n this.controller = controller;\n \n \n dureePanel.addListener(new ActionListener() {\n\n public void actionPerformed(ActionEvent e) {\n controller.dureeEntreeTraiter(dureePanel.getDuree());\n \n }\n });\n \n \n \n \n alterationPanel.addListener(new ActionListener() {\n\n private void alterer(Hauteur.Alteration alteration)\n {\n Histoire histoire = controller.getHistoire();\n\n if(controller.isSelection())\n //s'il y a une sélection, on l'altère\n {\n histoire.executer(\n new PartitionActionSelectionAlterer(\n controller.getSelection(),\n alteration));\n controller.calculerModificationSelection();\n controller.repaint();\n }\n else if(controller.getCurseurSouris().isSurNote())\n //si le curseur est sous une note, on l'altère\n {\n histoire.executer(new PartitionActionNoteAlterer(\n controller.getCurseurSouris().getNote(), alteration));\n controller.getPartitionVue().miseEnPageCalculer(controller.getCurseurSouris().getNote().getDebutMoment());\n controller.repaint();\n }\n else\n controller.setAlterationCourante(alteration);\n\n }\n \n \n \n public void actionPerformed(ActionEvent e) {\n alterer(alterationPanel.getAlteration());\n }\n });\n\t\t\n\t\t\n\n \n \n selectionHampePanel.addListener(new ActionListener() {\n public void actionPerformed(ActionEvent e) {\n controller.selectionNotesHampesDirectionsSet(selectionHampePanel.getHampeDirection());\n }\n });\n \n \n \n \n \n panelBarreDeMesure.addListener(new ActionListener() {\n\n public void actionPerformed(ActionEvent e) {\n final BarreDeMesure barre = (BarreDeMesure) getPartitionPanel().getSelection().getElementMusicalUnique();\n final BarreDeMesure nouvelleBarre = new BarreDeMesure(barre.getDebutMoment(), panelBarreDeMesure.getBarreDeMesureType());\n getHistoire().executer(\n new PartitionActionElementMusicalRemplacer(\n barre,\n nouvelleBarre));\n getPartitionPanel().setSelection(new Selection(nouvelleBarre));\n getPartitionPanel().calculer(barre.getDebutMoment());\n \n }\n\n });\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n controller.addControllerListener(new ControllerListener() {\n\n public void whenUpdate(Controller partitionPanel) {\n panelNotes.setVisible(false); \n panelBarreDeMesure.setVisible(false);\n \n \n \n if(!partitionPanel.isSelection())\n {\n panelNotes.setVisible(true);\n return;\n }\n \n \n Selection selection = partitionPanel.getSelection();\n \n if(selection.isSingleton())\n {\n ElementMusical el = selection.getElementMusicalUnique();\n\n if(el instanceof ElementMusicalDuree)\n {\n if(el instanceof Silence)\n dureePanel.afficherSilence();\n else\n dureePanel.afficherNotes();\n \n dureePanel.setDuree(((ElementMusicalDuree) el).getDuree());\n if(selection.getNotes().iterator().hasNext())\n {\n Note note = selection.getNotes().iterator().next();\n menuNoteLieeALaSuivante.setSelected(note.isLieeALaSuivante());\n menuNoteLieeALaSuivante.setVisible(true);\n }\n else\n {\n menuNoteLieeALaSuivante.setVisible(false);\n }\n panelNotes.setVisible(true);\n }\n else if(el instanceof BarreDeMesure)\n {\n panelBarreDeMesure.setVisible(true);\n panelBarreDeMesure.setBarreDeMesureType(((BarreDeMesure) el).getBarreDeMesureType());\n }\n }\n else\n {\n dureePanel.afficherNotes();\n panelNotes.setVisible(true);\n dureePanel\n .setDuree(\n PartitionPanelModeEcriture.getCurseurNoteDureeEntree()\n );\n }\n \n if(selection.getNotes().iterator().hasNext())\n {\n selectionHampePanel.setHampeDirection(selection.getNotes().iterator().next().getHampeDirection());\n }\n \n }\n\n\n });\n \n \n \n setLocationRelativeTo(null);\n \n }", "private void buildNamedColors(JPanel panel, ResourceBundle messageBundle) {\n dragDropColorList = new DragDropColorList(swingController, preferences);\r\n\r\n // create current list of colours\r\n JScrollPane scrollPane = new JScrollPane(dragDropColorList);\r\n addGB(panel, scrollPane, 0, 0, 5, 1);\r\n\r\n dragDropColorList.addListSelectionListener(this);\r\n\r\n // build out the CRUD GUI.\r\n addNamedColorButton = new JButton(\r\n messageBundle.getString(\"viewer.dialog.viewerPreferences.section.annotations.named.add.label\"));\r\n addNamedColorButton.addActionListener(this);\r\n addNamedColorButton.setEnabled(true);\r\n\r\n removeNamedColorButton = new JButton(\r\n messageBundle.getString(\"viewer.dialog.viewerPreferences.section.annotations.named.remove.label\"));\r\n removeNamedColorButton.addActionListener(this);\r\n removeNamedColorButton.setEnabled(false);\r\n\r\n updateNamedColorButton = new JButton(\r\n messageBundle.getString(\"viewer.dialog.viewerPreferences.section.annotations.named.edit.label\"));\r\n updateNamedColorButton.addActionListener(this);\r\n updateNamedColorButton.setEnabled(false);\r\n\r\n colorButton = new ColorChooserButton(Color.DARK_GRAY);\r\n colorButton.setEnabled(true);\r\n colorLabelTextField = new JTextField(\"\");\r\n colorLabelTextField.setEnabled(true);\r\n\r\n // add, edit remove controls.\r\n constraints.insets = new Insets(5, 5, 5, 1);\r\n constraints.fill = GridBagConstraints.NONE;\r\n constraints.weightx = 0.01;\r\n constraints.weighty = 1.0;\r\n addGB(panel, colorButton, 0, 1, 1, 1);\r\n\r\n constraints.fill = GridBagConstraints.NONE;\r\n constraints.insets = new Insets(5, 1, 5, 1);\r\n constraints.weightx = 1.0;\r\n constraints.fill = GridBagConstraints.BOTH;\r\n addGB(panel, colorLabelTextField, 1, 1, 1, 1);\r\n\r\n constraints.weightx = 0.01;\r\n constraints.fill = GridBagConstraints.NONE;\r\n addGB(panel, addNamedColorButton, 2, 1, 1, 1);\r\n addGB(panel, updateNamedColorButton, 3, 1, 1, 1);\r\n\r\n constraints.insets = new Insets(5, 0, 5, 5);\r\n addGB(panel, removeNamedColorButton, 4, 1, 1, 1);\r\n }", "public ActorPopup() {\n\t\tsuper(false);\n\t\tCSS.ensureInjected();\n\t\tcreateActions();\n\t\tsetWidget(createContent());\n\t\tsetStylePrimaryName(AbstractField.CSS.cbtAbstractPopup());\n\t}", "public FilterLayerDialog(java.awt.Component c){\r\n\t\tsuper();\r\n\t\tsetModal(true);\r\n\t\tsetResizable(false);\r\n\t\tsetDefaultCloseOperation(JDialog.HIDE_ON_CLOSE);\r\n\t\tcreateGui2();\r\n\t\tpack();\r\n\t\tsetLocationRelativeTo(c);\r\n\t}", "public void showLifeCycleDialog() {\n\t\t\tlifeCycleDialogBox = new DialogBox(true);\n\t\t\tlifeCycleDialogBox.setGlassEnabled(true);\n\t\t\tlifeCycleDialogBox.setText(\"Seguimiento del Documento\");\n\n\t\t\t// Vertical Panel\n\t\t\tVerticalPanel vp = new VerticalPanel();\n\t\t\tvp.setSize(\"100%\", \"100%\");\n\t\t\tvp.add(lifeCycleCellTree);\n\t\t\tvp.add(new HTML(\"&nbsp;\"));\n\t\t\tvp.add(lifeCycleCloseButton);\n\n\t\t\t// Scroll Panel\n\t\t\tScrollPanel scrollPanel = new ScrollPanel();\n\t\t\tif (getUiParams().isMobile())\n\t\t\t\tscrollPanel.setSize(Window.getClientWidth() + \"px\", Window.getClientHeight() + \"px\");\n\t\t\telse\n\t\t\t\tscrollPanel.setSize(Window.getClientWidth() * .4 + \"px\", Window.getClientHeight() * .3 + \"px\");\n\t\t\tscrollPanel.setWidget(vp);\n\t\t\tlifeCycleDialogBox.setWidget(scrollPanel);\n\n\t\t\tDouble d = Window.getClientWidth() * .3;\n\t\t\tif (!getUiParams().isMobile()) \n\t\t\t\tlifeCycleDialogBox.setPopupPosition(d.intValue(), UiTemplate.NORTHSIZE * 3);\n\n\t\t\tlifeCycleDialogBox.show();\n\t\t}", "private void popupCalibratingDialog() {\n AlertDialog.Builder builder = new AlertDialog.Builder(this);\n builder.setTitle(R.string.motion_calibrating);\n builder.setCancelable(false);\n builder.setMessage(R.string.motion_calibrating_message);\n\n calibratingDialog = builder.create();\n calibratingDialog.show();\n }", "public SelectorColor(java.awt.Frame parent, boolean modal) {\n super(parent, modal);\n initComponents();\n }", "public void showGenPopup() {\n\t\ttv_popupTitle.setText(R.string.title3);\n\t\ttv_popupInfo.setText(R.string.description3);\n\t\t\n\t\t// The code below assumes that the root container has an id called 'main'\n\t\t popup.showAtLocation(findViewById(R.id.anchor), Gravity.CENTER, 0, 0);\n\t}", "public void display(){\r\n dlgValidationChks =new CoeusDlgWindow(mdiForm,\"Validation Rules\",true);\r\n dlgValidationChks.addWindowListener(new WindowAdapter(){\r\n public void windowOpened(WindowEvent we){\r\n btnOk.requestFocusInWindow();\r\n btnOk.setFocusable(true);\r\n btnOk.requestFocus();\r\n }\r\n });\r\n dlgValidationChks.addEscapeKeyListener( new AbstractAction(\"escPressed\") {\r\n public void actionPerformed(ActionEvent ar) {\r\n try{\r\n dlgValidationChks.dispose();\r\n }catch(Exception exc){\r\n exc.printStackTrace();\r\n }\r\n }\r\n });\r\n try{\r\n Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize();\r\n dlgValidationChks.setSize(WIDTH, HEIGHT);\r\n Dimension dlgSize = dlgValidationChks.getSize();\r\n dlgValidationChks.setLocation(screenSize.width/2 - (dlgSize.width/2),\r\n screenSize.height/2 - (dlgSize.height/2));\r\n dlgValidationChks.getContentPane().add( this );\r\n dlgValidationChks.setResizable(false);\r\n dlgValidationChks.setVisible(true);\r\n }catch(Exception exc){\r\n exc.printStackTrace();\r\n }\r\n }", "private void settings() {\n mainTitle = makeLabel(\"Settings\", true);\n add(mainTitle);\n add(content);\n add(diffSlider);\n add(colourChooser);\n add(mainB);//button to main menu\n diffSlider.requestFocus();\n }", "public static void main(String args[]) {\n WindowUtils.invokeDialog(new HexColorPanel());\n }", "public PreFilterPopup() {\n\t\tsetWidget(uiBinder.createAndBindUi(this));\n\t\trenderCheckBoxs(eleGradePanelUc, elementaryGrades);\n\t\trenderCheckBoxs(middleGradePanelUc, middleGrades);\n\t\trenderCheckBoxs(highrGradePanelUc, higherGrades);\n\t\trenderCheckBoxs(subjectPanelUc, subjects);\n\t\tsetStaticData();\n\t\teventActions();\n\t\tthis.setStyleName(\"preFilterPopup\");\n\t\tsetPreSelectedFilters(AppClientFactory.getCurrentPlaceToken());\n\t}", "private void promptAddWorker()\n {\n JPanel workerSettingsPanel = new JPanel(new BorderLayout());\n JPanel colourPanel = new JPanel(new GridLayout(1, 2));\n JButton colourButton = new JButton(\"Colour\");\n JLabel colourLabel = new JLabel(\"Choose colour\");\n JLabel nameLabel = new JLabel(\"Enter workers name\");\n colourButton.setBackground(Color.WHITE);\n colourButton.setIcon(new ImageIcon(colorIconImage));\n \n //Show colour chooser dialog\n //Allow user to pick crawlers output colour\n colourButton.addActionListener((ActionEvent e) -> \n {\n Color c = JColorChooser.showDialog(null, \"Choose worker colour\", Color.WHITE);\n colourButton.setBackground(c);\n });\n \n colourPanel.add(colourLabel);\n colourPanel.add(colourButton);\n workerSettingsPanel.add(colourPanel, BorderLayout.NORTH);\n workerSettingsPanel.add(nameLabel);\n \n String name = JOptionPane.showInputDialog(null, workerSettingsPanel, \"Add worker\", JOptionPane.INFORMATION_MESSAGE);\n Color workerColour = colourButton.getBackground();\n \n if(name == null) return;\n \n if(name.equals(\"\"))\n JOptionPane.showMessageDialog(null, \"Invalid worker settings\");\n else if(spider.getWorker(name) != null)\n JOptionPane.showMessageDialog(null, \"Worker names must be unique\");\n else\n {\n spider.addWorker(name, workerColour);\n workerModel.addElement(name);\n }\n }", "public ColorPopupMenu2(ModernWindow parent, Color color) {\r\n mParent = parent;\r\n\r\n mColor = color;\r\n\r\n setup();\r\n }", "private void createChooser(final int nr, final String[] chooserText,\r\n final int pos) {\r\n chooserLabel[nr] = new JLabel();\r\n chooserLabel[nr].setFont(new Font(\"Serif\", Font.BOLD, 14));\r\n chooserLabel[nr].setBounds(10, pos, 150, 25);\r\n\r\n this.add(chooserLabel[nr]);\r\n this.add(new SComponent(chooserLabel[nr], chooserText));\r\n\r\n chooser[nr] = new ColorChooserComboBox();\r\n chooser[nr].setBounds(210, pos, 100, 25);\r\n this.add(chooser[nr]);\r\n }", "private void initComponents() {\n\n jPopupMenu = new javax.swing.JPopupMenu();\n jMenuItemNewKeyFrame = new javax.swing.JMenuItem();\n jMenuItemNewTransition = new javax.swing.JMenuItem();\n jMenuItemPaste = new javax.swing.JMenuItem();\n\n jMenuItemNewKeyFrame.setText(\"New KeyFrame\");\n jMenuItemNewKeyFrame.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseReleased(java.awt.event.MouseEvent evt) {\n jMenuItemNewKeyFrameMouseReleased(evt);\n }\n });\n jPopupMenu.add(jMenuItemNewKeyFrame);\n\n jMenuItemNewTransition.setText(\"New Transition\");\n jMenuItemNewTransition.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseReleased(java.awt.event.MouseEvent evt) {\n jMenuItemNewTransitionMouseReleased(evt);\n }\n });\n jPopupMenu.add(jMenuItemNewTransition);\n\n jMenuItemPaste.setText(\"Paste\");\n jMenuItemPaste.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseReleased(java.awt.event.MouseEvent evt) {\n jMenuItemPasteMouseReleased(evt);\n }\n });\n jPopupMenu.add(jMenuItemPaste);\n\n setBackground(new java.awt.Color(255, 255, 255));\n setComponentPopupMenu(jPopupMenu);\n setOpaque(true);\n addMouseListener(new java.awt.event.MouseAdapter() {\n public void mousePressed(java.awt.event.MouseEvent evt) {\n formMousePressed(evt);\n }\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n formMouseClicked(evt);\n }\n });\n addComponentListener(new java.awt.event.ComponentAdapter() {\n public void componentResized(java.awt.event.ComponentEvent evt) {\n formComponentResized(evt);\n }\n });\n addPropertyChangeListener(new java.beans.PropertyChangeListener() {\n public void propertyChange(java.beans.PropertyChangeEvent evt) {\n formPropertyChange(evt);\n }\n });\n }", "public CustomPopUp(String lblText, String titleText, String btnText, int height, int width) \r\n {\r\n \r\n stage = new Stage();\r\n btn = new Button(btnText);\r\n prompt = new Label(lblText);\r\n pane = new VBox();\r\n pane.getChildren().addAll(prompt,btn);\r\n pane.setAlignment(Pos.CENTER);\r\n scene = new Scene(pane,height,width);\r\n stage.setTitle(titleText);\r\n stage.setScene(scene);\r\n \r\n btn.setOnAction(event ->\r\n {\r\n this.stage.close();\r\n }); \r\n \r\n }", "public Pane makeDisplayPane(){\n CheckBox cbWave1 = new CheckBox(\"Waveform\");\r\n // CheckBox cbWave2 = new CheckBox(\"wave 2\");\r\n // CheckBox cbWaveMath = new CheckBox(\"wave math\");\r\n\r\n //set them all as on\r\n cbWave1.setSelected(true);\r\n // cbWave2.setSelected(true);\r\n // cbWaveMath.setSelected(true);\r\n\r\n\r\n //add functionallity\r\n cbWave1.selectedProperty().addListener(new ChangeListener<Boolean>() {\r\n @Override\r\n public void changed(ObservableValue<? extends Boolean> observable, Boolean oldValue, Boolean newValue) {\r\n showWave1=newValue;\r\n displayAllWaves();\r\n }\r\n });\r\n\r\n\r\n CheckBox drawFromRisingEdgeCB = new CheckBox(\"Draw from rising edge\");\r\n drawFromRisingEdgeCB.setSelected(drawFromRisingEdge);\r\n // cbWave2.setSelected(true);\r\n // cbWaveMath.setSelected(true);\r\n\r\n\r\n //add functionallity\r\n drawFromRisingEdgeCB.selectedProperty().addListener(new ChangeListener<Boolean>() {\r\n @Override\r\n public void changed(ObservableValue<? extends Boolean> observable, Boolean oldValue, Boolean newValue) {\r\n drawFromRisingEdge=newValue;\r\n displayAllWaves();\r\n }\r\n });\r\n\r\n /*\r\n cbWave2.selectedProperty().addListener(new ChangeListener<Boolean>() {\r\n @Override\r\n public void changed(ObservableValue<? extends Boolean> observable, Boolean oldValue, Boolean newValue) {\r\n showWave2=newValue;\r\n displayAllWaves();\r\n }\r\n });\r\n cbWaveMath.selectedProperty().addListener(new ChangeListener<Boolean>() {\r\n @Override\r\n public void changed(ObservableValue<? extends Boolean> observable, Boolean oldValue, Boolean newValue) {\r\n showWaveMath=newValue;\r\n displayAllWaves();\r\n }\r\n });\r\n*/\r\n ColorPicker wave1ColourPicker = new ColorPicker(wave1Colour);\r\n wave1ColourPicker.setOnAction(new EventHandler() {\r\n public void handle(Event t) {\r\n wave1Colour=wave1ColourPicker.getValue();\r\n displayAllWaves();\r\n }\r\n });\r\n/*\r\n ColorPicker wave2ColourPicker = new ColorPicker(wave2Colour);\r\n wave2ColourPicker.setOnAction(new EventHandler() {\r\n public void handle(Event t) {\r\n wave2Colour=wave2ColourPicker.getValue();\r\n displayAllWaves();\r\n }\r\n });\r\n\r\n ColorPicker waveMathColourPicker = new ColorPicker(waveMathColour);\r\n waveMathColourPicker.setOnAction(new EventHandler() {\r\n public void handle(Event t) {\r\n waveMathColour=waveMathColourPicker.getValue();\r\n displayAllWaves();\r\n }\r\n });\r\n*/\r\n\r\n HBox w1 = new HBox();\r\n w1.getChildren().addAll(cbWave1,wave1ColourPicker);\r\n/*\r\n HBox w2 = new HBox();\r\n w2.getChildren().addAll(cbWave2,wave2ColourPicker);\r\n\r\n HBox wm = new HBox();\r\n wm.getChildren().addAll(cbWaveMath,waveMathColourPicker);\r\n*/\r\n SpinnerValueFactory<Integer> valueFactory = new SpinnerValueFactory.IntegerSpinnerValueFactory(1, 5, waveThickness);\r\n\r\n Spinner waveThicknessSpinner = new Spinner(valueFactory);\r\n waveThicknessSpinner.valueProperty().addListener((obs, oldValue, newValue) -> waveThickness=(int)newValue);\r\n waveThicknessSpinner.valueProperty().addListener((obs, oldValue, newValue) -> displayAllWaves());\r\n\r\n Label l = new Label(\"Thickness\");\r\n\r\n //add them to a vertical box to look nicer and save space\r\n //VBox cbVBox = new VBox(w1,w2,wm,waveThicknessSpinner);\r\n\r\n GridPane gp = new GridPane();\r\n gp.add(cbWave1,0,0);\r\n gp.add(wave1ColourPicker,1,0);\r\n/*\r\n gp.add(cbWave2,0,1);\r\n gp.add(wave2ColourPicker,1,1);\r\n\r\n gp.add(cbWaveMath,0,2);\r\n gp.add(waveMathColourPicker,1,2);\r\n*/\r\n gp.add(l,0,3);\r\n gp.add(waveThicknessSpinner,1,3);\r\n VBox V = new VBox(gp,drawFromRisingEdgeCB);\r\n return V;\r\n }", "public static void initializePopup(){\n\n popup = new PopupMenu();\n\n // Initialize menu items\n MenuItem exitItem = new MenuItem(\"Exit\");\n MenuItem pauseItem = new MenuItem(\"Pause\");\n MenuItem resumeItem = new MenuItem(\"Resume\");\n\n // Exit listener\n exitItem.addActionListener(arg0 -> System.exit(0));\n\n // Pause listener\n pauseItem.addActionListener(arg0 -> {\n paused = true;\n pauseItem.setEnabled(false);\n resumeItem.setEnabled(true);\n });\n\n // Resume listener\n resumeItem.addActionListener(arg0 -> {\n paused = false;\n pauseItem.setEnabled(true);\n resumeItem.setEnabled(false);\n });\n\n resumeItem.setEnabled(false);\n\n popup.add(resumeItem);\n popup.add(pauseItem);\n popup.add(exitItem);\n }", "public SettingsPanelEmployee() {\n initComponents();\n \n setBackground (new Color (51, 51, 51)); \n \n bgGender.add(rbMale);\n bgGender.add(rbFemale);\n \n txtfAccountImageTextBox.setEditable(false);\n \n accountImageDialog.setUndecorated (true);\n accountImageDialog.getContentPane().setBackground(new Color (35, 35, 35));\n \n updateAccountInformation ();\n \n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n jColorChooser5 = new javax.swing.JColorChooser();\n couleur = new javax.swing.JButton();\n type_ligne = new javax.swing.JComboBox<>();\n libre = new javax.swing.JToggleButton();\n rectangle = new javax.swing.JToggleButton();\n cercle = new javax.swing.JToggleButton();\n ligne = new javax.swing.JToggleButton();\n selection = new javax.swing.JToggleButton();\n remplissage = new javax.swing.JToggleButton();\n jSeparator12 = new javax.swing.JSeparator();\n jSeparator10 = new javax.swing.JSeparator();\n jSeparator9 = new javax.swing.JSeparator();\n jSeparator7 = new javax.swing.JSeparator();\n jSeparator4 = new javax.swing.JSeparator();\n jSeparator8 = new javax.swing.JSeparator();\n jSeparator11 = new javax.swing.JSeparator();\n\n setBackground(new java.awt.Color(0, 0, 0));\n setMinimumSize(new java.awt.Dimension(40, 600));\n\n couleur.setBackground(new java.awt.Color(24, 44, 97));\n couleur.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/appdessin/images/couleur.png\"))); // NOI18N\n couleur.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseEntered(java.awt.event.MouseEvent evt) {\n couleurMouseEntered(evt);\n }\n public void mouseExited(java.awt.event.MouseEvent evt) {\n couleurMouseExited(evt);\n }\n });\n couleur.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n couleurActionPerformed(evt);\n }\n });\n\n type_ligne.setBackground(new java.awt.Color(0, 0, 0));\n type_ligne.setFont(new java.awt.Font(\"Trebuchet MS\", 0, 14)); // NOI18N\n type_ligne.setModel(new javax.swing.DefaultComboBoxModel<>(new String[] { \"basic\", \"dashed\", \"lvl3\" }));\n type_ligne.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n type_ligneActionPerformed(evt);\n }\n });\n\n libre.setBackground(new java.awt.Color(24, 44, 97));\n libre.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/appdessin/images/libre.png\"))); // NOI18N\n libre.setActionCommand(\"libre\");\n libre.setOpaque(true);\n libre.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseEntered(java.awt.event.MouseEvent evt) {\n libreMouseEntered(evt);\n }\n public void mouseExited(java.awt.event.MouseEvent evt) {\n libreMouseExited(evt);\n }\n });\n libre.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n libreActionPerformed(evt);\n }\n });\n\n rectangle.setBackground(new java.awt.Color(24, 44, 97));\n rectangle.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/appdessin/images/rectangle.png\"))); // NOI18N\n rectangle.setActionCommand(\"rectangle\");\n rectangle.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseEntered(java.awt.event.MouseEvent evt) {\n rectangleMouseEntered(evt);\n }\n public void mouseExited(java.awt.event.MouseEvent evt) {\n rectangleMouseExited(evt);\n }\n });\n rectangle.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n rectangleActionPerformed(evt);\n }\n });\n\n cercle.setBackground(new java.awt.Color(24, 44, 97));\n cercle.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/appdessin/images/cercle.png\"))); // NOI18N\n cercle.setActionCommand(\"cercle\");\n cercle.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseEntered(java.awt.event.MouseEvent evt) {\n cercleMouseEntered(evt);\n }\n public void mouseExited(java.awt.event.MouseEvent evt) {\n cercleMouseExited(evt);\n }\n });\n cercle.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n cercleActionPerformed(evt);\n }\n });\n\n ligne.setBackground(new java.awt.Color(24, 44, 97));\n ligne.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/appdessin/images/ligne.png\"))); // NOI18N\n ligne.setActionCommand(\"ligne\");\n ligne.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseEntered(java.awt.event.MouseEvent evt) {\n ligneMouseEntered(evt);\n }\n public void mouseExited(java.awt.event.MouseEvent evt) {\n ligneMouseExited(evt);\n }\n });\n ligne.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n ligneActionPerformed(evt);\n }\n });\n\n selection.setBackground(new java.awt.Color(24, 44, 97));\n selection.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/appdessin/images/selection.png\"))); // NOI18N\n selection.setActionCommand(\"selection\");\n selection.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseEntered(java.awt.event.MouseEvent evt) {\n selectionMouseEntered(evt);\n }\n public void mouseExited(java.awt.event.MouseEvent evt) {\n selectionMouseExited(evt);\n }\n });\n selection.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n selectionActionPerformed(evt);\n }\n });\n\n remplissage.setBackground(new java.awt.Color(24, 44, 97));\n remplissage.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/appdessin/images/fill.png\"))); // NOI18N\n remplissage.setActionCommand(\"selection\");\n remplissage.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseEntered(java.awt.event.MouseEvent evt) {\n remplissageMouseEntered(evt);\n }\n public void mouseExited(java.awt.event.MouseEvent evt) {\n remplissageMouseExited(evt);\n }\n });\n remplissage.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n remplissageActionPerformed(evt);\n }\n });\n\n jSeparator12.setForeground(new java.awt.Color(255, 255, 255));\n\n jSeparator10.setForeground(new java.awt.Color(255, 255, 255));\n\n jSeparator9.setForeground(new java.awt.Color(255, 255, 255));\n\n jSeparator7.setForeground(new java.awt.Color(255, 255, 255));\n\n jSeparator4.setForeground(new java.awt.Color(255, 255, 255));\n\n jSeparator8.setForeground(new java.awt.Color(255, 255, 255));\n\n jSeparator11.setForeground(new java.awt.Color(255, 255, 255));\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(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(type_ligne, 0, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jSeparator9)\n .addComponent(jSeparator12, javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(libre, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, 84, Short.MAX_VALUE)\n .addComponent(ligne, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(cercle, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(rectangle, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(selection, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addGroup(javax.swing.GroupLayout.Alignment.LEADING, layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)\n .addComponent(jSeparator10, javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(remplissage, javax.swing.GroupLayout.DEFAULT_SIZE, 84, Short.MAX_VALUE))\n .addGap(0, 0, Short.MAX_VALUE))\n .addComponent(couleur, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jSeparator7, javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jSeparator4, javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jSeparator8, javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jSeparator11))\n .addGap(138, 138, 138))\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGap(33, 33, 33)\n .addComponent(libre)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jSeparator11, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(ligne)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jSeparator8, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(cercle, javax.swing.GroupLayout.PREFERRED_SIZE, 55, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jSeparator4, javax.swing.GroupLayout.PREFERRED_SIZE, 2, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(rectangle, javax.swing.GroupLayout.PREFERRED_SIZE, 55, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jSeparator7, javax.swing.GroupLayout.PREFERRED_SIZE, 2, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(couleur)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jSeparator9, javax.swing.GroupLayout.PREFERRED_SIZE, 2, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(selection, javax.swing.GroupLayout.PREFERRED_SIZE, 57, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jSeparator10, javax.swing.GroupLayout.PREFERRED_SIZE, 2, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(3, 3, 3)\n .addComponent(remplissage, javax.swing.GroupLayout.PREFERRED_SIZE, 57, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jSeparator12, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(type_ligne, javax.swing.GroupLayout.PREFERRED_SIZE, 36, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addContainerGap(47, Short.MAX_VALUE))\n );\n }", "public JPopupButton() {\n initComponents();\n }", "public void actionPerformed(ActionEvent event) {\n if (event.getSource() == pencil) {\n currentTool = \"Pencil\";\n canvas.callPencil();\n canvas.setThickness(1);\n }\n else if (event.getSource() == brush) {\n currentTool = \"Brush\";\n canvas.callBrush(thicknessSlider.getValue());\n }\n else if (event.getSource() == eraser) {\n currentTool = \"Eraser\";\n canvas.callEraser(thicknessSlider.getValue());\n }\n else if (event.getSource() == clearButton) {\n canvas.clear();\n }\n else if (event.getSource() == colorPickerBG) {\n Color color = JColorChooser.showDialog(null,\n \"Pick your color!\", null);\n if (color == null)\n color = (Color.WHITE);\n canvas.setColor(color);\n }\n else if (event.getSource() == colorPickerTools) {\n Color color = JColorChooser.showDialog(null,\n \"Pick your color!\", null);\n if (color == null)\n color = (Color.BLACK);\n canvas.setToolColor(color);\n\n // Tools need to be called for color to switch properly\n if (currentTool == \"Pencil\") {\n canvas.callPencil();\n }\n else if (currentTool == \"Brush\") {\n canvas.callBrush(thicknessSlider.getValue());\n }\n else if (currentTool == \"Eraser\") {\n canvas.callEraser(thicknessSlider.getValue());\n }\n }\n else if (event.getSource() == saveButton) {\n fileChooser = new JFileChooser();\n FileNameExtensionFilter filter = new FileNameExtensionFilter(\n \"PNG Images\", \"png\");\n fileChooser.setFileFilter(filter);\n fileChooser.setSelectedFile(new File(\"Untitled.png\"));\n if (fileChooser.showSaveDialog(saveButton) ==\n JFileChooser.APPROVE_OPTION) {\n file = fileChooser.getSelectedFile();\n canvas.save(file);\n }\n }\n else if (event.getSource() == loadButton) {\n fileChooser = new JFileChooser();\n FileNameExtensionFilter filter = new FileNameExtensionFilter(\n \"PNG Images\", \"png\");\n fileChooser.setFileFilter(filter);\n if (fileChooser.showOpenDialog(loadButton) ==\n JFileChooser.APPROVE_OPTION) {\n file = fileChooser.getSelectedFile();\n canvas.setColor(Color.WHITE);\n canvas.load(file);\n canvas.callEraser(thicknessSlider.getValue());\n }\n }\n }", "public Kal()\n {\n setDefaultCloseOperation( EXIT_ON_CLOSE );\n \n setLayout( new FlowLayout() );\n \n allTheShapes = new Shape[1000];\n \n boxButton = new JButton(\"box\");\n add(boxButton);\n boxButton.addActionListener(this);\n \n addMouseListener(this);\n addMouseMotionListener(this);\n \n setSize( 500,500);\n setVisible( true);\n \n theColorPicker = new ColorPicker3();\n \n }", "public ColorChooser(final GraphAlgController mainclass) {\r\n super(mainclass.getGUI(), true);\r\n this.mainclass = mainclass;\r\n\r\n drawer = mainclass.getGraphDrawer();\r\n colors = (Color[]) drawer.getColorSettings().clone();\r\n\r\n if (mainclass.getLanguageSettings() == LANGUAGE_GERMAN) {\r\n setTitle(\"Farbeinstellungen\");\r\n } else {\r\n setTitle(\"Color Settings\");\r\n }\r\n\r\n this.setSize(330, 320);\r\n this.getContentPane().setLayout(null);\r\n this.setResizable(false);\r\n\r\n Dimension d = Toolkit.getDefaultToolkit().getScreenSize();\r\n setLocation((d.width - getSize().width) / 2,\r\n (d.height - getSize().height) / 2);\r\n\r\n this.setContentPane(new ColorPanel());\r\n }", "private void createDisplayEditOverlay() {\n\t}", "protected void initializePopup() {\r\n\t popup = new JPopupMenu();\r\n\t popup.setBorder(BorderFactory.createLineBorder(Color.black));\r\n\t popup.setLayout(new BorderLayout());\r\n\t popup.addPopupMenuListener(this);\r\n\t popup.add(panel, BorderLayout.CENTER);\r\n\t}", "protected void showPopup() {\r\n if (_component != null) {\r\n JPopupMenu popupMenu = new JPopupMenu();\r\n popupMenu.add(_component);\r\n popupMenu.pack(); \r\n popupMenu.show(this, 0, getHeight());\r\n }\r\n }", "public void paintWheel() {\n \t\n //initialColor is the initially-selected color to be shown in the rectangle on the left of the arrow.\n //for example, 0xff000000 is black, 0xff0000ff is blue. Please be aware of the initial 0xff which is the alpha.\n AmbilWarnaDialog dialog = new AmbilWarnaDialog(c, currentColor, new OnAmbilWarnaListener() {\n \n // Executes, when user click Cancel button\n @Override\n public void onCancel(AmbilWarnaDialog dialog){\n }\n \n // Executes, when user click OK button\n @Override\n public void onOk(AmbilWarnaDialog dialog, int color) {\n \t\n \tcurrentColor=color;\n \t//convert RGB values to float(0-1) for OpenGL use\n \tfloat r=(float)Color.red(color)/255;\n \tfloat g=(float)Color.green(color)/255;\n \tfloat b=(float)Color.blue(color)/255;\n \t\n \tsetModelColor(r,g,b);\n }\n });\n dialog.show();\n }", "private void initializeColorPanels() {\n\t\tupperColorPanel = new JPanel();\n\t\tlowerColorPanel = new JPanel();\n\t\t\n\t\tupperColorPanel.setSize(300, 60);\n\t\tlowerColorPanel.setSize(300, 60);\n\t\t\n\t\tupperColorPanel.setLocation(200, 100);\n\t\tlowerColorPanel.setLocation(200, 160);\n\t\t\n\t\tupperColorPanel.setLayout(new GridLayout(2,5));\n\t\tlowerColorPanel.setLayout(new GridLayout(2,5));\n\t\t\n\t\tfor (int i = 0; i < Q.colors.length; i++) {\n\t\t\tJTextField color = new JTextField();\n\t\t\tcolor.setName(COLOR_TEXT_FIELD_TITLES[i]);\n\t\t\tcolor.setText(\"P\" + (i + 1));\n\t\t\tcolor.setBackground(Q.colors[i]);\n\t\t\tcolor.setEnabled(false);\n\t\t\t\n\t\t\tJTextField red = new JTextField(\"\" + Q.colors[i].getRed());\n\t\t\tred.setName(RED_TEXT_FIELD_TITLES[i]);\n\t\t\tJTextField green = new JTextField(\"\" + Q.colors[i].getGreen());\n\t\t\tgreen.setName(GREEN_TEXT_FIELD_TITLES[i]);\n\t\t\tJTextField blue = new JTextField(\"\" + Q.colors[i].getBlue());\n\t\t\tblue.setName(BLUE_TEXT_FIELD_TITLES[i]);\n\t\t\t\n\t\t\t\n\t\t\tred.addActionListener(this);\n\t\t\tgreen.addActionListener(this);\n\t\t\tblue.addActionListener(this);\n\t\t\t\n\t\t\tJComboBox box = new JComboBox(playerTypeNames);\n\t\t\tbox.setName(COMBO_BOX_TITLES[i]);\n\t\t\tbox.setSelectedIndex(Q.playerTypes[i]);\n\t\t\tbox.addItemListener(this);\n\t\t\t\n\t\t\treds.add(red);\n\t\t\tgreens.add(green);\n\t\t\tblues.add(blue);\n\t\t\tshowColor.add(color);\n\t\t\tboxes.add(box);\n\t\t\t\n\t\t\tJPanel playerPanel = new JPanel();\n\t\t\tplayerPanel.setLayout(new GridLayout(1,2));\n\t\t\tJPanel rgbPanel = new JPanel();\n\t\t\trgbPanel.setLayout(new GridLayout(1,3));\n\t\t\t\n\t\t\tif (i < 2) {\n\t\t\t\tplayerPanel.add(color);\n\t\t\t\tplayerPanel.add(box);\n\t\t\t\trgbPanel.add(red);\n\t\t\t\trgbPanel.add(green);\n\t\t\t\trgbPanel.add(blue);\n\t\t\t\tupperColorPanel.add(playerPanel);\n\t\t\t\tupperColorPanel.add(rgbPanel);\n\t\t\t}\n\t\t\telse {\n\t\t\t\tplayerPanel.add(color);\n\t\t\t\tplayerPanel.add(box);\n\t\t\t\trgbPanel.add(red);\n\t\t\t\trgbPanel.add(green);\n\t\t\t\trgbPanel.add(blue);\n\t\t\t\tlowerColorPanel.add(playerPanel);\n\t\t\t\tlowerColorPanel.add(rgbPanel);\n\t\t\t\n\t\t\t}\n\t\t\t\n\t\t}\n\t\t\n\t\tadd(upperColorPanel);\n\t\tif (Q.players == 4) {\n\t\t\tadd(lowerColorPanel);\n\t\t}\n\t\n\t}", "@Override\n public void onClick(View v) {\n content.removeAllViews();\n final View view = View.inflate(getActivity(), R.layout.fragment_colour_picker, null);\n\n final View colour = view.findViewById(R.id.colour_preview);\n TextView colourName = (TextView) view.findViewById(R.id.colour_id);\n\n colour.setBackgroundColor(getResources().getColor(R.color.accent));\n colourName.setText(R.string.accent);\n\n TextView cancel, save;\n cancel = (TextView) view.findViewById(R.id.cancel_button);\n save = (TextView) view.findViewById(R.id.save_button);\n\n // Change Seekbars to reflect chosen colour\n final SeekBar redBar, greenBar, blueBar;\n redBar = (SeekBar) view.findViewById(R.id.red_bar);\n greenBar = (SeekBar) view.findViewById(R.id.green_bar);\n blueBar = (SeekBar) view.findViewById(R.id.blue_bar);\n\n redBar.setProgress(accentColour.red());\n greenBar.setProgress(accentColour.green());\n blueBar.setProgress(accentColour.blue());\n\n // show hex value\n EditText hex = (EditText) view.findViewById(R.id.hex_code);\n hex.setText(String.format(\"#%s\", accentColour.asHex()));\n\n // show rgb numbers\n final EditText red, blue, green;\n red = (EditText) view.findViewById(R.id.rgb_red);\n green = (EditText) view.findViewById(R.id.rgb_green);\n blue = (EditText) view.findViewById(R.id.rgb_blue);\n\n red.setText(String.valueOf(accentColour.red()));\n green.setText(String.valueOf(accentColour.green()));\n blue.setText(String.valueOf(accentColour.blue()));\n\n class SeekChanged implements SeekBar.OnSeekBarChangeListener {\n @Override\n public void onProgressChanged(SeekBar seekBar, int progress, boolean fromUser) {\n if(fromUser) {\n red.setText(String.valueOf(redBar.getProgress()));\n green.setText(String.valueOf(greenBar.getProgress()));\n blue.setText(String.valueOf(blueBar.getProgress()));\n }\n colour.setBackgroundColor(Color.rgb(redBar.getProgress(), greenBar.getProgress(), blueBar.getProgress()));\n }\n\n @Override\n public void onStartTrackingTouch(SeekBar seekBar) {}\n @Override\n public void onStopTrackingTouch(SeekBar seekBar) {}\n }\n\n redBar.setOnSeekBarChangeListener(new SeekChanged());\n greenBar.setOnSeekBarChangeListener(new SeekChanged());\n blueBar.setOnSeekBarChangeListener(new SeekChanged());\n\n cancel.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n content.removeAllViews();\n content.addView(settings);\n }\n });\n save.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n // save colour as ColourPack and add to Theme\n Settings.Section section;\n section = MainActivity.instance.themeSettings.getSection(Res.THEME_SECTION_ACCENT);\n\n EditText red, green, blue;\n red = (EditText) view.findViewById(R.id.rgb_red);\n green = (EditText) view.findViewById(R.id.rgb_green);\n blue = (EditText) view.findViewById(R.id.rgb_blue);\n\n String r, g, b;\n r = red.getText().toString();\n g = green.getText().toString();\n b = blue.getText().toString();\n\n section.setProperty(Res.THEME_KEY_RED, Integer.parseInt(r));\n section.setProperty(Res.THEME_KEY_GREEN, Integer.parseInt(g));\n section.setProperty(Res.THEME_KEY_BLUE, Integer.parseInt(b));\n MainActivity.instance.themeSettings.save();\n\n // go back to theme settings\n content.removeAllViews();\n content.addView(settings);\n }\n });\n\n content.addView(view);\n }", "public void triggerPopup();", "public BillPopup() {\n initComponents();\n }", "@Override\n public void onClick(View v) {\n content.removeAllViews();\n final View view = View.inflate(getActivity(), R.layout.fragment_colour_picker, null);\n\n final View colour = view.findViewById(R.id.colour_preview);\n TextView colourName = (TextView) view.findViewById(R.id.colour_id);\n\n colour.setBackgroundColor(getResources().getColor(R.color.secondary));\n colourName.setText(R.string.secondary);\n\n TextView cancel, save;\n cancel = (TextView) view.findViewById(R.id.cancel_button);\n save = (TextView) view.findViewById(R.id.save_button);\n\n // Change Seekbars to reflect chosen colour\n final SeekBar redBar, greenBar, blueBar;\n redBar = (SeekBar) view.findViewById(R.id.red_bar);\n greenBar = (SeekBar) view.findViewById(R.id.green_bar);\n blueBar = (SeekBar) view.findViewById(R.id.blue_bar);\n\n redBar.setProgress(secondaryColour.red());\n greenBar.setProgress(secondaryColour.green());\n blueBar.setProgress(secondaryColour.blue());\n\n // show hex value\n EditText hex = (EditText) view.findViewById(R.id.hex_code);\n hex.setText(String.format(\"#%s\", secondaryColour.asHex()));\n\n // show rgb numbers\n final EditText red, blue, green;\n red = (EditText) view.findViewById(R.id.rgb_red);\n green = (EditText) view.findViewById(R.id.rgb_green);\n blue = (EditText) view.findViewById(R.id.rgb_blue);\n\n red.setText(String.valueOf(secondaryColour.red()));\n green.setText(String.valueOf(secondaryColour.green()));\n blue.setText(String.valueOf(secondaryColour.blue()));\n\n class SeekChanged implements SeekBar.OnSeekBarChangeListener {\n @Override\n public void onProgressChanged(SeekBar seekBar, int progress, boolean fromUser) {\n if(fromUser) {\n red.setText(String.valueOf(redBar.getProgress()));\n green.setText(String.valueOf(greenBar.getProgress()));\n blue.setText(String.valueOf(blueBar.getProgress()));\n }\n colour.setBackgroundColor(Color.rgb(redBar.getProgress(), greenBar.getProgress(), blueBar.getProgress()));\n }\n\n @Override\n public void onStartTrackingTouch(SeekBar seekBar) {}\n @Override\n public void onStopTrackingTouch(SeekBar seekBar) {}\n }\n\n redBar.setOnSeekBarChangeListener(new SeekChanged());\n greenBar.setOnSeekBarChangeListener(new SeekChanged());\n blueBar.setOnSeekBarChangeListener(new SeekChanged());\n\n cancel.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n content.removeAllViews();\n content.addView(settings);\n }\n });\n save.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n // save colour as ColourPack and add to Theme\n Settings.Section section;\n section = MainActivity.instance.themeSettings.getSection(Res.THEME_SECTION_SECONDARY);\n\n EditText red, green, blue;\n red = (EditText) view.findViewById(R.id.rgb_red);\n green = (EditText) view.findViewById(R.id.rgb_green);\n blue = (EditText) view.findViewById(R.id.rgb_blue);\n\n String r, g, b;\n r = red.getText().toString();\n g = green.getText().toString();\n b = blue.getText().toString();\n\n section.setProperty(Res.THEME_KEY_RED, Integer.parseInt(r));\n section.setProperty(Res.THEME_KEY_GREEN, Integer.parseInt(g));\n section.setProperty(Res.THEME_KEY_BLUE, Integer.parseInt(b));\n MainActivity.instance.themeSettings.save();\n\n // go back to theme settings\n content.removeAllViews();\n content.addView(settings);\n }\n });\n\n content.addView(view);\n }", "public CGlassEclipseColorSchemeExtension () {\r\n updateUI();\r\n }", "public void refreshColorPanel() {\n if (quickPaintAnnotationButton != null) {\r\n quickPaintAnnotationButton.refreshColorPanel();\r\n }\r\n\r\n colorFilterMenuItem.removeAll();\r\n // build colour submenu based on colour labels\r\n ButtonGroup filterColorMenuGroup = new ButtonGroup();\r\n JCheckBoxMenuItem filterColorAllMenuItem = new JCheckBoxMenuItem();\r\n filterColorAllMenuItem.setAction(new FilterColorAction(\r\n messageBundle.getString(\"viewer.utilityPane.markupAnnotation.toolbar.filter.option.byColor.all.label\"),\r\n null));\r\n colorFilterMenuItem.add(filterColorAllMenuItem);\r\n filterColorMenuGroup.add(filterColorAllMenuItem);\r\n ArrayList<DragDropColorList.ColorLabel> colorLabels = DragDropColorList.retrieveColorLabels();\r\n int defaultColor = preferences.getInt(ViewerPropertiesManager.PROPERTY_ANNOTATION_FILTER_COLOR_COLUMN, -1);\r\n JCheckBoxMenuItem filterColorMenuItem;\r\n if (colorLabels.size() > 0) {\r\n for (DragDropColorList.ColorLabel colorLabel : colorLabels) {\r\n filterColorMenuItem = new JCheckBoxMenuItem();\r\n FilterColorAction sortAction = new FilterColorAction(\r\n colorLabel.getLabel(),\r\n colorLabel.getColor());\r\n filterColorMenuItem.setAction(sortAction);\r\n colorFilterMenuItem.add(filterColorMenuItem);\r\n filterColorMenuGroup.add(filterColorMenuItem);\r\n if (defaultColor != -1 && defaultColor == sortAction.getColorRGB()) {\r\n filterColorMenuItem.setSelected(true);\r\n filterColorAction = sortAction;\r\n }\r\n }\r\n }\r\n if (defaultColor == -1) {\r\n filterColorAllMenuItem.setSelected(true);\r\n filterColorAction = filterColorAllMenuItem.getAction();\r\n }\r\n }", "public CustomPopup(Window base, Component component, DatePicker parentDatePicker) {\n super();\n this.parentDatePicker = parentDatePicker;\n JPanel panel = new JPanel();\n panel.add(component);\n panel.setBorder(new JPopupMenu().getBorder());\n displayWindow = new JWindow(base);\n displayWindow.getContentPane().add(panel);\n displayWindow.setFocusable(true);\n displayWindow.pack();\n displayWindow.validate();\n }", "public void packUp() {\n news.themeColour = (String) colourChooser.getSelectedItem(); //gets the currently selected colour\n news.write(); //writes high scores and selected colour to file\n }", "private void displayPopUp(Parent root) {\n Scene scene = new Scene(root, 300, 200);\n Stage stage = new Stage();\n stage.initModality(Modality.APPLICATION_MODAL);\n stage.setScene(scene);\n stage.showAndWait();\n }", "private void initOptionsMenu() {\n final Function<Float, Void> changeAlpha = new Function<Float, Void>() {\n @Override\n public Void apply(Float input) {\n skyAlpha = Math.round(input);\n return null;\n }\n };\n\n final Function<Float, Void> changeMaxConfidence = new Function<Float, Void>() {\n @Override\n public Void apply(Float input) {\n options.confidenceThreshold = input;\n return null;\n }\n };\n\n bottomSheet = findViewById(R.id.option_menu);\n bottomSheet.setVisibility(View.VISIBLE);\n bottomSheet\n .withSlider(\"Alpha\", ALPHA_MAX, skyAlpha, changeAlpha, 1f)\n .withSlider(\"Confidence Threshold\", 1, options.confidenceThreshold, changeMaxConfidence);\n }", "public interface ColorPickerDialogCallback {\n void colorPicked(int red, int green, int blue, int textColor);\n}", "@Override\r\n public void actionPerformed(ActionEvent event) {\r\n if (event.getSource() == redInput ||\r\n event.getSource() == greenInput ||\r\n event.getSource() == blueInput) {\r\n int value;\r\n int red = currentColor.getRed();\r\n int green = currentColor.getGreen();\r\n int blue = currentColor.getBlue();\r\n try {\r\n value = Integer.parseInt((String) event.getActionCommand());\r\n } catch (Exception e) {\r\n value = -1;\r\n }\r\n if (event.getSource() == redInput) {\r\n if (value >= 0 && value < 256)\r\n red = value;\r\n else\r\n redInput.setText(String.valueOf(red));\r\n } else if (event.getSource() == greenInput) {\r\n if (value >= 0 && value < 256)\r\n green = value;\r\n else\r\n greenInput.setText(String.valueOf(green));\r\n } else if (event.getSource() == blueInput) {\r\n if (value >= 0 && value < 256)\r\n blue = value;\r\n else\r\n blueInput.setText(String.valueOf(blue));\r\n }\r\n currentColor = new Color(red, green, blue);\r\n newSwatch.setForeground(currentColor);\r\n colorCanvas.setColor(currentColor);\r\n } else if (event.getSource() == okButton) {\r\n // Send action event to all color listeners\r\n if (colorListeners != null) {\r\n ActionEvent new_event = new ActionEvent(this,\r\n ActionEvent.ACTION_PERFORMED,\r\n CHANGE_ACTION);\r\n colorListeners.actionPerformed(new_event);\r\n }\r\n setVisible(false);\r\n } else if (event.getSource() == cancelButton) {\r\n if (colorListeners != null) {\r\n ActionEvent new_event = new ActionEvent(this,\r\n ActionEvent.ACTION_PERFORMED,\r\n CANCEL_ACTION);\r\n colorListeners.actionPerformed(new_event);\r\n }\r\n currentColor = null;\r\n setVisible(false);\r\n }\r\n }", "@Override\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tint width= Integer.parseInt(JOptionPane.showInputDialog(\"Input width of result image\"));\r\n\t\t\t\tint height = Integer.parseInt(JOptionPane.showInputDialog(\"Input height of result image\"));\r\n\t\t\t\tcanvas.setPreferredSize(new Dimension(width,height));\r\n\t\t\t\tcanvas.setBounds(10, 50, width, height);\r\n\r\n\t\t\t\t//create a list of options for the palette.\r\n\t\t\t\tPaletteList paletteList = new PaletteList(\"Choose a Color Scheme\");\r\n\t\t\t\tpaletteList.displayOptions();\r\n\t\t\t\tPalette chosenPalette = paletteList.getChosenPalette();\r\n\t\t\t\tSystem.out.println(chosenPalette.currentPallete);\r\n\r\n\t\t\t\tDistributedMandelbrot mandelbrot = new DistributedMandelbrot(canvas, chosenPalette, new Dimension(width,height));\r\n\t\t\t\tmandelbrot.execute();\r\n\t\t\t}", "public void WildIsPlayedAskUserForColor() {\n\t\tJFrame window = new JFrame(\"Wild Card Was Played\");\n\t\twindow.setSize(600, 125);\n\t\twindow.setLayout(new FlowLayout());\n\t\twindow.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\twindow.setLocationRelativeTo(null);\n\t\t\n\t\t// Creating Color name field\n\t\tJLabel colorMessageLabel = new JLabel(\"Choose New Game Color:\");\n\t\t\n\t\t// Creating color buttons\n\t\tJButton redButton = new JButton(\"Red\");\n\t\tJButton greenButton = new JButton(\"Green\");\n\t\tJButton blueButton = new JButton(\"Blue\");\n\t\tJButton yellowButton = new JButton(\"Yellow\");\n\t\t\n\t\t//Creating panels to add all objects to\n\t\tJPanel panel1 = new JPanel(new GridLayout(1,1)); // Creating a Flow Layout for first row\n\t\tpanel1.add(colorMessageLabel);\n\n\t\tJPanel panel2 = new JPanel(new GridLayout(2,2));\n\t\tpanel2.add(redButton);\n\t\tpanel2.add(greenButton);\n\t\tpanel2.add(blueButton);\n\t\tpanel2.add(yellowButton);\n\t\t\n\t\t//Adding panel of objects to the JFrame window\n\t\twindow.add(panel1);\n\t\twindow.add(panel2);\n\t\twindow.setVisible(true); \n\t\t\n\t\t//Event handler for Red button\n\t\tredButton.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tcurrentTurnColor = \"Red\";\n\t\t\t\twindow.setVisible(false);\n\t\t\t\t}\n\t\t});\n\t\t\n\t\t//Event Handler for Green button\n\t\tgreenButton.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tcurrentTurnColor = \"Green\";\n\t\t\t\twindow.setVisible(false);\n\t\t\t}\n\t\t});\n\t\t\n\t\t//Event Handler for Green button\n\t\tblueButton.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tcurrentTurnColor = \"Blue\";\n\t\t\t\twindow.setVisible(false);\n\t\t\t}\n\t\t});\n\t\t//Event Handler for Green button\n\t\tyellowButton.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tcurrentTurnColor = \"Yellow\";\n\t\t\t\twindow.setVisible(false);\n\t\t\t}\n\t\t});\n\t\t\t\t\n\t}", "private void createPickBox() {\n\t\tfinal Coin[] coins = CHFStore.getSortedCoinTab();\n\t\tString coinsStr[] = new String[coins.length];\n\t\tint i = 0;\n\t\tfor (Coin c : coins) {\n\t\t\tcoinsStr[i++] = c.getDisplay();\n\t\t}\n\t\tbuilder = new AlertDialog.Builder(this);\n\t\tbuilder.setTitle(\"Value of coin\");\n\t\tbuilder.setItems(coinsStr, new OnClickListener() {\n\n\t\t\t// as soon as a value is selected for a coin\n\t\t\t@Override\n\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\tif (circleIndex >= 0) {\n\t\t\t\t\tCoin selected = coins[which];\n\t\t\t\t\tMyCircle selectedCircle = circlesList.get(circleIndex);\n\t\t\t\t\t// launch calculation process and display it in a toast\n\t\t\t\t\t double monneySum = calculateMonneySum(selected, selectedCircle);\n\t\t\t\t\tToast.makeText(\n\t\t\t\t\t\t\tgetApplicationContext(),\n\t\t\t\t\t\t\t\"You own \" + String.format(\"%.2f\", monneySum)\n\t\t\t\t\t\t\t\t\t+ \" CHF\", Toast.LENGTH_LONG).show();\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t}", "private void initialize() {\n\t\tframe = new JFrame();\n\t\tframe.setBounds(100, 100, 450, 300);\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\t\n\t\tJSplitPane splitPane = new JSplitPane();\n\t\tsplitPane.setResizeWeight(0.1);\n\t\tframe.getContentPane().add(splitPane, BorderLayout.CENTER);\n\t\t\n\t\tlist = new JList();\n\t\tlist.setModel(new AbstractListModel() {\n\t\t\tString[] values = new String[] {\"file1\", \"file2\", \"file3\", \"file4\"};\n\t\t\tpublic int getSize() {\n\t\t\t\treturn values.length;\n\t\t\t}\n\t\t\tpublic Object getElementAt(int index) {\n\t\t\t\treturn values[index];\n\t\t\t}\n\t\t});\n\t\tsplitPane.setLeftComponent(list);\n\t\t\n\t\tJPopupMenu popupMenu1 = new JPopupMenu();\n\t\taddPopup(list, popupMenu1);\n\t\t\n\t\tJMenuItem mntmNewMenuItem = new JMenuItem(\"copy\");\n\t\tpopupMenu1.add(mntmNewMenuItem);\n\t\t\n\t\tJMenuItem mntmNewMenuItem_1 = new JMenuItem(\"paste\");\n\t\tpopupMenu1.add(mntmNewMenuItem_1);\n\t\t\n\t\t\n\t\t\n\t\tpanel = new JPanel();\n\t\tsplitPane.setRightComponent(panel);\n\t\t\n\t\tJPopupMenu popupMenu = new JPopupMenu();\n\t\taddPopup(panel, popupMenu);\n\t\t\n\t\tJMenuItem mntmNewMenuItem_2 = new JMenuItem(\"Rect\");\n\t\tpopupMenu.add(mntmNewMenuItem_2);\n\t\t\n\t\tJMenuItem mntmNewMenuItem_3 = new JMenuItem(\"Line\");\n\t\tpopupMenu.add(mntmNewMenuItem_3);\n\t\t\n\t\tJMenuItem mntmNewMenuItem_4 = new JMenuItem(\"Circle\");\n\t\tpopupMenu.add(mntmNewMenuItem_4);\n\t\t\n\t\tJMenu mnNewMenu = new JMenu(\"Color\");\n\t\tpopupMenu.add(mnNewMenu);\n\t\t\n\t\tJMenuItem mntmNewMenuItem_5 = new JMenuItem(\"Red\");\n\t\tmntmNewMenuItem_5.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tpanel.setBackground(Color.RED);\n\t\t\t}\n\t\t});\n\t\tmnNewMenu.add(mntmNewMenuItem_5);\n\t}", "public void createPurplePickHiglight() {\n\t\tpurplePickHighlight = new JLabel() {\n \t\tprotected void paintComponent(Graphics g) {\n\t \t g.setColor(getBackground());\n \t \tg.fillRect(0, 0, getWidth(), getHeight());\n \t\t\tsuper.paintComponent(g);\n\t\t }\n\t\t};\n\t\tpurplePickHighlight.setBackground(new Color(218, 116, 32, 120));\n\t\trightPanel.add(purplePickHighlight, new Integer(1));\n\t\tpurplePickHighlight.setBounds(45, 10, 210, 88);\n\t\tpurplePickHighlight.setVisible(false);\n\t}" ]
[ "0.6890137", "0.671593", "0.66717464", "0.6640203", "0.66035384", "0.655814", "0.6397021", "0.63306797", "0.6233938", "0.62206465", "0.62036586", "0.61620647", "0.6139012", "0.6056544", "0.6006327", "0.59869", "0.5975892", "0.5967215", "0.5933007", "0.5916475", "0.58920896", "0.5858742", "0.5836699", "0.58306897", "0.58302975", "0.5828232", "0.5821774", "0.5800247", "0.57856864", "0.5779273", "0.5768068", "0.57551736", "0.57443434", "0.5739385", "0.57337826", "0.5729276", "0.5726893", "0.5725586", "0.5710194", "0.56858647", "0.5684669", "0.5678887", "0.56719166", "0.5667735", "0.5653803", "0.5644852", "0.5643025", "0.5640542", "0.56288636", "0.56280434", "0.5626302", "0.56237936", "0.56201965", "0.5615672", "0.56116647", "0.5601786", "0.560023", "0.5597083", "0.5586324", "0.55856127", "0.5567992", "0.5565382", "0.55619615", "0.5528712", "0.55274653", "0.5520137", "0.55103534", "0.55093324", "0.55046296", "0.5502444", "0.54801023", "0.54669535", "0.5466069", "0.54632175", "0.54614323", "0.54561156", "0.54556024", "0.5441966", "0.54153806", "0.54115194", "0.54107547", "0.5406055", "0.53997475", "0.539972", "0.5392387", "0.5388452", "0.5387429", "0.53868276", "0.5384885", "0.53794", "0.53750825", "0.5373856", "0.5371603", "0.536955", "0.5359112", "0.53552496", "0.53499824", "0.5345395", "0.5342431", "0.5324557" ]
0.59036183
20
This method adds a icon to the Grid given the grid, the position and the image
private Image addToGrid(Grid grid, int row, int col, String title, String icon) { Image button = new Image(icon); button.setTitle(title); button.setSize("34px", "34px"); grid.setWidget(row, col, button); button.addClickListener(this); return button; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "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 createIcon();", "public void setIcon(Image i) {icon = i;}", "public void displayIcon(Graphics g, int xPos, int yPos){\n\t\t\n\t}", "public GUICell(ImageIcon img){\n\t\tsuper(img);\n\t}", "public void iconSetup(){\r\n chessboard.addRedIcon(\"Assets/PlusR.png\");\r\n chessboard.addRedIcon(\"Assets/TriangleR.png\");\r\n chessboard.addRedIcon(\"Assets/ChevronR.png\");\r\n chessboard.addRedIcon(\"Assets/SunR.png\"); \r\n chessboard.addRedIcon(\"Assets/ArrowR.png\");\r\n \r\n chessboard.addBlueIcon(\"Assets/PlusB.png\");\r\n chessboard.addBlueIcon(\"Assets/TriangleB.png\");\r\n chessboard.addBlueIcon(\"Assets/ChevronB.png\");\r\n chessboard.addBlueIcon(\"Assets/SunB.png\");\r\n chessboard.addBlueIcon(\"Assets/ArrowB.png\");\r\n }", "void addIcon(final Bitmap image, final String label) {\r\n final Icon icon = new Icon(label, image);\r\n _icons.addElement(icon);\r\n\r\n final int iconHeight = image.getHeight();\r\n if (_iconHeight < iconHeight) {\r\n _iconHeight = iconHeight;\r\n }\r\n\r\n // The first icon will be selected by default\r\n if (_currentSelection == -1) {\r\n _currentSelection = 0;\r\n icon._state |= AccessibleState.FOCUSED;\r\n }\r\n\r\n // Causes the component to be repainted\r\n invalidate();\r\n }", "public void addImg(){\n // Add other bg images\n Image board = new Image(\"sample/img/board.jpg\");\n ImageView boardImg = new ImageView();\n boardImg.setImage(board);\n boardImg.setFitHeight((tileSize* dimension)+ (tileSize*2) );\n boardImg.setFitWidth( (tileSize* dimension)+ (tileSize*2) );\n\n Tile infoTile = new Tile(getTileSize(), getTileSize()*7);\n infoTile.setTranslateX(getTileSize()*3);\n infoTile.setTranslateY(getTileSize()*6);\n\n tileGroup.getChildren().addAll(boardImg, infoTile);\n\n }", "protected void addImageIcon(String text, String token, ImageResource bigImage, ImageResource mobileImage, FlowPanel flowPanel, String tooltip) {\n if (MyWebApp.isSmallFormat()) {\n Image image = new Image(mobileImage);\n addImageIcon(token, text, image, flowPanel, tooltip);\n } else {\n Image image = new Image(bigImage);\n addImageIcon(token, text, image, flowPanel, tooltip);\n }\n }", "@Source(\"create.gif\")\n\tpublic ImageResource createIcon();", "private void setIcon() {\n \n setIconImage(Toolkit.getDefaultToolkit().getImage(getClass().getResource(\"iconabc.png\")));\n }", "private void setUpImage() {\n Bitmap icon = BitmapFactory.decodeResource( this.getResources(), R.drawable.hotel_icon );\n map.addImage( MARKER_IMAGE_ID, icon );\n }", "private void iconImage() {\n setIconImage(Toolkit.getDefaultToolkit().getImage(getClass().getResource(\"icon.jpg\")));\n }", "protected void setButtonIcon(int row,int col){\n JButton button = buttonGrid[row][col];\n button.setIcon(null);\n if (board.chessBoard[row][col] == null)\n return;\n\n String fileName = board.chessBoard[row][col].getIconFileName();\n //getFileName(row, col);\n BufferedImage img = null;\n if (!fileName.equals(\"\")) {\n try {\n File f = new File(System.getProperty(\"user.dir\") + \"/src/main/java/com/zxs/games/ChessPng/\" + fileName);\n img = ImageIO.read(f);\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n if (img != null) {\n ImageIcon icon = new ImageIcon(img);\n button.setIcon(icon);\n }\n }", "public void mark_icon(Graphics g, int log_num, int x, int y, int h, float track);", "public void addIcons(String iconPath) {\n ImageIcon background = new ImageIcon(iconPath);\n Image img = background.getImage();\n img = img.getScaledInstance(30,30,Image.SCALE_SMOOTH);\n background = new ImageIcon(img);\n\n JLabel icon = new JLabel(background);\n icon.setBounds(50,y_Axis,30,30);\n icon.setLayout(null);\n mainBody.add(icon);\n y_Axis += 50;\n }", "public void displayOilIcon(Graphics g, int xPos, int yPos){\n\t\t\n\t}", "private void setIconImage(ImageIcon imageIcon) {\n throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\n }", "private void setIconImage(ImageIcon imageIcon) {\n throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\n }", "public abstract void addItems(IconButtonRow iconButtonRow);", "public void\r DisplayIcon(CType display_context, int x, int y, int icon_number);", "private void createXONImageMakerIconPane() throws Exception {\r\n\t\tif (m_XONImageMakerIconPanel != null)\r\n\t\t\treturn;\r\n\t\tImageUtils iu = new ImageUtils();\r\n\t\tm_XONImageMakerIconPanel = new JPanel() {\r\n\t\t\tpublic void paint(Graphics g) {\r\n\t\t\t\tRectangle visibleRect = this.getVisibleRect();\r\n\t\t\t\tDimension panelSize = new Dimension(\r\n\t\t\t\t\t\t(int) visibleRect.getWidth(),\r\n\t\t\t\t\t\t(int) visibleRect.getHeight());\r\n\t\t\t\t// RGPTLogger.logToConsole(\"Panel Size: \"+panelSize);\r\n\t\t\t\tg.drawImage(XON_IMAGE_MAKER_ICON, 0, 0, panelSize.width,\r\n\t\t\t\t\t\tpanelSize.height, this);\r\n\t\t\t}\r\n\t\t};\r\n\t}", "private void setPieceIconAndName(int rowIndex, int colIndex, PieceName pieceName){\n\t\tboolean isBlack = (rowIndex == 0 || rowIndex == 1) ? true : false;\n\t\tboolean isWhite = (rowIndex == 6 || rowIndex == 7) ? true : false;\n\t\tString fileExt = \".gif\";\n\t\tString filePackagePath = \"chess/icon/\";\n\t\tString fileName; \n\t\tPieceColor pieceColor; \n\n\t\tif(isBlack||isWhite){\n\t\t\tif(isBlack)\n\t\t\t{\t\n\t\t\t\tfileName = filePackagePath+\"b\"+pieceName+fileExt;\n\t\t\t\tpieceColor = PieceColor.BLACK;\n\t\t\t}\n\t\t\telse{\n\t\t\t\tfileName = filePackagePath+\"w\"+pieceName+fileExt; \n\t\t\t\tpieceColor = PieceColor.WHITE;\n\t\t\t} \n\t\t\tpieces[pieceCounter].setPieceIcon(getImage(getCodeBase(), fileName)); \n\t\t\tpieces[pieceCounter].setColor(pieceColor);\n\t\t}else{\n\t\t\tSystem.out.println(\"Error input Position\");\n\t\t} \n\t}", "public void draw(Graphics g) {\n image.paintIcon(null, g, xPos, yPos);\n }", "public void displayMilitaryIcon(Graphics g, int xPos, int yPos){\n\t\t\n\t}", "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 }", "private void createIcons() {\n wRook = new ImageIcon(\"./src/Project3/wRook.png\");\r\n wBishop = new ImageIcon(\"./src/Project3/wBishop.png\");\r\n wQueen = new ImageIcon(\"./src/Project3/wQueen.png\");\r\n wKing = new ImageIcon(\"./src/Project3/wKing.png\");\r\n wPawn = new ImageIcon(\"./src/Project3/wPawn.png\");\r\n wKnight = new ImageIcon(\"./src/Project3/wKnight.png\");\r\n\r\n bRook = new ImageIcon(\"./src/Project3/bRook.png\");\r\n bBishop = new ImageIcon(\"./src/Project3/bBishop.png\");\r\n bQueen = new ImageIcon(\"./src/Project3/bQueen.png\");\r\n bKing = new ImageIcon(\"./src/Project3/bKing.png\");\r\n bPawn = new ImageIcon(\"./src/Project3/bPawn.png\");\r\n bKnight = new ImageIcon(\"./src/Project3/bKnight.png\");\r\n }", "public void addIconToTab(WorkingPanel tab, String selectedIconText) {\n icon = iconBase.getIconObject(selectedIconText, tab);\n if (icon != null) {\n if (selectedIconText.equals(\"(\")) {\n icon.setX(60);\n icon.setY(60);\n IconMain.setCount(IconMain.getCount() + 1);\n tab.iconList.put(icon, \"\");\n\n } else if (selectedIconText.equals(\")\")) {\n icon.setX(700);\n icon.setY(500);\n IconMain.setCount(IconMain.getCount() + 1);\n tab.iconList.put(icon, \"\");\n } else {\n icon.setX((int) tab.getMousePosition().getX() - IconMain.width / 2);\n icon.setY((int) tab.getMousePosition().getY() - IconMain.height / 2);\n IconMain.setCount(IconMain.getCount() + 1);\n tab.iconList.put(icon, \"\");\n\n }\n }\n }", "public void addImage(Image img, int x, int y) {\n\n\t}", "public abstract ImageIcon getIcon(int size);", "@Override\n\t\tprotected void paintComponent(Graphics g) {\n\t\t\tint width = getWidth();\n\t\t\tint height = getHeight();\n\t\t\tint x = (width - icon.getIconWidth()) / 2;\n\t\t\tint y = icon.getIconHeight() / 2;\n\t\t\tg.setColor(Color.darkGray);\n\t\t\tg.fillRect(0, 0, width, height);\n\t\t\ticon.paintIcon(this, g, x, y);\n\t\t}", "@Source(\"create.gif\")\n\tpublic DataResource createIconResource();", "private void setIcon() {\n setIconImage(Toolkit.getDefaultToolkit().getImage(getClass().getResource(\"croissant.png\")));\n }", "void setIcon(String current) {\n\tif (current != null && (!current.equals(currentName) || mapList == null)) {\n mapList = main.myData.getGridLinks(current);\n\n removeAll();\n if (mapList == null) {\n revalidate();\n return;\n }\n\n\t currentName = current;\n\n TreeSet ts = new TreeSet(Collator.getInstance(Locale.FRANCE));\n ts.addAll(mapList.keySet());\n Iterator iter = ts.iterator();\n ArrayList panels = new ArrayList();\n int idx = 0;\n int x = 0;\n int y = 0;\n while (iter.hasNext()) {\n String gridid = (String) iter.next();\n String[] refmap = (String[]) mapList.get(gridid);\n ImagePanel p = new ImagePanel(refmap);\n\n if (gridid.matches(\"[0-9],[0-9]\")) {\n x = Integer.parseInt\n (gridid.substring(0, gridid.indexOf(',')));\n y = Integer.parseInt\n (gridid.substring(gridid.indexOf(',')+1));\n }\n else {\n x = idx%4;\n y = idx/4;\n idx++;\n }\n\n // Prepare y-panels\n for (int i = panels.size(); i <= y; i++)\n panels.add(new ArrayList());\n\n // Prepare x-panels\n ArrayList al = (ArrayList) panels.get(y);\n for (int i = al.size(); i <= x; i++)\n al.add(null);\n\n al.set(x, p);\n }\n\n GridBagConstraints constr = new GridBagConstraints();\n constr.fill = GridBagConstraints.BOTH;\n constr.weightx = constr.weighty = 1;\n constr.insets = new Insets(5,5,5,5);\n for (int i = 0; i < panels.size(); i++) {\n ArrayList al = (ArrayList) panels.get(i);\n for (int j = 0; j < al.size(); j++) {\n JComponent px = new JPanel();\n constr.gridx = j;\n constr.gridy = i;\n if (al.get(j) != null)\n px = (ImagePanel)al.get(j);\n add(px, constr);\n }\n }\n\n\t // Adapt the display\n\t revalidate();\n\t}\n }", "@Override\n\t\tpublic void update(Graphics g) {\n\t\t\t\n\t\t\tImage pieceImg = null;\n\t\t\tif (board.square(row,column).isOccupied()) {\n\t\t\t\tint index = board.square(row,column).piece().imageIndex();\n\t\t\t\tpieceImg = pieceImages[index];\n\t\t\t}\n\t\t\tif (lightSquare)\n\t\t\t\t{ setIcon(new ImageIcon(combine(pieceImg, lightSquareImg))); }\n\t\t\telse\n\t\t\t\t{ setIcon(new ImageIcon(combine(pieceImg, darkSquareImg))); }\n\t\t}", "public void registerIcons(IIconRegister iconRegister) {\n/* 51 */ this.itemIcon = iconRegister.registerIcon(\"forgottenrelics:Soul_Tome\");\n/* */ }", "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 }", "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}", "private void showLayerIcon(final ImageView imageView, TableRow row1, TableRow row2,\n Drawable iconD, int layerIdx) {\n\n if (iconD != null) {\n ImageView layerImageView = new ImageView(imageView.getContext());\n\n layerImageView.setImageDrawable(iconD);\n layerImageView.setPadding(10, 10, 10, 10);\n layerImageView.setMinimumHeight(8);\n layerImageView.setMinimumWidth(8);\n layerImageView.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n imageView.setImageDrawable(((ImageView) v).getDrawable());\n }\n });\n\n TextView stateTextView = new TextView(imageView.getContext());\n stateTextView.setText(String.valueOf(layerIdx));\n stateTextView.setTextSize(12);\n stateTextView.setGravity(Gravity.CENTER);\n\n row1.addView(stateTextView);\n row2.addView(layerImageView);\n }\n }", "private void setIcon() {\n setIconImage(Toolkit.getDefaultToolkit().getImage(getClass().getResource(\"img/icon.png\")));\n }", "public void update()\n {\n // get the GridSquare object from the world\n Terrain terrain = game.getTerrain(row, column);\n boolean squareVisible = game.isVisible(row, column);\n boolean squareExplored = game.isExplored(row, column);\n \n if (game.hasPlayer(row, column)){\n setImage2(\"images/player.png\");\n } else {\n player = null;\n }\n \n //ImageIcon image = null;//new ImageIcon(\"images/blank.png\");\n JLabel lblImage = new JLabel(); // create a new label to put an image on\n \n // call the method to set a new Buffered image to this panel\n \n if (squareVisible && image == null){\n switch ( terrain )\n {\n case SAND : setImage(\"images/sand.png\"); break;// = new ImageIcon(\"images/sand.png\"); break;\n case FOREST : setImage(\"images/forest.png\"); break;\n case WETLAND : setImage(\"images/wetland.png\"); break;\n case SCRUB : setImage(\"images/scrub.png\"); break;\n case WATER : setImage(\"images/water.png\"); break;\n default : image = null; break;\n }\n }\n \n// this is old code that use to change the graphics, trying BufferedImage instead of IconImage\n// switch ( terrain )\n// {\n// case SAND : setImage(\"images/forest.png\");// = new ImageIcon(\"images/sand.png\"); break;\n// case FOREST : image = new ImageIcon(\"images/forest.png\"); break;\n// case WETLAND : image = new ImageIcon(\"images/wetland.png\"); break;\n// case SCRUB : image = new ImageIcon(\"images/scrub.png\"); break;\n// case WATER : image = new ImageIcon(\"images/water.png\"); break;\n// default : image = null; break;\n// }\n \n if ( squareExplored || squareVisible )\n {\n // Set the text of the JLabel according to the occupant\n lblText.setText(game.getOccupantStringRepresentation(row,column)); \n }\n else {\n lblText.setText(\"\");\n image = null;\n }\n \n // if the game is not being played, remove the activeBorder (this fixes the multiple borders glitch)\n// if (game.getState() != GameState.PLAYING) {\n// setBorder(normalBorder);\n// } \n \n // set the redsquare border to active if the player is here\n setBorder(game.hasPlayer(row,column) ? activeBorder : normalBorder);\n \n\n // add the imageIcon to the gridsquare panel\n //lblImage.setIcon((Icon) image); // add the image to the label\n this.add(lblImage); // add the jlabel image to the current gridsquare\n \n JLabel lblImage2 = new JLabel(); \n this.add(lblImage2);\n \n }", "private void setIcon() {\n setIconImage(Toolkit.getDefaultToolkit().getImage(getClass().getResource(\"../Imagens/icon.png\")));\n }", "public void setIcon(@DrawableRes final int icon) {\n post(() -> {\n Drawable drawable = ResourcesCompat.getDrawable(getResources(),icon,null);\n int padding = (getWidth() / 2) - (drawable.getIntrinsicWidth() / 2);\n setCompoundDrawablesWithIntrinsicBounds(icon, 0, 0, 0);\n setPadding(padding, 0, 0, 0);\n });\n }", "public void GenerateIcons() {\n icons = new ImageIcon[8];\n icons[0] = new ImageIcon(new BufferedImage(28, 32, BufferedImage.TYPE_4BYTE_ABGR));\n icons[1] = new ImageIcon(new BufferedImage(28, 32, BufferedImage.TYPE_4BYTE_ABGR));\n icons[2] = new ImageIcon(new BufferedImage(28, 32, BufferedImage.TYPE_4BYTE_ABGR));\n icons[3] = new ImageIcon(new BufferedImage(28, 32, BufferedImage.TYPE_4BYTE_ABGR));\n icons[4] = new ImageIcon(new BufferedImage(28, 32, BufferedImage.TYPE_4BYTE_ABGR));\n icons[5] = new ImageIcon(new BufferedImage(28, 32, BufferedImage.TYPE_4BYTE_ABGR));\n icons[6] = new ImageIcon(new BufferedImage(28, 32, BufferedImage.TYPE_4BYTE_ABGR));\n icons[7] = new ImageIcon(new BufferedImage(28, 32, BufferedImage.TYPE_4BYTE_ABGR));\n Graphics g;\n Graphics2D g2;\n Color transparent = new Color(0, 0, 0, 0);\n\n // 0 = up, left leg up\n try {\n g = icons[0].getImage().getGraphics();\n }\n catch (NullPointerException e) {\n System.out.println(\"Could not get Graphics pointer to GameCursor Image\");\n return;\n }\n g2 = (Graphics2D) g;\n g2.setBackground(transparent);\n g2.clearRect(0, 0, 28, 32);\n g.setColor(Color.white);\n g.fillRect(8, 0, 12, 8);\n g.fillRect(4, 2, 20, 4);\n g.fillRect(12, 8, 4, 2);\n g.fillRect(4, 10, 20, 2);\n g.fillRect(8, 10, 12, 14);\n g.fillRect(0, 12, 4, 8);\n g.fillRect(24, 12, 4, 6);\n g.fillRect(4, 22, 8, 8);\n g.fillRect(16, 20, 8, 12);\n g.setColor(Color.black);\n g.fillRect(8, 18, 12, 2);\n g.fillRect(4, 26, 8, 2);\n g.fillRect(16, 28, 8, 2);\n\n // 1 = up, right leg up\n try {\n g = icons[1].getImage().getGraphics();\n }\n catch (NullPointerException e) {\n System.out.println(\"Could not get Graphics pointer to GameCursor Image\");\n return;\n }\n g2 = (Graphics2D) g;\n g2.setBackground(transparent);\n g2.clearRect(0, 0, 28, 32);\n g.setColor(Color.white);\n g.fillRect(8, 0, 12, 8);\n g.fillRect(4, 2, 20, 4);\n g.fillRect(12, 8, 4, 2);\n g.fillRect(4, 10, 20, 2);\n g.fillRect(8, 10, 12, 14);\n g.fillRect(0, 12, 4, 6);\n g.fillRect(24, 12, 4, 8);\n g.fillRect(4, 20, 8, 12);\n g.fillRect(16, 22, 8, 8);\n g.setColor(Color.black);\n g.fillRect(8, 18, 12, 2);\n g.fillRect(4, 28, 8, 2);\n g.fillRect(16, 26, 8, 2);\n\n // 2 = down, left(side) leg up\n try {\n g = icons[2].getImage().getGraphics();\n }\n catch (NullPointerException e) {\n System.out.println(\"Could not get Graphics pointer to GameCursor Image\");\n return;\n }\n g2 = (Graphics2D) g;\n g2.setBackground(transparent);\n g2.clearRect(0, 0, 28, 32);\n g.setColor(Color.white);\n g.fillRect(8, 0, 12, 8);\n g.fillRect(4, 2, 20, 4);\n g.fillRect(12, 8, 4, 2);\n g.fillRect(4, 10, 20, 2);\n g.fillRect(8, 10, 12, 14);\n g.fillRect(0, 12, 4, 8);\n g.fillRect(24, 12, 4, 6);\n g.fillRect(4, 22, 8, 8);\n g.fillRect(16, 20, 8, 12);\n g.setColor(Color.black);\n g.fillRect(8, 2, 4, 2);\n g.fillRect(16, 2, 4, 2);\n g.fillRect(12, 4, 4, 2);\n g.fillRect(8, 18, 12, 2);\n g.fillRect(4, 26, 8, 2);\n g.fillRect(16, 28, 8, 2);\n\n // 3 = down, right(side) leg up\n try {\n g = icons[3].getImage().getGraphics();\n }\n catch (NullPointerException e) {\n System.out.println(\"Could not get Graphics pointer to GameCursor Image\");\n return;\n }\n g2 = (Graphics2D) g;\n g2.setBackground(transparent);\n g2.clearRect(0, 0, 28, 32);\n g.setColor(Color.white);\n g.fillRect(8, 0, 12, 8);\n g.fillRect(4, 2, 20, 4);\n g.fillRect(12, 8, 4, 2);\n g.fillRect(4, 10, 20, 2);\n g.fillRect(8, 10, 12, 14);\n g.fillRect(0, 12, 4, 6);\n g.fillRect(24, 12, 4, 8);\n g.fillRect(4, 20, 8, 12);\n g.fillRect(16, 22, 8, 8);\n g.setColor(Color.black);\n g.fillRect(8, 2, 4, 2);\n g.fillRect(16, 2, 4, 2);\n g.fillRect(12, 4, 4, 2);\n g.fillRect(8, 18, 12, 2);\n g.fillRect(4, 28, 8, 2);\n g.fillRect(16, 26, 8, 2);\n\n // 4 = left, Stand\n try {\n g = icons[4].getImage().getGraphics();\n }\n catch (NullPointerException e) {\n System.out.println(\"Could not get Graphics pointer to GameCursor Image\");\n return;\n }\n g2 = (Graphics2D) g;\n g2.setBackground(transparent);\n g2.clearRect(0, 0, 28, 32);\n g.setColor(Color.white);\n g.fillRect(8, 0, 12, 8);\n g.fillRect(20, 2, 4, 4);\n g.fillRect(4, 4, 4, 2);\n g.fillRect(12, 8, 4, 2);\n g.fillRect(12, 10, 8, 18);\n g.fillRect(8, 12, 4, 12);\n g.fillRect(8, 30, 12, 2);\n g.setColor(Color.black);\n g.fillRect(12, 2, 4, 2);\n g.fillRect(8, 18, 12, 2);\n g.fillRect(12, 28, 8, 2);\n\n // 5 = left, walk\n try {\n g = icons[5].getImage().getGraphics();\n }\n catch (NullPointerException e) {\n System.out.println(\"Could not get Graphics pointer to GameCursor Image\");\n return;\n }\n g2 = (Graphics2D) g;\n g2.setBackground(transparent);\n g2.clearRect(0, 0, 28, 32);\n g.setColor(Color.white);\n g.fillRect(8, 0, 12, 8);\n g.fillRect(20, 2, 4, 4);\n g.fillRect(4, 4, 4, 2);\n g.fillRect(12, 8, 4, 2);\n g.fillRect(8, 10, 12, 14);\n g.fillRect(4, 12, 20, 4);\n g.fillRect(0, 14, 4, 4);\n g.fillRect(24, 14, 4, 6);\n g.fillRect(4, 24, 8, 8);\n g.fillRect(16, 22, 8, 10);\n g.fillRect(0, 30, 4, 2);\n g.setColor(Color.black);\n g.fillRect(12, 2, 4, 2);\n g.fillRect(16, 14, 4, 2);\n g.fillRect(8, 18, 12, 2);\n g.fillRect(4, 28, 8, 2);\n g.fillRect(16, 28, 8, 2);\n\n // 6 = right, Stand\n try {\n g = icons[6].getImage().getGraphics();\n }\n catch (NullPointerException e) {\n System.out.println(\"Could not get Graphics pointer to GameCursor Image\");\n return;\n }\n g2 = (Graphics2D) g;\n g2.setBackground(transparent);\n g2.clearRect(0, 0, 28, 32);\n g.setColor(Color.white);\n g.fillRect(8, 0, 12, 8);\n g.fillRect(4, 2, 4, 4);\n g.fillRect(20, 4, 4, 2);\n g.fillRect(12, 8, 4, 2);\n g.fillRect(8, 10, 8, 18);\n g.fillRect(16, 12, 4, 12);\n g.fillRect(8, 30, 12, 2);\n g.setColor(Color.black);\n g.fillRect(12, 2, 4, 2);\n g.fillRect(8, 18, 12, 2);\n g.fillRect(8, 28, 8, 2);\n\n // 7 = right, walk\n try {\n g = icons[7].getImage().getGraphics();\n }\n catch (NullPointerException e) {\n System.out.println(\"Could not get Graphics pointer to GameCursor Image\");\n return;\n }\n g2 = (Graphics2D) g;\n g2.setBackground(transparent);\n g2.clearRect(0, 0, 28, 32);\n g.setColor(Color.white);\n g.fillRect(8, 0, 12, 8);\n g.fillRect(4, 2, 4, 4);\n g.fillRect(20, 4, 4, 2);\n g.fillRect(12, 8, 4, 2);\n g.fillRect(8, 10, 12, 14);\n g.fillRect(4, 12, 20, 4);\n g.fillRect(0, 14, 4, 6);\n g.fillRect(24, 14, 4, 4);\n g.fillRect(4, 22, 8, 10);\n g.fillRect(16, 24, 8, 8);\n g.fillRect(24, 30, 4, 2);\n g.setColor(Color.black);\n g.fillRect(12, 2, 4, 2);\n g.fillRect(8, 14, 4, 2);\n g.fillRect(8, 18, 12, 2);\n g.fillRect(4, 28, 8, 2);\n g.fillRect(16, 28, 8, 2);\n currentIcon = icons[6].getImage();\n\n }", "private void setIcon(){\r\n setIconImage(Toolkit.getDefaultToolkit().getImage(getClass().getResource(\"images.png\")));\r\n }", "Icon getIcon();", "public void replaceIcons(){\n int nb = this.listGraphFrame.size();\n int x = 0;\n int y = this.getHeight()-DataProcessToolPanel.ICON_HEIGHT;\n for (int i=0; i<nb; i++){\n InternalGraphFrame gFrame = listGraphFrame.get(i);\n if(gFrame.isIcon() && gFrame.getDesktopIcon() != null){\n JInternalFrame.JDesktopIcon icon = gFrame.getDesktopIcon();\n icon.setBounds(x, y, icon.getWidth(), icon.getHeight());\n if(x+(2*DataProcessToolPanel.ICON_WIDTH) < getWidth()){\n x += DataProcessToolPanel.ICON_WIDTH;\n }else{\n x = 0;\n y = y-DataProcessToolPanel.ICON_HEIGHT;\n }\n }\n }\n }", "private void setIcon() {\n setIconImage(Toolkit.getDefaultToolkit().getImage(getClass().getResource(\"icon.png\")));\n }", "private void SetIcon() {\n setIconImage(Toolkit.getDefaultToolkit().getImage(getClass().getResource(\"Icon.png.png\")));\n }", "private void setIcon() {\n setIconImage(Toolkit.getDefaultToolkit().getImage(getClass().getResource(\"radarlogoIcon.png\")));\n }", "private View createIcon() {\r\n\t\tImageView img = new ImageView(getContext());\r\n\t\tLayoutParams imglp = new LayoutParams(android.view.ViewGroup.LayoutParams.WRAP_CONTENT,\r\n\t\t\t\tandroid.view.ViewGroup.LayoutParams.WRAP_CONTENT);\r\n\t\timglp.gravity = Gravity.CENTER_VERTICAL;\r\n\t\timglp.rightMargin = 5;\r\n\t\timg.setLayoutParams(imglp);\r\n\r\n\t\timg.setBackgroundDrawable(getContext().getResources().getDrawable(R.drawable.account));\r\n\t\treturn img;\r\n\t}", "private void setIcon() {\n setIconImage(Toolkit.getDefaultToolkit().getImage(getClass().getResource(\"/Icons/logo musica.png\")));\n }", "private void setUpTheIcon ( Marker marker ){\n\n // Hide the current info window\n HideCurrentInfoWindow();\n\n if ( mCurrentDestination == null || !mCurrentDestination.getId().equals(marker.getId()) ){\n\n if ( mCurrentPark != null ){\n if ( !mCurrentPark.getId().equals(marker.getId() ) ){\n // clicked ! on current selected parking;\n setSmallIcon ( mCurrentPark );\n\n mCurrentPark = marker;\n\n setBigIcon ( mCurrentPark );\n\n }\n }\n else {\n //previous was selected nothing;\n\n mCurrentPark = marker;\n setBigIcon ( mCurrentPark );\n mCurrentPark.showInfoWindow();\n }\n }else{\n //clicked not a parking;\n if ( mCurrentPark != null ){\n\n setSmallIcon ( mCurrentPark );\n mCurrentPark = null;\n }\n }\n\n // show info window for clicked marker;\n marker.showInfoWindow();\n\n }", "boolean iconClicked(IIcon icon, int dx, int dy);", "public void addShipImage(String imgPath, BoardValue[][] boardArray, int row, int col, char orientation) {\r\n if (boardArray[row][col] != BoardValue.HIT) {\r\n ImageView shipImg = getImage(imgPath);\r\n //have to rotate image if horizontal\r\n if (orientation == 'h') {\r\n shipImg.setRotate(-90);\r\n }\r\n board.add(shipImg, col, row);\r\n }\r\n }", "public void setIcon(Icon image)\n {\n getComponent().setIcon(image);\n invalidateSize();\n }", "@Override\n\tpublic void setIcon(Drawable icon) {\n\t\t\n\t}", "public void mostrarImagen(Image img){\n ImageIcon icono = new ImageIcon(img);\n jlImagen.setIcon(icono);\n }", "private void setICon() {\r\n \r\n setIconImage(Toolkit.getDefaultToolkit().getImage(getClass().getResource(\"IconImage_1.png\")));\r\n }", "B itemIcon(ITEM item, Resource icon);", "public void drawOn(Node node){\n\t\tGridPane grid = (GridPane) node;\n\n\t\t//count number of rows\n\t\tint numRows = grid.getRowConstraints().size();\n\t\tfor (int i = 0; i < grid.getChildren().size(); i++) {\n\t\t\tNode child = grid.getChildren().get(i);\n\t\t\tif (child.isManaged()) {\n\t\t\t\tInteger rowIndex = GridPane.getRowIndex(child);\n\t\t\t\tif(rowIndex != null){\n\t\t\t\t\tnumRows = Math.max(numRows,rowIndex+1);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t// add the image to the grid\n\t\tImageView iv = new ImageView(image);\n\t\tAnchorPane.setTopAnchor(iv, 0.0);\n\t\tAnchorPane.setBottomAnchor(iv, 0.0);\n\t\tAnchorPane.setRightAnchor(iv, 0.0);\n\t\tAnchorPane.setLeftAnchor(iv, 0.0);\n\n\n\t\tAnchorPane anchor = new AnchorPane();\n\t\tanchor.getChildren().add(iv);\n\n\t\tiv.fitWidthProperty().bind(anchor.widthProperty());\n\t\tiv.fitHeightProperty().bind(anchor.heightProperty());\n\n\t\t// iv.setPreserveRatio(true);\n\t\tiv.setSmooth(true);\n\n\t\tgrid.add(anchor, location.getX(), numRows - location.getY() - 1);\n\t}", "public void displayImage(ImageIcon imageIcon) {\r\n\t\tStyleConstants.setIcon(style, imageIcon);\r\n\t\ttry {\r\n\t\t\tdoc.insertString(doc.getLength(), \"blabla\", style);\r\n\t\t} catch (BadLocationException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n//\t\ttextPane.insertIcon(imageIcon);\r\n\t}", "public ImagePicture(ImageIcon img) { \r\n\t\tsuper();\r\n\t\tsetxPos(0);\r\n\t\tsetyPos(0);\r\n\t\tthis.image = img;\r\n\t\trepaint();\r\n\t}", "public void showIcon(){\n\n lockScreenImageView.animate()\n .alpha(1.0f)\n .setDuration(iconHidingAnimationTime);\n shiftIconToScreenSide(2, -delta/2,\n screenWidth - iconWidth - delta/2);\n }", "public void setIconTablaPlantilla() {\n\t\t// Establece el icono del boton editar\n\t\tFile archivo1 = new File(\"imagenes\" + File.separator + \"lapices.png\");\n\t\tImage imagen1 = new Image(archivo1.toURI().toString(), 50, 50, true, true, true);\n\t\tbtnModificar.setGraphic(new ImageView(imagen1));\n\t\tbtnModificar.setContentDisplay(ContentDisplay.CENTER);\n\t}", "public void addPng(ImageView png){\n vertexImages.add(png);\n }", "void setImageProvider(TileImageProvider tip)\n/* 71: */ {\n/* 72:118 */ this.mapPanel.setTileImageProvider(tip);\n/* 73: */ }", "private void setIcon() {\n setIconImage(Toolkit.getDefaultToolkit().getImage(getClass().getResource(\"podologia32x32.png\")));\n }", "public Icon getIcon();", "public void placeRoboticon(RoboticonCustomisation roboticonCustomisation) {\r\n\t\tthis.roboticon = roboticonCustomisation;\r\n\t}", "@Override\n public void drawIcons(Graphics g) {\n drawStatus(g);\n\n int tileDimension = 120;\n\n if (!isEmpty()) {\n Icon intent = enemy.getIntent();\n intent.setPosition(getXGraphic() + (tileDimension / 2), getYGraphic() - (tileDimension / 3));\n intent.draw(g);\n }\n }", "public Item appendToNode( Item node, String text, Image image, Style style ) {\r\n\t\tIconItem item = new IconItem( text, image);\r\n\t\tappendToNode( node, item, style );\r\n\t\treturn item;\r\n\t}", "public ImageIcon getIcon(Location loc){\r\n return loc.getImage(pointer);\r\n }", "@Override\n public void paintComponent( Graphics g )\n {\n super.paintComponent( g ); // call superclass paintComponent\n \n images[ currentImage ].paintIcon(this, g, 115, 100);\n \n // Set next image to be drawn only if Timer is running\n if ( animationTimer.isRunning() )\n currentImage = ( currentImage + 1 ) % TOTAL_IMAGES;\n }", "private void botonImagen() {\n ImageIcon guardar = new ImageIcon(getClass().getResource(\"/Img/saveIcon.png\"));\n btnGuardar.setIcon(new ImageIcon(guardar.getImage().getScaledInstance(btnGuardar.getWidth(), btnGuardar.getHeight(), Image.SCALE_SMOOTH)));\n \n //ImageIcon eliminar = new ImageIcon(\"src/Img/Delete.png\");\n ImageIcon eliminar = new ImageIcon(getClass().getResource(\"/Img/Delete.png\"));\n btnEliminar.setIcon(new ImageIcon(eliminar.getImage().getScaledInstance(btnEliminar.getWidth(), btnEliminar.getHeight(), Image.SCALE_SMOOTH)));\n \n //ImageIcon regresar = new ImageIcon(\"src/Img/arrow.png\");\n ImageIcon regresar = new ImageIcon(getClass().getResource(\"/Img/arrow.png\"));\n btnRegresar.setIcon(new ImageIcon(regresar.getImage().getScaledInstance(btnRegresar.getWidth(), btnRegresar.getHeight(), Image.SCALE_SMOOTH)));\n \n //ImageIcon cancelar = new ImageIcon(\"src/Img/deleteIcon.png\");\n ImageIcon cancelar = new ImageIcon(getClass().getResource(\"/Img/deleteIcon.png\"));\n btnCancelar.setIcon(new ImageIcon(cancelar.getImage().getScaledInstance(btnCancelar.getWidth(), btnCancelar.getHeight(), Image.SCALE_SMOOTH)));\n\n }", "private void setIcon(){\n this.setIconImage(new ImageIcon(getClass().getResource(\"/Resources/Icons/Icon.png\")).getImage());\n }", "public abstract ImageDescriptor getIcon();", "protected void addImageIcons(String key) {\n Image normal = ResourceManager.getImage(\"orderButton.normal.\" + key);\n Image highlighted = ResourceManager.getImage(\"orderButton.highlighted.\" + key);\n Image pressed = ResourceManager.getImage(\"orderButton.pressed.\" + key);\n Image disabled = ResourceManager.getImage(\"orderButton.disabled.\" + key);\n orderButtonImageCount = ((normal == null) ? 0 : 1)\n + ((highlighted == null) ? 0 : 1)\n + ((pressed == null) ? 0 : 1)\n + ((disabled == null) ? 0 : 1);\n if (hasOrderButtons()) {\n putValue(BUTTON_IMAGE, new ImageIcon(normal));\n putValue(BUTTON_ROLLOVER_IMAGE, new ImageIcon(highlighted));\n putValue(BUTTON_PRESSED_IMAGE, new ImageIcon(pressed));\n putValue(BUTTON_DISABLED_IMAGE, new ImageIcon(disabled));\n } else {\n logger.warning(\"Missing \" + (4-orderButtonImageCount)\n + \" orderButton images for \" + getId());\n }\n }", "String getIcon();", "String getIcon();", "private void setIcon(final TypedArray typedArray, final int attr) {\n final Drawable drawable = ThemeUtil.getDrawable(this.getContext(), typedArray, attr);\n if (drawable == null) {\n return;\n }\n if (attr == R.styleable.WaypointItem_removingEnabledIcon) {\n setRemoveDrawable(drawable);\n } else if (attr == R.styleable.WaypointItem_draggingEnabledIcon) {\n setDragDrawable(drawable);\n }\n }", "public void setIcon(String icon) {\n this.icon = icon;\n }", "public void setIcon(String icon) {\n this.icon = icon;\n }", "public InsideGameMenu(ImageIcon image){\n setSize(81,20);\n this.image = image;\n addMouseListener(this);\n }", "public Monstruo(int posX, int posY ,Image image, int posRen, int posCol) {\n\t\tsuper(posX, posY, image);\n\t\tthis.posRen = posRen;\n\t\tthis.posCol = posCol;\n\t\t\n\t\tthis.posX = posCol*icono.getIconHeight();\n\t\tthis.posY = posRen*icono.getIconWidth();\n\t\torientacion = 4;\n\t}", "@Override\n\tImageIcon getImage() {\n\t\treturn img;\n\t}", "public void setIconIndex(int value) {\n this.iconIndex = value;\n }", "public void paintIcon(Component c, Graphics g, int x, int y)\n\t{\n\t\tGraphics2D g2 = (Graphics2D) g;\n\t\tshape.draw(g2);\n\t}", "public abstract String getIcon(int current_turn);", "public abstract ImageIcon getButtonIcon();", "public Icon(final String label, final Bitmap image) {\r\n _label = label;\r\n _image = image;\r\n\r\n // Icon can be focused\r\n _state = AccessibleState.FOCUSABLE;\r\n }", "public ImagePicture(ImageIcon img, int x, int y) { \r\n\t\tsuper();\r\n\t\tsetxPos(x);\r\n\t\tsetyPos(y); \r\n\t\tthis.image = img;\r\n\t\trepaint();\r\n\t}", "public void lightIcons() {\n teamPhoto.setImage((new Image(\"/Resources/Images/emptyTeamLogo.png\")));\n copyIcon.setImage((new Image(\"/Resources/Images/black/copy_black.png\")));\n helpPaneIcon.setImage((new Image(\"/Resources/Images/black/help_black.png\")));\n if (user.getUser().getProfilePhoto() == null) {\n accountPhoto.setImage((new Image(\"/Resources/Images/black/big_profile_black.png\")));\n }\n }", "public abstract Drawable getIcon();", "public void place() {\n\t\tprocessing.image(Image, x, y);\n\t}", "private JButton getIcoButton() {\r\n\t\tif (icoButton == null) {\r\n\t\t\ticoButton = new JButton();\r\n\t\t\ticoButton.setIcon(new ImageIcon(getClass().getResource(\"/img/icon/tileimg.png\")));\r\n\t\t\ticoButton.setPreferredSize(new Dimension(23, 23));\r\n\t\t\ticoButton.setLocation(new Point(72, 1));\r\n\t\t\ticoButton.setSize(new Dimension(23, 23));\r\n\t\t\ticoButton.setToolTipText(\"图片编辑\");\r\n\t\t\ticoButton.setActionCommand(\"icoButton\");\r\n\t\t\tbuttonAction = new ButtonAction(this);\r\n\t\t\ticoButton.addActionListener(buttonAction);\r\n\t\t}\r\n\t\treturn icoButton;\r\n\t}", "public void paintComponent(Graphics page) {\r\n super.paintComponent(page);\r\n IMAGE.paintIcon(this, page, x, y);\r\n }", "public void setMainIcon(IconReference ref);", "boolean hasIcon();", "boolean hasIcon();" ]
[ "0.6516", "0.6438398", "0.6389147", "0.6336645", "0.63225174", "0.6196121", "0.6176334", "0.6114323", "0.6062601", "0.6055016", "0.60248774", "0.60209614", "0.60177577", "0.5976386", "0.5974613", "0.59589976", "0.59317577", "0.5906528", "0.5906528", "0.5831428", "0.5827619", "0.58054215", "0.57954687", "0.5777078", "0.57565266", "0.5737519", "0.5730892", "0.5727328", "0.5723148", "0.569667", "0.56823415", "0.56812584", "0.56706005", "0.56620544", "0.5654393", "0.56438667", "0.56161714", "0.561516", "0.5608263", "0.55881923", "0.5582936", "0.5576104", "0.55679524", "0.5562129", "0.5548887", "0.554727", "0.55449605", "0.5544168", "0.554146", "0.5534762", "0.55305606", "0.55204207", "0.55128044", "0.55098194", "0.5505558", "0.5496483", "0.5484965", "0.5479391", "0.5478833", "0.54758626", "0.54740083", "0.546941", "0.54689395", "0.5467069", "0.54615945", "0.54582477", "0.54576856", "0.5452539", "0.5449344", "0.5447354", "0.5438272", "0.543732", "0.5437304", "0.54332197", "0.54327255", "0.5429576", "0.5425196", "0.5423378", "0.54043365", "0.54043365", "0.5401552", "0.5392582", "0.5392582", "0.53857625", "0.5378453", "0.5378109", "0.5375404", "0.53643453", "0.5352987", "0.53438795", "0.5340646", "0.53399086", "0.53335154", "0.53271043", "0.53165567", "0.53039247", "0.52965444", "0.5296309", "0.5290313", "0.5290313" ]
0.74702156
0
This method adds a given Graphic Object to the Graphic Canvas with the default stroke and fill caracteristics.
private void addGraphicObject(GraphicObject g_obj, int x, int y) { g_obj.setFillColor(this.currentFillColor); g_obj.setStroke(this.currentStrokeColor, this.currentStrokeSize.getValue()); this.canvas.add(g_obj, x, y); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void addGraphicObject(GraphicObject obj)\n {\n graphicObjects.addLast(obj);\n }", "private void addTextObject(GraphicObject g_obj, int x, int y) {\n Color stroke = new Color(0, 0, 0, 0);\n\n g_obj.setFillColor(this.currentFillColor);\n g_obj.setStroke(stroke, 0);\n\n\t\tthis.canvas.add(g_obj, x, y);\n\t}", "private void createGraphics() {\n\n Graphic graphic;\n // create spatial reference for the points\n SpatialReference spatialReference = SpatialReference.create(4326);\n\n // create points to place markers\n List<Point> points = new ArrayList<>();\n points.add(new Point(-2.641, 56.077, spatialReference));\n points.add(new Point(-2.669, 56.058, spatialReference));\n points.add(new Point(-2.718, 56.060, spatialReference));\n points.add(new Point(-2.720, 56.073, spatialReference));\n\n // create simple marker symbols for the points\n markers = new ArrayList<>();\n markers.add(new SimpleMarkerSymbol(SimpleMarkerSymbol.Style.CIRCLE, RED, 10));\n markers.add(new SimpleMarkerSymbol(SimpleMarkerSymbol.Style.TRIANGLE, PURPLE, 10));\n markers.add(new SimpleMarkerSymbol(SimpleMarkerSymbol.Style.CROSS, GREEN, 10));\n markers.add(new SimpleMarkerSymbol(SimpleMarkerSymbol.Style.DIAMOND, BLUE, 10));\n\n // create a list of names for graphics\n List<String> names = new ArrayList<>();\n names.add(\"LAMB\");\n names.add(\"CANTY BAY\");\n names.add(\"NORTH BERWICK\");\n names.add(\"FIDRA\");\n\n // create a list of descriptions for graphics\n List<String> descriptions = new ArrayList<>();\n descriptions.add(\"Just opposite of Bass Rock.\");\n descriptions.add(\"100m long and 50m wide.\");\n descriptions.add(\"Lighthouse in northern section.\");\n descriptions.add(\"Also known as Barley Farmstead.\");\n\n // create four graphics with attributes and add to graphics overlay\n for (int i = 0; i < 4; i++) {\n graphic = new Graphic(points.get(i), markers.get(i));\n graphic.getAttributes().put(\"NAME\", names.get(i));\n graphic.getAttributes().put(\"DESCRIPTION\", descriptions.get(i));\n graphicsOverlay.getGraphics().add(graphic);\n }\n }", "void setGraphicsCreator(Graphics g, Object creator);", "@Override\n public void handlePaint()\n {\n for(GraphicObject obj : this.graphicObjects)\n {\n obj.draw();\n }\n \n }", "public CanvasAWT(Graphics2D graphic){\r\n\t\ttarget = graphic;\r\n\t}", "@Override\n public void fill() {\n graphicsEnvironmentImpl.fill(canvas);\n }", "@Override\n\tpublic void paintObject(Graphics g) {\n\t\tg.setColor(this.color);\n\t\tGraphics2D g2d = (Graphics2D) g;\n\t\tg2d.setStroke(new BasicStroke(3));\n\t\tg2d.drawOval(x, y, width, height);\n\t\tg2d.fillOval(x, y, width, height);\n\t}", "@Override public void draw(){\n // this take care of applying all styles (colors/stroke)\n super.draw();\n // draw our shape\n pg.ellipseMode(PGraphics.CORNER); // TODO: make configurable\n pg.ellipse(0,0,getSize().x,getSize().y);\n }", "@Override\n public void paintComponent(final Graphics theGraphics) {\n super.paintComponent(theGraphics);\n final Graphics2D g2d = (Graphics2D) theGraphics; \n g2d.setPaint(PowerPaintMenus.getDrawColor());\n g2d.setStroke(new BasicStroke(PowerPaintMenus.getThickness()));\n if (!myFinishedDrawings.isEmpty()) {\n for (final Drawings drawing : myFinishedDrawings) {\n g2d.setColor(drawing.getColor());\n g2d.setStroke(drawing.getStroke());\n if (PowerPaintMenus.isFilled()) {\n g2d.fill(drawing.getShape());\n } else {\n g2d.draw(drawing.getShape()); \n }\n }\n }\n if (myHasShape) {\n g2d.draw(myCurrentShape);\n }\n }", "void drawObject(DrawingObject d){\n canvas.drawDrawingObject(d);\n }", "@Override\n\tpublic void draw(GraphicsContext gc) {\n\t\tgc.setFill(this.color.getColor());\n\t\tgc.fillRect(MyPoint.point[0], MyPoint.point[1], this.width, this.height);\n\t}", "@Override\n public void draw(GraphicsContext gc) {\n gc.setFill(getFillColor());\n gc.setStroke(getStrokeColor());\n gc.setLineWidth(getStrokeWidth());\n gc.fillRect(getX1(), getY1(), getX2() - getX1(), getX2() - getX1());\n gc.strokeRect(getX1(), getY1(), getX2() - getX1(), getX2() - getX1());\n }", "private void drawWithGraphicStroke(Graphics2D graphic, Shape path, Graphic gFill,\n Feature feature) {\n if (LOGGER.isLoggable(Level.FINER)) {\n LOGGER.finer(\"drawing a graphicalStroke\");\n }\n \n int trueImageHeight = 0;\n int trueImageWidth = 0;\n \n // get the image to draw\n BufferedImage image = getExternalGraphic(gFill);\n \n if (image != null) {\n trueImageWidth = image.getWidth();\n trueImageHeight = image.getHeight();\n \n if (LOGGER.isLoggable(Level.FINER)) {\n LOGGER.finer(\"got an image in graphic fill\");\n }\n } else {\n if (LOGGER.isLoggable(Level.FINER)) {\n LOGGER.finer(\"going for the mark from graphic fill\");\n }\n \n Mark mark = getMark(gFill, feature);\n int size = 200;\n trueImageWidth = size;\n trueImageHeight = size;\n \n image = new BufferedImage(size, size, BufferedImage.TYPE_INT_ARGB);\n \n Graphics2D g1 = image.createGraphics();\n double rotation = 0.0;\n rotation = ((Number) gFill.getRotation().getValue(feature)).doubleValue();\n fillDrawMark(g1, markCentrePoint, mark, (int) (size * .9), rotation, feature);\n \n MediaTracker track = new MediaTracker(obs);\n track.addImage(image, 1);\n \n try {\n track.waitForID(1);\n } catch (InterruptedException e) {\n LOGGER.warning(e.toString());\n }\n }\n \n int size = 6;\n \n size = ((Number) gFill.getSize().getValue(feature)).intValue();\n \n int imageWidth = size; //image.getWidth();\n int imageHeight = size; //image.getHeight();\n \n PathIterator pi = path.getPathIterator(null, 10.0);\n double[] coords = new double[6];\n int type;\n \n double[] first = new double[2];\n double[] previous = new double[2];\n type = pi.currentSegment(coords);\n first[0] = coords[0];\n first[1] = coords[1];\n previous[0] = coords[0];\n previous[1] = coords[1];\n \n if (LOGGER.isLoggable(Level.FINEST)) {\n LOGGER.finest(\"starting at \" + first[0] + \",\" + first[1]);\n }\n \n pi.next();\n \n while (!pi.isDone()) {\n type = pi.currentSegment(coords);\n \n switch (type) {\n case PathIterator.SEG_MOVETO:\n \n // nothing to do?\n if (LOGGER.isLoggable(Level.FINEST)) {\n LOGGER.finest(\"moving to \" + coords[0] + \",\" + coords[1]);\n }\n \n break;\n \n case PathIterator.SEG_CLOSE:\n \n // draw back to first from previous\n coords[0] = first[0];\n coords[1] = first[1];\n \n if (LOGGER.isLoggable(Level.FINEST)) {\n LOGGER.finest(\"closing from \" + previous[0] + \",\" + previous[1] + \" to \"\n + coords[0] + \",\" + coords[1]);\n }\n \n // no break here - fall through to next section\n case PathIterator.SEG_LINETO:\n \n // draw from previous to coords\n if (LOGGER.isLoggable(Level.FINEST)) {\n LOGGER.finest(\"drawing from \" + previous[0] + \",\" + previous[1] + \" to \"\n + coords[0] + \",\" + coords[1]);\n }\n \n double dx = coords[0] - previous[0];\n double dy = coords[1] - previous[1];\n double len = Math.sqrt((dx * dx) + (dy * dy)); // - imageWidth;\n \n double theta = Math.atan2(dx, dy);\n dx = (Math.sin(theta) * imageWidth);\n dy = (Math.cos(theta) * imageHeight);\n \n //int dx2 = (int)Math.round(dy/2d);\n //int dy2 = (int)Math.round(dx/2d);\n if (LOGGER.isLoggable(Level.FINEST)) {\n LOGGER.finest(\"dx = \" + dx + \" dy \" + dy + \" step = \"\n + Math.sqrt((dx * dx) + (dy * dy)));\n }\n \n double rotation = theta - (Math.PI / 2d);\n double x = previous[0] + (dx / 2.0);\n double y = previous[1] + (dy / 2.0);\n \n if (LOGGER.isLoggable(Level.FINEST)) {\n LOGGER.finest(\"len =\" + len + \" imageWidth \" + imageWidth);\n }\n \n double dist = 0;\n \n for (dist = 0; dist < (len - imageWidth); dist += imageWidth) {\n /*graphic.drawImage(image2,(int)x-midx,(int)y-midy,null); */\n renderImage(x, y, image, size, rotation);\n \n x += dx;\n y += dy;\n }\n \n if (LOGGER.isLoggable(Level.FINEST)) {\n LOGGER.finest(\"loop end dist \" + dist + \" len \" + len + \" \" + (len - dist));\n }\n \n if ((len - dist) > 0.0) {\n double remainder = len - dist;\n \n //clip and render image\n if (LOGGER.isLoggable(Level.FINEST)) {\n LOGGER.finest(\"about to use clipped image \" + remainder);\n }\n \n BufferedImage img = new BufferedImage(trueImageHeight, trueImageWidth,\n BufferedImage.TYPE_INT_ARGB);\n Graphics2D ig = img.createGraphics();\n ig.setClip(0, 0, (int) (((double) trueImageWidth * remainder) / (double) size),\n trueImageHeight);\n \n ig.drawImage(image, 0, 0, trueImageWidth, trueImageHeight, obs);\n \n renderImage(x, y, img, size, rotation);\n }\n \n break;\n \n default:\n LOGGER.warning(\"default branch reached in drawWithGraphicStroke\");\n }\n \n previous[0] = coords[0];\n previous[1] = coords[1];\n pi.next();\n }\n }", "public abstract void setStroke(BasicStroke stroke);", "public abstract void addComponent(DrawingComponent component);", "public void addShape(Shapes obj) {\n \tthis.listShapes.add(obj);\n W.repaint();\n }", "public void addShape(final Shape theShape) {\n if (myWidth > 0) {\n final Drawing newDrawing = new Drawing(theShape, myColor, myWidth);\n if (myDrawingArray.isEmpty()) {\n firePropertyChange(ARRAY_STRING, null, NOT_EMPTY_STRING);\n }\n myDrawingArray.add(newDrawing);\n repaint();\n } \n }", "public void draw(Graphics g){\n g.setColor(c);\n if (this.fill){\n g.fillOval(x, y, width, height);\n }else{\n g.drawOval(x, y, width, height);\n }\n }", "@Override\n public void paint(Graphics g1){\n\n try{\n super.paint(g1);\n\n drawSymbols_Rel( g1 );\n drawSymbols_Att( g1 );\n /**\n //==== only for test ====\n this.setComplexRelationsCoordinates(20, 28, 33, 38);\n this.setComplexRelationsCoordinates_extraEnds(400, 404);\n */\n\n drawComplexRelationship(g1);\n drawPath(g1);\n \n \n \n }catch(Exception ex){\n }\n }", "public void draw()\n {\n canvas.setForegroundColor(color);\n canvas.fillCircle(xPosition, yPosition, diameter);\n }", "public void draw() {\r\n\t\tbackground(255); // Clear the screen with a white background\r\n\r\n\t\ttextSize(12);\r\n\t\tfill(0);\r\n\r\n\t\tstroke(0);\r\n\t\tcurve.draw(this);\r\n\t}", "@Override\n public void stroke() {\n graphicsEnvironmentImpl.stroke(canvas);\n }", "@Override\n public void paintComponent(Graphics g) {\n super.paintComponent(g);\n\n Graphics2D g2d = (Graphics2D) g;\n drawAxis(g2d);\n \n drawCurve(g2d);\n \n drawPoints(g2d);\n \n // drawObject(g2d); **\n // El panel, por defecto no es \"focusable\". \n // Hay que incluir estas líneas para que el panel pueda\n // agregarse como KeyListsener.\n this.setFocusable(true);\n this.requestFocusInWindow();\n }", "DrawShape(){\r\n super();\r\n setBackground(Color.WHITE);\r\n addMouseListener(this);\r\n }", "public void paint(Graphics2D g){\n g.setColor(color);\n g.fill(shape);\n }", "public void mousePressed(GraphicObject graphicObject, Event event) {\n\t\tint x, y;\n\t\t\n\t\tx = DOM.eventGetClientX(event) - canvas.getAbsoluteLeft() + Window.getScrollLeft();\n\t\ty = DOM.eventGetClientY(event) - canvas.getAbsoluteTop() + Window.getScrollTop(); \n\t\t\n\t\tif(!action.isSelect() && !action.isPolyline() && !action.isTextBox() && !action.isPencil()) {\n\n switch(action.getAction()) {\n\n\t\t\t\n\t\t\t\tcase Action.LINE:\n\t\t\t\t\t/* Starts to draw a line */\n\t\t\t\t\tcurr_obj = new Line(0, 0, 1, 1);\n\t\t\t\t\tbreak;\n\t\t\t\tcase Action.RECTANGLE:\n\t\t\t\t\t/* Starts to draw a rectangle */\n\t\t\t\t\tcurr_obj = new Rect(1, 1);\n\t\t\t\t\tbreak;\n\t\t\t\t\n\t\t\t\tcase Action.CIRCLE:\n\t\t\t\t\t/* Starts to draw a circle */\n\t\t\t\t\tcurr_obj = new Circle(1);\n\t\t\t\t\tbreak;\n\t\t\t\t\n\t\t\t\tcase Action.ELLIPSE:\n\t\t\t\t\t/* Starts to draw a Ellipse */\n\t\t\t\t\tcurr_obj = new Ellipse(1, 1);\n\t\t\t\t\tbreak;\n\n }\n\t\t\t\n\t\t\tlastPosition[0] = x;\n\t\t\tlastPosition[1] = y;\n\t\t\t\n\t\t\tobjPosition[0] = x;\n\t\t\tobjPosition[1] = y;\n\t\t\t\n\t\t\taddGraphicObject( curr_obj, x, y);\n\t\t\t\n\t\t/* Selects a object */\n\t\t} else if(action.isSelect() && (graphicObject != null)) {\n /** If there was another object previously selected, unselect it. */\n if(curr_obj != null && graphicObject != curr_obj && graphicObject.getGroup() != transformPoints) {\n unSelect();\n }\n\n /** If we didn't click on any Transform Point, then we select the object. */\n if((graphicObject.getGroup() != transformPoints)) {\n\n if(curr_obj == null) {\n Rectangle bnds = graphicObject.getBounds();\n if(bnds != null) {\n /** This may seem strange but for some object types, mainly Paths and Ellipses, Tatami's method getBounds() will return null until the object is translated. */\n graphicObject.translate(1, 1);\n graphicObject.translate(-1, -1);\n if(bnds.getHeight() == 0 && bnds.getWidth() == 0) {\n bnds = graphicObject.getBounds();\n }\n\n this.backupStyle();\n\n fillOpacity.setValue(graphicObject.uGetFillColor().getAlpha());\n strokeOpacity.setValue(graphicObject.getStrokeColor().getAlpha());\n\n currentFillColor = graphicObject.uGetFillColor();\n DOM.setStyleAttribute(fill.getElement(), \"backgroundColor\",currentFillColor.toCss(false));\n currentFillColor.setAlpha(graphicObject.uGetFillColor().getAlpha());\n\n currentStrokeColor = graphicObject.getStrokeColor();\n DOM.setStyleAttribute(stroke.getElement(), \"backgroundColor\",currentStrokeColor.toCss(false));\n this.currentStrokeSize.setValue(graphicObject.getStrokeWidth());\n //chooseStrokeSize(graphicObject.getStrokeWidth()-1, graphicObject.getStrokeWidth());\n createTransformPoints(bnds, graphicObject);\n }\n\n curr_obj = graphicObject;\n }\n lastPosition[0] = x;\n lastPosition[1] = y;\n objPosition[0] = x;\n objPosition[1] = y;\n isMovable = true;\n\n /** if the user clicked on a transform point, this settles the variables for the object tranformation. */\n } else {\n lastPosition[0] = x;\n lastPosition[1] = y;\n isTransformable = true;\n aux_obj = curr_obj;\n\t\t\t\tcurr_obj = graphicObject;\n currRotation = 0.0;\n if(curr_obj == transformPointers[Action.ROTATE]) {\n canvas.remove(transformPoints);\n transformPoints.clear();\n }\n }\n\n /** Starts to draw a TextBox.\n * To add usability, a Text object is allways composed by a Text object and a TextBox. The TextBox is simillar to a Rectangle but it's alpha values are set to 0(it's transparent) and has the size of the text's bounds.\n * This allows the user to select a Text object more easily because now he has a rectangle with the size of the Text's boundaries to click on. The TextBox contains a link to the Text (and also the Text to the TextBox) so when a user click on it, we know which Text Object is selected and perform the given actions on it as well.\n * Note: This weren't supported by Tatami, i had to implement it.\n * */\n } else if(this.action.isTextBox()) {\n\n this.curr_obj = new com.objetdirect.tatami.client.gfx.TextBox(1.0, 1.0, null);\n this.lastPosition[0] = x;\n\t\t\tthis.lastPosition[1] = y;\n\n\t\t\tthis.objPosition[0] = x;\n\t\t\tthis.objPosition[1] = y;\n\n\t\t\tthis.addTextBox( this.curr_obj, x, y);\n } else if(this.action.isPencil()) {\n /* Starts to draw with the pencil */\n curr_obj = new Path();\n ((Path)curr_obj).moveTo(x, y);\n Color fill = new Color(this.currentFillColor.getRed(), this.currentFillColor.getGreen(), this.currentFillColor.getBlue(), 0);\n\n objPosition[0] = x;\n\t\t\tobjPosition[1] = y;\n\n curr_obj.setFillColor(fill);\n curr_obj.setStroke(currentStrokeColor, currentStrokeSize.getValue());\n canvas.add(curr_obj, 0, 0);\n /* Otherwise it adds a new point in the Polyline */\n } else if(this.action.isPolyline() && curr_obj != null) {\n this.lastPosition[0] = x;\n this.lastPosition[1] = y;\n }\n\t}", "public ShapeGraphics createShapeGraphics(Shape shape, Color filling, Color colorLine, float thick, float alpha, float depth) {\n\t\tShapeGraphics shapeGraphics = new ShapeGraphics(shape, filling, colorLine, thick, alpha, depth);\n\t\tshapeGraphics.setParent(entity);\n\t\treturn shapeGraphics;\n\t}", "@Override\n\tprotected void outlineShape(Graphics graphics) {\n\t}", "public static void mainDraw(Graphics graphics) {\n int x1 = 50;\r\n int x2 = 180;\r\n int y1 = 180;\r\n int y2 = 50;\r\n Color[] colors = {Color.blue, Color.cyan, Color.green, Color.magenta};\r\n graphics.setColor(colors[1]);\r\n graphics.drawLine(x1, y2, x2, y2);\r\n graphics.setColor(colors[2]);\r\n graphics.drawLine(x2, y2, x2, y1);\r\n graphics.setColor(colors[3]);\r\n graphics.drawLine(x2, y1, x1, y1);\r\n graphics.setColor(colors[0]);\r\n graphics.drawLine(x1, y1, x1, y2);\r\n }", "public void draw(Graphics graphics);", "public void addPolyGon() {\n abstractEditor.drawNewShape(new ESurfaceDT());\n }", "public void setStroke(Stroke stroke);", "public void Draw() {\n \tapp.fill(this.r,this.g,this.b);\n\t\tapp.ellipse(posX, posY, 80, 80);\n\n\t}", "private void addTextBox(GraphicObject g_obj, int x, int y) {\n Color boxColor = new Color(119, 136, 153, 30);\n\n g_obj.setFillColor(boxColor);\n g_obj.setStroke(Color.GRAY, 1);\n\n\t\tthis.canvas.add(g_obj, x, y);\n\t}", "public void drawGraphic(Canvas canvas) {\n Bitmap bitmap = Bitmap.createBitmap(getWidth(), getHeight(), Bitmap.Config.ARGB_8888);\n bitmap.setPixels(getPixels(), 0, getWidth(), 0, 0, getWidth(), getHeight());\n canvas.drawBitmap(bitmap,\n new Rect(0, 0, getWidth(), getHeight()),\n new Rect(getXOffset(), getYOffset(), getXOffset() + getWidth(), getYOffset() + getHeight()),\n null);\n bitmap.recycle();\n }", "private void createShape(NscComponent comp, Color color, boolean outline) {\n comp.setBackground(color);\n comp.setFilled(true);\n if (!outline) comp.setForeground(color);\n add(comp);\n repaint();\n }", "@Override\n public void draw(ModernComponent c, Graphics2D g2, IntRect rect, Props props) {\n\n g2.setColor(FILL);\n\n fill(c, g2, rect, props);\n\n g2.setColor(BORDER);\n outline(c, g2, rect, props);\n }", "@Override\n public void onClick() {\n // TODO: Disabled adding shape on just click. It should be added inside the BPMNDiagram by default.\n // log(Level.FINE, \"Palette: Adding \" + description);\n // addShapeToCanvasEvent.fire(new AddShapeToCanvasEvent(definition, factory));\n }", "public void setStrokeColor(RMColor aColor)\n{\n // Set stroke color\n if(aColor==null) setStroke(null);\n else if(getStroke()==null) setStroke(new RMStroke(aColor, 1));\n else getStroke().setColor(aColor);\n}", "public void drawMe(Graphics g){\r\n\t\t\tg.setColor(color);\r\n\t\t\tg.fillRect(x, y, sizeX, sizeY);\r\n\t\t}", "@Override\n\tpublic void draw(Graphics canvas) {}", "public void paint(Graphics g) {\r\n\t\tsuper.paint(g);\r\n\t\t// add code below\r\n\t\tGraphics g1 = drawingPanel.getGraphics();\r\n\t\tif (myLine != null && myLine.getIsAPerpendicular() == false) {\r\n\t\t\tShapes.add(myLine);\r\n\t\t\tfor (int i = 0; i < Shapes.size(); i++) {\r\n\t\t\t\tShapes.get(i).draw(g1);\r\n\t\t\t}\r\n\t\t}// End If to prevent null pointer exception\r\n\t\tif (myOval != null) {\r\n\t\t\tShapes.add(myOval);\r\n\t\t\tfor (int i = 0; i < Shapes.size(); i++) {\r\n\t\t\t\tShapes.get(i).draw(g1); // To make this legal an abstract method named draw which accepted graphics g need to be added to the shapes class\r\n\t\t\t}\r\n\t\t}// End If to prevent null pointer exception\r\n\t}", "private void resetStroke(Graphics2D graphic) {\n if (LOGGER.isLoggable(Level.FINER)) {\n LOGGER.finer(\"reseting the graphics\");\n }\n \n graphic.setStroke(DEFAULT_STROKE);\n }", "DrawingCanvas() {\n super();\n\n // ArrayList to hold all shape objects\n shapes = new ArrayList<>();\n\n // ArrayList to hold all point objects\n points = new ArrayList<>();\n\n // Initialize colour arrays\n lineColours = new ArrayList<>();\n fillColours = new ArrayList<>();\n\n lineColours.add(Color.black);\n fillColours.add(null);\n\n clickStatus = true;\n activeTool = 1;\n this.addMouseListener(this);\n this.addMouseMotionListener(new MouseMotionAdapter() {\n public void mouseDragged(MouseEvent e) {\n endDrag = new Point(e.getX(), e.getY());\n repaint();\n }\n });\n\n // Initialize the WriteVec object, so it can be written to\n writeFile = new WriteVec();\n\n // Initialize the ShapeCreator object\n newShape = new ShapeCreator();\n\n // Set colours\n currentFillColour = null;\n currentPenColour = Color.BLACK;\n }", "public void add(Shape c) {\n\t\tc.centerXProperty().addListener(doubleListener);\n\t\tc.centerYProperty().addListener(doubleListener);\n\t\tc.radiusProperty().addListener(doubleListener);\n\t\tc.colorProperty().addListener(colorListener);\n\t\tc.widthProperty().addListener(doubleListener);\n\t\tc.heightProperty().addListener(doubleListener);\n\t\tc.arcWidthProperty().addListener(doubleListener);\n\t\tc.arcHeightProperty().addListener(doubleListener);\n\t\tc.textProperty().addListener(textListener);\n\t\tc.typeProperty().addListener(typeListener);\n\t\tc.deleteProperty().addListener(deleteListener);\n\t\tdrawData.add(c);\n\t}", "public void drawOn(Graphics g);", "public void add(GObject object);", "public void draw(Graphics g){\n if (isEmpty()) {\n g.setColor(new Color(255, 204, 204));\n g.fillRect(getXGraphic(), getYGraphic(), 120, 120);\n g.setColor(Color.BLACK);\n if (getIndication()){\n g.setColor(new Color(0, 0, 0, 100));\n g.fillRect(getXGraphic(), getYGraphic(),120,120);\n }\n if (getTargetable()){\n g.setColor(new Color(0, 0, 255));\n g.drawRect(getXGraphic(), getYGraphic(),120,120);\n }\n\n g.drawRect(getXGraphic(), getYGraphic(), 120, 120);\n } else {\n enemy.draw(getXGraphic(), getYGraphic() ,g, getIndication());\n\n //Draw blue square around if it is a targetable space\n if (getTargetable()){\n g.setColor(new Color(0, 0, 255));\n g.drawRect(getXGraphic(), getYGraphic(),120,120);\n }\n }\n }", "@Override\n\tpublic void BuildShape(Graphics g) {\n\t\t\n\t}", "@Override\n\tpublic void draw(Graphics2D g2d) {\n\t\tAffineTransform saveAT = g2d.getTransform() ;\n\t\t// Append this shape's transforms to the graphics object's transform. Note the\n\t\t// ORDER: Translation will be done FIRST, then Scaling, and lastly Rotation\n\t\tg2d.transform(getRotation());\n\t\tg2d.transform(getScale());\n\t\tg2d.transform(getTranslation());\n\t\t\n\t\t// draw this object in the defined color\n\t\t;\n\t\tg2d.drawLine(top.x, top.y, bottomLeft.x, bottomLeft.y);\n\t\tg2d.drawLine(bottomLeft.x,bottomLeft.y,bottomRight.x,bottomRight.y);\n\t\tg2d.drawLine(bottomRight.x,bottomRight.y,top.x,top.y);\n\t\t\n\t\t// restore the old graphics transform (remove this shape's transform)\n\t\tg2d.setTransform (saveAT) ;\n\t}", "@Override\n public void paintComponent(Graphics g)\n {\n m_g = g;\n // Not sure what our parent is doing, but this seems safe\n super.paintComponent(g);\n // Setup, then blank out with white, so we always start fresh\n g.setColor(Color.white);\n g.setFont(null);\n g.clearRect(1, 1, this.getBounds().width, this.getBounds().height);\n g.fillRect(1, 1, this.getBounds().width, this.getBounds().height);\n g.setColor(Color.red);\n //g.drawRect(10,10,0,0);\n //drawPoint(20,20);\n \n // Call spiffy functions for the training presentation\n m_app.drawOnTheCanvas(new ExposedDrawingCanvas(this));\n m_app.drawOnTheCanvasAdvanced(g);\n \n // ADVANCED EXERCISE: YOU CAN DRAW IN HERE\n \n // END ADVANCED EXERCISE SPACE\n \n // Clear the special reference we made - don't want to abuse this\n m_g = null;\n \n \n // Schedule the next repaint\n java.awt.EventQueue.invokeLater(new Runnable() {\n public void run() {\n m_app.repaint();\n try\n {\n Thread.sleep(100);\n }\n catch (Exception e)\n { \n \n }\n }\n }); \n }", "public void interface1(){\n noStroke();\n fill(10,100);//light gray\n rect(0,60,600,590);\n fill(220);//gray\n noStroke();\n beginShape();\n vertex(365,40);\n vertex(600,40);\n vertex(600,80);\n vertex(365,80);\n vertex(345,60);\n endShape(CLOSE);\n fill(19,70,100,100);//dark blue\n rect(0,110,600,215);\n rect(0,380,600,215);\n}", "private void resetFill(Graphics2D graphic) {\n if (LOGGER.isLoggable(Level.FINER)) {\n LOGGER.finer(\"reseting the graphics\");\n }\n \n graphic.setComposite(DEFAULT_COMPOSITE);\n }", "protected void paintComponent(Graphics graphics){\n super.paintComponent(graphics);\n\n Graphics2D g2d = (Graphics2D)graphics;\n g2d.setRenderingHint(RenderingHints.KEY_ANTIALIASING,RenderingHints.VALUE_ANTIALIAS_ON);\n\n renderBackground(graphics);\n renderCard(graphics);\n renderCoin(graphics);\n }", "public void draw()\n {\n Rectangle hatbox = new Rectangle(x, y, 20, 20);\n hatbox.fill();\n Rectangle brim = new Rectangle(x-10, y+20, 40, 0);\n brim.draw();\n Ellipse circle = new Ellipse (x, y+20, 20, 20);\n circle.draw();\n Ellipse circle2 = new Ellipse (x-10, y+40, 40, 40);\n circle2.draw();\n Ellipse circle3 = new Ellipse (x-20, y+80, 60, 60);\n circle3.draw();\n \n }", "public void makeGraphic() {\n\t\tStdDraw.clear();\n\n\t\tfor (int i = 0; i < p.showArray.size(); i++) {\n\t\t\tStdDraw.setPenColor(0, 255, 255);\n\n\t\t\tStdDraw.circle(p.showArray.get(i).acquirePosition().x, p.showArray.get(i).acquirePosition().y,\n\t\t\t\t\tp.showArray.get(i).acquireSizeOfBody());\n\t\t\tStdDraw.setPenColor(StdDraw.GRAY);\n\n\t\t\tStdDraw.filledCircle(p.showArray.get(i).acquirePosition().x, p.showArray.get(i).acquirePosition().y,\n\t\t\t\t\tp.showArray.get(i).acquireSizeOfBody());\n\n\t\t}\n\t\tStdDraw.show();\n\t}", "public SimpleGraphics( Graphics2D graphics ) {\n\t\tthis.graphics = graphics;\n\t\tscale = 1.0;\n\t\treloadRenderingSettings();\n\t}", "private void setupDrawing(){\n brushSize = 1;\n lastBrushSize = brushSize;\n drawPath = new Path();\n drawPaint = new Paint();\n drawPaint.setColor(paintColor);\n drawPaint.setAntiAlias(true);\n drawPaint.setStrokeWidth(brushSize);\n drawPaint.setStyle(Paint.Style.STROKE);\n drawPaint.setStrokeJoin(Paint.Join.ROUND);\n drawPaint.setStrokeCap(Paint.Cap.ROUND);\n canvasPaint = new Paint(Paint.DITHER_FLAG);\n }", "void drawOutline(DrawContext dc, Object shape);", "public void addShape(TShape aShape){\r\n // fShapes.remove(aShape); // just in case it was already there\r\n\r\n /*unfortunately we need to have a front to back screen order, properties at the back\r\n (drawn first), then individuals, finally relations between individuals*/\r\n\r\n /* if (aShape instanceof TLine)\r\n fShapes.add(aShape); // add at the end\r\n else if (aShape instanceof TProperty)\r\n fShapes.add(0,aShape); // add at the beginning\r\n else {\r\n int insertIndex=0;\r\n if (fShapes.size() > 0) {\r\n Iterator iter = fShapes.iterator();\r\n\r\n while (iter.hasNext()) {\r\n if (! ((TShape) iter.next()instanceof TProperty))\r\n break; //put it after rectangles\r\n else\r\n insertIndex++;\r\n }\r\n }\r\n fShapes.add(insertIndex,aShape);\r\n }*/\r\n\r\n\r\n // aShape.setSemantics(fSemantics);\r\n\r\n aShape.addChangeListener(this); // and we'll listen for any of its changes, such as being selected\r\n\r\n addShapeToList(aShape,fShapes);\r\n\r\n if (aShape instanceof TInterpretationBoard)\r\n ((TInterpretationBoard)aShape).setSemantics(fSemantics);\r\n\r\n\r\n fPalette.check(); // some of the names may need updating\r\n\r\n repaint();\r\n }", "public void drawObjects(Graphics g) {\r\n\t\tlevelManager.drawObjects(g);\r\n\t}", "public abstract void draw(java.awt.Graphics canvas);", "public void setFillColor(Color color);", "public GeometricObject(String color, boolean filled) {\n dateCreated = new java.util.Date();\n this.color = color;\n this.filled = filled;\n }", "public void draw( DrawingCanvas canvas, Color c, boolean fill ) { \n myTriLine1= new Line((double)getP1().getX(), (double)getP1().getY(), \n (double)getP2().getX(),(double)getP2().getY(), canvas); \n myTriLine2= new Line((double)getP2().getX(), (double)getP2().getY(), \n (double)getP3().getX(),(double)getP3().getY(), canvas); \n myTriLine3= new Line((double)getP3().getX(), (double)getP3().getY(), \n (double)getP1().getX(),(double)getP1().getY(), canvas);\n //filled\n if (fill){\n if (c==null){\n myTriLine1.setColor(Color.black);\n myTriLine2.setColor(Color.black);\n myTriLine3.setColor(Color.black);\n }\n else{\n myTriLine1.setColor(c);\n myTriLine2.setColor(c);\n myTriLine3.setColor(c);\n }\n }\n //empty\n else{\n if (c==null){\n myTriLine1.setColor(Color.black);\n myTriLine2.setColor(Color.black);\n myTriLine3.setColor(Color.black);\n }\n else{\n myTriLine1.setColor(c);\n myTriLine2.setColor(c);\n myTriLine3.setColor(c);\n }\n }\n }", "public static void mainDraw(Graphics graphics){\n\n int centerX = WIDTH / 3 ;\n int centerY = HEIGHT / 3;\n int rectA2 = 20 / 2;\n\n graphics.setColor(Color.GREEN);\n graphics.drawRect(centerX - rectA2, centerY - rectA2, rectA2 * 2, rectA2 * 2);\n\n centerX = WIDTH /5 ;\n centerY = HEIGHT / 2;\n rectA2 = 40 / 2;\n\n graphics.setColor(Color.YELLOW);\n graphics.drawRect(centerX - rectA2, centerY - rectA2, rectA2 * 2, rectA2 * 2);\n\n centerX = WIDTH / 2 ;\n centerY = HEIGHT / 6;\n rectA2 = 70 / 2;\n\n graphics.setColor(Color.BLUE);\n graphics.drawRect(centerX - rectA2, centerY - rectA2, rectA2 * 2, rectA2 * 2);\n\n centerX = WIDTH / 2 ;\n centerY = HEIGHT / 2;\n rectA2 = 100 / 2;\n\n graphics.setColor(Color.RED);\n graphics.drawRect(centerX - rectA2, centerY - rectA2, rectA2 * 2, rectA2 * 2);\n\n }", "public void setDrawingCap(CAP cap);", "public abstract void drawFill();", "public int addGraphic(Graphic graphic)\n\t{\n\t\treturn getObject().addGraphic(graphic);\n\t}", "@Override\r\n\tprotected void draw(PGraphics pg) {\r\n\t\tif(font == null) {\r\n\t\t\tfont = rootContainer.getPApplet().createFont(\"Arial\", ((int)this.height * 0.8F));\r\n\t\t}\r\n\t\tpg.stroke(0);\r\n\t\tpg.strokeWeight(3);\r\n\t\tpg.noFill();\r\n\t\tif(activated == false) {\r\n\t\t}else {\r\n\t\t\tpg.line(x, y, x+height, y+height);\r\n\t\t\tpg.line(x+height, y, x, y+height);\r\n\t\t}\r\n\t\tpg.rect(x, y, height, height);\r\n\t\tpg.textAlign(PApplet.LEFT, PApplet.CENTER);\r\n\t\tpg.textFont(font);\r\n\t\tpg.fill(this.textColor.red, textColor.green, textColor.blue, textColor.alpha);\r\n\t\tpg.text(this.text, x+height+(height/2), y-3, width-height, height);\r\n\t}", "void add(GeometricalObject object);", "public void draw(GraphicsContext gc) {\r\n gc.setStroke(Color.BLACK);\r\n gc.setFill(Color.BLUE);\r\n gc.setLineWidth(5.0);\r\n double r = radius / 2;\r\n gc.fillRect(x - r, y - r, radius * 2, radius * 2);\r\n gc.strokeRect(x - r, y - r, radius * 2, radius * 2);\r\n }", "@Override\n public void draw( Graphics g )\n {\n g.setFont(new Font(\"Times New Roman\", Font.BOLD, 20));\n g.setColor( Color.BLUE );\n g.fillOval( baseX, baseY, myWidth, myHeight );\n g.setColor( Color.BLACK );\n g.drawString( card, baseX + 7, baseY + 20 ); }", "public void onDraw(Canvas canvas) {\n super.onDraw(canvas);\n if (this.mDefaultDrawingIsUsed) {\n this.mPaint.setStyle(Paint.Style.FILL);\n this.mPaint.setColor(getBackgroundColor());\n Canvas canvas2 = canvas;\n canvas2.drawRect(0.0f, 0.0f, (float) getWidth(), (float) getHeight(), this.mPaint);\n this.mPaint.setStyle(Paint.Style.STROKE);\n this.mPaint.setColor(getBorderColor());\n this.mPaint.setAntiAlias(true);\n this.mPaint.setStrokeWidth(getBorderWidth());\n canvas2.drawRect(0.0f, 0.0f, (float) getWidth(), (float) getHeight(), this.mPaint);\n }\n }", "public void draw(Graphics g) {\n g.setColor(COLOR);\n g.fillOval(x, y, WIDTH, HEIGHT);\n g.setColor(Color.BLUE);\n g.drawOval(x, y, WIDTH, HEIGHT);\n \n }", "public void paintComponent(Graphics myGraphic) \n\t{\n\t\tsuper.paintComponent(myGraphic);\t\n\t}", "public void addPolyGonHole() {\n try {\n ESurface surface;\n surface = (ESurface) abstractEditor.getSelected();\n if ((surface) != null) {\n abstractEditor.drawNewShape(new ESurfaceHoleDT(\n surface));\n }\n } catch (final Exception e) {\n e.printStackTrace();\n }\n }", "protected void addTacticalGraphics()\r\n {\n RenderableLayer layer = new RenderableLayer();\r\n layer.setName(\"Tactical Graphics\");\r\n \r\n // Define the control point positions for the tactical graphic we create below.\r\n List<Position> positions = Arrays.asList(\r\n Position.fromDegrees(34.4980, -117.5541, 0),\r\n Position.fromDegrees(34.4951, -117.4667, 0),\r\n Position.fromDegrees(34.4733, -117.4303, 0),\r\n Position.fromDegrees(34.4217, -117.4056, 0),\r\n Position.fromDegrees(34.4780, -117.5300, 0));\r\n \r\n // Create a tactical graphic for the MIL-STD-2525 symbology set. The graphic identifies a MIL-STD-2525\r\n // friendly Supporting Attack.\r\n TacticalGraphicFactory factory = new MilStd2525GraphicFactory();\r\n TacticalGraphic graphic = factory.createGraphic(\"GFGPOLAGS-----X\", positions, null);\r\n graphic.setValue(AVKey.DISPLAY_NAME, \"MIL-STD-2525 Tactical Graphic\"); // Tool tip text.\r\n layer.addRenderable(graphic);\r\n \r\n // Create point placemarks to mark each of the control points used to define the tactical graphic. This\r\n // provides a visualization of how the control point positions affect the displayed graphic.\r\n this.addControlPoints(positions, layer);\r\n \r\n // Add the graphic layer to the World Wind model.\r\n this.getWwd().getModel().getLayers().add(layer);\r\n \r\n // Update the layer panel to display the graphic layer.\r\n this.getLayerPanel().update(this.getWwd());\r\n }", "public void draw(Graphics2D g2){\n g2.setColor(color);\n g2.fillOval(x,y, w, w);\n }", "private void draw()\n {\n Canvas canvas = Canvas.getCanvas();\n canvas.draw(this, color, new Ellipse2D.Double(xPosition, yPosition, \n diameter, diameter));\n canvas.wait(10);\n }", "@Override\n\tpublic void draw(Graphics graphics) {\n\t\tgraphics.setColor(Color.black);\t\t\t\t\t\t\t\t\t//Farbe schwarz\n\t\tgraphics.drawRect(point.getX(),point.getY() , width, height);\t//malt ein leeren Rechteck\n\t}", "public void mouseClicked(GraphicObject graphicObject, Event event) {\n\t\tint x, y;\n\n /** if there's no graphic Object selected, we unSelect any other that was previously selected */\n if(action.isSelect() && (graphicObject == null)) {\n\t\t\tif(curr_obj!= null) {\n this.unSelect();\n this.restoreStyle();\n }\n\t\t\t\n\t\t} else {\n\t\t\tx = DOM.eventGetClientX(event) - canvas.getAbsoluteLeft() + Window.getScrollLeft();\n\t\t\ty = DOM.eventGetClientY(event) - canvas.getAbsoluteTop() + Window.getScrollTop(); \n\t\t\t\n\t\t\t\n\t\t\tif(action.isPolyline() && curr_obj == null) {\n /* If there is no Polyline object created, starts to draw a Polyline */\n curr_obj = new Path();\n ((Path)curr_obj).moveTo(x, y);\n\n addGraphicObject( curr_obj, 0, 0);\n this.currentPath = ((Path)this.curr_obj).commands;\n\t\t\t}\n\t\t}\n\t\t\n\t}", "@Override\n public void paintComponent(Graphics gg){\n \tGraphics2D g = (Graphics2D) gg;\n \tg.setColor(new Color(0,0,0));\n \tg.fillRect(0, 0, width, height);\n \t/// Draw Functions ///\n \t//menus.drawMenus(g);\n \t/// Rest ///\n \tfor(PhysicsObject obj: objects){\n \t\tobj.drawSelf(g);\n \t}\n \tg.setColor(new Color(255,255,255));\n \tg.fillOval(mx-3, my-3, 5, 5);\n }", "public void setStroke(RMStroke aStroke)\n{\n if(RMUtils.equals(getStroke(), aStroke)) return; // If value already set, just return\n repaint(); // Register repaint\n if(_stroke!=null) _stroke.removePropertyChangeListener(this);\n firePropertyChange(\"Stroke\", _stroke, _stroke = aStroke, -1); // Set value and fire PropertyChange\n if(_stroke!=null) _stroke.addPropertyChangeListener(this); // Set shape\n}", "public Shapes draw ( );", "public void add(GeometricalObject object);", "public void paint(Graphics graphics) {\r\n\tselectLineTipe(graphics);\r\n\r\n\tPointList polygonPoints = constructPolygonPoints();\r\n\r\n\tgraphics.drawPolygon(polygonPoints);\r\n\r\n\tdrawInstruction(graphics);\r\n }", "public int[] addGraphics(Graphic[] graphics)\n\t{\n\t\treturn getObject().addGraphics(graphics);\n\t}", "public final void draw(Graphics2D g) {\n if (fillColor == null) {\n fillColor = this.myColor();\n }\n\n super.draw(g);\n\n // refresh the width and height attributes\n refreshDimensions(g);\n\n int nameFieldHeight = calculateNameFieldHeight(g);\n int attributeFieldHeight = calculateAttributeFieldHeight(g);\n int methodFieldHeight = calculateMethodFieldHeight(g);\n int startingX = getX();\n int startingY = getY();\n\n // determine the outline of the rectangle representing the class\n g.setPaint(fillColor);\n Shape shape = new Rectangle2D.Double(startingX, startingY, width, height);\n g.fill(shape);\n\n Stroke originalStroke = g.getStroke();\n g.setStroke(new BasicStroke(1.2f));\n originalStroke = g.getStroke();\n if (isSelected()) {\n g.setStroke(new BasicStroke(2));\n g.setPaint(highlightColor);\n } else {\n g.setStroke(originalStroke);\n g.setPaint(outlineColor);\n }\n\n g.draw(shape);\n g.setStroke(originalStroke);\n g.setPaint(outlineColor);\n\n // draw the inner lines\n g.drawLine(startingX, startingY + nameFieldHeight, startingX + width, startingY + nameFieldHeight);\n g.drawLine(startingX, startingY + nameFieldHeight + attributeFieldHeight, startingX + width,\n startingY + nameFieldHeight + attributeFieldHeight);\n\n FontRenderContext frc = g.getFontRenderContext();\n int currentY = 0;\n\n currentY = drawStereotype(g, frc, startingX, startingY, currentY); //hook for design class\n\n // draw class name\n if (!abstractClass.getName().equals(\"\")) {\n String name = abstractClass.getName();\n TextLayout layout = new TextLayout(name, nameFont, frc);\n Rectangle2D bounds = layout.getBounds();\n int nameX = ((width - (int) bounds.getWidth()) / 2) - (int) bounds.getX();\n int nameY = currentY + nameFieldYOffset - (int) bounds.getY();\n\n g.setFont(nameFont);\n g.drawString(name, startingX + nameX, startingY + nameY);\n }\n\n // draw the attributes\n g.setFont(attributeFont);\n\n currentY = nameFieldHeight + 2;\n\n int attributeX;\n int attributeY;\n TextLayout layout;\n Rectangle2D bounds;\n\n String name;\n Iterator iterator = abstractClass.getAttributes().iterator();\n while (iterator.hasNext()) {\n name = ((Attribute) iterator.next()).toString();\n layout = new TextLayout(name, attributeFont, frc);\n bounds = layout.getBounds();\n attributeX = attributeFieldXOffset - (int) bounds.getX();\n attributeY = currentY + attributeFieldYOffset - (int) bounds.getY();\n g.drawString(name, startingX + attributeX, startingY + attributeY);\n currentY = currentY + attributeFieldYOffset + (int) bounds.getHeight();\n }\n\n currentY = nameFieldHeight + attributeFieldHeight + 2;\n currentY = drawMethods(g, frc, startingX, startingY, currentY);\n }", "public void setPaint(Paint paint)\n {\n g2.setPaint(paint);\n }", "@Override\n public void drawingMethod(final Graphics theGraphics, final DrawShape theShape) {\n final Path2D path = new Path2D.Double();\n path.moveTo(theShape.getStartPoint().getX(), \n theShape.getStartPoint().getY());\n path.lineTo(theShape.getEndPoint().getX(),\n theShape.getEndPoint().getY());\n final Graphics2D g2d = (Graphics2D) theGraphics;\n g2d.setRenderingHint(RenderingHints.KEY_ANTIALIASING, \n RenderingHints.VALUE_ANTIALIAS_ON);\n g2d.setStroke(new BasicStroke(theShape.getMyThick()));\n g2d.setColor(theShape.getMyColor());\n g2d.draw(path); \n }", "public void mouseDblClicked(GraphicObject graphicObject, Event event) {\n /** if it's a polyline, then we close it's path and therefore finish it */\n if(action.isPolyline() && (curr_obj != null)) {\n ((Path)this.curr_obj).closePath();\n curr_obj = null;\n\t\t\taux_obj = null;\n\n /** if the user double clicked on a text object, a textbox or the text itself, this method spawns a Textarea above the text in the canvas so that the user can edit the text that was created., */\n } else if(action.isSelect() && (graphicObject != null) && (graphicObject.getType() == 7 || graphicObject.getType() == 8) ) {\n this.curr_obj = graphicObject;\n\n /** TextArea initialization */\n this.editor = new TextArea();\n this.editor.setWidth((int)(graphicObject.getBounds().getWidth()+20)+\"px\");\n this.editor.setHeight((int)(graphicObject.getBounds().getHeight()+20)+\"px\");\n if(graphicObject.getType() == 7) {\n this.editor.setText( ((Text)graphicObject).getText() );\n } else {\n this.editor.setText( ((TextBox)graphicObject).text.getText() );\n }\n /** We add a keyboard listener to handle the Esc key. In the event of a Esc key, the TextArea should disapear and the text object should be updated. */\n this.editor.addKeyboardListener(new KeyboardListenerAdapter() {\n public void onKeyDown(Widget sender, char keyCode, int modifiers) {\n if (keyCode == (char) KEY_ESCAPE) {\n\n editor.cancelKey();\n\n aux_obj = null;\n aux_obj = new Text(editor.getText());\n if(curr_obj.getType() == 7) {\n ((Text)aux_obj).setFont( ((Text)curr_obj).getFont());\n addTextObject(aux_obj, (int)curr_obj.getX(), (int)curr_obj.getY());\n\n canvas.remove(((Text)curr_obj).bounder);\n } else {\n ((Text)aux_obj).setFont( ((TextBox)curr_obj).text.getFont());\n addTextObject(aux_obj, (int)((TextBox)curr_obj).text.getX(), (int)((TextBox)curr_obj).text.getY());\n canvas.remove(((TextBox)curr_obj).text);\n }\n canvas.remove(curr_obj);\n\n curr_obj = null;\n curr_obj = new TextBox(aux_obj.getBounds(), (Text)aux_obj);\n addTextBox(curr_obj, (int)aux_obj.getBounds().getX(), (int)aux_obj.getBounds().getY());\n ((Text)aux_obj).bounder = (TextBox)curr_obj;\n\n Color textColor = new Color(aux_obj.getFillColor().getRed(), aux_obj.getFillColor().getGreen(), aux_obj.getFillColor().getBlue(), 0);\n curr_obj.setFillColor(textColor);\n curr_obj.setStroke(textColor, 1);\n\n aux_obj = null;\n curr_obj = null;\n apanel.remove(editor);\n editor = null;\n }\n }\n });\n this.apanel.add(editor, (int)this.curr_obj.getX() + this.canvas.getAbsoluteLeft() - Window.getScrollLeft() - 2, (int)this.curr_obj.getY() + this.canvas.getAbsoluteTop() - Window.getScrollTop() - 2);\n }\n }", "public void draw(Graphics g){\n g.setColor (colour);\n g.fillOval (x,y,DIAMETER, DIAMETER);\n g.setColor (Color.black);\n g.drawString(name, x+5, y+30);\n g.setFont (new Font (\"Times New Roman\", Font.PLAIN, 16) );\n g.setColor (Color.black);\n g.drawString (Integer.toString(seatNum), x+13 ,y+18) ;\n \n \n \n \n \n \n }", "public void drawAllGraphics(){\r\n\t\t \r\n\t}", "public void strokeShape(Shape shape);", "public void draw(Graphics g, int x0, int y0, int scale){\n \tint x = x0 + (int)(this.getX() * scale);\n\t\tint y = y0 + (int)(this.getY() * scale);\n \t\n \t//if cat == 0\n \t//draw a red rectangle\n \tif( this.cat == 0){\n \t\tg.setColor(new Color(1f, 0f, 0f));\n\t\t\tg.fillRect(x, y, scale * 2, scale * 2);\n\t\t\n\t\t\treturn;\n \t}\n \t//if cat == 1\n \t//draw a green rectangle\n \t// green triangle arc for extension\n \telse if( this.cat == 1){\n \t\tg.setColor(new Color(0f, 1f, 0f));\n\t\t\tg.fillArc(x, y, scale * 4, scale * 4, 0, 90);\n\t\t\n\t\t\treturn;\n\t\t}\n\t\t//if cat == 2\n \t//draw a blue rectangle\n \t// blue circle oval for extension\n \telse if( this.cat == 2){\n \t\tg.setColor(new Color(0f, 0f, 1f));\n\t\t\tg.fillOval(x, y, scale * 2, scale * 2);\n\t\t\n\t\t\treturn;\n\t\t\n\t\t}\n }", "final void drawobj(java.awt.Graphics g) {\n\t\tdraw(g, Engine.scaleX(x), Engine.scaleY(y));\n\t}", "public void Initialize()\n\t{\n\t\tsetObject(new GraphicsLayer());\n\t}", "public void setGraphics(Graphics2D graphics) {\r\n\t\tthis.graphics = graphics;\r\n\t}" ]
[ "0.67852056", "0.6467315", "0.5887413", "0.5834342", "0.58050656", "0.58046687", "0.57648325", "0.57588303", "0.5703962", "0.56951326", "0.566908", "0.5660673", "0.5652758", "0.5649438", "0.56305176", "0.56283593", "0.55804986", "0.55599314", "0.5558211", "0.5556101", "0.5540099", "0.5538857", "0.5533653", "0.5515238", "0.5486333", "0.5476609", "0.54764926", "0.54684347", "0.5466231", "0.54661137", "0.5461756", "0.5457722", "0.543264", "0.54237205", "0.54063004", "0.5405772", "0.5403837", "0.54033923", "0.5398979", "0.53949547", "0.5384224", "0.53762704", "0.5364971", "0.5354574", "0.5348602", "0.53438306", "0.53385633", "0.53349006", "0.5330561", "0.5328563", "0.53183967", "0.53150666", "0.5308672", "0.5307", "0.5304972", "0.5300618", "0.5289606", "0.5287825", "0.52864945", "0.5285799", "0.52828604", "0.5281507", "0.5272476", "0.52703774", "0.5266568", "0.52628314", "0.5257775", "0.52565616", "0.5254856", "0.52484566", "0.5247034", "0.52470136", "0.52451587", "0.524235", "0.5238101", "0.52339184", "0.5228681", "0.52186835", "0.5218023", "0.5200487", "0.51983666", "0.51912206", "0.51885295", "0.5183943", "0.51817113", "0.5178725", "0.5178076", "0.5176056", "0.5176048", "0.51755834", "0.51604414", "0.51603794", "0.514431", "0.5144279", "0.5143936", "0.51422364", "0.51420635", "0.5135845", "0.5132275", "0.51298475" ]
0.7618067
0
This method adds a given TextBox to the Graphic Canvas
private void addTextBox(GraphicObject g_obj, int x, int y) { Color boxColor = new Color(119, 136, 153, 30); g_obj.setFillColor(boxColor); g_obj.setStroke(Color.GRAY, 1); this.canvas.add(g_obj, x, y); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void createTextBox(){\n // Check if theGreenFootImage was set, otherwise create a blanco image\n // with the specific heights.\n if(theGreenfootImage != null){\n image = new GreenfootImage(theGreenfootImage);\n }else{\n image = new GreenfootImage(fieldWidth, fieldHeight);\n }\n \n if(hasBackground){\n if(borderWidth == 0 || borderHeight == 0){\n createAreaWithoutBorder();\n } else{\n createAreaWithBorder(borderWidth, borderHeight);\n }\n }\n \n // Create the default dont with given fontsize and color.\n font = image.getFont();\n font = font.deriveFont(fontSize);\n image.setFont(font);\n image.setColor(fontColor);\n \n // Draw the string in the image with the input, on the given coordinates.\n image.drawString(input, drawStringX, drawStringY);\n \n setImage(image); // Place the image\n }", "public void addText(String text) {\n\t\tNodeList frameList = maNoteElement.getElementsByTagNameNS(OdfDocumentNamespace.DRAW.getUri(), \"frame\");\n\t\tif (frameList.getLength() > 0) {\n\t\t\tDrawFrameElement frame = (DrawFrameElement) frameList.item(0);\n\t\t\tNodeList textBoxList = frame.getElementsByTagNameNS(OdfDocumentNamespace.DRAW.getUri(), \"text-box\");\n\t\t\tif (textBoxList.getLength() > 0) {\n\t\t\t\tDrawTextBoxElement textBox = (DrawTextBoxElement) textBoxList.item(0);\n\t\t\t\tTextPElement newPara = textBox.newTextPElement();\n\t\t\t\tnewPara.setTextContent(text);\n\t\t\t}\n\t\t}\n\t}", "public TextBox addTextBox(final String key) {\n String label = key;\n TextBox textBox = new TextBox(getComposite(), _form, key, label, false);\n textBox.adapt(_formToolkit);\n _form.mapField(key, textBox);\n return textBox;\n }", "private void addTextObject(GraphicObject g_obj, int x, int y) {\n Color stroke = new Color(0, 0, 0, 0);\n\n g_obj.setFillColor(this.currentFillColor);\n g_obj.setStroke(stroke, 0);\n\n\t\tthis.canvas.add(g_obj, x, y);\n\t}", "@Override\n\t\tpublic void addText(String txt) {\n\t\t\t\n\t\t}", "public void addToTextbox(String input) {\n\t\tlabel.setText(input.trim());\n\t}", "public TextBox addTextBox(final String key, final int height) {\n String label = key;\n TextBox textBox = new TextBox(getComposite(), _form, key, label, false, height);\n textBox.adapt(_formToolkit);\n _form.mapField(key, textBox);\n return textBox;\n }", "void addFocus();", "public void Addtxt (String txt) {\n clearZero();\n lastNumber = true;\n displayResult.setText(displayResult.getText()+txt);\n }", "public DrawTextPanel() {\n\t\tfileChooser = new SimpleFileChooser();\n\t\tundoMenuItem = new JMenuItem(\"Remove Item\");\n\t\tundoMenuItem.setEnabled(false);\n\t\tmenuHandler = new MenuHandler();\n\t\tsetLayout(new BorderLayout(3,3));\n\t\tsetBackground(Color.BLACK);\n\t\tsetBorder(BorderFactory.createLineBorder(Color.BLACK, 2));\n\t\tcanvas = new Canvas();\n\t\tadd(canvas, BorderLayout.CENTER);\n\t\tJPanel bottom = new JPanel();\n\t\tbottom.add(new JLabel(\"Text to add: \"));\n\t\tinput = new JTextField(\"Hello World!\", 40);\n\t\tbottom.add(input);\n\t\tadd(bottom, BorderLayout.SOUTH);\n\t\t\n\t\tJButton button = new JButton(\"Generate Random\");\n\t\tbottom.add(button);\n\t\t\n\t\tcanvas.addMouseListener( new MouseAdapter() {\n\t\t\tpublic void mousePressed(MouseEvent e) {\n\t\t\t\tdoMousePress( e.getX(), e.getY() ); \n\t\t\t}\n\t\t} );\n\t\t\n\t\tbutton.addActionListener(new ActionListener() { \n\t\t\tpublic void actionPerformed(ActionEvent e) { \n\t\t\t\tfor (int i = 0; i < 150; i++) { \n\t\t\t\t\tint X = new Random().nextInt(800); \n\t\t\t\t\tint Y = new Random().nextInt(600);\n\t\t\t\t\tdoMousePress(X, Y); \n\t\t\t\t}\n\t\t\t}\n\t\t} );\n\t}", "public void addTextBox(int screenId, int maxSize, ConstraintType constraint, boolean isPassword,\r\n\t\t\tboolean isUneditable, String key, String title, String text, String url) {\r\n\t\tElement textBox = mDocument.createElement(\"IppTextBox\");\r\n\t\tif (maxSize > 0) {\r\n\t\t\ttextBox.setAttribute(\"MaxSize\", String.valueOf(maxSize));\r\n\t\t}\r\n\t\ttextBox.setAttribute(\"Default\", \"TEXT\");\r\n\t\ttextBox.setAttribute(\"Constraint\", constraint.toString());\r\n\t\ttextBox.setAttribute(\"Password\", isPassword ? \"YES\" : \"NO\");\r\n\t\tif (key != null) {\r\n\t\t\ttextBox.setAttribute(\"Key\", key);\r\n\t\t}\r\n\t\ttextBox.setAttribute(\"Uneditable\", isUneditable ? \"YES\" : \"NO\");\r\n\t\tmScreens.get(screenId).appendChild(textBox);\r\n\r\n\t\taddTextNode(textBox, \"Title\", title);\r\n\t\taddTextNode(textBox, \"Text\", text);\r\n\t\taddTextNode(textBox, \"Url\", url);\r\n\t}", "private void createTextField(){\n Font font = new Font(\"Verdana\", Font.BOLD,3*getGameContainer().getWidth()/100);\n TrueTypeFont ttf = new TrueTypeFont(font,true);\n int fieldWidth = getGameContainer().getWidth()/3;\n int fieldHeight = getGameContainer().getHeight()/18;\n nameField = new TextField(getGameContainer(), ttf,43*getGameContainer().getWidth()/100,24*getGameContainer().getHeight()/100, fieldWidth, fieldHeight);\n nameField.setBackgroundColor(Color.white);\n nameField.setTextColor(Color.black);\n passwordField= new TextField(getGameContainer(), ttf,43*getGameContainer().getWidth()/100,32*getGameContainer().getHeight()/100, fieldWidth, fieldHeight);\n passwordField.setBackgroundColor(Color.white);\n passwordField.setTextColor(Color.black);\n }", "Builder addText(Text value);", "public TextBoxComponent(JButton draw)\n\t{\n\t\tsetLayout(new FlowLayout());\n\t\tsetComponentOrientation(ComponentOrientation.LEFT_TO_RIGHT);\n\t\t\n\t\tqualityNum = sidesNum = 0;\n\t\tlengthNum = widthNum = heightNum = 1;\n\t\tradiusNum = radius2Num = rollNum = pitchNum = yawNum = 0;\n\t\t\n\t\txText = new JLabel(\" X:\");\n\t\tyText = new JLabel(\" Y:\"); \n\t\tzText = new JLabel(\" Z:\"); \n\t\tlengthText = new JLabel(\" Length:\"); \n\t\twidthText = new JLabel(\" Width:\"); \n\t\theightText = new JLabel(\" Height:\"); \n\t\tradiusText = new JLabel(\" Radius:\"); \n\t\tradius2Text = new JLabel(\" Radius 2:\"); \n\t\trollText = new JLabel(\" Roll:\"); \n\t\tpitchText = new JLabel(\" Pitch:\"); \n\t\tyawText = new JLabel(\" Yaw:\"); \n\t\tqualityText = new JLabel(\" Quality:\");\n\t\tsidesText = new JLabel(\" # of Sides:\");\n\t \t\n\t \tx = new JTextField(12); \n\t \ty = new JTextField(12); \n\t \tz = new JTextField(12); \n\t \tlength = new JTextField(5); \n\t \twidth = new JTextField(5); \n\t \theight = new JTextField(5); \n\t \tradius = new JTextField(5); \n\t \tradius2 = new JTextField(5);\n\t \troll = new JTextField(5); \n\t \tpitch = new JTextField(5); \n\t \tyaw = new JTextField(5); \n\t \tquality = new JTextField(5); \n\t \tsides = new JTextField(5);\n\t \t\n\t \t//radius.addActionListener(this);\n\t \t//radius.addMouseListener(this);\n\t \tadd(xText);\n\t\tadd(x);\n\t\tadd(yText);\n\t\tadd(y);\n\t\tadd(zText);\n\t\tadd(z);\n\t\tadd(lengthText);\n\t\tadd(length);\n\t\tadd(widthText);\n\t\tadd(width);\n\t\tadd(heightText);\n\t\tadd(height);\n\t\tadd(radiusText);\n\t\tadd(radius);\n\t\tadd(radius2Text);\n\t\tadd(radius2);\n\t\tadd(qualityText);\n\t\tadd(quality);\n\t\tadd(sidesText);\n \tadd(sides);\n \tadd(yawText);\n\t\tadd(yaw);\n\t\tadd(pitchText);\n\t\tadd(pitch);\n\t\tadd(rollText);\n\t\tadd(roll);\n\t\t\n\t \tsetShape(\"Cube\");\n\t \t\n\t \tadd(draw);\n\t \tsetVisible(true);\n\t \t\n\t \t\n\t \t//setComponentOrientation(ComponentOrientation.LEFT_TO_RIGHT);\n\t}", "public interface TextBox\n{\n\tpublic void setBounds(Vector2 position, Vector2 size);\n\t\n\tpublic void setText(String string);\n}", "public void textBoxAction( TextBoxWidgetExt tbwe ){}", "public void addText(Text text)\n {\n texts.add(text);\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}", "public void addText(String texto) {\n Platform.runLater(() -> {\n try {\n camadas.setExpandedPane(this);//Expandindo a camada\n //Thread.sleep(100);\n seta.setVisible(true);//Deixando a imagem da seta visivel\n seta.setLayoutY(posYSeta);//Alterando a posicao Y da seta\n textArea.setText(textArea.getText() + texto);//Adicionando o texto\n textArea.appendText(\"\");//Movendo o scroll bar da Area de texto\n } catch (Exception e) {\n e.printStackTrace();\n }\n });\n // Platform.runLater(new Runnable(){\n // @Override\n // public void run() {\n // try {\n // seta.setVisible(true);//Deixando a imagem da seta visivel\n // seta.setLayoutY(posYSeta);//Alterando a posicao Y da seta\n // textArea.setText(textArea.getText() + texto);//Adicionando o texto\n // textArea.appendText(\"\");//Movendo o scroll bar da Area de texto\n // } catch (Exception e) {\n // System.out.println(\"[ERRO] - Adicionar texto na \" + titulo);\n // e.printStackTrace();\n // }\n // }\n // });\n }", "public void txtFoco(org.edisoncor.gui.textField.TextFieldRectBackground txt){\n txt.requestFocus();\n }", "private void drawTextBox(Graphics g, int x, int y, int width, int height) {\n\n\t// draw a rectangle\n\tg.setColor(Color.BLACK);\n\tg.drawRect(x, y, width, height);\n\n\t// determine the text size\n\tint textSize = (int) (height * TEXT_RATIO);\n\n\t// determine the text margins\n\tint textMargin = (int) (width * TEXT_MARGIN_RATIO);\n\n\t// coordinates to print message\n\tint xCoord = x + textMargin;\n\tint yCoord = y + height - textMargin;\n\n\t// set up the font\n\tg.setColor(Color.BLACK);\n\tg.setFont(new Font(\"Times New Roman\", Font.BOLD, textSize));\n\n\t// print the text\n\tg.drawString(MESSAGE, xCoord, yCoord);\n }", "private void createTextPanel() {\r\n Composite textPanel = new Composite(this, SWT.NONE);\r\n textPanel.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true));\r\n textPanel.setLayout(new GridLayout(2, true));\r\n\r\n createLabel(textPanel, \"Name\");\r\n _nameText = new Text(textPanel, SWT.BORDER | SWT.RIGHT);\r\n _nameText.setLayoutData(new GridData(SWT.FILL, SWT.HORIZONTAL, true, true));\r\n _nameText.addKeyListener(new TextKeyListener());\r\n\r\n createLabel(textPanel, \"Group\");\r\n _numberGroupText = new Text(textPanel, SWT.BORDER | SWT.RIGHT);\r\n _numberGroupText.setLayoutData(new GridData(SWT.FILL, SWT.HORIZONTAL, true, true));\r\n _numberGroupText.addKeyListener(new TextKeyListener());\r\n\r\n createCheckButtonPanel(textPanel);\r\n }", "private void createTextField(JTextField textField, Component rightOf, Component below, int width, int height,\n JPanel panel) {\n int x = rightOf == null ? 10 : rightOf.getX() + rightOf.getWidth() + 5;\n // rightOf.getX() + rightOf.getWidth() + stdMargin()\n int y = below == null ? 30 : below.getY() + below.getHeight() + 5;\n // below.getY()+ below.getHeight() + stdMargin\n // int width = 250;\n // int height = 30;\n // textField.setOpaque(true);\n // textField.setBackground(Color.CYAN);\n textField.setBounds(x, y, width, height);\n panel.add(textField);\n }", "private void addNameBox() {\n\t\tnameBox = new JTextField(25);\n\t\tnameBox.addActionListener(this);\n\t\tadd (nameBox, SOUTH);\n\t}", "public TextBox addTextBox(final StringProperty property, int height) {\n return addTextBox(property.getKey(), height);\n }", "public TextBox() {\n font = new Font(fontname, fontstyle, fontsize);\n }", "private void makeFormattedTextField(){\n textField = new JTextField(\"\"+ShapeFactory.getRoundness(), 3);\n //add listener that happens after each type and make the field accept only numbers between 0 to 100\n textField.addKeyListener(new KeyAdapter() {\n @Override\n public void keyTyped(KeyEvent e) {\n super.keyTyped(e);\n typeEvent(e);\n }\n });\n }", "private void addEventsToTextBox() {\n \t\ttextBox.addFocusHandler(this);\n \t\ttextBox.addBlurHandler(this);\n \t\ttextBox.addKeyDownHandler(this);\n \t\ttextBox.addKeyUpHandler(this);\n \t\ttextBox.addKeyPressHandler(this);\t\t\n \t}", "void addTextListener(TextListener l);", "public TextBox addTextBox(final StringProperty property) {\n return addTextBox(property.getKey());\n }", "@Override\n public void startEdit() {\n super.startEdit();\n\n if (text_field == null) {\n createTextField();\n }\n setText(null);\n setGraphic(text_field);\n text_field.selectAll();\n }", "public void praticien_zone(){\n\n JLabel lbl_Praticien = new JLabel(\"Praticien :\");\n lbl_Praticien.setBounds(40, 50, 119, 16);\n add(lbl_Praticien);\n\n\n\n JTextField praticien = new JTextField();\n praticien.setBounds(200, 50, 200, 22);\n praticien.setEditable(false);\n try {\n praticien.setText((DAO_Praticien.nomPraticien(rapport_visite.elementAt(DAO_Rapport.indice)[1])));\n } catch (SQLException e) {\n // TODO Auto-generated catch block\n e.printStackTrace();\n }\n add(praticien);\n\n }", "public void InsertText(String txt){\n driver.switchTo().frame(driver.findElement(IFRAMEID));\n WebElement inputBox = find(BOXID);\n inputBox.clear();\n inputBox.sendKeys(txt);\n\n }", "public synchronized void add(String text, BoundingBox box, boolean errored) {\n labels.add(new LabelToWrite(text, box, errored));\n sumSizes.add(box.extent().x(), box.extent().y());\n }", "void init ( String awtOrSwt) {\n this.gui.wdgInputText.setText(\"any text input\");\n this.gui.gralMng.createGraphic(awtOrSwt, 'E', this.log);\n }", "public void addText(String text) {\n\t\tthis.text = text;\n\t}", "private void addText(Graphics g, Font font, Color frontColor, Rectangle rectangle, Color backColor, String str, int xPos, int yPos) {\n g.setFont(font);\n g.setColor(frontColor);\n if (rectangle != null) {\n g.drawRect(rectangle.x, rectangle.y, rectangle.width, rectangle.height);\n }\n g.setColor(backColor);\n if (rectangle != null) {\n g.fillRect(rectangle.x, rectangle.y, rectangle.width, rectangle.height);\n }\n g.setColor(frontColor);\n g.drawString(str, xPos, yPos);\n }", "private void createTextField(int i){\n\t\tint x = 10, y = 10, width = 100, height = 100;\n\t\tint temp = 0;\n\t\t\n\t\ttextFields.add(new JTextField());\n\t\ttextFields.get(i).setVisible(false);\n\t\ttextFields.get(i).addActionListener(this);\n\t\t\n\t\tfor (int a = 0; a<i; a++){\n\t\t\tx += 110;\n\t\t\ttemp++;\n\t\t\tif(temp >= Integer.parseInt(askColumns.getText())){\n\t\t\t\ty += 140;\n\t\t\t\tx = 10;\n\t\t\t\ttemp = 0;\n\t\t\t}\t\n\n\t\t}\n\t\t\n\t\t\n\t\ttextFields.get(i).setBounds(x, y, width, height);\n\t\tthis.add(textFields.get(i));\t\n\t\ttextFields.get(i).revalidate();\n\t\ttextFields.get(i).repaint();\n\t\t\n\t}", "private void creatingElements() {\n\t\ttf1 = new JTextField(20);\n\t\ttf2 = new JTextField(20);\n\t\ttf3 = new JTextField(20);\n\t\tJButton btn = new JButton(\"Add\");\n\t\tbtn.addActionListener(control);\n\t\tbtn.setActionCommand(\"add\");\n\t\t\n\t\tJPanel panel = new JPanel();\n\t\tpanel.add(tf1);\n\t\tpanel.add(tf2);\n\t\tpanel.add(btn);\n\t\tpanel.add(tf3);\n\t\t\n\t\tthis.add(panel);\n\t\t\n\t\tthis.validate();\n\t\tthis.repaint();\t\t\n\t\t\n\t}", "void createTextField(){\n TextField.TextFieldStyle textFieldStyle = skin.get(TextField.TextFieldStyle.class);\n textFieldStyle.font.getData().scale(2*FONT_SCALE);\n\n field = new TextField(\"\", btnSkin);\n field.setPosition(100, 400);\n field.setSize(500,100);\n field.setStyle(textFieldStyle);\n\n stageC.addActor(field);\n }", "public void addText(String newText) {\n lb.setText(newText + \"\\n\" + lb.getText());\n instance.setVvalue(0);\n }", "public TextBox() {\n\t\tsuper();\n\t\ttyping = false;\n\t\ttext = \"\";\n\t\tsize = new Vector();\n\t\tmaxLength = -1;\n\t\tfont = null;\n\t\tcursorTimer = System.currentTimeMillis();\n\t\tcursorShow = true;\n\t\teditable = true;\n\t}", "public void addTextField(String label, String fill, int index) {\n //inflater needed to \"inflate\" layouts\n LayoutInflater inflater = (LayoutInflater) getSystemService(Context.LAYOUT_INFLATER_SERVICE);\n //instantiate our data object.\n ElementTextField elementTextField = new ElementTextField(label, fill);\n //insert element data object in slot on page\n if (isLoading){\n currentPage.addElement(elementTextField);\n }else{\n currentPage.insertElement(index, elementTextField);\n }\n //we need to instantiate our xml fragment (text field) and bind it to the data object\n TextFieldBinding textFieldBinding = TextFieldBinding.inflate(inflater, null,false);\n textFieldBinding.setElementTextField(elementTextField);\n //get new view (our xml fragment -the text field) and add it to current view\n View newView = textFieldBinding.getRoot();\n if (isInspecting){\n EditText editText = newView.findViewById(R.id.label);\n editText.setFocusable(false);\n }\n linearLayoutBody.addView(newView, index);\n Context context = App.getContext();\n LogManager.reportStatus(context, \"INSPECTOR\", \"onTextField\");\n }", "Builder addText(String value);", "private void appendText(String text) {\n textArea.appendText(text);\n }", "private void makeGUI() {\n //Create the canvas and Components for GUI.\n canvas = new Canvas();\n\n canvas.setBounds(0, 0, getWidth(), getHeight());\n getContentPane().setBackground(DrawAttribute.whiteblue);\n searchArea = new JTextField();\n searchArea.setForeground(Color.GRAY);\n searchArea.setText(promptText);\n\n //Make the components for the frame.\n makeComponents();\n addComponentsToLayers();\n }", "public TextBoxCommentary(final GraphicView parent, String text, GraphicComponent component)\n\t{\n\t\tsuper(parent);\n\n\t\tif (component == null)\n\t\t\tthrow new IllegalArgumentException(\"component is null\");\n\n\t\tfinal Point middleTextBox = new Point(bounds.x + bounds.width / 2, bounds.y + bounds.height / 2);\n\n\t\tfinal Point middleComponent = new Point(bounds.x + bounds.width / 2, bounds.y + bounds.height / 2);\n\n\t\tif (LineCommentary.checkCreate(this, component, true))\n\t\t\tparent.addLineView(new LineCommentary(parent, this, component, middleTextBox, middleComponent, true));\n\n\t\tinit(text);\n\t}", "private void appendText()\n\t{\n\t\tString fieldText = \"\";\n\t\tString newText = \"\";\n\t\tfieldText = entry.getText();\n\t\t\n\t\tif(fieldText.equals (\"0\"))\n\t\t{\n\t\t\tnewText += append;\n\t\t\tfieldText = newText;\n\t\t\tentry.setText (fieldText);\n\t\t}\n\t\telse\n\t\t{\n\t\t\tfieldText += append;\n\t\t\tentry.setText (fieldText);\n\t\t}\n\t\t\n\t\tentry.grabFocus ( );\n\t\t\n\t}", "public void add(String label, JTextField txt1, JTextField txt2, JTextField txt3){\n\t\tGridBagConstraints cons = new GridBagConstraints();\n\t\tcons.fill = GridBagConstraints.NORTHEAST; \n\t\tcons.insets = new Insets(4,4,4,4); \n\n\t\tcons.fill = GridBagConstraints.NONE; \n\t\tcons.anchor = GridBagConstraints.NORTHWEST; \n\t\tcons.weightx = 0; \n\t\tcons.gridwidth = 1; \n\t\tthis.getContentPane().add(new JLabel(label), cons); \n\n\t\tcons.weightx = 1; \n\t\tcons.gridwidth = 1; \n\t\tcons.fill = GridBagConstraints.NONE; \n\t\tthis.getContentPane().add(txt1, cons); \n\n\t\tcons.fill = GridBagConstraints.NONE; \n\t\tcons.weightx = 0; \n\t\tcons.gridwidth = 1; \n\t\tthis.getContentPane().add(txt2, cons); \n\n\t\tcons.weightx = 1; \n\t\tcons.fill = GridBagConstraints.NONE; \n\t\tcons.gridwidth = GridBagConstraints.REMAINDER; \n\t\tthis.getContentPane().add(txt3, cons); \n\t}", "private TextField initHBoxTextField(HBox container, String initText, boolean editable) {\n TextField tf = new TextField();\n tf.setText(initText);\n tf.setEditable(editable);\n container.getChildren().add(tf);\n return tf;\n }", "public void addTextArea(String text) throws BadLocationException {\n\t\tcurrentTextArea = new JTextArea(text == null ? \"\" : text);\n AbstractDocument document = (AbstractDocument) currentTextArea.getDocument();\n document.setDocumentFilter(new Filter());\n\t\tcurrentTextArea.setBorder(BorderFactory.createLineBorder(Color.white));\n\t\tcurrentTextArea.setSize(750,2);\n\t\tcontainer.add(currentTextArea);\n\t\tcurrentTextArea.requestFocusInWindow();\n\t\tcurrentTextArea.setCaretPosition(currentTextArea.getDocument().getLength());\n\n\t\tcurrentTextArea.addKeyListener(new java.awt.event.KeyAdapter() {\n\t\t\tpublic void keyPressed(java.awt.event.KeyEvent evt) {\n\t\t\t\ttry {\n\t\t\t\t\tjTextArea1WriteCommand(evt);\n\t\t\t\t} catch (BadLocationException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\trefreshView();\n\t}", "TEXTAREA createTEXTAREA();", "public static void draw() {\n\t\tStdDraw.clear();\n\t\tStdDraw.text(.5, .90, hint);\n\t\tStdDraw.text(.5, .5, label);\n\t\tStdDraw.text(0.5, 0.3, textBeingEntered);\n\t\tStdDraw.show(0);\n\n\t}", "public void createCurrentPlayerIndicator()\n\t{\n\t\tcurrentPlayerTextbox = guiFactory.createTextBox();\n\t\t\n\t\tVector2 textBoxSize = new Vector2(200, 50);\n\t\t\n\t\t\n\t\tcurrentPlayerTextbox.setBounds(new Vector2((Constants.windowWidth / 2) - (textBoxSize.x / 2), \n\t\t\t\t\t\t\t\t\t\t\t\t\tConstants.windowHeight - textBoxSize.y), \n\t\t\t\t\t\t\t\t\t\t\t\t\ttextBoxSize);\n\t\t\n\t\tsetCurrentPlayerIndicator(1);\n\t}", "@Override\r\n public void draw(Canvas canvas) {\r\n if (text == null) {\r\n throw new IllegalStateException(\"Attempting to draw a null text.\");\r\n }\r\n\r\n // Draws the bounding box around the TextBlock.\r\n RectF rect = new RectF(text.getBoundingBox());\r\n rect.left = translateX(rect.left);\r\n rect.top = translateY(rect.top);\r\n rect.right = translateX(rect.right);\r\n rect.bottom = translateY(rect.bottom);\r\n canvas.drawRect(rect, rectPaint);\r\n\r\n // Log.d(\"area\", \"text: \" + text.getText() + \"\\nArea: \" + Area);\r\n /**Here we are defining a Map which takes a string(Text) and a Integer X_Axis.The text will act as key to the X_Axis.\r\n Once We Got the X_Axis we will pass its value to a SparseIntArray which will Assign X Axis To Y Axis\r\n .Then We might Create another Map which will Store Both The text and the coordinates*/\r\n int X_Axis = (int) rect.left;\r\n int Y_Axis = (int) rect.bottom;\r\n\r\n // Renders the text at the bottom of the box.\r\n Log.d(\"PositionXY\", \"x: \"+X_Axis +\" |Y: \"+ Y_Axis);\r\n canvas.drawText(text.getText(), rect.left, rect.bottom, textPaint); // rect.left and rect.bottom are the coordinates of the text they can be used for mapping puposes\r\n\r\n\r\n }", "public JTextField(String text) {\n this(null, text, 0);\n }", "public TextBuilder addStaticText(String text){\n if(lastText != null){\n lastText.clear();\n }\n lastText = new TextBuilder(text);\n return lastText;\n }", "public void addTextAreaValue(String str){\n\t\tcenterPanel.addTextAreaValue(str);\n\t}", "public void addTextFieldDescription()\n\t{\n\t\tJTextField textFieldDescription = new JTextField(20);\n\t\ttextFieldDescription.setMaximumSize(textFieldDescription.getPreferredSize());\n\t\ttextFieldDescription.setAlignmentX(JLabel.LEFT_ALIGNMENT);\n\t\t\n\t\t// Add new description text field\n\t\tnewVersionDescriptionPanel.add(textFieldDescription);\n\t\ttextFieldsDescription.add(textFieldDescription);\n\t\t\n\t\t// Refresh panel\n\t\tnewVersionPanel.revalidate();\n\t\tnewVersionPanel.repaint();\n\t}", "private void addNameInput()\n {\n username = new JTextField();\n username.setName(\"username\");\n username.setSize(200, 30);\n username.setAction(new CreateUserAction());\n add(username);\n }", "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 JTextField generateTextEntryPanel(String label, int textColumns, \r\n\t\t\tJPanel containingPanel) {\r\n\t\tJPanel entryPanel = new JPanel();\r\n\t\tentryPanel.add(new JLabel(label));\r\n\t\tJTextField textEntry = new JTextField(10);\r\n\t\ttextEntry.addKeyListener(new TextFieldEditListener());\r\n\t\tentryPanel.add(textEntry);\r\n\t\tcontainingPanel.add(entryPanel);\r\n\t\treturn textEntry;\r\n\t}", "private void paintBox(Graphics g, TextInBox textInBox) {\n g.setColor(BOX_COLOR);\n Rectangle2D.Double box = getBoundsOfNode(textInBox);\n g.fillRoundRect((int) box.x, (int) box.y, (int) box.width - 1,\n (int) box.height - 1, ARC_SIZE, ARC_SIZE);\n g.setColor(BORDER_COLOR);\n g.drawRoundRect((int) box.x, (int) box.y, (int) box.width - 1,\n (int) box.height - 1, ARC_SIZE, ARC_SIZE);\n\n // draw the text on top of the box (possibly multiple lines)\n g.setColor(TEXT_COLOR);\n String[] lines = textInBox.text.split(\"\\n\");\n FontMetrics m = getFontMetrics(getFont());\n int x = (int) box.x + ARC_SIZE / 2;\n int y = (int) box.y + m.getAscent() + m.getLeading() + 1;\n for (int i = 0; i < lines.length; i++) {\n g.drawString(lines[i], x, y);\n y += m.getHeight();\n }\n }", "private void addGraphicObject(GraphicObject g_obj, int x, int y) {\n\t\tg_obj.setFillColor(this.currentFillColor);\n g_obj.setStroke(this.currentStrokeColor, this.currentStrokeSize.getValue());\n\n\t\tthis.canvas.add(g_obj, x, y);\n\t}", "public void addText(String str) {\r\n\t\tdialog.setText(dialog.getText()+str);\r\n\t}", "public TextBoxCommentary(final GraphicView parent, String text)\n\t{\n\t\tsuper(parent);\n\n\t\tinit(text);\n\t}", "private void createNewListTextField() {\n\t\tjpIntroduceNameList = new JPanel();\n\t\tjpIntroduceNameList.setOpaque(false);\n\t\tjertfTextList = new JERoundTextField(15,15,200);\n\t\tjertfTextList.setVisible(true);\n\t\tjpIntroduceNameList.setVisible(false);\n\t\tjpIntroduceNameList.add(jertfTextList);\n\t}", "private void addRenderPieces(Text text) {\n Rectangle rectangle = new Rectangle();\n rectangle.setX(text.getX());\n rectangle.setY(text.getY());\n rectangle.setWidth(text.getLayoutBounds().getWidth());\n rectangle.setHeight(lineHeight);\n rectangle.setFill(Color.VIOLET);\n rectangle.toBack();\n root.getChildren().add(rectangle);\n renderPieces.add(rectangle);\n }", "public void keyPressed(KeyEvent e){\n \n JTextField tec = new JTextField();\n char teclado = e.getKeyChar();\n String tecla = \"\"+teclado;\n tec.setText(tecla);\n tec.setBounds(400, 300, 20, 20);\n add(tec);\n tec.setVisible(true);\n \n System.out.println(teclado +\" \"+tecla);\n \n JLabel teclou = new JLabel(\"EU SEI OQ VC DIGITOU\");\n add(teclou);\n teclou.setVisible(true);\n }", "public final void addText(final String text) {\n Element e = this.newElement(Constants.ELEMENT_TEXT);\n e.setTextContent(text);\n this.getElement().appendChild(e);\n this.texts.add((Element) e);\n }", "public TextButton (String text, int textSize)\n {\n buttonText = text;\n GreenfootImage tempTextImage = new GreenfootImage (text, textSize, Color.BLACK, Color.WHITE);\n myImage = new GreenfootImage (tempTextImage.getWidth() + 8, tempTextImage.getHeight() + 8);\n myImage.setColor (Color.WHITE);\n myImage.fill();\n myImage.drawImage (tempTextImage, 4, 4);\n\n myImage.setColor (Color.BLACK);\n myImage.drawRect (0,0,tempTextImage.getWidth() + 7, tempTextImage.getHeight() + 7);\n setImage(myImage);\n }", "void add(Control control);", "public TextField addTextField(final String key) {\n String label = key;\n TextField textField = new TextField(getComposite(), _form, key, label, false);\n textField.adapt(_formToolkit);\n _form.mapField(key, textField);\n return textField;\n }", "public final void addTextField() {\n\t\taddDecoratorForBuiltInFormComponent(new TextField<>(\"textField\"), \"textFieldFragment\");\n\t}", "public void insertStaticText(String text){\n if(lastText != null){\n lastText.clear();\n }\n lastText = new TextBuilder(text);\n lastText.build();\n }", "public void AddNewGraph() {\n EQNum++;\n LineGraph line = new LineGraph();\n JButton GraphButton = new JButton(\"Graph\");\n JButton MakeRoot = new JButton(\"Bring To Top\");\n JTextField Eqinput = new JTextField();\n Eqinput.setPreferredSize(new Dimension(300, 20));\n JPanel EqPanel = new JPanel();\n EqPanel.add(new JLabel(\"f(x) =\"));\n EqPanel.add(Eqinput);\n GraphActionListener g = new GraphActionListener(this, Eqinput);\n Eqinput.addActionListener(g);\n Eqinput.setActionCommand(\"Graph\");\n EqPanel.add(GraphButton);\n EqPanel.add(MakeRoot);\n GraphButton.addActionListener(g);\n MakeRoot.addActionListener(g);\n EquationCardLayout.add(EqPanel, Integer.toString(EQNum));\n CardLayout c = (CardLayout) EquationCardLayout.getLayout();\n c.show(EquationCardLayout, Integer.toString(EQNum));\n EquationNum.setModel(new SpinnerNumberModel(EQNum, 1, EQNum, 1));\n lineGraphs.add(line);\n }", "private void createSalaryBox() {\n salaryField = new TextField();\n salaryField.setId(\"Salary\");\n HBox salaryFieldBox = new HBox(new Label(\"Salary: \"), salaryField);\n salaryFieldBox.setAlignment(Pos.CENTER);\n mainBox.getChildren().add(salaryFieldBox);\n\n }", "private void AddPerson (MouseEvent evt)\n {\n if(currentPlayers < nPlayers && !textfield1.getText().equals(\"\"))\n {\n Names[currentPlayers] = textfield1.getText();\n currentPlayers++;\n editorpane1.setText(editorpane1.getText()+textfield1.getText()+'\\n');\n }\n else\n {\n if(currentPlayers == nPlayers)\n {\n label2.setText(\"Max number of players reached\");\n }\n else\n {\n if(textfield1.getText().equals(\"\"))\n {\n label2.setText(\"Add a Name\");\n }\n }\n }\n }", "@Override\n public void actionPerformed(ActionEvent e) {\n String text = tweetInsertTextBox.getText();\n if (text != null && text.length() > 0) {\n jTextAreaTweets.setText(jTextAreaTweets.getText() + text + \"\\n\");\n tweetInsertTextBox.setText(\"\");\n jTextAreaTweets.setRows(jTextAreaTweets.getLineCount());\n tweetList.add(text);\n //f1.validate();\n }\n }", "public static JTextField initTextBox(JTextField textField, Dimension txtSize, JPanel rightPanel) {\n textField = new JTextField(20);\n setSizeComponent(textField, txtSize);\n rightPanel.add(textField);\n return textField;\n }", "public JTextField addFocusCourseNameTxtField() {\n JTextField courseNameTxtField = new JTextField(\"e.g.'CPSC-121'\", 10);\n courseNameTxtField.addFocusListener(new FocusListener() {\n public void focusGained(FocusEvent e) {\n courseNameTxtField.setText(\"\");\n }\n\n public void focusLost(FocusEvent e) {\n if (courseNameTxtField.getText().equals(\"\")) {\n courseNameTxtField.setText(\"e.g.'CPSC-121'\");\n }\n }\n });\n return courseNameTxtField;\n }", "public abstract void addComponent(DrawingComponent component);", "private JTextField getTxtA() {\r\n\t\tif (txtA == null) {\r\n\t\t\ttxtA = new JTextField();\r\n\t\t\ttxtA.setLocation(new Point(7, 43));\r\n\t\t\ttxtA.setSize(new Dimension(32, 20));\r\n\t\t}\r\n\t\treturn txtA;\r\n\t}", "private JTextField makeJTextField(int columnNumber, int x, int y, int width, int height) {\r\n JTextField textField = new JTextField(columnNumber);\r\n textField.setBounds(x, y, width, height);\r\n return textField;\r\n }", "public AddTester(String canvasID) {\n super(\"ADD\", canvasID);\n }", "protected void createTextfield(CompContainer cc, String name, String type)\r\n\t{\r\n\t\t// create label\r\n\t\tcc.label = new JLabel(localer.getBundleText(name));\r\n\t\tcc.label.setName(\"Label-\" + name);\r\n\t\tcc.label.setFont(cc.label.getFont().deriveFont(Font.PLAIN));\r\n\t\t\r\n\t\t// create component\r\n\t\tif(type.equals(\"JTextField\"))\r\n\t\t\tcc.comp = new JTextField(prefMap.get(name));\r\n\t\telse if(type.equals(\"JPasswordField\"))\r\n\t\t\tcc.comp = new JPasswordField(prefMap.get(name));\r\n\t\telse if(type.equals(\"NumericTextField\"))\r\n\t\t\tcc.comp = new NumericTextField(prefMap.get(name));\r\n\t\tcc.comp.setName(name);\r\n\t}", "public void addText(String text){\n try{\n FXMLLoader battleLogEntryLoader = new FXMLLoader(getClass().getClassLoader().getResource(\"FXML/BattleLogEntry.fxml\"));\n Label battleLogEntryLabel = battleLogEntryLoader.load();\n battleLogEntryLabel.setText(text);\n if(count % 2 == 0){\n battleLogEntryLabel.setBackground(new Background(new BackgroundFill(Color.LIGHTGRAY, CornerRadii.EMPTY, Insets.EMPTY)));\n } else{\n battleLogEntryLabel.setBackground(new Background(new BackgroundFill(Color.TRANSPARENT, CornerRadii.EMPTY, Insets.EMPTY)));\n }\n textSpace.getChildren().add(battleLogEntryLabel);\n count++;\n } catch(Exception e) {\n\n }\n }", "public JTextField appendTextField(String label, String name, String tooltip, int textFieldColumns) {\r\n JTextField textField = new JUndoableTextField();\r\n textField.setName(name);\r\n textField.setColumns(textFieldColumns);\r\n setToolTip(textField, tooltip);\r\n textField.getAccessibleContext().setAccessibleDescription(tooltip);\r\n JTextComponentPopupMenu.add(textField);\r\n append(label, textField);\r\n return textField;\r\n }", "private void makeControls() {\n Label label1 = new Label(\"Placement:\");\n textField = new TextField ();\n textField.setPrefWidth(300);\n\n // Task8 Start the game with the randomly selected piece placement\n textField.setText(\"AAO\");\n makePlacement(\"AAO\");\n\n Button button = new Button(\"Refresh\");\n button.setOnAction(new EventHandler<ActionEvent>() {\n @Override\n public void handle(ActionEvent e) {\n makePlacement(textField.getText());\n // Task8 Do not clear the textField in order to place pieces step by step.\n // textField.clear();\n }\n });\n HBox hb = new HBox();\n hb.getChildren().addAll(label1, textField, button);\n hb.setSpacing(10);\n hb.setLayoutX(130);\n hb.setLayoutY(VIEWER_HEIGHT - 50);\n controls.getChildren().add(hb);\n }", "public void motif_zone(){\n\n JLabel lbl_Motif = new JLabel(\"Motif du Rapport :\");\n lbl_Motif.setBounds(40, 130, 119, 16);\n add(lbl_Motif);\n\n motif_content = new JTextField();\n motif_content.setBounds(200, 130, 200, 22);\n motif_content.setText(rapport_visite.elementAt(DAO_Rapport.indice)[4]);\n motif_content.setEditable(false);\n add(motif_content);\n\n\n\n }", "private void addInputFields() {\n dogName = new JTextField();\n dogName.setBounds(205, 160, 140, 25);\n\n weight = new JTextField();\n weight.setBounds(205, 180, 140, 25);\n\n food = new JTextField();\n food.setBounds(205, 200, 140, 25);\n\n this.add(dogName);\n this.add(weight);\n this.add(food);\n }", "public void appendText(String text) {\n\t\ttry {\n\t\t\tDocument doc = getDocument();\n\n\t\t\t// Move the insertion point to the end\n\t\t\tsetCaretPosition(doc.getLength());\n\n\t\t\t// Insert the text\n\t\t\treplaceSelection(text);\n\n\t\t\t// Convert the new end location\n\t\t\t// to view co-ordinates\n\t\t\tRectangle r = modelToView(doc.getLength());\n\n\t\t\t// Finally, scroll so that the new text is visible\n\t\t\tif (r != null) {\n\t\t\t\tscrollRectToVisible(r);\n\t\t\t}\n\t\t} catch (BadLocationException e) {\n\t\t\tSystem.out.println(\"Failed to append text: \" + e);\n\t\t}\n\t}", "void addHadithText(Object newHadithText);", "private TextField initHBoxTextField(GridPane container, int size, String initText, boolean editable, int col, int row, int colSpan, int rowSpan) {\n TextField tf = new TextField();\n tf.setPrefColumnCount(size);\n tf.setText(initText);\n tf.setEditable(editable);\n container.add(tf, col, row, colSpan, rowSpan);\n return tf;\n }", "public void insert(Nodo tree, String textField) {\n tree.getRoot().insertG(tree.getRoot(),textField);\n }", "public void addTextField(String text, boolean compulsory) {\n EditText field = new EditText(getContext());\n\n if (text.toLowerCase().contains(\"email\"))\n field.setInputType(InputType.TYPE_TEXT_VARIATION_EMAIL_ADDRESS);\n\n if (compulsory)\n addTextChangeListener(field);\n\n String req = compulsory ? required : \"\";\n\n field.setHint(text + req);\n\n mainll.addView(field);\n map.put(field, compulsory);\n }", "public final TEditorWidget addEditor(final String text, final int x,\n final int y, final int width, final int height) {\n\n return new TEditorWidget(this, text, x, y, width, height);\n }", "private void createTextField() {\n textField = new TextField(getString());\n textField.setAlignment(Pos.CENTER);\n textField.focusedProperty().addListener(\n (observable, oldValue, newValue) -> {\n if (!newValue) {\n Integer priority = null;\n if (!(textField.getText() == null || textField.getText().trim().isEmpty())) {\n try {\n priority = Integer.parseInt(textField.getText());\n commitEdit(priority);\n }\n catch (NumberFormatException e) {\n if (Objects.equals(textField.getText(), \"-\") && !popUpIsActive) {\n commitEdit(null);\n }\n else {\n addFormError(textField, \"{NanError}\");\n }\n }\n }\n }\n });\n\n textField.setOnKeyReleased(t -> {\n if (t.getCode() == KeyCode.ENTER) {\n Integer priority = null;\n if (!(textField.getText() == null || textField.getText().trim().isEmpty())) {\n try {\n priority = Integer.parseInt(textField.getText());\n commitEdit(priority);\n }\n catch (NumberFormatException e) {\n if (Objects.equals(textField.getText(), \"-\")) {\n commitEdit(null);\n }\n else {\n addFormError(textField, \"{NanError}\");\n }\n }\n }\n else {\n commitEdit(null);\n }\n }\n if (t.getCode() == KeyCode.ESCAPE) {\n cancelEdit();\n }\n });\n }", "private TextField initTextField(Pane container, String initText, boolean editable) {\n TextField tf = new TextField();\n tf.setText(initText);\n tf.setEditable(editable);\n container.getChildren().add(tf);\n return tf;\n }", "public abstract boolean removeTextBox(TextBox tb);" ]
[ "0.68848574", "0.67096806", "0.6471804", "0.6345666", "0.62822825", "0.6257911", "0.61982584", "0.6116906", "0.6112395", "0.6079332", "0.6079062", "0.6076787", "0.60572046", "0.60316396", "0.6020934", "0.6008129", "0.5885334", "0.5883244", "0.587151", "0.5762681", "0.57520354", "0.5747604", "0.57255936", "0.5712862", "0.57094526", "0.570593", "0.5687356", "0.563599", "0.56323206", "0.56116575", "0.5604794", "0.56042767", "0.56015074", "0.5598182", "0.559812", "0.55951357", "0.5569721", "0.5555758", "0.5554266", "0.55517596", "0.55369145", "0.5535412", "0.55347735", "0.55217546", "0.547727", "0.5446416", "0.54460317", "0.5422782", "0.54184335", "0.5403877", "0.54002804", "0.53901786", "0.53838295", "0.5369492", "0.53619486", "0.53585917", "0.53557146", "0.5346119", "0.5344405", "0.53415114", "0.5340688", "0.533465", "0.53307927", "0.5326872", "0.53119165", "0.5308525", "0.53081715", "0.52742404", "0.5269865", "0.52691334", "0.52624583", "0.52567196", "0.5250693", "0.5248238", "0.52344406", "0.5230492", "0.52232146", "0.5211401", "0.5202452", "0.5198798", "0.5194175", "0.5189413", "0.5187441", "0.518366", "0.51706606", "0.5169987", "0.51692617", "0.5156707", "0.5153102", "0.51517475", "0.5151372", "0.5149181", "0.5146249", "0.51446", "0.51329225", "0.51183844", "0.51141095", "0.5100773", "0.5096646", "0.5095892" ]
0.8159437
0
This method adds a given Text object to the Graphic Canvas
private void addTextObject(GraphicObject g_obj, int x, int y) { Color stroke = new Color(0, 0, 0, 0); g_obj.setFillColor(this.currentFillColor); g_obj.setStroke(stroke, 0); this.canvas.add(g_obj, x, y); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void addText(String text) {\n\t\tNodeList frameList = maNoteElement.getElementsByTagNameNS(OdfDocumentNamespace.DRAW.getUri(), \"frame\");\n\t\tif (frameList.getLength() > 0) {\n\t\t\tDrawFrameElement frame = (DrawFrameElement) frameList.item(0);\n\t\t\tNodeList textBoxList = frame.getElementsByTagNameNS(OdfDocumentNamespace.DRAW.getUri(), \"text-box\");\n\t\t\tif (textBoxList.getLength() > 0) {\n\t\t\t\tDrawTextBoxElement textBox = (DrawTextBoxElement) textBoxList.item(0);\n\t\t\t\tTextPElement newPara = textBox.newTextPElement();\n\t\t\t\tnewPara.setTextContent(text);\n\t\t\t}\n\t\t}\n\t}", "public void addText(Text text)\n {\n texts.add(text);\n }", "@Override\n\t\tpublic void addText(String txt) {\n\t\t\t\n\t\t}", "private void addTextBox(GraphicObject g_obj, int x, int y) {\n Color boxColor = new Color(119, 136, 153, 30);\n\n g_obj.setFillColor(boxColor);\n g_obj.setStroke(Color.GRAY, 1);\n\n\t\tthis.canvas.add(g_obj, x, y);\n\t}", "private void addText(Graphics g, Font font, Color frontColor, Rectangle rectangle, Color backColor, String str, int xPos, int yPos) {\n g.setFont(font);\n g.setColor(frontColor);\n if (rectangle != null) {\n g.drawRect(rectangle.x, rectangle.y, rectangle.width, rectangle.height);\n }\n g.setColor(backColor);\n if (rectangle != null) {\n g.fillRect(rectangle.x, rectangle.y, rectangle.width, rectangle.height);\n }\n g.setColor(frontColor);\n g.drawString(str, xPos, yPos);\n }", "Text createText();", "public void addText(String text) {\n\t\tthis.text = text;\n\t}", "private void createText() {\n Texture texture = new Texture(Gdx.files.internal(\"Text/item.png\"));\n texture.setFilter(Texture.TextureFilter.Linear, Texture.TextureFilter.Linear);\n TextureRegion region = new TextureRegion(texture);\n display = new BitmapFont(Gdx.files.internal(\"Text/item.fnt\"), region, false);\n display.setUseIntegerPositions(false);\n display.setColor(Color.BLACK);\n }", "void addHadithText(Object newHadithText);", "private void draw_text() {\n\t\tcopy_text_into_buffer();\n\t\tVoteVisApp.instance().image(text_buffer_, frame_height_ / 2,\n\t\t\t-text_graphics_.height / 2);\n\t}", "private void addRenderPieces(Text text) {\n Rectangle rectangle = new Rectangle();\n rectangle.setX(text.getX());\n rectangle.setY(text.getY());\n rectangle.setWidth(text.getLayoutBounds().getWidth());\n rectangle.setHeight(lineHeight);\n rectangle.setFill(Color.VIOLET);\n rectangle.toBack();\n root.getChildren().add(rectangle);\n renderPieces.add(rectangle);\n }", "public GraphicsText(String text, float x, float y){\r\n this.x = x;\r\n this.y = y;\r\n this.text = text;\r\n textColor = Color.BLACK;\r\n font = new Font(\"SanSerif\", Font.PLAIN, 14);\r\n }", "@Override\r\n public void draw(Canvas canvas) {\r\n if (text == null) {\r\n throw new IllegalStateException(\"Attempting to draw a null text.\");\r\n }\r\n\r\n // Draws the bounding box around the TextBlock.\r\n RectF rect = new RectF(text.getBoundingBox());\r\n rect.left = translateX(rect.left);\r\n rect.top = translateY(rect.top);\r\n rect.right = translateX(rect.right);\r\n rect.bottom = translateY(rect.bottom);\r\n canvas.drawRect(rect, rectPaint);\r\n\r\n // Log.d(\"area\", \"text: \" + text.getText() + \"\\nArea: \" + Area);\r\n /**Here we are defining a Map which takes a string(Text) and a Integer X_Axis.The text will act as key to the X_Axis.\r\n Once We Got the X_Axis we will pass its value to a SparseIntArray which will Assign X Axis To Y Axis\r\n .Then We might Create another Map which will Store Both The text and the coordinates*/\r\n int X_Axis = (int) rect.left;\r\n int Y_Axis = (int) rect.bottom;\r\n\r\n // Renders the text at the bottom of the box.\r\n Log.d(\"PositionXY\", \"x: \"+X_Axis +\" |Y: \"+ Y_Axis);\r\n canvas.drawText(text.getText(), rect.left, rect.bottom, textPaint); // rect.left and rect.bottom are the coordinates of the text they can be used for mapping puposes\r\n\r\n\r\n }", "private ModelInstance newText(String text)\n {\n BufferedImage onePixelImage = new BufferedImage(1, 1, BufferedImage.TYPE_INT_ARGB);\n Graphics2D awtGraphics2D = onePixelImage.createGraphics();\n awtGraphics2D.setFont(awtFont != null ? awtFont : DEFAULT_FONT);\n FontMetrics awtFontMetrics = awtGraphics2D.getFontMetrics();\n int textWidthPixels = text.isEmpty() ? 1 : awtFontMetrics.stringWidth(text);\n int textHeightPixels = awtFontMetrics.getHeight();\n awtGraphics2D.dispose();\n\n // Create image for use in texture\n BufferedImage bufferedImageRGBA8 = new BufferedImage(textWidthPixels, textHeightPixels, BufferedImage.TYPE_INT_ARGB);\n awtGraphics2D = bufferedImageRGBA8.createGraphics();\n awtGraphics2D.setRenderingHint(RenderingHints.KEY_ALPHA_INTERPOLATION, RenderingHints.VALUE_ALPHA_INTERPOLATION_QUALITY);\n awtGraphics2D.setRenderingHint(RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_ON);\n awtGraphics2D.setRenderingHint(RenderingHints.KEY_COLOR_RENDERING, RenderingHints.VALUE_COLOR_RENDER_QUALITY);\n awtGraphics2D.setRenderingHint(RenderingHints.KEY_DITHERING, RenderingHints.VALUE_DITHER_ENABLE);\n awtGraphics2D.setRenderingHint(RenderingHints.KEY_FRACTIONALMETRICS, RenderingHints.VALUE_FRACTIONALMETRICS_ON);\n awtGraphics2D.setRenderingHint(RenderingHints.KEY_INTERPOLATION, RenderingHints.VALUE_INTERPOLATION_BILINEAR);\n awtGraphics2D.setRenderingHint(RenderingHints.KEY_RENDERING, RenderingHints.VALUE_RENDER_QUALITY);\n awtGraphics2D.setRenderingHint(RenderingHints.KEY_STROKE_CONTROL, RenderingHints.VALUE_STROKE_PURE);\n awtGraphics2D.setFont(awtFont != null ? awtFont : DEFAULT_FONT);\n awtFontMetrics = awtGraphics2D.getFontMetrics();\n awtGraphics2D.setColor(awtColor);\n int x = 0;\n int y = awtFontMetrics.getAscent();\n if (!text.isEmpty())\n awtGraphics2D.drawString(text, x, y);\n awtGraphics2D.dispose();\n\n Pixmap pixmap = new Pixmap(textWidthPixels, textHeightPixels, Pixmap.Format.RGBA8888);\n BytePointer rgba8888BytePointer = new BytePointer(pixmap.getPixels());\n DataBuffer dataBuffer = bufferedImageRGBA8.getRaster().getDataBuffer();\n for (int i = 0; i < dataBuffer.getSize(); i++)\n {\n rgba8888BytePointer.putInt(i * Integer.BYTES, dataBuffer.getElem(i));\n }\n\n Texture libGDXTexture = new Texture(new PixmapTextureData(pixmap, null, false, false));\n Material material = new Material(TextureAttribute.createDiffuse(libGDXTexture),\n ColorAttribute.createSpecular(1, 1, 1, 1),\n new BlendingAttribute(GL41.GL_SRC_ALPHA, GL41.GL_ONE_MINUS_SRC_ALPHA));\n long attributes = VertexAttributes.Usage.Position | VertexAttributes.Usage.Normal | VertexAttributes.Usage.TextureCoordinates;\n\n float textWidthMeters = textHeightMeters * (float) textWidthPixels / (float) textHeightPixels;\n\n float x00 = 0.0f;\n float y00 = 0.0f;\n float z00 = 0.0f;\n float x10 = textWidthMeters;\n float y10 = 0.0f;\n float z10 = 0.0f;\n float x11 = textWidthMeters;\n float y11 = textHeightMeters;\n float z11 = 0.0f;\n float x01 = 0.0f;\n float y01 = textHeightMeters;\n float z01 = 0.0f;\n float normalX = 0.0f;\n float normalY = 0.0f;\n float normalZ = 1.0f;\n Model model = modelBuilder.createRect(x00, y00, z00, x10, y10, z10, x11, y11, z11, x01, y01, z01, normalX, normalY, normalZ, material, attributes);\n return new ModelInstance(model);\n }", "Builder addText(Text value);", "public Text(int x, int y, String text, int size) {\r\n this.x = x;\r\n this.y = y;\r\n this.text = text;\r\n this.font = Font.SANS_SERIF;\r\n this.size = size;\r\n \r\n }", "public void insertStaticText(String text){\n if(lastText != null){\n lastText.clear();\n }\n lastText = new TextBuilder(text);\n lastText.build();\n }", "private Text createText(String text, int offset) {\n\t\tText res = new Text(text);\n\t\tres.setFont(new Font(\"Minecraftia\", 60));\n\t\tres.setFill(Color.YELLOW);\n\t\tres.getTransforms().add(new Rotate(-50, 300, 200, 20, Rotate.X_AXIS));\n\t\tres.setX(canvas.getWidth() / 2);\n\t\tres.setY(canvas.getHeight() / 2 + offset);\n\t\tres.setId(\"handCursor\");\n\t\tres.setOnMouseEntered(e -> {\n\t\t\tres.setText(\"> \" + res.getText() + \" <\");\n\t\t});\n\t\tres.setOnMouseExited(e -> {\n\t\t\tres.setText(res.getText().replaceAll(\"[<> ]\", \"\"));\n\t\t});\n\t\treturn res;\n\t}", "public TextBuilder addStaticText(String text){\n if(lastText != null){\n lastText.clear();\n }\n lastText = new TextBuilder(text);\n return lastText;\n }", "public TextButton (String text, int textSize)\n {\n buttonText = text;\n GreenfootImage tempTextImage = new GreenfootImage (text, textSize, Color.BLACK, Color.WHITE);\n myImage = new GreenfootImage (tempTextImage.getWidth() + 8, tempTextImage.getHeight() + 8);\n myImage.setColor (Color.WHITE);\n myImage.fill();\n myImage.drawImage (tempTextImage, 4, 4);\n\n myImage.setColor (Color.BLACK);\n myImage.drawRect (0,0,tempTextImage.getWidth() + 7, tempTextImage.getHeight() + 7);\n setImage(myImage);\n }", "public DrawTextPanel() {\n\t\tfileChooser = new SimpleFileChooser();\n\t\tundoMenuItem = new JMenuItem(\"Remove Item\");\n\t\tundoMenuItem.setEnabled(false);\n\t\tmenuHandler = new MenuHandler();\n\t\tsetLayout(new BorderLayout(3,3));\n\t\tsetBackground(Color.BLACK);\n\t\tsetBorder(BorderFactory.createLineBorder(Color.BLACK, 2));\n\t\tcanvas = new Canvas();\n\t\tadd(canvas, BorderLayout.CENTER);\n\t\tJPanel bottom = new JPanel();\n\t\tbottom.add(new JLabel(\"Text to add: \"));\n\t\tinput = new JTextField(\"Hello World!\", 40);\n\t\tbottom.add(input);\n\t\tadd(bottom, BorderLayout.SOUTH);\n\t\t\n\t\tJButton button = new JButton(\"Generate Random\");\n\t\tbottom.add(button);\n\t\t\n\t\tcanvas.addMouseListener( new MouseAdapter() {\n\t\t\tpublic void mousePressed(MouseEvent e) {\n\t\t\t\tdoMousePress( e.getX(), e.getY() ); \n\t\t\t}\n\t\t} );\n\t\t\n\t\tbutton.addActionListener(new ActionListener() { \n\t\t\tpublic void actionPerformed(ActionEvent e) { \n\t\t\t\tfor (int i = 0; i < 150; i++) { \n\t\t\t\t\tint X = new Random().nextInt(800); \n\t\t\t\t\tint Y = new Random().nextInt(600);\n\t\t\t\t\tdoMousePress(X, Y); \n\t\t\t\t}\n\t\t\t}\n\t\t} );\n\t}", "public final void addText(final String text) {\n Element e = this.newElement(Constants.ELEMENT_TEXT);\n e.setTextContent(text);\n this.getElement().appendChild(e);\n this.texts.add((Element) e);\n }", "public void paint(MapCanvas canvas, Point insertPoint) {\n Graphics2D graphics = null;\n if ((this.text != null) && (insertPoint != null) && (canvas != null) && \n ((graphics = canvas.graphics) != null)) {\n Font curFont = graphics.getFont();\n Color curColor = graphics.getColor();\n AffineTransform curTransForm = graphics.getTransform();\n try {\n TextStyle style = this.getTextStyle();\n FontMetrics fontMetrics = this.textFont.setCanvas(canvas);\n int textHeight = fontMetrics.getHeight();\n int x = insertPoint.x;\n int y = insertPoint.y;\n int textWidth = fontMetrics.stringWidth(this.text);\n// if ((style.orientation == TextStyle.Orientation.VerticalDn) || \n// (style.orientation == TextStyle.Orientation.VerticalUp)) {\n// if (style.hAlign == TextStyle.Horizontal.Center) {\n// y -= textWidth/2;\n// } else if (style.hAlign == TextStyle.Horizontal.Right) {\n// y -= textWidth;\n// }\n//\n// if (style.vAlign == TextStyle.Vertical.Middle) {\n// x += textHeight/2;\n// } else if (style.vAlign == TextStyle.Vertical.Top) {\n// x += textHeight;\n// }\n// } else {\n if (style.hAlign == TextStyle.Horizontal.Center) {\n x -= textWidth/2;\n } else if (style.hAlign == TextStyle.Horizontal.Right) {\n x -= textWidth;\n }\n\n if (style.vAlign == TextStyle.Vertical.Middle) {\n y += textHeight/2;\n } else if (style.vAlign == TextStyle.Vertical.Top) {\n y += textHeight;\n }\n //} \n float rotate = style.orientation.rotate;\n if (rotate != 0.0f) {\n AffineTransform transform = new AffineTransform();\n transform.translate(0.0d, 0.0d);\n transform.rotate(rotate, insertPoint.x, insertPoint.y);\n graphics.transform(transform);\n }\n \n graphics.drawString(this.text, x, y - fontMetrics.getDescent());\n } catch (Exception exp) {\n LOGGER.log(Level.WARNING, \"{0}.paint Error:\\n {1}\",\n new Object[]{this.getClass().getSimpleName(), exp.getMessage()});\n } finally {\n if (curFont != null) {\n graphics.setFont(curFont);\n }\n if (curColor != null) {\n graphics.setColor(curColor);\n }\n if (curTransForm != null) {\n graphics.setTransform(curTransForm);\n }\n }\n }\n }", "public void draw(SpriteBatch batch, String text, float x, float y, GameContainer c, StyledText style);", "public Text(double x, double y, String text)\n {\n super(x, y, text);\n initialize();\n }", "private void drawText(Graphics2D g2, String text, String fontName) {\n\n int fontSize = Math.round(getHeight() * factor);\n\n Font baseFont = new Font(fontName, Font.PLAIN, fontSize);\n Font font = baseFont.deriveFont(attr);\n\n GlyphVector gv = font.createGlyphVector(frc, text);\n Rectangle pixelBounds = gv.getPixelBounds(frc, 0, 0);\n\n int centerX = getWidth() / 2;\n int centerY = getHeight() / 2;\n\n float offsetX = pixelBounds.x + (pixelBounds.width / 2);\n float offsetY = pixelBounds.y + (pixelBounds.height / 2);\n\n AffineTransform at = new AffineTransform();\n at.translate(centerX - offsetX, centerY - offsetY);\n Shape outline = gv.getOutline();\n outline = at.createTransformedShape(outline);\n g2.fill(outline);\n }", "public Text(String text)\n {\n super(text);\n initialize();\n }", "public final TText addText(final String text, final int x, final int y,\n final int width, final int height) {\n\n return new TText(this, text, x, y, width, height, \"ttext\");\n }", "@Override\n\tpublic void render(Canvas c) {\n\t\tc.drawText(text,(float)x+width,(float)y+height , paint);\n\t\t\n\t}", "public CanvasText(String text, CanvasFont font, TextStyle textAlign) {\n super();\n this.text = (text == null)? null: text.trim();\n this.textFont = (font == null)? new CanvasFont(): font;\n this.textStyle = (textAlign == null)? new TextStyle(): textAlign;\n this.bounds = new Rectangle();\n }", "public synchronized void add(String text, BoundingBox box, boolean errored) {\n labels.add(new LabelToWrite(text, box, errored));\n sumSizes.add(box.extent().x(), box.extent().y());\n }", "public TextShape (String str, int x, int y, Color col){\n this.str = str;\n this.x = x;\n this.y = y;\n this.col = col;\n }", "public void addText(String text){\n try{\n FXMLLoader battleLogEntryLoader = new FXMLLoader(getClass().getClassLoader().getResource(\"FXML/BattleLogEntry.fxml\"));\n Label battleLogEntryLabel = battleLogEntryLoader.load();\n battleLogEntryLabel.setText(text);\n if(count % 2 == 0){\n battleLogEntryLabel.setBackground(new Background(new BackgroundFill(Color.LIGHTGRAY, CornerRadii.EMPTY, Insets.EMPTY)));\n } else{\n battleLogEntryLabel.setBackground(new Background(new BackgroundFill(Color.TRANSPARENT, CornerRadii.EMPTY, Insets.EMPTY)));\n }\n textSpace.getChildren().add(battleLogEntryLabel);\n count++;\n } catch(Exception e) {\n\n }\n }", "private void addGraphicObject(GraphicObject g_obj, int x, int y) {\n\t\tg_obj.setFillColor(this.currentFillColor);\n g_obj.setStroke(this.currentStrokeColor, this.currentStrokeSize.getValue());\n\n\t\tthis.canvas.add(g_obj, x, y);\n\t}", "public void drawText(String text, float x, float y, float size) {\n\t\tTextLoader.addLargeText(text, x, y, size, this);\n\t}", "public void appendText(String text) {\n\t\ttry {\n\t\t\tDocument doc = getDocument();\n\n\t\t\t// Move the insertion point to the end\n\t\t\tsetCaretPosition(doc.getLength());\n\n\t\t\t// Insert the text\n\t\t\treplaceSelection(text);\n\n\t\t\t// Convert the new end location\n\t\t\t// to view co-ordinates\n\t\t\tRectangle r = modelToView(doc.getLength());\n\n\t\t\t// Finally, scroll so that the new text is visible\n\t\t\tif (r != null) {\n\t\t\t\tscrollRectToVisible(r);\n\t\t\t}\n\t\t} catch (BadLocationException e) {\n\t\t\tSystem.out.println(\"Failed to append text: \" + e);\n\t\t}\n\t}", "public final TText addText(final String text, final int x,\n final int y, final int width, final int height, final String colorKey) {\n\n return new TText(this, text, x, y, width, height, colorKey);\n }", "public void addText(String newText) {\n lb.setText(newText + \"\\n\" + lb.getText());\n instance.setVvalue(0);\n }", "public Text(String text, Color color, String font)\n {\n this.text = text;\n this.color = color;\n this.font = font;\n \n /*\n GreenfootImage textImg=new GreenfootImage(\" \"+text+\" \", 24, Color.RED, new Color(0, 0, 0, 0));\n GreenfootImage image=new GreenfootImage(textImg.getWidth()+8, textImg.getHeight()+8);\n image.setColor(Color.BLACK);\n image.fill();\n image.setColor(Color.WHITE);\n image.fillRect(3, 3, image.getWidth()-6, image.getHeight()-6);\n image.setColor(Color.YELLOW);\n image.drawImage(textImg, (image.getWidth()-textImg.getWidth())/2, (image.getHeight()-textImg.getHeight())/2);\n setImage(image);\n */\n }", "public void addText(String texto) {\n Platform.runLater(() -> {\n try {\n camadas.setExpandedPane(this);//Expandindo a camada\n //Thread.sleep(100);\n seta.setVisible(true);//Deixando a imagem da seta visivel\n seta.setLayoutY(posYSeta);//Alterando a posicao Y da seta\n textArea.setText(textArea.getText() + texto);//Adicionando o texto\n textArea.appendText(\"\");//Movendo o scroll bar da Area de texto\n } catch (Exception e) {\n e.printStackTrace();\n }\n });\n // Platform.runLater(new Runnable(){\n // @Override\n // public void run() {\n // try {\n // seta.setVisible(true);//Deixando a imagem da seta visivel\n // seta.setLayoutY(posYSeta);//Alterando a posicao Y da seta\n // textArea.setText(textArea.getText() + texto);//Adicionando o texto\n // textArea.appendText(\"\");//Movendo o scroll bar da Area de texto\n // } catch (Exception e) {\n // System.out.println(\"[ERRO] - Adicionar texto na \" + titulo);\n // e.printStackTrace();\n // }\n // }\n // });\n }", "public Hologram addText(String text) {\n this.text.add(text);\n return this;\n }", "public void screenText(Canvas canvas){\n Paint paint = new Paint();\n paint.setColor(Color.WHITE);\n paint.setTextSize(30);\n paint.setTypeface(Typeface.create(Typeface.DEFAULT, Typeface.BOLD));\n canvas.drawText(\"Score: \"+ (newPlayer.getScore()), 10, height-10, paint);\n canvas.drawText(\"Best Score: \"+ getRecord(), width-215, height-10, paint);\n canvas.drawText(\"Level: \" + level, 10, height-550, paint);\n\n //If the game is reset will run a seperate screen text\n if (!newPlayer.getRunning()&&gamenew&&reset){\n Paint newPaint = new Paint();\n newPaint.setTextSize(40);\n newPaint.setColor(Color.WHITE);\n newPaint.setTypeface(Typeface.create(Typeface.DEFAULT,Typeface.BOLD));\n canvas.drawText(\"Click to start!\", width/2-50, height/2, newPaint);\n\n newPaint.setTextSize(20);\n canvas.drawText(\"Press and hold for the ship to hover up\", width/2-50,height/2+20,newPaint);\n canvas.drawText(\"Release to let the ship go down!\", width/2-50,height/2+40,newPaint);\n }\n\n }", "private void appendText(String text) {\n textArea.appendText(text);\n }", "public Element addText(String text) {\n Assert.isTrue(text != null, \"Text is null\");\n element.appendChild(element.getOwnerDocument().createTextNode(text));\n\n return this;\n }", "ElementText createElementText();", "public TextButton (String text,int textSize, Color color)\n {\n buttonText = text;\n GreenfootImage tempTextImage = new GreenfootImage (text, textSize, color, Color.WHITE);\n myImage = new GreenfootImage (tempTextImage.getWidth() + 8, tempTextImage.getHeight() + 8);\n myImage.setColor (Color.WHITE);\n myImage.fill();\n myImage.drawImage (tempTextImage, 4, 4);\n\n myImage.setColor (Color.BLACK);\n myImage.drawRect (0,0,tempTextImage.getWidth() + 7, tempTextImage.getHeight() + 7);\n setImage(myImage);\n }", "@Override\n\tpublic void draw3dText(Vector3f location, String textString) {\n\n\t}", "void addTextListener(TextListener l);", "private void openTextFile() {\n\t\tFile openTextFile = fileChooser.getInputFile(this, \"Open Saved Text File\"); \n\t\tif (openTextFile == null)\n\t\t\treturn;\n\t\t\n\t\ttry {\n\t\t\tScanner read = new Scanner(openTextFile); \n\t\t\tif (!read.nextLine().equals(\"New textImage\")) {\n\t\t\t\tJOptionPane.showMessageDialog(this, \"Sorry, This is not an valid file. \\nPlease try again.\"); \n\t\t\t\treturn;\n\t\t\t}\n\t\t\t\n\t\t\tColor savedBg = new Color(read.nextInt(),read.nextInt(),read.nextInt());\n\t\t\tArrayList<DrawTextItem> newStrings = new ArrayList<DrawTextItem>(); \n\t\t\tDrawTextItem newText;\n\t\t\tread.nextLine();\n\t\t\twhile (read.hasNext() && read.nextLine().equals(\"theString:\")) { \n\t\t\t\tnewText = new DrawTextItem(read.nextLine(), read.nextInt(), read.nextInt());\n\t\t\t\tread.nextLine();\n\t\t\t\tnewText.setFont(new Font(read.nextLine(), read.nextInt(), read.nextInt()));\n\t\t\t\tnewText.setTextColor(new Color(read.nextInt(), read.nextInt(), read.nextInt()));\n\t\t\t\tnewText.setTextTransparency(read.nextDouble());\n\t\t\t\t\n\t\t\t\tint r = read.nextInt(); \n\t\t\t\tint g = read.nextInt();\n\t\t\t\tint b = read.nextInt();\n\t\t\t\tif (r == -1)\n\t\t\t\t\tnewText.setBackground(null); \n\t\t\t\t\n\t\t\t\telse\n\t\t\t\t\tnewText.setBackground(new Color(r, g, b));\n\t\t\t\t\n\t\t\t\tnewText.setBackgroundTransparency(read.nextDouble()); \n\t\t\t\tnewText.setBorder(read.nextBoolean());\n\t\t\t\tnewText.setMagnification(read.nextDouble());\n\t\t\t\tnewText.setRotationAngle(read.nextDouble());\n\t\t\t\tread.nextLine();\n\t\t\t\tnewStrings.add(newText); \n\t\t\t}\n\t\t\t\n\t\t\tcanvas.setBackground(savedBg);\n\t\t\ttheString = newStrings;\n\t\t} catch (Exception e) {\n\t\t\tJOptionPane.showMessageDialog(this, \n\t\t\t\t\t\"Sorry, an error occurred while trying to load the save progress.\\n\" + \"Error message: \" + e);\n\t\t}\n\t}", "public void initializeText(){\n\t\tfont = new BitmapFont();\n\t\tfont1 = new BitmapFont();\n\t\tfont1.setColor(Color.BLUE);\n\t\tfont2 = new BitmapFont();\n\t\tfont2.setColor(Color.BLACK);\n\t}", "protected int addMultilineTextElement(Element canvas, double x, double y, double width, double lineHeight,\n String text, float fontSize, String anchor, String weight) {\n return addMultilineTextElement(canvas, x, y, width, lineHeight,\n text, fontSize, anchor, weight, \"#000000\", ' ');\n }", "public void addText(String text) {\n resultsText.append(text);\n }", "public void draw(Graphics2D gc){\r\n\r\n Font curFont = gc.getFont();\r\n gc.setFont(font);\r\n Paint curColor = gc.getPaint();\r\n gc.setPaint(textColor);\r\n //gc.drawString(text, x, y); // This would look better but doesn't seem to work with hit testing.\r\n\r\n FontRenderContext frc = gc.getFontRenderContext();\r\n TextLayout textLayout = new TextLayout(text, font, frc);\r\n AffineTransform moveTo = AffineTransform.getTranslateInstance(x, y);\r\n textShape = textLayout.getOutline(moveTo);\r\n gc.fill(textShape);\r\n gc.setFont(curFont);\r\n gc.setPaint(curColor);\r\n }", "public void drawText(final String text, final int xPos, final int yPos, final Color color){\n font.setColor(Color.BLACK);\n font.setScale(0.51f);\n batch.begin();\n setDrawmode(GL10.GL_MODULATE);\n font.drawMultiLine(batch, text, xPos, yPos);\n batch.end();\n \n font.setColor(Color.WHITE);\n font.setScale(0.5f);\n batch.begin();\n font.drawMultiLine(batch, text, xPos, yPos);\n batch.end();\n font.setScale(1f);\n }", "void draw(Annotation annotation, GC gc, StyledText textWidget, int offset, int length, Color color);", "public Text()\n {\n super();\n initialize();\n }", "Builder addText(String value);", "private Painter newPlainText() {\r\n\t\treturn p.textOutline(text, surface, fontSize, bold, italic, \r\n\t\t\t\tshade, null);\r\n\t}", "public Text(double x, double y, String text, TextStyle style)\n {\n super(x, y, text);\n this.style = style;\n initialize();\n }", "protected abstract void beginTextObject();", "public void setTextSettings(){\n\n ArrayList<Text> headlines = new ArrayList<>();\n //Add any text element here\n //headlines.add(this.newText);\n\n Color textColorHeadlines = new Color(0.8,0.8,0.8,1);\n\n for ( Text text : headlines ){\n text.setFont(Font.font(\"verdana\", FontWeight.BOLD, FontPosture.REGULAR, 20));\n text.setFill(textColorHeadlines);\n text.setEffect(new DropShadow(30, Color.BLACK));\n\n }\n\n }", "private void setText(Text text) {\n \t\tthis.text = text;\n \t}", "public void displayText() {\n\n // Draws the border on the slideshow aswell as the text\n image(border, slideshowPosX - borderDisplace, textPosY - textMargin - borderDisplace);\n\n // color of text background\n fill(textBackground);\n\n //background for text\n rect(textPosX - textMargin, textPosY - textMargin, textSizeWidth + textMargin * 2, textSizeHeight + textMargin * 2);\n\n //draw text\n image(texts[scene], textPosX, textPosY, textSizeWidth, textSizeHeight, 0, 0 + scrolled, texts[scene].width, textSizeHeight + scrolled);\n }", "@Override\n protected void onDraw(Canvas canvas) {\n mTextPain.setColor(mColor);\n canvas.drawText(mText,getWidth() / 2-mTextBound.width()/2,getHeight()/2+mTextBound.height()/2,mTextPain);\n }", "private static void drawOutlineText(Canvas canvas, Paint textPaint, String str,\n float x, float y) {\n // Is there a better way to do this?\n textPaint.setColor(0xff000000);\n canvas.drawText(str, x-1, y, textPaint);\n canvas.drawText(str, x+1, y, textPaint);\n canvas.drawText(str, x, y-1, textPaint);\n canvas.drawText(str, x, y+1, textPaint);\n canvas.drawText(str, x-0.7f, y-0.7f, textPaint);\n canvas.drawText(str, x+0.7f, y-0.7f, textPaint);\n canvas.drawText(str, x-0.7f, y+0.7f, textPaint);\n canvas.drawText(str, x+0.7f, y+0.7f, textPaint);\n textPaint.setColor(0xffffffff);\n canvas.drawText(str, x, y, textPaint);\n }", "public void drawText(Canvas canvas) {\n Paint paint = new Paint();\n paint.setColor(Color.rgb(240, 230, 140)); //gold color\n paint.setTextSize(30);\n paint.setTypeface(Typeface.SANS_SERIF);\n\n canvas.drawText(\"SCORE: \" + player.getScore(), WIDTH - 250, HEIGHT - 10, paint); //display player score\n canvas.drawText(\"LEVEL: \" + level, 100, HEIGHT - 10, paint); //display level\n\n if(!player.getPlaying()){ //if player is dead\n paint.setColor(Color.rgb(102, 0, 0));\n paint.setTextSize(50);\n paint.setTypeface(Typeface.DEFAULT_BOLD);\n canvas.drawText(\"OH DEAR, YOU ARE DEAD!\", WIDTH/2 - 320, HEIGHT/2, paint); //print death message\n gameOver();\n }\n }", "@Override\n public void fillText(String text, double x, double y) {\n graphicsEnvironmentImpl.fillText(canvas, text, x, y);\n }", "public TextLine(String text) {\n\t\tthis.text = text.toString();\n\t}", "private static void drawText(Canvas canvas, String text, int left, int top, int width, int maxWidth, Paint paint)\n\t{\n\t\tcanvas.save();\n\t\tint offset = Math.max(0, maxWidth - width) / 2;\n\t\tcanvas.clipRect(left, top, left + maxWidth, top + paint.getTextSize() * 2);\n\t\tcanvas.drawText(text, left + offset, top - paint.ascent(), paint);\n\t\tcanvas.restore();\n\t}", "private void drawText(Graphics2D g, double xCenter, double yCenter, VisualItem item, String text, boolean drawBackground)\n {\n if (m_font == null) \n {\n m_font = item.getFont();\n m_font = FontLib.getFont(m_font.getName(), m_font.getStyle(), m_font.getSize());\n }\n \n g.setFont(m_font);\n FontMetrics fm = DEFAULT_GRAPHICS.getFontMetrics(m_font);\n int textH = fm.getHeight();\n int textW = fm.stringWidth(text);\n \n \t\t// Render a filled circular background\n if (drawBackground)\n {\n \tdouble radius = Math.max(textH, textW) / 2; \t\n \tEllipse2D circle = new Ellipse2D.Double(xCenter - radius, yCenter - radius, radius * 2, radius * 2);\n \tGraphicsLib.paint(g, item, circle, getStroke(item), RENDER_TYPE_FILL);\n }\n \n\t\t// Render the text \n\t\tint textColor = item.getTextColor();\n g.setPaint(ColorLib.getColor(textColor));\n\t\t\n\t boolean useInt = 1.5 > Math.max(g.getTransform().getScaleX(), g.getTransform().getScaleY());\n if ( useInt ) {\n g.drawString(text, (int)xCenter - textW/2, (int)yCenter + textH/2 - 3);\n } else {\n g.drawString(text, (float)xCenter - textW/2, (float)yCenter + textH/2 - 3);\n }\n }", "public final void addText(final String textContent) {\n\t\tthis.text = textContent.trim();\n\t\tif (this.text.length() == 0) {\n\t\t\tthis.text = null;\n\t\t}\n\t}", "public static void putTextDatatoClipBoard(String textData) {\n\t\tLog.d(TAG, \"66666,textData = \" + textData);\n\t\t// ClipData clip = ClipData.newPlainText(\"simple text\",textData);\n\t\tmClipboard.setPrimaryClip(ClipData.newPlainText(\"data\", textData));\n\t\t// getTextDataFromClipBoard();\n\n\t}", "@SuppressWarnings(value = \"LeakingThisInConstructor\")\n TextWidget(TextLayer layer, Widget parent, Text text) {\n super(parent.getScene());\n this.layer = layer;\n this.text = text;\n text.addPropertyChangeListener(WeakListeners.propertyChange(this, text));\n setPreferredLocation(text.getLocation());\n setFont(text.getFont());\n activeLayerResult.addLookupListener(this);\n }", "public BufferedImage add_text(BufferedImage image, String text) {\n // convert all items to byte arrays: image, message, message length\n byte img[] = get_byte_data(image);\n byte msg[] = text.getBytes();\n byte len[] = bit_conversion(msg.length);\n try {\n encode_text(img, len, 0); // 0 first positiong\n encode_text(img, msg, 32); // 4 bytes of space for length:\n // 4bytes*8bit = 32 bits\n }\n catch (Exception e) {\n JOptionPane.showMessageDialog(\n null,\n \"Target File cannot hold message!\",\n \"Error\",\n JOptionPane.ERROR_MESSAGE);\n }\n return image;\n }", "public void drawMultiLine(SpriteBatch batch, String text, float x, float y, GameContainer c, StyledText style);", "public org.openxmlformats.schemas.drawingml.x2006.main.CTTextFont addNewFont()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.openxmlformats.schemas.drawingml.x2006.main.CTTextFont target = null;\n target = (org.openxmlformats.schemas.drawingml.x2006.main.CTTextFont)get_store().add_element_user(FONT$0);\n return target;\n }\n }", "private void text_characters(final char[] src, final int srcPos, final int length) {\n\t\t// addStyle();\n\t\tthis.textstringList.add(new Textstring(mProperties.x, mProperties.y, src, srcPos, length));\n\t\t// Assume for now that all textstrings have a matrix\n\t\t// if (mProperties.transformData != null) {\n\t\t// addTransform();\n\t\t// }\n\t\taddText();\n\t}", "public void drawBitmapText(Canvas c)\r\n\t{\r\n c.drawBitmap(frames[this.getcurrentFrame()], this.getX(),this.getY(),null);\r\n\tc.drawText(this.text, this.getX()+this.getWidth()+10,this.getY()+this.getHeight()+10, this.p);\t\r\n\t}", "public Shape(int x, int y, int deltaX, int deltaY, int width, int height,String text) {\n\t\t_x = x;\n\t\t_y = y;\n\t\t_deltaX = deltaX;\n\t\t_deltaY = deltaY;\n\t\t_width = width;\n\t\t_height = height;\n\t\tthis.text = text;\n\t}", "private void saveImageAsText() {\n\t\tFile textFile = fileChooser.getOutputFile(this, \"Select Text File Name\", \"textImage.txt\"); \n\t\tif (textFile == null)\n\t\t\treturn;\n\t\ttry {\n\t\t\tPrintWriter write = new PrintWriter(textFile);\n\t\t\twrite.println(\"New textImage\");\n\t\t\twrite.println(canvas.getBackground().getRed());\n\t\t\twrite.println(canvas.getBackground().getGreen());\n\t\t\twrite.println(canvas.getBackground().getBlue());\n\t\t\tif (theString != null)\n\t\t\t\tfor (DrawTextItem s: theString) { \n\t\t\t\t\twrite.println(\"theString:\"); \n\t\t\t\t\twrite.println(s.getString()); \n\t\t\t\t\twrite.println(s.getX());\n\t\t\t\t\twrite.println(s.getY());\n\t\t\t\t\twrite.println(s.getFont().getName());\n\t\t\t\t\twrite.println(s.getFont().getStyle());\n\t\t\t\t\twrite.println(s.getFont().getSize());\n\t\t\t\t\twrite.println(s.getTextColor().getRed()); \n\t\t\t\t\twrite.println(s.getTextColor().getGreen());\n\t\t\t\t\twrite.println(s.getTextColor().getBlue());\n\t\t\t\t\twrite.println(s.getTextTransparency());\n\t\t\t\t\tif (s.getBackground() == null) {\n\t\t\t\t\t\twrite.println(-1);\n\t\t\t\t\t\twrite.println(-1);\n\t\t\t\t\t\twrite.println(-1);\n\t\t\t\t\t} else {\n\t\t\t\t\t\twrite.println(s.getBackground().getRed()); \n\t\t\t\t\t\twrite.println(s.getBackground().getGreen());\n\t\t\t\t\t\twrite.println(s.getBackground().getBlue());\n\t\t\t\t\t}\n\t\t\t\t\twrite.println(s.getBackgroundTransparency());\n\t\t\t\t\twrite.println(s.getBorder())\n\t\t\t\t\twrite.println(s.getMagnification());\n\t\t\t\t\twrite.println(s.getRotationAngle());\n\t\t\t\t}\n\t\t\twrite.close();\n\n\t\t} catch (Exception e) {\n\t\t\tJOptionPane.showMessageDialog(this, \n\t\t\t\t\t\"Sorry, an error occurred while trying to save this image progress.\\n\" + \"Error message: \" + e);\n\t\t}\n\t}", "void addObjLabel(ObjLabel objLabel) {\n\n //make sure the Object gets notified of mouse movements\n objCanvas.addEventHandler(MouseEvent.MOUSE_MOVED, objLabel);\n objCanvas.drawLabel(objLabel);\n }", "void draw_text(int x, int y, char[][] _display, String txt) {\n for (int i = 0; i < txt.length(); i++)\n {\n draw_char(x + i, y, _display, txt.charAt(i));\n }\n }", "public Text(double x, double y, VDMColor c, int thickness,\n String text, boolean bold, String font) {\n super(x, y, c, thickness);\n\n _b = bold;\n _t = text;\n _f = font;\n }", "public void drawMultiLine(SpriteBatch batch, String text, float x, float y);", "public void createTextBox(){\n // Check if theGreenFootImage was set, otherwise create a blanco image\n // with the specific heights.\n if(theGreenfootImage != null){\n image = new GreenfootImage(theGreenfootImage);\n }else{\n image = new GreenfootImage(fieldWidth, fieldHeight);\n }\n \n if(hasBackground){\n if(borderWidth == 0 || borderHeight == 0){\n createAreaWithoutBorder();\n } else{\n createAreaWithBorder(borderWidth, borderHeight);\n }\n }\n \n // Create the default dont with given fontsize and color.\n font = image.getFont();\n font = font.deriveFont(fontSize);\n image.setFont(font);\n image.setColor(fontColor);\n \n // Draw the string in the image with the input, on the given coordinates.\n image.drawString(input, drawStringX, drawStringY);\n \n setImage(image); // Place the image\n }", "public TextFrame(String title, String text) {\n super(title);\n initComponents();\n area.setText(text);\n }", "@Override\n public void strokeText(String text, double x, double y) {\n graphicsEnvironmentImpl.strokeText(canvas, text, x, y);\n }", "public TextPanel(String text) {\n\t\tthis.setLayout(new MigLayout());\n\t\tthis.text = text;\n\t\tjta = new JTextArea(text);\n\t\tjta.setEditable(false);\n\t\tjta.setLineWrap(true);\n\t\tjsp = new JScrollPane(jta);\n\n\t\tthis.add(jsp, \"push,grow\");\n\t}", "private void sendTextBitmap(LiveViewAdapter mLiveViewAdapter,\n int mPluginId, String txt) {\n Bitmap bitmap = null;\n try {\n bitmap = Bitmap.createBitmap(128, 128, Bitmap.Config.RGB_565);\n } catch (IllegalArgumentException e) {\n return;\n }\n\n Canvas canvas = new Canvas(bitmap);\n\n // Set the text properties in the canvas\n TextPaint textPaint = new TextPaint();\n textPaint.setTextSize(18);\n textPaint.setColor(Color.WHITE);\n\n // Create the text layout and draw it to the canvas\n Layout textLayout = new StaticLayout(txt, textPaint, 128,\n Layout.Alignment.ALIGN_CENTER, 1, 1, false);\n textLayout.draw(canvas);\n\n\n try {\n mLiveViewAdapter.sendImageAsBitmap(mPluginId,\n PluginUtils.centerX(bitmap), PluginUtils.centerY(bitmap),\n bitmap);\n } catch (Exception e) {\n Log.d(PluginConstants.LOG_TAG, \"Failed to send bitmap\", e);\n }\n\n }", "public void Addtxt (String txt) {\n clearZero();\n lastNumber = true;\n displayResult.setText(displayResult.getText()+txt);\n }", "public void update (String text)\n {\n buttonText = text;\n GreenfootImage tempTextImage = new GreenfootImage (text, 20, Color.RED, Color.WHITE);\n myImage = new GreenfootImage (tempTextImage.getWidth() + 8, tempTextImage.getHeight() + 8);\n myImage.setColor (Color.WHITE);\n myImage.fill();\n myImage.drawImage (tempTextImage, 4, 4);\n\n myImage.setColor (Color.BLACK);\n myImage.drawRect (0,0,tempTextImage.getWidth() + 7, tempTextImage.getHeight() + 7);\n setImage(myImage);\n }", "public GLGraphics drawText(String text, float x, float y, float w, float h) {\n\t\treturn drawText(text, x, y, w, h, VAlign.LEFT);\n\t}", "@Override\r\n\tpublic void render(GameContainer gc, Renderer r) {\n\t\tr.drawTextInBox(posX, posY, width, height, color1, text);\r\n\t\t//r.noiseGen();\r\n\t}", "public void strokeString(float x, float y, String text);", "public DisplayText (GraphicsContext gc, Canvas gameCanvas, int size) {\n\t\tthis.gc = gc;\n\t\tthis.gameCanvas = gameCanvas;\n\t\t\n\t\t vector = Font.loadFont(getClass().getResourceAsStream(\"/fonts/Vectorb.ttf\"), size); //load my custom font at the specified size \n\t}", "private void drawText(final String translationKey, Object...parameters) {\n\t\tfinal String[] translated = new TranslationTextComponent(translationKey, parameters).getFormattedText().split(\"\\\\n\");\n\t\tint totalHeight = 0;\n\t\tfor(final String line : translated) {\n\t\t\ttotalHeight += this.font.getWordWrappedHeight(line, TEXT_WIDTH);\n\t\t}\n\t\t\n\t\t// determine the scale required to fit all lines inside the box (0.5 or 1.0)\n\t\tfloat scale = (totalHeight > TEXT_HEIGHT * 0.9F) ? 0.5F : 1.0F;\n\t\t// scale everything as needed\n\t\tGlStateManager.pushMatrix();\n\t\tGlStateManager.scalef(scale, scale, scale);\n\t\t// draw the translated text lines in the box with the appropriate scale\n\t\tint offsetY = 0;\n\t\tfor(int stanzaNum = 0, numStanzas = translated.length; stanzaNum < numStanzas; stanzaNum++) {\n\t\t\t// get the current stanza (may take up multiple lines on its own)\n\t\t\tfinal String stanza = translated[stanzaNum];\n\t\t\t// determine where to start the stanza\n\t\t\tint startX = (int) ((BG_START_X + TEXT_START_X) / scale);\n\t\t\tint startY = (int) ((BG_START_Y + TEXT_START_Y) / scale) + offsetY;\n\t\t\t// draw split (wrapped) stanza\n\t\t\tthis.font.drawSplitString(stanza, startX, startY, (int)(TEXT_WIDTH / scale), 0);\n\t\t\toffsetY += this.font.getWordWrappedHeight(stanza, (int)(TEXT_WIDTH / scale)) / scale;\n\t\t}\n\t\t// unscale text\n\t\tGlStateManager.popMatrix();\n\t}", "public void addText(IText text) {\n var name = \"Text\"; // TODO should texts have a name? E.g. the filename etc.?\n var textIndividual = ontologyConnector.addIndividualToClass(name, textClass);\n var uuid = ontologyConnector.getLocalName(textIndividual);\n ontologyConnector.addPropertyToIndividual(textIndividual, uuidProperty, uuid);\n\n ImmutableList<IWord> words = text.getWords();\n\n // first add all word individuals\n var wordIndividuals = new ArrayList<Individual>();\n var wordsToIndividuals = new HashMap<IWord, Individual>();\n for (var word : words) {\n var wordIndividual = addWord(word);\n wordIndividuals.add(wordIndividual);\n wordsToIndividuals.put(word, wordIndividual);\n }\n\n // add dependencies to words.\n // We only add outgoing dependencies as ingoing are the same (but viewed from another perspective)\n for (var word : words) {\n var wordIndividual = wordsToIndividuals.get(word);\n for (var dependencyType : DependencyTag.values()) {\n var outDependencies = word.getWordsThatAreDependencyOfThis(dependencyType);\n for (var outDep : outDependencies) {\n var outWordIndividual = wordsToIndividuals.get(outDep);\n addDependencyBetweenWords(wordIndividual, dependencyType, outWordIndividual);\n }\n }\n }\n\n // create the list that is used for the words property\n var olo = ontologyConnector.addList(\"WordsOf\" + name, wordIndividuals);\n var listIndividual = olo.getListIndividual();\n ontologyConnector.addPropertyToIndividual(textIndividual, wordsProperty, listIndividual);\n\n // add coref stuff\n var corefClusters = text.getCorefClusters();\n for (var corefCluster : corefClusters) {\n var representativeMention = corefCluster.getRepresentativeMention();\n var corefClusterIndividual = ontologyConnector.addIndividualToClass(representativeMention, corefClusterClass);\n ontologyConnector.addPropertyToIndividual(corefClusterIndividual, uuidProperty, \"\" + corefCluster.getId());\n ontologyConnector.addPropertyToIndividual(corefClusterIndividual, representativeMentionProperty, representativeMention);\n ontologyConnector.addPropertyToIndividual(textIndividual, hasCorefClusterProperty, corefClusterIndividual);\n\n var counter = 0;\n for (var mention : corefCluster.getMentions()) {\n var id = corefCluster.getId() + \"_\" + counter;\n counter += 1;\n var label = ICorefCluster.getTextForMention(mention);\n\n var mentionIndividual = ontologyConnector.addIndividualToClass(label, corefMentionClass);\n ontologyConnector.addPropertyToIndividual(mentionIndividual, uuidProperty, id);\n ontologyConnector.addPropertyToIndividual(corefClusterIndividual, mentionProperty, mentionIndividual);\n\n var mentionWordsIndividuals = getMentionWordIndividuals(mention, wordsToIndividuals);\n var mentionOlo = ontologyConnector.addList(\"WordsOf Mention \" + id, mentionWordsIndividuals);\n ontologyConnector.addPropertyToIndividual(mentionIndividual, wordsProperty, mentionOlo.getListIndividual());\n }\n }\n\n }", "public Caption (int x, int y, String text) {\n super (x, y, 1, 1, 0, 1, 1, 1, 0, 0); // x,y,w,h HitBox x,y,w,h,I,O\n Text = text;\n ComponentName = \"Text\";\n ClassName = \"Caption\";\n CaptionFont = new Font(\"TimesRoman\",Font.PLAIN, 16);\n }", "public GuiText(String text, String fontName, Vector2f pos)\n\t{\n\t\tthis(text, fontName, pos, new TextAttributes());\n\n\t}", "public XmlProtoElementBuilder addChildText(String text) {\n element.addChild(XmlNode.newBuilder().setText(text));\n return this;\n }" ]
[ "0.7344442", "0.70907974", "0.7075478", "0.7014451", "0.6825393", "0.675051", "0.6741623", "0.67328906", "0.667184", "0.66683924", "0.66351885", "0.65672547", "0.6548755", "0.646832", "0.64645565", "0.64427054", "0.6434383", "0.6396457", "0.6386392", "0.638508", "0.63484234", "0.6336478", "0.6329367", "0.63212395", "0.6320814", "0.6258303", "0.6251417", "0.6198847", "0.61847997", "0.61807925", "0.61781836", "0.61580336", "0.6155851", "0.615218", "0.6148355", "0.6134174", "0.61304504", "0.6116004", "0.6110268", "0.610741", "0.60978913", "0.60830945", "0.60703474", "0.6053746", "0.6042385", "0.60398895", "0.6026568", "0.6022586", "0.6017889", "0.60003173", "0.5998024", "0.5996924", "0.5994937", "0.59923553", "0.5990895", "0.59767634", "0.5967567", "0.59626406", "0.59615284", "0.5959718", "0.5957086", "0.59540564", "0.59444696", "0.59349364", "0.59281254", "0.59271693", "0.5922425", "0.59174967", "0.5914757", "0.59144646", "0.59083164", "0.58945596", "0.58883756", "0.5883521", "0.58650625", "0.58638847", "0.5855652", "0.58476204", "0.5843774", "0.5829945", "0.5827917", "0.5817633", "0.5814841", "0.58056736", "0.5804223", "0.57983726", "0.57834065", "0.57816464", "0.5778258", "0.5774797", "0.57713616", "0.57590955", "0.57422304", "0.57410264", "0.5736494", "0.57325613", "0.57076305", "0.5695069", "0.56936336", "0.5687955" ]
0.79726565
0
This method handles the object's scalling and rotation when a user click on any transform point. If the user click on the rotation point, it will calculate the angle from the vector composed by the object's origin and the mouse coordinates with the vector composed from the object's origin to the rotation point, increasing it counterclockwise. On the other hand, if the user clicks on any of the eight transformation points, the method will identify which one the user is clicking and therefore perform the scalling and the translation needed acording to the object's center(X,Y) point. Note: To overlap a Tatami's limitation, if the current object has a rotation degree, first we rotate the object, the transformation points and the mouse cordinates back to the angle 0, perform the scalling and translation needed and then rotate back to the previous angle. This is needed because Tatami's scalling crashes with rotated objects.
private void transformObject(int x, int y) { double sx, sy, l, r, nx, ny, tx, ty, alpha, origCX = 0, origCY = 0; Rectangle bnds; if(curr_obj == transformPointers[Action.ROTATE]) { /* the mouse vector 1 */ GeoVector mouseVector = new GeoVector(x, y, this.aux_obj.getCenterX(), this.aux_obj.getCenterY()); /* the rotation vector. i.e. the fixed vector that will be used as origin composed by the subtraction of the object center with the rotation point */ GeoVector rotationVector = new GeoVector(this.lastPosition[0], this.lastPosition[1], this.aux_obj.getCenterX(), this.aux_obj.getCenterY()); mouseVector.normalize(); rotationVector.normalize(); alpha = mouseVector.getAngleWith(rotationVector.getX(), rotationVector.getY()); /** After passing the 180 degrees, the atan2 function returns a negative angle from 0 to PI. So this will convert the final gobal angle to 0-2PI */ if(alpha < 0 ) { alpha = (2 * Math.PI) + alpha; } alpha -= this.currRotation; this.currRotation += alpha; Point c = new Point(this.aux_obj.getCenterX(), this.aux_obj.getCenterY()); this.aux_obj.uRotate((float)(-1.0*(alpha*(180/Math.PI))), c); } else { alpha = this.aux_obj.getRotation(); /** Here we rotate the selected Graphic Object, it's tranformation points and the mouse coordinates back to the zero angle, to permit a correct object scalling. */ if(alpha != 0.0) { origCX = this.aux_obj.getCenterX(); origCY = this.aux_obj.getCenterY(); this.aux_obj.uRotate((float)(alpha*-1.0), this.aux_obj.getCenter()); rotateTransformPoints(alpha); GeoVector mouseCoord = new GeoVector(x, y, this.aux_obj.getCenterX(), this.aux_obj.getCenterY()); mouseCoord.rotate( ((alpha*-1.0) * (2.0*Math.PI))/360 ); mouseCoord.addPoint(this.aux_obj.getCenterX(), this.aux_obj.getCenterY()); x = (int)mouseCoord.getX(); y = (int)mouseCoord.getY(); } /** Tatami rotates the object from it's x and y point to the edges. So this means that sometimes we need to translate the object a few pixels to asure that it's upper left corner is on the same position. */ if(curr_obj == transformPointers[Action.NORTHWEST]) { if(x < (transformPointers[Action.EAST].getX()-2) && y < (transformPointers[Action.SOUTH].getY()-2)) { l = aux_obj.getX() - (transformPointers[Action.WEST].getX()+2); r = (transformPointers[Action.EAST].getX()+2) - aux_obj.getX(); nx = (transformPointers[Action.EAST].getX()+2) - x ; sx = nx / (l+r); tx = (sx*l-l) + (sx*r-r); l = aux_obj.getY() - (transformPointers[Action.NORTH].getY()+2); r = (transformPointers[Action.SOUTH].getY()+2) - aux_obj.getY(); ny = (transformPointers[Action.SOUTH].getY()+2) - y; sy = ny / (l+r); ty = (sy*l-l) + (sy*r-r); aux_obj.uTranslate((int)-tx, (int)-ty); aux_obj.scale( (float)sx, (float)sy); if(alpha != 0.0) { this.aux_obj.uTranslate((int)(origCX - this.aux_obj.getCenterX()), (int)(origCY - this.aux_obj.getCenterY())); this.aux_obj.rotate((float)alpha); } canvas.remove(transformPoints); transformPoints.clear(); bnds = aux_obj.getBounds(); createTransformPoints(bnds, aux_obj); curr_obj = transformPointers[Action.NORTHWEST]; } } else if(curr_obj == transformPointers[Action.NORTH]) { if(y < (transformPointers[Action.SOUTH].getY()-2)) { l = aux_obj.getY() - (transformPointers[Action.NORTH].getY()+2); r = (transformPointers[Action.SOUTH].getY()+2) - aux_obj.getY(); ny = (transformPointers[Action.SOUTH].getY()+2) - y; sy = ny / (l+r); ty = (sy*l-l) + (sy*r-r); aux_obj.uTranslate(0, (int)-ty); aux_obj.scale( 1, (float)sy); if(alpha != 0.0) { this.aux_obj.uTranslate((int)(origCX - this.aux_obj.getCenterX()), (int)(origCY - this.aux_obj.getCenterY())); this.aux_obj.rotate((float)alpha); } canvas.remove(transformPoints); transformPoints.clear(); bnds = aux_obj.getBounds(); createTransformPoints(bnds, aux_obj); curr_obj = transformPointers[Action.NORTH]; } } else if(curr_obj == transformPointers[Action.NORTHEAST]) { if(x > (transformPointers[Action.WEST].getX()+2) && y < (transformPointers[Action.SOUTH].getY()-2)) { l = aux_obj.getX() - (transformPointers[Action.WEST].getX()+2); r = (transformPointers[Action.EAST].getX()+2) - aux_obj.getX(); nx = x - (transformPointers[Action.WEST].getX()+2); sx = nx / (l+r); tx = sx*l-l; l = aux_obj.getY() - (transformPointers[Action.NORTH].getY()+2); r = (transformPointers[Action.SOUTH].getY()+2) - aux_obj.getY(); ny = (transformPointers[Action.SOUTH].getY()+2) - y; sy = ny / (l+r); ty = (sy*l-l) + (sy*r-r); aux_obj.uTranslate((int)tx, (int)-ty); aux_obj.scale( (float)sx, (float)sy); if(alpha != 0.0) { this.aux_obj.uTranslate((int)(origCX - this.aux_obj.getCenterX()), (int)(origCY - this.aux_obj.getCenterY())); this.aux_obj.rotate((float)alpha); } canvas.remove(transformPoints); transformPoints.clear(); bnds = aux_obj.getBounds(); createTransformPoints(bnds, aux_obj); curr_obj = transformPointers[Action.NORTHEAST]; } } else if(curr_obj == transformPointers[Action.WEST]) { if(x < (transformPointers[Action.EAST].getX()-2) ) { l = aux_obj.getX() - (transformPointers[Action.WEST].getX()+2); r = (transformPointers[Action.EAST].getX()+2) - aux_obj.getX(); nx = (transformPointers[Action.EAST].getX()+2) - x ; sx = nx / (l+r); tx = (sx*l-l) + (sx*r-r); aux_obj.uTranslate((int)-tx, 0); aux_obj.scale( (float)sx, 1); if(alpha != 0.0) { this.aux_obj.uTranslate((int)(origCX - this.aux_obj.getCenterX()), (int)(origCY - this.aux_obj.getCenterY())); this.aux_obj.rotate((float)alpha); } canvas.remove(transformPoints); transformPoints.clear(); bnds = aux_obj.getBounds(); createTransformPoints(bnds, aux_obj); curr_obj = transformPointers[Action.WEST]; } } else if(curr_obj == transformPointers[Action.EAST]) { if(x > (transformPointers[Action.WEST].getX()+2) ) { l = aux_obj.getX() - (transformPointers[Action.WEST].getX()+2); r = (transformPointers[Action.EAST].getX()+2) - aux_obj.getX(); nx = x - (transformPointers[Action.WEST].getX()+2); sx = nx / (l+r); tx = sx*l-l; aux_obj.uTranslate((int)tx, 0); aux_obj.scale( (float)sx, (float)1); if(alpha != 0.0) { this.aux_obj.uTranslate((int)(origCX - this.aux_obj.getCenterX()), (int)(origCY - this.aux_obj.getCenterY())); this.aux_obj.rotate((float)alpha); } canvas.remove(transformPoints); transformPoints.clear(); bnds = aux_obj.getBounds(); createTransformPoints(bnds, aux_obj); curr_obj = transformPointers[Action.EAST]; } } else if(curr_obj == transformPointers[Action.SOUTHWEST]) { if(x < (transformPointers[Action.EAST].getX()-2) && y > (transformPointers[Action.NORTH].getY()+2)) { l = aux_obj.getX() - (transformPointers[Action.WEST].getX()+2); r = (transformPointers[Action.EAST].getX()+2) - aux_obj.getX(); nx = (transformPointers[Action.EAST].getX()+2) - x ; sx = nx / (l+r); tx = (sx*l-l) + (sx*r-r); l = aux_obj.getY() - (transformPointers[Action.NORTH].getY()+2); r = (transformPointers[Action.SOUTH].getY()+2) - aux_obj.getY(); ny = y - (transformPointers[Action.NORTH].getY()+2); sy = ny / (l+r); ty = sy*l-l; aux_obj.uTranslate((int)-tx, (int)ty); aux_obj.scale( (float)sx, (float)sy); if(alpha != 0.0) { this.aux_obj.uTranslate((int)(origCX - this.aux_obj.getCenterX()), (int)(origCY - this.aux_obj.getCenterY())); this.aux_obj.rotate((float)alpha); } canvas.remove(transformPoints); transformPoints.clear(); bnds = aux_obj.getBounds(); createTransformPoints(bnds, aux_obj); curr_obj = transformPointers[Action.SOUTHWEST]; } } else if(curr_obj == transformPointers[Action.SOUTH]) { if(y > (transformPointers[Action.NORTH].getY()+2)) { l = aux_obj.getY() - (transformPointers[Action.NORTH].getY()+2); r = (transformPointers[Action.SOUTH].getY()+2) - aux_obj.getY(); ny = y - (transformPointers[Action.NORTH].getY()+2); sy = ny / (l+r); ty = sy*l-l; aux_obj.uTranslate(0, (int)ty); aux_obj.scale( 1, (float)sy); if(alpha != 0.0) { this.aux_obj.uTranslate((int)(origCX - this.aux_obj.getCenterX()), (int)(origCY - this.aux_obj.getCenterY())); this.aux_obj.rotate((float)alpha); } canvas.remove(transformPoints); transformPoints.clear(); bnds = aux_obj.getBounds(); createTransformPoints(bnds, aux_obj); curr_obj = transformPointers[Action.SOUTH]; } } else if(curr_obj == transformPointers[Action.SOUTHEAST]) { if(x > (transformPointers[Action.WEST].getX()+2) && y > (transformPointers[Action.NORTH].getY()+2)) { l = aux_obj.getX() - (transformPointers[Action.WEST].getX()+2); r = (transformPointers[Action.EAST].getX()+2) - aux_obj.getX(); nx = x - (transformPointers[Action.WEST].getX()+2); sx = nx / (l+r); tx = sx*l-l; l = aux_obj.getY() - (transformPointers[Action.NORTH].getY()+2); r = (transformPointers[Action.SOUTH].getY()+2) - aux_obj.getY(); ny = y - (transformPointers[Action.NORTH].getY()+2); sy = ny / (l+r); ty = sy*l-l; aux_obj.uTranslate((int)tx, (int)ty); aux_obj.scale( (float)sx, (float)sy); if(alpha != 0.0) { this.aux_obj.uTranslate((int)(origCX - this.aux_obj.getCenterX()), (int)(origCY - this.aux_obj.getCenterY())); this.aux_obj.rotate((float)alpha); } canvas.remove(transformPoints); transformPoints.clear(); bnds = aux_obj.getBounds(); createTransformPoints(bnds, aux_obj); curr_obj = transformPointers[Action.SOUTHEAST]; } } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void mousePressed(GraphicObject graphicObject, Event event) {\n\t\tint x, y;\n\t\t\n\t\tx = DOM.eventGetClientX(event) - canvas.getAbsoluteLeft() + Window.getScrollLeft();\n\t\ty = DOM.eventGetClientY(event) - canvas.getAbsoluteTop() + Window.getScrollTop(); \n\t\t\n\t\tif(!action.isSelect() && !action.isPolyline() && !action.isTextBox() && !action.isPencil()) {\n\n switch(action.getAction()) {\n\n\t\t\t\n\t\t\t\tcase Action.LINE:\n\t\t\t\t\t/* Starts to draw a line */\n\t\t\t\t\tcurr_obj = new Line(0, 0, 1, 1);\n\t\t\t\t\tbreak;\n\t\t\t\tcase Action.RECTANGLE:\n\t\t\t\t\t/* Starts to draw a rectangle */\n\t\t\t\t\tcurr_obj = new Rect(1, 1);\n\t\t\t\t\tbreak;\n\t\t\t\t\n\t\t\t\tcase Action.CIRCLE:\n\t\t\t\t\t/* Starts to draw a circle */\n\t\t\t\t\tcurr_obj = new Circle(1);\n\t\t\t\t\tbreak;\n\t\t\t\t\n\t\t\t\tcase Action.ELLIPSE:\n\t\t\t\t\t/* Starts to draw a Ellipse */\n\t\t\t\t\tcurr_obj = new Ellipse(1, 1);\n\t\t\t\t\tbreak;\n\n }\n\t\t\t\n\t\t\tlastPosition[0] = x;\n\t\t\tlastPosition[1] = y;\n\t\t\t\n\t\t\tobjPosition[0] = x;\n\t\t\tobjPosition[1] = y;\n\t\t\t\n\t\t\taddGraphicObject( curr_obj, x, y);\n\t\t\t\n\t\t/* Selects a object */\n\t\t} else if(action.isSelect() && (graphicObject != null)) {\n /** If there was another object previously selected, unselect it. */\n if(curr_obj != null && graphicObject != curr_obj && graphicObject.getGroup() != transformPoints) {\n unSelect();\n }\n\n /** If we didn't click on any Transform Point, then we select the object. */\n if((graphicObject.getGroup() != transformPoints)) {\n\n if(curr_obj == null) {\n Rectangle bnds = graphicObject.getBounds();\n if(bnds != null) {\n /** This may seem strange but for some object types, mainly Paths and Ellipses, Tatami's method getBounds() will return null until the object is translated. */\n graphicObject.translate(1, 1);\n graphicObject.translate(-1, -1);\n if(bnds.getHeight() == 0 && bnds.getWidth() == 0) {\n bnds = graphicObject.getBounds();\n }\n\n this.backupStyle();\n\n fillOpacity.setValue(graphicObject.uGetFillColor().getAlpha());\n strokeOpacity.setValue(graphicObject.getStrokeColor().getAlpha());\n\n currentFillColor = graphicObject.uGetFillColor();\n DOM.setStyleAttribute(fill.getElement(), \"backgroundColor\",currentFillColor.toCss(false));\n currentFillColor.setAlpha(graphicObject.uGetFillColor().getAlpha());\n\n currentStrokeColor = graphicObject.getStrokeColor();\n DOM.setStyleAttribute(stroke.getElement(), \"backgroundColor\",currentStrokeColor.toCss(false));\n this.currentStrokeSize.setValue(graphicObject.getStrokeWidth());\n //chooseStrokeSize(graphicObject.getStrokeWidth()-1, graphicObject.getStrokeWidth());\n createTransformPoints(bnds, graphicObject);\n }\n\n curr_obj = graphicObject;\n }\n lastPosition[0] = x;\n lastPosition[1] = y;\n objPosition[0] = x;\n objPosition[1] = y;\n isMovable = true;\n\n /** if the user clicked on a transform point, this settles the variables for the object tranformation. */\n } else {\n lastPosition[0] = x;\n lastPosition[1] = y;\n isTransformable = true;\n aux_obj = curr_obj;\n\t\t\t\tcurr_obj = graphicObject;\n currRotation = 0.0;\n if(curr_obj == transformPointers[Action.ROTATE]) {\n canvas.remove(transformPoints);\n transformPoints.clear();\n }\n }\n\n /** Starts to draw a TextBox.\n * To add usability, a Text object is allways composed by a Text object and a TextBox. The TextBox is simillar to a Rectangle but it's alpha values are set to 0(it's transparent) and has the size of the text's bounds.\n * This allows the user to select a Text object more easily because now he has a rectangle with the size of the Text's boundaries to click on. The TextBox contains a link to the Text (and also the Text to the TextBox) so when a user click on it, we know which Text Object is selected and perform the given actions on it as well.\n * Note: This weren't supported by Tatami, i had to implement it.\n * */\n } else if(this.action.isTextBox()) {\n\n this.curr_obj = new com.objetdirect.tatami.client.gfx.TextBox(1.0, 1.0, null);\n this.lastPosition[0] = x;\n\t\t\tthis.lastPosition[1] = y;\n\n\t\t\tthis.objPosition[0] = x;\n\t\t\tthis.objPosition[1] = y;\n\n\t\t\tthis.addTextBox( this.curr_obj, x, y);\n } else if(this.action.isPencil()) {\n /* Starts to draw with the pencil */\n curr_obj = new Path();\n ((Path)curr_obj).moveTo(x, y);\n Color fill = new Color(this.currentFillColor.getRed(), this.currentFillColor.getGreen(), this.currentFillColor.getBlue(), 0);\n\n objPosition[0] = x;\n\t\t\tobjPosition[1] = y;\n\n curr_obj.setFillColor(fill);\n curr_obj.setStroke(currentStrokeColor, currentStrokeSize.getValue());\n canvas.add(curr_obj, 0, 0);\n /* Otherwise it adds a new point in the Polyline */\n } else if(this.action.isPolyline() && curr_obj != null) {\n this.lastPosition[0] = x;\n this.lastPosition[1] = y;\n }\n\t}", "public void mouseClickedDown(Point2d worldCoord) {\n logger.debug(\"rotate mouseClickedDown, initializing rotation\");\n rotationCenter = null;\n selection = super.chemModelRelay.getRenderer().getRenderer2DModel()\n .getSelection();\n \n if ( selection == null \n ||!selection.isFilled()\n || selection.getConnectedAtomContainer() == null\n || selection.getConnectedAtomContainer().getAtomCount()==0) {\n \n /*\n * Nothing selected- return. Dragging the mouse will not result in\n * any rotation logic.\n */\n logger.debug(\"Nothing selected for rotation\");\n selectionMade = false;\n return;\n \n } else {\n rotationPerformed = false;\n //if we are outside bounding box, we deselect, else\n //we actually start a rotation.\n Rectangle2D bounds = BoundsCalculator.calculateBounds(this.chemModelRelay.getRenderer().getRenderer2DModel().getSelection().getConnectedAtomContainer());\n \n rotationAngle = 0.0;\n selectionMade = true;\n \n /* Keep original coordinates for possible undo/redo */\n atomCoordsMap = new HashMap<IAtom, Point2d[]>();\n for (IAtom atom : selection.getConnectedAtomContainer().atoms()) {\n Point2d[] coordsforatom = new Point2d[2];\n coordsforatom[1] = atom.getPoint2d();\n atomCoordsMap.put(atom, coordsforatom);\n }\n \n /*\n * Determine rotationCenter as the middle of a region defined by\n * min(x,y) and max(x,y) of coordinates of the selected atoms.\n */\n IAtomContainer selectedAtoms = \n selection.getConnectedAtomContainer();\n \n \n Double upperX = null, lowerX = null, upperY = null, lowerY = null;\n for (int i = 0; i < selectedAtoms.getAtomCount(); i++) {\n if (upperX == null) {\n upperX = selectedAtoms.getAtom(i).getPoint2d().x;\n lowerX = upperX;\n upperY = selectedAtoms.getAtom(i).getPoint2d().y;\n lowerY = selectedAtoms.getAtom(i).getPoint2d().y;\n } else {\n double currX = selectedAtoms.getAtom(i).getPoint2d().x;\n if (currX > upperX)\n upperX = currX;\n if (currX < lowerX)\n lowerX = currX;\n \n double currY = selectedAtoms.getAtom(i).getPoint2d().y;\n if (currY > upperY)\n upperY = currY;\n if (currY < lowerY)\n lowerY = currY;\n }\n }\n rotationCenter = new Point2d();\n rotationCenter.x = (upperX + lowerX) / 2;\n rotationCenter.y = (upperY + lowerY) / 2;\n logger.debug(\"rotationCenter \" \n + rotationCenter.x + \" \"\n + rotationCenter.y);\n \n /* Store the original coordinates relative to the rotation center.\n * These are necessary to rotate around the center of the\n * selection rather than the draw center. */\n startCoordsRelativeToRotationCenter = new Point2d[selectedAtoms\n .getAtomCount()];\n for (int i = 0; i < selectedAtoms.getAtomCount(); i++) {\n Point2d relativeAtomPosition = new Point2d();\n relativeAtomPosition.x = selectedAtoms.getAtom(i).getPoint2d().x\n - rotationCenter.x;\n relativeAtomPosition.y = selectedAtoms.getAtom(i).getPoint2d().y\n - rotationCenter.y;\n startCoordsRelativeToRotationCenter[i] = relativeAtomPosition;\n }\n }\n }", "public void mouseDrag(Point2d worldCoordFrom, Point2d worldCoordTo) {\n \n if (selectionMade) {\n rotationPerformed=true;\n /*\n * Determine the quadrant the user is currently in, relative to the\n * rotation center.\n */\n int quadrant = 0;\n if ((worldCoordFrom.x >= rotationCenter.x))\n if ((worldCoordFrom.y <= rotationCenter.y))\n quadrant = 1; // 12 to 3 o'clock\n else\n quadrant = 2; // 3 to 6 o'clock\n else if ((worldCoordFrom.y <= rotationCenter.y))\n quadrant = 4; // 9 to 12 o'clock\n else\n quadrant = 3; // 6 to 9 o'clock\n \n /*\n * The quadrant and the drag combined determine in which direction\n * the rotation will be done. For example, dragging in direction\n * left/down in quadrant 4 means rotating counter clockwise.\n */\n final int SLOW_DOWN_FACTOR=4;\n switch (quadrant) {\n case 1:\n rotationAngle += (worldCoordTo.x - worldCoordFrom.x)/SLOW_DOWN_FACTOR\n + (worldCoordTo.y - worldCoordFrom.y)/SLOW_DOWN_FACTOR;\n break;\n case 2:\n rotationAngle += (worldCoordFrom.x - worldCoordTo.x)/SLOW_DOWN_FACTOR\n + (worldCoordTo.y - worldCoordFrom.y)/SLOW_DOWN_FACTOR;\n break;\n case 3:\n rotationAngle += (worldCoordFrom.x - worldCoordTo.x)/SLOW_DOWN_FACTOR\n + (worldCoordFrom.y - worldCoordTo.y)/SLOW_DOWN_FACTOR;\n break;\n case 4:\n rotationAngle += (worldCoordTo.x - worldCoordFrom.x)/SLOW_DOWN_FACTOR\n + (worldCoordFrom.y - worldCoordTo.y)/SLOW_DOWN_FACTOR;\n break;\n }\n \n /* For more info on the mathematics, see Wiki at \n * http://en.wikipedia.org/wiki/Coordinate_rotation\n */\n double cosine = java.lang.Math.cos(rotationAngle);\n double sine = java.lang.Math.sin(rotationAngle);\n for (int i = 0; i < startCoordsRelativeToRotationCenter.length; i++) {\n double newX = (startCoordsRelativeToRotationCenter[i].x * cosine)\n - (startCoordsRelativeToRotationCenter[i].y * sine);\n double newY = (startCoordsRelativeToRotationCenter[i].x * sine)\n + (startCoordsRelativeToRotationCenter[i].y * cosine);\n \n Point2d newCoords = new Point2d(newX + rotationCenter.x, newY\n + rotationCenter.y);\n \n selection.getConnectedAtomContainer().getAtom(i).setPoint2d(\n newCoords);\n }\n }\n chemModelRelay.updateView();\n }", "private void rotate(final MouseEvent event) {\r\n\r\n\t\t// reset transform3D\r\n\t\tthis.rotation.rotY(0);\r\n\r\n\t\t// rotate around y-axis\r\n\t\tif (super.x_last - event.getPoint().x > 0) {\r\n\t\t\t// rotate leftwards\r\n\t\t\tthis.rotation.rotY(this.angle);\r\n\t\t} else {\r\n\t\t\t// rotate rightwards\r\n\t\t\tthis.rotation.rotY(-this.angle);\r\n\t\t}\r\n\r\n\t\t// apply rotation\r\n\t\tsuper.transformGroup.getTransform(this.transform);\r\n\t\tthis.transform.mul(this.rotation);\r\n\t\tsuper.transformGroup.setTransform(this.transform);\r\n\t}", "public void calculateRotation() {\r\n float x = this.getX();\r\n float y = this.getY();\r\n\r\n float mouseX = ((float) Mouse.getX() - 960) / (400.0f / 26.0f);\r\n float mouseY = ((float) Mouse.getY() - 540) / (400.0f / 23.0f);\r\n\r\n float b = mouseX - x;\r\n float a = mouseY - y;\r\n\r\n rotationZ = (float) Math.toDegrees(Math.atan2(a, b)) + 90;\r\n\r\n forwardX = (float) Math.sin(Math.toRadians(rotationZ));\r\n forwardY = (float) -Math.cos(Math.toRadians(rotationZ));\r\n }", "@Override\n public void mouseClicked(MouseEvent e) {\n //location where mouse was pressed\n Point mousePoint = e.getPoint();\n //conversion to location on frame\n Vec2 worldPoint = view.viewToWorld(mousePoint);\n float fx = e.getPoint().x;\n float fy = e.getPoint().y;\n float vx = worldPoint.x;\n float vy = worldPoint.y;\n //Completes checks for pressing of GUI components\n restartCheck(vx, vy);\n settingsCheck(vx, vy);\n zoomCheck(fx, fy);\n }", "@Override\n public void mousePressed(MouseEvent e) {\n\n prevMouse.x = x(e);\n prevMouse.y = y(e);\n\n // 3D mode\n if (getChart().getView().is3D()) {\n if (handleSlaveThread(e)) {\n return;\n }\n }\n\n // 2D mode\n else {\n\n Coord2d startMouse = prevMouse.clone();\n\n if (maintainInAxis)\n maintainInAxis(startMouse);\n\n\n\n // stop displaying mouse position on roll over\n mousePosition = new MousePosition();\n\n // start creating a selection\n mouseSelection.start2D = startMouse;\n mouseSelection.start3D = screenToModel(startMouse.x, startMouse.y);\n\n if (mouseSelection.start3D == null)\n System.err.println(\"Mouse.onMousePressed projection is null \");\n\n\n // screenToModel(bounds3d.getCorners())\n\n }\n }", "private void rotateTransformPoints(double angle) {\n int i;\n for(i=1; i<9;i++) {\n GeoVector vec = new GeoVector(this.transformPointers[i].getX(), this.transformPointers[i].getY(), this.aux_obj.getCenterX(), this.aux_obj.getCenterY());\n vec.rotate(((angle*-1.0) * (2.0*Math.PI))/360);\n vec.addPoint(this.aux_obj.getCenterX(), this.aux_obj.getCenterY());\n this.transformPointers[i].translate( (int)(vec.getX() - this.transformPointers[i].getX()), (int)(vec.getY() - this.transformPointers[i].getY()));\n }\n\n }", "public void mouseMoved(GraphicObject graphicObject, Event event) {\n\t\tint x, y;\n\t\t\n\t\tx = DOM.eventGetClientX(event) - canvas.getAbsoluteLeft() + Window.getScrollLeft();\n\t\ty = DOM.eventGetClientY(event) - canvas.getAbsoluteTop() + Window.getScrollTop(); \n\t\t\n\t\tif(action.isSelect()) {\n /** If the user clicked on the object, it then performs a translation */\n if((isMovable) && (curr_obj != null)) {\n\t\t\t\tcurr_obj.uTranslate(x - lastPosition[0], y - lastPosition[1]);\n\t\t\t\ttransformPoints.uTranslate(x - lastPosition[0], y - lastPosition[1]);\n\n lastPosition[0] = x;\n\t\t\t\tlastPosition[1] = y;\n /** If the user has clicked on a Transformation Point, it performs the given transformation */\n } else if(isTransformable) {\n\t\t\t\ttransformObject(x, y);\n\t\t\t}\n\n /* Drawing with pencil. This adds a new point to the path */\n } else if(action.isPencil() && (curr_obj != null)) {\n\t\t\t((Path)curr_obj).lineTo(x, y);\n\n /* Drawing a line. This updates the line end point */\n } else if(action.isLine() && (curr_obj != null)) {\n\t\t\tcanvas.remove(curr_obj);\n\t\t\t\n\t\t\tcurr_obj = new Line(0, 0, x - objPosition[0], y - objPosition[1]);\n\t\t\taddGraphicObject( curr_obj, objPosition[0], objPosition[1]);\n\n /* Drawing a rectangle. This updates the rectangle's size and position*/\n } else if(action.isRectangle() && (curr_obj != null)) {\n\t\t\tcanvas.remove(curr_obj);\n\t\t\t\n\t\t\t/* Lower right corner */\n\t\t\tif(x > objPosition[0] && y > objPosition[1]) {\t\n\t\t\t\tcurr_obj = new Rect(x - objPosition[0], y - objPosition[1]);\n\t\t\t\taddGraphicObject( curr_obj, objPosition[0], objPosition[1]);\n\t\t\t\t\n\t\t\t/* Upper right corner*/\n\t\t\t} else if(x > objPosition[0] && y < objPosition[1]) {\n\t\t\t\tcurr_obj = new Rect(x - objPosition[0], objPosition[1] - y);\n\t\t\t\taddGraphicObject( curr_obj, objPosition[0], y);\n\t\t\t\n\t\t\t/* Lower left corner*/\n\t\t\t} else if(x < objPosition[0] && y > objPosition[1]) {\n\t\t\t\tcurr_obj = new Rect(objPosition[0] - x, y - objPosition[1]);\n\t\t\t\taddGraphicObject( curr_obj, x, objPosition[1]);\n\t\t\t\n\t\t\t/* Upper left corner*/\n\t\t\t} else if(x < objPosition[0] && y < objPosition[1]) {\n\t\t\t\tcurr_obj = new Rect(objPosition[0] - x, objPosition[1] - y);\n\t\t\t\taddGraphicObject( curr_obj, x, y);\t\t\t\t\n\t\t\t}\n\n /* Drawing a circle. This updates the circle's diameter */\n } else if(action.isCircle() && (curr_obj != null)) {\n\t\t\tint abs_x = Math.abs(x - objPosition[0]);\n\t\t\tint abs_y = Math.abs(y - objPosition[1]);\n\t\t\t\n\t\t\tcanvas.remove(curr_obj);\n\t\t\t\n\t\t\tif(abs_x > abs_y) {\n\t\t\t\tcurr_obj = new Circle(abs_x);\n\t\t\t} else {\n\t\t\t\tcurr_obj = new Circle(abs_y);\n\t\t\t}\n\t\t\taddGraphicObject( curr_obj, objPosition[0], objPosition[1] );\n\n /* Drawing a ellipse. This updates both ellipse's diameters */\n } else if(action.isEllipse() && (curr_obj != null)) {\n\t\t\tcanvas.remove(curr_obj);\n\t\t\t\n\t\t\t/* Lower right corner */\n\t\t\tif(x > objPosition[0]+1 && y > objPosition[1]+1) {\n\t\t\t\tcurr_obj = new Ellipse((x - objPosition[0])/2, (y - objPosition[1])/2);\n\t\t\t\taddGraphicObject( curr_obj, objPosition[0] + ((x - objPosition[0])/2), objPosition[1] + ((y - objPosition[1])/2));\n\t\t\t\t\n\t\t\t/* Upper right corner*/\n\t\t\t} else if(x > objPosition[0]+1 && y+1 < objPosition[1]) {\t\t\t\t\n\t\t\t\tcurr_obj = new Ellipse((x - objPosition[0])/2, (objPosition[1] - y)/2 );\n\t\t\t\taddGraphicObject( curr_obj, objPosition[0] + ((x - objPosition[0])/2), objPosition[1] - ((objPosition[1] - y)/2));\n\t\t\t\n\t\t\t/* Lower left corner*/\n\t\t\t} else if(x+1 < objPosition[0] && y > objPosition[1]+1) {\n\t\t\t\tcurr_obj = new Ellipse((objPosition[0] - x)/2, (y - objPosition[1])/2);\n\t\t\t\taddGraphicObject( curr_obj, objPosition[0] - ((objPosition[0] - x)/2), objPosition[1] + ((y - objPosition[1])/2));\n\t\t\t\n\t\t\t/* Upper left corner*/\n\t\t\t} else if(x+1 < objPosition[0] && y+1 < objPosition[1]) {\n\t\t\t\tcurr_obj = new Ellipse((objPosition[0] - x)/2, (objPosition[1] - y)/2);\n\t\t\t\taddGraphicObject( curr_obj, objPosition[0] - ((objPosition[0] - x)/2), objPosition[1] - ((objPosition[1] - y)/2));\t\t\t\t\n\t\t\t}\n\n /** Drawing a TextBox. This updates the TextBox's size and position. */\n } else if(action.isTextBox() && (curr_obj != null)) {\n\t\t\tcanvas.remove(curr_obj);\n\n\t\t\t/* Lower right corner */\n\t\t\tif(x > objPosition[0] && y > objPosition[1]) {\n\t\t\t\tcurr_obj = new com.objetdirect.tatami.client.gfx.TextBox(x - objPosition[0], y - objPosition[1], null);\n\t\t\t\taddTextBox( curr_obj, objPosition[0], objPosition[1]);\n\n\t\t\t/* Upper right corner*/\n\t\t\t} else if(x > objPosition[0] && y < objPosition[1]) {\n\t\t\t\tcurr_obj = new com.objetdirect.tatami.client.gfx.TextBox(x - objPosition[0], objPosition[1] - y, null);\n\t\t\t\taddTextBox( curr_obj, objPosition[0], y);\n\n\t\t\t/* Lower left corner*/\n\t\t\t} else if(x < objPosition[0] && y > objPosition[1]) {\n\t\t\t\tcurr_obj = new com.objetdirect.tatami.client.gfx.TextBox(objPosition[0] - x, y - objPosition[1], null);\n\t\t\t\taddTextBox( curr_obj, x, objPosition[1]);\n\n\t\t\t/* Upper left corner*/\n\t\t\t} else if(x < objPosition[0] && y < objPosition[1]) {\n\t\t\t\tcurr_obj = new com.objetdirect.tatami.client.gfx.TextBox(objPosition[0] - x, objPosition[1] - y, null);\n\t\t\t\taddTextBox( curr_obj, x, y);\n\t\t\t}\n\n /** Drawing a polyline, this updates the current point's position */\n } else if(this.action.isPolyline() && (this.curr_obj != null)) {\n if(DOM.eventGetButton(event) == Event.BUTTON_LEFT) {\n\n this.canvas.remove(this.curr_obj);\n this.curr_obj = new Path(this.currentPath);\n ((Path)this.curr_obj).smoothCurveTo( x, y, lastPosition[0], lastPosition[1]);\n this.addGraphicObject(this.curr_obj, 0, 0);\n } else {\n this.canvas.remove(this.curr_obj);\n this.curr_obj = new Path(this.currentPath);\n ((Path)this.curr_obj).lineTo(x, y);\n this.addGraphicObject(this.curr_obj, 0, 0);\n }\n }\n }", "public void handle(ActionEvent ae) {\n angle += 15.0; \n \n rotate.setAngle(angle); \n rotate.setPivotX(btnRotate.getWidth()/2); \n rotate.setPivotY(btnRotate.getHeight()/2); \n }", "private void userInput(){\n if(mousePressed){\n rX -= (mouseY - pmouseY) * 0.002f;//map(mouseY,0,height,-PI,PI);\n rY -= (mouseX - pmouseX) * 0.002f;// map(mouseX,0,width,PI,-PI);\n }\n rotateX(rX);\n rotateY(rY);\n\n if(keyPressed){\n if(keyCode == UP){\n zoom += 0.01f;\n }\n if(keyCode == DOWN){\n zoom -= 0.01f;\n }\n }\n }", "public void target()\n {\n if(noRotation == false)\n {\n if(timer % 3 == 0)\n {\n int currentRotation = getRotation();\n turnTowards(xMouse, yMouse);\n int newRotation = getRotation();\n if (Math.abs(currentRotation-newRotation) > 180)\n {\n if (currentRotation < 180) currentRotation += 360;\n else newRotation += 360;\n }\n if(currentRotation != newRotation)\n { \n setRotation(currentRotation+direction()*8);\n }\n }\n }\n }", "public void keyPressed(KeyEvent evt) {\n Vector3f translate = new Vector3f();\n Vector3f transball = new Vector3f();\n \n plane_trans.get( translate ); \n ball_trans.get( transball ); \n \n if (evt.getKeyChar()=='a') {\n Transform3D rotate = new Transform3D();\n rotate.rotY(Math.PI/36.0d);\n plane_trans.mul(rotate);\n \n //transball.x += 0.4f;\n \n \n \n }\n if (evt.getKeyChar()=='d') {\n Transform3D rotate = new Transform3D();\n rotate.rotY(-Math.PI/36.0d);\n plane_trans.mul(rotate);\n //transball.x -= 0.3f;\n }\n \n /*if (evt.getKeyChar()=='s') {\n Transform3D rotate = new Transform3D();\n rotate.rotX(-Math.PI/36.0d);\n plane_trans.mul(rotate);\n transball.y += 0.5f;\n }*/\n \n /*if (evt.getKeyChar()=='w') {\n Transform3D rotate = new Transform3D();\n rotate.rotX(Math.PI/36.0d);\n plane_trans.mul(rotate);\n transball.y -= 0.4f;\n \n }*/\n \n if (evt.getKeyChar()=='i') {\n //transball.x = 0.0f;\n //transball.y = -3.00f;\n //transball.z = 0.3f;\n plane_trans.set(new Vector3f(0.0f, 1.5f, 9985.0f));\n \n Transform3D rotate = new Transform3D();\n rotate.rotX(-Math.PI/3.0d);\n plane_trans.mul(rotate);\n }\n \n if(evt.getKeyChar()=='l'){\n stime = 2000;\n movement();\n \n \n }\n \n // (-5,5) (-5,-4) (5,-4) (5,5)\n // x varies from -5 to 5\n // y varies from 5 to -4\n \n /*if(transball.x< -5 || transball.x>5){\n transball.x = 0.0f;\n transball.y = -3.00f;\n }\n if(transball.y < -4 || transball.y>5){\n transball.x = 0.0f;\n transball.y = -3.00f;\n }*/\n \n \n //ball_trans.setTranslation( transball );\n //ballTG.setTransform(ball_trans);\n \n plane_trans.setTranslation( translate );\n planeTG.setTransform(plane_trans);\n \n // make a rectangle and usse its four coordinates to check where the ball is in the area or outside\n // resetball();\n \n \n \n }", "public void interact() {\n\t\tint clickX = EZInteraction.getXMouse();\n\t\tint clickY = EZInteraction.getYMouse();\n\t\tif (EZInteraction.wasMouseLeftButtonPressed()) {\n\t\t\tif (img.isPointInElement(clickX, clickY)) {\n\t\t\t\tisDragging = true;\n\t\t\t}\n\t\t}\n\t\tif (isDragging) {\n\t\t\timg.translateTo(clickX, clickY);\n\t\t}\n\t\tif (EZInteraction.wasMouseLeftButtonReleased()) {\n\t\t\tif (img.isPointInElement(clickX, clickY)) {\n\t\t\t\tisDragging = false;\n\t\t\t}\n\t\t}\n\t\t\n\t}", "@Override\n public void mousePressed(MouseEvent e) {\n // this.getVision().getCare().set(this.getVision().getSoul().newMemento());\n if (e.getButton() != MouseEvent.BUTTON1) {\n return;\n }\n if (getVerticallyPointOnGraph(e.getX(), e.getY()) != null) {\n setCurrentPoint(getVerticallyPointOnGraph(e.getX(), e.getY()));\n } else {\n setCurrentPoint(null);\n }\n \n if (getCurrentPoint() != null) {\n double toy = Math.min(Math.max(tCanvasPadding, e.getY()), getHeight() - bCanvasPadding);\n // System.out.println(\"moving to [\"+tox+\",\"+toy+\"]\");\n adapter.moveImagePoint(getCurrentPoint(), c2gy(toy));\n // getCurrentPoint().movePoint(getCurrentPoint(),\n // c2gx(tox),c2gy(toy,getCurrentPoint().getDataSet()));\n }\n // System.out.println(\"Current point is \"+currentPoint);\n }", "public void mouseClicked(GraphicObject graphicObject, Event event) {\n\t\tint x, y;\n\n /** if there's no graphic Object selected, we unSelect any other that was previously selected */\n if(action.isSelect() && (graphicObject == null)) {\n\t\t\tif(curr_obj!= null) {\n this.unSelect();\n this.restoreStyle();\n }\n\t\t\t\n\t\t} else {\n\t\t\tx = DOM.eventGetClientX(event) - canvas.getAbsoluteLeft() + Window.getScrollLeft();\n\t\t\ty = DOM.eventGetClientY(event) - canvas.getAbsoluteTop() + Window.getScrollTop(); \n\t\t\t\n\t\t\t\n\t\t\tif(action.isPolyline() && curr_obj == null) {\n /* If there is no Polyline object created, starts to draw a Polyline */\n curr_obj = new Path();\n ((Path)curr_obj).moveTo(x, y);\n\n addGraphicObject( curr_obj, 0, 0);\n this.currentPath = ((Path)this.curr_obj).commands;\n\t\t\t}\n\t\t}\n\t\t\n\t}", "public void mousePressed(MouseEvent evt) {\n if (dragging)\n return; // don't start a new drag while one is already in progress\n\torigy = evt.getY();\n\torigx = evt.getX();\n\tboolean shifted = (evt.getModifiers() & InputEvent.SHIFT_MASK) > 0;\n\trotate = shifted;\n\tzoom = ! shifted;\n }", "@Override\n public boolean handleMouseClick(Rectangle mouseRectangle, Rectangle camera, int zoomX, int zoomY) {\n if (mouseRectangle.intersects(rectangle)) {\n activate();\n return false;\n }\n return false;\n }", "@Override\r\n\t\t\tpublic void mousePressed(MouseEvent e) {\n\t\t\t\tclickPoint = e.getPoint();\r\n\t\t\t\tselectionBounds = null;\r\n//\t\t\t\tSystem.out.println(\"Bac dau\" + e.getPoint().toString());\r\n\t\t\t\tbacdauX = (int) e.getPoint().getX();\r\n\t\t\t\tbacdauY = (int) e.getPoint().getY();\r\n\t\t\t}", "@Override\n public Matrix4 calculateTransform(long now, float deltaSeconds) {\n transform.idt();\n for (final Action action : pressed.values().toArray()) {\n action.perform(deltaSeconds);\n }\n scrollAction.perform();\n return transform;\n }", "private void applyTransform() {\n GlStateManager.rotate(180, 1.0F, 0.0F, 0.0F);\n GlStateManager.translate(offsetX, offsetY - 26, offsetZ);\n }", "public void applyTransform() {\n\t\tglRotatef(xaxisrot, 1.0f, 0.0f, 0.0f);\n\t\tglRotatef(yaxisrot, 0.0f, 1.0f, 0.0f);\n\t\tglRotatef(tilt, 0.0f, 0.0f, 1.0f);\n\t\tglTranslatef(-pos.geti(), -pos.getj(), -pos.getk());\n\t}", "public void rotation(){\n\n double x=Double.parseDouble(rotationx.getText());\n double y=Double.parseDouble(rotationy.getText());\n double z=Double.parseDouble(rotationz.getText());\n if (checkbox.isSelected()){\n cls_zahnrad.rotieren(x,y,z);\n return;\n }\n Triangle[] dreiecke = t1.getFlaechen();\n x=2*Math.PI/360*x;\n y=2*Math.PI/360*y;\n z=2*Math.PI/360*z;\n double[] A,B,C;\n\n double pktx=0,pkty=0,pktz=0;\n\n if (radio12.isSelected()){\n pktx = Double.parseDouble(rotationpktx.getText());\n pkty = Double.parseDouble(rotationpkty.getText());\n pktz = Double.parseDouble(rotationpktz.getText());\n }\n\n for (Triangle i :dreiecke){\n for (int j=0; j<3;j++){\n double xtemp,ytemp,ztemp;\n xtemp=i.getTriangle()[j].getPoint()[0]-pktx;\n ytemp=i.getTriangle()[j].getPoint()[1]-pkty;\n ztemp=i.getTriangle()[j].getPoint()[2]-pktz;\n i.getTriangle()[j].setPoint(xtemp,ytemp,ztemp);\n }\n }\n\n for (Triangle t1 : dreiecke){\n A=t1.getTriangle()[0].getPoint();\n B=t1.getTriangle()[1].getPoint();\n C=t1.getTriangle()[2].getPoint();\n double[][]punkte={A,B,C};\n\n for (int i=0; i<punkte.length; i++){\n double temp0,temp1,temp2;\n\n //Rotation um Parallele der X-Achse durch das Rotationszentrum\n if (x!=0){\n temp1=punkte[i][1]*Math.cos(x)-punkte[i][2]*Math.sin(x);\n temp2=punkte[i][1]*Math.sin(x)+punkte[i][2]*Math.cos(x);\n punkte[i][1]=temp1;\n punkte[i][2]=temp2;\n }\n\n //Rotation um Parallele der Y-Achse durch das Rotationszentrum\n if (y!=0){\n temp0=punkte[i][0]*Math.cos(y)+punkte[i][2]*Math.sin(y);\n temp2=-punkte[i][0]*Math.sin(y)+punkte[i][2]*Math.cos(y);\n punkte[i][0]=temp0;\n punkte[i][2]=temp2;\n }\n\n //Rotation um Parallele der Z-Achse durch das Rotationszentrum\n if (z!=0){\n temp0=punkte[i][0]*Math.cos(z)-punkte[i][1]*Math.sin(z);\n temp1=punkte[i][0]*Math.sin(z)+punkte[i][1]*Math.cos(z);\n punkte[i][0]=temp0;\n punkte[i][1]=temp1;\n }\n }\n A=punkte[0];\n B=punkte[1];\n C=punkte[2];\n t1.getTriangle()[0].setPoint(A[0],A[1],A[2]);\n t1.getTriangle()[1].setPoint(B[0],B[1],B[2]);\n t1.getTriangle()[2].setPoint(C[0],C[1],C[2]);\n }\n for (Triangle i :dreiecke){\n for (int j=0; j<3;j++){\n double xtemp,ytemp,ztemp;\n xtemp=i.getTriangle()[j].getPoint()[0]+pktx;\n ytemp=i.getTriangle()[j].getPoint()[1]+pkty;\n ztemp=i.getTriangle()[j].getPoint()[2]+pktz;\n i.getTriangle()[j].setPoint(xtemp,ytemp,ztemp);\n }\n }\n redraw();\n /*\n System.out.println(\"A \"+Arrays.toString(t1.getTetraeder()[0].getPoint()));\n System.out.println(\"B \"+Arrays.toString(t1.getTetraeder()[1].getPoint()));\n System.out.println(\"C \"+Arrays.toString(t1.getTetraeder()[2].getPoint()));\n System.out.println(\"D \"+Arrays.toString(t1.getTetraeder()[3].getPoint()));\n System.out.println(Arrays.toString(Mittelpunkt));\n */\n }", "@Override\n\tpublic void mouseClicked(MouseEvent e) {\n//\t\tPoint2D.Double view = new Point2D.Double(e.getX(), e.getY());\n//\t\tPoint2D.Double worldPoint = new Point2D.Double();\n//\t\tAffineTransform viewToWorld = new AffineTransform(1.0 / scale, 0, 0, 1.0 / scale, worldUpperLeft.getX(), worldUpperLeft.getY());\n//\t\tviewToWorld.transform(view, worldPoint);\n//\t\n//\t\t// check here if clicking a waypoint\n//\t\tint index = data.hitWaypointTest(worldPoint.getX(), worldPoint.getY());\n//\t\tif(index != -1) {\n////\t\t\tWaypoint w = data.getWaypoint(index);\n//\t\t\tGUIFunctions.updateWaypointDataFields(w);\n//\t\t} else \n//\t\t\tGUIFunctions.updateWaypointDataFields(null);\n\t}", "@Override\r\n\t\t\tpublic void mousePressed(MouseEvent e) {\n\t\t\t\torigin.x=e.getX();\r\n\t\t\t\torigin.y=e.getY();\r\n\t\t\t}", "public void mousePressed(MouseEvent e) {\n int i = 0;\n // Koordinaten des Mauszeigers sind relativ zum sichtbaren Bereich der\n // Zeichenflaeche. Also linke obere Ecke des sichtb. Bereichs holen\n // und beruecksichtigen.\n Rectangle r = ((JScrollPane) e.getSource()).getViewport().getViewRect();\n int f = model.getFactor(); // Zoomfaktor beachten\n int x = r.x + e.getX();\n x = x / f;\n int y = r.y + e.getY();\n y = y / f;\n\n moveP = model.getInterpolPoint(new Point(x, y, f));\n // Hilfspunkt erzeugen\n }", "public MouseMotionListener getTransRotaListener() {\r\n\t\treturn new MouseMotionListener() {\r\n\t\t\t\r\n\t\t\t@Override\r\n\t\t\tpublic void mouseMoved(MouseEvent e) {\r\n\t\t\t\t// TODO Auto-generated method stub\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t@Override\r\n\t\t\tpublic void mouseDragged(MouseEvent e) {\r\n\t\t\t\tif(ok){\r\n\t\t\t\t\tit.translateByMouse(e);\r\n\t\t\t ok = true;\r\n\t\t\t\t}else if(!ok){\r\n\t\t\t it.rotateByMouse(e);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t};\r\n\t}", "@Override\n public void mousePressed(MouseEvent e) {\n\n final View view = controller.getView();\n final int originX = view.getOriginX();\n final int originY = view.getOriginY();\n\n if (view.getDragCircle().contains(e.getX(), e.getY()) && !view.getBlankCircle().contains(e.getX(), e.getY())) {\n\n // Get the mouse initial position\n int initialX = e.getX() - originX;\n int initialY = originY - e.getY();\n\n // Get the distance from the circle's center to the mouse initial position : √(x² + y²)\n double initialDist = Math.sqrt(Math.pow(initialX, 2) + Math.pow(initialY, 2));\n\n // Get the initial angle : arccos(initialX / initialDist)\n double initialA = Math.toDegrees(Math.acos(initialX / initialDist));\n if (initialY < 0) {\n initialA = 360 - initialA;\n }\n final double initialAngle = view.getDefaultStartAngle() - initialA;\n\n view.addMouseMotionListener(new MouseMotionListener() {\n\n @Override\n public void mouseDragged(MouseEvent dragEvent) {\n\n // Get the mouse current position\n int currentX = dragEvent.getX() - originX;\n int currentY = originY - dragEvent.getY();\n\n // Get the distance from the circle's center to the mouse current position : √(x² + y²)\n double currentDist = Math.sqrt(Math.pow(currentX, 2) + Math.pow(currentY, 2));\n\n // Get the current angle : arccos(currentX / currentDist)\n double angle = Math.toDegrees(Math.acos(currentX / currentDist));\n if (currentY < 0) {\n angle = 360 - angle;\n }\n\n // Update the view\n view.setDefaultStartAngle((angle + initialAngle) % 360);\n view.computeArcs(controller.getModel());\n view.repaint();\n }\n\n @Override\n public void mouseMoved(MouseEvent mouseEvent) {\n\n }\n });\n }\n }", "public void mousePressed(MouseEvent e) {\n\t\tdouble x = e.getX();\n\t\tdouble y = e.getY();\n\t\tswitch (clickTracker) {\n\t\t\tcase 0:\n\t\t\t\t//figureDone = false;\n\t\t\t\tflipDirection.setEnabled(false);\n\t\t\t\tlastClick = new GPoint(x,y);\n\t\t\t\tlineActive = true;\n\t\t\t\tbreak;\n\t\t\tcase 1:\n\t\t\t\tlineActive = false;\n\t\t\t\tremove(centerCircle);\n\t\t\t\tdrawCenter(x, y);\n\t\t\t\t//println(lastClick + \" x \" + x + \" y \" +y);\n\t\t\t\t//double centerX = lastClick.getX();\n\t\t\t\t//double centerY = lastClick.getY();\n\t\t\t\tlastClick = new GPoint(lastClick.getX() + centerCircle.getWidth(), lastClick.getY());\n\t\t\t\tbreak;\n\t\t\t//case 2:\n\t\t\t\t//lastClick = new GPoint(x,y);\n\t\t\t\t//lineActive = true;\n\t\t\t\t//break;\n\t\t\tcase 2:\n\t\t\t\tlineActive = false;\n\t\t\t\tremove(outerCircle);\n\t\t\t\tdrawOuter(x, y);\n\t\t\t\tbreak;\n\t\t\tcase 3:\n\t\t\t\tlineActive = false;\n\t\t\t\tremove(armLine);\n\t\t\t\tdrawArm(x,y);\n\t\t\t\tinitalizeFigure();\n\t\t\t\tbreak;\n\t\t}\n\t\tclickTracker++;\n\t\tif (clickTracker == 3 || clickTracker == 2) lineActive = true;\n\t}", "@Override\n public void mouseDragged(MouseEvent e) {\n\n // Check whether left or right mouse is held\n if (SwingUtilities.isLeftMouseButton(e)) {\n // Get x and y\n int x = e.getX();\n int y = e.getY();\n\n // Rotate for LMB\n rt_y -= (old_x - x) / 2;\n rt_x -= (old_y - y) / 2;\n\n // Overwrite last frame data\n old_x = x;\n old_y = y;\n } else if (SwingUtilities.isRightMouseButton(e)) {\n // Get x and y\n int x = e.getX();\n int y = e.getY();\n\n // Translate for RMB\n tr_x -= ((float) old_x - (float) x) / 1000;\n tr_y += ((float) old_y - (float) y) / 1000;\n\n // Overwrite last frame data\n old_x = x;\n old_y = y;\n }\n }", "@Override public void onMouseClick( Location point ) {\n new FilledRect( verticalCorner, 5, 210, canvas );\n new FilledRect( horizontalCorner, 210, 5, canvas );\n\n verticalCorner.translate( -10, 0 );\n horizontalCorner.translate( 0, -10 );\n }", "@Override\r\n\tpublic void mouseClicked(MouseEvent e) {\r\n\t\tLOG.fine(\"Clicked\");\r\n\t\tif (shapeManipulator != null) {\r\n\t\t\tshapeManipulator.mouseClicked(e);\r\n\t\t}\r\n\t}", "@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\trotateit();\n\t\t\t}", "@Override\n public void mousePressed(MouseEvent e) {\n x_pressed = e.getX();\n y_pressed = e.getY();\n \n }", "@Override\n public void mousePressed(MouseEvent e) {\n x_pressed = e.getX();\n y_pressed = e.getY();\n \n }", "@Override\n public void mousePressed(MouseEvent e) {\n x_pressed = e.getX();\n y_pressed = e.getY();\n \n }", "private void panelMousePressed(java.awt.event.MouseEvent evt)\n throws Exception {\n\n if (evt.getButton() == MouseEvent.BUTTON1) {\n /*Get the point where the mouse was clicked*/\n Point pointClicked = evt.getPoint();\n\n /*Read and save the object on that Point*/\n selectedShape = getLabelInPoint(pointClicked);\n\n /*Save this point, to be used during Transformations*/\n preTranslationPoint = pointClicked;\n\n /*Check which tool is selected*/\n if (drawConsoleUI.getSelectedToolID() == 2) {\n\n /*Check if ShapeConcept are connected*/\n if (! haveConnect) {\n\n /*Check if the first Shape selected is either a Concept or a Link*/\n if (selectedShape instanceof ShapeConcept)\n firstConcept = (ShapeConcept) selectedShape;\n else if (selectedShape instanceof ShapeLinking)\n firstLinking = (ShapeLinking) selectedShape;\n }//end inner if\n else\n {\n /*Get the second componenet at point*/\n\n ShapesInterface shape = getLabelInPoint(pointClicked);\n\n /*Check whether the second Shape is Concept or either Linking*/\n if (shape instanceof ShapeConcept)\n secondConcept = (ShapeConcept) selectedShape;\n else if (shape instanceof ShapeLinking)\n secondLinking = (ShapeLinking) selectedShape;\n\n /***************\n * START CASES *\n ***************/\n\n /*CASE-1: first=Concept & sec=Concept*/\n if (firstConcept !=null && secondConcept !=null && firstLinking == null && secondLinking == null) {\n\n /*Find the middle between the two points*/\n Point p1 = firstConcept.getCenter();\n Point p2 = secondConcept.getCenter();\n\n /*Find the mid point of the line*/\n Point midPoint = new Point((p1.x + p2.x)/2,(p1.y + p2.y)/2);\n\n /*Find the rectangle at the center*/\n Rectangle encloseRect = new Rectangle(midPoint.x - (int) 140/2,\n midPoint.y - (int) 40/2,\n 140,\n 40);\n\n /*Create a new LinkingPhaze*/\n ShapeLinking linkPhraze = new ShapeLinking(encloseRect,\"This is a link\",\n \"UserTest\", \"id\");\n\n /*Save Link phraze it in the shape buffer List*/\n this.labelBuffer.add(linkPhraze);\n\n /*Draw the ShapeConcept object on the JPanel*/\n this.add(linkPhraze);\n\n /**/\n if (! firstConcept.isEntry(linkPhraze)){\n linkPhraze.addComponent(firstConcept);\n }\n\n if (! linkPhraze.isEntry(secondConcept)){\n secondConcept.addComponent(linkPhraze);\n }\n\n }//END CASE 1\n /*CASE-2: first=Concept & sec=Link*/\n else if (firstConcept != null && secondConcept == null && firstLinking == null && secondLinking != null) {\n \n if (! firstConcept.isEntry(secondLinking))\n secondLinking.addComponent(firstConcept);\n else {\n /*Detect two way*/\n\n //tempConcept.addComponent(getLabelInPoint(pointClicked));\n //System.out.println(\"Detect two way\");\n }//else\n }//END CASE 2\n /*CASE-3: first=Link & sec=Concept*/\n else if (firstConcept == null && secondConcept != null && firstLinking != null && secondLinking == null) {\n \n if (! firstLinking.isEntry(secondConcept))\n secondConcept.addComponent(firstLinking);\n else {\n /*Detect two way*/\n\n //tempConcept.addComponent(getLabelInPoint(pointClicked));\n //System.out.println(\"Detect two way\");\n }\n }//END CASE 3\n /*CASE-4: first=Link & sec=Link*/\n else if (firstConcept == null && secondConcept == null && firstLinking != null && secondLinking != null) {\n }//END CASE 4\n\n /*Testing*/\n //System.out.println(\"firstConcept : \" + firstConcept);\n //System.out.println(\"firstLinking : \" + firstLinking);\n //System.out.println(\"secondConcept : \" + secondConcept);\n //System.out.println(\"secondLinking : \" + secondLinking);\n\n\n /*Clear variables for Cases*/\n firstConcept = null;\n firstLinking = null;\n secondConcept = null;\n secondLinking = null;\n\n /*When done switch back to the default SELECTION TOOL*/\n drawConsoleUI.setSelectedToolID(1);\n repaint();\n }//end inner else\n\n haveConnect = !haveConnect;\n }//end if tool selected\n /*ELSE: Select shape to drag*/\n else {\n\n /*CASE : ShapeConcept*/\n if (selectedShape instanceof ShapeConcept) {\n\n Rectangle rect = ((ShapeConcept) selectedShape).getBounds();\n\n offsetX = preTranslationPoint.x - rect.x;\n offsetY = preTranslationPoint.y - rect.y;\n\n }//end inner if\n /*CASE : ShapeLinking*/\n else if (selectedShape instanceof ShapeLinking) {\n\n Rectangle rect = ((ShapeLinking) selectedShape).getBounds();\n\n offsetX = preTranslationPoint.x - rect.x;\n offsetY = preTranslationPoint.y - rect.y;\n\n }//end inner if\n else if (selectedShape instanceof ShapeComment) {\n\n Rectangle rect = ((ShapeComment) selectedShape).getBounds();\n\n offsetX = preTranslationPoint.x - rect.x;\n offsetY = preTranslationPoint.y - rect.y;\n\n }//end inner if\n else if (selectedShape instanceof ShapeURL) {\n\n Rectangle rect = ((ShapeURL) selectedShape).getBounds();\n\n offsetX = preTranslationPoint.x - rect.x;\n offsetY = preTranslationPoint.y - rect.y;\n\n }//end inner if\n }//end else\n }//BUTTON 1\n}", "public void pointToMouse() {\n pointToXY(p.mouseX,p.mouseY);\n }", "@Override\n public void mousePressed(MouseEvent e) {\n x_pressed = e.getX();\n y_pressed = e.getY();\n \n }", "@Override\n public void mousePressed(MouseEvent me) {\n mouse_x = me.getX();\n mouse_y = me.getY();\n super.mousePressed(me);\n }", "private void createTransformPoints(Rectangle bnds, GraphicObject curr) {\n double degreesAngle, radiansAngle;\n Rectangle novo = bnds;\n\n this.transformPoints = new VirtualGroup();\n\n degreesAngle = curr.getRotation();\n\n /** If the object is rotated, we need to rotate i back to the angle 0 in order to get valid boundaries. Tatami doesn't rotates the object's bounds, instead it gives wrong bounds so we need to perform this operation and rotate the bounds on our side. */\n if(degreesAngle != 0.0) {\n curr.uRotate((float) (degreesAngle * -1.0));\n novo = curr.getBounds();\n }\n radiansAngle = (degreesAngle * (2.0*Math.PI))/360.0;\n \n addTransformPoint(novo.getCenterX(), novo.getY()+novo.getHeight()+(novo.getHeight()/4), 0, curr, radiansAngle);\n addTransformPoint(novo.getX(), novo.getY(), 1, curr, radiansAngle);\n addTransformPoint(novo.getCenterX(), novo.getY(), 2, curr, radiansAngle);\n addTransformPoint(novo.getX() + novo.getWidth(), novo.getY(), 3, curr, radiansAngle);\n addTransformPoint(novo.getX(), novo.getCenterY(), 4, curr, radiansAngle);\n addTransformPoint(novo.getX() + novo.getWidth(), novo.getCenterY(), 5, curr, radiansAngle);\n addTransformPoint(novo.getX(), novo.getY() + novo.getHeight(), 6, curr, radiansAngle);\n addTransformPoint(novo.getCenterX(), novo.getY() + novo.getHeight(), 7, curr, radiansAngle);\n addTransformPoint(novo.getX() + novo.getWidth(), novo.getY() + novo.getHeight(), 8, curr, radiansAngle);\n\n /** This creates the line between the rotation point and the object */\n Line aux2 = new Line((int)(this.transformPointers[Action.SOUTH].getX()+2), (int)(this.transformPointers[Action.SOUTH].getY()+2), (int)(this.transformPointers[Action.ROTATE].getX()), (int)(this.transformPointers[Action.ROTATE].getY()));\n aux2.setStroke( Color.GRAY, 1);\n this.transformPoints.add(aux2);\n\n this.canvas.add(this.transformPoints, 0, 0);\n\n this.transformPointers[Action.SOUTH].moveToFront();\n this.transformPointers[Action.ROTATE].moveToFront();\n\n if(degreesAngle != 0.0) {\n curr.uRotate((float)degreesAngle);\n }\n }", "@Override\n public boolean onTouchEvent(MotionEvent e) {\n\n float x = e.getX();\n float y = e.getY();\n\n switch (e.getAction()) {\n case MotionEvent.ACTION_DOWN:\n //erwanGLRenderer.startRotating(x,y);\n break;\n case MotionEvent.ACTION_UP:\n //erwanGLRenderer.stopRotating();\n break;\n case MotionEvent.ACTION_MOVE:\n //erwanGLRenderer.updateRotation(x,y);\n break;\n }\n return true;\n }", "@Override public void handle(MouseEvent mouseEvent) {\n\t\t\t if (controller.MODE == Controller.Mode.SELECT) {\n originalPosition.x = pivot.getOriginX();\n originalPosition.y = pivot.getOriginY();\n\t\t\t\t if (pivot.getModel() instanceof Parent) {\n\t\t\t\t dragSource.x = mouseEvent.getX();\n\t\t\t\t\t dragSource.y = mouseEvent.getY();\n\t\t\t\t }\n\t\t\t\t // Records delta of mouse click coordinates and UMLObject's origin if UMLObject is not\n\t\t\t\t // * a Parent.\n\t\t\t\t else {\n\t\t\t\t\t dragSource.x = pivot.getOriginX() - mouseEvent.getX();\n\t\t\t\t\t dragSource.y = pivot.getOriginY() - mouseEvent.getY();\n\t\t\t\t }\n \t\t\t\tpivot.getModel().getScene().setCursor(Cursor.MOVE);\n\t\t\t }\n\t\t }", "private void updateTransform() {\n Matrix matrix = new Matrix();\n float centerX = dataBinding.viewFinder.getWidth() / 2f;\n float centerY = dataBinding.viewFinder.getHeight() / 2f;\n int rotation = dataBinding.viewFinder.getDisplay().getRotation();\n int rotationDegrees = 0;\n switch (rotation) {\n case Surface.ROTATION_0:\n rotationDegrees = 0;\n break;\n case Surface.ROTATION_90:\n rotationDegrees = 90;\n break;\n case Surface.ROTATION_180:\n rotationDegrees = 180;\n break;\n case Surface.ROTATION_270:\n rotationDegrees = 270;\n break;\n default:\n }\n matrix.postRotate(-rotationDegrees, centerX, centerY);\n }", "@Override\n public void handle(MouseEvent event) {\n if (!event.isPrimaryButtonDown())\n return;\n\n double scale = pannableCanvas.getScale();\n\n Node node = (Node) event.getSource();\n\n if (node instanceof Group){\n Group unionGroup = (Group) node;\n for (Node node1 : unionGroup.getChildren()) {\n FamilyMemberBox familyMemberBox = (FamilyMemberBox) node1;\n double x = nodeDragContext.translateAnchorX + ((event.getSceneX() - nodeDragContext.mouseAnchorX) / scale);\n double y = nodeDragContext.translateAnchorY + ((event.getSceneY() - nodeDragContext.mouseAnchorY) / scale);\n familyMemberBox.setTranslateX(x);\n familyMemberBox.setTranslateY(y);\n\n logger.info(\"translateAnchorX: {} translateAnchorY: {}\", node.getTranslateX(), node.getTranslateY());\n }\n }\n event.consume();\n }", "public void checkMouse(){\n if(Greenfoot.mouseMoved(null)){\n mouseOver = Greenfoot.mouseMoved(this);\n }\n //Si esta encima se volvera transparente el boton en el que se encuentra\n if(mouseOver){\n adjTrans(MAX_TRANS/2);\n }\n else{\n adjTrans(MAX_TRANS);\n }\n \n }", "public void mouseClicked(int mouseX, int mouseY, int mouse) {}", "public void start(Stage myStage) { \n \n // Give the stage a title. \n myStage.setTitle(\"Effects and Transforms Demo\"); \n \n // Use a FlowPane for the root node. In this case, \n // vertical and horizontal gaps of 20 are used. \n FlowPane rootNode = new FlowPane(20, 20); \n \n // Center the controls in the scene. \n rootNode.setAlignment(Pos.CENTER); \n \n // Create a scene. \n Scene myScene = new Scene(rootNode, 300, 120); \n \n // Set the scene on the stage. \n myStage.setScene(myScene); \n \n // Add rotation to the transform list for the Rotate button. \n btnRotate.getTransforms().add(rotate); \n \n // Add scaling to the transform list for the Scale button. \n btnScale.getTransforms().add(scale); \n \n // Set the reflection effect on the reflection label. \n reflection.setTopOpacity(0.7); \n reflection.setBottomOpacity(0.3); \n reflect.setEffect(reflection); \n \n // Handle the action events for the Rotate button. \n btnRotate.setOnAction(new EventHandler<ActionEvent>() { \n public void handle(ActionEvent ae) { \n // Each time button is pressed, it is rotated 30 degrees \n // around its center. \n angle += 15.0; \n \n rotate.setAngle(angle); \n rotate.setPivotX(btnRotate.getWidth()/2); \n rotate.setPivotY(btnRotate.getHeight()/2); \n } \n }); \n \n // Handle the action events for the Scale button. \n btnScale.setOnAction(new EventHandler<ActionEvent>() { \n public void handle(ActionEvent ae) { \n // Each time button is pressed, the button's scale is changed. \n scaleFactor += 0.1; \n if(scaleFactor > 2.0) scaleFactor = 0.4; \n \n scale.setX(scaleFactor); \n scale.setY(scaleFactor); \n \n } \n }); \n \n // Handle the action events for the Blur button. \n btnBlur.setOnAction(new EventHandler<ActionEvent>() { \n public void handle(ActionEvent ae) { \n // Each time button is pressed, its blur status is changed. \n if(blurVal == 10.0) { \n blurVal = 1.0; \n btnBlur.setEffect(null); \n btnBlur.setText(\"Blur off\"); \n } else { \n blurVal++; \n btnBlur.setEffect(blur); \n btnBlur.setText(\"Blur on\"); \n } \n blur.setWidth(blurVal); \n blur.setHeight(blurVal); \n } \n }); \n \n // Add the label and buttons to the scene graph. \n rootNode.getChildren().addAll(btnRotate, btnScale, btnBlur, reflect); \n \n // Show the stage and its scene. \n myStage.show(); \n }", "public void mouseClicked(MouseEvent event)\n\t{\n\t\tint x = event.getX();\n\t\tint y = event.getY();\n\t\t\n\t\tfor (GlComponent component : components)\n\t\t{\n\t\t\tif (component.isTouched(x, y))\n\t\t\t{\n\t\t\t\tstartAction(component);\n\t\t\t}\n\t\t}\n\t}", "@Override\r\n\tpublic void transformComponent(AffineTransform transform, Set<JVGShape> locked) {\n\t}", "@Override\r\n\tpublic void mouseClicked(MouseEvent arg0) {\n\t\tif(this.chance==1)\r\n\t\t{\r\n\t\t\tmouseX = arg0.getX();\r\n\t\t\tmouseY= arg0.getY();\r\n\t\t\tclick=1;\r\n\t\t}\r\n\t}", "public void mouseClicked(MouseEvent e){\r\n\t\t int[] mouseCurent = new int[2];\r\n\t\t mouseCurent[0] = e.getX();\r\n\t\t mouseCurent[1] = e.getY();\r\n\t\t \r\n\t\t //if (clickedNum > totalNum-1) {\r\n\t\t //\t JOptionPane.showMessageDialog(new JFrame(),\r\n\t\t\t//\t\t \"No more clicked points are wanted.\",\r\n\t\t\t//\t\t \"Inane error\",\r\n\t\t\t//\t\t JOptionPane.ERROR_MESSAGE);\r\n\t\t //} else {\r\n\t\t if (e.getModifiers() == MouseEvent.BUTTON1_MASK) {\r\n\t\t\t double d[][] = plotViewer.plotPanel.plotCanvas.centerData;\r\n\t\t\t plotViewer.plotPanel.addPlot(\"SCATTER\", \"Cluster Center\", Color.BLACK, d);\r\n\t\t\t \r\n\t\t\t // increase the center data storage memory\r\n\t\t\t if (clickedNum == 0) {\r\n\t\t\t\t cluster2DCenters = new double[1][2];\r\n\t\t\t\t cluster2DCenters[0] = d[0];\r\n\t\t\t\t clickedNum++;\r\n\t\t\t } else {\r\n\t\t\t\t double bak[][] = new double[clickedNum][2];\r\n\t\t\t\t bak = copy(cluster2DCenters);\t\r\n\t\t\t\t clickedNum++;\r\n\t\t\t\t cluster2DCenters = new double[clickedNum][2];\r\n\t\t\t\t for (int i=0; i<clickedNum-1; i++) {\r\n\t\t\t\t\t cluster2DCenters[i] = copy(bak[i]);\r\n\t\t\t\t }\r\n\t\t\t\t cluster2DCenters[clickedNum-1] = d[0];\r\n\t\t\t }\r\n\t\t\t \r\n\t\t }\r\n\t }", "public interface OrthoControlPointRotateTranslateScaleListener {\r\n\r\n\t\t/**\r\n\t\t * Cursor changed.\r\n\t\t *\r\n\t\t * @param ocprts\r\n\t\t * the ocprts\r\n\t\t * @param c\r\n\t\t * the c\r\n\t\t * @param event\r\n\t\t * the event\r\n\t\t */\r\n\t\tpublic void cursorChanged(\r\n\t\t\t\tOrthoControlPointRotateTranslateScaleWithListener ocprts,\r\n\t\t\t\tScreenCursor c, MultiTouchCursorEvent event);\r\n\r\n\t\t/**\r\n\t\t * Cursor clicked.\r\n\t\t *\r\n\t\t * @param ocprts\r\n\t\t * the ocprts\r\n\t\t * @param c\r\n\t\t * the c\r\n\t\t * @param event\r\n\t\t * the event\r\n\t\t */\r\n\t\tpublic void cursorClicked(\r\n\t\t\t\tOrthoControlPointRotateTranslateScaleWithListener ocprts,\r\n\t\t\t\tScreenCursor c, MultiTouchCursorEvent event);\r\n\r\n\t\t/**\r\n\t\t * Cursor pressed.\r\n\t\t *\r\n\t\t * @param ocprts\r\n\t\t * the ocprts\r\n\t\t * @param c\r\n\t\t * the c\r\n\t\t * @param event\r\n\t\t * the event\r\n\t\t */\r\n\t\tpublic void cursorPressed(\r\n\t\t\t\tOrthoControlPointRotateTranslateScaleWithListener ocprts,\r\n\t\t\t\tScreenCursor c, MultiTouchCursorEvent event);\r\n\r\n\t\t/**\r\n\t\t * Cursor released.\r\n\t\t *\r\n\t\t * @param ocprts\r\n\t\t * the ocprts\r\n\t\t * @param c\r\n\t\t * the c\r\n\t\t * @param event\r\n\t\t * the event\r\n\t\t */\r\n\t\tpublic void cursorReleased(\r\n\t\t\t\tOrthoControlPointRotateTranslateScaleWithListener ocprts,\r\n\t\t\t\tScreenCursor c, MultiTouchCursorEvent event);\r\n\t}", "public void mousePressed(MouseEvent e) {\n\n if(Objects.equals(ToolSelect.GetTool(), \"zoom/pan\")){\n released = false;\n sPoint = MouseInfo.getPointerInfo().getLocation();\n }else {\n\n startPoint = e.getPoint();\n shape = new ColoredRectangle(ToolSelect.GetBorderColor(), ToolSelect.GetFillColor(), new Rectangle(), ToolSelect.GetTool(), null);\n if (Objects.equals(ToolSelect.GetTool(), \"plot\") || Objects.equals(ToolSelect.GetTool(), \"line\")) {\n shape.shape.setBounds(e.getX(), e.getY(), 1, 1);\n }\n }\n\n }", "public void rotate() {\n // amoeba rotate\n // Here i will use my rotation_x and rotation_y\n }", "@Override\n \t\t\t\tpublic void doRotateX() {\n \n \t\t\t\t}", "@Override\r\n\tpublic void mousePressed(MouseEvent arg0) {\n\t\tint x = arg0.getX();\r\n\t\tint y = arg0.getY();\r\n\t\t\r\n\t\t//send mouse x and y to the justin object's collision mode\r\n\t\tjustin.collided(x, y);\t\r\n\t\t//justin2.collided(x, y);\r\n\t\t//justin3.collided(x, y);\r\n\t\t\r\n\t}", "@Override\n public void mouseClicked(MouseEvent e) {\n System.out.println(\"MouseClicked\");\n //kwadrat.clicked();\n trojkat.clicked();\n //kolo.clicked();\n //square.clicked();\n }", "public void clicked() {\n\n // for loops that checks each icons coordinats\n for (int i = 0; i < sceneAmount; i++) {\n if ( mousePressed == true && // if the mouse has been pressed\n // if the mouse's X coordinates is within the icons\n mouseX >= 0 &&\n mouseX <= sidebarWidth &&\n\n // checks if the mouses Y coordinates is within the icons\n mouseY >= (i * height / sceneAmount ) &&\n mouseY <= (i * height / sceneAmount ) + height / sceneAmount) {\n\n\n\n // Draws a white rectancle ontop of the clicked icon\n push();\n noStroke();\n fill(clickedColor);\n rect(0, (i * height / sceneAmount ), sidebarWidth, height / sceneAmount);\n pop();\n\n //changes scene to the clicked scene\n scene = i;\n\n //resets everything to prepare for scene change\n scrolled = 0;\n scenes.transparency = 255;\n scenes.slideCounter = 0;\n scenes.slider = 0;\n scenes.fade = false;\n movie.stop();\n playing = false;\n }\n }\n }", "public void mouseClicked(MouseEvent e) {\n\t\t\t\tpunto1.setFilled(true);\n\t\t\t\tpunto1.setColor(Color.red);\n\t\t\t\t\tif(numClicks == 0) {\n\t\t\t\t\t\tadd(punto1, e.getX(),e.getY());\n\t\t\t\t\t\tnumClicks++;\n\t\t\t\t\t\taprox.setStartPoint(e.getX(), e.getY());\n\t\t\t\t\t\tadd(engorgio1, e.getX(),e.getY());\n\n\t\t\t\t\t}\n\t\t//final\n\t\t\t\t\telse if(numClicks == 1) {\n\t\t\t\t\t\tpunto2.setFilled(true);\n\t\t\t\t\t\tpunto2.setColor(Color.blue);\n\t\t\t\t\t\tadd(punto2, e.getX(),e.getY());\n\t\t\t\t\t\tnumClicks++;\n\t\t\t\t\t\taprox.setEndPoint(e.getX(), e.getY());\n\t\t\t\t\t\tadd(aprox);\n\t\t\t\t\t\tadd(engorgio2, e.getX(),e.getY());\n\t\t\t\t\t}\n\t\t}", "public void mousePressed(MouseEvent e) {\n\t\tif (e.getX() > currImage.getWidth() || e.getY() > currImage.getHeight()) {\n\t\t\treturn;\n\t\t}\n\n\t\tif (e.getButton() == MouseEvent.BUTTON1) {\n\t\t\tint x = e.getX();\n\t\t\tint y = e.getY();\n\t\t\tcurrRect = new RotatedTextBox(x, y, 0, 0, 0, \"\", \"\");\n\t\t\tframe.requestFocusInWindow();\n\t\t\trepaint();\n\t\t}\n\t}", "@Override\n public void mouseClicked(int n, int n2, int n3) {\n block4: {\n void mouseButton;\n void mouseY;\n void mouseX;\n block7: {\n block6: {\n block5: {\n block3: {\n super.mouseClicked((int)mouseX, (int)mouseY, (int)mouseButton);\n if (mouseX >= this.getX() && mouseX <= this.getX() + this.getWidth() && mouseY >= this.getY()) {\n if (mouseY <= this.getY() + this.getHeight() && mouseButton == true) {\n boolean bl = this.open = !this.open;\n }\n }\n if (!this.isMouseOnHue((int)mouseX, (int)mouseY) || mouseButton != false) break block3;\n if (!this.open) break block3;\n this.hueDragging = true;\n break block4;\n }\n if (!this.isMouseOnSat((int)mouseX, (int)mouseY) || mouseButton != false) break block5;\n if (!this.open) break block5;\n this.saturationDragging = true;\n break block4;\n }\n if (!this.isMouseOnBri((int)mouseX, (int)mouseY) || mouseButton != false || !this.open) break block6;\n this.brightnessDragging = true;\n break block4;\n }\n if (!this.isMouseOnAlpha((int)mouseX, (int)mouseY) || mouseButton != false) break block7;\n if (!this.open) break block7;\n this.alphaDragging = true;\n break block4;\n }\n if (!this.isMouseOnRainbow((int)mouseX, (int)mouseY) || mouseButton != false) break block4;\n if (this.open) {\n this.setting.setRainbow(this.setting.getRainbow() == false);\n }\n }\n }", "public abstract Transformation updateTransform(Rectangle selectionBox);", "void setupPolygonRotate() {\n\t\trotationLockedToMouse = true;\n\t\t// polygonLockedToMouse = true;\n\t\tlockAnchor.set(anchor);\n\t\tfor (int i = 0; i < amount; i++)\n\t\t\tpoint[i].startRotating();\n\t}", "public void click(int mouseButton){\n\n if(mouseButton ==1){\n for (int i = 0; i <buttons.length ; i++) {\n //if click was registered on a button\n if(buttons[i].contains(Game.mousePoint)){\n int j = i +1;\n\n if(i == 0 && !(noOfCredits - Translator.pitifullPrice < 0)){\n noOfCredits -= Translator.pitifullPrice;\n army.addToArmyQueue(TrooperType.PITIFUL);\n\n }\n if(i == 1 && !(noOfCredits -\n Translator.armoredTrooperPrice < 0)){\n noOfCredits -= Translator.armoredTrooperPrice;\n army.addToArmyQueue(TrooperType.ARMORED);\n }\n if(i == 2 && !(noOfCredits -\n Translator.teleporterPrice < 0)){\n noOfCredits -= Translator.teleporterPrice;\n army.addToArmyQueue(TrooperType.TELEPORTER);\n }\n if(i==3){\n for (Trooper t:army.getArmy()) {\n if(t.getClass().equals(TeleportTrooper.class)){\n TeleportTrooper tp = (TeleportTrooper)t;\n if(tp.hasTeleport()) {\n Game.air[t.getPosition().getX()]\n [t.getPosition().getY()] =\n Translator.indexTeleportZone;\n tp.placePortal(tp.getDirection());\n Game.air[t.getPosition().getX()]\n [t.getPosition().getY()] =\n Translator.indexTeleporterZoneOut;\n }\n }\n }\n }\n if(i==4){\n if(army != null && army.getPreferred() == null\n || army.getPreferred() == Direction.RIGHT) {\n buttons[i].setIsSelected(true);\n buttons[i+1].setIsSelected(false);\n army.setPreferred(Direction.LEFT);\n }\n else if(army.getPreferred().equals(Direction.LEFT)){\n buttons[i].setIsSelected(false);\n army.setPreferred(null);\n }\n }\n if(i==5){\n if(army != null && army.getPreferred() == null\n || army.getPreferred() == Direction.LEFT) {\n army.setPreferred(Direction.RIGHT);\n buttons[i].setIsSelected(true);\n buttons[i-1].setIsSelected(false);\n }\n else if(army.getPreferred().equals(Direction.RIGHT)){\n army.setPreferred(null);\n buttons[i].setIsSelected(false);\n }\n }\n }\n }\n }\n }", "public void mouseReleased(GraphicObject graphicObject, Event event) {\n int x, y;\n\n\t\tx = DOM.eventGetClientX(event) - canvas.getAbsoluteLeft() + Window.getScrollLeft();\n\t\ty = DOM.eventGetClientY(event) - canvas.getAbsoluteTop() + Window.getScrollTop();\n\n /** If we were draing with the pencil, then we need to finish it */\n\t\tif((curr_obj!= null) && action.isPencil()) {\n curr_obj = null;\n\n /** If we were with a object selected, we need to update the variables to finish the transformation or translation, given the case. */\n } else if((curr_obj != null) && action.isSelect()) {\n if(isTransformable) {\n\n /** This is needed because to increase performance during object rotation, the transform points aren't displayed. This is needed because this class is performing the Transform Points rotation and not Tatami(it doesn't works..). */\n if(curr_obj == transformPointers[Action.ROTATE]) {\n Rectangle bnds = aux_obj.getBounds();\n canvas.remove(transformPoints);\n transformPoints.clear();\n createTransformPoints(bnds, aux_obj);\n }\n\n curr_obj = aux_obj;\n isTransformable = false;\n } else {\n isMovable = false;\n }\n /** If we were creating a TextBox, then we create a TextArea to allow the user to write and handle the Esc key functionality. */\n } else if(curr_obj != null && action.isTextBox()) {\n this.action.setAction(Action.TEXT);\n\n this.editor = new TextArea();\n this.editor.setWidth((int)(this.curr_obj.getBounds().getWidth()+2)+\"px\");\n this.editor.setHeight((int)(this.curr_obj.getBounds().getHeight()+2)+\"px\");\n this.editor.setFocus(true);\n this.editor.setEnabled(true);\n this.editor.addKeyboardListener(new KeyboardListenerAdapter() {\n public void onKeyDown(Widget sender, char keyCode, int modifiers) {\n if (keyCode == (char) KEY_ESCAPE) {\n int size = Integer.parseInt(currentFontSize.getItemText(currentFontSize.getSelectedIndex()));\n int x = (int)aux_obj.getX(), y = (int)aux_obj.getY();\n editor.cancelKey();\n\n curr_obj = new Text(editor.getText());\n ((Text)curr_obj).setFont(currFont);\n addTextObject(curr_obj, x + (int)((1.0/4.0)*size), y+ (size) + (int)((1.0/4.0)*size));\n\n canvas.remove(aux_obj);\n aux_obj = new TextBox(curr_obj.getBounds(), (Text)curr_obj);\n addTextBox(aux_obj, (int)curr_obj.getBounds().getX(), (int)curr_obj.getBounds().getY());\n ((Text)curr_obj).bounder = (TextBox)aux_obj;\n\n Color textColor = new Color(curr_obj.getFillColor().getRed(), curr_obj.getFillColor().getGreen(), curr_obj.getFillColor().getBlue(), 0);\n aux_obj.setFillColor(textColor);\n aux_obj.setStroke(textColor, 1);\n\n aux_obj = null;\n curr_obj = null;\n apanel.remove(editor);\n editor = null;\n action.setAction(Action.TEXTBOX);\n }\n }\n });\n\n this.apanel.add(editor, (int)this.curr_obj.getX() + this.canvas.getAbsoluteLeft() - Window.getScrollLeft() - 2, (int)this.curr_obj.getY() + this.canvas.getAbsoluteTop() - Window.getScrollTop() - 2);\n this.aux_obj = this.curr_obj;\n this.curr_obj = null;\n \n } else if(curr_obj != null && this.action.isPolyline()) {\n this.canvas.remove(curr_obj);\n this.curr_obj = new Path(this.currentPath);\n if(x != this.lastPosition[0] && y != this.lastPosition[1]) {\n ((Path)this.curr_obj).smoothCurveTo( x, y, lastPosition[0], lastPosition[1]);\n } else {\n ((Path)this.curr_obj).lineTo( x, y);\n }\n this.addGraphicObject(this.curr_obj, 0, 0);\n this.currentPath = ((Path)this.curr_obj).commands;\n\n } else if(curr_obj != null) {\n curr_obj = null;\n\t\t}\n\t}", "@Override\n\t\t\tpublic void onClick(View v) {\n\n\t\t\t\tmap.setRotationAngle(0);\n\t\t\t\tcompass.setRotationAngle(0);\n\n\t\t\t}", "private void cs1() {\n\t\t\tctx.mouse.click(675,481,true);\n\t\t\t\n\t\t}", "public void mouseClicked(MouseEvent mouseClick)\r\n\t{\r\n\t\tmouseClickX = mouseClick.getX();\r\n\t\tmouseClickY = mouseClick.getY();\r\n\t\tmouseClickedFlag = true;\r\n\t\tmouseClickedFlagForWeapon = true;\r\n\t\tmouseClickCount = mouseClick.getClickCount();\r\n\t\tmouseButtonNumber = mouseClick.getButton();\r\n\t\t//System.out.println(\"MouseClickX: \" + mouseClickX);\r\n\t\t//System.out.println(\"MouseClickY: \" + mouseClickY);\r\n\t\t\r\n\t\t\r\n\t}", "@Override\n public void mouseWheelMoved(MouseWheelEvent e) {\n // Check direction of rotation\n if (e.getWheelRotation() < 0) {\n // Zoom in for up\n tr_z += 0.01f;\n } else {\n // Zoom out for down\n tr_z -= 0.01f;\n }\n }", "public boolean onTouch(View v, MotionEvent event) {\n\t\tint pointerCount = event.getPointerCount();\n\t\tif(pointerCount==1){\n\t\t\tswitch (event.getAction()) {\n\t\t\tcase MotionEvent.ACTION_DOWN:\n\t\t//\t\tLog.i(\"INFO\", \"DOWN\");\n\t\t\t startX = (int) event.getX();\n\t\t\t startY = (int) event.getY();\n\t\t\t\tbreak;\n\t\t\tcase MotionEvent.ACTION_MOVE:\n\t\t//\t\tLog.i(\"INFO\", \"MOVE\");\n\t\t\t\tmovingX = event.getX();\n\t\t\t\tmovingY = event.getY();\n\n\t\t\t\tcenter_rotate = getRotateDegree(startX ,startY,movingX,movingY,200,200);\n\t\t\t\tLog.i(\"INFO\", center_rotate+\"\");\t\n\t\t\t\tmatrix.postRotate(center_rotate, 200, 200);\n\t\t//\t\tmatrix.setTranslate(movingX-startX, movingY-startY);\n\t\t//\t\tmatrix.postTranslate(movingX-startX, movingY-startY);\n\t\t\t\tstartX = movingX;\n\t\t\t\tstartY = movingY;\n\t\t\t\timageview.setImageMatrix(matrix);\n\t\t\t\tbreak;\n\t\t\tcase MotionEvent.ACTION_UP:\n\t\t//\t\tLog.i(\"INFO\", \"UP\");\n\t\t\t\tbreak;\n\n\t\t\tdefault:\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}else if(pointerCount==2){\n\t\t\tswitch (event.getActionMasked()) {\n\t\t\tcase MotionEvent.ACTION_POINTER_DOWN:\n\t\t\t\tmid_center = getMidPoint(event);\n\t\t\t\toldDis = getDisByEvent(event);\n\t\t\t\t//获得两个手指的坐标中心点\n\t\t\t\tbreak;\n\t\t\tcase MotionEvent.ACTION_MOVE:\n\t\t\t\tfloat nowDis = getDisByEvent(event);\n float scale = nowDis/oldDis;\n \n matrix.postScale(scale,scale,mid_center.x,mid_center.y);\n oldDis = nowDis;\n imageview.setImageMatrix(matrix);\n\t\t\t\tbreak;\n\t\t\tcase MotionEvent.ACTION_UP:\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\treturn true;\n\t}", "@Override\n public void mousePressed(MouseEvent e, ImageComponent ic) {\n ended = false;\n\n state = state.getNextAfterMousePressed();\n\n if (state == TRANSFORM) {\n assert transformSupport != null;\n transformSupport.mousePressed(e);\n// cropButton.setEnabled(true);\n cancelButton.setEnabled(true);\n } else if (state == USER_DRAG) {\n// cropButton.setEnabled(true);\n cancelButton.setEnabled(true);\n }\n }", "@Override\n public void keyPressed(KeyEvent e) {\n\n /**\n * The code for the key that was pressed\n */\n int key = e.getKeyCode();\n\n // Probably could be a case statement\n // Checking which key was pressed and acting accordingly\n if (key == KeyEvent.VK_W) {\n rt_x += 1f; // Positive x rotation\n } else if (key == KeyEvent.VK_X) {\n rt_x -= 1f; // Negative x rotation\n } else if (key == KeyEvent.VK_D) {\n rt_y += 1f; // Positive y rotation\n } else if (key == KeyEvent.VK_A) {\n rt_y -= 1f; // Negative y rotation\n } else if (key == KeyEvent.VK_E) {\n rt_z += 1f; // Positive z rotation\n } else if (key == KeyEvent.VK_Z) {\n rt_z -= 1f; // Negative z rotation\n } else if (key == KeyEvent.VK_P) {\n tr_z += 0.01f; // Zooming in\n } else if (key == KeyEvent.VK_O) {\n tr_z -= 0.01f; // Zooming out\n } else if (key == KeyEvent.VK_K) {\n // This toggles the render mode\n if (render_mode == GL_FILL) {\n render_mode = GL_LINE;\n } else {\n render_mode = GL_FILL;\n }\n } else if (key == KeyEvent.VK_L) {\n // Toggle the lighting (doesn't disable ambient light)\n if (lights_on) {\n lights_on = false;\n } else {\n lights_on = true;\n }\n } else if (key == KeyEvent.VK_M) {\n // Cycles through the materials\n material += 1;\n } else if (key == KeyEvent.VK_J) {\n // Toggle perspective type\n draw_mode += 1;\n }\n }", "@Override\r\n\tpublic void mousePressed(MouseEvent e) {\n\t\tPoint point = new Point();\r\n\t\tpoint.x = e.getX();\r\n\t\tpoint.y = e.getY();\r\n\r\n\t switch (shape) {\r\n\t \r\n\t case LINE :\r\n\r\n\t \tthis.clicksforLine.add(point);\r\n\t \tbreak;\r\n\t case CIRCLE:\r\n\r\n\t \tthis.clicksforCircle.add(point);\r\n\t \tbreak;\r\n\t case POLYGON:\r\n\r\n\t \tthis.clicksforPoly.add(point);\r\n\t \tbreak;\r\n\t case CURVE:\r\n\r\n\t \tthis.clicksforCurve.add(point);\r\n\t \tbreak;\r\n\t case CLEAR:\r\n\t {\r\n\t }\r\n\t \tbreak;\r\n\t default:\r\n\t \tbreak;\r\n\t }\r\n \r\n\t\tSystem.out.println(point.x+ \",\"+point.y);\r\n repaint();\r\n\t\t\r\n\t}", "public void rotate(Vector3 mousePos) {\n direction.x = mousePos.x - position.x;\n direction.y = mousePos.y - position.y;\n direction.nor();\n rotation = direction.angle();\n }", "private void panelMouseDragged(java.awt.event.MouseEvent evt)\n throws Exception{\n \n /*Store the point where the mouse is dragged*/\n Point dragPoint = null;\n\n if (this.selectedShape != null)\n {\n /*Change mouse was dragged to true*/\n mouseIsDragged = true;\n\n /*Store the dragged point*/\n dragPoint = evt.getPoint();\n\n /*Now translate the Shape by calling the method*/\n /*Both ShapeConcept and ShapeLinking use the same method*/\n selectedShape.translateShape(dragPoint.x - offsetX, dragPoint.y - offsetY);\n repaint();\n }//end if\n}", "@Override\n\t\t\tpublic void mouseClicked(MouseEvent arg0) {\n\t\t\t\t\ttoggleFullSceen();\n\t\t\t}", "@Override\r\n\tpublic void mouseMoved(MouseEvent e) {\r\n\t\tlastPointOnScreen = e.getPoint();\t\t\t\r\n\t\t\r\n\t\tif(screenWidth != 0)//control looking around for first person\r\n\t\t{\r\n\t\taSquare.setAngularVelocity(2*Math.pow((e.getX() - screenWidth/2)/(screenWidth/2.),3));\r\n\t\t}\r\n\t\t\r\n\t\tif(showDebug)//select closest point to cursor for global var\r\n\t\t{\r\n\t\t\tdouble minDistance = 100.0;\r\n\t\t\tclosestPointToCursor = null;\r\n\t\t\t\r\n\t\t\tArrayList<PolygonD> objectsInScene = new ArrayList<PolygonD>();\r\n\t\t\tobjectsInScene.addAll(objects);\r\n\t\t\tobjectsInScene.add(currentShape);\r\n\r\n\t\t\t//iterate over all of the verts in all of the objects in the scene\r\n\t\t\tfor(PolygonD obj : objectsInScene)\r\n\t\t\t\tfor(PointD p : obj.getVerts())\r\n\t\t\t\t{\r\n\t\t\t\t\tdouble distance = (double)(new Vector(\r\n\t\t\t\t\t\t\tp, \r\n\t\t\t\t\t\t\tnew PointD(\r\n\t\t\t\t\t\t\t\t\te.getPoint().x - worldCenter.getX(),\r\n\t\t\t\t\t\t\t\t\te.getPoint().y - worldCenter.getY()\r\n\t\t\t\t\t\t\t\t\t)\r\n\t\t\t\t\t\t\t)).getMag();\r\n\t\t\t\t\tif(distance < minDistance)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\t//set closest point to cursor\r\n\t\t\t\t\t\tminDistance = distance;\r\n\t\t\t\t\t\tclosestPointToCursor = p;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t}\r\n\t}", "@Override\n\t\t\tpublic void mouseClicked(MouseEvent arg0) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void mouseClicked(MouseEvent arg0) {\n\t\t\t\t\n\t\t\t}", "@Override\n public void mouseDragged(MouseEvent dragEvent) {\n int currentX = dragEvent.getX() - originX;\n int currentY = originY - dragEvent.getY();\n\n // Get the distance from the circle's center to the mouse current position : √(x² + y²)\n double currentDist = Math.sqrt(Math.pow(currentX, 2) + Math.pow(currentY, 2));\n\n // Get the current angle : arccos(currentX / currentDist)\n double angle = Math.toDegrees(Math.acos(currentX / currentDist));\n if (currentY < 0) {\n angle = 360 - angle;\n }\n\n // Update the view\n view.setDefaultStartAngle((angle + initialAngle) % 360);\n view.computeArcs(controller.getModel());\n view.repaint();\n }", "private void addTransformPoint(double x, double y, int index, GraphicObject curr, double radiansAngle) {\n /** If the object is rotated, the transform point also has to be rotated.\n * Here we calculate the new coordinates acording to the rotation angle. */\n if(radiansAngle != 0.0) {\n GeoVector vect = new GeoVector(x, y, curr.getCenterX(), curr.getCenterY());\n vect.rotate(radiansAngle);\n vect.addPoint(curr.getCenterX(), curr.getCenterY());\n x = vect.getX();\n y = vect.getY();\n }\n /** If it's the rotation point, then it creates a green circle */\n if(index==0) {\n Circle aux = new Circle(2);\n aux.setFillColor(Color.GREEN);\n aux.setStroke(Color.GRAY, 1);\n\n this.transformPoints.add(aux);\n\t\t this.transformPointers[index] = aux;\n\t\t aux.translate((int)x, (int)y);\n /** Otherwise it just creates a normal white rectangle */\n } else {\n Rect aux = new Rect(4,4);\n aux.setFillColor(Color.WHITE);\n aux.setStroke(Color.GRAY, 1);\n\n this.transformPoints.add(aux);\n\t\t this.transformPointers[index] = aux;\n\t\t aux.translate((int)x-2, (int)y-2);\n }\n\t}", "public OrthoControlPointRotateTranslateScaleWithListener(\r\n\t\t\tSpatial pickingAndTargetSpatial) {\r\n\t\tthis(pickingAndTargetSpatial, pickingAndTargetSpatial);\r\n\t}", "@Override\n public boolean onTouch(View v, MotionEvent event) {\n float x;\n float y;\n int w = v.getWidth();\n int h = v.getHeight();\n int curAction = ACTION_NONE;\n float xscale = (float)w / (float)438;\n float yscale = (float)h / (float)600;\n\n x = event.getX() / xscale;\n y = event.getY() / yscale;\n // Log.d(LOG_TAG, \"x: \" + x + \", y:\" + y);\n if (x >= 90 && x <= 210 &&\n y >= 300 && y <= 425) curAction = ACTION_BATARI;\n else if (x >= 110 && x <= 200 &&\n y >= 450 && y <= 540) curAction = ACTION_GABARI;\n else if (x >= 240 && x <= 350 &&\n y >= 300 && y <= 430) curAction = ACTION_FUROHA;\n else if (x >= 245 && x <= 370 &&\n y >= 440 && y <= 550) curAction = ACTION_FUROA;\n if (event.getAction() == MotionEvent.ACTION_DOWN) {\n mActionType = curAction;\n Log.d(LOG_TAG, \"DOWN ACTION: \" + curAction);\n } else if (event.getAction() == MotionEvent.ACTION_UP ) {\n Log.d(LOG_TAG, \"UP ACTION: \" + curAction);\n if (mActionType == curAction) doAction(mActionType);\n }\n return true;\n }", "public void mouseClicked() {\n\t\tswitch(screen) {\n\t\t\n\t\t// Pantalla Home\n\t\tcase 0:\n\t\t\tif((mouseX > 529 && mouseY > 691) && (mouseX < 966 & mouseY < 867)) {\n\t\t\t\t//si hace click adentro del boton de jugar\n\t\t\t\tscreen = 1;\n\t\t\t}\n\t\t\tbreak;\n\t\t\t\n\t\t// Pantalla Instrucciones\n\t\tcase 1:\n\t\t\t//si hace click adentro de la pantalla\n\t\t\tscreen = 2;\n\t\t\tbreak;\n\t\t}\n\t}", "public void click_on(){\n float x = mouseX;\n float y = mouseY;\n //if(dela>0)dela--;\n if(overRect(x, y, 570, 50, btn_ext.width, btn_ext.height)){sfx(4);\n clicked(btn_ext.get(), 570, 50, btn_ext.width, btn_ext.height, INVERT);\n qq = -1;\n }else if(overRect(x, y, 190, 50, btn_tip.width, btn_tip.height)&&!level_pick){sfx(4);\n sm = k;\n sp = 5;\n qq = 6;\n qqTmp = 2;\n }else if(level_pick){\n if(overRect(x, y, 190, 50, btn_back.width, btn_back.height)){sfx(4);\n clicked(btn_back.get(), 190, 50, btn_back.width, btn_back.height, INVERT);\n level_pick = false;\n }else{\n for(int i=0;i<7;i++){\n float xx = 252.5f;\n float yy = 130;\n if(i>3){\n xx = -45;\n yy = 215;\n }\n if(User.getInt((char)('A'+k)+str(i+1))!=-1){\n if(overRect(x, y, xx+85*i, yy, level_on.width, level_on.height)){sfx(4);\n sl = i;\n _1.setLevel();\n _1.initGame();\n pp = 1;qq = -1;\n }\n }\n }\n }\n }else{\n if(overRect(x, y, 540, height/2, btn_next.width, btn_next.height)){sfx(4);\n clicked(btn_next.get(), 540, height/2, btn_next.width, btn_next.height, INVERT);\n k=(k+1)%3;\n }\n else if(overRect(x, y, 220, height/2, btn_prev.width, btn_prev.height)){sfx(4);\n clicked(btn_prev.get(), 220, height/2, btn_prev.width, btn_prev.height, INVERT);\n k--;\n if(k<0)k=2;\n }else if(overRect(x, y, width/2, height/2, latar[k].width, latar[k].height)){sfx(4);\n level_pick = true;\n sm = k;\n }\n }\n }", "void mouseClicked(double x, double y, MouseEvent e );", "public void setTransform(float a11, float a12, float a21, float a22, float x, float y);", "@Override\n\t\t\tpublic void mouseClicked(MouseEvent arg0) {\n\n\t\t\t}", "@Override\n\t\t\tpublic void mouseClicked(MouseEvent arg0) {\n\n\t\t\t}", "@Override\n\t\t\tpublic void mouseClicked(MouseEvent arg0) {\n\n\t\t\t}", "@Override\n\t\t\tpublic void mouseClicked(MouseEvent arg0) {\n\n\t\t\t}", "@Override\n\t\t\tpublic void mouseClicked(MouseEvent arg0) {\n\n\t\t\t}", "@Override\n\t\t\tpublic void mouseClicked(MouseEvent arg0) {\n\n\t\t\t}", "@Override\n\t\t\tpublic void mouseClicked(MouseEvent arg0) {\n\n\t\t\t}", "private void moveToStage() {\n\n switch (host.getUnlockedStages()) {\n case 5:\n if (stage5Point.getTouch()) {\n host.setCurrentStage(5);\n removeOtherPointActors(stage5Point);\n moveAndZoomAction(stage5Point);\n break;\n }\n case 4:\n if (stage4Point.getTouch()) {\n host.setCurrentStage(4);\n removeOtherPointActors(stage4Point);\n moveAndZoomAction(stage4Point);\n break;\n }\n case 3:\n if (stage3Point.getTouch()) {\n host.setCurrentStage(3);\n removeOtherPointActors(stage3Point);\n moveAndZoomAction(stage3Point);\n break;\n }\n case 2:\n if (stage2Point.getTouch()) {\n host.setCurrentStage(2);\n removeOtherPointActors(stage2Point);\n moveAndZoomAction(stage2Point);\n break;\n }\n case 1:\n if (stage1Point.getTouch()) {\n host.setCurrentStage(1);\n removeOtherPointActors(stage1Point);\n moveAndZoomAction(stage1Point);\n break;\n }\n }}", "public void mousePressed(MouseEvent e) {\n oldX = e.getX();\r\n oldY = e.getY();\r\n }", "public void act() \n {\n // Add your action code here.\n \n //setRotation();\n setLocation(getX(),getY()+2);\n movement();\n \n }", "@Override\r\n\t\t\tpublic void mouseClicked(MouseEvent arg0) {\n\t\t\t\t\r\n\t\t\t}", "@Override\n\tpublic void mouseClicked(MouseEvent e)\n\t{\n\t\tSystem.out.println(e.getX()+\",\"+e.getY());\n\t\t\n\t\t//On envoie au controller les coordonnées selectionnées:\n\t\tcontroller.clicOnMap(e.getX(), e.getY());\n\t}" ]
[ "0.6166275", "0.5885386", "0.58414197", "0.5825204", "0.5764772", "0.5661095", "0.5500601", "0.5495553", "0.5449111", "0.53989327", "0.5374286", "0.5371773", "0.5366285", "0.52849144", "0.5269104", "0.5240164", "0.52297294", "0.52052844", "0.5204735", "0.519086", "0.5174928", "0.5136671", "0.5133437", "0.5130579", "0.5119798", "0.5117226", "0.5111731", "0.51034665", "0.50866616", "0.50776136", "0.5070574", "0.5067922", "0.5065663", "0.50563073", "0.50563073", "0.50563073", "0.5056265", "0.5029062", "0.50268656", "0.50263256", "0.50222445", "0.5021578", "0.49990422", "0.49982738", "0.4987399", "0.4985222", "0.49680972", "0.4965938", "0.49647343", "0.4959525", "0.49533162", "0.4950973", "0.4947073", "0.49447334", "0.49399403", "0.4937948", "0.49241057", "0.49236667", "0.49222976", "0.4921126", "0.4915655", "0.49058047", "0.49045095", "0.48972842", "0.4891983", "0.4885825", "0.4876979", "0.48671162", "0.48668793", "0.4860881", "0.48587763", "0.4851805", "0.48465282", "0.48430142", "0.4819105", "0.48169187", "0.48122767", "0.48037094", "0.4797729", "0.4797729", "0.47938982", "0.4775898", "0.47743666", "0.4773624", "0.477283", "0.47679284", "0.47663486", "0.47629842", "0.47568813", "0.47568813", "0.47568813", "0.47568813", "0.47568813", "0.47568813", "0.47568813", "0.47556022", "0.47541258", "0.47481814", "0.4746144", "0.47395954" ]
0.70989794
0